xstrcasecmp: conform to C89 pointer rules
[bpt/emacs.git] / src / ChangeLog
1 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 xstrcasecmp: conform to C89 pointer rules
4 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
5 to const char *, since they're usually low-level C strings, and
6 this stays compatible with C89 pointer rules. All callers changed.
7
8 * charset.c: conform to C89 pointer rules
9 (define_charset_internal): Switch between char * and unsigned char *.
10
11 * xmenu.c: conform to C89 const rules
12 (xmenu_show, xdialog_show): Declare local var as char *, not
13 const char *, to stay compatible with C89 const rules.
14
15 * xdisp.c: conform to C89 pointer rules
16 (store_mode_line_noprop, display_string, reseat_to_string):
17 (c_string_pos, number_of_chars, message_dolog):
18 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
19 (display_mode_element, display_string):
20 Switch between char * and unsigned char * to stay compatible wth
21 C89 pointer rules.
22
23 * regex.c: conform to C89 pointer rules
24 (re_wctype): Add cast, as C89 does not allow assigning between
25 char * and unsigned char *.
26 (regex_compile): Likewise.
27
28 sync from gnulib to remove HAVE_STDBOOL_H
29 * config.in: Regenerate.
30
31 2011-02-04 Eli Zaretskii <eliz@gnu.org>
32
33 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
34 Replace all uses of lisp.h with $(LISP_H), and all uses of
35 process.h with $(PROCESS_H).
36 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
37 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
38
39 * deps.mk: Update for recent changes: gnutls support, gnulib
40 imports, addition of globals.h.
41
42 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
43 ../lib/ignore-value.h.
44
45 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
46
47 allow C code to suppress warnings about ignored return values
48
49 We need to go through the code and for each such warning, either
50 fix the code to pay attention to the returned value, or tell GCC
51 that we really do want to ignore the returned value. Here is one
52 example of how to do the latter.
53 * sysdep.c: Include <ignore-value.h>.
54 (sys_subshell): Suppress an undesirable warning about not checking
55 the returned value of 'write', as there's nothing useful one can
56 do with that returned value.
57
58 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
59
60 * xterm.c (x_connection_closed): Remove all calls that calls
61 XSync (Bug#7949).
62
63 2011-02-01 Eli Zaretskii <eliz@gnu.org>
64
65 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
66 TIFFClientOpen.
67
68 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
69
70 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
71 (x_session_check_input): Change args and return type so it can be used
72 as argument to add_read_fd. Make static. Remove call to select.
73 Call kbd_buffer_store_event for emacs_event.
74 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
75 (ice_conn_watch_CB): Call add_read_fd.
76
77 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
78 x_session_check_input.
79 (x_session_initialized): Remove definition.
80 (x_initialize): Remove setting of x_session_initialized.
81
82 * xterm.h (x_session_check_input): Remove declaration.
83
84 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
85
86 format-time-string now supports subsecond time stamp resolution
87 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
88 for consistency with its new argument and with gnulib nstrftime.
89 All callers changed. New argument NS.
90 (Fformat_time_string): Check that the time argument's microseconds
91 component, if any, is in range; this avoids integer overflow and
92 also nstrftime needs this. Document %N.
93
94 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
95
96 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
97 of int. All uses adjusted.
98 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
99 (svg_load_image): Remove casts.
100
101 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
102
103 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
104 function definitions for compiling with libpng-1.5.
105 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
106 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
107 (Bug#7908).
108
109 2011-01-31 Eli Zaretskii <eliz@gnu.org>
110
111 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
112
113 * makefile.w32-in (OBJ2): Remove strftime.$(O).
114 ($(BLD)/strftime.$(O)): Remove prerequisites.
115
116 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
117
118 src/emacs.c now gets version number from configure.in
119 * emacs.c (emacs_version): Set to VERSION so that it
120 is determined automatically from ../configure.in.
121
122 2011-01-31 Jim Meyering <meyering@redhat.com>
123
124 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
125 Use xmalloc rather than malloc.
126
127 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
128
129 strftime: import from gnulib
130 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
131 * deps.mk (strftime.o): Remove.
132 * editfns.c: Include <strftime.h>, supplied by gnulib.
133 (emacs_strftimeu): Remove decl.
134 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
135 emacs_strftimeu.
136 * config.in: Regenerate.
137 * strftime.c: Remove; we now use strftime from gnulib.
138
139 Use SSDATA when the context wants char *.
140 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
141 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
142 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
143 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
144 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
145 Use SSDATA (not SDATA) when the context of the expression wants
146 char * (not unsigned char *).
147
148 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
149
150 * .gdbinit: Read global lisp variables as globals.f_V*.
151
152 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
153
154 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
155 All uses changed.
156 (PROP_SAVE): Likewise.
157
158 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
159
160 * keyboard.c (make_lispy_position): Fix typo in last change
161 (Bug#7935).
162
163 2011-01-29 Eli Zaretskii <eliz@gnu.org>
164
165 * s/ms-w32.h (HAVE_MKTIME): Remove.
166
167 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
168 (GNULIB): New variable.
169 (LIBS): Add $(GNULIB).
170 $(TEMACS): Depend on $(GNULIB).
171 <top-level>: Fix font-lock disrupted by a lone `"'.
172
173 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
174
175 * nsselect.m (ns_string_from_pasteboard): Get length of string
176 and use make_string instead of build_string (Bug#7934).
177 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
178 instead of stringWithUTF8String (Bug#7934).
179
180 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
181
182 * nsfont.m (nsfont_open): Ensure that fonts with inexact
183 descenders would not become one pixel too tall (Bug#7887).
184
185 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
186
187 * keyboard.c (make_lispy_position): For clicks on right fringe or
188 margin, compute text position using the X coordinate relative to
189 the left of the text area (Bug#7839).
190
191 2011-01-28 Kenichi Handa <handa@m17n.org>
192
193 * ftfont.c (ftfont_spec_pattern): Check each extra property
194 value.
195
196 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
197
198 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
199
200 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
201
202 * font.c (font_parse_fcname): Undefine a temporary macro.
203
204 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
205
206 Let the debugger continue to the normal handler (bug#7825).
207 * eval.c (maybe_call_debugger): Declare before new use.
208 (find_handler_clause): Don't call debugger any more.
209 Ignore Vstack_trace_on_error.
210 Use XCAR/XCDR.
211 (syms_of_eval): Remove Vstack_trace_on_error.
212 (Fsignal): Only modify handlerlist when we know we need to do it.
213 Call the debugger when necessary.
214 * globals.h (Vstack_trace_on_error): Remove.
215
216 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
217
218 * font.c (font_parse_fcname): Rewrite GTK font name parser.
219
220 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
221
222 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
223 the buffer's point-max (bug#7876).
224
225 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
226
227 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
228 Remove unused case (Bug#6811).
229
230 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
231
232 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
233 setFrameTopLeftPoint is constrained.
234
235 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
236
237 Check return values of some library calls.
238 * emacs.c (main): Check dup result.
239 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
240 (frame_name_fnn_p): Check strtol result.
241
242 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
243 when calling XpmCreatePixmapFromData.
244
245 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
246 * lisp.h (SSDATA): New macro.
247 All uses of (char *) SDATA (x) replaced with SSDATA (x),
248 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
249 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
250 * xsmfns.c (SSDATA): Likewise.
251
252 2011-01-22 Martin Rudalics <rudalics@gmx.at>
253
254 * window.c (select_window): New function.
255 (Fselect_window): Call it.
256 (inhibit_point_swap): Variable deleted.
257 (Fset_window_configuration): Call select_window directly.
258
259 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
260
261 * nsterm.m (constrainFrameRect): Only constrain the first time called.
262
263 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
264
265 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
266 screen, not the window screen.
267 (x_set_window_size): Remove constraints.
268 Calculate origin.y only if zooming is 0 and without referring to a
269 screen.
270 (windowWillResize): Don't modify frameSize.
271 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
272 (initFrameFromEmacs): Initialize ns_userRect.
273 (windowShouldZoom): Set zooming to one. Remove all other code.
274 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
275 Zero it after restore.
276 (constrainFrameRect): New method for EmacsWindow.
277 (mouseDragged): Always post NSWindowDidResizeNotification after call to
278 windowWillResize.
279
280 * nsterm.h (ns_output): Add dont_constrain and zooming.
281 (EmacsView): Add ns_userRect.
282
283 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
284 if ns_alternate_modifier is none.
285
286 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
287
288 * unexmacosx.c: Add comment about include order.
289
290 2011-01-20 Glenn Morris <rgm@gnu.org>
291
292 * minibuf.c (syms_of_minibuf) <read-expression-history>:
293 Give it a doc string.
294 * globals.h: Add Vread_expression_history.
295
296 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
297 Give it a doc string.
298 * globals.h: Add Vkbd_macro_termination_hook.
299
300 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
301
302 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
303
304 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
305
306 Fix X11 compilation failure.
307 * globals.h (struct emacs_globals): Document f_Vselection_alist.
308 * xselect.c (Vselection_alist): Remove declaration, moving its
309 documentation to globals.h. This fixes a compilation failure
310 induced by the earlier change to globals.h today.
311
312 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
313
314 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
315
316 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
317 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
318 (ns_input_spi_name, ns_input_spi_arg)
319 (ns_alternate_modifier, ns_right_alternate_modifier)
320 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
321 (ns_right_control_modifier, ns_function_modifier)
322 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
323 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
324 (x_underline_at_descent_line): Remove declaration.
325 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
326
327 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
328 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
329 (syms_of_nsselect): Remove & from DEFVAR_LISP.
330
331 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
332 Remove declaration.
333
334 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
335 globals.h.
336 (syms_of_nsfont): Remove & from DEFVAR_LISP.
337
338 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
339 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
340 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
341
342 * globals.h (struct emacs_globals): Add f_ns_input_file,
343 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
344 f_ns_input_color, f_ns_input_text, f_ns_working_text,
345 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
346 f_ns_right_alternate_modifier, f_ns_command_modifier,
347 f_ns_right_command_modifier, f_ns_control_modifier,
348 f_ns_right_control_modifier, f_ns_function_modifier,
349 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
350 f_Vns_version_string, f_Vns_sent_selection_hooks,
351 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
352 and corresponding defines.
353
354
355 2011-01-19 Sam Steingold <sds@gnu.org>
356
357 * w32.c (check_windows_init_file): Remove declarations of
358 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
359 * w32fns.c: Fix an error introduced by the previous patch.
360
361 2011-01-19 Tom Tromey <tromey@redhat.com>
362
363 * window.c: Fix error introduced by previous patch.
364
365 2011-01-18 Tom Tromey <tromey@parfait>
366
367 * globals.h: New file.
368 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
369 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
370 (Vwindow_system_version): Remove declaration.
371 * w32term.h (Vw32_enable_palette)
372 (Vx_pixel_size_width_font_regexp): Remove declaration.
373 * w32menu.c (Voverriding_local_map)
374 (Voverriding_local_map_menu_flag): Remove declaration.
375 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
376 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
377 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
378 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
379 (Vw32_phantom_key_code, Vw32_recognize_altgr)
380 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
381 (w32_use_full_screen_buffer): Remove declaration.
382 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
383 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
384 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
385 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
386 (no_redraw_on_reenter, visible_bell): Remove declaration.
387 * sysdep.c (Vsystem_name): Remove declaration.
388 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
389 * menu.h (Vmenu_updating_frame): Remove declaration.
390 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
391 Remove declaration.
392 * lisp.h (Vafter_init_time, Vafter_load_alist)
393 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
394 (Vcompletion_regexp_list, Vcurrent_load_list)
395 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
396 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
397 (Vexec_directory, Vexec_path, Vexec_suffixes)
398 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
399 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
400 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
401 (Vinstallation_directory, Vinvocation_directory)
402 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
403 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
404 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
405 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
406 (Vscalable_fonts_allowed, Vselect_active_regions)
407 (Vshell_file_name, Vstandard_input, Vstandard_output)
408 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
409 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
410 (Vuser_login_name, Vwindow_scroll_functions)
411 (Vwindow_system_version, Vx_no_window_manager)
412 (Vx_resource_class, Vx_resource_name, baud_rate)
413 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
414 (history_delete_duplicates, inhibit_x_resources)
415 (last_nonmenu_event, load_in_progress, max_specpdl_size)
416 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
417 (use_dialog_box, use_file_dialog): Remove declaration. Include
418 globals.h.
419 * keymap.h (Voverriding_local_map)
420 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
421 declaration.
422 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
423 (Vinput_method_function, Vkey_translation_map)
424 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
425 (do_mouse_tracking, extra_keyboard_modifiers)
426 (num_nonmacro_input_events): Remove declaration.
427 * intervals.h (Vchar_property_alias_alist)
428 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
429 (Vtext_property_default_nonsticky): Remove declaration.
430 * gtkutil.h (x_gtk_file_dialog_help_text)
431 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
432 (x_gtk_whole_detached_tool_bar): Remove declaration.
433 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
434 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
435 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
436 (focus_follows_mouse): Remove declaration.
437 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
438 (Vignore_relative_composition, Votf_script_alist)
439 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
440 declaration.
441 * font.h (Vfont_log): Remove declaration.
442 * dosfns.h (Vdos_display_scancodes, Vdos_version)
443 (Vdos_windows_version, dos_codepage, dos_country_code)
444 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
445 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
446 declaration.
447 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
448 declaration.
449 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
450 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
451 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
452 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
453 (inverse_video, mode_line_in_non_selected_windows)
454 (tool_bar_button_relief, tool_bar_max_label_size)
455 (underline_minimum_offset)
456 (unibyte_display_via_language_environment, x_stretch_cursor_p):
457 Remove declaration.
458 * composite.h (Vauto_composition_function)
459 (Vcomposition_function_table): Remove declaration.
460 * commands.h (Vexecuting_kbd_macro)
461 (Vminibuffer_local_completion_map)
462 (Vminibuffer_local_filename_completion_map)
463 (Vminibuffer_local_filename_must_match_map)
464 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
465 (Vminibuffer_local_ns_map, Vthis_command)
466 (Vunread_command_events, cursor_in_echo_area)
467 (last_command_event, last_nonmenu_event, unread_command_char):
468 Remove declaration.
469 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
470 (Vdefault_file_name_coding_system)
471 (Vdefault_process_coding_system, Vfile_name_coding_system)
472 (Vlast_coding_system_used, Vlocale_coding_system)
473 (Vselect_safe_coding_system_function)
474 (Vtranslation_table_for_input, coding_system_require_warning)
475 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
476 (eol_mnemonic_unix, inherit_process_coding_system): Remove
477 declaration.
478 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
479 declaration.
480 * character.h (Vauto_fill_chars, Vchar_direction_table)
481 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
482 (Vscript_representative_chars, Vtranslation_table_vector)
483 (Vunicode_category_table): Remove declaration.
484 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
485 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
486 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
487 (inhibit_modification_hooks): Remove declaration.
488 * xterm.c (syms_of_xterm): Update.
489 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
490 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
491 (x_mouse_click_focus_ignore_position)
492 (x_underline_at_descent_line)
493 (x_use_underline_position_properties): Remove.
494 * xsmfns.c (syms_of_xsmfns): Update.
495 (Vx_session_id, Vx_session_previous_id): Remove.
496 * xsettings.c (syms_of_xsettings): Update.
497 (Vxft_settings, use_system_font): Remove.
498 * xselect.c (syms_of_xselect): Update.
499 (Vselection_converter_alist, Vx_lost_selection_functions)
500 (Vx_sent_selection_functions, x_selection_timeout): Remove.
501 * xfns.c (syms_of_xfns): Update.
502 (Vgtk_version_string, Vmotif_version_string)
503 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
504 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
505 (Vx_no_window_manager, Vx_nontext_pointer_shape)
506 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
507 (Vx_sensitive_text_pointer_shape)
508 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
509 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
510 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
511 Remove.
512 * xfaces.c (syms_of_xfaces): Update.
513 (Vface_default_stipple, Vface_font_rescale_alist)
514 (Vface_ignored_fonts, Vface_new_frame_defaults)
515 (Vface_remapping_alist, Vfont_list_limit)
516 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
517 * xdisp.c (syms_of_xdisp): Update.
518 (Vauto_resize_tool_bars, Vblink_cursor_alist)
519 (Vdisplay_pixels_per_inch, Vfontification_functions)
520 (Vframe_title_format, Vglobal_mode_string)
521 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
522 (Vicon_title_format, Vinhibit_redisplay)
523 (Vline_number_display_limit, Vline_prefix)
524 (Vmax_mini_window_height, Vmenu_bar_update_hook)
525 (Vmenu_updating_frame, Vmessage_log_max)
526 (Vmouse_autoselect_window, Vnobreak_char_display)
527 (Voverlay_arrow_position, Voverlay_arrow_string)
528 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
529 (Vresize_mini_windows, Vshow_trailing_whitespace)
530 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
531 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
532 (Vwindow_scroll_functions, Vwindow_size_change_functions)
533 (Vwindow_text_change_functions, Vwrap_prefix)
534 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
535 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
536 (highlight_nonselected_windows, hscroll_margin)
537 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
538 (inhibit_menubar_update, inhibit_try_cursor_movement)
539 (inhibit_try_window_id, inhibit_try_window_reusing)
540 (line_number_display_limit_width)
541 (make_cursor_line_fully_visible_p, message_truncate_lines)
542 (mode_line_inverse_video, multiple_frames, overline_margin)
543 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
544 (tool_bar_max_label_size, underline_minimum_offset)
545 (unibyte_display_via_language_environment, x_stretch_cursor_p):
546 Remove.
547 * window.c (syms_of_window): Update.
548 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
549 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
550 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
551 (Vwindow_point_insertion_type, auto_window_vscroll_p)
552 (mode_line_in_non_selected_windows, next_screen_context_lines)
553 (window_min_height, window_min_width): Remove.
554 (scroll_margin): Remove declaration.
555 * w32term.c (syms_of_w32term): Update.
556 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
557 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
558 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
559 (w32_use_visible_system_caret, x_underline_at_descent_line)
560 (x_use_underline_position_properties): Remove.
561 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
562 Remove declaration.
563 * w32select.c (syms_of_w32select): Update.
564 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
565 * w32proc.c (syms_of_ntproc): Update.
566 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
567 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
568 (Vw32_start_process_inherit_error_mode)
569 (Vw32_start_process_share_console)
570 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
571 (Vsystem_name): Remove declaration.
572 * w32font.c (syms_of_w32font): Update.
573 (Vw32_charset_info_alist): Remove.
574 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
575 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
576 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
577 (Vw32_enable_palette, Vw32_lwindow_modifier)
578 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
579 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
580 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
581 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
582 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
583 (Vx_no_window_manager, Vx_nontext_pointer_shape)
584 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
585 (Vx_sensitive_text_pointer_shape)
586 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
587 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
588 (w32_mouse_move_interval)
589 (w32_pass_extra_mouse_buttons_to_system)
590 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
591 (w32_strict_fontnames, w32_strict_painting): Remove.
592 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
593 (Vw32_recognize_altgr, Vwindow_system_version)
594 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
595 declaration.
596 * w32console.c (syms_of_ntterm): Update.
597 (w32_use_full_screen_buffer): Remove.
598 (Vtty_defined_color_alist): Remove declaration.
599 * w16select.c (syms_of_win16select): Update.
600 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
601 * undo.c (syms_of_undo): Update.
602 (Vundo_outer_limit, Vundo_outer_limit_function)
603 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
604 Remove.
605 * textprop.c (syms_of_textprop): Update.
606 (Vchar_property_alias_alist, Vdefault_text_properties)
607 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
608 Remove.
609 * terminal.c (syms_of_terminal): Update.
610 (Vdelete_terminal_functions, Vring_bell_function): Remove.
611 * term.c (syms_of_term): Update.
612 (Vresume_tty_functions, Vsuspend_tty_functions)
613 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
614 Remove.
615 * syntax.c (syms_of_syntax): Update.
616 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
617 (open_paren_in_column_0_is_defun_start)
618 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
619 (words_include_escapes): Remove.
620 * search.c (syms_of_search): Update.
621 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
622 * process.c (syms_of_process): Update.
623 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
624 (delete_exited_processes): Remove.
625 * print.c (syms_of_print): Update.
626 (Vfloat_output_format, Vprint_charset_text_property)
627 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
628 (Vprint_length, Vprint_level, Vprint_number_table)
629 (Vstandard_output, print_escape_multibyte)
630 (print_escape_newlines, print_escape_nonascii, print_quoted):
631 Remove.
632 * msdos.c (syms_of_msdos): Update.
633 (Vdos_unsupported_char_glyph): Remove.
634 (unibyte_display_via_language_environment): Remove declaration.
635 * minibuf.c (syms_of_minibuf): Update.
636 (Vcompletion_regexp_list, Vhistory_add_new_input)
637 (Vhistory_length, Vminibuffer_completing_file_name)
638 (Vminibuffer_completion_confirm)
639 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
640 (Vminibuffer_exit_hook, Vminibuffer_help_form)
641 (Vminibuffer_history_position, Vminibuffer_history_variable)
642 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
643 (Vread_buffer_function, Vread_expression_map)
644 (completion_ignore_case, enable_recursive_minibuffers)
645 (history_delete_duplicates, minibuffer_allow_text_properties)
646 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
647 Remove.
648 * marker.c (syms_of_marker): Update.
649 (byte_debug_flag): Remove.
650 * macros.c (syms_of_macros): Update.
651 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
652 * lread.c (syms_of_lread): Update.
653 (Vafter_load_alist, Vbyte_boolean_vars)
654 (Vbytecomp_version_regexp, Vcurrent_load_list)
655 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
656 (Vload_history, Vload_path, Vload_read_function)
657 (Vload_source_file_function, Vload_suffixes, Vobarray)
658 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
659 (Vread_symbol_positions_list, Vread_with_symbol_positions)
660 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
661 (force_load_messages, load_convert_to_unibyte)
662 (load_dangerous_libraries, load_force_doc_strings)
663 (load_in_progress): Remove.
664 * keymap.c (syms_of_keymap): Update.
665 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
666 (Vminibuffer_local_completion_map)
667 (Vminibuffer_local_filename_completion_map)
668 (Vminibuffer_local_filename_must_match_map)
669 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
670 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
671 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
672 Remove.
673 * keyboard.c (syms_of_keyboard): Update.
674 (Vauto_save_timeout, Vcommand_error_function)
675 (Vcommand_hook_internal, Vdeactivate_mark)
676 (Vdeferred_action_function, Vdeferred_action_list)
677 (Vdisable_point_adjustment, Vdouble_click_time)
678 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
679 (Vfunction_key_map, Vglobal_disable_point_adjustment)
680 (Vhelp_char, Vhelp_event_list, Vhelp_form)
681 (Vinput_method_function, Vinput_method_previous_message)
682 (Vkey_translation_map, Vlast_event_frame)
683 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
684 (Vminibuffer_message_timeout, Voverriding_local_map)
685 (Voverriding_local_map_menu_flag, Vpost_command_hook)
686 (Vpre_command_hook, Vprefix_help_command)
687 (Vsaved_region_selection, Vselect_active_regions)
688 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
689 (Vthis_command, Vthis_command_keys_shift_translated)
690 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
691 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
692 (Vtty_erase_char, Vunread_command_events)
693 (Vunread_input_method_events, Vunread_post_input_method_events)
694 (auto_save_interval, cannot_suspend, do_mouse_tracking)
695 (double_click_fuzz, extra_keyboard_modifiers)
696 (inhibit_local_menu_bar_menus, last_command_event)
697 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
698 (menu_prompting, meta_prefix_char, num_input_keys)
699 (num_nonmacro_input_events, polling_period, unread_command_char):
700 Remove.
701 * insdel.c (syms_of_insdel): Update.
702 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
703 * indent.c (syms_of_indent): Update.
704 (indent_tabs_mode): Remove.
705 * image.c (syms_of_image): Update.
706 (Vimage_cache_eviction_delay, Vimage_types)
707 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
708 (cross_disabled_images): Remove.
709 * fringe.c (syms_of_fringe): Update.
710 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
711 * frame.c (syms_of_frame): Update.
712 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
713 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
714 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
715 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
716 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
717 Remove.
718 * fontset.c (syms_of_fontset): Update.
719 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
720 (Vfontset_alias_alist, Vignore_relative_composition)
721 (Votf_script_alist, Vuse_default_ascent)
722 (Vvertical_centering_font_regexp): Remove.
723 * font.c (syms_of_font): Update.
724 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
725 (Vfont_weight_table, Vfont_width_table): Remove.
726 * fns.c (syms_of_fns): Update.
727 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
728 * filelock.c (syms_of_filelock): Update.
729 (Vtemporary_file_directory): Remove.
730 * fileio.c (syms_of_fileio): Update.
731 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
732 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
733 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
734 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
735 (Vinhibit_file_name_operation, Vset_auto_coding_function)
736 (Vwrite_region_annotate_functions)
737 (Vwrite_region_annotations_so_far)
738 (Vwrite_region_post_annotation_function)
739 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
740 (Vw32_get_true_file_attributes): Remove declaration.
741 * eval.c (syms_of_eval): Update.
742 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
743 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
744 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
745 (debug_on_next_call, debug_on_quit, debugger_may_continue)
746 (max_lisp_eval_depth, max_specpdl_size): Remove.
747 * emacs.c (syms_of_emacs): Update.
748 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
749 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
750 (Vinstallation_directory, Vinvocation_directory)
751 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
752 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
753 (Vsystem_configuration, Vsystem_configuration_options)
754 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
755 (inhibit_x_resources, noninteractive1): Remove.
756 * editfns.c (syms_of_editfns): Update.
757 (Vbuffer_access_fontified_property)
758 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
759 (Voperating_system_release, Vsystem_name, Vuser_full_name)
760 (Vuser_login_name, Vuser_real_login_name): Remove.
761 * dosfns.c (syms_of_dosfns): Update.
762 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
763 (dos_codepage, dos_country_code, dos_decimal_point)
764 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
765 (dos_super_key, dos_timezone_offset): Remove.
766 * doc.c (syms_of_doc): Update.
767 (Vbuild_files, Vdoc_file_name): Remove.
768 * dispnew.c (syms_of_display): Update.
769 (Vglyph_table, Vinitial_window_system)
770 (Vredisplay_preemption_period, Vstandard_display_table)
771 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
772 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
773 * dired.c (syms_of_dired): Update.
774 (Vcompletion_ignored_extensions): Remove.
775 (Vw32_get_true_file_attributes): Remove declaration.
776 * dbusbind.c (syms_of_dbusbind): Update.
777 (Vdbus_debug, Vdbus_registered_buses)
778 (Vdbus_registered_objects_table): Remove.
779 * data.c (syms_of_data): Update.
780 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
781 * composite.c (syms_of_composite): Update.
782 (Vauto_composition_function, Vauto_composition_mode)
783 (Vcompose_chars_after_function, Vcomposition_function_table):
784 Remove.
785 * coding.c (syms_of_coding): Update.
786 (Vcharset_revision_table, Vcoding_category_list)
787 (Vcoding_system_alist, Vcoding_system_for_read)
788 (Vcoding_system_for_write, Vcoding_system_list)
789 (Vdefault_process_coding_system, Venable_character_translation)
790 (Vfile_coding_system_alist, Vlast_code_conversion_error)
791 (Vlast_coding_system_used, Vlatin_extra_code_table)
792 (Vlocale_coding_system, Vnetwork_coding_system_alist)
793 (Vprocess_coding_system_alist)
794 (Vselect_safe_coding_system_function)
795 (Vstandard_translation_table_for_decode)
796 (Vstandard_translation_table_for_encode)
797 (Vtranslation_table_for_input, coding_system_require_warning)
798 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
799 (eol_mnemonic_unix, inherit_process_coding_system)
800 (inhibit_eol_conversion, inhibit_iso_escape_detection)
801 (inhibit_null_byte_detection): Remove.
802 * cmds.c (syms_of_cmds): Update.
803 (Vpost_self_insert_hook): Remove.
804 * charset.c (syms_of_charset): Update.
805 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
806 (inhibit_load_charset_map): Remove.
807 * character.c (syms_of_character): Update.
808 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
809 (Vchar_width_table, Vprintable_chars)
810 (Vscript_representative_chars, Vtranslation_table_vector)
811 (Vunicode_category_table): Remove.
812 * ccl.c (syms_of_ccl): Update.
813 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
814 (Vtranslation_hash_table_vector): Remove.
815 * category.c (syms_of_category): Update.
816 (Vword_combining_categories, Vword_separating_categories): Remove.
817 * callproc.c (syms_of_callproc): Update.
818 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
819 (Vexec_directory, Vexec_path, Vexec_suffixes)
820 (Vinitial_environment, Vprocess_environment)
821 (Vshared_game_score_directory, Vshell_file_name): Remove.
822 * callint.c (syms_of_callint): Update.
823 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
824 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
825 * bytecode.c (syms_of_bytecode): Update.
826 (Vbyte_code_meter, byte_metering_on): Remove.
827 * buffer.c (syms_of_buffer): Update.
828 (Vafter_change_functions, Vbefore_change_functions)
829 (Vchange_major_mode_hook, Vfirst_change_hook)
830 (Vinhibit_read_only, Vkill_buffer_query_functions)
831 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
832 * alloc.c (syms_of_alloc): Update.
833 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
834 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
835 (cons_cells_consed, floats_consed, garbage_collection_messages)
836 (gc_cons_threshold, gcs_done, intervals_consed)
837 (misc_objects_consed, pure_bytes_used, string_chars_consed)
838 (strings_consed, symbols_consed, vector_cells_consed): Remove.
839
840 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
841 (DEFVAR_INT): Assume global is in `globals'.
842 * alloc.c (globals): Define.
843
844 2011-01-18 Tom Tromey <tromey@redhat.com>
845
846 * image.c (Vimagemagick_render_type): Remove redundant
847 definition.
848
849 2011-01-18 Tom Tromey <tromey@redhat.com>
850
851 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
852 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
853 (redisplay_window): Update.
854 (syms_of_xdisp): Update.
855
856 2011-01-18 Tom Tromey <tromey@redhat.com>
857
858 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
859 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
860 Declare.
861 * gtkutil.c (xg_uses_old_file_dialog):
862 (xg_get_file_with_chooser):
863 (xg_tool_bar_detach_callback): Don't redeclare globals.
864
865 2011-01-18 Tom Tromey <tromey@redhat.com>
866
867 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
868 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
869
870 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
871
872 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
873 defined __GNUC__. ../configure now checks for this GCC feature,
874 which is now also supported by IBM and Oracle compilers.
875 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
876 since Solaris malloc returns mult-of-8.
877
878 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
879
880 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
881
882 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
883
884 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
885 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
886 * data.c (Fnumber_to_string): Use it.
887 * print.c (float_to_string, print_object): Likewise.
888
889 Include <unistd.h> unilaterally.
890 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
891 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
892 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
893 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
894 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
895 * xterm.c:
896 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
897 unistd.h is always present now, possibly supplied by gnulib.
898
899 * mktime.c: Remove; moving to ../lib.
900
901 Use gnulib's mktime module.
902 * deps.mk (mktime.o): Remove rule.
903
904 Use gnulib's ftoastr module.
905 * print.c: Include ftoastr.h.
906 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
907 Remove; no longer needed.
908 (float_to_string): Use dtoastr rather than rolling our own code,
909 which had an off-by-one bug on non-IEEE hosts.
910
911 Automate syncing from gnulib.
912 * Makefile.in (lib): New macro.
913 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
914 ($(lib)/libgnu.a): New rule.
915 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
916
917 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
918 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
919 so change the type of 'ign' to unsigned int from int.
920
921 * regex.c (analyse_first): Remove unreachable 'continue' statement.
922
923 * xterm.h (struct x_display_info): Remove stray semicolon.
924 The extra semicolon didn't conform to the C standard.
925 Problem reported by Sun cc.
926
927 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
928 These changes make compilation easier to follow with Sun cc.
929 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
930 EMACS_INT values without provoking overflow diagnostics.
931 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
932 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
933 diagnostic with signed left shift.
934
935 * fileio.c (make_temp_name): Remove unreachable code.
936
937 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
938 Previously it was marked by preceding it with "return;", but
939 Sun cc complains about this.
940
941 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
942 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
943 which fixed Bug#2370. Caught by Sun cc.
944
945 2011-01-15 Martin Rudalics <rudalics@gmx.at>
946
947 * window.c (inhibit_point_swap): New variable.
948 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
949 point this time.
950 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
951 of setting selected_window to nil (Bug#7728).
952
953 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
954
955 * image.c (imagemagick_load_image, Finit_image_library):
956 Free intermediate image after creating a MagickWand from it.
957 Terminate MagickWand environment after image loading.
958
959 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
960
961 * dbusbind.c (Fdbus_register_service): Raise an error in case of
962 unexpected return values.
963 (Fdbus_register_method): Remove connection initialization.
964
965 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
966
967 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
968 used by Fdbus_register_service.
969 (QCdbus_request_name_replace_existing): Likewise.
970 (QCdbus_request_name_do_not_queue): Likewise.
971 (QCdbus_request_name_reply_primary_owner): Likewise.
972 (QCdbus_request_name_reply_in_queue): Likewise.
973 (QCdbus_request_name_reply_exists): Likewise.
974 (QCdbus_request_name_reply_already_owner): Likewise.
975 (Fdbus_register_service): New function.
976 (Fdbus_register_method): Use Fdbus_register_service to do the name
977 registration.
978 (syms_of_dbusbind): Add symbols dbus-register-service,
979 :allow-replacement, :replace-existing, :do-not-queue,
980 :primary-owner, :existing, :in-queue and :already-owner.
981
982 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
983
984 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
985 when removing extra buttons.
986
987 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
988
989 * fns.c (Fyes_or_no_p): Doc fix.
990
991 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
992
993 * fns.c (Fyes_or_no_p): Add usage.
994
995 2011-01-08 Glenn Morris <rgm@gnu.org>
996
997 * makefile.w32-in ($(EMACS)):
998 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
999
1000 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1001 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1002
1003 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1004
1005 * image.c (imagemagick_load_image): Fix some resource leaks and
1006 error handling.
1007
1008 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
1009
1010 * fns.c (Fyes_or_no_p): Accept format string args.
1011
1012 2011-01-07 Glenn Morris <rgm@gnu.org>
1013
1014 * emacs.c (no_site_lisp): New int.
1015 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1016 (main): Set no_site_lisp.
1017 (standard_args): Add --no-site-lisp.
1018 * lisp.h (no_site_lisp): New int.
1019 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1020 directories to Vload_path.
1021
1022 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1023
1024 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1025
1026 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1027
1028 * dbusbind.c (Fdbus_register_method): Add optional parameter
1029 dont_register_service. Updated docstring accordingly.
1030
1031 2011-01-04 Glenn Morris <rgm@gnu.org>
1032
1033 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1034
1035 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1036
1037 * image.c (png_jmpbuf): Remove definition.
1038 (my_png_error, png_load): Don't use png_jmpbuf.
1039
1040 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1041
1042 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1043
1044 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1045
1046 * image.c <Qlibpng_version>: New variable.
1047 (syms_of_image): Intern and staticpro it. Set its value to the
1048 version of PNG library we were compiled with.
1049 (my_png_error, png_load): Avoid GCC warnings about direct access
1050 to png_ptr->jmpbuf. (Bug#7716)
1051 (png_jmpbuf): New macro.
1052 (my_png_error, png_load): Use it instead of #ifdef'ing according
1053 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1054
1055 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1056
1057 * .gdbinit (xgetptr): Fix the union+lsb case.
1058 (xbacktrace): Fix the union case.
1059
1060 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1061
1062 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1063 different from selected-window's.
1064
1065 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1066
1067 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1068 equivalent of a menu item when the key sequence is given by the
1069 `:keys' attribute. (Bug#7662)
1070
1071 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1072 the basic faces are supported.
1073
1074 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1075
1076 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1077
1078 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1079
1080 * xdisp.c (Fformat_mode_line): Fix last change.
1081
1082 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1085 faces (Bug#7587).
1086
1087 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1088
1089 * fileio.c (Fexpand_file_name): One more doc fix.
1090
1091 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1092
1093 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1094 image or label in the container.
1095 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1096 (xg_show_toolbar_item): Function deleted.
1097 (xg_tool_item_stale_p): New function.
1098 (update_frame_tool_bar): Calculate tool-bar style once per call.
1099 Instead of hiding text labels, omit them. Don't use
1100 xg_show_toolbar_item; create new GtkToolItems from scratch if
1101 necessary, instead of trying to re-use them. This avoids an
1102 annoying animation when changing tool-bars.
1103
1104 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1105
1106 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1107 title and buffer filename only for RepresentedFilename.
1108 Handle bad UTF-8 in buffer name (Bug#7517).
1109
1110 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1111
1112 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1113
1114 * nsfns.m (ns_set_name_iconic): Remove.
1115 (ns_set_name_internal): New function (Bug#7517).
1116 (Vicon_title_format): Extern declare.
1117 (ns_set_name): Call ns_set_name_internal.
1118 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1119 (x_implicitly_set_name): Ditto.
1120 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1121 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1122
1123 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1124
1125 * window.c (syms_of_window): Add missing defsubr for
1126 window-use-time.
1127
1128 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1129
1130 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1131 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1132
1133 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1134
1135 * buffer.c: Remove unused declarations.
1136 * buffer.h: Likewise.
1137 * charset.h: Likewise.
1138 * composite.h: Likewise.
1139 * dispextern.h: Likewise.
1140 * dispnew.c: Likewise.
1141 * font.h: Likewise.
1142 * fontset.c: Likewise.
1143 * fontset.h: Likewise.
1144 * intervals.h: Likewise.
1145 * keymap.h: Likewise.
1146 * lisp.h: Likewise.
1147 * syntax.c: Likewise.
1148 * syntax.h: Likewise.
1149 * termhooks.h: Likewise.
1150 * window.h: Likewise.
1151 * xsettings.h: Likewise.
1152 * xterm.c: Likewise.
1153 * xterm.h: Likewise.
1154
1155 * chartab.c (sub_char_table_ref): Make static.
1156 * dispnew.c (line_hash_code, required_matrix_height)
1157 (required_matrix_width): Likewise.
1158 * eval.c (interactive_p, apply_lambda): Likewise.
1159 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1160 Likewise.
1161 * font.c (QCadstyle, QCregistry, font_make_spec)
1162 (font_parse_fcname, font_encode_char, font_at): Likewise.
1163 * frame.c (x_frame_get_arg): Likewise.
1164 * keymap.c (get_keyelt): Likewise.
1165 * lread.c (read_filtered_event): Likewise.
1166 * print.c (write_string_1): Likewise.
1167 * window.c (delete_window, window_height, window_width)
1168 (foreach_window): Likewise.
1169 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1170 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1171 (xembed_send_message): Likewise.
1172
1173 * eval.c (run_hook_list_with_args): Delete.
1174 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1175 * terminal.c (get_terminal_param): Likewise.
1176 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1177
1178 * scroll.c: Fix comment.
1179
1180 * dispnew.c (add_window_display_history)
1181 (add_frame_display_history, glyph_row_slice_p)
1182 (find_glyph_row_slice, flush_stdout)
1183 (check_matrix_pointer_lossage, matrix_row)
1184 (check_matrix_invariants, check_window_matrix_pointers)
1185 (check_matrix_pointers, window_to_frame_vpos)
1186 (window_to_frame_hpos): Prototize.
1187 * textprop.c (erase_properties): Likewise.
1188
1189 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1190
1191 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1192 (print_preprocess): Fix handling of uninterned symbols in last change.
1193
1194 * print.c (print, print_preprocess, print_object): Use a hash table
1195 rather than a linear table for Vprint_number_table.
1196
1197 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1198
1199 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1200
1201 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1202
1203 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1204 (parse_tool_bar_item): Use it to obtain image separators for
1205 displays not using native tool-bar separators.
1206
1207 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1208 specially, since this is now done in parse_tool_bar_item.
1209
1210 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1211
1212 Minor clean up to silence some gcc warnings.
1213 * window.c (Fset_window_buffer):
1214 * xterm.c (x_set_frame_alpha): Restructure code to silence
1215 compiler warning.
1216 (handle_one_xevent): Remove unused var `p'.
1217 (do_ewmh_fullscreen): Remove unused var `lval'.
1218 (xembed_set_info): Remove unused var `atom'.
1219 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1220 compiler warning.
1221 * fontset.c (fontset_id_valid_p, dump_fontset):
1222 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1223 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1224 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1225 label only when it's used.
1226 * image.c (x_create_bitmap_from_xpm_data):
1227 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1228 its callers.
1229 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1230 `consumed_chars'.
1231 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1232 (decode_coding_emacs_mule): Remove unused label `retry'.
1233 (detect_eol): Add parens to silence compiler warning.
1234 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1235 it's used to silence the compiler.
1236 (make_number): Modernize k&r declaration.
1237 (mark_char_table): Add parens to silence compiler warning.
1238
1239 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1240
1241 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1242 tool-bar maps.
1243 (menu_separator_name_p): New function, from gtkutil.c.
1244 (separator_names): Move from gtkutil.c.
1245
1246 * keyboard.h (menu_separator_name_p): Add prototype.
1247
1248 * gtkutil.c (XG_BIN_CHILD): New macro.
1249 (xg_get_menu_item_label, xg_update_menubar)
1250 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1251 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1252 (separator_names, xg_separator_p): Move to keyboard.c.
1253 (create_menus, xg_update_submenu, update_frame_tool_bar):
1254 Use menu_separator_name_p.
1255
1256 * nsmenu.m (name_is_separator): Function deleted.
1257 (addItemWithWidgetValue): Use menu_separator_name_p.
1258
1259 * w32menu.c (name_is_separator): Function deleted.
1260 (add_menu_item): Use menu_separator_name_p.
1261
1262 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1263
1264 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1265 same as the background, use the face forground as cursor.
1266
1267 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1268
1269 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1270
1271 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1272
1273 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1274 (face_before_or_after_it_pos, next_element_from_string)
1275 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1276 calculations of maximum string length before calling
1277 string_char_and_length and STRING_CHAR_AND_LENGTH.
1278 (string_char_and_length): Update commentary: MAXLEN is no longer
1279 needed.
1280
1281 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1282
1283 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1284 as (Qsave_session arg).
1285
1286 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1287 (smc_die_CB): Make an event with arg Qt.
1288 (Fhandle_save_session): If event has Qt as argument,
1289 call Fkill_emacs (Bug#7552).
1290
1291 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1292
1293 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1294
1295 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1296
1297 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1298
1299 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1300
1301 * dispextern.h (struct it): New member overlay_strings_charpos.
1302
1303 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1304 charpos where we computed n_overlay_strings.
1305 (next_overlay_string): Load overlay strings at recorded position,
1306 which may not be the same as the iterator's charpos (Bug#7016).
1307
1308 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1309
1310 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1311 obscured due to a vscroll (Bug#7537).
1312
1313 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
1314
1315 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1316
1317 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1318 Use FRAME_TOOLBAR_HEIGHT.
1319 (x_set_offset): Handle XNegative and YNegative in
1320 f->size_hint_flags (Bug#7510).
1321
1322 2010-12-11 Eli Zaretskii <eliz@gnu.org>
1323
1324 * w32fns.c (Fx_show_tip): Call try_window with last argument
1325 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1326 solved. Round up the tip height to an integral multiple of the
1327 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1328 (Bug#7398)
1329
1330 2010-12-08 Glenn Morris <rgm@gnu.org>
1331
1332 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1333
1334 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1335
1336 * xml.c (parse_region): Ignore blank HTML nodes.
1337 (make_dom): Return CDATA sections (like <style>foo</style>) as
1338 text nodes.
1339
1340 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1341
1342 * lread.c (read1): Allow newstyle unquote outside of backquote.
1343 Disallow old-style backquotes inside new-style backquotes.
1344 Don't count unquotes to figure out when we're "syntactically inside
1345 but semantically outside of a backquote" any more.
1346 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1347 to all contexts.
1348
1349 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
1350
1351 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1352
1353 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1354
1355 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1356 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1357 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1358
1359 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1360
1361 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1362 bit-field.
1363 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1364 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1365 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1366 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1367 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1368 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1369 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1370 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1371 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1372 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1373 * m/hp800.h: Remove file.
1374 * m/mips.h: Remove file.
1375
1376 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1377
1378 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1379 with cursor color and draw a rectangle around the image (Bug#7412).
1380
1381 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1382
1383 * frame.c (x_set_font): Remove unused variable.
1384
1385 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1386
1387 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1388
1389 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1390 drawing text under filled box cursor (Bug#7479).
1391
1392 2010-11-27 Kenichi Handa <handa@m17n.org>
1393
1394 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1395 i.e. integer.
1396 (Fdefine_charset_internal): Adjust for the above change.
1397 (init_charset_once): Likewise.
1398
1399 * charset.h (emacs_mule_charset): Adjust the prototype.
1400 Delete duplicated extern.
1401
1402 * coding.c (emacs_mule_char): Adjust for the change of
1403 emacs_mule_charset.
1404
1405 * lread.c (read_emacs_mule_char): Adjust for the change of
1406 emacs_mule_charset.
1407
1408 2010-11-27 Eli Zaretskii <eliz@gnu.org>
1409
1410 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1411 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1412
1413 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1414
1415 * alloc.c (mark_terminals): Ensure that the image cache is marked
1416 even if the terminal object was marked earlier (Bug#6301).
1417
1418 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
1419
1420 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1421
1422 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
1423
1424 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1425 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1426 Use 23 as menubar height if 0. (Bug#7425).
1427
1428 2010-11-26 Eli Zaretskii <eliz@gnu.org>
1429
1430 * xdisp.c (set_message_1): Force paragraph direction in echo area
1431 be left-to-right.
1432
1433 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1434 when the click is on the header or mode line.
1435
1436 2010-11-25 Eli Zaretskii <eliz@gnu.org>
1437
1438 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1439 `cursor' property of the first character in overlay strings.
1440 (Bug#7474) (Bug#7481)
1441
1442 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1443
1444 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1445 (NSLeftAlternateKeyMask): New defines.
1446 (keyDown): Parse left and right keys separately (Bug#7458).
1447 Compare Left key masks exactly (Bug#7458).
1448
1449 2010-11-23 Eli Zaretskii <eliz@gnu.org>
1450
1451 * intervals.c (temp_set_point_both): Define before calling, to
1452 avoid GCC warnings.
1453
1454 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1455
1456 * nsmenu.m: Use #include <config.h> instead of "config.h".
1457
1458 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1459 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1460 Move declarations ...
1461 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1462 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1463 ... here.
1464
1465 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1466 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1467 (gdb_pvec_type):
1468 * print.c (print_output_debug_flag):
1469 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1470 (safe_debug_print): New declaration.
1471
1472 * xterm.c:
1473 * systty.h:
1474 * sound.c: Include <sys/ioctl.h> unconditionally.
1475
1476 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1477
1478 * alloc.c (mark_maybe_object): Return early if given a Lisp
1479 integer (Bug#6301).
1480
1481 2010-11-21 Ken Brown <kbrown@cornell.edu>
1482
1483 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1484
1485 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1486
1487 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1488 Define (Bug#7458).
1489 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1490 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1491 NSRightControlKeyMask also (Bug#7458).
1492 (keyDown): Ditto (Bug#7458).
1493 (syms_of_nsterm): Defvar ns-right-command-modifier and
1494 ns-right-control-modifier (Bug#7458).
1495
1496 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1497
1498 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1499 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1500
1501 * intervals.h (temp_set_point, temp_set_point_both):
1502 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1503
1504 2010-11-20 Ken Brown <kbrown@cornell.edu>
1505
1506 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1507
1508 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1509
1510 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1511 \xNNNNNN for hex-code display of glyphless characters.
1512
1513 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1514
1515 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1516 Set important to ! vert_only.
1517 (xg_show_toolbar_item): Don't show label horizontally if
1518 tool item isn't important.
1519 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1520 xg_make_tool_item, or update important on existing tool item.
1521
1522 * keyboard.c (QCvert_only): New variable.
1523 (parse_tool_bar_item): Check for QCvert_only.
1524 (syms_of_keyboard): Initialize QCvert_only.
1525
1526 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1527
1528 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1529
1530 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1531 same in-line.
1532
1533 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1534
1535 * xfaces.c (lookup_face): Make static.
1536 * dispnew.c (copy_row_except_pointers): Likewise.
1537 * syntax.c (dec_bytepos): Likewise.
1538 (inc_bytepos): Remove.
1539 * dispextern.h (lookup_face): Remove declaration.
1540
1541 2010-11-19 Eli Zaretskii <eliz@gnu.org>
1542
1543 * xdisp.c (set_cursor_from_row): Display cursor after all the
1544 glyphs that come from an overlay. Don't overstep the last glyph
1545 when skipping glyphs from an overlay. (Bug#6687)
1546
1547 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1548
1549 * alloc.c (refill_memory_reserve): Move declaration ...
1550 * lisp.h (refill_memory_reserve): ... here.
1551
1552 * strftime.c (_strftime_copytm): Add declaration.
1553
1554 * callproc.c (syms_of_callproc): Use intern_c_string.
1555
1556 Move declarations from .c files to .h files.
1557 * process.c (timers_run):
1558 * minibuf.c (quit_char):
1559 * lread.c (read_emacs_mule_char):
1560 * keyboard.c (minibuf_level, message_enable_multibyte)
1561 (pending_malloc_warning):
1562 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1563 (Qonly): Remove declarations.
1564 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1565 (Vselect_active_regions):
1566 * keyboard.h (timers_run): Add declarations.
1567
1568 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1569 (tm_diff): Convert definitions to standard C.
1570 (extra_args_spec_iso): Remove, unused.
1571
1572 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
1573
1574 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1575
1576 * config.in (HAVE_G_TYPE_INIT): New symbol.
1577
1578 2010-11-18 Eli Zaretskii <eliz@gnu.org>
1579
1580 * lread.c (Fload): Mention `load-in-progress' and
1581 `load-file-name'. (Bug#7346)
1582
1583 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1584 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1585 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1586 subprocesses. Use buffer_free only ifdef subprocesses.
1587
1588 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1589 the subprocesses version, not in the non-subprocesses one.
1590
1591 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1592
1593 2010-11-17 Eli Zaretskii <eliz@gnu.org>
1594
1595 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1596 lines on text-mode terminals. (bug#7417)
1597
1598 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1599
1600 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1601 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1602
1603 2010-11-17 Kenichi Handa <handa@m17n.org>
1604
1605 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1606 change (set charset-ID list instead of charset-symbol list).
1607
1608 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
1609
1610 * keyboard.c (make_lispy_position): For text area clicks, record Y
1611 pixel position relative to the text area, excluding header line.
1612 Also change X and Y to Lisp_Objects, not pointers; don't return
1613 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1614 buffer_posn_from_coords counting from the start of the text area.
1615 (Fposn_at_x_y, make_lispy_event): Callers changed.
1616
1617 * window.c (coordinates_in_window): Change X and Y to ints rather
1618 than pointers; don't return coordinates via pointers.
1619 (struct check_window_data): Change X and Y from pointers to ints.
1620 (window_from_coordinates): Remove args WX and WY; don't return
1621 coordinates via pointers.
1622 (Fcoordinates_in_window_p, window_from_coordinates):
1623 (check_window_containing, Fwindow_at): Callers changed.
1624 (window_relative_x_coord): New function.
1625
1626 * window.h (window_from_coordinates, window_relative_x_coord):
1627 Update prototypes.
1628
1629 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1630 the start of the text area.
1631
1632 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1633 call. Use window_relative_x_coord.
1634 (note_mouse_highlight): Change window_from_coordinates call.
1635
1636 * w32term.c (w32_read_socket):
1637 * msdos.c (dos_rawgetc):
1638 * xterm.c (handle_one_xevent): Likewise.
1639
1640 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1641
1642 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1643 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1644 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1645 Convert definitions to standard C.
1646 * regex.c: Do not include <stdlib.h>, config.h does it.
1647 Include unistd.h.
1648 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1649 (regerror, regfree): Convert definitions to standard C.
1650 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1651 (__mktime_internal): Convert definitions to standard C.
1652
1653 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1654
1655 * w32proc.c:
1656 * w32inevt.c:
1657 * w32heap.c:
1658 * w32.c: Remove config.h include guards.
1659
1660 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1661 No code changes.
1662
1663 * process.c: Include <sys/ioctl.h> unconditionally,
1664 keyboard.c already does it.
1665
1666 * keyboard.c (pending_malloc_warning): Add const to match
1667 definition in alloc.c.
1668 (Fset_input_interrupt_mode): Simplify #ifdefs.
1669
1670 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1671
1672 Clean up systty.h macros.
1673 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1674 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1675 definition in all uses.
1676 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1677 * sysdep.c (discard_tty_input, child_setup_tty)
1678 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1679 * emacs.c (shut_down_emacs):
1680 * callproc.c (child_setup):
1681 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1682
1683 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1684
1685 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1686
1687 * w32fns.c (Fx_create_frame):
1688 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1689 resource here; it's now done at startup.
1690
1691 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1692
1693 * xterm.c (set_wm_state): Add Qnil to final cons.
1694
1695 * xselect.c (x_send_client_event): Remove unused variables cons and
1696 size.
1697
1698 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1699
1700 * keyboard.c (modify_event_symbol) : Add const to array elements of
1701 arg NAME_TABLE.
1702 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1703 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1704 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1705 Add const to array elements.
1706 (scroll_bar_parts): Make static. Fix position of const.
1707
1708 * w32fns.c (lispy_function_keys): Add const to extern.
1709
1710 * w32inevt.c (lispy_function_keys): Likewise.
1711
1712 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1713
1714 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1715 resource here; it's now done at startup.
1716
1717 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1718
1719 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
1720
1721 Fix compilation on Solaris.
1722 * sysdep.c: Do not #include <term.h>.
1723 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1724
1725 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1726
1727 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1728
1729 * xterm.c (set_wm_state): Don't put Atom in cons, call
1730 make_fixnum_or_float on them first.
1731 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1732 Xatom_net_supported correctly.
1733
1734 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1735 (Fx_send_client_event): to here.
1736
1737 2010-11-13 Martin Rudalics <rudalics@gmx.at>
1738
1739 * window.c (Fwindow_use_time): New function.
1740
1741 2010-11-13 Eli Zaretskii <eliz@gnu.org>
1742
1743 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1744 zero-width characters.
1745
1746 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1747
1748 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1749 box before drawing the glyphs inside it.
1750
1751 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1752
1753 * dispextern.h (enum glyphless_display_method):
1754 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1755 All users changed.
1756
1757 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1758 Fix comments.
1759 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1760 whitespace in "[]", to simulate a box. Don't use uninitialized
1761 variable `width'.
1762
1763 2010-11-11 Julien Danjou <julien@danjou.info>
1764
1765 * xsettings.c (init_xsettings): Use already fetch atoms.
1766
1767 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1768 from dpyinfo.
1769
1770 * xselect.c (Fx_send_client_event): Split and create
1771 x_send_client_event.
1772
1773 * lisp.h: Do not EXFUN Fx_send_client_event.
1774
1775 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1776 from dpyinfo.
1777 (wm_supports): Use atoms from dpyinfo.
1778 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1779 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1780 (xembed_set_info): Use atoms from dpyinfo.
1781 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1782 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1783 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1784 Get all atoms in one round-trip.
1785 (set_wm_state): Use x_send_client_event rather than
1786 Fx_send_client_event, using Atom directly.
1787 (x_ewmh_activate_frame): Ditto.
1788 (x_set_sticky): Pass atoms to set_wm_state.
1789 (do_ewmh_fullscreen): Ditto.
1790
1791
1792 * xterm.h (x_display_info): Add Xatom_net_supported,
1793 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1794 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1795
1796 * xfns.c (Fx_show_tip): Fix typo in docstring.
1797
1798 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1799
1800 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1801 it's not negative.
1802
1803 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1804
1805 * font.c (font_filter_properties): Add const to array elements of
1806 properties args.
1807
1808 * font.h (font_filter_properties): Likewise.
1809
1810 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1811 elements.
1812
1813 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1814
1815 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
1816
1817 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1818 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1819 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1820 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1821 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1822
1823 2010-11-10 Glenn Morris <rgm@gnu.org>
1824
1825 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1826
1827 2010-11-09 Eli Zaretskii <eliz@gnu.org>
1828
1829 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
1830
1831 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
1832
1833 * image.c (free_image): Don't garbage the frame here, since this
1834 function can be called while redisplaying (Bug#7210).
1835 (uncache_image): Garbage the frame here (Bug#6426).
1836
1837 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
1838
1839 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1840 parent is the root window. Check this after traversing window tree.
1841
1842 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
1843
1844 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
1845
1846 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1847 before traversing window tree (Bug#5721).
1848
1849 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1850
1851 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1852
1853 * xdisp.c (note_mode_line_or_margin_highlight):
1854 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
1855
1856 2010-11-06 Eli Zaretskii <eliz@gnu.org>
1857
1858 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1859 adjust width of tool-tip frame to the width of text, excluding the
1860 stretch glyph at the beginning of R2L glyph rows.
1861
1862 * w32fns.c (Fx_show_tip): Likewise.
1863
1864 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1865
1866 * nsfont.m: Include termchar for new mouse-highlight.
1867 (nsfont_draw): Use MOUSE_HL_INFO.
1868
1869 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1870
1871 Unify mouse-highlight code for all GUI and TTY sessions.
1872
1873 * term.c: Remove static mouse_face_* variables. All users
1874 changed.
1875 (term_show_mouse_face, term_clear_mouse_face)
1876 (fast_find_position, term_mouse_highlight): Functions deleted.
1877 (tty_draw_row_with_mouse_face): New function.
1878 (term_mouse_movement): Call note_mouse_highlight instead of
1879 term_mouse_highlight.
1880
1881 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1882 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1883 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1884 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1885 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1886 Replace Display_Info with Mouse_HLInfo everywhere where
1887 mouse_face_* members were accessed for mouse highlight purposes.
1888
1889 * xterm.c (x_update_window_begin, x_update_window_end)
1890 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
1891 (handle_one_xevent, x_free_frame_resources, x_term_init):
1892 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
1893 members were accessed for mouse highlight purposes.
1894
1895 * w32term.c (x_update_window_begin, x_update_window_end)
1896 (x_update_end, w32_read_socket, x_free_frame_resources)
1897 (w32_initialize_display_info): Replace Display_Info with
1898 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1899 for mouse highlight purposes.
1900
1901 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1902 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1903 unless the frame is on a window-system.
1904 (get_tool_bar_item, handle_tool_bar_click)
1905 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1906 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1907 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1908 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1909 Replace Display_Info with Mouse_HLInfo everywhere where
1910 mouse_face_* members were accessed for mouse highlight purposes.
1911 (coords_in_mouse_face_p): Move prototype out of the
1912 HAVE_WINDOW_SYSTEM conditional.
1913 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1914 HAVE_WINDOW_SYSTEM block.
1915 (try_window_id) [HAVE_GPM || MSDOS]:
1916 Call x_clear_window_mouse_face.
1917 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
1918 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1919 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1920 calling draw_glyphs directly.
1921 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1922 (cursor_in_mouse_face_p, rows_from_pos_range)
1923 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1924 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1925 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1926 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1927 fragments.
1928 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1929 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1930 integer.
1931 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
1932 (x_consider_frame_title, tool_bar_lines_needed):
1933 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
1934 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1935 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1936 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1937 part.
1938
1939 * dispnew.c (mirror_make_current): Set Y coordinate of the
1940 mode-line and header-line rows.
1941 (init_display): Setup initial frame's output_data for text
1942 terminal frames.
1943
1944 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1945 its own definition on msdos.c.
1946
1947 * msdos.c (show_mouse_face, clear_mouse_face)
1948 (fast_find_position, IT_note_mode_line_highlight)
1949 (IT_note_mouse_highlight): Functions deleted.
1950 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1951 instead of IT_note_mouse_highlight.
1952 (draw_row_with_mouse_face, popup_activated): New functions.
1953 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1954 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1955 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1956 where mouse_face_* members were accessed for mouse highlight
1957 purposes.
1958
1959 * msdos.h (initialize_msdos_display): Add prototype.
1960
1961 * frame.h (MOUSE_HL_INFO): New macro.
1962
1963 * lisp.h (Mouse_HLInfo): New data type.
1964
1965 * xterm.h (struct x_display_info):
1966 * w32term.h (struct w32_display_info):
1967 * nsterm.h (struct ns_display_info):
1968 * termchar.h (struct tty_display_info): Use it instead of
1969 mouse_face_* members.
1970
1971 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1972 1st argument.
1973 (frame_to_window_pixel_xy, note_mouse_highlight)
1974 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1975 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1976 HAVE_WINDOW_SYSTEM conditional.
1977 (draw_row_with_mouse_face): Declare prototype.
1978 (tty_draw_row_with_mouse_face): Declare prototype.
1979
1980 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1981
1982 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1983 Remove unused variables.
1984
1985 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1986
1987 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
1988 logic pointed out by Eli Zaretskii.
1989
1990 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
1991
1992 * coding.c (coding-category-list): Refer to set-coding-system-priority
1993 instead of the obsolete set-coding-priority in the doc string.
1994
1995
1996 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1997
1998 * nsfont.m (nsfont_draw): Correct previous patch to return
1999 correct value.
2000 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2001 don't change the method signature, change the return.
2002
2003 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
2004
2005 * nsfont.m (nsfont_draw)
2006 * nsimage.m (EmacsImage-setXBMColor:)
2007 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
2008
2009 2010-11-03 Julien Danjou <julien@danjou.info>
2010
2011 * image.c (gif_load): Add support for transparency and specified
2012 :background.
2013
2014 2010-11-01 Kenichi Handa <handa@m17n.org>
2015
2016 * dispextern.h (lookup_glyphless_char_display): Extern it.
2017
2018 * termhooks.h (struct terminal): New member charset_list.
2019
2020 * coding.c (Fset_terminal_coding_system_internal): Set the
2021 `charset_list' member of struct terminal.
2022
2023 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2024 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2025
2026 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2027 (lookup_glyphless_char_display): Set it->what at the end.
2028 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2029 (last_glyphless_glyph_merged_face_id): Make them non-static.
2030
2031 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2032 Fix the arg with_background for font->driver->draw.
2033
2034 2010-11-01 Kenichi Handa <handa@m17n.org>
2035
2036 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2037 Surround chp by parentheses.
2038
2039 2010-11-01 Kenichi Handa <handa@m17n.org>
2040
2041 Implement various display methods for glyphless characters.
2042
2043 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2044 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2045 (Qzero_width): New variables.
2046 (THIN_SPACE_WIDTH): New macro.
2047 (lookup_glyphless_char_display): New funciton.
2048 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2049 (last_glyphless_glyph_merged_face_id): New variables.
2050 (get_next_display_element): Check glyphless characters.
2051 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2052 last_glyphless_glyph_face_id.
2053 (fill_glyphless_glyph_string): New function.
2054 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2055 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2056 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2057 (x_produce_glyphs): If a suitable font is not found, produce a
2058 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2059 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2060 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2061 Qzero_width.
2062 (Vglyphless_char_display): Declare it as a Lisp variable.
2063
2064 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2065 (struct glyph): Change the size of the member "type" to 3.
2066 Add glyphless to the union slice and u.
2067 (enum display_element_type): Add IT_GLYPHLESS.
2068 (enum glyphless_display_method): New enum.
2069 (struct it): New member glyphless_method.
2070 (Vglyphless_char_display): Extern it.
2071
2072 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2073 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2074
2075 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2076 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2077
2078 * nsterm.m (ns_draw_glyph_string): Handle the case
2079 GLYPHLESS_GLYPH (the detail is not yet implemented).
2080
2081 2010-10-31 Glenn Morris <rgm@gnu.org>
2082
2083 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2084
2085 * frame.c (syms_of_frame) <tool-bar-mode>:
2086 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2087
2088 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2089
2090 * xterm.c (x_connection_closed): Print informative error message
2091 when aborting on GTK. This requires using shut_down_emacs
2092 directly instead of Fkill_emacs.
2093
2094 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2095
2096 * emacs.c (main): Call syms_of_filelock unconditionally.
2097
2098 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2099 clause, but keep part of it conditioned on CLASH_DETECTION.
2100
2101 2010-10-29 Glenn Morris <rgm@gnu.org>
2102
2103 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2104 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2105 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2106 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2107 Sync docs between X, W32, NS.
2108
2109 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2110 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2111
2112 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2113
2114 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2115 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2116
2117 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2118
2119 * cmds.c (internal_self_insert): Don't insert if argument N is
2120 zero or negative. (Bug#7281)
2121
2122 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2123
2124 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2125
2126 2010-10-25 Glenn Morris <rgm@gnu.org>
2127
2128 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2129
2130 2010-10-24 Glenn Morris <rgm@gnu.org>
2131
2132 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2133 (Fx_window_property, Fx_file_dialog):
2134 * xfns.c (Fx_synchronize, Fx_change_window_property)
2135 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2136
2137 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2138
2139 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2140
2141 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2142
2143 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2144
2145 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2146 Deprecate use as a boolean flag.
2147
2148 2010-10-24 Jim Meyering <jim@meyering.net>
2149
2150 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2151
2152 2010-10-24 Glenn Morris <rgm@gnu.org>
2153
2154 * w16select.c (syms_of_win16select) <selection-coding-system>:
2155 <next-selection-coding-system>:
2156 * w32select.c (syms_of_w32select) <selection-coding-system>:
2157 <next-selection-coding-system>:
2158 Sync docs with select.el.
2159
2160 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2161 Lisp version.
2162
2163 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2164 Sync doc with the xterm.c version.
2165
2166 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2167 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2168
2169 2010-10-23 Glenn Morris <rgm@gnu.org>
2170
2171 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2172 * frame.c (syms_of_frame) <menu-bar-mode>:
2173 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2174 <hourglass-delay>: Sync docs with Lisp.
2175
2176 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2177
2178 Implement mouse highlight for bidi-reordered lines.
2179
2180 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2181 (mouse_face_from_string_pos): New function, replaces
2182 fast_find_string_pos.
2183 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2184 (note_mode_line_or_margin_highlight): Support bidi-reordered
2185 strings and R2L glyph rows. Fix comments.
2186 (note_mouse_highlight): When bidi reordering is turned on in a
2187 buffer, call next-single-property-change and
2188 previous-single-property-change with last argument nil.
2189 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2190 glyph that stands for no text beyond the line end.
2191 (row_containing_pos): Don't return too early when CHARPOS is in a
2192 bidi-reordered continued line. Return immediately when the first
2193 hit is found in a line that is not continued, or when an exact
2194 match for CHARPOS is found.
2195 (rows_from_pos_range): New function.
2196 (mouse_face_from_buffer_pos): Use it instead of calling
2197 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2198 function to support mouse highlight in bidi-reordered lines and
2199 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2200 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2201 that the former is always above the latter or identical to it.
2202 (show_mouse_face): Support drawing highlighted R2L lines.
2203 (coords_in_mouse_face_p): New function, bidi-aware.
2204 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2205 Call it instead of comparing with mouse-face members of dpyinfo.
2206 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2207 usage of hpos and vpos.
2208
2209 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2210
2211 * xrdb.c: Include keyboard.h for MOTIF.
2212
2213 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2214 MOTIF (Bug#7263).
2215
2216 * xfns.c: Include Xm/TextF and Xm/List.
2217 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2218 Make ANSI prototypes.
2219
2220 2010-10-22 Glenn Morris <rgm@gnu.org>
2221
2222 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2223 Remove ccl and duplicate mouse.
2224
2225 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2226
2227 * insdel.c (prepare_to_modify_buffer): Don't set
2228 saved-region-selection if modification hooks are disabled.
2229
2230 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2231
2232 * cmds.c (Fdelete_char): Doc fix.
2233
2234 2010-10-19 Ken Brown <kbrown@cornell.edu>
2235
2236 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2237
2238 2010-10-19 Kenichi Handa <handa@m17n.org>
2239
2240 Fix incorrect font metrics when the same font is opened with
2241 different pixelsizes.
2242
2243 * xftfont.c: Include composite.h.
2244 (xftfont_shape): New function.
2245 (syms_of_xftfont): Set xftfont_driver.shape.
2246
2247 2010-10-18 Julien Danjou <julien@danjou.info>
2248
2249 * frame.c (Fframe_pointer_visible_p):
2250 Add `frame-pointer-visible-p' to get the pointer visibility.
2251
2252 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2253
2254 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2255 non-"EAGAIN"-like error to signal to Emacs that the socket should
2256 be closed.
2257
2258 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2259
2260 * unexcoff.c (make_hdr): Fix prototype according to changes in
2261 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2262
2263 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2264
2265 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2266
2267 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2268 made building the X menu fail.
2269 (really-oldXMenu): Fix my previous fix.
2270
2271 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2272
2273 Fix handling of font properties on Windows (bug#6303).
2274 * font.c (font_filter_properties): New function, refactored from
2275 ftfont_filter_properties.
2276 * font.h (font_filter_properties): Declare.
2277 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2278 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2279 (w32font_filter_properties): New function.
2280 (w32font_driver): Add w32font_filter_properties.
2281
2282 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2283
2284 * font.c (Ffont_variation_glyphs):
2285 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2286
2287 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2288
2289 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2290 * w32font.c (w32_generic_family):
2291 * w32inevt.c (key_event):
2292 * w32menu.c (fill_in_menu):
2293 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2294 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2295 * w32term.c (w32_read_socket): Make static.
2296
2297 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2298
2299 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2300 prototypes; all callers changed.
2301
2302 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2303
2304 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2305 (OBJ2): New macro.
2306 (WIN32OBJ, FONTOBJ): Remove.
2307 (OBJ1): Redistribute object files with OBJ2.
2308 (LIBS, $(TEMACS)): Use TLIB2.
2309 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2310 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2311
2312 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2313
2314 * emacs.c (Vdynamic_library_alist)
2315 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2316 Doc fix.
2317
2318 * lisp.h (Vdynamic_library_alist): Declare extern.
2319
2320 * image.c (Vimage_library_alist)
2321 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2322 (lookup_image_type): Use Vdynamic_library_alist.
2323 (Finit_image_library): Doc fix.
2324
2325 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2326
2327 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2328 (lispdir): Remove trailing /, update all uses.
2329
2330 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
2331
2332 * nsterm.m (Qleft): Declare.
2333 (ns_right_alternate_modifier): New variable
2334 (NSRightAlternateKeyMask): New define.
2335 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2336 ns_right_alternate_modifier isn't Qleft.
2337 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2338 as emacs modifier for NSRightAlternateKeyMask.
2339 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2340
2341 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2342
2343 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2344 gnutls is ready, return EAGAIN as the errno.
2345
2346 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2347
2348 * vm-limit.c:
2349 * unexhp9k800.c:
2350 * unexelf.c:
2351 * unexaix.c:
2352 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2353
2354 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2355 (PROFILING_LDFLAGS): Remove, not needed anymore.
2356
2357 * Makefile.in: Use $(...) everywhere instead of ${...}
2358 (CRT_DIR): Move near potential user.
2359 (START_FILE): Move near CRT_DIR, it might use it.
2360
2361 * sysdep.c (LPASS8): Remove, unused.
2362 (emacs_ospeed): Change from being a global to a local in the only
2363 user: init_baud_rate.
2364
2365 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2366
2367 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
2368 (emacs_gnutls_write): Remove the debuggin fsync call.
2369 (emacs_gnutls_read): Return -1 if we got an error from
2370 gnutls_read. This allows us to actually read lots of data from
2371 the GnuTLS stream.
2372 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2373 According to the documentation, this is correct, and it seems to
2374 make things work.
2375
2376 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
2377
2378 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2379
2380 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2381
2382 * keyboard.c: Revert last change; it was not intended to be
2383 synchronized with the trunk.
2384
2385 2010-10-08 Kenichi Handa <handa@m17n.org>
2386
2387 * coding.c (complement_process_encoding_system): Fix previous change.
2388
2389 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2390
2391 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2392 (Fdbus_init_bus): ... here. (Bug#7113)
2393
2394 2010-10-08 Glenn Morris <rgm@gnu.org>
2395
2396 * buffer.c (before-change-functions, after-change-functions):
2397 Three-year overdue doc fix following 2007-08-13 change.
2398
2399 2010-10-08 Kenichi Handa <handa@m17n.org>
2400
2401 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2402 eol-format, inherit from the system's default.
2403 (complement_process_encoding_system): Make a new coding system
2404 inherit the original eol-format.
2405
2406 2010-10-08 Kenichi Handa <handa@m17n.org>
2407
2408 * coding.c (complement_process_encoding_system): New function.
2409
2410 * coding.h (complement_process_encoding_system): Extern it.
2411
2412 * callproc.c (Fcall_process): Complement the coding system for
2413 encoding arguments.
2414 (Fcall_process_region): Complement the coding system for encoding
2415 the input to the process.
2416
2417 * process.c (Fstart_process): Complement the coding system for
2418 encoding arguments.
2419 (send_process): Complement the coding system for encoding what
2420 sent to the process.
2421
2422 2010-10-08 Kenichi Handa <handa@m17n.org>
2423
2424 * xfont.c (xfont_open): Fix setting of font->average_width from
2425 :avgwidth property (Bug#7123).
2426
2427 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2428
2429 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2430 is more portable.
2431
2432 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2433 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2434 has not defined SIGIO.
2435
2436 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
2437
2438 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2439 draw the outermost line using the black relief, for legibility.
2440 Omit drawing the four corner pixels.
2441
2442 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
2443
2444 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2445 (read_key_sequence): Inline echo_prompt.
2446 (echo_dash): Add a dash only if key is continued (Bug#7137).
2447
2448 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2449
2450 Remove O_RDONLY, O_WRONLY definitions, not needed.
2451 * unexcoff.c:
2452 * lread.c:
2453 * fileio.c:
2454 * doc.c:
2455 * callproc.c:
2456 * alloc.c:
2457 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2458
2459 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2460
2461 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2462
2463 * gnutls.c: Add property list symbol holders.
2464 (emacs_gnutls_handshake): Clarify how sockets are passed to
2465 GnuTLS.
2466 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2467 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2468 and keyfiles to be a list of file names. Default to "NORMAL" for
2469 the priority string. Improve logging.
2470
2471 2010-10-03 Glenn Morris <rgm@gnu.org>
2472
2473 * fileio.c (Vdirectory_sep_char): Remove.
2474
2475 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2476
2477 * termhooks.h: Remove #ifdef CONSP.
2478
2479 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2480
2481 Include <fcntl.h> unconditionally.
2482 * termcap.c:
2483 * sysdep.c:
2484 * lread.c:
2485 * keyboard.c:
2486 * filelock.c:
2487 * fileio.c:
2488 * doc.c:
2489 * callproc.c:
2490 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2491 does it.
2492
2493 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2494
2495 * sysdep.c (flush_pending_output): Remove code, does not do
2496 anything on any platform.
2497
2498 Remove unused code.
2499 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2500 Remove select emulation, all systems support select.
2501 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2502 * process.c (create_process): Remove #if 0 code.
2503
2504 Remove unused arguments for unexec.
2505 The third one is never used, and the last two are always passed as zero.
2506 * emacs.c (unexec): Add declaration.
2507 (Fdump_emacs): Only pass the first two arguments to unexec.
2508 Simplify #ifdef.
2509 * unexw32.c (unexec):
2510 * unexsol.c (unexec):
2511 * unexhp9k800.c (unexec):
2512 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2513 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2514 (find_section): Use const.
2515 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2516 (unexec_error): Declare it NO_RETURN.
2517 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2518 it as an argument, remove data_start and entry_address arguments, unused.
2519 (unexec): Remove bss_start, data_start and
2520 entry_address arguments.
2521 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2522 it as an argument, remove data_start and entry_address arguments, unused.
2523 (unexec): Remove bss_start, data_start and
2524 entry_address arguments.
2525
2526 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
2527
2528 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2529
2530 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2531 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2532 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2533 Fix typos in docstrings.
2534 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2535 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2536
2537 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
2538
2539 * keyboard.c (command_loop_1): Make sure the mark is really alive
2540 before using it (Bug#7044).
2541
2542 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2543
2544 * makefile.w32-in (tags): Rename target to full-tags.
2545
2546 2010-10-02 Eli Zaretskii <eliz@gnu.org>
2547
2548 * emacs.c (main): Remove !WINDOWSNT conditional.
2549 (Fkill_emacs): Don't mention exemption on MS-Windows.
2550
2551 2010-10-02 Glenn Morris <rgm@gnu.org>
2552
2553 * character.c (Fchar_bytes): Remove obsolete function.
2554 (syms_of_character): Remove Schar_bytes.
2555
2556 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2557 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2558 in batch-mode.
2559 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2560 (kill-emacs-hook): Doc fix.
2561
2562 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2563
2564 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
2565 (parse_region): Rework to take regions instead of strings, and
2566 renamed to reflect that these are the libxml functions.
2567
2568 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2569
2570 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2571 screen dimensions in tty->Wcm.
2572
2573 * xdisp.c (set_cursor_from_row): When the row is truncated and
2574 point is outside the range of displayed characters, position the
2575 cursor inside the scroll margin. (Bug#6349)
2576
2577 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2578
2579 Do not include stdlib.h and string.h, config.h does it.
2580 * xfont.c:
2581 * w32term.c:
2582 * w32reg.c:
2583 * w32inevt.c:
2584 * w32heap.c:
2585 * w32console.c:
2586 * w16select.c:
2587 * unexsol.c:
2588 * term.c:
2589 * sound.c:
2590 * scroll.c (m):
2591 * gtkutil.c:
2592 * font.c:
2593 * filelock.c:
2594 * fileio.c:
2595 * dosfns.c:
2596 * dbusbind.c:
2597 * bidi.c:
2598 * callproc.c:
2599 * process.c:
2600 * msdos.c:
2601 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2602
2603 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2604 defines it.
2605
2606 * process.c: Move #include <pty.h> earlier.
2607 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2608 (pty_name): Move definition later.
2609
2610 * nsselect.m (syms_of_nsselect):
2611 * nsmenu.m (syms_of_nsmenu):
2612 * nsfns.m (syms_of_nsfns):
2613 * msdos.c (syms_of_msdos):
2614
2615 * image.c (syms_of_image):
2616 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2617
2618 * point.h: Remove, unused.
2619
2620 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2621
2622 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2623 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2624 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2625
2626 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2627
2628 * xml.c (parse_string): Use const.
2629
2630 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2631
2632 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2633 Also only override Vprint_level if it isn't already bound, and increase
2634 the level to 8 to produce more useful backtraces for bug reports.
2635
2636 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2637
2638 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2639
2640 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
2641
2642 * w32console.c (vga_stdcolor_name): Remove unused function;
2643 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2644
2645 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2646
2647 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2648 (Fgnutls_boot): Start the handshake.
2649 (emacs_gnutls_read): Perform the handshake from the reader loop.
2650 (Fgnutls_boot): Remove some debugging messages.
2651 Change indentation throughout to use the Emacs style.
2652 (emacs_gnutls_handshake): Cast the fds to something that's
2653 possibly the expected length.
2654 (emacs_gnutls_write): Return -1 if we try to write before handshake.
2655
2656 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2657
2658 * process.c (make_process): Set the gnutls_p field to zero by
2659 default.
2660 (read_process_output): Always call the gnutls_read function if the
2661 stream is a gnutls stream.
2662 (send_process): Ditto for writes.
2663
2664 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2665 or write anything until the state is GNUTLS_STAGE_READY.
2666 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2667
2668 2010-09-29 Eli Zaretskii <eliz@gnu.org>
2669
2670 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2671 NEUTRAL_DIR.
2672 (handle_invisible_prop, iterate_out_of_display_property)
2673 (next_element_from_buffer): If bidi_it.first_elt is set, call
2674 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2675 (Bug#7128)
2676
2677 * print.c (print_object): Fix format string and argument types for
2678 printing a Lisp_Misc_Marker.
2679
2680 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2681 (load_overlay_strings, get_overlay_strings_1)
2682 (get_overlay_strings, forward_to_next_line_start)
2683 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2684 (get_next_display_element, next_element_from_string)
2685 (next_element_from_c_string, next_element_from_buffer)
2686 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2687 (message_dolog, message_log_check_duplicate, message2_nolog)
2688 (message3, message3_nolog, vmessage, set_message, set_message_1)
2689 (hscroll_window_tree, text_outside_line_unchanged_p)
2690 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2691 (find_last_unchanged_at_beg_row)
2692 (find_first_unchanged_at_end_row, row_containing_pos)
2693 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
2694 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2695 Use EMACS_INT for buffer and string positions.
2696
2697 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2698 (row_containing_pos): Adjust prototype.
2699
2700 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2701 (message2_nolog, set_message): Adjust prototypes.
2702
2703 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2704
2705 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2706 (Fgnutls_boot): Use SDATA.
2707 (Fgnutls_handshake): Remove unused var `max_log_level'.
2708
2709 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2710
2711 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
2712 (Bug#7113)
2713
2714 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2715
2716 * xgselect.c (xg_select): Clear file descriptors not set from
2717 rfds and wfds.
2718
2719 * process.c (wait_reading_process_output): Add missing FD_CLR
2720 for write_mask (must mirror connect_wait_mask).
2721
2722 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2723
2724 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2725 prefix.
2726 (Fgnutls_boot): Use changed process members. Use log level with a
2727 function parameter to set it. Bring back Emacs-level debugging
2728 messages at log level 1 and 2.
2729
2730 * process.c (make_process): Initialize gnutls_log_level.
2731
2732 * process.h: Add gnutls_log_level and rename x509_cred and
2733 anon_cred to have the gnutls_ prefix for consistency.
2734
2735 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2736
2737 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
2738
2739 * w32.c (g_b_init_get_sid_identifier_authority)
2740 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2741 Remove, not used.
2742 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2743 (init_winsock): Remove useless assignment.
2744 (open_process_token, get_token_information, lookup_account_sid)
2745 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2746 (get_security_descriptor_owner, get_security_descriptor_group)
2747 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2748 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2749 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2750 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2751 (unc_volume_file_attributes, convert_from_time_t)
2752 (create_toolhelp32_snapshot, process32_first, process32_next)
2753 (open_thread_token, impersonate_self, revert_to_self)
2754 (get_process_memory_info, get_process_working_set_size)
2755 (global_memory_status, global_memory_status_ex, socket_to_fd)
2756 (shutdown_handler): Make static.
2757
2758 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2759
2760 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2761 (xd_pending_messages): Functions removed.
2762 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2763 order to be compatible with add_read_fd. Determine bus from data,
2764 and call xd_read_message just for this bus.
2765 (xd_add_watch): Use xd_read_queued_messages as callback function.
2766 Add data.
2767
2768 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2769
2770 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2771
2772 * gnutls.c (gnutls_log_function): Add more debugging.
2773 (emacs_gnutls_read): Don't infloop while reading.
2774
2775 2010-09-27 Kenichi Handa <handa@m17n.org>
2776
2777 These changes are to remove restriction on the number of glyphs in
2778 one composition.
2779
2780 * dispextern.h (struct glyph): Change the member "slice" to union.
2781 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
2782 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
2783
2784 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2785 instead of glyph->slice.
2786 (marginal_area_string): Likewise.
2787
2788 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2789 glyph->u.cmp.
2790 (append_composite_glyph): Likewise.
2791
2792 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2793 glyph->u.cmp.
2794 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2795 (append_composite_glyph): Likewise.
2796 (fill_image_glyph_string): Use glyph->slice.img instead of
2797 glyph->slice.
2798 (append_glyph, produce_image_glyph, append_stretch_glyph)
2799 (note_mouse_highlight): Likewise.
2800
2801 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2802
2803 * process.c (add_keyboard_wait_descriptor)
2804 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
2805 (wait_reading_process_output): Don't pass write_mask to select
2806 if SELECT_CANT_DO_WRITE_MASK is defined.
2807 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
2808
2809 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2810 (delete_write_fd): Declare.
2811
2812 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2813 (write_mask): New variable.
2814 (max_input_desc): Rename from max_keyboard_desc.
2815 (fd_callback_info): New variable.
2816 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2817 New functions.
2818 (Fmake_network_process): FD_SET write_mask.
2819 (deactivate_process): FD_CLR write_mask.
2820 (wait_reading_process_output): Connecting renamed to Writeok.
2821 check_connect removed. check_write is new. Remove references to gpm.
2822 Use Writeok/check_write unconditionally (i.e. no #ifdef
2823 NON_BLOCKING_CONNECT) instead of Connecting.
2824 Loop over file descriptors and call callbacks in fd_callback_info
2825 if file descriptor is ready for I/O.
2826 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2827 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2828 (keyboard_bit_set): Use max_input_desc.
2829 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2830 Remove #ifdef subprocesses. Use max_input_desc.
2831 (init_process): Initialize write_mask and fd_callback_info.
2832
2833 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2834
2835 * dbusbind.c: Include process.h.
2836 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2837 (xd_read_message_1): New functions.
2838 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2839 Handle watch for both read and write.
2840 (Fdbus_init_bus): Also register xd_toggle_watch.
2841 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2842 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2843 to dbus_connection_flush.
2844 (xd_read_message): Move most of the code to xd_read_message_1.
2845 Call xd_read_message_1 until status is COMPLETE.
2846
2847 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2848
2849 * term.c: Do not include sys/ioctl.h, not needed.
2850 (init_tty): Reorder code to reduce the number of #ifdefs.
2851 No code changes.
2852
2853 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2854
2855 * process.h: Set up GnuTLS support.
2856
2857 * process.c (make_process, Fstart_process)
2858 (read_process_output, send_process): Set up GnuTLS support for
2859 process input/output file descriptors.
2860
2861 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2862
2863 * gnutls.c: The source code for GnuTLS support in Emacs.
2864
2865 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2866
2867 * config.in: Set up GnuTLS support.
2868
2869 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2870 (obj, LIBES): Set up GnuTLS support.
2871
2872 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
2873
2874 * w32.c (get_emacs_configuration_options): Fix previous change.
2875
2876 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
2877
2878 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2879 alive before using it (Bug#6977).
2880
2881 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2882
2883 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2884
2885 * dispextern.h: EMACS_INT/int fixup.
2886
2887 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2888 fixup.
2889
2890 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2891
2892 2010-09-25 Eli Zaretskii <eliz@gnu.org>
2893
2894 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2895 (Fselect_window, window_scroll_pixel_based)
2896 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2897 Use EMACS_INT for buffer positions.
2898
2899 * textprop.c (validate_interval_range, interval_of)
2900 (property_change_between_p, Fadd_text_properties)
2901 (set_text_properties_1, Fremove_text_properties)
2902 (Fremove_list_of_text_properties, Ftext_property_any)
2903 (Ftext_property_not_all, copy_text_properties)
2904 (text_property_list, extend_property_ranges)
2905 (verify_interval_modification): Use EMACS_INT for buffer
2906 positions.
2907
2908 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2909 for buffer positions.
2910
2911 * process.c (read_process_output, send_process)
2912 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2913 and string positions and size.
2914
2915 * print.c (print_object, print_string, strout): Use EMACS_INT for
2916 string indices.
2917
2918 * minibuf.c (string_to_object): Use EMACS_INT for string position
2919 and size.
2920
2921 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2922
2923 * lread.c <read_from_string_index, read_from_string_index_byte>
2924 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2925 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2926 buffer positions and string length.
2927
2928 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2929 EMACS_INT.
2930 (echo_truncate, adjust_point_for_property, read_char)
2931 (gen_help_event, make_lispy_event, modify_event_symbol)
2932 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2933 for buffer positions and string length.
2934
2935 * keyboard.h (gen_help_event): Adjust prototype.
2936
2937 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2938
2939 * commands.h <last_point_position>: Declare EMACS_INT.
2940
2941 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2942 (truncate_echo_area): Accept EMACS_INT argument.
2943
2944 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2945
2946 * lisp.h (truncate_echo_area): Adjust prototype.
2947
2948 * composite.c (composition_adjust_point): Return EMACS_INT.
2949
2950 * composite.h (composition_adjust_point): Adjust prototype.
2951
2952 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
2953
2954 * process.c (Fmake_network_process): When arg :host is 'local,
2955 use address 127.0.0.1, not name "localhost". (Bug#6781)
2956
2957 2010-09-24 Eli Zaretskii <eliz@gnu.org>
2958
2959 * indent.c (Fcurrent_indentation, indented_beyond_p)
2960 (compute_motion): Use EMACS_INT for buffer position variables.
2961
2962 * lisp.h (indented_beyond_p): Adjust prototype.
2963
2964 * buffer.c (overlay_strings): Return EMACS_INT.
2965
2966 * buffer.h (overlay_strings): Adjust prototype.
2967
2968 * region-cache.c (pp_cache): Adjust format to arguments.
2969
2970 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2971 (call_debugger): Use EMACS_INT for specpdl_size related variables.
2972 (verror): Use EMACS_INT for size of allocated buffer.
2973
2974 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2975 positions.
2976
2977 * xdisp.c (redisplay_internal, try_window_id)
2978 (set_cursor_from_row, find_first_unchanged_at_end_row):
2979 Use EMACS_INT for buffer positions.
2980
2981 * dispextern.h (set_cursor_from_row): Adjust prototype.
2982
2983 * dispnew.c (increment_matrix_positions)
2984 (increment_row_positions, copy_glyph_row_contents)
2985 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
2986 positions.
2987
2988 * dispextern.h (mode_line_string, marginal_area_string)
2989 (increment_matrix_positions, increment_row_positions):
2990 Adjust prototypes.
2991
2992 * data.c (Faref, Faset): Use EMACS_INT for string length and
2993 positions.
2994
2995 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
2996 characters to insert.
2997
2998 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
2999 position and size.
3000
3001 * syntax.c (scan_words, update_syntax_table)
3002 (prev_char_comend_first, back_comment, skip_chars)
3003 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3004 Use EMACS_INT for buffer and string positions.
3005
3006 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3007
3008 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3009 positions.
3010
3011 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3012
3013 * scroll.c (calculate_scrolling, line_ins_del)
3014 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3015 conversion.
3016
3017 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3018 (region_cache_backward, region_cache_forward)
3019 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3020 conversion.
3021
3022 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3023
3024 * eval.c (verror): Fix EMACS_INT/int conversion.
3025
3026 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3027 (print_preprocess, print_check_string_charset_prop)
3028 (print_object): Fix EMACS_INT/int conversion.
3029
3030 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3031
3032 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3033
3034 * callproc.c (Fcall_process): Use EMACS_INT for count of
3035 characters read from the subprocess.
3036
3037 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3038 positions.
3039 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3040 positions.
3041
3042 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3043 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3044 length.
3045 (advance_to_char_boundary, Fset_buffer_multibyte)
3046 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3047 (overlay_touches_p, record_overlay_string, overlay_strings)
3048 (recenter_overlay_lists, fix_start_end_in_overlays)
3049 (modify_overlay, Fmove_overlay, report_overlay_modification)
3050 (evaporate_overlays): Use EMACS_INT for buffer positions.
3051
3052 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3053 Adjust prototypes.
3054
3055 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3056 positions.
3057
3058 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3059 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3060 (Fsubstring_no_properties, substring_both, Ffillarray)
3061 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3062 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3063 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3064 (Fmd5): Use EMACS_INT for buffer and string positions and length
3065 variables and arguments.
3066
3067 * lisp.h (substring_both): Adjust prototype.
3068
3069 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3070
3071 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3072 * w32fns.c (clipboard_sequence_fn): Don't declare.
3073 (globals_of_w32fns): Don't initialize it.
3074
3075 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3076
3077 * syntax.c (back_comment): Detect the case where a 1-char comment
3078 starter is also the 2nd char of a 2-char comment ender.
3079
3080 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3081
3082 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3083
3084 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3085
3086 * eval.c (verror): EMACS_INT/int cleanup.
3087
3088 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3089 unwind_protect more than 2GB worth of functions.
3090
3091 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3092
3093 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3094 string and avoid compiler warnings.
3095 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3096 all users.
3097
3098 * lread.c (oblookup): EMACS_INT/int cleanup.
3099
3100 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3101
3102 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3103
3104 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3105
3106 * lisp.h (clip_to_bounds): Adjust prototype.
3107
3108 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3109
3110 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3111
3112 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3113
3114 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3115
3116 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3117 cleanup.
3118
3119 * lisp.h: Change the definition of all marker.c functions that
3120 take and return buffer stuff to be EMACS_INT instead of int.
3121
3122 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3123 (buf_charpos_to_bytepos, bytepos_to_charpos)
3124 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3125 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3126 for all buffer positions.
3127
3128 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3129
3130 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3131 (split_interval_right, find_interval, next_interval)
3132 (delete_node, delete_interval, interval_deletion_adjustment)
3133 (adjust_intervals_for_deletion, merge_interval_right)
3134 (merge_interval_left, graft_intervals_into_buffer)
3135 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3136
3137 * intervals.h (traverse_intervals): Update prototype.
3138
3139 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3140
3141 * indent.c (compute_motion): Use EMACS_INT for arguments to
3142 region_cache_forward.
3143
3144 * region-cache.c (struct boundary, struct region_cache):
3145 Use EMACS_INT for positions.
3146 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3147 (delete_cache_boundaries, set_cache_region)
3148 (invalidate_region_cache, know_region_cache)
3149 (region_cache_forward, region_cache_backward, pp_cache):
3150 Use EMACS_INT for buffer positions.
3151
3152 * region-cache.h (know_region_cache, invalidate_region_cache)
3153 (region_cache_forward, region_cache_backward): Adjust prototypes.
3154
3155 * search.c (string_match_1, fast_c_string_match_ignore_case)
3156 (looking_at_1, scan_buffer, scan_newline)
3157 (find_next_newline_no_quit, find_before_next_newline)
3158 (search_command, trivial_regexp_p, search_buffer, simple_search)
3159 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3160 and string positions and length.
3161
3162 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3163 (find_before_next_newline): Adjust prototypes.
3164
3165 * editfns.c (transpose_markers, update_buffer_properties)
3166 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3167 (get_pos_property, Fconstrain_to_field)
3168 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3169 (Fchar_after, Fchar_before, Finsert_char)
3170 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3171 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3172 Use EMACS_INT for buffer and string position variables.
3173 (Finsert_char): Protect against too large insertions.
3174
3175 * lisp.h (clip_to_bounds): Adjust prototype.
3176
3177 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3178 (balance_an_interval, split_interval_right, split_interval_left)
3179 (find_interval, next_interval, update_interval)
3180 (adjust_intervals_for_insertion, delete_node, delete_interval)
3181 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3182 (offset_intervals, merge_interval_right, merge_interval_left)
3183 (graft_intervals_into_buffer, adjust_for_invis_intang)
3184 (move_if_not_intangible, get_local_map, copy_intervals)
3185 (copy_intervals_to_string, compare_string_intervals)
3186 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3187 and for interval tree size.
3188
3189 * intervals.h (traverse_intervals, split_interval_right)
3190 (split_interval_left, find_interval, offset_intervals)
3191 (graft_intervals_into_buffer, copy_intervals)
3192 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3193 (update_interval): Adjust prototypes.
3194
3195 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3196 Use EMACS_INT for buffer position variables and arguments.
3197
3198 * composite.c (get_composition_id, find_composition)
3199 (run_composition_function, compose_text)
3200 (composition_gstring_width, autocmp_chars)
3201 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3202 for buffer positions and string length variables and arguments.
3203
3204 * composite.h (get_composition_id, find_composition, compose_text)
3205 (composition_gstring_width): Adjust prototypes.
3206
3207 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3208
3209 * xdisp.c (store_mode_line_noprop, display_mode_element):
3210 Use EMACS_INT for string positions.
3211
3212 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3213 position arguments.
3214
3215 * intervals.h (get_property_and_range): Adjust prototype.
3216
3217 * character.c (parse_str_as_multibyte, str_as_multibyte)
3218 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3219 (string_count_byte8, string_escape_byte8, c_string_width)
3220 (strwidth, lisp_string_width, multibyte_chars_in_text):
3221 Use EMACS_INT for string length variables and arguments.
3222
3223 * character.h (parse_str_as_multibyte, str_as_multibyte)
3224 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3225 (c_string_width, strwidth, lisp_string_width):
3226 Adjust prototypes.
3227
3228 * font.c (font_intern_prop): Use EMACS_INT for string length
3229 variables.
3230
3231 * font.c (font_intern_prop): Use EMACS_INT for string length
3232 variables.
3233
3234 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3235 variables.
3236
3237 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3238 (Fmake_string): Protect against too large strings.
3239 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3240 (live_misc_p): Use ptrdiff_t instead of int for pointer
3241 differences.
3242 (string_bytes, check_sblock, check_string_free_list)
3243 (allocate_string_data, compact_small_strings, Fmake_string)
3244 (Fmake_bool_vector, make_string, make_unibyte_string)
3245 (make_multibyte_string, make_string_from_bytes)
3246 (make_specified_string_string, Fmake_list, Fmake_vector):
3247 Use EMACS_INT for string length variables and arguments.
3248 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3249 (Fpurecopy): Use EMACS_INT for string size.
3250 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3251 for vector size.
3252
3253 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3254 (make_string_from_bytes, make_specified_string_string)
3255 (make_pure_string, string_bytes, check_point_in_composition):
3256 Adjust prototypes.
3257
3258 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3259
3260 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3261 (check_translation): Use EMACS_INT for buffer positions and
3262 length.
3263
3264 * undo.c (record_marker_adjustment, record_delete)
3265 (record_change, record_point, record_insert)
3266 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3267 buffer positions.
3268
3269 * lisp.h (record_marker_adjustment, record_delete)
3270 (record_change, record_point, record_insert)
3271 (record_property_change, Fprimitive_undo): Adjust prototypes.
3272
3273 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3274 Eli Zaretskii <eliz@gnu.org>
3275
3276 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3277
3278 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3279
3280 * minibuf.c (Fminibuffer_contents)
3281 (Fminibuffer_contents_no_properties)
3282 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3283 positions.
3284
3285 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3286 mark.
3287
3288 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3289 (allocate_string_data): Accept EMACS_INT for string length.
3290
3291 * editfns.c (Ffield_string, Ffield_string_no_properties)
3292 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3293 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3294 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3295 (Ffield_end): Use EMACS_INT for buffer positions.
3296
3297 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3298 point with mark.
3299
3300 * lisp.h (allocate_string_data, make_uninit_string)
3301 (make_uninit_multibyte_string, make_buffer_string)
3302 (make_buffer_string_both): Adjust prototypes.
3303
3304 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * xml.c: Switch to GNU indentation.
3307 (make_dom): Change parse tree format to match xml.el.
3308 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3309 (Fxml_parse_string_internal): Rename from xml-parse-string.
3310
3311 2010-09-22 Kenichi Handa <handa@m17n.org>
3312
3313 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3314 only if we are not at a composition.
3315 (set_iterator_to_next): Give it->end_charpos to
3316 composition_compute_stop_pos.
3317 (set_iterator_to_next, next_element_from_buffer): Likewise.
3318
3319 * dispnew.c (buffer_posn_from_coords): Fix position when the
3320 current display element is a grapheme cluster in bidi-reordered
3321 region.
3322
3323 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3324
3325 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3326 the regions may overlap.
3327
3328 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
3329
3330 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3331
3332 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3333
3334 * emacs.c: Do not include sys/ioctl.h, not needed.
3335
3336 * doprnt.c: Do not include stdlib.h, config.h does it.
3337 Move #include before macro definition.
3338
3339 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3340
3341 * Makefile.in (temacs): Link using $(CC) not $(LD).
3342 (LD_FIRSTFLAG): Define using autoconf.
3343 (LD): Remove.
3344
3345 Remove HAVE_TERMIOS definitions.
3346 * s/usg5-4-common.h (HAVE_TERMIOS):
3347 * s/template.h (HAVE_TERMIOS):
3348 * s/gnu-linux.h (HAVE_TERMIOS):
3349 * s/darwin.h (HAVE_TERMIOS):
3350 * s/cygwin.h (HAVE_TERMIOS):
3351 * s/bsd-common.h (HAVE_TERMIOS):
3352 * s/aix4-2.h (HAVE_TERMIOS):
3353 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3354 defined on all non-MS platforms.
3355 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3356
3357 * xterm.c (xt_action_hook): Use const.
3358
3359 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
3360
3361 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3362 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3363 (gethostname) [!HAVE_SOCKETS]: Remove.
3364 (SOCK_REPLACE_HANDLE): Remove macro.
3365 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3366 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3367 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3368 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3369
3370 2010-09-18 Eli Zaretskii <eliz@gnu.org>
3371
3372 * deps.mk (xml.o): Add dependencies.
3373
3374 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3375 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
3376
3377 * bidi.c (bidi_paragraph_init): Accept an additional argument
3378 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3379 search back until a paragraph with a strong directional character
3380 is found, and use that to determine paragraph's base direction.
3381
3382 * dispextern.h (bidi_paragraph_init): Update prototype.
3383
3384 2010-09-17 Eli Zaretskii <eliz@gnu.org>
3385
3386 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3387 of w32api >= 3.15. (Bug#6989)
3388
3389 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3390
3391 * process.c (wait_reading_process_output): Don't message about
3392 accept-process-output unless the time limit really is zero.
3393
3394 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3395
3396 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3397 int/Lisp_Object mixup).
3398
3399 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3400
3401 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3402 not HELP.
3403
3404 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
3405
3406 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3407 bar's pixel width to Lisp (Bug#7048).
3408
3409 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3410
3411 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3412
3413 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3414
3415 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3416 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3417
3418 2010-09-17 Kenichi Handa <handa@m17n.org>
3419
3420 * ftfont.c (ftfont_check_otf): Fix previous change.
3421
3422 2010-09-14 Kenichi Handa <handa@m17n.org>
3423
3424 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3425 existence of GSUB or GPOS.
3426
3427 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3428
3429 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3430
3431 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3432
3433 * xml.c (parse_buffer): Rename to parse_string(), since that's
3434 what it does.
3435 (parse_string): Return nil when the document can't be parsed.
3436
3437 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
3438
3439 * xterm.c (get_current_vm_state): New function.
3440 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3441 want_fullscreen so set_wm_state calls are few (Bug#7013).
3442 (x_handle_net_wm_state): Move code to get_current_vm_state and
3443 call that function.
3444
3445 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
3446
3447 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3448
3449 2010-09-14 Kenichi Handa <handa@m17n.org>
3450
3451 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3452 we may use designation or locking-shift.
3453
3454 2010-09-14 Kenichi Handa <handa@m17n.org>
3455
3456 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3457 sequence when the source is multibyte.
3458
3459 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3460
3461 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3462 Don't make first argument optional. Doc fix.
3463
3464 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3465
3466 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3467 parameters for the doc string.
3468
3469 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3470
3471 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3472
3473 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3474
3475 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3476 (syms_of_fns): Don't defsubr Sy_or_n_p.
3477 * lisp.h: Don't declare Fy_or_n_p.
3478 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3479
3480 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3481
3482 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3483
3484 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3485
3486 * xml.c: New file.
3487 (Fhtml_parse_buffer): New function to interface to the libxml2
3488 html parsing function.
3489
3490 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
3491
3492 * biditype.h: Regenerate.
3493
3494 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3495
3496 * nsimage.m (ns_load_image): Check argument types.
3497
3498 * image.c: Remove all uses of gcpro.
3499 (xpm_load): Check all lisp types.
3500 (pbm_load): Likewise.
3501 (png_load): Likewise.
3502 (jpeg_load): Likewise.
3503 (tiff_load): Likewise.
3504 (gif_load): Likewise.
3505 (imagemagick_load_image): Likewise.
3506 (imagemagick_load): Likewise.
3507 (svg_load): Likewise.
3508 (gs_load): Likewise.
3509
3510 2010-09-04 Eli Zaretskii <eliz@gnu.org>
3511
3512 * w32uniscribe.c (uniscribe_shape): Update commentary.
3513 Don't try to reorder grapheme clusters, since LGSTRING should always
3514 hold them in the logical order.
3515 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3516 return glyph codes in the logical order.
3517
3518 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3519
3520 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
3521 (imagemagick_load_image): Fix type mismatch.
3522 (Fimagemagick_types): Likewise. Doc fix.
3523
3524 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3525
3526 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3527
3528 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3529
3530 * xselect.c: Remove declaration of cut-buffer objects and functions.
3531 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3532 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3533 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3534 (Fx_rotate_cut_buffers_internal): Remove.
3535 (syms_of_xselect): Remove defsubr of above.
3536 Remove intern of QCUT_BUFFERn.
3537
3538 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3539
3540 * cmds.c (Vblink_paren_function): Remove.
3541 (internal_self_insert): Make it insert N chars at a time.
3542 Don't call blink-paren-function.
3543 (Fself_insert_command): Adjust accordingly.
3544 (syms_of_cmds): Don't declare blink-paren-function.
3545
3546 2010-08-31 Kenichi Handa <handa@m17n.org>
3547
3548 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3549 characters.
3550
3551 * term.c (encode_terminal_code): Fix the previous change.
3552 (produce_glyphs): Don't set it->char_to_display here.
3553 Don't handle unibyte-display-via-language-environment here.
3554 (produce_special_glyphs): Set temp_it.char_to_display before
3555 calling produce_glyphs.
3556
3557 * xdisp.c (get_next_display_element): Set it->char_to_display
3558 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3559 characters.
3560 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3561 calling PRODUCE_GLYPHS.
3562 (append_space_for_newline): Save and store it->char_to_display.
3563 Set it->char_to_display before calling PRODUCE_GLYPHS.
3564 (extend_face_to_end_of_line): Set it->char_to_display before
3565 calling PRODUCE_GLYPHS.
3566 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3567 character to its byte value.
3568 (get_char_glyph_code): New function.
3569 (produce_stretch_glyph): Set it2.char_to_display too before
3570 calling x_produce_glyphs.
3571 (x_produce_glyphs): Simplify by using the same code for ASCII and
3572 non-ASCII characters. Don't set it->char_to_display here.
3573 Don't handle unibyte-display-via-language-environment here. For a
3574 character of no glyph, use font->space_width instead of FONT_WIDTH.
3575
3576 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3577
3578 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3579
3580 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
3581
3582 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3583
3584 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3585
3586 * marker.c (Fcopy_marker): Make the first arg optional.
3587
3588 2010-08-30 Kenichi Handa <handa@m17n.org>
3589
3590 * composite.c (composition_update_it): Fix computing of
3591 cmp_it->width.
3592
3593 2010-08-29 Kenichi Handa <handa@m17n.org>
3594
3595 * term.c (encode_terminal_code): Encode byte chars to the
3596 corresponding bytes.
3597
3598 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3599
3600 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3601
3602 2010-08-26 Kenichi Handa <handa@m17n.org>
3603
3604 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3605 on calling composition_compute_stop_pos.
3606
3607 2010-08-25 Kenichi Handa <handa@m17n.org>
3608
3609 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3610 :otf.
3611
3612 * composite.c (composition_compute_stop_pos): Don't break
3613 composition at PT.
3614 (composition_reseat_it): Likewise. Fix calculation of character
3615 position starting a composition.
3616 (Fcomposition_get_gstring): Don't limit the number of components
3617 for automatic composition.
3618
3619 2010-08-25 Kenichi Handa <handa@m17n.org>
3620
3621 * composite.c (composition_compute_stop_pos): In forward search,
3622 pay attention to the possibility that some character after ENDPOS
3623 will be composed with charactrs before ENDPOS.
3624
3625 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
3626
3627 * keyboard.c (command_loop_1): Don't clobber primary selection
3628 during handle-switch-frame (Bug#6872).
3629
3630 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
3631
3632 * dbusbind.c: Accept UNIX domain sockets as bus address.
3633 (Fdbus_close_bus): New function.
3634 (Vdbus_registered_buses): New variable.
3635 (xd_initialize): Implement string as bus address.
3636 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3637 (Fdbus_get_unique_name, Fdbus_call_method)
3638 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3639 (Fdbus_method_error_internal, Fdbus_send_signal)
3640 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3641 check. This is done in xd_initialize_bus. Adapt doc string, if
3642 necessary.
3643 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3644 Vdbus_registered_buses.
3645 (Vdbus_registered_objects_table): Create hash.
3646
3647 2010-08-22 Juri Linkov <juri@jurta.org>
3648
3649 * keyboard.c (Fexecute_extended_command): Move reading a command name
3650 with `completing-read' to a new Elisp function `read-extended-command'.
3651 Call it to read a command to `function' (bug#5364, bug#5214).
3652
3653 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3654
3655 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3656
3657 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
3658
3659 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3660 instead of SAFE_ALLOCA.
3661
3662 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3663
3664 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3665 (Bug#6214).
3666
3667 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3668
3669 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3670
3671 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3672
3673 * doc.c (Fsnarf_documentation): Initialize skip_file before
3674 build-files test.
3675
3676 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
3677
3678 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3679 New definitions.
3680 (HAVE_TERMIO): Remove.
3681
3682 2010-08-22 Eli Zaretskii <eliz@gnu.org>
3683
3684 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3685
3686 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3687 for w32.
3688
3689 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3690 it's done in nt/config.nt.
3691
3692 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3693
3694 * unexcoff.c (report_error, make_hdr, write_segment)
3695 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3696 Convert argument lists and prototypes to ANSI C.
3697 (make_hdr, write_segment): Remove unused variables.
3698 (unexec): Remove commented-out line. Initialize `new' to shut up
3699 compiler warnings.
3700
3701 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3702
3703 Simplify termio code.
3704 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3705 HAVE_TERMIO code is obsolete.
3706 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3707 * systty.h: Do not define HAVE_TCATTR.
3708 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3709 Do not define EMACS_HAVE_TTY_PGRP. Only define
3710 EMACS_GET_TTY_PGRP for !DOS_NT.
3711 * sysdep.c: Include sysselect.h unconditionally. Do not include
3712 sys/ioctl.h and termios.h, systty.h does it.
3713 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
3714 (init_baud_rate): Remove HAVE_TERMIO code.
3715 (child_setup_tty): Remove HAVE_TERMIO code.
3716 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3717 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3718 (new_ltchars, new_tchars): Remove, unused.
3719 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
3720 code. Remove special casing for __mips__, it was a no-op.
3721 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
3722 (init_sys_modes): Remove HPUX special case.
3723 * process.c: Include stdlib.h unconditionally. Do not include
3724 fcntl.h, systty.h does it. Remove conditional code for
3725 HAVE_SERIAL, it is always true.
3726 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3727 always true when SIGNALS_VIA_CHARACTERS is true.
3728 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3729 !WINDOWSNT means HAVE_TERMIOS.
3730 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3731 conditional, which is true for all HAVE_TERMIOS systems.
3732 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3733 instead of HAVE_TERMIOS.
3734 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3735 EMACS_HAVE_TTY_PGRP.
3736 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3737 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3738 anyway.
3739
3740 2010-08-21 Eli Zaretskii <eliz@gnu.org>
3741
3742 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3743 mirroring pixel positions.
3744
3745 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3746
3747 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3748 write only.
3749 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3750 malloc_sbrk_used, nothing uses them.
3751
3752 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3753 defined, unconditionally defined in lisp.h.
3754
3755 * term.c: Do not include <termios.h>, systty.h does it.
3756
3757 * s/unixware.h (HAVE_TCATTR):
3758 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3759 systty.h defines it when HAVE_TERMIOS is defined.
3760
3761 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3762
3763 * dispnew.c (buffer_posn_from_coords): Fix last change for text
3764 terminals: add one-character offset for R2L lines.
3765
3766 * emacs.c <emacs_version>: Add a comment regarding
3767 msdos/mainmake.v2's dependency on the syntax of this declaration.
3768
3769 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3770
3771 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3772 position for R2L lines by mirroring the pixel position wrt the
3773 text are box. Improve commentary.
3774
3775 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3776
3777 * image.c (imagemagick_clear_image): Remove debugging output.
3778
3779 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3780
3781 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3782 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3783 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3784 self-insert-face.
3785 (syms_of_cmds): Initialize the new vars.
3786
3787 2010-08-19 Jason Rumney <jasonr@gnu.org>
3788
3789 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3790
3791 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3792
3793 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3794
3795 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3796
3797 2010-08-18 Eli Zaretskii <eliz@gnu.org>
3798
3799 * xterm.c (x_draw_bar_cursor):
3800 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3801 R2L, draw the bar cursor on its right rather than on its left.
3802
3803 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3804
3805 * eval.c (Fdefmacro): Only obey one declaration.
3806
3807 * casefiddle.c (casify_region): Setup gl_state.
3808
3809 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3810
3811 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3812
3813 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3814
3815 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
3816
3817 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
3818
3819 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3820 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3821 QPRIMARY => NXPrimaryPboard.
3822 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3823 NXPrimaryPboard => QPRIMARY.
3824 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3825 NXSecondaryPboard = SecondarySelection.
3826 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3827
3828 2010-08-18 Joakim Verona <joakim@verona.se>
3829
3830 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3831 defined:
3832 (imagemagick_image_p): New function to test for ImageMagic image.
3833 (imagemagick_load): New function to load ImageMagick image.
3834 (imagemagick_load_image): New function, helper for imagemagick_load.
3835 (imagemagick-types): New function.
3836 (Qimagemagick): New Lisp_object.
3837 (imagemagick-render-type): New variable, decides which renderer to use.
3838
3839 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3840
3841 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3842 is a string.
3843
3844 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3845
3846 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3847 x_set_tool_bar_position handler.
3848
3849 2010-08-17 Eli Zaretskii <eliz@gnu.org>
3850
3851 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3852 x_set_tool_bar_position handler, needed to support changes from
3853 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3854
3855 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3856
3857 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3858 declaration (Bug#6863).
3859 (syms_of_nsselect): Don't intern QPRIMARY.
3860
3861 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3862
3863 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3864
3865 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
3866
3867 * keyboard.c (command_loop_1): Avoid setting selection twice,
3868 since it's done in deactivate-mark as well.
3869 (Vselect_active_regions): Change default to t. Replace `lazy'
3870 with non-default value `only', meaning only set PRIMARY for
3871 temporarily active regions.
3872
3873 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3874 select-active-regions.
3875
3876 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3877
3878 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3879 isn't a string.
3880
3881 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3882
3883 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3884
3885 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3886
3887 * keyboard.c (parse_tool_bar_item): malloc buf.
3888 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3889 new_lbl (Bug#6855).
3890
3891 2010-08-14 Eli Zaretskii <eliz@gnu.org>
3892
3893 * xterm.c (x_draw_stretch_glyph_string):
3894 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3895 the cursor on the right edge of the stretch glyph.
3896
3897 * xdisp.c (window_box_right_offset, window_box_right):
3898 Fix commentary.
3899
3900 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3901 direction when point is inside a run of whitespace characters.
3902
3903 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3904
3905 2010-08-14 Jason Rumney <jasonr@gnu.org>
3906
3907 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3908
3909 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
3910
3911 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3912
3913 2010-08-13 Jason Rumney <jasonr@gnu.org>
3914
3915 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3916 (MessageBoxW_Proc): New function typedef.
3917 (unicode-message-box): New function pointer.
3918 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3919
3920 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3921
3922 * frame.h (Qtool_bar_position): Declare.
3923
3924 * xfns.c (Fx_create_frame): Call x_default_parameter for
3925 Qtool_bar_position.
3926
3927 2010-08-13 Eli Zaretskii <eliz@gnu.org>
3928
3929 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3930 (report_error, report_error_1): Ditto.
3931 (write_segment): Remove "#if 0" unused code.
3932 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3933 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3934 (start_of_text): Remove unused function (was used only if NO_REMAP
3935 was NOT defined).
3936
3937 * msdos.c (IT_set_face): Fix format string to match argument
3938 types.
3939 (IT_write_glyphs, IT_note_mode_line_highlight)
3940 (IT_set_frame_parameters): Remove unused variables.
3941 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3942 (IT_set_terminal_modes): Disambiguate expression in if clause.
3943 (Fmsdos_remember_default_colors): Return Qnil.
3944 (IT_set_frame_parameters): Add parens to disambiguate boolean
3945 expression for logging the cursor type to termscript.
3946 (keyboard_layout_list, keypad_translate_map)
3947 (grey_key_translate_map): Add braces in inner initializers.
3948 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3949 (dos_rawgetc): Remove unused label.
3950 (XMenuActivate): Add braces to remove ambiguous `else'.
3951 (dos_ttraw): Always return a value.
3952 (spawnve): Declare.
3953 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3954
3955 * dosfns.h (x_set_title): Declare.
3956
3957 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3958 Remove unused variables.
3959
3960 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3961 variables.
3962 (init_dosfns): Declare get_lim_data.
3963 (system_process_attributes): Declare Fget_internal_run_time.
3964
3965 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3966 list to be consistent with menu.h.
3967
3968 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3969 warnings due to mixing of "char *" and "const char *".
3970
3971 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3972
3973 Introduce a new comment style "c" flag.
3974 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3975 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3976 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3977 (syntax_prefix_flag_p): New function.
3978 (Fstring_to_syntax): Understand new "c" flag.
3979 (Finternal_describe_syntax_value): Recognize new flag; use the
3980 SYNTAX_FLAGS_* macros.
3981 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
3982 comment style to accomodate the new styles.
3983 (back_comment, forw_comment, Fforward_comment, scan_lists)
3984 (scan_sexps_forward): Update code to obey the new comment style flag.
3985
3986 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
3987
3988 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
3989
3990 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
3991
3992 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
3993 first.
3994 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3995
3996 * gtkutil.h (xg_check_special_colors): Declare.
3997
3998 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
3999 (xg_create_frame_widgets): Connect theme name changes to
4000 style_changed_cb.
4001
4002 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4003 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4004 (x_term_init): Use char[] display_opt and name_opt instead of
4005 string literal. file is const char*.
4006
4007 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4008 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4009 props. Free them at the end.
4010
4011 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4012
4013 * xrdb.c (get_system_app): Make path const and use char *p for
4014 non-const char.
4015
4016 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4017 (xmenu_show): error parameter is const char **. pane_string is const
4018 char *.
4019 (button_names): Is const char *.
4020 (xdialog_show): error_name and pane_string is const.
4021
4022 * process.h (synch_process_death): Is const char*.
4023
4024 * w32menu.c (w32_menu_show):
4025 * nsmenu.m (ns_menu_show): error parameter is const char **.
4026
4027 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4028 is const char **.
4029
4030 * menu.c (Fx_popup_menu): error_name is const.
4031
4032 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4033 with unsigned char and XtPointer with void *.
4034
4035 * gtkutil.h: Replace widget_value with struct _widget_value.
4036 (enum button_type, struct _widget_value): Remove and use the one from
4037 keyboard.h.
4038
4039 * gtkutil.c (get_utf8_string): Always return an allocated string.
4040 Parameter is const.
4041 (create_dialog, xg_create_one_menuitem, create_menus)
4042 (xg_item_label_same_p, xg_update_menu_item): Free result from
4043 get_utf8_string.
4044 (xg_separator_p, xg_item_label_same_p): label is const.
4045
4046 * font.h (font_open_by_name): Make name const.
4047
4048 * font.c (font_open_by_name): Make name const.
4049
4050 * floatfns.c (matherr): Use a const char* variable for x->name.
4051
4052 * emacs.c (main): Pass char[] to putenv instead of literal.
4053
4054 * callproc.c (synch_process_death): Make const.
4055 (Fcall_process): Make signame const.
4056
4057 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4058 (addDisplayItemWithImage): Use const char*.
4059
4060 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4061 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4062
4063 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4064
4065 * keyboard.h (_widget_value): name, value and key are const char*.
4066
4067 * unexmacosx.c (unexec_error): Use const char *.
4068
4069 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4070
4071 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4072 (font_parse_name, font_open_by_name):
4073 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4074 (font_parse_name, font_open_by_name): Remove const.
4075
4076 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4077
4078 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4079 definition.
4080
4081 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4082 * m/amdx86-64.h: Likewise.
4083 * m/arm.h: Likewise.
4084 * m/hp800.h: Likewise.
4085 * m/ia64.h: Likewise.
4086 * m/ibmrs6000.h: Likewise.
4087 * m/ibms390.h: Likewise.
4088 * m/intel386.h: Likewise.
4089 * m/iris4d.h: Likewise.
4090 * m/m68k.h: Likewise.
4091 * m/macppc.h: Likewise.
4092 * m/mips.h: Likewise.
4093 * m/sh3.h: Likewise.
4094 * m/sparc.h: Likewise.
4095 * m/template.h: Likewise.
4096 * m/vax.h: Likewise.
4097 * m/xtensa.h: Likewise.
4098 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4099 WORDS_BIG_ENDIAN.
4100 * lisp.h: Likewise.
4101 * md5.c: Likewise.
4102 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4103
4104 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4105
4106 Use const char* instead of char*.
4107 Reduce the number of warnings with -Wwrite-strings.
4108 * xrdb.c (get_environ_db, get_system_name):
4109 * unexelf.c (find_section):
4110 * term.c (string_cost, string_cost_one_line, per_line_cost)
4111 (get_named_tty, init_tty):
4112 * sysdep.c (sys_subshell):
4113 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4114 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4115 * search.c (Freplace_match):
4116 * process.c (Fmake_network_process, send_process, init_process):
4117 * lread.c (Fload, init_lread):
4118 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4119 * keyboard.c (parse_tool_bar_item, struct event_head):
4120 * gtkutil.h (xg_get_font_name):
4121 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4122 (make_widget_for_menu_item, make_menu_item, create_menus)
4123 (xg_make_tool_item):
4124 * font.c (parse_matrix, font_parse_name):
4125 * floatfns.c (rounding_driver, float_error_fn_name):
4126 * filelock.c (get_boot_time_1, lock_file_1):
4127 * fileio.c (barf_or_query_if_file_exists, check_writable):
4128 * editfns.c (get_system_name, get_operating_system_release)
4129 (Fencode_time, Fset_time_zone_rule):
4130 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4131 * buffer.c (defvar_per_buffer): Use const.
4132
4133 2010-08-08 Kenichi Handa <handa@m17n.org>
4134
4135 * charset.c: Include <stdlib.h>.
4136 (struct charset_sort_data): New struct.
4137 (charset_compare): New function.
4138 (Fsort_charsets): New function.
4139 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4140
4141 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4142 number in CTEXT extended segment.
4143
4144 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4145
4146 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4147 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4148
4149 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4150
4151 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4152 (Fhash_table_size): Fix typos in docstrings.
4153 (Fmake_hash_table): Doc fix.
4154
4155 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4156
4157 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4158 Doc fix (bug#5625).
4159
4160 2010-08-08 Ken Brown <kbrown@cornell.edu>
4161
4162 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4163 the MSDOS definition.
4164
4165 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4166
4167 Use const char* instead of char*.
4168 * xterm.c (x_create_toolkit_scroll_bar):
4169 * xfont.c (xfont_list_pattern):
4170 * xfns.c (x_default_scroll_bar_color_parameter)
4171 (xic_create_fontsetname, x_default_font_parameter)
4172 (x_screen_planes):
4173 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4174 (store_mode_line_string, decode_mode_spec, display_string):
4175 * menu.c (digest_single_submenu):
4176 * keymap.h (initial_define_key, initial_define_lispy_key):
4177 * keymap.c (initial_define_key, initial_define_lispy_key):
4178 * image.c (image_error, image_keyword):
4179 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4180 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4181 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4182 (ftfont_list, ftfont_match):
4183 * frame.c (frame_parm_table):
4184 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4185 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4186 (font_add_log, font_deferred_log):
4187 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4188 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4189 (font_add_log, font_deferred_log):
4190 * emacs.c (argmatch):
4191 * dispextern.h (struct it):
4192 * coding.c (ENCODE_DESIGNATION):
4193 * charset.c (define_charset_internal): Use const.
4194
4195 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4196
4197 * xrdb.c: Remove include guard.
4198 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4199 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4200 realloc->xrealloc instead of using #defines.
4201
4202 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4203
4204 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4205 * editfns.c (Fline_beginning_position, Fline_end_position):
4206 State in the doc strings that start and end of line are in the
4207 logical order.
4208
4209 * xdisp.c (display_line): Move the handling of overlay arrow after
4210 the call to find_row_edges. (Bug#6699)
4211
4212 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4213
4214 * keyboard.c (command_loop_1):
4215 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4216
4217 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4218
4219 * insdel.c (prepare_to_modify_buffer): Save active region text to
4220 Vsaved_region_selection.
4221
4222 * xselect.c (QPRIMARY): Move to keyboard.c.
4223
4224 * keyboard.c (Vselect_active_regions): Move from simple.el.
4225 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4226 (command_loop_1): Set window selection prior to deactivating the mark.
4227
4228 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4229
4230 * alloc.c (lisp_malloc):
4231 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4232 * charset.h (emacs_mule_charset):
4233 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4234 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4235 (bitch_at_user):
4236 * lisp.h (Fcheck_coding_system, Fget_text_property)
4237 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4238 Remove duplicate declarations.
4239
4240 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4241
4242 * process.c: Simplify include logic.
4243
4244 * keyboard.h (quit_char): Add declaration.
4245 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4246 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4247 Add declarations.
4248 * sysdep.c:
4249 * w32.c: Remove the above declarations.
4250
4251 Remove extern declarations in .c files, .h files have them.
4252 * xterm.c:
4253 * xdisp.c:
4254 * msdos.c:
4255 * image.c:
4256 * gtkutil.c:
4257 * fileio.c:
4258 * eval.c: Remove declarations.
4259
4260 * frame.c (frame_params): Make const.
4261
4262 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4263
4264 * emacs.c (emacs_copyright, emacs_version): Make static.
4265 (Vinitial_window_system, Vauto_save_list_file_name)
4266 (Vinhibit_redisplay): Remove declarations.
4267 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4268 for AIX.
4269
4270 Use const for some arrays and functions.
4271 * xterm.h (xg_set_icon_from_xpm_data):
4272 * xfns.c (xg_set_icon_from_xpm_data):
4273 * term.c (fkeys):
4274 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4275 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4276 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4277 (frame.c frame_parms):
4278 * emacs-icon.h (gnu_xpm_bits):
4279 * callint.c (callint_argfuns): Use const.
4280
4281 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4282
4283 * sysdep.c: Move include term.h last of includes (Bug#6812).
4284
4285 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4286
4287 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4288
4289 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4290
4291 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4292
4293 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4294
4295 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4296
4297 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4298
4299 * xterm.h (x_get_focus_frame): Declare.
4300
4301 * keyboard.h (poll_for_input_1): Unconditionally declare.
4302
4303 * nsterm.h (x_set_menu_bar_lines): Declare.
4304
4305 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4306
4307 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4308
4309 * window.c: Include menu.h.
4310
4311 * unexmacosx.c (print_region_list, print_regions)
4312 (build_region_list, find_emacs_zone_regions)
4313 (unexec_regions_merge, read_load_commands, dump_it)
4314 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4315
4316 * term.c: Check HAVE_SYS_IOCTL_H.
4317
4318 * sysdep.c: Check HAVE_TERM_H.
4319
4320 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
4321
4322 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4323 (ns_ring_bell, ns_defined_color, hide_hourglass)
4324 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4325 Convert to ANSI C prototypes.
4326 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4327 before code.
4328
4329 * nsterm.h : Include sysselect.h.
4330 (x_sync, x_get_focus_frame, x_set_mouse_position)
4331 (x_set_mouse_pixel_position, x_make_frame_visible)
4332 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4333 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4334 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4335 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
4336 Declare.
4337
4338 * nsmenu.m (popup_activated, name_is_separator)
4339 (syms_of_nsmenu): Convert to ANSI C prototypes.
4340 (runMenuAt): Prototypes and move declarations before code.
4341
4342 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4343
4344 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4345 prototypes.
4346
4347 * nsfns.m (have_menus_p, ns_display_info_for_name)
4348 (x_set_cursor_type, ns_appkit_version_str)
4349 (ns_appkit_version_int, ns_do_applescript)
4350 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4351 (syms_of_nsfns): Convert to ANSI C prototypes.
4352
4353 * menu.h (x_set_menu_bar_line): Declare.
4354 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4355
4356 * lisp.h (fmod_float): Declare.
4357
4358 * image.c (xpm_scan, xpm_make_color_table_v)
4359 (xpm_put_color_table_v, xpm_get_color_table_v)
4360 (xpm_make_color_table_h, xpm_put_color_table_h)
4361 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4362 (xpm_load): Convert to ANSI C prototypes.
4363
4364 * emacs.c: Include nsterm.h if HAVE_NS.
4365
4366 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4367
4368 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4369
4370 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4371 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4372 (socket_options): Use const char* for name.
4373
4374 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4375
4376 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4377
4378 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4379 Don't declare xmalloc_widget_value and digest_single_submenu.
4380
4381 * w32font.c (Qlatin): Remove declaration.
4382
4383 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4384
4385 * dired.c (compile_pattern): Restore declaration.
4386
4387 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4388
4389 Remove extern declarations in .c files, .h files have them.
4390 * data.c:
4391 * dired.c:
4392 * editfns.c:
4393 * filelock.c:
4394 * fns.c:
4395 * font.c:
4396 * fontset.c:
4397 * frame.c:
4398 * fringe.c:
4399 * ftfont.c:
4400 * gtkutil.c:
4401 * indent.c:
4402 * keyboard.c:
4403 * keymap.c:
4404 * lread.c:
4405 * menu.c:
4406 * print.c:
4407 * search.c:
4408 * sound.c:
4409 * window.c:
4410 * xdisp.c:
4411 * xfaces.c:
4412 * xfns.c:
4413 * xfont.c:
4414 * xftfont.c:
4415 * xmenu.c:
4416 * xterm.c: Remove declarations.
4417
4418 Cleanup syssignal.h.
4419 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4420 (main_thread): Move down to remove #ifdef.
4421 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4422 Remove conditional definition following unconditional ones.
4423
4424 * lisp.h: Remove HAVE_SHM code, unused.
4425 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4426 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4427 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4428 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4429 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4430 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4431 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4432 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4433 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4434 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4435 (Qwindow_scroll_functions, Vafter_load_alist)
4436 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4437 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4438 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4439 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4440 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4441 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4442 (initial_argv, last_nonmenu_event, load_in_progress)
4443 (noninteractive_need_newline, scroll_margin): Add declarations.
4444
4445 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4446 Remove declarations, menu.h has them.
4447 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4448 (Vinput_method_function, Qinput_method_function)
4449 (Qevent_symbol_element_mask, last_event_timestamp):
4450 * dispextern.h (Voverflow_newline_into_fringe):
4451 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4452 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4453 (syms_of_w32font, syms_of_nsfont):
4454 * fontset.h (find_font_encoding, Qlatin):
4455 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4456 (Vtool_bar_mode, set_frame_menubar):
4457 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4458 * xterm.h (Qx_gtk_map_stock):
4459 * keymap.h (meta_prefix_char): Add declarations.
4460
4461 * term.c: Remove dead code.
4462
4463 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4464 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4465 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4466 which is what was there before BSD_PGRPS was removed.
4467
4468 2010-08-05 Eli Zaretskii <eliz@gnu.org>
4469
4470 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4471
4472 * unexcoff.c: Renamed from unexec.c.
4473
4474 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4475
4476 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4477
4478 2010-08-03 Johan Bockgård <bojohan@gnu.org>
4479
4480 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4481 (Bug#6744)
4482
4483 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4484
4485 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4486 to TRUE if depth of screen is < 16.
4487
4488 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4489 USE_GTK_TOOLTIP.
4490 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4491 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4492 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
4493 USE_GTK_TOOLTIP.
4494 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4495
4496 * xterm.h (USE_GTK_TOOLTIP): New define.
4497 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4498
4499 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4500 to Control-D (Bug#6771).
4501
4502 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
4503
4504 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4505 Wording by Drew Adams <drew.adams@oracle.com>.
4506
4507 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4508
4509 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4510 ttip_lbl.
4511
4512 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4513 calling gtk_widget_queue_draw.
4514 (x_free_frame_resources): Call xg_free_frame_widgets.
4515
4516 * xfns.c (x_gtk_use_system_tooltips): New variable.
4517 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4518 new gtkutil tooltip functions to show the tooltip.
4519 (Fx_hide_tip): Call xg_hide_tooltip.
4520 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4521
4522 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4523 (xg_show_tooltip, xg_hide_tooltip): Declare.
4524
4525 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
4526 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4527 New functions.
4528 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4529 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4530 Remove code that is commented out.
4531
4532 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4533
4534 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4535
4536 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
4537
4538 * xselect.c (x_own_selection): Use list4.
4539
4540 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4541
4542 * buffer.c (Qwindow): Do not define, already defined in data.c.
4543 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4544
4545 2010-07-29 Chad Brown <yandros@mit.edu>
4546
4547 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4548 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4549 * config.in: Undef HAVE_DIRENT_H.
4550 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
4551 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
4552
4553 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4554
4555 Rename s/usg5-4.h -> s/usg5-4-common.h.
4556 * s/usg5-4.h: Rename file to ...
4557 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4558 * s/unixware.h:
4559 * s/sol2-6.h:
4560 * s/irix6-5.h: Update includes accordingly.
4561
4562 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4563
4564 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4565
4566 * xterm.h (struct x_output): Add toolbar_top_height,
4567 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4568 Remove toolbar_height.
4569 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
4570 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4571 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4572 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4573
4574 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4575
4576 * xfns.c (x_set_tool_bar_position): New function.
4577 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4578 (x_frame_parm_handlers): Add x_set_tool_bar_position.
4579 (syms_of_xfns): If USE_GTK, provide move-toolbar.
4580
4581 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4582 and FRAME_TOOLBAR_LEFT_WIDTH.
4583
4584 * gtkutil.h (xg_change_toolbar_position): Declare.
4585
4586 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4587 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4588 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4589 (xg_create_frame_widgets): Create a hobox for placing widgets
4590 vertically. Use gtk_box_pack_start.
4591 (xg_height_or_width_changed): Rename from xg_height_changed.
4592 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4593 (xg_update_frame_menubar, free_frame_menubar): Change to
4594 xg_height_or_width_changed.
4595 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4596 size correctly. Remove hardcoded 4, instead use handlebox size -
4597 toolbar size.
4598 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
4599 size correctly. Use handlebox size + toolbar size as additional size.
4600 (xg_pack_tool_bar): POS is a new parameter.
4601 Set orientation of tool bar based on pos.
4602 Only make handlebox_widget if NULL.
4603 Check if tool bar goes to vbox or hbox depending on pos.
4604 (xg_update_tool_bar_sizes): New function.
4605 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
4606 height, call xg_update_tool_bar_sizes instead.
4607 (free_frame_tool_bar): Remove from hbox or vbox depending on
4608 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4609 (xg_change_toolbar_position): New function.
4610
4611 * frame.h (struct frame): Add tool_bar_position.
4612 (Qbottom): Declare.
4613
4614 * frame.c (Qtool_bar_position): New variable.
4615 (make_frame): Set tool_bar_position to Qtop.
4616 (frame_parms): Add tool-bar-position.
4617 (x_report_frame_params): Store tool_bar_position.
4618 (x_set_fringe_width): Reset wm size hint after fringe changes.
4619
4620 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4621
4622 Make lisp_time_argument declaration work on all systems.
4623 * lisp.h (lisp_time_argument): Move declaration ...
4624 * systime.h (lisp_time_argument): ... here
4625 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4626
4627 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4628
4629 * vm-limit.c (POINTER): Add typedef for it.
4630 (start_of_data): Change return type from POINTER to char *.
4631
4632 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4633 HAVE_WINDOW_SYSTEM.
4634
4635 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4636
4637 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4638 Remove reference to __osf__, unused.
4639
4640 * mem-limits.h: Remove duplicated includes.
4641 (NULL): Remove definition, unused.
4642 (POINTER): Remove definition.
4643 (start_of_data): Use char* in prototype, as the function
4644 definition does.
4645
4646 Remove extern declarations from .c files, and them to .h files.
4647 * keyboard.h (Qhelp_echo, waiting_for_input)
4648 (input_available_clear_time, ignore_mouse_drag_p)
4649 (Vdouble_click_time, real_this_command, Vthis_original_command):
4650 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4651 (Voverriding_local_map_menu_flag):
4652 * lisp.h (Qinteractive_form, use_file_dialog)
4653 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4654 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4655 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4656 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4657 (Qfunction, debug_on_next_call, Qfield)
4658 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4659 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4660 (Qfile_directory_p, Qinsert_file_contents)
4661 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4662 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4663 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4664 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4665 (Qminibuffer_prompt)
4666 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4667 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4668 (gray_bitmap_bits, xic_create_fontsetname):
4669 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4670
4671 * xsmfns.c (Vuser_login_name):
4672 * xrdb.c (Vdouble_click_time):
4673 * xfaces.c (xic_create_fontsetname):
4674 * w32select.c (waiting_for_input):
4675 * print.c (minibuffer_auto_raise):
4676 * msdos.c (Qhelp_echo):
4677 * macros.c (real_this_command):
4678 * keymap.c (Voverriding_local_map):
4679 * xterm.c (poll_for_input_1, gray_bitmap_width)
4680 (gray_bitmap_height, gray_bitmap_bits;
4681 * xmenu.c ( Voverriding_local_map)
4682 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4683 (use_file_dialog, Xt_app_con):
4684 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4685 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4686 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4687 (Qtool_bar_lines, ignore_mouse_drag_p):
4688 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4689 (Qrear_nonsticky, nconc2):
4690 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4691 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4692 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4693 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4694 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4695 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4696 (gc_in_progress):
4697 * doc.c (Voverriding_local_map, Qremap):
4698 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4699 (Vcompletion_regexp_list):
4700 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4701 (Qcompletion_ignore_case):
4702 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4703 (Vhistory_length, Vthis_original_command, real_this_command)
4704 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4705 * image.c (Qrisky_local_variable):
4706 * fontset.c (QCname):
4707 * fns.c (minibuffer_auto_raise, QCname):
4708 * dispnew.c (char_ins_del_cost):
4709 * composite.c (font_fill_lglyph_metrics):
4710 * cmds.c (Qface, Vtranslation_table_for_input):
4711 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4712 * ccl.c (charset_unicode):
4713 * callproc.c (Vtemporary_file_directory):
4714 * buffer.c (emacs_strerror): Remove extern declarations.
4715
4716 * data.c (Qwindow): Make non-static, used from other files too.
4717 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4718
4719 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4720 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4721 * s/usg5-4.h (COFF):
4722 * s/template.h:
4723 * s/msdos.h (COFF, NO_REMAP):
4724 * s/ms-w32.h (NO_REMAP):
4725 * s/hpux10-20.h (NO_REMAP):
4726 * m/sparc.h (SEGMENT_MASK):
4727 * m/m68k.h (NO_REMAP):
4728 * m/intel386.h (SEGMENT_MASK):
4729 * m/arm.h (NO_REMAP):
4730 * m/alpha.h (COFF):
4731 * m/template.h: Remove references to unused defines.
4732
4733 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4734
4735 * xsettings.c (Ftool_bar_get_system_style): Also check for
4736 Qtext_image_horiz.
4737
4738 * xdisp.c (Qtext_image_horiz): Define.
4739 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
4740 to documentation of tool-bar-style.
4741
4742 * lisp.h (Qtext_image_horiz): Declare.
4743
4744 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4745 style text_image_horiz.
4746
4747 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4748
4749 * emacs.c (Fkill_emacs): Remove return statement.
4750
4751 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4752 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
4753 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4754 Remove local extern declarations.
4755
4756 * xmenu.c: Do not included lwlib.h, not needed.
4757
4758 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4759
4760 * process.c: Move definitions earlier to minimize #ifdefs.
4761
4762 * xterm.h (x_get_customization_string, x_load_resources)
4763 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4764 (x_check_errors, x_property_data_to_lisp, defined_color)
4765 (xic_set_xfontset, x_defined_color): Use const.
4766
4767 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4768 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4769
4770 * xselect.c (selection_data_to_lisp_data)
4771 (x_property_data_to_lisp):
4772 * xrdb.c (x_get_string_resource, file_p)
4773 (x_get_customization_string, magic_file_p, search_magic_path)
4774 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4775 (x_get_string_resource): Use const.
4776
4777 * xfns.c: Include xlwmenu.h when USE_LUCID.
4778 (x_defined_color, xic_set_xfontset): Use const.
4779 (Fx_hide_tip): Remove local extern declaration.
4780
4781 * xfaces.c (Qmouse_face): Remove declaration.
4782 (face_color_gray_p, tty_defined_color, defined_color)
4783 (face_color_gray_p, face_color_supported_p): Add const.
4784
4785 * xdisp.c (do_mouse_tracking): Remove declaration.
4786 (add_to_log): Use const.
4787
4788 * minibuf.c (Qmouse_face): Remove declaration.
4789
4790 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4791
4792 * keyboard.h (do_mouse_tracking): Add declaration.
4793
4794 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4795 (QCdata, QCtype, Qcenter): Remove declarations.
4796
4797 * frame.c (x_get_resource_string, x_get_string_resource)
4798 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4799 (x_default_parameter): Use const.
4800
4801 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4802 (QCheight, QCsize, QCname): Remove declarations.
4803
4804 * emacs.c (main): Remove local extern declaration.
4805
4806 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4807 declarations.
4808
4809 * dispnew.c: Remove duplicate #include <unistd.h>.
4810 (update_window, update_frame_1, init_display): Remove local extern
4811 declarations.
4812
4813 * dispextern.h (add_to_log): Remove declaration.
4814 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4815 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4816
4817 * dired.c (scmp): Add const.
4818 (directory_files_internal): Remove local extern declaration.
4819
4820 * data.c (Finteractive_form): Use const.
4821
4822 * composite.c (syms_of_composite): Remove local extern declarations.
4823
4824 * charset.c (add_to_log): Remove declaration.
4825
4826 * character.c (strwidth, parse_str_to_multibyte): Add const.
4827
4828 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4829
4830 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4831
4832 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
4833 (Lisp_Subr): Make doc and intspec constant.
4834 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4835 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4836 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4837 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4838 (display_arg): Add declarations.
4839
4840 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
4841
4842 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4843
4844 * window.c (Fwindow_height): Doc fix (bug#6518).
4845
4846 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
4847
4848 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4849
4850 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4851
4852 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4853 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4854 functions.
4855
4856 * frame.h (Qtty_color_mode): Add declaration.
4857
4858 * lisp.h (Ftop_level, Fexit_recursive_edit)
4859 (Fabort_recursive_edit): Mark as NO_RETURN.
4860
4861 2010-07-26 Kenichi Handa <handa@m17n.org>
4862
4863 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
4864 number of glyphs gets smaller than the original length. (Bug#6621)
4865
4866 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
4867
4868 * lread.c (unreadpure, mapatoms_1): Make static.
4869
4870 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4871
4872 * terminfo.c (tparam): Fix prototype of tparm.
4873
4874 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4875
4876 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4877 find start of text segment.
4878 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4879 is defined.
4880
4881 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4882
4883 2010-07-25 Ken Brown <kbrown@cornell.edu>
4884
4885 * vm-limit.c (check_memory_limits): Fix previous change;
4886 accidentally reverted an earlier change.
4887
4888 2010-07-25 Ken Brown <kbrown@cornell.edu>
4889
4890 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4891 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4892
4893 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4894
4895 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4896 * dired.c (opendir, readdir): Fix prototypes.
4897 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4898 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4899 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4900 (telldir): Remove declaration.
4901 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4902 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4903 * syssignal.h (strsignal): Fix prototype.
4904 * term.c (tparam): Fix prototype.
4905 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4906 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4907 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4908 and __morecore.
4909 * w32gui.h (XParseGeometry): Fix prototype.
4910 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4911 * w32term.c (my_set_focus): Declare inside #if 0.
4912 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4913 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4914 (drain_message_queue, get_next_msg, post_msg, parse_button)
4915 (ClipboardSequence_Proc): Fix prototypes.
4916 (wait_for_sync): Remove declaration.
4917
4918 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
4919
4920 * w32fns.c (w32_to_x_color): Remove, unused.
4921
4922 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4923
4924 * lisp.h: Remove leftover P_.
4925
4926 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4927
4928 * ecrt0.c, unexalpha.c: Remove files, unused.
4929
4930 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4931
4932 * cmds.c (internal_self_insert): Make static.
4933 * lisp.h (internal_self_insert): Remove declaration.
4934
4935 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
4936
4937 * alloc.c (free_float):
4938 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4939 * frame.c (delete_frame_handler):
4940 * ralloc.c (reorder_bloc):
4941 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4942 Remove unused static functions.
4943
4944 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4945 it is called only from NS code.
4946
4947 * w32term.c (my_set_focus): #ifdef away; it is called only from
4948 "#ifdef 0" code.
4949
4950 * w32fns.c (x_edge_detection):
4951 * xfaces.c (may_use_scalable_font_p):
4952 Remove obsolete static declarations.
4953
4954 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
4955
4956 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4957 (emacs_blocked_realloc, uninterrupt_malloc):
4958 * fringe.c (w32_reset_fringes):
4959 * image.c (convert_mono_to_color_image, lookup_rgb_color)
4960 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4961 * sound.c (be2hs, do_play_sound):
4962 * vm-limit.c (get_lim_data, ret_lim_data):
4963 * w32term.c (x_free_frame_resources):
4964 * xfaces.c (x_create_gc, x_free_gc):
4965 Convert definitions to standard C.
4966
4967 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * eval.c (Feval, Ffuncall): Use the new names.
4970
4971 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4972 (DEFUN): Add braces around the union initialisation and use ## to
4973 specify the right union alternative and avoid a cast.
4974
4975 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
4976
4977 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4978
4979 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
4980
4981 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4982
4983 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
4984
4985 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4986 is related to the menu bar (Bug#6499).
4987 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
4988
4989 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
4990
4991 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
4992
4993 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
4994
4995 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
4996 i.e. don't put back ButtonRelease (Bug#6608).
4997
4998 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
4999 instead of Window. Call xg_event_is_for_menubar when
5000 USE_GTK (Bug#6499).
5001
5002 * gtkutil.h (xg_event_is_for_menubar): Declare.
5003
5004 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5005
5006 2010-07-16 Eli Zaretskii <eliz@gnu.org>
5007
5008 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5009 when it's the same as the old foreground. (Bug#6609)
5010
5011 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5012
5013 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5014 widget is non-null (Bug#6645).
5015
5016 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5017
5018 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5019 Convert old-style definition.
5020
5021 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5022 timestamp argument.
5023
5024 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5025
5026 * fringe.c (update_window_fringes): Restore mistakenly reverted
5027 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5028
5029 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5030
5031 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5032 (SET_SAVED_KEY_EVENT): Remove (not used).
5033 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5034 remove size parameter.
5035 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5036 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5037 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5038 ButtonRelease.
5039 (x_set_window_size_1): scroll_bar_actual_width is always
5040 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5041
5042 * xdisp.c (pending_menu_activation): Remove extern declaration.
5043 (prepare_menu_bars): Remove setting of pending_menu_activation.
5044
5045 * xmenu.c (pending_menu_activation): Remove.
5046 (x_activate_menubar): Set popup_activated_flag for Xt also.
5047 Remove setting of pending_menu_activation.
5048 (set_frame_menubar): Remove check of pending_menu_activation.
5049 Declare menubar_size before code. Correct spelling in comment.
5050
5051 2010-07-14 Kenichi Handa <handa@m17n.org>
5052
5053 * font.c (font_open_entity): Cancel previous change.
5054 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5055
5056 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5057
5058 Remove subprocesses #ifdefs.
5059 * process.c <inhibit_sentinels>: Move to the common part.
5060 (Fwaiting_for_user_input_p): Move to the common part; return nil
5061 if async subprocesses aren't supported.
5062 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5063 MS-DOS. Remove "#ifdef subprocesses".
5064 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5065 (gettimeofday): Remove "#ifdef subprocesses".
5066 (wait_without_blocking): Remove function.
5067 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5068 Remove "#ifdef subprocesses".
5069 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5070 compiled on MS-DOS.
5071 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5072 wait_for_termination on MS-DOS.
5073 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5074 initialization of inhibit_sentinels.
5075 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5076 subprocesses" conditional.
5077 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5078 wait_for_termination, since `buffer' cannot be an integer when
5079 async subprocesses are not supported
5080 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5081 for ifdefing away the call to Fprocess_status.
5082
5083 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5084 away the entire body of the function.
5085
5086 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 Remove subprocesses #ifdefs from term.c.
5089 * process.c (add_keyboard_wait_descriptor)
5090 (delete_keyboard_wait_descriptor): Move to common section, do
5091 nothing when subprocesses is not defined.
5092 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5093 Remove subprocesses #ifdefs.
5094
5095 Convert maybe_fatal to standard C.
5096 * lisp.h (verror): Declare.
5097 * eval.c (verror): New function containing the code from ...
5098 (error): ... this. Call verror.
5099 * term.c (vfatal): New function containing the code from ...
5100 (fatal): ... this. Call vfatal.
5101 (maybe_fatal): Convert to standard C, use variable number of
5102 arguments. Declare as non-return.
5103 (init_tty): Fix maybe_fatal call.
5104
5105 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5106
5107 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5108 (_scroll_bar_note_movement): Convert definitions to standard C.
5109 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5110 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5111
5112 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5113
5114 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5115 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5116 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5117 (xaw_jump_callback, xaw_scroll_callback)
5118 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5119 (x_wm_set_size_hint, x_activate_timeout_atimer):
5120 Convert definitions to standard C.
5121 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5122 (popup_activate_callback, popup_deactivate_callback)
5123 (menu_highlight_callback, menubar_selection_callback)
5124 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5125 (free_frame_menubar, popup_selection_callback, as)
5126 (create_and_show_popup_menu, dialog_selection_callback)
5127 (create_and_show_dialog):
5128 * xfns.c (hack_wm_protocols, x_window):
5129 * xfaces.c (x_update_menu_appearance):
5130 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5131 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5132 (set_frame_size, update_wm_hints, setup_frame_gcs)
5133 (update_various_frame_slots, update_from_various_frame_slots)
5134 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5135 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5136 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5137
5138 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5139
5140 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5141
5142 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5143
5144 * process.c (setup_process_coding_systems): Move to the part
5145 shared by non-subprocesses systems, and make its body empty when
5146 subprocesses is not defined.
5147 (close_process_descs): Move to the part shared by non-subprocesses
5148 systems.
5149 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5150 ANSI C.
5151
5152 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5153
5154 * editfns.c (transpose_markers): Convert old-style definition.
5155 * emacs.c (abort, shut_down_emacs, fixup_locale)
5156 (synchronize_system_time_locale)
5157 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5158 * floatfns.c (extract_float, matherr, init_floatfns)
5159 (syms_of_floatfns): Likewise.
5160 * fns.c (make_hash_table): Likewise.
5161 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5162 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5163 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5164 (ftfont_variation_glyphs): Likewise.
5165 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5166 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5167 * lread.c (read_filtered_event): Likewise.
5168 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5169 * process.c (wait_reading_process_output): Likewise.
5170 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5171 * search.c (search_buffer, boyer_moore): Likewise.
5172 * syntax.c (scan_sexps_forward): Likewise.
5173 * xdisp.c (try_scrolling): Likewise.
5174 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5175 (face_at_string_position): Likewise.
5176 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5177 * xselect.c (x_get_window_property, receive_incremental_selection)
5178 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5179 Likewise.
5180 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5181
5182 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5183
5184 * callproc.c (child_setup): Remove subprocesses conditional.
5185 Remove code dealing with SET_EMACS_PRIORITY, unused.
5186
5187 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5188 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5189
5190 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5191 (__do_global_dtors, __main): Use void in definition.
5192 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5193 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5194 the only users from ...
5195 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5196 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5197 (HAVE_VOLATILE): Remove, unused.
5198
5199 Convert more function definitions to standard C.
5200 * xdisp.c (window_box_edges, handle_single_display_spec)
5201 (display_string): Convert definition to standard C.
5202 * scroll.c (do_direct_scrolling, scrolling_1):
5203 * dispnew.c (allocate_matrices_for_frame_redisplay)
5204 (mirrored_line_dance):
5205 * coding.c (code_convert_string):
5206 * charset.c (map_charset_chars):
5207 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5208 (Fregister_ccl_program, Fregister_code_conversion_map):
5209 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5210 (head_table): Make static and const.
5211
5212 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5213
5214 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5215 (PROFILING_LDFLAGS): Set from substitution.
5216 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5217 CFLAGS last.
5218
5219 2010-07-12 Kenichi Handa <handa@m17n.org>
5220
5221 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5222 (shortlisp): Likewise.
5223
5224 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5225
5226 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5227 of FONT_ENTITY_INDEX.
5228 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5229 property, get the property value dynamically.
5230 (Ffont_put): Accept font-entity and font-object too.
5231 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5232 return value changed.
5233 (syms_of_font): Adjust for the above change.
5234
5235 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5236
5237 * blockinput.h: Remove obsolete comment.
5238
5239 * lisp.h: Include <stddef.h>.
5240 (OFFSETOF): Don't define.
5241 (VECSIZE): Use offsetof instead of OFFSETOF.
5242 (PSEUDOVECSIZE): Likewise.
5243 * process.c (conv_sockaddr_to_lisp): Likewise.
5244 * alloc.c: Don't include <stddef.h>.
5245 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5246
5247 * process.c: Remove obsolete comment.
5248
5249 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5250
5251 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5252
5253 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5254
5255 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5256 index, rindex.
5257 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5258 * editfns.c (Fuser_full_name, Fformat): Likewise.
5259 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5260 * fileio.c (Ffile_symlink_p): Likewise.
5261 * filelock.c (current_lock_owner): Likewise.
5262 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5263 * fontset.c (fontset_pattern_regexp): Likewise.
5264 * lread.c (read1): Likewise.
5265 * sysdep.c (init_system_name): Likewise.
5266 * xfns.c (select_visual): Likewise.
5267 * s/hpux10-20.h (index, rindex): Don't define.
5268 * s/ms-w32.h (index): Likewise.
5269 * s/usg5-4.h: Likewise.
5270
5271 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5272
5273 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5274 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5275 (egetenv): Likewise.
5276 * doprnt.c (doprnt): Likewise.
5277 * editfns.c (set_time_zone_rule, format2): Likewise.
5278 * emacs.c (decode_env_path): Likewise.
5279 * eval.c (signal_error, error): Likewise.
5280 * insdel.c (replace_range_2): Likewise.
5281 * keyboard.c (cmd_error_internal): Likewise.
5282 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5283 * print.c (write_string, write_string_1, print_error_message):
5284 Likewise.
5285 * vm-limit.c (warn_function, memory_warnings): Likewise.
5286 * xdisp.c (message1, message1_nolog, message_with_string)
5287 (vmessage, message, message_nolog): Likewise.
5288 * emacs.c: Remove duplicate declaration.
5289 * keyboard.h: Likewise.
5290 * lisp.h: Update prototypes.
5291
5292 * eval.c: Fix indentation problem.
5293
5294 * keyboard.c: Include "process.h"
5295
5296 * eval.c: Remove obsolete noinline declaration.
5297 * fns.c: Likewise.
5298
5299 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5300
5301 * doprnt.c (doprnt): Take a va_list argument instead of count and
5302 pointer.
5303 * eval.c (error): Change to a standard-C variadic function.
5304 * xdisp.c (vmessage): Rename from message, made static, and
5305 changed to take a va_list argument.
5306 (message): New variadic wrapper.
5307 (message_nolog): Now a variadic function, calling vmessage.
5308 * lisp.h: Include stdarg.h for va_list.
5309 (doprnt, error, message, message_nolog): Decls updated.
5310
5311 2010-07-11 Eli Zaretskii <eliz@gnu.org>
5312
5313 * process.c (syms_of_process) <delete-exited-processes>: Define
5314 even if !subprocesses.
5315 (delete_exited_processes): Ditto.
5316
5317 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5318 (delete_exited_processes): Don't define.
5319
5320 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
5321
5322 * frame.c (make_frame): Initialize menu_bar_lines and
5323 tool_bar_lines members.
5324 (make_initial_frame, make_terminal_frame):
5325 Initialize menu_bar_lines using value of menu-bar-mode.
5326
5327 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5328
5329 2010-07-10 Eli Zaretskii <eliz@gnu.org>
5330
5331 * process.c: Reshuffle #include's. Condition some of the global
5332 and static variables on `subprocesses'.
5333 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5334 Leave only one implementation.
5335 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5336 (kill_buffer_processes, Flist_system_processes)
5337 (Fprocess_attributes, init_process, syms_of_process): Unify the
5338 implementations for with subprocesses and without them.
5339
5340 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5341
5342 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5343 correct size for Motif.
5344 (free_frame_menubar): Call x_set_window_size to update frame size.
5345
5346 * xfns.c (x_window): Set borderWidth to 0 for pane and
5347 EmacsFrame. Frame size calculation is wrong otherwise.
5348
5349 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
5350
5351 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5352 allows to suppress errors when polling in Emacs' main loop.
5353 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5354 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5355 (Fdbus_method_error_internal, Fdbus_send_signal)
5356 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5357 (Fdbus_register_method): Use it. (Bug#6579)
5358
5359 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5360
5361 * alloc.c: Convert DEFUNs to standard C.
5362 * buffer.c:
5363 * bytecode.c:
5364 * callint.c:
5365 * callproc.c:
5366 * casefiddle.c:
5367 * casetab.c:
5368 * category.c:
5369 * character.c:
5370 * charset.c:
5371 * chartab.c:
5372 * cmds.c:
5373 * coding.c:
5374 * composite.c:
5375 * data.c:
5376 * dbusbind.c:
5377 * dired.c:
5378 * dispnew.c:
5379 * doc.c:
5380 * dosfns.c:
5381 * editfns.c:
5382 * emacs.c:
5383 * eval.c:
5384 * fileio.c:
5385 * filelock.c:
5386 * floatfns.c:
5387 * fns.c:
5388 * font.c:
5389 * fontset.c:
5390 * frame.c:
5391 * fringe.c:
5392 * image.c:
5393 * indent.c:
5394 * insdel.c:
5395 * keyboard.c:
5396 * keymap.c:
5397 * lread.c:
5398 * macros.c:
5399 * marker.c:
5400 * menu.c:
5401 * minibuf.c:
5402 * msdos.c:
5403 * nsfns.m:
5404 * nsmenu.m:
5405 * nsselect.m:
5406 * print.c:
5407 * process.c:
5408 * search.c:
5409 * sound.c:
5410 * syntax.c:
5411 * term.c:
5412 * terminal.c:
5413 * textprop.c:
5414 * undo.c:
5415 * w16select.c:
5416 * w32console.c:
5417 * w32fns.c:
5418 * w32font.c:
5419 * w32menu.c:
5420 * w32proc.c:
5421 * w32select.c:
5422 * window.c:
5423 * xdisp.c:
5424 * xfaces.c:
5425 * xfns.c:
5426 * xmenu.c:
5427 * xselect.c:
5428 * xsettings.c:
5429 * xsmfns.c: Likewise.
5430
5431 2010-07-08 Eli Zaretskii <eliz@gnu.org>
5432
5433 * process.c (kbd_is_on_hold, hold_keyboard_input)
5434 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5435
5436 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5437
5438 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5439 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5440 unless USE_LUCID.
5441
5442 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5443
5444 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5445 declaration.
5446
5447 Clean up include guards.
5448 * tparam.c: Remove include guards for config.h, string.h and code
5449 that assumes #ifndef emacs.
5450 * termcap.c:
5451 * unexalpha.c:
5452 * sysdep.c:
5453 * filemode.c:
5454 * filelock.c:
5455 * bidi.c: Likewise.
5456
5457 Remove prefix-args.c
5458 * prefix-args.c: Remove file.
5459 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5460 * Makefile.in (temacs${EXEEXT}): Remove references to
5461 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5462 (mostlyclean): Remove reference to prefix-args.
5463 (prefix-args): Remove.
5464
5465 Simplify cstart_of_data, start_of_code and related code.
5466 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5467 (start_of_data): Merge into start_of_data function.
5468 * sysdep.c (start_of_text): Remove. Move simplified versions of
5469 it in the only users: unexaix.c and unexec.c.
5470 (read_input_waiting): Remove local declaration of quit_char.
5471 (start, etext): Remove declarations.
5472 (start_of_data): Merge with the version in mem-limits.h and move
5473 to vm-limits.c.
5474 * vm-limit.c (start_of_data): Merged and simplified version of the
5475 code formerly in mem-limits.h and sysdep.c.
5476 * unexec.c (start): New declaration, moved from sysdep.c.
5477 (start_of_text): Simplified version of the code formerly in sysdep.c.
5478 * unexaix.c (start_of_text): Simplified version of the code
5479 formerly in sysdep.c.
5480 * m/alpha.h (HAVE_TEXT_START): Remove.
5481 (TEXT_START): Move ...
5482 * unexalpha.c (TEXT_START): ... here.
5483 * s/hpux10-20.h (TEXT_START): Remove.
5484 * s/darwin.h (TEXT_START):
5485 * m/mips.h (TEXT_START):
5486 * m/macppc.h (HAVE_TEXT_START):
5487 * m/m68k.h (TEXT_START):
5488 * m/iris4d.h (TEXT_START):
5489 * m/intel386.h (TEXT_START):
5490 * m/ibmrs6000.h (TEXT_START):
5491 * m/ia64.h (HAVE_TEXT_START):
5492 * s/msdos.h (TEXT_START): Likewise.
5493
5494 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5495
5496 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5497 (overrun_check_free, xstrdup, allocate_string)
5498 (allocate_string_data, compact_small_strings, Fmake_string)
5499 (make_unibyte_string, make_multibyte_string)
5500 (make_string_from_bytes, make_specified_string, make_float)
5501 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5502 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5503 memcpy, memmove, memset, memcmp.
5504 * atimer.c (start_atimer, set_alarm): Likewise.
5505 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5506 (mmap_realloc, init_buffer_once): Likewise.
5507 * callint.c (Fcall_interactively): Likewise.
5508 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5509 (getenv_internal_1): Likewise.
5510 * casefiddle.c (casify_object): Likewise.
5511 * ccl.c (ccl_driver): Likewise.
5512 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5513 * charset.c (load_charset_map_from_file)
5514 (load_charset_map_from_file, load_charset_map_from_vector)
5515 (Fdefine_charset_internal): Likewise.
5516 * cm.c (Wcm_clear): Likewise.
5517 * coding.c (decode_eol, decode_coding_object)
5518 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5519 * data.c (Faset): Likewise.
5520 * dired.c (directory_files_internal, file_name_completion_stat):
5521 Likewise.
5522 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5523 (clear_glyph_row, copy_row_except_pointers)
5524 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5525 (save_current_matrix, restore_current_matrix)
5526 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5527 (mirror_line_dance, scrolling_window): Likewise.
5528 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5529 Likewise.
5530 * doprnt.c (doprnt): Likewise.
5531 * editfns.c (Fuser_full_name, make_buffer_string_both)
5532 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5533 * emacs.c (sort_args): Likewise.
5534 * eval.c (Fapply, Ffuncall): Likewise.
5535 * fileio.c (Ffile_name_directory, make_temp_name)
5536 (Fexpand_file_name, search_embedded_absfilename)
5537 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5538 (auto_save_error): Likewise.
5539 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5540 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5541 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5542 (Fmake_hash_table): Likewise.
5543 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5544 * ftfont.c (ftfont_text_extents): Likewise.
5545 * getloadavg.c (getloadavg): Likewise.
5546 * image.c (define_image_type, make_image, make_image_cache)
5547 (x_create_x_image_and_pixmap, xbm_image_p)
5548 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5549 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5550 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5551 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5552 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5553 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5554 Likewise.
5555 * indent.c (scan_for_column, compute_motion): Likewise.
5556 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5557 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5558 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5559 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5560 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5561 (store_user_signal_events, menu_bar_items, tool_bar_items)
5562 (process_tool_bar_item, append_tool_bar_item)
5563 (read_char_minibuf_menu_prompt, read_key_sequence)
5564 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5565 Likewise.
5566 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5567 Likewise.
5568 * lisp.h (STRING_COPYIN): Likewise.
5569 * lread.c (Fload, read1, oblookup): Likewise.
5570 * msdos.c (Frecent_doskeys): Likewise.
5571 * nsfns.m (Fx_create_frame): Likewise.
5572 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5573 Likewise.
5574 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5575 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5576 Likewise.
5577 * nsmenu.m (ns_update_menubar): Likewise.
5578 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5579 * print.c (print_unwind, printchar, strout, print_string)
5580 (print_error_message): Likewise.
5581 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5582 (Fmake_network_process, Fnetwork_interface_list)
5583 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5584 (init_process): Likewise.
5585 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5586 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5587 Likewise.
5588 * scroll.c (do_scrolling, do_direct_scrolling)
5589 (scrolling_max_lines_saved): Likewise.
5590 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5591 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5592 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5593 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5594 (emacs_set_tty): Likewise.
5595 * term.c (encode_terminal_code, calculate_costs)
5596 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5597 Likewise.
5598 * termcap.c (tgetst1, gobble_line): Likewise.
5599 * termhooks.h (EVENT_INIT): Likewise.
5600 * tparam.c (tparam1): Likewise.
5601 * unexalpha.c (unexec): Likewise.
5602 * unexec.c (write_segment): Likewise.
5603 * unexmacosx.c (unexec_write_zero): Likewise.
5604 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5605 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5606 * w32font.c (w32font_list_family, w32font_text_extents)
5607 (w32font_list_internal, w32font_match_internal)
5608 (w32font_open_internal, compute_metrics, Fx_select_font):
5609 Likewise.
5610 * w32menu.c (set_frame_menubar, add_menu_item)
5611 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5612 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5613 * w32uniscribe.c (uniscribe_list_family): Likewise.
5614 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5615 * window.c (make_window, replace_window, set_window_buffer)
5616 (Fsplit_window): Likewise.
5617 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5618 (add_to_log, message3, x_consider_frame_title)
5619 (append_space_for_newline, extend_face_to_end_of_line)
5620 (decode_mode_spec_coding, init_glyph_string): Likewise.
5621 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5622 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5623 (face_attr_equal_p, make_realized_face, make_face_cache)
5624 (free_realized_faces, lookup_named_face, smaller_face)
5625 (face_with_height, lookup_derived_face)
5626 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5627 (Finternal_set_font_selection_order, realize_default_face)
5628 (compute_char_face, face_at_buffer_position)
5629 (face_for_overlay_string, face_at_string_position, merge_faces):
5630 Likewise.
5631 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5632 (Fx_window_property, x_create_tip_frame)
5633 (Fx_backspace_delete_keys_p): Likewise.
5634 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5635 (xfont_text_extents): Likewise.
5636 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5637 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5638 * xselect.c (x_queue_event, x_get_window_property)
5639 (receive_incremental_selection): Likewise.
5640 * xsmfns.c (x_session_check_input): Likewise.
5641 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5642 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5643 Likewise.
5644 * character.h (BCOPY_SHORT): Removed.
5645 * config.in: Regenerate.
5646 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5647 * emacs.c (main) [PROFILING]: Don't declare
5648 dump_opcode_frequencies.
5649 * lisp.h (safe_bcopy): Remove declaration.
5650 (memset) [!HAVE_MEMSET]: Declare.
5651 (memcpy) [!HAVE_MEMCPY]: Likewise.
5652 (memmove) [!HAVE_MEMMOVE]: Likewise.
5653 (memcmp) [!HAVE_MEMCMP]: Likewise.
5654 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5655 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5656 Don't define.
5657 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5658 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5659 (BCOPY_DOWNWARD_SAFE): Don't define.
5660 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5661 (memcpy) [!HAVE_MEMCPY]: Define.
5662 (memmove) [!HAVE_MEMMOVE]: Define.
5663 (memcmp) [!HAVE_MEMCMP]: Define.
5664
5665 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5666
5667 * process.c (kbd_is_on_hold): New variable.
5668 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5669 New functions.
5670 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5671 select on empty input mask.
5672 (init_process): Initialize kbd_is_on_hold to 0.
5673
5674 * process.h (hold_keyboard_input, unhold_keyboard_input)
5675 (kbd_on_hold_p): Declare.
5676
5677 * keyboard.c (input_available_signal): Declare.
5678 (kbd_buffer_nr_stored): New function.
5679 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5680 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5681 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5682 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5683 (tty_read_avail_input): If input is on hold, return.
5684 Don't read more that free slots in kbd_buffer (Bug#6571).
5685
5686 2010-07-07 Eli Zaretskii <eliz@gnu.org>
5687
5688 * msdos.h:
5689 * msdos.c:
5690 * dosfns.c:
5691 * w16select.c: Convert function definitions to ANSI C.
5692
5693 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5694 Remove unused prototypes.
5695
5696 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5697
5698 * coding.c, sysdep.c: Convert some more functions to standard C.
5699
5700 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5701
5702 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5703 (encode_coding_object): Use SPECPDL_INDEX.
5704 (syms_of_coding): Use DOS_NT.
5705
5706 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5707
5708 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5709
5710 Make the function member of Lisp_Subr use standard C prototypes.
5711 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5712 (DECL_ALIGN): Add a cast for the function.
5713 * eval.c (Feval, Ffuncall): Use the proper type for each type
5714 function call.
5715
5716 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
5717
5718 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5719 fringe face id, so face-remapping-alist works (Bug#6091).
5720
5721 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
5722
5723 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5724 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5725 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5726
5727 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5728
5729 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5730 * lisp.h: Declare x_get_keysym_name.
5731 * keyboard.c (modify_event_symbol): Don't declare
5732 x_get_keysym_name here.
5733
5734 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5735
5736 * ecrt0.c: Revert conversion to standard C.
5737
5738 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5739
5740 * vm-limit.c (memory_warnings):
5741 * keyboard.c (modify_event_symbol):
5742 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5743 (round2, emacs_rint):
5744 * process.c (send_process, old_sigpipe): Convert function
5745 definitions and declarations to standard C.
5746
5747 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
5748
5749 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5750 * xdisp.c: Convert function definitions to standard C.
5751
5752 * cm.c (cmputc): Arg C is now int, not char.
5753 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5754
5755 2010-07-05 James Cloos <cloos@jhcloos.com>
5756
5757 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5758
5759 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5760 _NET_WM_ICON_NAME atoms.
5761
5762 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5763 and _NET_WM_ICON_NAME properties, too, matching what is
5764 done in the Gtk+ case.
5765
5766 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5767
5768 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5769
5770 * xsmfns.c (SSDATA): New macro.
5771 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5772 passed to strlen/strcpy/strcat.
5773 (create_client_leader_window): Surround with #ifndef USE_GTK.
5774 Cast 7:th arg to XChangeProperty to (unsigned char *).
5775
5776 * xsettings.c (something_changedCB, parse_settings)
5777 (apply_xft_settings): Reformat prototype.
5778 (something_changedCB, init_gconf): Remove unused variable i.
5779 (read_settings): Remove unused variable long_len.
5780
5781 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5782 (xg_get_image_for_pixmap, create_dialog)
5783 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5784 (menuitem_highlight_callback, make_menu_item)
5785 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5786 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5787 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5788 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5789 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5790 (xg_tool_bar_item_expose_callback): Reformat prototype.
5791 (xg_update_menubar): GList *group => GSList *group.
5792 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5793 before use.
5794 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5795 to GTK_IMAGE (wimage).
5796
5797 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5798
5799 * atimer.c: Use "" instead of <> for local includes for
5800 consistency with the rest of the code.
5801
5802 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5803 * xrdb.c (get_system_name):
5804 * window.c (shrink_windows):
5805 * syntax.c (forw_comment):
5806 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5807 (ins_del_costs):
5808 * mem-limits.h (start_of_data):
5809 * lread.c (readevalloop):
5810 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5811 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5812 * frame.c (x_get_focus_frame):
5813 * floatfns.c (fmod_float):
5814 * fileio.c (choose_write_coding_system):
5815 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5816 (malloc_initialize_hook, sort_args, synchronize_locale):
5817 * doprnt.c (doprnt):
5818 * dired.c (compile_pattern):
5819 * data.c (fmod_float):
5820 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5821 (map_char_table_for_charset):
5822 * charset.c (define_charset_internal):
5823 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5824 to standard C.
5825
5826 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
5827 Stefan Monnier <monnier@iro.umontreal.ca>
5828
5829 * lread.c (read1): Fix up last change to not mess up `c'.
5830
5831 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5832
5833 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5834
5835 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5836
5837 Fix prototypes.
5838
5839 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
5840 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
5841 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5842 arg, as required by internal_condition_case_1.
5843 * print.c (strout): Use const char* for arg PTR.
5844 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5845 (analyse_first): Fix "const const".
5846 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
5847 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
5848 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
5849
5850 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5851
5852 * alloc.c: Convert function definitions to standard C.
5853 * atimer.c:
5854 * bidi.c:
5855 * bytecode.c:
5856 * callint.c:
5857 * callproc.c:
5858 * casefiddle.c:
5859 * casetab.c:
5860 * category.c:
5861 * ccl.c:
5862 * character.c:
5863 * charset.c:
5864 * chartab.c:
5865 * cmds.c:
5866 * coding.c:
5867 * composite.c:
5868 * data.c:
5869 * dbusbind.c:
5870 * dired.c:
5871 * dispnew.c:
5872 * doc.c:
5873 * doprnt.c:
5874 * ecrt0.c:
5875 * editfns.c:
5876 * fileio.c:
5877 * filelock.c:
5878 * filemode.c:
5879 * fns.c:
5880 * font.c:
5881 * fontset.c:
5882 * frame.c:
5883 * fringe.c:
5884 * ftfont.c:
5885 * ftxfont.c:
5886 * gtkutil.c:
5887 * indent.c:
5888 * insdel.c:
5889 * intervals.c:
5890 * keymap.c:
5891 * lread.c:
5892 * macros.c:
5893 * marker.c:
5894 * md5.c:
5895 * menu.c:
5896 * minibuf.c:
5897 * prefix-args.c:
5898 * print.c:
5899 * ralloc.c:
5900 * regex.c:
5901 * region-cache.c:
5902 * scroll.c:
5903 * search.c:
5904 * sound.c:
5905 * strftime.c:
5906 * syntax.c:
5907 * sysdep.c:
5908 * termcap.c:
5909 * terminal.c:
5910 * terminfo.c:
5911 * textprop.c:
5912 * tparam.c:
5913 * undo.c:
5914 * unexelf.c:
5915 * window.c:
5916 * xfaces.c:
5917 * xfns.c:
5918 * xfont.c:
5919 * xftfont.c:
5920 * xgselect.c:
5921 * xmenu.c:
5922 * xrdb.c:
5923 * xselect.c:
5924 * xsettings.c:
5925 * xsmfns.c:
5926 * xterm.c: Likewise.
5927
5928 2010-07-03 Eli Zaretskii <eliz@gnu.org>
5929
5930 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5931 frames other than the initial one. Fix reversal of colors when
5932 `reverse' is specified in the frame parameters.
5933 Call update_face_from_frame_parameter instead of
5934 internal-set-lisp-face-attribute. Initialize screen colors from
5935 initial_screen_colors[] when f->default_face_done_p is zero,
5936 instead of depending on being called with default-frame-alist as
5937 the alist argument.
5938
5939 * xfaces.c (update_face_from_frame_parameter): Move out of
5940 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5941 with HAVE_WINDOW_SYSTEM.
5942
5943 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5944 to menu-bar-mode, if not set in the frame parameters or in
5945 default-frame-alist.
5946
5947 * w32console.c (sys_tputs): Adjust argument list to prototype in
5948 term.c.
5949
5950 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
5951
5952 * lisp.h (memory_warnings): Fix prototype.
5953
5954 * cm.h (evalcost): Fix prototype.
5955
5956 * cm.c (evalcost): Fix arg type.
5957
5958 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
5959
5960 * term.c (term_clear_mouse_face, Fidentity):
5961 * syssignal.h (signal_handler_t):
5962 * lisp.h (memory_warnings):
5963 * coding.h (preferred_coding_system):
5964 * cm.h (evalcost):
5965 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5966
5967 2010-07-02 Eli Zaretskii <eliz@gnu.org>
5968
5969 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5970 from prototypes.
5971
5972 * msdos.h (load_pixmap): Don't define away.
5973
5974 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
5975
5976 * lisp.h:
5977 * atimer.h: Remove define for P_.
5978
5979 * alloc.c: Remove __P and P_ from .c and .m files.
5980 * atimer.c:
5981 * buffer.c:
5982 * callint.c:
5983 * category.c:
5984 * charset.c:
5985 * chartab.c:
5986 * cm.c:
5987 * coding.c:
5988 * composite.c:
5989 * data.c:
5990 * dired.c:
5991 * dispnew.c:
5992 * doc.c:
5993 * editfns.c:
5994 * emacs.c:
5995 * eval.c:
5996 * fileio.c:
5997 * filelock.c:
5998 * fns.c:
5999 * font.c:
6000 * fontset.c:
6001 * frame.c:
6002 * ftfont.c:
6003 * ftxfont.c:
6004 * gmalloc.c:
6005 * gtkutil.c:
6006 * image.c:
6007 * indent.c:
6008 * intervals.c:
6009 * keyboard.c:
6010 * keymap.c:
6011 * lread.c:
6012 * marker.c:
6013 * menu.c:
6014 * minibuf.c:
6015 * print.c:
6016 * process.c:
6017 * scroll.c:
6018 * search.c:
6019 * sound.c:
6020 * strftime.c:
6021 * syntax.c:
6022 * sysdep.c:
6023 * term.c:
6024 * terminal.c:
6025 * textprop.c:
6026 * unexalpha.c:
6027 * w32console.c:
6028 * w32fns.c:
6029 * w32font.c:
6030 * w32menu.c:
6031 * w32term.c:
6032 * w32uniscribe.c:
6033 * window.c:
6034 * xdisp.c:
6035 * xfaces.c:
6036 * xfns.c:
6037 * xfont.c:
6038 * xftfont.c:
6039 * xmenu.c:
6040 * xselect.c:
6041 * xterm.c: Likewise.
6042
6043 Remove P_ and __P macros.
6044 * atimer.h: Remove P_ and __P macros.
6045 * buffer.h:
6046 * category.h:
6047 * ccl.h:
6048 * character.h:
6049 * charset.h:
6050 * cm.h:
6051 * coding.h:
6052 * composite.h:
6053 * dispextern.h:
6054 * disptab.h:
6055 * dosfns.h:
6056 * font.h:
6057 * fontset.h:
6058 * frame.h:
6059 * gtkutil.h:
6060 * indent.h:
6061 * intervals.h:
6062 * keyboard.h:
6063 * keymap.h:
6064 * lisp.h:
6065 * macros.h:
6066 * md5.h:
6067 * menu.h:
6068 * msdos.h:
6069 * nsterm.h:
6070 * puresize.h:
6071 * region-cache.h:
6072 * syntax.h:
6073 * syssignal.h:
6074 * systime.h:
6075 * termhooks.h:
6076 * w32font.h:
6077 * w32term.h:
6078 * widget.h:
6079 * window.h:
6080 * xgselect.h:
6081 * xsettings.h:
6082 * xterm.h: Likewise.
6083
6084 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6085
6086 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6087
6088 Cleanup old code.
6089 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6090 * syssignal.h: Remove code for Lynx, not supported anymore.
6091 * vm-limit.c: Remove unused code the depends on emacs not being
6092 defined and NO_LIM_DATA being defined.
6093 * mem-limits.h: Remove dead code.
6094
6095 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6096
6097 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6098
6099 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6100 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6101
6102 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6103 parameters, they are already absolute.
6104
6105 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6106 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6107
6108 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6109
6110 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6111 Update FRAME_TOOLBAR_HEIGHT.
6112
6113 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6114 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6115
6116 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6117
6118 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6119 Don't check default-frame-alist.
6120
6121 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6122
6123 * process.c (create_process): Avoid using invalid file descriptors.
6124
6125 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6126
6127 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6128
6129 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6130 Improve documentation. Return font regardless of use_system_font.
6131 (syms_of_xsettings): Improve documentation for font-use-system-font.
6132
6133 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6134
6135 * xfaces.c (realize_face): Garbage the frame if a face is removed
6136 (Bug#6593).
6137
6138 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6139
6140 * keyboard.c: Remove duplicate <setjmp.h>.
6141 (read_key_sequence): Remove volatile qualifiers.
6142
6143 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6144
6145 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6146 (struct glyph_row): New members left_fringe_offset and
6147 right_fringe_offset.
6148
6149 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6150 specially.
6151 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6152 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6153
6154 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6155 Take account of bitmap offset.
6156 (draw_window_fringes): Take account of window vscroll.
6157 (update_window_fringes): Likewise. Extend top-aligned top indicator
6158 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6159 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6160 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6161
6162 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6163
6164 * w32fns.c (Qtooltip): Declare.
6165 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6166
6167 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6168
6169 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6170 grab on just Press (Bug#6499).
6171
6172 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6173
6174 * frame.c (Qtooltip): New var.
6175 (delete_frame): Use it. Fix faulty if statement. Don't update
6176 mode line for tooltip frames. Suggested by Martin Rudalics.
6177
6178 * xfns.c (x_create_tip_frame):
6179 * w32fns.c (x_create_tip_frame): Use it.
6180
6181 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6182
6183 * xftfont.c (xftfont_open): Check font width one by one also when
6184 spacing is dual.
6185
6186 * ftfont.c (ftfont_open): Ditto.
6187
6188 2010-06-30 Glenn Morris <rgm@gnu.org>
6189
6190 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6191
6192 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6193
6194 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6195 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6196 * s/darwin.h (SYSTEM_MALLOC):
6197 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6198
6199 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6200
6201 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6202 (ns_get_screen): Don't assign integer to f.
6203 (Fx_display_color_cells): Declarations before statements.
6204
6205 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6206
6207 * xfns.c (x_default_font_parameter): Remove got_from_system
6208 (Bug#6526).
6209
6210 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6211 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6212 New defines based on what configure finds.
6213
6214 * xterm.c (XTflash): Use gtk_widget_get_window.
6215 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6216 gtk_adjustment_get_page_size.
6217 (handle_one_xevent): Use gtk_widget_get_mapped.
6218 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6219 messages.
6220
6221 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6222
6223 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6224 HAVE_GTK_FILE_SELECTION_NEW.
6225
6226 * gtkutil.c (xg_display_open, xg_display_close):
6227 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6228 (xg_display_open): Return type is void.
6229 (gtk_widget_set_has_window)
6230 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6231 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6232 (gtk_adjustment_set_page_increment)
6233 (gtk_adjustment_get_step_increment): #define these if not found
6234 by configure.
6235 (remove_submenu): New define based on Gtk+ version.
6236 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6237 Use gtk_widget_get_window.
6238 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6239 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6240 (create_dialog): Use gtk_dialog_get_action_area and
6241 gtk_dialog_get_content_area.
6242 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6243 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6244 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6245 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6246 Use g_object_ref and g_object_unref.
6247 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6248 Use gtk_widget_get_sensitive.
6249 (xg_update_submenu): Use remove_submenu.
6250 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6251 properties instead to get old x and y position.
6252 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6253 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6254 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6255 (xg_get_tool_bar_widgets): New function.
6256 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6257 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6258 (toolbar_set_orientation): New #define based on if configure
6259 finds gtk_orientable_set_orientation.
6260 (xg_create_tool_bar): Call toolbar_set_orientation.
6261 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6262 instead of gtk_box_pack_start_defaults.
6263
6264 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6265
6266 * cmds.c (Fdelete_backward_char): Move into Lisp.
6267
6268 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6269
6270 * s/freebsd.h (BSD4_2): Remove redundant definition.
6271 bsd-common.h defines it already.
6272
6273 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6274
6275 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6276 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6277 tool-bar-mode, which are now set using these X resources at
6278 startup, to determine the defaults (Bug#2249).
6279
6280 * w32fns.c (Fx_create_frame):
6281 * nsfns.m (Fx_create_frame): Likewise.
6282
6283 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6284
6285 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6286
6287 * gtkutil.c (xg_update_scrollbar_pos):
6288 Avoid C99 mid-block variable declaration.
6289
6290 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6291
6292 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6293
6294 * gtkutil.h (xg_show_scroll_bar): Remove.
6295
6296 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6297 if height is less than scroll bar min size.
6298 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6299
6300 * xfns.c (x_default_font_parameter): Try to open font from system
6301 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6302
6303 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6304
6305 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6306
6307 2010-06-20 Eli Zaretskii <eliz@gnu.org>
6308
6309 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6310 most-positive-fixnum, be extra accurate when scrolling window
6311 start, to avoid missing the cursor line.
6312
6313 2010-06-19 Eli Zaretskii <eliz@gnu.org>
6314
6315 * xdisp.c (try_scrolling): Compute the limit for searching point
6316 in forward scroll from scroll_max, instead of an arbitrary limit
6317 of 10 screen lines.
6318 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
6319 and
6320 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6321 for details.
6322
6323 2010-06-16 Glenn Morris <rgm@gnu.org>
6324
6325 * editfns.c (Fbyte_to_string): Pacify compiler.
6326
6327 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6328
6329 * lread.c (read1): Phase out old-style backquotes a bit more.
6330
6331 2010-06-12 Eli Zaretskii <eliz@gnu.org>
6332
6333 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6334 bidimirror.h.
6335
6336 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6337
6338 * bidi.c (bidi_initialize): Remove explicit initialization of
6339 bidi_type_table; include biditype.h instead. Don't support
6340 entries whose second codepoint is zero. Initialize bidi_mirror_table.
6341 (bidi_mirror_char): Use bidi_mirror_table.
6342
6343 * biditype.h: New file.
6344
6345 * bidimirror.h: New file.
6346
6347 * window.c (syms_of_window): Doc fix (bug#6409).
6348
6349 2010-06-12 Romain Francoise <romain@orebokech.com>
6350
6351 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6352 ediff-hook.
6353
6354 2010-06-10 Glenn Morris <rgm@gnu.org>
6355
6356 * editfns.c (Fbyte_to_string): Pacify compiler.
6357
6358 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6359
6360 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6361
6362 * alloc.c (Fmake_byte_code): Don't access undefined argument
6363 (Bug#6517).
6364
6365 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
6366
6367 * xdisp.c (next_element_from_image): Ensure that after-strings are
6368 read the next time we hit handle_stop (Bug#1336).
6369
6370 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6371
6372 * lread.c (read1): Signal error if #s is not followed by paren.
6373
6374 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
6375
6376 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6377
6378 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6379
6380 2010-06-15 Glenn Morris <rgm@gnu.org>
6381
6382 * editfns.c (Fbyte_to_string): Pacify compiler.
6383
6384 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6385
6386 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6387 Check `object's type before accessing its guts.
6388
6389 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6390
6391 * s/usg5-4.h: Fix previous change.
6392 Suggested by Lawrence Mitchell <wence@gmx.li>
6393
6394 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6395
6396 * minibuf.c (Fall_completions): Add more checks.
6397
6398 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
6399
6400 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6401
6402 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6403
6404 * lread.c (X_OK): Remove, unused.
6405
6406 * dispnew.c: Remove obsolete comment.
6407
6408 Remove INCLUDED_FCNTL.
6409 * xterm.c (INCLUDED_FCNTL):
6410 * callproc.c (INCLUDED_FCNTL):
6411 * alloc.c (INCLUDED_FCNTL):
6412 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6413 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6414
6415 2010-06-07 Martin Rudalics <rudalics@gmx.at>
6416
6417 * window.c (Fselect_window): Move `record_buffer' up to the
6418 beginning of this function, so the buffer gets recorded
6419 even if the selected window does not change.
6420 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6421
6422 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
6423
6424 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6425 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6426
6427 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6428
6429 Remove BSTRING related code, all platforms define it.
6430 * s/usg5-4.h (BSTRING): Remove definition.
6431 * s/template.h (BSTRING):
6432 * s/msdos.h (BSTRING):
6433 * s/ms-w32.h (BSTRING):
6434 * s/hpux10-20.h (BSTRING):
6435 * s/gnu-linux.h (BSTRING):
6436 * s/darwin.h (BSTRING):
6437 * s/cygwin.h (BSTRING):
6438 * s/bsd-common.h (BSTRING):
6439 * s/aix4-2.h (BSTRING): Likewise.
6440 * sysdep.c: Remove code depending on BSTRING not being defined.
6441
6442 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
6443
6444 Remove obsolete macro BASE_LEADING_CODE_P.
6445 * character.h (BASE_LEADING_CODE_P): Remove.
6446 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6447 * buffer.c (Fset_buffer_multibyte):
6448 * indent.c (scan_for_column, compute_motion):
6449 * insdel.c (count_combining_before, count_combining_after):
6450 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6451
6452 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
6453
6454 Turn `directory-sep-char' into a noop.
6455
6456 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6457 (DIRECTORY_SEP): Define unconditionally.
6458
6459 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6460
6461 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6462 call dostounix_filename directly.
6463
6464 * fileio.c (CORRECT_DIR_SEPS): Remove.
6465 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6466 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6467 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6468 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6469
6470 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6471 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6472
6473 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6474
6475 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6476 (Bug#6346)
6477
6478 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6479
6480 * ccl.c (Fccl_program_p): Fix typo in docstring.
6481
6482 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6483
6484 Move UNEXEC definition to autoconf.
6485 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6486 * s/sol2-10.h (UNEXEC):
6487 * s/irix6-5.h (UNEXEC):
6488 * s/hpux10-20.h (UNEXEC):
6489 * s/gnu-linux.h (UNEXEC):
6490 * s/darwin.h (UNEXEC):
6491 * s/cygwin.h (UNEXEC):
6492 * s/bsd-common.h (UNEXEC):
6493 * s/aix4-2.h (UNEXEC):
6494 * m/alpha.h (UNEXEC): Likewise.
6495 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6496
6497 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6498
6499 Remove obsolete pre-unicode2 macros.
6500 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6501 * composite.c (composition_reseat_it):
6502 * data.c (Faset):
6503 * fns.c (Ffillarray):
6504 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6505 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6506
6507 2010-06-03 Juri Linkov <juri@jurta.org>
6508
6509 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6510 (Fswitch_to_buffer): Remove unused variable `err'.
6511
6512 2010-06-03 Glenn Morris <rgm@gnu.org>
6513
6514 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6515
6516 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6517 now that AH_BOTTOM does it.
6518
6519 * m/hp800.h (HAVE_ALLOCA):
6520 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6521
6522 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6523 Remove NOT_C_CODE tests, it is always true now.
6524
6525 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6526
6527 Fix config.h includes.
6528 * xsettings.c:
6529 * xgselect.c:
6530 * nsterm.m:
6531 * nsselect.m:
6532 * nsimage.m:
6533 * nsfont.m:
6534 * nsfns.m:
6535 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6536 other files do.
6537
6538 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6539
6540 * s/sol2-6.h: Remove obsolete comments.
6541
6542 Remove unnecessary alloca.h includes.
6543 * keymap.c: Do not include alloca.h, config.h does that.
6544 * sysdep.c: Likewise. Do not define fwrite, not used.
6545
6546 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6547
6548 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6549 the HAVE_TERMIO where it belongs (bug#6149).
6550
6551 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6552
6553 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6554 of bug#6305).
6555
6556 2010-05-30 Eli Zaretskii <eliz@gnu.org>
6557
6558 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6559 state is always cached (bug#6306).
6560
6561 2010-05-29 Eli Zaretskii <eliz@gnu.org>
6562
6563 Fix cursor motion in bidi-reordered continued lines.
6564 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6565 only after finding point's row. Fix the logic. Rewrite the loop
6566 over continuation lines in bidi-reordered buffers.
6567 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6568 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6569
6570 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
6571
6572 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6573
6574 2010-05-28 Kenichi Handa <handa@m17n.org>
6575
6576 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6577 Don't sheck SPEC if it is nil.
6578 (font_list_entities): Call font_delete_unmatched if
6579 Vface_ignored_fonts is non-nil. (Bug#6287)
6580
6581 2010-05-28 Glenn Morris <rgm@gnu.org>
6582
6583 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6584
6585 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6586
6587 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6588 whether to trash.
6589 (internal_delete_file, Frename_file): Callers changed.
6590 (delete_by_moving_to_trash): Doc fix.
6591 (Fdelete_directory_internal): Don't move to trash.
6592
6593 * callproc.c (delete_temp_file):
6594 * buffer.c (Fkill_buffer): Callers changed.
6595
6596 * lisp.h: Update prototype.
6597
6598 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6599
6600 * xdisp.c (redisplay_window): After redisplay, check if point is
6601 still valid before setting it (Bug#6177).
6602
6603 2010-05-27 Glenn Morris <rgm@gnu.org>
6604
6605 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6606 Convert comments to Makefile format.
6607
6608 * Makefile.in (bootstrap-clean): No more Makefile.c.
6609
6610 2010-05-26 Glenn Morris <rgm@gnu.org>
6611
6612 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6613 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6614
6615 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6616 Remove.
6617 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6618
6619 2010-05-26 Kenichi Handa <handa@m17n.org>
6620
6621 * composite.c (composition_compute_stop_pos): Fix condition for
6622 backward scanning.
6623
6624 2010-05-25 Glenn Morris <rgm@gnu.org>
6625
6626 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6627 Move before TEMACS_LDFLAGS.
6628 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6629 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6630
6631 * Makefile.in (NOT_C_CODE): No longer define.
6632 (config.h): No longer include.
6633
6634 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6635 variables it may reference.
6636
6637 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6638 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6639
6640 2010-05-25 Kenichi Handa <handa@m17n.org>
6641
6642 * dispextern.h (struct composition_it): New members rule_idx and
6643 charpos.
6644
6645 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6646 that the character positions of IT point the last character of the
6647 current grapheme cluster.
6648 (next_element_from_composition): Don't change character positions
6649 of IT.
6650 (append_composite_glyph): Set glyph->charpos to
6651 it->cmp_it.charpos.
6652
6653 * composite.c (autocmp_chars): Change the first argument to RULE,
6654 and try composition with RULE only.
6655 (composition_compute_stop_pos): Record the index number of the
6656 composition rule in CMP_IT->rule_idx.
6657 (composition_reseat_it): Call autocmp_chars repeatedly until the
6658 correct rule of the composition is found.
6659 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6660 is at the last character of the current grapheme cluster when
6661 CMP_IT->reversed_p is nonzero.
6662
6663 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6664
6665 * editfns.c (Fbyte_to_string): New function.
6666
6667 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6668
6669 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6670 Suggested by Masatake YAMATO <yamato@redhat.com>.
6671
6672 2010-05-23 Eli Zaretskii <eliz@gnu.org>
6673
6674 * dispextern.h (init_iterator): Sync prototype with changed definition.
6675
6676 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6677
6678 * s/netbsd.h: If terminfo is found, use it in preference to
6679 termcap. (Bug#6190) [Backport from trunk]
6680
6681 2010-05-19 Eli Zaretskii <eliz@gnu.org>
6682
6683 Redesign and reimplement bidi-aware edge positions of glyph rows.
6684
6685 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6686 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6687 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6688 and maxpos members instead of start.pos and end.pos, respectively.
6689
6690 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6691 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6692 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
6693 (try_window_reusing_current_matrix, try_window_id):
6694 Use ROW->minpos rather than ROW->start.pos.
6695 (init_from_display_pos, init_iterator): Use EMACS_INT for
6696 character and byte positions.
6697 (find_row_edges): Rename from find_row_end. Accept additional
6698 arguments for minimum and maximum buffer positions seen by
6699 display_line for this row. Don't use iterator to find the
6700 position following the maximum one; instead, increment the
6701 position found by display_line directly. Fix logic; eol_pos
6702 should be tested before the rest. Handle the case of characters
6703 delivered from display vector (bug#6036). Fix tests related to
6704 it->method. Handle the truncated_on_right_p rows.
6705 (RECORD_MAX_MIN_POS): New macro.
6706 (display_line): Use it to record the minimum and maximum buffer
6707 positions for glyphs in the row being assembled. Record the
6708 position of the newline that terminates the line. If word wrap is
6709 in effect, restore minimum and maximum positions seen up to the
6710 wrap point, when iterator returns to it.
6711 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6712 row and cursor not already at point. Restore original pre-bidi
6713 code for unidirectional buffers.
6714
6715 * dispnew.c (increment_row_positions, check_matrix_invariants):
6716 Increment and check row->start.pos and row->end.pos, in addition
6717 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6718
6719 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6720 Display truncated_on_left_p and truncated_on_right_p flags.
6721 Formatting fixes.
6722 (pmtxrows): Display the ordinal number of each row. Don't display
6723 rows beyond the last one.
6724
6725 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6726 it is not copied by bidi_copy_it.
6727
6728 2010-05-22 Eli Zaretskii <eliz@gnu.org>
6729
6730 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6731 (Bug#6237)
6732
6733 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
6734
6735 * image.c (Fimage_flush): Rename from image-refresh.
6736
6737 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
6738
6739 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6740 just one window.
6741
6742 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6743 (clear_image_cache): If the number of cached images is unusually
6744 large, decrease the cache eviction delay (Bug#6230).
6745
6746 2010-05-21 Glenn Morris <rgm@gnu.org>
6747
6748 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6749 Move these rules to ns.mk.
6750 * ns.mk: New file.
6751
6752 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6753
6754 * Makefile.in (CANNOT_DUMP): New, set by configure.
6755 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6756
6757 2010-05-20 Juri Linkov <juri@jurta.org>
6758
6759 * fileio.c (Fdelete_file): Change interative spec to use
6760 `read-file-name' like in `find-file-read-args' where the default
6761 value is `default-directory' instead of `buffer-file-name'.
6762 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6763
6764 2010-05-20 Kevin Ryde <user42@zip.com.au>
6765
6766 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6767 (Voverriding_terminal_local_map, Vsystem_key_alist)
6768 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6769
6770 2010-05-20 Glenn Morris <rgm@gnu.org>
6771
6772 * Makefile.in (DEPDIR): New constant.
6773 (DEPFLAGS): Set with configure, not cpp.
6774 (MKDEPDIR): New, set by configure.
6775 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6776 (clean): Use $DEPDIR.
6777 (deps_frag): Include from configure.
6778 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6779 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6780
6781 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6782 Fix reallocation of the cache. (Bug#6210)
6783
6784 2010-05-19 Glenn Morris <rgm@gnu.org>
6785
6786 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6787
6788 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6789 (GNULIB_VAR): Remove.
6790 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6791
6792 * m/ibms390x.h (LINKER):
6793 * m/macppc.h (LINKER) [GNU_LINUX]:
6794 * s/aix4-2.h (ORDINARY_LINK):
6795 * s/cygwin.h (LINKER):
6796 * s/darwin.h (ORDINARY_LINK):
6797 * s/gnu.h (ORDINARY_LINK):
6798 * s/netbsd.h (LINKER):
6799 * s/usg5-4.h (ORDINARY_LINK):
6800 Move to configure.
6801
6802 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6803
6804 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
6805
6806 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6807 prevent stack overflow if number of arguments is too large
6808 (Bug#6214).
6809
6810 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
6811
6812 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6813
6814 2010-05-18 Glenn Morris <rgm@gnu.org>
6815
6816 * s/gnu-linux.h: Combine two conditionals.
6817
6818 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6819 $(POST_ALLOC_OBJ).
6820
6821 * Makefile.in (RALLOC_OBJ): New, set by configure.
6822 (rallocobj): Replace with the previous variable.
6823 (otherobj): Use $RALLOC_OBJ.
6824
6825 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6826 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6827
6828 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6829 (gmallocobj, vmlimitobj): Replace with previous two variables.
6830 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6831
6832 2010-05-17 Glenn Morris <rgm@gnu.org>
6833
6834 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6835 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6836
6837 2010-05-16 Glenn Morris <rgm@gnu.org>
6838
6839 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6840
6841 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6842
6843 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6844 trailing "/".
6845
6846 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6847 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6848
6849 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6850 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6851 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6852 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6853 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6854
6855 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6856 Remove ${STARTFLAGS}, nothing ever sets it.
6857
6858 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6859
6860 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6861
6862 2010-05-16 Glenn Morris <rgm@gnu.org>
6863
6864 * Makefile.in (LIBX_BASE): Always define.
6865
6866 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6867
6868 * Makefile.in (LIBXT): Always define.
6869
6870 2010-05-15 Glenn Morris <rgm@gnu.org>
6871
6872 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
6873
6874 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6875 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6876
6877 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
6878
6879 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
6880 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6881
6882 * emacs.c (main): Initialize initial-environment and
6883 process-environment before generating from env, not after.
6884
6885 Handle --version reasonably in CANNOT_DUMP configuration.
6886 * emacs.c (emacs_version, emacs_copyright): New string variables.
6887 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6888 (syms_of_emacs): Defvar them, and initialize them from the C
6889 string variables.
6890 (main): If initialization hasn't been done, print initial version
6891 info from the C strings, instead of starting an interactive session.
6892
6893 2010-05-15 Eli Zaretskii <eliz@gnu.org>
6894
6895 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6896 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
6897 (bidi_paragraph_init): Remove redundant assertion that we are at
6898 the beginning of a line after call to bidi_find_paragraph_start.
6899
6900 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6901 (syms_of_xdisp): Defsubr it.
6902
6903 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6904
6905 * Makefile.in: Fix MSDOS-related comments.
6906
6907 2010-05-15 Glenn Morris <rgm@gnu.org>
6908
6909 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6910 (really-lwlib, really-oldXMenu): Always define.
6911 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6912
6913 * Makefile.in: Simplify cpp conditional.
6914
6915 * Makefile.in (${ns_appdir}): Simplify using umask.
6916
6917 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6918
6919 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6920
6921 * eval.c (specbind): Remove left-over duplicate test.
6922 Disallow let-binding frame-local vars. Add comment.
6923
6924 2010-05-14 Eli Zaretskii <eliz@gnu.org>
6925
6926 Make the cache of bidi iterator states dynamically allocated.
6927 * bidi.c (bidi_cache_shrink): New function.
6928 (bidi_init_it): Call it.
6929 (bidi_cache_iterator_state): Enlarge the cache if needed.
6930
6931 * bidi.c (bidi_move_to_visually_next): Rename from
6932 bidi_get_next_char_visually. All callers changed.
6933
6934 2010-05-14 Kenichi Handa <handa@m17n.org>
6935
6936 * dispextern.h (struct composition_it): New member reversed_p.
6937
6938 * composite.c (composition_compute_stop_pos): Search backward if
6939 ENDPOS < CHARPOS.
6940 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6941 Set CMP_IT->reversed_p.
6942 (composition_update_it): Pay attention to CMP_IT->reversed_p.
6943
6944 * xdisp.c (set_iterator_to_next):
6945 Call composition_compute_stop_pos with negative ENDPOS if we are
6946 scanning backward. Call composition_compute_stop_pos if scan
6947 direction is changed.
6948 (next_element_from_buffer): Call composition_compute_stop_pos with
6949 negative ENDPOS if we are scanning backward.
6950 (next_element_from_composition): Pay attention to
6951 IT->cmp_it.reversed_p.
6952
6953 2010-05-14 Kenichi Handa <handa@m17n.org>
6954
6955 * font.c (font_range): Return the range for the font found at first.
6956
6957 2010-05-14 Glenn Morris <rgm@gnu.org>
6958
6959 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6960
6961 * Makefile.in (mktime, X11, register): Move undefs to configure.
6962
6963 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6964 (MSDOS_X_OBJ): New variable.
6965 (MSDOS_SUPPORT_REAL): New constant.
6966 (MSDOS_SUPPORT): Set as a variable, not with cpp.
6967 (obj): Use MSDOS_X_OBJ.
6968 (lisp): Use MSDOS_SUPPORT as a variable.
6969
6970 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6971 (GPM_MOUSE_SUPPORT): Now it's a constant.
6972 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6973 not cpp.
6974
6975 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
6976 (ns_appresdir): Remove, unused.
6977
6978 * Makefile.in (SHELL): Move outside cpp section.
6979
6980 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
6981
6982 2010-05-13 Glenn Morris <rgm@gnu.org>
6983
6984 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
6985 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
6986
6987 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
6988 HAVE_WINDOW_SYSTEM must be too.
6989
6990 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
6991 (lisp): Remove WINNT_SUPPORT.
6992
6993 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
6994 Let configure set these variables (to empty) in this case as well.
6995
6996 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
6997 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
6998
6999 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7000 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7001 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7002 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7003 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
7004 the values output by configure.
7005 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7006
7007 2010-05-12 Glenn Morris <rgm@gnu.org>
7008
7009 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7010 (LINKER_WAS_SPECIFIED): Remove.
7011
7012 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7013 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7014 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7015 * s/cygwin.h (LIB_GCC):
7016 * s/freebsd.h (LIB_GCC):
7017 * s/gnu-linux.h (LIB_GCC):
7018 * s/msdos.h (LIB_GCC):
7019 * s/netbsd.h (LIB_GCC):
7020 Move to configure.
7021
7022 2010-05-11 Karel Klíč <kklic@redhat.com>
7023
7024 * ftfont.c: Fix incorrect parentheses of #if condition for
7025 definining M17N_FLT_USE_NEW_FEATURE.
7026
7027 2010-05-11 Glenn Morris <rgm@gnu.org>
7028
7029 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7030 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7031
7032 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7033
7034 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7035 unibyte buffers. See
7036 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7037
7038 2010-05-10 Glenn Morris <rgm@gnu.org>
7039
7040 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7041 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7042 (LIBES): Use LIBS_SYSTEM as a variable.
7043 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7044 * s/aix4-2.h (LIBS_SYSTEM):
7045 * s/freebsd.h (LIBS_SYSTEM):
7046 * s/hpux10-20.h (LIBS_SYSTEM):
7047 * s/sol2-6.h (LIBS_SYSTEM):
7048 * s/unixware.h (LIBS_SYSTEM):
7049 Move to configure.
7050
7051 * s/aix4-2.h (MAIL_USE_LOCKF):
7052 * s/bsd-common.h (MAIL_USE_FLOCK):
7053 * s/darwin.h (MAIL_USE_FLOCK):
7054 * s/gnu-linux.h (MAIL_USE_FLOCK):
7055 * s/irix6-5.h (MAIL_USE_FLOCK):
7056 * s/template.h (MAIL_USE_FLOCK):
7057 Move to configure.
7058
7059 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * Version 23.2 released.
7062
7063 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7064
7065 * composite.c (autocmp_chars): Save point as marker before calling
7066 auto-composition-function (Bug#5984).
7067
7068 * lisp.h (restore_point_unwind): Add prototype.
7069
7070 * fileio.c (restore_point_unwind): Remove static attribute.
7071
7072 2010-05-08 Kenichi Handa <handa@m17n.org>
7073
7074 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7075 new feature of libotf and m17n-flt.
7076 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7077 Call OTF_check_features even if no specific feature is given.
7078 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7079 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7080 that OUT is NULL. Use OTF_drive_gsub_with_log and
7081 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7082 OTF_drive_gpos.
7083 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7084 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7085 Setup mflt_enable_new_feature and mflt_try_otf.
7086
7087 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7088
7089 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7090
7091 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7092 box and toolbar (Bug #6139).
7093 (xg_create_tool_bar): Remove comment (Bug #6139).
7094 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7095 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7096
7097 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7098
7099 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7100 Update dependencies.
7101
7102 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7103
7104 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7105 R2L lines.
7106
7107 2010-05-08 Glenn Morris <rgm@gnu.org>
7108
7109 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7110
7111 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7112 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7113 (termcapobj): Replace with TERMCAP_OBJ.
7114 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7115 (LIBES): Use LIBS_TERMCAP as a variable.
7116
7117 * s/freebsd.h (osreldate.h): No longer include, since this file
7118 does not use __FreeBSD_version any more.
7119
7120 * s/aix4-2.h (TERMINFO):
7121 * s/cygwin.h (TERMINFO):
7122 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7123 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7124 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7125 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7126 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7127 * s/irix6-5.h (TERMINFO):
7128 * s/netbsd.h (LIBS_TERMCAP):
7129 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7130 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7131 * s/usg5-4.h (TERMINFO):
7132 Move to configure.
7133
7134 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7135
7136 * eval.c (unbind_to): Don't unbind a local binding into the global
7137 binding when the local binding disappeared. Inversely, don't unbind
7138 a global binding into a newly created local binding.
7139 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7140 can specify the frame to use, when applicable. Adjust callers.
7141
7142 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7143 Stefan Monnier <monnier@iro.umontreal.ca>
7144
7145 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7146
7147 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7148
7149 * w32fns.c: Include w32.h.
7150 (Fw32_shell_execute): Decode the error message before passing it
7151 to `error'. (Bug#6126)
7152
7153 * msdos.c (dos_set_window_size):
7154 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7155 instead of `XSYMBOL (foo)->value'.
7156
7157 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7158
7159 Fix the MS-DOS build, broken by autoconfiscation.
7160
7161 * Makefile.in: Don't use Make-style comments past the "start of
7162 cpp stuff" line.
7163 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7164
7165 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7166 edited directly by msdos/sed1v2.inp).
7167
7168 2010-05-07 Glenn Morris <rgm@gnu.org>
7169
7170 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7171 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7172 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7173 move out of cpp section.
7174 * s/freebsd.h (LD_SWITCH_SYSTEM):
7175 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7176 * s/netbsd.h (LD_SWITCH_SYSTEM):
7177 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7178
7179 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7180
7181 Define LIB_STANDARD and START_FILES using autoconf.
7182 * s/usg5-4.h (LIB_STANDARD):
7183 * s/netbsd.h (START_FILES):
7184 * s/irix6-5.h (LIB_STANDARD):
7185 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7186 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7187 * s/freebsd.h (START_FILES):
7188 * s/darwin.h (START_FILES):
7189 * s/cygwin.h (START_FILES):
7190 * s/aix4-2.h (LIB_STANDARD):
7191 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7192 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7193 autoconf, not cpp.
7194
7195 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7196
7197 Remove NEED_BSDTTY and NEED_UNISTD_H.
7198 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7199 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7200 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7201 <sys/ptyio.h> and <unistd.h>.
7202
7203 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7204
7205 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7206 * s/gnu.h (START_FILES): Remove empty definition.
7207
7208 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7209
7210 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7211
7212 2010-05-06 Glenn Morris <rgm@gnu.org>
7213
7214 * Makefile.in (CPP, LN_S): Remove unused variables.
7215
7216 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7217
7218 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7219
7220 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7221
7222 * m/sparc.h: Fix typo in earlier change.
7223
7224 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7225
7226 Misc tweaks.
7227 * eval.c (Fdefvaralias): Remove unintended nested if.
7228 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7229
7230 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7231
7232 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7233
7234 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7235
7236 Remove BSD_PGRPS.
7237 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7238 * s/gnu-linux.h (BSD_PGRPS): Remove.
7239 * term.c (dissociate_if_controlling_tty):
7240 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7241 (init_sys_modes, reset_sys_modes):
7242 * emacs.c (main):
7243 * callproc.c (Fcall_process, child_setup): Remove code depending
7244 on BSD_PGRPS.
7245
7246 Remove POSIX_SIGNALS.
7247 * s/usg5-4.h (POSIX_SIGNALS):
7248 * s/netbsd.h (POSIX_SIGNALS):
7249 * s/msdos.h (POSIX_SIGNALS):
7250 * s/ms-w32.h (POSIX_SIGNALS):
7251 * s/hpux11.h (POSIX_SIGNALS):
7252 * s/gnu.h (POSIX_SIGNALS):
7253 * s/gnu-linux.h (POSIX_SIGNALS):
7254 * s/freebsd.h (POSIX_SIGNALS):
7255 * s/darwin.h (POSIX_SIGNALS):
7256 * s/cygwin.h (POSIX_SIGNALS):
7257 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7258 * s/unixware.h:
7259 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7260 * process.c (create_process):
7261 * syssignal.h:
7262 * sysdep.c (wait_for_termination, init_signals):
7263 * process.c (create_process):
7264 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7265 remove all code that assumes the contrary.
7266
7267 2010-05-04 Glenn Morris <rgm@gnu.org>
7268
7269 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7270 variable.
7271 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7272 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7273 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7274 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7275 LD_SWITCH_SYSTEM_tmp.
7276 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7277 New variables, set by configure.
7278
7279 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7280 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7281 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7282 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7283 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7284
7285 * s/aix4-2.h (C_SWITCH_SYSTEM):
7286 * m/alpha.h (C_SWITCH_MACHINE):
7287 Move to configure.in.
7288 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7289 New variables, set by configure.
7290 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7291 $c_switch_machine and $c_switch_system.
7292
7293 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7294
7295 * s/hpux10-20.h (LIB_STANDARD): New definition.
7296 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7297 on it, not used anymore.
7298
7299 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7300
7301 * eval.c (internal_condition_case_n): Rename from
7302 internal_condition_case_2.
7303 (internal_condition_case_2): New function.
7304
7305 * xdisp.c (safe_call): Use internal_condition_case_n.
7306
7307 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7308 (internal_delete_file, Frename_file): Callers changed.
7309
7310 * buffer.c (Fkill_buffer):
7311 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7312
7313 * lisp.h: Update prototypes.
7314
7315 2010-05-03 Glenn Morris <rgm@gnu.org>
7316
7317 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7318 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7319 (LIBXT): Set with configure, not cpp.
7320 (LIBX): Remove.
7321 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7322
7323 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7324
7325 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7326 The FreeBSD is not needed, the default works, Solaris version is
7327 not needed, and the remaining case is not supported by configure.
7328
7329 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7330
7331 * xsmfns.c (CHDIR_OPT): New define.
7332 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7333 restarting emacs.
7334
7335 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7336 shut_down_emacs.
7337
7338 * emacs.c (USAGE1): Mention --chdir.
7339 (main): Handle --chdir.
7340 (standard_args): Add --chdir.
7341 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7342 #5552).
7343
7344 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7345
7346 Remove LD_SWITCH_MACHINE.
7347 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7348 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7349
7350 Clean up IRIX code.
7351 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7352 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7353
7354 Clean up AIX code.
7355 * m/ibmrs6000.inp: Remove file, unused.
7356 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7357 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7358 definition ...
7359 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7360
7361 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7362 unused.
7363
7364 2010-05-01 Eli Zaretskii <eliz@gnu.org>
7365
7366 Emulate POSIX_SIGNALS on MS-Windows.
7367
7368 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7369 (SIG_SETMASK, SIG_UNBLOCK): Define.
7370
7371 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7372 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7373 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7374
7375 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7376 New stubs.
7377
7378 Miscellaneous fixes of bidi display.
7379
7380 * xdisp.c (find_row_end): New function, refactored from display_line.
7381 (display_line): Use it.
7382 (extend_face_to_end_of_line): In almost-filled rows, extend only
7383 if the row is R2L and not continued.
7384 (display_line): Fix prepending of truncation glyphs to R2L rows.
7385 Preserve overlay and string info in row->end.
7386 (insert_left_trunc_glyphs): Support addition of left truncation
7387 glyphs to R2L rows.
7388 (set_cursor_from_row): Don't place cursor on the vertical border
7389 glyph between adjacent windows. Fix a crash when a display string
7390 is continued to the next line. Don't return zero if cursor was
7391 found by `cursor' property of a display string.
7392 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7393 test for that explicitly.
7394
7395 2010-05-01 Glenn Morris <rgm@gnu.org>
7396
7397 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7398 for clarity.
7399 (OTHER_OBJ): Remove.
7400 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7401 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7402
7403 2010-05-01 Karel Klíč <kklic@redhat.com>
7404
7405 * fileio.c (Ffile_selinux_context): Context functions may return null.
7406
7407 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7408
7409 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
7410
7411 2010-04-30 Glenn Morris <rgm@gnu.org>
7412
7413 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7414 (OTHER_OBJ): Define as a separate variable, for clarity.
7415
7416 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7417
7418 * xsettings.c: include limits.h and update file comment.
7419
7420 2010-04-30 Glenn Morris <rgm@gnu.org>
7421
7422 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7423 Set with configure, not cpp.
7424 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7425
7426 * Makefile.in (mallocobj): Remove.
7427 (otherobj): Simplify using @OTHER_OBJ@.
7428
7429 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7430 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7431 Don't bother making nsgui.h dependency platform-specific.
7432
7433 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7434
7435 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7436
7437 * process.c (read_process_output, exec_sentinel): Don't burp if the
7438 sentinel/filter kills the current buffer (bug#6060).
7439
7440 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
7441 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7442 Remove unused var `args'.
7443 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7444 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7445 * doc.c (store_function_docstring): Use XSETCAR.
7446
7447 2010-04-28 Glenn Morris <rgm@gnu.org>
7448
7449 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7450 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7451
7452 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7453
7454 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7455 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7456
7457 * Makefile.in (FONT_OBJ): New, set by configure.
7458 (FONT_DRIVERS): Use $FONT_OBJ.
7459
7460 * Makefile.in (LIBXMU): Set with configure, not cpp.
7461 * s/aix4-2.h (LIBXMU):
7462 * s/hpux10-20.h (LIBXMU):
7463 Remove definition, now set in configure.
7464
7465 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7466
7467 * m/amdx86-64.h [i386]: Move this test to configure.in.
7468
7469 2010-04-27 Glenn Morris <rgm@gnu.org>
7470
7471 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7472 * s/unixware.h (NEED_LIBW): Remove definition.
7473
7474 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7475 (TOOLKIT_LIBW): New, set by configure.
7476 (@X_TOOLKIT_TYPE@): No longer define it.
7477
7478 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7479 (MOTIF_LIBW): Set with configure, not cpp.
7480 * s/aix4-2.h (LIB_MOTIF):
7481 * s/gnu-linux.h (LIB_MOTIF):
7482 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7483
7484 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7485
7486 Reduce CPP usage.
7487 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7488 (obj): Use autoconf for unexec instead of cpp.
7489 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7490 Remove definitions and undefs. Inline definitions in the only user.
7491 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
7492
7493 2010-04-27 Glenn Morris <rgm@gnu.org>
7494
7495 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7496 since the defaults (set by the system file) are fine in most cases.
7497 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7498 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7499 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7500 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7501 Remove definitions, since they are set correctly in s/gnu-linux.h.
7502 * s/freebsd.h (START_FILES, LIB_STANDARD):
7503 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7504 * s/hpux10-20.h (START_FILES):
7505 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7506 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7507
7508 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7509 (MOTIF_LIBW): Use $LIBXP.
7510 (otherobj): Use $WIDGET_OBJ.
7511
7512 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7513
7514 * Makefile.in (LIBS_MACHINE): Remove, unused.
7515
7516 Use autoconf instead of cpp for LIB_MATH.
7517 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7518 * s/cygwin.h (LIB_MATH): Likewise.
7519 * Makefile.in (LIB_MATH): Do not define with cpp.
7520 (LIBES): Use autoconf for LIB_MATH.
7521
7522 2010-04-26 Kenichi Handa <handa@m17n.org>
7523
7524 * composite.c (Ffind_composition_internal): Fix the return value
7525 for an automatic composition.
7526
7527 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7528
7529 Remove all NO_ARG_ARRAY uses.
7530 * fns.c (concat2, concat3, nconc2):
7531 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7532 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7533 * m/xtensa.h (NO_ARG_ARRAY):
7534 * m/template.h (NO_ARG_ARRAY):
7535 * m/sparc.h (NO_ARG_ARRAY):
7536 * m/sh3.h (NO_ARG_ARRAY):
7537 * m/mips.h (NO_ARG_ARRAY):
7538 * m/macppc.h (NO_ARG_ARRAY):
7539 * m/iris4d.h (NO_ARG_ARRAY):
7540 * m/intel386.h (NO_ARG_ARRAY):
7541 * m/ibms390x.h (NO_ARG_ARRAY):
7542 * m/ibms390.h (NO_ARG_ARRAY):
7543 * m/ibmrs6000.h (NO_ARG_ARRAY):
7544 * m/ia64.h (NO_ARG_ARRAY):
7545 * m/hp800.h (NO_ARG_ARRAY):
7546 * m/arm.h (NO_ARG_ARRAY):
7547 * m/amdx86-64.h (NO_ARG_ARRAY):
7548 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7549
7550 2010-04-25 Eli Zaretskii <eliz@gnu.org>
7551
7552 * xdisp.c (display_line): Don't assume 2nd call to
7553 get_next_display_element cannot return zero. (Bug#6030)
7554 (iterate_out_of_display_property): New function, body from pop_it.
7555 (pop_it): Use it.
7556
7557 2010-04-24 Glenn Morris <rgm@gnu.org>
7558
7559 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7560 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7561 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7562 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7563
7564 2010-04-24 Eli Zaretskii <eliz@gnu.org>
7565
7566 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7567 use `get_next_display_element' and `set_iterator_to_next' to
7568 advance to the next character, when looking for the character that
7569 begins the next row.
7570
7571 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
7572 definition of "struct Lisp_Symbol".
7573
7574 2010-04-24 Glenn Morris <rgm@gnu.org>
7575
7576 * Makefile.in (CRT_DIR): New variable, set by configure.
7577 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7578 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7579
7580 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7581
7582 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7583
7584 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7585
7586 Remove redundant flags.
7587 * s/freebsd.h (C_SWITCH_SYSTEM):
7588 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7589 * s/netbsd.h (C_SWITCH_SYSTEM):
7590 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7591 of these.
7592
7593 Simplify m/intel386.h.
7594 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7595 user: ecrt0.c.
7596 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7597 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7598 the only user: s/unixware.h.
7599 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7600 from m/intel386.h.
7601 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7602 Definitions moved here from m/intel386.h.
7603
7604 * m/mips.h: Remove #if 0 code.
7605
7606 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7607
7608 Fix display of composed characters from L2R scripts in bidi buffers.
7609 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7610 After advancing IT past the composition, resync the bidi iterator
7611 with IT's position. (Bug#5977)
7612
7613 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7614
7615 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7616 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7617
7618 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7619
7620 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7621
7622 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7623
7624 Support `display' text properties and overlay strings in bidi buffers.
7625 * xdisp.c (pop_it): When the stack is popped after displaying
7626 from a string, bidi-iterate to exit from the text portion covered
7627 by the `display' property or overlay. (Bug#5988, bug#5920)
7628
7629 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7632 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7633
7634 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7635 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7636
7637 Simplify STARTFILES definition.
7638 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7639 relying on Makefile.in to define it.
7640 * s/cygwin.h (START_FILES): Likewise.
7641 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7642
7643 Clean up Solaris code.
7644 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7645 (LIB_MOTIF): Remove, configure takes care of this.
7646 (NOT_USING_MOTIF): Remove, unused.
7647 * xrdb.c: Remove #if 0-ed #include.
7648 (SYSV): Remove conditional for old SysV.
7649 * sysdep.c (closedir): Remove conditional code for Solaris,
7650 Solaris has closedir.
7651
7652 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7653
7654 * xsettings.c (read_and_apply_settings): Check if current_font is
7655 NULL before strcmp (Bug#6001).
7656
7657 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7658
7659 Clean up HP-UX files.
7660 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7661 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7662 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7663 * s/hpux10-20.h: ... to the only user, here.
7664
7665 2010-04-21 Eli Zaretskii <eliz@gnu.org>
7666
7667 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7668 use buffer-local values of paragraph-start and paragraph-separate.
7669 <paragraph_start_re, paragraph_separate_re>: Rename from
7670 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7671 (Bug#5992)
7672
7673 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7674
7675 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7676 current_tool_bar_style are new.
7677 (store_config_changed_event): Rename from store_font_changed_event.
7678 (XSETTINGS_TOOL_BAR_STYLE): New define.
7679 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7680 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7681 HAVE_XFT.
7682 (something_changedCB): store_font_changed_event is now
7683 store_config_changed_event.
7684 (parse_settings): Rename from parse_xft_settings.
7685 Read non-xft xsettings outside #ifdef HAVE_XFT.
7686 (read_settings): Rename from read_xft_settings.
7687 (apply_xft_settings): Take current settings as parameter. Do not
7688 call read_(xft)_settings.
7689 (read_and_apply_settings): New function.
7690 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7691 Call read_and_apply_settings if there are settings to be read.
7692 (init_xsettings): Rename from init_xfd_settings.
7693 Call read_and_apply_settings unconditionally.
7694 (xsettings_initialize): Call init_xsettings.
7695 (Ftool_bar_get_system_style): New function.
7696 (syms_of_xsettings): Define Qmonospace_font_name and
7697 Qtool_bar_style. Initialize current_tool_bar_style to nil.
7698 defsubr Stool_bar_get_system_style. Fprovide on
7699 dynamic-setting.
7700 Move misplaced HAVE_GCONF
7701
7702 * xsettings.h (Ftool_bar_get_system_style): Declare.
7703
7704 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7705 Qtext, Qboth, Qboth_horiz are new.
7706 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7707 Vtool_bar_style, tool_bar_max_label_size.
7708
7709 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7710
7711 * keyboard.c: QClabel is new.
7712 (parse_tool_bar_item): Take out QClabel from tool bar items.
7713 Try to construct a label if ther is no QClabel.
7714 (syms_of_keyboard): Intern :label as QClabel.
7715
7716 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7717 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7718 New.
7719
7720 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7721 dynamic-setting.el.
7722
7723 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7724 (xg_make_tool_item, xg_show_toolbar_item): New function.
7725 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7726 Call xg_make_tool_item to make a tool bar item.
7727 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7728
7729 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7730 into account for toolbars.
7731
7732 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7733
7734 * data.c (make_blv): Declarations before code (Bug#5993).
7735
7736 2010-04-21 Glenn Morris <rgm@gnu.org>
7737
7738 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7739 Define using autoconf, not cpp.
7740 (LIBXSM): New variable, set by autoconf.
7741 (LIBXT): Use $LIBXSM.
7742
7743 2010-04-21 Dan Nicolaescu <local_user@dannlt>
7744
7745 Remove NOMULTIPLEJOBS, unused.
7746 * s/template.h (NOMULTIPLEJOBS):
7747 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7748
7749 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7750 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7751 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7752 detects -znocombreloc and passes it to the linker
7753 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7754
7755 2010-04-21 Glenn Morris <rgm@gnu.org>
7756
7757 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7758
7759 2010-04-21 Karel Klíč <kklic@redhat.com>
7760
7761 * Makefile.in (LIBSELINUX_LIBS): New.
7762 (LIBES): Add $LIBSELINUX_LIBS.
7763 * eval.c, lisp.h (call7): New function.
7764 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7765 (Ffile_selinux_context, Fset_file_selinux_context):
7766 New functions.
7767 (Fcopy_file): New parameter preserve-selinux-context.
7768 (Frename_file): Preserve selinux context when renaming by copy-file.
7769
7770 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
7771 Eli Zaretskii <eliz@gnu.org>
7772
7773 Don't depend on cm.c or termcap.c on Windows, use stubs.
7774 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7775 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7776 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7777 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7778 (sys_tputs, sys_tgetstr): New stubs.
7779 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7780 (tputs, tgetstr): New; define to sys_*.
7781
7782 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
7783
7784 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7785
7786 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7787
7788 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7789 Just signal a warning rather than an error when inside a let.
7790 (Fmake_variable_frame_local): Add the same test.
7791
7792 * font.c (syms_of_font): Make the style table vars read-only.
7793
7794 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7795 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7796
7797 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7798
7799 2010-04-20 Eli Zaretskii <eliz@gnu.org>
7800
7801 Fix R2L paragraph display on TTY.
7802
7803 * xdisp.c (unproduce_glyphs): New function.
7804 (display_line): Use it when produced glyphs are discarded from R2L
7805 glyph rows.
7806 (append_composite_glyph): In R2L rows, prepend the glyph rather
7807 than appending it.
7808
7809 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7810 rather than append it. Set up the resolved_level and bidi_type
7811 attributes of the appended glyph.
7812 (produce_special_glyphs): Mirror the backslash continuation
7813 character in R2L lines.
7814
7815 Implement display of R2L paragraphs in GUI sessions.
7816
7817 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7818 append_stretch_glyph.
7819 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7820 Fix off-by-one error in computing x at end of text in the row.
7821 (append_stretch_glyph): In reversed row, prepend the glyph rather
7822 than append it. Set resolved_level and bidi_type of the glyph.
7823 (extend_face_to_end_of_line): If the row is reversed, prepend a
7824 stretch glyph whose width is such that the rightmost glyph will be
7825 drawn at the right margin of the window. Fix off-by-one error on
7826 TTY frames in testing whether a line needs face extension.
7827 Fix face extension at ZV. If this is the last glyph row, use
7828 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7829 region face.
7830 (set_cursor_from_row, display_line):
7831 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
7832 row->continuation_lines_width.
7833 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7834 are at ZV. Fixes a crash when reseated to ZV by
7835 try_window_reusing_current_matrix.
7836 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7837 which happens with R2L glyph rows. Fixes a crash when inserting a
7838 character at end of an R2L line.
7839 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7840 treat them as having zero-width characters. Improve comments.
7841 Don't reverse pos_before and pos_after for reversed glyph rows.
7842 Set cursor.x to negative value when the cursor might be on the
7843 left fringe.
7844 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7845 left fringe, not the right one.
7846 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7847 (erase_phys_cursor): For reversed cursor_row, support cursor on
7848 the left fringe.
7849
7850 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7851 of continuation indicators on the fringes.
7852 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7853 left fringe.
7854
7855 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7856 draw cursor on the left fringe.
7857
7858 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7859 cursor on the left fringe.
7860
7861 * dispnew.c (update_text_area): Handle reversed desired rows when
7862 the cursor is on the left fringe.
7863 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7864 below, not by 0, for when the cursor is on the left fringe.
7865
7866 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7867
7868 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7869 widget is a scrollbar.
7870
7871 2010-04-20 Kenichi Handa <handa@m17n.org>
7872
7873 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7874 only when the arg CHARSET_LIST is nil.
7875
7876 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7877
7878 Make variable forwarding explicit rather the using special values.
7879 Basically, this makes the structure of buffer-local values and object
7880 forwarding explicit in the type of Lisp_Symbols rather than use
7881 special Lisp_Objects for that. This tends to lead to slightly more
7882 verbose code, but is more C-like, simpler, and makes it easier to make
7883 sure we handled all cases, among other things by letting the compiler
7884 help us check it.
7885 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7886 Removing forwarding objects.
7887 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7888 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7889 explicit rather than hiding them inside Lisp_Object "values".
7890 (XFWDTYPE): New macro.
7891 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7892 (XBUFFER_LOCAL_VALUE): Remove.
7893 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7894 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7895 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7896 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7897 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7898 Remove the Lisp_Misc_* header.
7899 (struct Lisp_Buffer_Local_Value): Redefine.
7900 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7901 (struct Lisp_Misc_Any): Add filler to get the right size.
7902 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7903 Lisp_Intfwd.
7904 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7905 (DEFVAR_KBOARD): Allocate a forwarding object.
7906 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7907 (let_shadows_global_binding_p): New function.
7908 (union Lisp_Val_Fwd): New type.
7909 (make_blv): New function.
7910 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7911 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7912 (swap_in_symval_forwarding, find_symbol_value, Fset)
7913 (let_shadows_buffer_binding_p, set_internal, default_value)
7914 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7915 (Fkill_local_variable, Fmake_variable_frame_local)
7916 (Flocal_variable_p, Flocal_variable_if_set_p)
7917 (Fvariable_binding_locus):
7918 * xdisp.c (select_frame_for_redisplay):
7919 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7920 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7921 * frame.c (store_frame_param):
7922 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7923 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7924 value structure.
7925 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7926 (clone_per_buffer_values): Only adjust markers into the current buffer.
7927 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7928 (Fbuffer_local_value, set_buffer_internal_1)
7929 (swap_out_buffer_local_variables):
7930 Adapt to the new symbol value structure.
7931 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7932 (defvar_per_buffer): Take a new arg for the fwd object.
7933 (buffer_lisp_local_variables): Return a proper alist (different fix
7934 for bug#4138).
7935 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7936 (Fgarbage_collect): Don't handle buffer_defaults specially.
7937 (mark_object): Handle new symbol value structure rather than the old
7938 special Lisp_Misc_* objects.
7939 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7940 * term.c (set_tty_color_mode):
7941 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7942 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7943 a buffer_local_flags.
7944 * print.c (print_object): Get rid of impossible forwarding objects.
7945
7946 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7947
7948 * bidi.c (bidi_get_type, bidi_get_category)
7949 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
7950 (bidi_type_of_next_char, bidi_level_of_next_char):
7951 Declare static. Use `INLINE' rather than `inline'.
7952
7953 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
7954
7955 * dired.c (Ffile_attributes): Fix typo in docstring.
7956
7957 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7958
7959 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7960 NSInteger (Bug#5811).
7961
7962 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7963
7964 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7965 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
7966
7967 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7968
7969 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7970
7971 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7974 terminal frames (Bug#5837).
7975
7976 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7977
7978 * .gdbinit (xsubchartable): New command.
7979
7980 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7981
7982 * xdisp.c (display_line): Don't write beyond the last glyph row in
7983 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
7984 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
7985 and
7986 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
7987
7988 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7989
7990 * alloc.c (Fpurecopy): Hash-cons if requested.
7991 (syms_of_alloc): Update purify-flag docstring.
7992
7993 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
7994
7995 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
7996 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
7997
7998 2010-04-17 Eli Zaretskii <eliz@gnu.org>
7999
8000 Fix a crash when an NSM character is inserted at BEGV.
8001
8002 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8003 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8004 NEUTRAL_B or UNKNOWN_BT.
8005
8006 2010-04-16 Eli Zaretskii <eliz@gnu.org>
8007
8008 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8009 other rows with cursor unless they are different from this row and
8010 this row is part of a continued line. (Bug#5943)
8011
8012 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8013
8014 * s/freebsd.h: Restore osreldate.h include.
8015 Suggested by Naohiro Aota.
8016
8017 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8018
8019 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8020
8021 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8022
8023 * s/cygwin.h: Avoid linking against static libgcc.
8024
8025 2010-04-15 Juri Linkov <juri@jurta.org>
8026
8027 * window.c: Add Qscroll_command.
8028 Remove Vscroll_preserve_screen_position_commands.
8029 (window_scroll_pixel_based, window_scroll_line_based): Check the
8030 `scroll-command' property on the last command instead of searching
8031 the last command in Vscroll_preserve_screen_position_commands.
8032 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8033 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8034 (scroll-preserve-screen-position): Doc fix.
8035 (Vscroll_preserve_screen_position_commands): Remove variable.
8036
8037 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8038
8039 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8040
8041 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8042
8043 Reduce cpp use in Makefile.in.
8044 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8045 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8046 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8047 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8048 (CRT0_COMPILE): Remove, inline it in the only user.
8049
8050 2010-04-14 Juri Linkov <juri@jurta.org>
8051
8052 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8053 `scroll-up-command' and `M-v' from `scroll-down' to
8054 `scroll-down-command'.
8055
8056 2010-04-14 Juri Linkov <juri@jurta.org>
8057
8058 * window.c (Vscroll_preserve_screen_position_commands): New variable
8059 with the default value as the list of Qscroll_down and Qscroll_up.
8060 (window_scroll_pixel_based, window_scroll_line_based): Search the
8061 last command in the list Vscroll_preserve_screen_position_commands
8062 instead of comparing with Qscroll_up and Qscroll_down.
8063
8064 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8065
8066 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8067 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8068 does that.
8069
8070 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8071 to zero.
8072
8073 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8074
8075 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8076
8077 Try to solve the problem of spurious EOF chars in long lines of text
8078 sent to interactive subprocesses.
8079 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8080 (system_process_attributes): Remove unused var `ttotal'.
8081 * process.c (send_process): Don't bother breaking long line with EOF
8082 chars when talking to ttys any more.
8083 (wait_reading_process_output): Output a warning when called in such
8084 a way that it could block without being interruptible.
8085
8086 Try to detect file modification within the same second.
8087 * buffer.h (struct buffer): New field modtime_size.
8088 * buffer.c (reset_buffer): Initialize it.
8089 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8090 (Fverify_visited_file_modtime): Check it.
8091 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8092 (Fset_visited_file_modtime): Set (or clear) it.
8093
8094 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8095
8096 * process.c (status_notify): Remove unused var `ro'.
8097
8098 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8099
8100 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8101 more than one visual (Bug#5938).
8102
8103 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8104
8105 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8106 Undefine.
8107
8108 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8109
8110 Remove C_SWITCH_SYSTEM_TEMACS.
8111 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8112 (malloc, realloc, free): Use emacs, not temacs for conditional
8113 definition.
8114
8115 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8116 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8117
8118 Use autoconf, not cpp for some variables.
8119 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8120 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8121 (ALL_CFLAGS): Use them as make variables.
8122 (really-lwlib, really-oldXMenu): Do not pass them.
8123
8124 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8125
8126 * xmenu.c (apply_systemfont_to_dialog): New.
8127 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8128
8129 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8130
8131 * process.c (exec_sentinel): Preserve current-buffer.
8132
8133 * process.c (read_process_output): Move the save-current-buffer to
8134 apply to both the filter and the non-filter branches.
8135
8136 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8137
8138 * s/msdos.h (UNEXEC): New definition.
8139
8140 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8141
8142 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8143 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8144
8145 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8146 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8147 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8148 TRY_WINDOW_CHECK_MARGINS.
8149
8150 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8151 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8152 width only when it is for padding.
8153
8154 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8155
8156 * xfns.c (Fx_show_tip): Call try_window in a loop until
8157 fonts_changed_p is zero (Bug#2423).
8158
8159 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8160
8161 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8162 the end of TEXT_AREA. (Bug#5856)
8163
8164 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8165
8166 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8167 HAVE_GCONF.
8168
8169 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8170
8171 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8172 prev.orig_type, for resolving type of NSM. (Bug#5858)
8173
8174 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8175
8176 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8177 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8178 in current_font.
8179 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8180 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8181 New functions.
8182 (syms_of_xsettings): Initialize current_font.
8183 defsubr Sfont_get_system_normal_font.
8184
8185 * xsettings.h (Ffont_get_system_normal_font)
8186 (xsettings_get_system_normal_font): Declare.
8187
8188 * xfns.c (extern xlwmenu_default_font): Remove.
8189 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8190 to xlwmenu.c.
8191
8192 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8193 menu items in UTF-8.
8194
8195 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8196 (apply_systemfont_to_menu): New function.
8197 (set_frame_menubar, create_and_show_popup_menu):
8198 Call apply_systemfont_to_menu.
8199
8200 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8201
8202 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8203 FRAME_LINE_TO_PIXEL_Y.
8204
8205 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8206 pixelwidth/height.
8207
8208 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8209
8210 Simplify code for HP machines.
8211 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8212 for GNU_LINUX, not needed.
8213 (UNEXEC, NEED_BSDTTY): Move definitions...
8214 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8215
8216 * m/iris4d.h (UNEXEC): Move definition ...
8217 * s/irix6-5.h (UNEXEC): ... here.
8218
8219 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8220
8221 * xfns.c (set_machine_and_pid_properties): New function.
8222 (Fx_create_frame): Call set_machine_and_pid_properties.
8223
8224 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8225
8226 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8227 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8228 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8229
8230 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8231 in this function. (Bug#5703)
8232
8233 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * nsterm.h: Fix last change.
8236
8237 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8238
8239 * m/intel386.h (NO_REMAP): Move definition ...
8240 * s/msdos.h (NO_REMAP): ... here.
8241
8242 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8243
8244 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8245 used on those platforms.
8246
8247 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8248
8249 Remove extern errno declarations.
8250 * xterm.c:
8251 * xrdb.c:
8252 * w32term.c:
8253 * unexec.c:
8254 * unexaix.c:
8255 * sysdep.c:
8256 * process.c:
8257 * lread.c:
8258 * keyboard.c:
8259 * floatfns.c:
8260 * filelock.c:
8261 * fileio.c:
8262 * emacs.c (main):
8263 * ecrt0.c:
8264 * dispnew.c:
8265 * callproc.c:
8266 * buffer.c: Remove errno extern declarations.
8267 * s/netbsd.h (NEED_ERRNO): Remove.
8268
8269 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8270
8271 Remove all uses of LIBX11_SYSTEM.
8272 * Makefile.in (LIBX11_SYSTEM): Remove.
8273 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8274 instead.
8275
8276 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8277
8278 Remove support for DJGPP v1.x (bug#5813).
8279
8280 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8281 * s/msdos.h:
8282 * unexec.c (make_hdr, copy_text_and_data):
8283 * sysdep.c (wait_for_termination, sys_subshell):
8284 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8285 (IT_set_terminal_modes, __write, _rename, gethostname)
8286 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8287 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8288 the value of __DJGPP__.
8289 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8290 compatibility code.
8291 * lread.c:
8292 * gmalloc.c (memalign):
8293 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8294 * emacs.c (main):
8295 * dosfns.c (init_dosfns):
8296 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8297
8298 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8299
8300 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8301 string with `cursor' property comes from an `after-string'
8302 overlay. (Bug#5816)
8303
8304 2010-04-01 Glenn Morris <rgm@gnu.org>
8305
8306 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8307 Define as Makefile variables.
8308 (LIBX): Use above variables rather than directly using autoconf.
8309
8310 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8311
8312 Clean up BSD_SYSTEM use.
8313 * xterm.c:
8314 * process.c:
8315 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8316 for including <sys/ioctl.h>.
8317 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8318 code is only used for MSDOS.
8319
8320 2010-03-31 Juri Linkov <juri@jurta.org>
8321
8322 * image.c: Add `Qextension_data'.
8323 (syms_of_image): Initialize and staticpro `Qextension_data'.
8324 (Fimage_metadata): Rename from `Fimage_extension_data'.
8325 (gif_load): Put GIF extension data to the property
8326 `Qextension_data'.
8327
8328 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8329
8330 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8331 * nsterm.h: Fix prototype.
8332
8333 2010-03-31 Eli Zaretskii <eliz@gnu.org>
8334
8335 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8336 trailing whitespace in right-to-left rows.
8337
8338 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8339
8340 Get rid of the direct_output optimizations.
8341 * keyboard.c (nonundocount): Remove extern declaration.
8342 (command_loop_1): Remove brittle optimisation for cheap and
8343 common operations.
8344 * xdisp.c (redisplay_internal): Don't bother checking
8345 redisplay_performed_directly_p any more.
8346 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8347 any more.
8348 * dispnew.c (redisplay_performed_directly_p)
8349 (direct_output_for_insert, direct_output_forward_char):
8350 * dispextern.h (redisplay_performed_directly_p)
8351 (direct_output_for_insert, direct_output_forward_char): Remove.
8352 * cmds.c (nonundocount): Make it static.
8353
8354 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
8355
8356 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8357
8358 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
8359
8360 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8361 invisible (Bug#5766).
8362
8363 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
8364
8365 * xdisp.c (x_consider_frame_title, update_window_cursor):
8366 Remove HAVE_NS conditionals.
8367 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
8368
8369 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8370 filename for the title.
8371 (ns_set_doc_edited): Do nothing if the selected window is a
8372 minibuffer window.
8373
8374 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8375 ns_set_doc_edited.
8376
8377 * nsterm.m: Remove unneeded prototype.
8378
8379 2010-03-31 Glenn Morris <rgm@gnu.org>
8380
8381 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8382 in the DOC file. (Bug#5336)
8383
8384 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8385
8386 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8387
8388 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8389
8390 * window.c (keys_of_window): Remove redundant/overridden bindings.
8391
8392 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8393
8394 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8395 Restore original behavior when the iterator is not bidi_p.
8396
8397 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8400
8401 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8402
8403 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8404 are outside the range of cached character positions.
8405
8406 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
8407
8408 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8409
8410 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8411
8412 Initial support for bidirectional editing.
8413
8414 * Makefile.in (obj): Include bidi.o.
8415 (bidi.o): New target.
8416
8417 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8418 ($(BLD)/bidi.$(O)): New target.
8419
8420 * bidi.c: New file.
8421
8422 * buffer.h (struct buffer): New members bidi_display_reordering
8423 and bidi_paragraph_direction.
8424
8425 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8426 and bidi_paragraph_direction.
8427 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8428 and bidi-paragraph-direction.
8429 (Fbuffer_swap_text): Swap the values of
8430 bidi_display_reordering and bidi_paragraph_direction.
8431
8432 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8433 (bidi_type_t, bidi_dir_t): New types.
8434 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8435 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8436 prev_stop, base_level_stop, and eol_pos.
8437 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8438 (IT_STACK_SIZE): Enlarge to 5.
8439 (struct glyph_row): New member reversed_p.
8440 <string_buffer_position>: Update prototype.
8441 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8442 glyph_row if bidi_it.paragraph_dir == R2L.
8443 (struct glyph): New members resolved_level and bidi_type.
8444
8445 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8446 processing or buffer's direction is right-to-left.
8447 (prepare_desired_row): Preserve the reversed_p flag.
8448 (row_equal_p): Compare the reversed_p attributes as well.
8449
8450 * xdisp.c (init_iterator): Initialize it->bidi_p.
8451 Call bidi_init_it and set it->paragraph_embedding from the current
8452 buffer's value of bidi_paragraph_direction.
8453 (reseat_1): Initialize bidi_it.first_elt.
8454 (set_iterator_to_next, next_element_from_buffer): Use the value of
8455 paragraph_embedding to determine the paragraph direction.
8456 (set_iterator_to_next): Under bidi reordering, call
8457 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8458 new_paragraph flag is set in the bidi iterator.
8459 (next_element_from_buffer): If bidi_it.first_elt is set,
8460 initialize paragraph direction and find the first character to
8461 display in the visual order. If reseated to a middle of a line,
8462 prime the bidi iterator starting at the line's beginning.
8463 Handle the situation where we overstepped stop_charpos due to
8464 non-linearity of the bidi iteration. Likewise for when we back up
8465 beyond the previous stop_charpos. When moving across stop_charpos,
8466 record it in prev_stop.
8467 (display_line): Set row->end and it->start for the next row to the
8468 next character in logical order. Always extend reversed_p rows to
8469 the end of line, even if they end at ZV. Copy the reversed_p flag
8470 to the next glyph row. Keep calling set_cursor_from_row for
8471 bidi-reordered rows even if we already have a possible candidate
8472 for cursor position. Set row_end after all the row's glyphs have
8473 been produced, by looping over the glyphs. Record the position
8474 after EOL in it->eol_pos, and use it to set end_pos of the last
8475 row produced for a continued line.
8476 <Qright_to_left, Qleft_to_right>: New variables.
8477 (syms_of_xdisp): Initialize and staticpro them.
8478 (string_buffer_position_lim): New function.
8479 (string_buffer_position): Most of code moved to
8480 string_buffer_position_lim. Last argument and return value are
8481 now EMACS_INT; all callers changed.
8482 (set_cursor_from_row): Rewritten to support bidirectional text and
8483 reversed glyph rows.
8484 (text_outside_line_unchanged_p, try_window_id):
8485 Disable optimizations if we are reordering bidirectional text and the
8486 paragraph direction can be affected by the change.
8487 (append_glyph, append_composite_glyph)
8488 (produce_image_glyph, append_stretch_glyph): Set the
8489 resolved_level and bidi_type members of each glyph.
8490 (append_glyph): If the glyph row is reversed, prepend the glyph
8491 rather than appending it.
8492 (handle_stop_backwards): New function.
8493 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8494 (reseat): call handle_stop_backwards to recompute prev_stop and
8495 base_level_stop for the new position.
8496 (handle_invisible_prop): Under bidi iteration, skip invisible text
8497 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8498 paragraph direction. Update IT->prev_stop after skipping
8499 invisible text.
8500 (move_it_in_display_line_to): New variables prev_method
8501 and prev_pos. Compare for strict equality in
8502 BUFFER_POS_REACHED_P.
8503 (try_cursor_movement): Examine all the candidate rows that occlude
8504 point, to return the best match. If rows are bidi-reordered
8505 and point moved backwards, back up to the row that is not a
8506 continuation line, and start looking for a suitable row from
8507 there.
8508
8509 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8510 rather than appending, if the glyph_row's reversed_p flag is set.
8511 Set the resolved_level and bidi_type members of each glyph.
8512
8513 * .gdbinit (pbiditype): New command.
8514 (pgx): Use it to display bidi level and type of the glyph.
8515 (pitx): Display some bidi information about the iterator.
8516 (prowlims, pmtxrows): New commands.
8517
8518 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8519
8520 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8521 * s/usg5-4.h (LIBS_DEBUG):
8522 * s/irix6-5.h (C_DEBUG_SWITCH):
8523 * s/gnu-linux.h (LIBS_DEBUG):
8524 * s/darwin.h (LIBS_DEBUG):
8525 * s/bsd-common.h (LIBS_DEBUG):
8526 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8527 * m/iris4d.h (LIBS_DEBUG):
8528 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8529
8530 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8531 (LIBS_DEBUG): Remove definition.
8532
8533 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
8534
8535 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8536 Windows.
8537
8538 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8539
8540 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8541 `connect' (Bug#5723).
8542
8543 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
8544
8545 * process.c (Fmake_network_process): Call `select' for interrupted
8546 `connect' rather than creating new socket (Bug#5173).
8547
8548 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
8549
8550 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8551
8552 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8553
8554 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8555
8556 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8557
8558 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8559 XLoadQueryFont.
8560
8561 2010-03-24 Kenichi Handa <handa@m17n.org>
8562
8563 * coding.c (decode_coding_ccl): Fix previous change for the
8564 multibyte case.
8565 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8566 case that the output buffer is fullfilled.
8567 (encode_coding): Setup ccl program here.
8568
8569 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8570
8571 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8572
8573 Simplify LIBS_MACHINE definitions.
8574 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8575 * m/iris4d.h (LIBS_MACHINE): Likewise.
8576 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8577 * s/aix4-2.h (LIBS_SYSTEM): ... here.
8578 * s/netbsd.h: Remove commented out code.
8579
8580 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8581
8582 Remove dead code dealing with POSIX_SIGNALS.
8583 * atimer.c (set_alarm): Remove dead code, all USG systems define
8584 POSIX_SIGNALS.
8585 * data.c (arith_error): Likewise.
8586 * keyboard.c (input_available_signal, handle_user_signal)
8587 (interrupt_signal): Likewise.
8588 * process.c (sigchld_handler): Likewise.
8589 (create_process): Remove if 0 code. Remove HPUX conditional when
8590 !defined (POSIX_SIGNALS), it cannot be true.
8591 * syssignal.h: Remove USG5_4 and USG conditionals when
8592 !POSIX_SIGNALS, they cannot be true.
8593
8594 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8595 NO_SOCK_SIGIO, not used anymore.
8596
8597 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8598
8599 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8600 support vax on BSDs.
8601
8602 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8603 * s/aix4-2.h (ORDINARY_LINK): ... here.
8604
8605 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8606
8607 * Makefile.in (abs_builddir): Define.
8608 (bootstrap_exe): Use it.
8609 (VPATH): Use $(srcdir) instead of @srcdir@.
8610
8611 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8612
8613 * Makefile.in (bootstrap_exe): Use an absolute name.
8614
8615 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8616
8617 Remove support for old GNU/Linux using libc version 5.
8618 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8619 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8620
8621 Consolidate redundant definitions in s/bsd-common.h.
8622 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8623 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8624 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8625 doing it in all files that include this one.
8626 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8627 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8628 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8629 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8630 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8631 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8632 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8633 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8634 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8635
8636 Consolidate redundant definitions.
8637 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8638 it's undefined in all files that include this one.
8639 (POSIX_SIGNALS): Define here instead of doing it in all files that
8640 include this one.
8641 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8642 (POSIX_SIGNALS): Do not define.
8643 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8644 (POSIX_SIGNALS): Do not define.
8645 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8646 (POSIX_SIGNALS): Do not define.
8647
8648 Remove support for old UNIX System V systems.
8649 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8650 * s/usg-5-4-2.h: Remove.
8651
8652 Remove support for Solaris on PPC and for old versions.
8653 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8654 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8655 that cancel each other.
8656 * s/sol2-3.h:
8657 * s/sol2-4.h:
8658 * s/sol2-5.h: Remove.
8659 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8660 (NO_REMAP): Remove, unused.
8661 (UNEXEC): Move definition ...
8662 * s/aix4-2.h (UNEXEC): ... here.
8663
8664 * s/openbsd.h: Remove support for non-ELF and for systems that do
8665 not support shared libraries.
8666 * s/netbsd.h:
8667 * s/freebsd.h: Likewise.
8668
8669 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8670
8671 Remove non-working support for lynxos 3.0.
8672 * s/lynxos.h: Remove file.
8673
8674 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8675 COFF_BSD_SYMBOLS, nothing defines it anymore.
8676
8677 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8678
8679 Remove obsolete uses of HAVE_SHM.
8680 * emacs.c (standard_args):
8681 (Fdump_emacs):
8682 (syms_of_emacs): Remove code depending on HAVE_SHM.
8683
8684 * alloc.c: Remove HAVE_SHM dependent definition.
8685
8686 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8687
8688 2010-03-18 Glenn Morris <rgm@gnu.org>
8689
8690 * emacs.c (USAGE4): Hard-code bug address.
8691 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8692 (bug_reporting_address): Remove.
8693 (main): Don't call bug_reporting_address.
8694
8695 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8696 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8697
8698 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
8699
8700 * xfns.c (Fx_create_frame):
8701 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8702 on left.
8703
8704 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8705
8706 * editfns.c (Fformat): Account for string precision when computing
8707 field width (Bug#5710).
8708
8709 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
8710
8711 * xfns.c (Fx_create_frame): Set default to Qright.
8712
8713 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8714 all window systems.
8715
8716 2010-03-12 Eli Zaretskii <eliz@gnu.org>
8717
8718 These changes remove termcap.c from the build on Posix platforms.
8719 * Makefile.in (termcapobj): Move termcap.o from here...
8720 (MSDOS_OBJ): ...to here.
8721 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8722 now identical to when LIBS_TERMCAP is defined.
8723
8724 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8725
8726 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8727
8728 * config.in: Regenerated. (See top-level ChangeLog.)
8729
8730 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * Branch for 23.2.
8733
8734 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8735
8736 Cleanup setup of gl_state in various parts of the code.
8737 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8738 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8739 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8740 (skip_chars):
8741 * regex.c (regex_compile): Use it.
8742 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8743 it's now set in regex_compile when/if we need it.
8744
8745 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8746
8747 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8748 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8749 (QUIT): Use it to consolidate code and remove redundancy.
8750 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8751
8752 * regex.c (regex_compile): Setup gl_state as well.
8753
8754 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8755 (in_classes): Use CONSP before XCAR/XCDR.
8756
8757 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
8758
8759 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8760 definitions, so that keyboard macros are correctly handled
8761 (Bug#5481).
8762
8763 2010-03-02 Eli Zaretskii <eliz@gnu.org>
8764
8765 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8766 text that could be relocated inside the call to emacs_mule_char.
8767 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8768 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8769
8770 2010-03-02 Kenichi Handa <handa@m17n.org>
8771
8772 * character.c (parse_str_as_multibyte): Fix handling of the
8773 multibyte form of raw-bytes.
8774 (str_as_multibyte): Likewise.
8775
8776 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8777 form of raw-bytes.
8778
8779 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
8780
8781 * charset.c (load_charset_map_from_file)
8782 (load_charset_map_from_vector): Zero out allocated
8783 charset_map_entries before using them.
8784
8785 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8786
8787 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8788
8789 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
8790
8791 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8792 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
8793
8794 2010-02-26 Kenichi Handa <handa@m17n.org>
8795
8796 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8797
8798 * xdisp.c (reseat_to_string): Fix previous change.
8799
8800 2010-02-26 David Reitter <david.reitter@gmail.com>
8801
8802 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8803 Lisp_Object (Bug#4736).
8804
8805 2010-02-25 Kenichi Handa <handa@m17n.org>
8806
8807 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8808
8809 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8810
8811 * xterm.c (XTflash): Move declarations before statements.
8812
8813 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8814 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8815 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8816 (xg_create_tool_bar): Remove unused variables.
8817 (x_wm_set_size_hint): Move declarations before statements.
8818 (xg_create_frame_widgets): Remove variable grav.
8819
8820 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
8821
8822 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8823
8824 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8825
8826 * term.c (fatal): Add a final \n if needed (bug#5596).
8827
8828 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
8829
8830 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8831
8832 2010-02-18 Glenn Morris <rgm@gnu.org>
8833
8834 * callint.c (Finteractive): Doc fix.
8835
8836 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8837
8838 * coding.c (record_conversion_result):
8839 Handle CODING_RESULT_INSUFFICIENT_DST.
8840 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8841 memory allocation error.
8842
8843 2010-02-17 Kenichi Handa <handa@m17n.org>
8844
8845 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8846 Fix for the case that the output buffer is fullfilled.
8847 (decode_coding): Setup ccl program here. Keep looping when the
8848 decoder stopped because the output buffer is
8849 fullfilled (bug#5534).
8850
8851 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8852
8853 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8854
8855 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
8856 bug #5571.
8857 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
8858 overdrawn.
8859
8860 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8861
8862 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8863 doing_interact here.
8864 (ice_connection_closed): New function.
8865 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8866 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8867 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8868 returns I/O error.
8869 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8870 bug #5512.
8871
8872 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
8873
8874 * nsfont.m (nsfont_open): The system's value for the font descent
8875 is negative, so round it down to avoid clipping.
8876
8877 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
8878
8879 * charset.c (load_charset_map_from_file)
8880 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
8881 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
8882
8883 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
8884
8885 * charset.c (load_charset_map_from_file): Allocate large
8886 charset_map_entries structure on the heap rather than the stack.
8887 (Bug#5526).
8888
8889 2010-01-31 Kenichi Handa <handa@m17n.org>
8890
8891 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
8892 size in NAME is invalid, return -1 (Bug#5396).
8893
8894 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8897 <deactivated@gmail.com> (Bug#3605).
8898
8899 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
8900
8901 * fileio.c (Frename_file): Correctly rename symlinks to
8902 directories (Bug#5496).
8903
8904 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8905
8906 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8907
8908 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8909
8910 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8911
8912 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
8913
8914 * frame.c (DEFAULT_ROWS): Change default to 35.
8915
8916 * xfns.c (x_default_font_parameter): Change default XFT font to
8917 monospace-10 (Bug#3643).
8918
8919 2010-01-29 Eli Zaretskii <eliz@gnu.org>
8920
8921 * w32inevt.c (key_event): Remove unnecessary comparison of
8922 event->uChar.AsciiChar with 128.
8923
8924 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
8925
8926 * fileio.c (Frename_file): Fix last change (Bug#5487).
8927
8928 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8929
8930 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8931
8932 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8933
8934 * xfns.c (Fx_create_frame): Remove window size matching code from
8935 2010-01-15.
8936 (x_get_current_desktop, x_get_desktop_workarea): Remove.
8937
8938 2010-01-27 Jason Rumney <jasonr@gnu.org>
8939
8940 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
8941 (key_event): Use unicode for characters 128 and higher (Bug#4567).
8942
8943 2010-01-27 Kenichi Handa <handa@m17n.org>
8944
8945 * regex.c (analyse_first): Fix setting of fastmap for unibyte
8946 pattern string (Bug#4209).
8947
8948 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
8949
8950 * fileio.c (Frename_file): Call copy-directory and
8951 delete-directory for directories, in order to handle cross-device
8952 renaming (Bug#3353).
8953
8954 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
8955
8956 * xfns.c (Fx_create_frame): If frame height is too big, try
8957 sizes 24 and 10. Bug #3643.
8958
8959 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
8960
8961 Try and fix bug#788, hopefully for real this time.
8962 * keymap.c (shadow_lookup): Add `remap' arg.
8963 (describe_map, describe_vector): Update calls to shadow_lookup.
8964 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8965 `remapped' so this flag is applicable to `sequence'. Be careful to
8966 perform remapping during shadow_lookup check of remapped_sequences.
8967
8968 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
8969
8970 * image.c (png_load): Use png_sig_cmp instead of the obsolete
8971 png_check_sig, which has been removed in libpng 1.4.
8972
8973 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
8974
8975 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8976 lacks this header file).
8977
8978 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8979
8980 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
8981 as in Emacs 22.
8982
8983 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8984
8985 * lisp.h (make_pure_string): String pointer arg now points to const.
8986
8987 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
8988 args now point to const.
8989
8990 2010-01-22 Eli Zaretskii <eliz@gnu.org>
8991
8992 * lread.c (Fload): Don't treat files without .elc extension as
8993 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
8994 them. (bug#5303)
8995
8996 2010-01-20 Kenichi Handa <handa@m17n.org>
8997
8998 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
8999 treat the source as actual byte sequence.
9000
9001 2010-01-19 Alan Mackenzie <acm@muc.de>
9002
9003 Fix spurious before-change-functions invocation from (insert ?\n).
9004 * textprop.c (set_text_properties): Rename parameter
9005 `signal_after_change_p' to `coherent_change_p', and make the
9006 invocation of `modify_region' conditional on it.
9007
9008 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9009
9010 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9011 for debug purpose.
9012 (syms_of_xsettings): Declare xft-settings.
9013
9014 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9015
9016 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9017
9018 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9019
9020 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9021
9022 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9023
9024 * emacs.c (standard_args): Adjust arg priorities to reflect how
9025 they are processed in startup.el.
9026
9027 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9028
9029 * Makefile.in (lisp, shortlisp): Update.
9030
9031 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9032
9033 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9034 code, link the new kboard into all_kboard before running Lisp code,
9035 and protect the new terminal with GCPRO (Bug#5365).
9036 (x_term_init): Remove unused var `atom'.
9037 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9038
9039 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9040
9041 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9042 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9043 to find out usable size of the desktop. Don't make frames larger than
9044 this. Bug #3643.
9045
9046 2010-01-15 Kenichi Handa <handa@m17n.org>
9047
9048 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9049
9050 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9051
9052 * nsterm.m (Qnone): Define.
9053
9054 * nsfns.m (Qnone): Move definition to nsterm.m.
9055
9056 2010-01-14 Kenichi Handa <handa@m17n.org>
9057
9058 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9059 systems.
9060
9061 2010-01-14 Kenichi Handa <handa@m17n.org>
9062
9063 Make auto-composition work on all buffers even if they are
9064 fundamental mode.
9065
9066 * composite.c (Vauto_composition_mode): New variable.
9067 (composition_compute_stop_pos): Check Vauto_composition_mode
9068 instead of Vauto_composition_function.
9069 (composition_adjust_point, Ffind_composition_internal): Likewise.
9070 (syms_of_composite): Declare Lisp variable
9071 "auto-composition-mode" here.
9072
9073 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9074
9075 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9076 during call to vendor-specific-keysyms (Bug#5365).
9077
9078 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9079
9080 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9081 Call SIGNAL_THREAD_CHECK (Bug#5333).
9082
9083 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9084 Call SIGNAL_THREAD_CHECK.
9085
9086 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9087
9088 Try to fix bug#5314. This is probably not the final word, tho.
9089 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9090 recent-auto-save-p as a side-effect.
9091 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9092 * buffer.c (Fkill_buffer, reset_buffer):
9093 * editfns.c (Fsubst_char_in_region):
9094 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9095 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9096
9097 2010-01-13 Kenichi Handa <handa@m17n.org>
9098
9099 Display buffer name, etc. in mode line by composing correctly.
9100
9101 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9102 STRING is not nil.
9103 (display_mode_element): Adjust for the change of
9104 decode_mode_spec and display_line.
9105 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9106 (display_string): Handle the case that STRING is non-null and
9107 LISP_STRING is not nil.
9108
9109 * xterm.c (x_draw_composite_glyph_string_foreground):
9110 Pay attention to s->face->overstrike.
9111
9112 * composite.c (composition_reseat_it): Don't check PT if STRING is
9113 non nil.
9114
9115 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9116
9117 * keyboard.c (read_char): Don't apply previous change when current
9118 buffer is unchanged by command execution.
9119
9120 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9121
9122 * keyboard.c (read_char): Return after executing from special map.
9123
9124 2010-01-12 Glenn Morris <rgm@gnu.org>
9125
9126 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9127 bug-gnu-emacs rather than emacs-pretest-bug.
9128
9129 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9130
9131 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9132 initializing the Lisp variables that depend on them.
9133
9134 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9135
9136 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9137 Clear areas that will not be updated after change of menu bar lines.
9138 Clear the menu bar window's current matrix when the window gets empty.
9139
9140 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * intervals.h, textprop.c (extend_property_ranges): Return value
9143 and args changed. Discard properties that begin at or after the
9144 new end (Bug#5306).
9145
9146 * editfns.c (Fformat): Caller changed.
9147
9148 * nsterm.m (ns_set_default_prefs): Delete function.
9149 (syms_of_nsterm): Initialize ns_command_modifier,
9150 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9151 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9152
9153 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9154 position (Bug#4040).
9155
9156 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9157
9158 * editfns.c (Ffloat_time): Doc fix.
9159
9160 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9161
9162 * xfns.c (Fx_create_frame): Don't create frame larger than display
9163 by default bug#3643.
9164
9165 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9166
9167 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9168 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9169 windows above internal border.
9170
9171 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9172 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9173 windows above internal border.
9174
9175 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9176 tool bar windows specially.
9177
9178 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9179
9180 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9181 specially.
9182 (XTflash): Take account of menu bar height.
9183
9184 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9185 specially.
9186
9187 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9188
9189 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9190 also be true before we can return early (bug #5339).
9191
9192 2010-01-06 David Reitter <david.reitter@gmail.com>
9193
9194 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9195 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9196 (Bug#3233).
9197
9198 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9199
9200 * font.c (font_open_entity): Enable chache and call cached_font_ok
9201 for the driver if defined.
9202 (QCuser_spec): New symbol.
9203 (font_spec_from_name): Save name as user-spec.
9204 (font_load_for_lface): Keep user-spec instead of name.
9205 (font_open_by_name): Save name as user-spec.
9206 (syms_of_font): Initialize QCuser_spec.
9207 (font_clear_prop): Clear name if it exists in font (bug#5157).
9208
9209 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9210 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9211 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9212
9213 * font.h (struct font_driver): Add cached_font_ok.
9214
9215 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9216
9217 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9218
9219 * xterm.c (x_new_font): Move code for setting rows/cols before
9220 resizing ...
9221 (x_set_window_size): ... to here. Bug #2568.
9222
9223 * gtkutil.c (xg_clear_under_internal_border): New function.
9224 (xg_frame_resized, xg_frame_set_char_size):
9225 Call xg_clear_under_internal_border.
9226 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9227
9228 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9229
9230 * keyboard.c (read_key_sequence): Catch keyboard switch after
9231 making a new tty frame (Bug#5095).
9232
9233 2010-01-05 Kenichi Handa <handa@m17n.org>
9234
9235 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9236
9237 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9238
9239 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9240 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9241 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9242
9243 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9244
9245 * dbusbind.c (xd_add_watch): Improve debug message.
9246 (xd_remove_watch): Improve debug message. If DATA is the session
9247 bus, unset D-Bus session environment.
9248 (Fdbus_init_bus): Pass the bus as argument to
9249 dbus_connection_set_watch_functions. (Bug#5283)
9250
9251 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9252
9253 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9254
9255 * lread.c (syms_of_lread): Make it clearer that these are the
9256 names of loaded files (Bug#5068).
9257
9258 * eval.c (run_hook_with_args): Handle the case where the global
9259 value has the obsolete single-function form (Bug#5026).
9260
9261 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * minibuf.c (Fall_completions): Minor optimization.
9264
9265 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9266
9267 * .gdbinit (pgx): Fix display of composite glyphs.
9268 Display cmp.from and cmp.to as well.
9269 (pitx): Fix last change.
9270
9271 2009-12-25 Kenichi Handa <handa@m17n.org>
9272
9273 * composite.h (composition_adjust_point): Update prototype.
9274
9275 * composite.c (composition_reseat_it): Don't make a composition
9276 spanning over point.
9277 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9278 composable characters.
9279 (composition_adjust_point): New arg NEW_PT. Callers changed.
9280
9281 * keyboard.c (command_loop_1): Force redisplay if the last point
9282 was within a composition.
9283 (adjust_point_for_property): Don't adjust point for automatic
9284 composition when called after buffer modification.
9285
9286 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9287
9288 * .gdbinit (pitx): Don't use enum names, use their values.
9289 Remove reference to non-existing value GET_FROM_COMPOSITION.
9290 (pgx): Don't use enum names, use their values.
9291 (pitmethod): New helper command.
9292 (pitx): Use it to display iteration method.
9293 (pgrowit): New command.
9294
9295 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9296
9297 Update dependencies in Makefile.in.
9298
9299 * Makefile.in (alloc.o): Depend on termhooks.h.
9300 (atimer.o): Depend on blockinput.h.
9301 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9302 and frame.h.
9303 (callint.o): Depend on systime.h, coding.h, and composite.h.
9304 (callproc.o): Depend on buffer.h.
9305 (casefiddle.o): Don't depend on charset.h.
9306 (casetab.o): Depend on character.h.
9307 (ccl.o): Depend on composite.h.
9308 (chartab.o): Depend on ccl.h.
9309 (cm.o): Depend on dispextern.h.
9310 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9311 (coding.o): Don't depend on $(INTERVALS_H).
9312 (composite.o): Don't depend on dispextern.h explicitly (it's in
9313 $(INTERVALS_H)). Depend on ccl.h.
9314 (data.o): Depend on systime.h, coding.h, composite.h,
9315 dispextern.h, font.h, and ccl.h.
9316 (dired.o): Depend on composite.h.
9317 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9318 composite.h (it's in $(INTERVALS_H)).
9319 (doc.o): Depend on systime.h, coding.h, and composite.h.
9320 (editfns.o): Don't depend explicitly on dispextern.h.
9321 (emacs.o): Depend on frame.h and coding.h.
9322 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9323 (fileio.o): Depend on frame.h and commands.h. Don't depend
9324 explicitly on dispextern.h.
9325 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9326 composite.h.
9327 (fns.o): Don't depend on termhooks.h.
9328 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9329 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9330 coding.h, $(INTERVALS_H), window.h, xterm.h.
9331 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9332 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9333 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9334 fontset.h, ccl.h, and ftfont.h.
9335 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9336 (gtkutil.o): Depend on dispextern.h and composite.h.
9337 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9338 termhooks.h, and ccl.h.
9339 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9340 (intervals.o): Depend on systime.h and coding.h.
9341 (keyboard.o): Depend on composite.h and coding.h.
9342 (keymap.o): Depend on coding.h and frame.h.
9343 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9344 (macros.o): Depend on systime.h, coding.h, and composite.h.
9345 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9346 and atimer.h.
9347 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9348 dispextern.h explicitly.
9349 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9350 Don't depend explicitly on dispextern.h and composite.h.
9351 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9352 (regex.o): Don't depend on charset.h.
9353 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9354 (search.o): Don't depend explicitly on composite.h.
9355 (sound.o): Depend on atimer.h and systime.h.
9356 (syntax.o): Don't depend explicitly on composite.h.
9357 (sysdep.o): Depend on coding.h and composite.h.
9358 (term.o): Depend on xterm.h and buffer.h.
9359 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9360 (textprop.o): Don't depend on dispextern.h explicitly.
9361 (undo.o): Depend on dispextern.h.
9362 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9363 dispextern.h and composite.h explicitly.
9364 (xdisp.o): Depend on ccl.h.
9365 (xfaces.o): Depend on coding.h and ccl.h.
9366 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9367 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9368 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9369 ftfont.h.
9370 (xgselect.o): New dependency.
9371 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9372 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9373 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9374 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9375 (xsmfns.o): Depend on frame.h and dispextern.h.
9376 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9377 sysselect.h.
9378
9379 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9380
9381 * font.c (Fclear_font_cache): Pass correct cache argument to
9382 font_clear_cache.
9383
9384 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9385
9386 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9387 twice.
9388
9389 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
9390
9391 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9392 calling file-remote-p. Reported by Jim Meyering.
9393
9394 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
9395
9396 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9397 avoid compiler warnings. (Bug #5217)
9398
9399 2009-12-14 Kenichi Handa <handa@m17n.org>
9400
9401 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9402 in 8-bit encoding.
9403
9404 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
9405
9406 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9407 tooltip windows.
9408
9409 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9410
9411 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9412 Xatom_net_window_type.
9413
9414 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9415 Xatom_net_window_type.
9416
9417 * xterm.c (my_log_handler): New function.
9418 (x_term_init): Set my_log_handler as log handler during gtk_init
9419 so we can filter out buggy messages. (Bug #5120).
9420
9421 * xterm.c (xg_scroll_callback): Parameter list changed,
9422 use parameter GtkScrollType to determine scroll/line/page.
9423 Only allow dragging if a button < 4 is grabbed (bug #5177).
9424 (xg_end_scroll_callback): New function.
9425 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9426 xg_create_scroll_bar.
9427
9428 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9429 (scroll_end_callback): Remove.
9430 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9431 button-release-event. Replace value-changed event with change-value,
9432 bug #5177.
9433 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9434 bug #5177.
9435
9436 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9437 (xg_create_scroll_bar): Add GCallback end_callback.
9438
9439 * xftfont.c (QClcdfilter): New variable.
9440 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9441 (syms_of_xftfont): Initialize QClcdfilter.
9442
9443 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9444
9445 * xsettings.c (struct xsettings): Add member seen.
9446 (parse_xft_settings): Update member seen with what we have read.
9447 Return non-zero if Xft-settings have been parsed, 0 otherwise.
9448 (apply_xft_settings): Only update Xft settings with what member seen
9449 indicates as new.
9450
9451 2009-12-12 Eli Zaretskii <eliz@gnu.org>
9452
9453 * dispextern.h (struct text_pos): Use EMACS_INT.
9454 (struct glyph): Use EMACS_INT for charpos.
9455 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9456 region_beg_charpos, region_end_charpos,
9457 redisplay_end_trigger_charpos, and also for
9458 iterator_stack_entry.end_charpos and
9459 iterator_stack_entry.stop_charpos.
9460
9461 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9462
9463 * gtkutil.c (scroll_end_callback): New function (bug #5177).
9464 (xg_create_scroll_bar): Call scroll_end_callback on button release
9465 event (bug #5177).
9466 (xg_event_is_for_scrollbar): != replaced with ==.
9467
9468 2009-12-12 Kenichi Handa <handa@m17n.org>
9469
9470 * ftfont.c (struct ftfont_info): New member matrix.
9471 (ftfont_open): Setup xftfont_info->matrix.
9472 (MFLTFontFT): New member matrix.
9473 (FLOOR, CEIL, ROUND): New macros.
9474 (ftfont_get_metrics): Handle matrix transformation.
9475 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9476
9477 * xftfont.c (struct xftfont_info): New member matrix.
9478 (xftfont_open): Setup xftfont_info->matrix.
9479
9480 2009-12-10 Kenichi Handa <handa@m17n.org>
9481
9482 * xdisp.c (append_space_for_newline): Consider face-remapping.
9483
9484 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9485
9486 * xsettings.c: Include "keyboard.h".
9487
9488 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9489
9490 Fix implicit function declarations.
9491 * cmds.c: Include "frame.h".
9492 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9493 * frame.h: Move declaration of delete_frame outside of
9494 HAVE_WINDOW_SYSTEM.
9495
9496 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9497
9498 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9499
9500 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9501 GTK builds.
9502
9503 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9504
9505 * unexelf.c (unexec): Don't search for .data twice.
9506
9507 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
9508
9509 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9510 if push failed.
9511 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9512 of push_display_prop (Bug#5000).
9513
9514 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9515 value of font_list_entities (Bug#5085).
9516
9517 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
9518
9519 Fix `string-to-number' to deal consistently with integers and floats.
9520 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9521 trailing characters, not just whitespace.
9522 (read1): Pass new arg 0 to keep old behavior.
9523 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9524 trailing chars, as it is already done for integers. Doc fixes.
9525 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9526
9527 2009-12-04 Eli Zaretskii <eliz@gnu.org>
9528
9529 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9530 Delete unused enumeration value.
9531
9532 2009-12-03 Eli Zaretskii <eliz@gnu.org>
9533
9534 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9535
9536 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9537
9538 * process.c (Fmake_network_process): Fix up the tests for
9539 "connectionless socket", so they DTRT for seqpacket sockets as well.
9540
9541 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9542
9543 * process.c (Qseqpacket): New symbol.
9544 (HAVE_SEQPACKET): New macro.
9545 (Fmake_network_process): Accept new :type `seqpacket'.
9546 (init_process): Add `seqpacket' feature when applicable.
9547 (syms_of_process): Initialize Qseqpacket.
9548
9549 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9550
9551 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9552 if entity is Qnil.
9553
9554 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9555
9556 * print.c (print_preprocess): Preprocess the key_and_value table of
9557 hashtables, even tho they're "hidden" (bug#5082).
9558
9559 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9560
9561 * frame.c (frame_make_pointer_invisible)
9562 (frame_make_pointer_visible): Declare f before statements.
9563
9564 2009-11-28 Eli Zaretskii <eliz@gnu.org>
9565
9566 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9567 omitted dependencies on lisp.h.
9568
9569 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9570
9571 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9572 is NULL.
9573
9574 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9575
9576 * frame.c (frame_make_pointer_invisible)
9577 (frame_make_pointer_visible): Just return if there isn't any selected
9578 frame.
9579
9580 * search.c (simple_search): Remove warning by making *p const.
9581
9582 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9583
9584 * xdisp.c (power_letter): Remove duplicate const.
9585
9586 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9587
9588 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9589
9590 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
9591 defaults (bug #5025).
9592
9593 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9594
9595 * insdel.c (adjust_markers_for_delete): Move it in the
9596 right direction! (bug#4803)
9597
9598 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9599
9600 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9601
9602 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9603
9604 2009-11-24 Glenn Morris <rgm@gnu.org>
9605
9606 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9607
9608 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9609
9610 * Makefile.in: Must create deps for ecrt0.o in its rule.
9611
9612 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9613 because that is what Gtk+ font dialog understands.
9614
9615 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9616 of Fcopy_sequence.
9617 (font_open_by_name): Put name given into QCname for font-object returned.
9618
9619 * frame.c (x_set_font): Save original font name as frame parameter
9620 font-parameter.
9621
9622 * xsettings.c (set_default_xft_settings): New function.
9623 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9624 is found.
9625
9626 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9627
9628 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9629 searching backwards through multibyte buffer.
9630
9631 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9632
9633 * xterm.c: #include xgselect.h.
9634 (x_initialize): Call xgselect_initialize.
9635
9636 * xsettings.c (something_changedCB): C++ comments => C comments.
9637 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9638 does that now.
9639
9640 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9641 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9642 (scroll_bar_button_cb): Remove.
9643 (create_menus): C++ comments => C comments. Don't bind grab-notify
9644 event.
9645 (xg_create_scroll_bar): Don't bind button-press-event and
9646 button-release-event.
9647
9648 * process.c: Include xgselect.h if defined (USE_GTK) ||
9649 defined (HAVE_GCONF).
9650 (wait_reading_process_output): Call xg_select for the same condition.
9651
9652 * xgselect.c (xg_select): New function to better integrate with
9653 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9654
9655 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9656
9657 * Makefile.in (XOBJ): Add xgselect.o.
9658
9659 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9660
9661 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9662 Remove ignored second argument. All callers changed.
9663 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9664 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9665 * xdisp.c (string_char_and_length): Likewise.
9666
9667 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9668
9669 * xterm.c (x_new_font):
9670 * print.c (print_object):
9671 * cmds.c (Fself_insert_command): Move declarations before statements.
9672
9673 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9674
9675 * s/cygwin.h: Remove unneeded linker flags.
9676
9677 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9678
9679 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9680
9681 * xsettings.h: Declare xsettings_get_system_font.
9682
9683 * xsettings.c (xsettings_get_system_font): New function.
9684 (init_gconf): No use initiating gconf unless we have Xft also.
9685 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9686 HAVE_GCONF.
9687
9688 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9689 add a blank entry so it doesn't collapse into nothing.
9690
9691 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9692
9693 * lread.c (Funintern): Comment out last change.
9694
9695 2009-11-19 Richard Stallman <rms@gnu.org>
9696
9697 * lread.c (Funintern): Error if symbol is t or nil.
9698
9699 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9700
9701 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9702 representation of Lisp integers.
9703 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9704
9705 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9706
9707 * lisp.h: Remove declaration of Ffont_get_system_font.
9708 * xfns.c: Move include of "xsettings.h".
9709 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9710
9711 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9712
9713 * xsettings.c (something_changedCB, Ffont_get_system_font):
9714 Check use_system_font.
9715 (syms_of_xsettings): DEFVAR font-use-system-font.
9716
9717 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9718
9719 * xfns.c (x_default_font_parameter): Remove dead assignment.
9720
9721 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9722
9723 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9724
9725 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
9726 not have FC_LCD_*. #define them if not there.
9727
9728 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
9729
9730 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9731
9732 * xterm.c (handle_one_xevent): Call xft_settings_event for
9733 ClientMessage, PropertyNotify and DestroyNotify.
9734 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9735 Call xsettings_initialize.
9736
9737 * xftfont.c (xftfont_fix_match): New function.
9738 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9739 Call xftfont_fix_match after XftFontMatch.
9740
9741 * xfont.c (xfont_driver): Initialize all members.
9742
9743 * xfns.c (x_default_font_parameter):
9744 Try font from Ffont_get_system_font.
9745 Do not get font from x_default_parameter if we got one from
9746 Ffont_get_system_font.
9747 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
9748
9749 * w32font.c (w32font_driver): Initialize all members.
9750
9751 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9752
9753 * lisp.h: Declare syms_of_xsettings.
9754
9755 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9756 Handle CONFIG_CHANGED_EVENT.
9757
9758 * ftfont.c (ftfont_filter_properties): New function.
9759
9760 * frame.c (x_set_font): Remove unused variable lval.
9761
9762 * font.h (struct font_driver): Add filter_properties.
9763
9764 * font.c (font_put_extra): Don't return if val is nil, it means
9765 boolean option is off.
9766 (font_parse_fcname): Collect all extra properties in extra_props
9767 and call filter_properties for all drivers with extra_props and
9768 font as parameter.
9769 (font_open_entity): Do not use cache, it does not pick up new
9770 fontconfig settings like hinting.
9771 (font_load_for_lface): If spec had a name in it, store it in entity.
9772
9773 * emacs.c (main): Call syms_of_xsettings.
9774
9775 * config.in: HAVE_GCONF is new.
9776
9777 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9778 xsettings.o is new.
9779
9780 2009-11-17 Kenichi Handa <handa@m17n.org>
9781
9782 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9783 back to the default font in case that no suitable font is found.
9784
9785 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9786
9787 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9788 Suggested by Chad Brown <yandros@mit.edu>.
9789 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9790
9791 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9792
9793 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9794
9795 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9796
9797 * Makefile.in: Ignore errors from mkdir when creating deps directory.
9798
9799 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9800
9801 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9802 has a parent.
9803
9804 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
9805 dependency files in deps/. Include those files into Makefile.
9806
9807 * config.in: Generated (AUTO_DEPEND).
9808
9809 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
9810
9811 * dbusbind.c (Vdbus_registered_objects_table): Rename from
9812 Vdbus_registered_functions_table, because it contains also
9813 properties. Fix docstring.
9814 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
9815
9816 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9817
9818 * alloc.c (mark_object): Don't reprocess marked strings.
9819 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9820 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9821
9822 2009-11-13 Kenichi Handa <handa@m17n.org>
9823
9824 * category.c (word_boundary_p): Adjust for the change of the
9825 semantics of Vword_combining_categories.
9826 (Vword_combining_categories): Describe the slight change of the
9827 semantics.
9828
9829 2009-11-13 Eli Zaretskii <eliz@gnu.org>
9830
9831 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9832
9833 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9834
9835 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9836
9837 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9838
9839 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
9840
9841 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9842
9843 2009-11-11 David Reitter <david.reitter@gmail.com>
9844
9845 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9846 variables to fix 2009-11-09 change.
9847
9848 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9849
9850 * process.c (ifflag_def): Make flag_sym constant.
9851 (Fnetwork_interface_info): Use a constant pointer.
9852 (ifflag_table):
9853 * xfns.c (cursor_bits):
9854 * xdisp.c (power_letter):
9855 * termcap.c (speeds, esctab):
9856 * sysdep.c (baud_convert):
9857 * keyboard.c (lispy_accent_codes, modifier_names):
9858 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9859 (jpeg_format, tiff_format, gif_format, svg_format)
9860 (interlace_start, interlace_increment, gs_format):
9861 * gtkutil.c (separator_names):
9862 * fringe.c (swap_nibble):
9863 * fns.c (base64_value_to_char, base64_char_to_value):
9864 * fileio.c (make_temp_name_tbl):
9865 * coding.c (suffixes): Make constant.
9866
9867 * frame.c (make_initial_frame):
9868 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9869 build_string.
9870 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9871
9872 * s/freebsd.h:
9873 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9874
9875 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9876 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9877
9878 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9879 * xterm.c (syms_of_xterm):
9880 * xfaces.c (syms_of_xfaces):
9881 * xdisp.c (syms_of_xdisp):
9882 * lread.c (syms_of_lread):
9883 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9884 build_string.
9885
9886 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9887
9888 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9889
9890 * fns.c (Fplist_get): Merge the active and the commented out code.
9891
9892 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9893
9894 * keyboard.h: Declare timer_check.
9895
9896 * keyboard.c (timer_check_2): New function that does what the old
9897 timer_check did.
9898 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9899 returned, i.e. don't return -1 with timers pending.
9900
9901 * process.c: Remove extern declaration of timer_check.
9902
9903 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9904 even if timer_check returned -1.
9905
9906 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9907 xg_dialog_data.
9908 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9909 the event loop.
9910 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9911 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9912 Destroy the dialog after xg_dialog_run.
9913
9914 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9915
9916 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9917
9918 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9919
9920 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9921
9922 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
9923
9924 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9925
9926 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9927
9928 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9929 w32menu.c, and nsmenu.m.
9930 Simplify the obsolete case where position is nil.
9931 (cleanup_popup_menu): New function, moved from nsmenu.m.
9932 (struct skp): Remove slot `notreal'.
9933 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9934 adjust callers.
9935 (single_menu_item): Adjust call to parse_menu_item.
9936 (syms_of_menu): Defsubr x-popup-menu.
9937 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9938 (keymap_panes): Don't export any more.
9939 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9940 (xmenu_show): Declare.
9941 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9942 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9943 * keyboard.h (parse_menu_item): Update declaration.
9944 * xmenu.c (Fx_popup_menu): Remove.
9945 (syms_of_xmenu): Don't defsubr x-popup-menu.
9946 * w32menu.c (Fx_popup_menu): Remove.
9947 (syms_of_w32menu): Don't defsubr x-popup-menu.
9948 * nsmenu.m (cleanup_popup_menu): Remove.
9949 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9950 moved to menu.c's Fx_popup_menu.
9951 (Fx_popup_menu): Remove.
9952 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9953 menu_items (it's done in menu.c already).
9954
9955 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
9956
9957 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9958 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
9959
9960 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
9961
9962 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
9963 xmenu_show. Hide any tooltip before opening a menu.
9964 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
9965 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
9966
9967 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
9968
9969 Let integers use up 2 tags to give them one extra bit and thus double
9970 their range.
9971 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9972 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9973 New macros.
9974 (enum Lisp_Type): Use them. Give explicit values.
9975 (Lisp_Type_Limit): Remove.
9976 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9977 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9978 Pay attention to USE_2_TAGS_FOR_INTS.
9979 (INTEGERP): Use LISP_INT_TAG_P.
9980 * fns.c (internal_equal): Simplify the default case.
9981 (sxhash): Use case_Lisp_Int.
9982 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
9983 any more.
9984 (Ftype_of): Use case_Lisp_Int.
9985 (store_symval_forwarding): Take into account the fact that Ints can
9986 now have more than one tag.
9987 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
9988 (buffer_slot_type_mismatch):
9989 * xfaces.c (face_attr_equal_p):
9990 * print.c (print_object):
9991 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
9992 Use case_Lisp_Int.
9993
9994 2009-11-06 Eli Zaretskii <eliz@gnu.org>
9995
9996 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
9997
9998 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
9999 warning.
10000
10001 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10002
10003 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10004
10005 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10006
10007 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10008 ButtonPressRelease and MotionNotify (bug#4870).
10009
10010 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10011
10012 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10013
10014 * xterm.c (syms_of_xterm):
10015 * xselect.c (syms_of_xselect):
10016 * xmenu.c (syms_of_xmenu):
10017 * xfns.c (syms_of_xfns):
10018 * xfaces.c (syms_of_xfaces):
10019 * xdisp.c (syms_of_xdisp):
10020 * window.c (syms_of_window):
10021 * w32fns.c (syms_of_w32fns):
10022 * undo.c (syms_of_undo):
10023 * textprop.c (syms_of_textprop):
10024 * terminal.c (syms_of_terminal):
10025 * syntax.c (syms_of_syntax):
10026 * sound.c (syms_of_sound):
10027 * search.c (syms_of_search):
10028 * print.c (syms_of_print):
10029 * minibuf.c (syms_of_minibuf):
10030 * macros.c (syms_of_macros):
10031 * keymap.c (syms_of_keymap, initial_define_key)
10032 (initial_define_lispy_key):
10033 * keyboard.c (syms_of_keyboard):
10034 * insdel.c (syms_of_insdel):
10035 * image.c (syms_of_image):
10036 * fringe.c (syms_of_fringe):
10037 * frame.c (syms_of_frame):
10038 * fontset.c (syms_of_fontset):
10039 * fns.c (syms_of_fns):
10040 * fns.c (syms_of_fns):
10041 * fileio.c (syms_of_fileio):
10042 * fileio.c (syms_of_fileio):
10043 * eval.c (syms_of_eval):
10044 * doc.c (syms_of_doc):
10045 * dispnew.c (syms_of_display):
10046 * dired.c (syms_of_dired):
10047 * dbusbind.c (syms_of_dbusbind):
10048 * data.c (syms_of_data):
10049 * composite.c (syms_of_composite):
10050 * coding.c (syms_of_coding):
10051 * cmds.c (syms_of_cmds):
10052 * charset.c (define_charset_internal, syms_of_character):
10053 * ccl.c (syms_of_ccl):
10054 * category.c (syms_of_category, init_category_once):
10055 * casetab.c (syms_of_casetab):
10056 * casefiddle.c (syms_of_casefiddle):
10057 * callint.c (syms_of_callint):
10058 * bytecode.c (syms_of_bytecode):
10059 * buffer.c (keys_of_buffer, syms_of_buffer):
10060 * alloc.c (syms_of_alloc):
10061 * process.c (syms_of_process, init_process):
10062 * lread.c (syms_of_lread, init_obarray):
10063 * font.c (build_style_table):
10064 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10065 intern_c_string, calls to make_pure_string with
10066 make_pure_c_string. Use pure_cons instead of Fcons.
10067
10068 * process.c (socket_options): Make it const.
10069 (set_socket_option, init_process): Use a const pointer.
10070
10071 * lread.c (intern_c_string): New function.
10072 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10073 (defvar_int): Uset it. Make the name const char*.
10074
10075 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10076 (defvar_int): Update prototypes.
10077 (DEFUN, EXFUN): Support for prototypes is now required.
10078 (intern_c_string): New prototype.
10079 (struct Lisp_Subr): Make symbol_name constant.
10080
10081 * font.c (struct table_entry): Remove unused member. Make NAMES
10082 constant.
10083 (weight_table, slant_table, width_table): Make constant.
10084
10085 * emacs.c (struct standard_args): Make name and longname constant.
10086
10087 * character.h (DEFSYM): Use intern_c_string.
10088
10089 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10090
10091 * alloc.c (make_pure_c_string): New function.
10092
10093 * eval.c (Fautoload): Purecopy all arguments.
10094
10095 2009-11-05 Kenichi Handa <handa@m17n.org>
10096
10097 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10098 the buffer in case of replace.
10099
10100 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10101
10102 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10103
10104 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10105
10106 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10107 when applicable (bug#4851).
10108
10109 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10110 (P_): Support for prototypes is now required.
10111
10112 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10113
10114 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10115 (Bug#4827).
10116
10117 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10118
10119 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10120
10121 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10122
10123 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10124
10125 * lread.c (Fload): Purecopy the file name when building
10126 Vpreloaded_file_list.
10127
10128 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10129
10130 * w32fns.c (syms_of_w32fns): Change default value of
10131 w32-scroll-lock-modifier to nil. (Bug#2827)
10132
10133 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10134
10135 * minibuf.c (Fall_completions): Fix typos in docstring.
10136
10137 2009-10-26 Andreas Schwab <schwab@redhat.com>
10138
10139 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10140
10141 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10142
10143 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10144 For delta < 0, skip check that only makes sense when the mini-window
10145 is going to be enlarged. (Bug#4534)
10146
10147 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10148
10149 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10150 string in menu maps (Bug#4471).
10151
10152 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10153
10154 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10155 FRAME_NS_VIEW on terminal frames (Bug#4765).
10156
10157 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10158
10159 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10160 DBUS_TYPE_UINTnn separately to get proper sign extension.
10161
10162 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10163 can properly handle unsigned types.
10164 (make_uid, make_gid): Remove.
10165
10166 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10167 types again.
10168
10169 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10170 (system_process_attributes): Likewise.
10171
10172 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10173
10174 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10175
10176 * eval.c (Fautoload): Purecopy the filename. Simplify.
10177
10178 * category.c (Fdefine_category): Purecopy docstring.
10179
10180 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10181
10182 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10183
10184 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10185
10186 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10187
10188 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10189 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10190 (Bug#4775).
10191
10192 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10193
10194 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10195 (init_fileio_once):
10196 * lisp.h (init_fileio_once): Remove.
10197 * emacs.c (main): Don't call init_fileio_once.
10198
10199 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10200
10201 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10202
10203 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10204
10205 * doprnt.c (doprnt): Fix overflow check.
10206
10207 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10208
10209 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10210
10211 * xterm.h (x_wait_for_event): Declare it.
10212
10213 * xterm.c (pending_event_wait): New variable.
10214 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10215 see pending_event_wait.eventtype.
10216 (handle_one_xevent): Don't change gravity when parent changes.
10217 (x_new_font): Call change_frame_size with new rows/columns before we
10218 try to resize the frame.
10219 (x_wait_for_event): New function.
10220 (x_set_window_size_1): Don't change gravity unless change_gravity
10221 is set.
10222 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10223 don't change frame size, instead wait for the ConfigureNotify.
10224 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10225 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10226 (x_initialize): Initialize pending_event_wait.
10227
10228 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10229 size.
10230
10231 * widget.c (EmacsFrameSetValues): Add comment.
10232 (EmacsFrameSetCharSize): Just call x_set_window_size.
10233
10234 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10235 x_wait_for_event.
10236 (flush_and_sync): Remove again.
10237 (xg_get_font_name): Suggest monospace if no previous font is known.
10238
10239 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10240
10241 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10242 8th bit, since that only made sense in the ASCII world (bug#4751).
10243
10244 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10245
10246 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10247 processing pending events when event is filtered for input method.
10248 (Bug#3681)
10249
10250 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10251
10252 * fns.c: Add #endif accidentally removed in previous change.
10253
10254 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10255
10256 * fns.c: Remove code for unsupported system: MAC_OS.
10257 * image.c: Likewise. Include setjmp.h.
10258
10259 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10260
10261 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10262 pixel -1 (bug #4742).
10263
10264 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10265
10266 * process.c (create_pty): Remove conditionals for no longer
10267 supported systems: UNIPLUS and RTU.
10268
10269 * xterm.c:
10270 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10271
10272 * alloc.c: Do not define struct catchtag.
10273 * eval.c: Move struct catchtag definition ...
10274 * lisp.h: ... here.
10275
10276 * image.c: Move png.h #include earlier to avoid warnings.
10277
10278 * xterm.c:
10279 * xsmfns.c:
10280 * xselect.c:
10281 * xrdb.c:
10282 * xmenu.c:
10283 * xftfont.c:
10284 * xfont.c:
10285 * xfns.c:
10286 * xfaces.c:
10287 * xdisp.c:
10288 * window.c:
10289 * widget.c:
10290 * w32xfns.c:
10291 * w32uniscribe.c:
10292 * w32term.c:
10293 * w32select.c:
10294 * w32reg.c:
10295 * w32proc.c:
10296 * w32menu.c:
10297 * w32inevt.c:
10298 * w32heap.c:
10299 * w32font.c:
10300 * w32fns.c:
10301 * w32console.c:
10302 * w32.c:
10303 * w16select.c:
10304 * vm-limit.c:
10305 * unexsol.c:
10306 * unexec.c:
10307 * unexcw.c:
10308 * unexaix.c:
10309 * undo.c:
10310 * tparam.c:
10311 * textprop.c:
10312 * terminfo.c:
10313 * terminal.c:
10314 * termcap.c:
10315 * term.c:
10316 * syntax.c:
10317 * sound.c:
10318 * sheap.c:
10319 * search.c:
10320 * scroll.c:
10321 * region-cache.c:
10322 * regex.c:
10323 * ralloc.c:
10324 * process.c:
10325 * print.c:
10326 * nsterm.m:
10327 * nsselect.m:
10328 * nsmenu.m:
10329 * nsimage.m:
10330 * nsfont.m:
10331 * nsfns.m:
10332 * msdos.c:
10333 * minibuf.c:
10334 * menu.c:
10335 * marker.c:
10336 * macros.c:
10337 * keymap.c:
10338 * keyboard.c:
10339 * intervals.c:
10340 * insdel.c:
10341 * indent.c:
10342 * gtkutil.c:
10343 * ftxfont.c:
10344 * ftfont.c:
10345 * fringe.c:
10346 * frame.c:
10347 * fontset.c:
10348 * font.c:
10349 * fns.c:
10350 * floatfns.c:
10351 * filelock.c:
10352 * fileio.c:
10353 * emacs.c:
10354 * editfns.c:
10355 * dosfns.c:
10356 * doprnt.c:
10357 * doc.c:
10358 * dispnew.c:
10359 * dired.c:
10360 * dbusbind.c:
10361 * data.c:
10362 * composite.c:
10363 * coding.c:
10364 * cmds.c:
10365 * cm.c:
10366 * chartab.c:
10367 * charset.c:
10368 * character.c:
10369 * ccl.c:
10370 * category.c:
10371 * casetab.c:
10372 * casefiddle.c:
10373 * callproc.c:
10374 * callint.c:
10375 * bytecode.c:
10376 * buffer.c:
10377 * atimer.c: Include setjmp.h. (Bug#4643)
10378
10379 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10380
10381 Remove leftover table unibyte_to_multibyte_table.
10382 * character.c (unibyte_to_multibyte_table): Remove.
10383 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10384 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10385 * character.h (UNIBYTE_TO_CHAR): New macro.
10386 (MAKE_CHAR_MULTIBYTE): Use it.
10387 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10388 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10389 (message_dolog, set_message_1):
10390 * search.c (Freplace_match):
10391 * editfns.c (Fcompare_buffer_substrings):
10392 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10393 (concat):
10394 * insdel.c (copy_text, count_size_as_multibyte):
10395 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10396 * term.c (produce_glyphs):
10397 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10398 * regex.c (RE_CHAR_TO_MULTIBYTE):
10399 * cmds.c (internal_self_insert):
10400 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10401
10402 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10403
10404 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10405
10406 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10407
10408 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
10409
10410 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10411
10412 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10413
10414 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10415 still needed under Tiger.
10416
10417 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10418
10419 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10420 __Apple__.
10421
10422 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10423
10424 2009-10-15 Kenichi Handa <handa@m17n.org>
10425
10426 * print.c (print_object): Escape a symbol like "2E10" too.
10427
10428 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
10429
10430 Cleanups and changes for 64-bit compile under Snow Leopard.
10431 Based on suggestions by Erik Charlebois.
10432
10433 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10434
10435 * nsfont.m (ns_char_width): Replace deprecated call.
10436 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10437 cast argument.
10438 (nsfont_open): Use ns_char_width() everywhere.
10439 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
10440
10441 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10442
10443 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10444 where appropriate.
10445
10446 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10447 where appropriate.
10448 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10449 Use stringWithUTF8String.
10450 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10451
10452 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10453 Add formal protocol mention to inheritance.
10454 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10455
10456 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10457 Fix printf format.
10458 (ns_query_color): Use CGFloat where appropriate.
10459 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
10460 (EmacsScroller-mouseDown:): Use long format in printf, and cast
10461 argument.
10462
10463 * config.in (NS_HAVE_NSINTEGER): Drop.
10464
10465 * dbusbind.c (dbus-method-return-internal)
10466 (dbus-method-error-internal): Use long format in printf, and cast
10467 argument.
10468
10469 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10470 in printf, and cast argument.
10471
10472 * process.c (list_processes_1): Use long format in printf, and
10473 cast argument.
10474
10475 2009-10-11 Glenn Morris <rgm@gnu.org>
10476
10477 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10478
10479 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10480
10481 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10482 menu bar with a small width so it doesn't enlarge the frame.
10483
10484 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
10485
10486 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10487
10488 2009-10-06 Glenn Morris <rgm@gnu.org>
10489
10490 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10491 SOME_MACHINE_LISP (this enters indirectly via DOC).
10492
10493 2009-10-05 Eli Zaretskii <eliz@gnu.org>
10494
10495 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10496
10497 2009-10-04 Eli Zaretskii <eliz@gnu.org>
10498
10499 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10500 Doc fix.
10501
10502 2009-10-03 Martin Rudalics <rudalics@gmx.at>
10503
10504 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10505
10506 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
10507
10508 * lisp.h (Qdelete_directory_internal): Remove, because it is not
10509 used anymore outside fileio.c.
10510
10511 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10512
10513 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
10514
10515 * lisp.h (Qdelete_directory_internal):
10516 Declare, instead of Qdelete_directory.
10517
10518 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10519
10520 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10521
10522 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10523
10524 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
10525
10526 * fileio.c (Fdelete_directory_internal): Rename from
10527 Fdelete_directory. It is not a command anymore. It has no file
10528 name handler.
10529
10530 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10531
10532 * xdisp.c (get_next_display_element): Use an enum in last change.
10533
10534 2009-09-28 Kenichi Handa <handa@m17n.org>
10535
10536 * xdisp.c (get_next_display_element): Pay attention to
10537 unibyte_display_via_language_environment in handling
10538 Vnobreak_char_display.
10539
10540 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10541
10542 * nsterm.h (ns_app_name): New extern variable.
10543
10544 * nsterm.m (ns_app_name): New variable.
10545 (ns_term_init): Set and use it.
10546 (ns_term_shutdown): Use it.
10547
10548 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10549 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10550
10551 * nsfns.m (ns_set_name_iconic, ns_set_name)
10552 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10553 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10554
10555 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10556 Remove double-casting in client_data comparison.
10557
10558 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10559
10560 * keyboard.c (make_lispy_event): Remember last wheel direction.
10561 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10562
10563 2009-09-26 Glenn Morris <rgm@gnu.org>
10564
10565 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10566 internal.elc. Add term/pc-win.elc.
10567 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10568 term/x-win.elc.
10569 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10570 term/w32-win.elc.
10571 (NS_SUPPORT): New.
10572 (lisp): Add NS_SUPPORT.
10573 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10574
10575 2009-09-25 David Reitter <david.reitter@gmail.com>
10576
10577 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10578 on Mac OS X 10.6+ (bug#4513).
10579
10580 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10581
10582 * frame.c (xrdb_get_resource): Return nil for empty string resources;
10583 some parts of Emacs code (like font selection) don't grok them.
10584 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
10585
10586 2009-09-24 Andreas Schwab <schwab@redhat.com>
10587
10588 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10589
10590 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10591
10592 * dired.c (Fdirectory_files): Fix typo in docstring.
10593
10594 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10595
10596 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10597 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10598 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10599 under GNUstep.
10600 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10601
10602 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10603 glyph advancement.
10604
10605 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10606
10607 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
10608 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
10609
10610 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10611 deleted (bug #4492).
10612
10613 * nsfont.m (Vns_reg_to_script): New lisp variable.
10614 (syms_of_nsfont): Declare it.
10615 (ns_registry_to_script): New function.
10616 (ns_get_req_script): Call it.
10617 (ns_findfonts): Don't give up on non-unicode registry.
10618
10619 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10620
10621 2009-09-20 Tom Tromey <tromey@redhat.com>
10622
10623 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10624 batch mode (bug#4228).
10625
10626 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
10627
10628 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
10629 carefully. (Bug #4339)
10630
10631 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
10632
10633 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
10634
10635 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10636
10637 * emacs.c (inhibit_x_resources): Update doc string for NS.
10638 (main) [HAVE_NS]: Don't process --no-init-file option.
10639 Remove legacy code for -NXHost. Fix error printf in daemon case.
10640
10641 * nsterm.h (ns_no_defaults): Remove.
10642
10643 * nsterm.m (ns_no_defaults): Remove.
10644 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10645 (ns_use_qd_smoothing): Remove legacy variable.
10646 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10647 don't update the NSWindow itself.
10648 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10649 Improve state detection and store user rect ourselves. (Bug #3581)
10650
10651 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10652 ns_use_qd_smoothing.
10653
10654 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10655 platform versions. Drop support for emacs-20-style face specs.
10656 (x-close-connection): Drop PSFlush() under OS X.
10657 (x-focus-frame): Activate the app first. (Bug #4180)
10658
10659 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
10660
10661 * emacs.c (inhibit_x_resources): New variable.
10662 (main) [HAVE_NS]: Don't process --quick command line option.
10663 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10664
10665 * lisp.h (inhibit_x_resources): Declare it extern.
10666
10667 * w32reg.c (x_get_string_resource):
10668 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10669
10670 2009-09-17 Eli Zaretskii <eliz@gnu.org>
10671
10672 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10673 Add lisp/term/internal.elc.
10674
10675 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10676
10677 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10678 (bug#4461).
10679
10680 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10681
10682 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10683
10684 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10685 (OBJECTS_MACHINE): Remove, unused.
10686
10687 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 * frame.c (x_get_resource_string): Remove unused.
10690
10691 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10692
10693 * xterm.c (x_new_font): Call change_frame_size before calling
10694 x_set_window_size, in case frame size won't change.
10695
10696 * frame.c (x_set_font): Remove dead code.
10697
10698 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10699
10700 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10701
10702 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10703
10704 * lread.c (Fload): Don't output a message after loading an obsolete
10705 package any more (done in Lisp now).
10706
10707 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
10708
10709 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10710
10711 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10712
10713 * keymap.c (Fwhere_is_internal): Use nconc2.
10714
10715 2009-09-11 Alan Mackenzie <acm@muc.de>
10716
10717 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10718 batch mode.
10719
10720 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10721
10722 * xdisp.c (display_mode_element): Detect cycles.
10723
10724 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10725
10726 * keymap.c (where_is_internal): Don't erroneously return nil right after
10727 filling the cache.
10728 (where_is_internal_1): Fix up typo.
10729
10730 2009-09-11 Glenn Morris <rgm@gnu.org>
10731
10732 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10733 share a common doc-string.
10734
10735 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10736
10737 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10738 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10739
10740 * keymap.c (QCadvertised_binding): New constant.
10741 (syms_of_keymap): Initialize it.
10742 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10743 if applicable.
10744
10745 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10746
10747 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10748 (parse_menu_item): Streamline since bindings are recomputed all the
10749 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10750 more and don't support lmenu's menu-alias any more either.
10751
10752 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10753 (where_is_internal): Strip it down to only traverse the keymaps.
10754 Move the cache handling from Fwhere_is_internal to here.
10755 (Fwhere_is_internal): Move the handling of remapping and the choice of
10756 the best binding from where_is_internal to here.
10757 Unify the cached/noncached paths, so remapping is also handled
10758 correctly when the cache is used, and so the cache can be used to
10759 speed up remap-handling when applicable.
10760 Give preference to non-remapped bindings.
10761 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10762 non-remapped bindings.
10763 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10764 command remapping.
10765
10766 * xdisp.c (display_mode_element): Move list length limit from 50 to
10767 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10768
10769 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
10770
10771 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10772
10773 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10776 (Bug#4334)
10777
10778 * keymap.c (where_is_internal): Filter out shadowed remappings.
10779 Assume that where_is_internal returns unshadowed bindings to simplify
10780 the code and get rid of the gotos. Use ASIZE.
10781
10782 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10783
10784 * xterm.c (x_focus_changed): If we get a focusout and pointer
10785 is invisible, make it visible.
10786
10787 * xterm.h: Remove condition for declaration of
10788 x_*_window_to_frame.
10789
10790 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10791
10792 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10793 initial terminal as well.
10794
10795 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10796
10797 * xterm.h: Rename x_non_menubar_window_to_frame to
10798 x_menubar_window_to_frame.
10799
10800 * xterm.c: Remove declarations also in xterm.h.
10801 (XTmouse_position): Do not return valid positions
10802 for clicks in the menubar and the toolbar for Gtk+.
10803
10804 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10805 if the widget for the event has the same top level as a frame,
10806 return the frame.
10807 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10808 internal windows, bug #4122.
10809 (x_non_menubar_window_to_frame): Remove.
10810
10811 2009-09-02 Glenn Morris <rgm@gnu.org>
10812
10813 * buffer.c (default-major-mode): Move most of the doc from here...
10814 (major-mode): ... to here.
10815
10816 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
10817
10818 * process.c (wait_reading_process_output): Keep the descriptor
10819 when pty is used by a non-child process, e.g., in I/O buffer of
10820 GDB this allows inferior to be restarted.
10821
10822 2009-08-29 Eli Zaretskii <eliz@gnu.org>
10823
10824 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10825 both branches into one.
10826
10827 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10828
10829 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10830 (main): Use enable-multibyte-characters rather than
10831 default-enable-multibyte-characters. Output a warning message when
10832 running a unibyte session.
10833
10834 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10835
10836 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10837 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10838 (copy_data_segment): Also copy __program_vars section.
10839 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10840 (dump_it) [LC_DYLD_INFO]: Use it.
10841
10842 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10843
10844 2009-08-28 Eli Zaretskii <eliz@gnu.org>
10845
10846 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10847 $(SRC)/buildobj.h.
10848 (buildobj.h): Rename from $(SRC)/buildobj.h.
10849 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10850 $(SRC)/buildobj.h.
10851 (clean): Add buildobj.h.
10852
10853 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10854
10855 * print.c (print_object): Set escapeflag to 1 when printing
10856 hashtable keys and values.
10857
10858 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * lread.c (read_integer): Use doubles (and potentially return a float
10861 number) as we do in string-to-number.
10862 (read1): Use strtol to read integers, signal errors on strtol's
10863 overflow and use floats if strtol's output is too large for
10864 Elisp integers.
10865
10866 2009-08-27 Eli Zaretskii <eliz@gnu.org>
10867
10868 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10869 (make-buildobj-SH): Fix last change.
10870 (SRC): Move to before where it's first used.
10871
10872 2009-08-27 Kenichi Handa <handa@m17n.org>
10873
10874 * process.c (send_process): Use encode_coding_object instead of
10875 encode_coding_string to perform eol-conversion even if the string
10876 is unibyte.
10877
10878 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10879 character.
10880
10881 * cmds.c (Fself_insert_command): Avoid unnecessay
10882 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
10883
10884 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10885
10886 * callproc.c (Fcall_process): Remove always true #if.
10887
10888 * lisp.h: Replace #if 0 code for checking with text pointing to
10889 the --enable-checking configure flag.
10890
10891 * emacs.c (main): Mention the --enable-profiling configure flag
10892 instead of using CFLAGS.
10893
10894 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
10895
10896 * Makefile.in (buildobj.h): New target.
10897 (doc.o): Depend on it.
10898 (temacs${EXEEXT}): Don't generate buildobj.lst.
10899 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10900 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10901 ($(BLD)/doc.$(O)): Depend on it.
10902 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10903 provided by Eli Zaretskii.)
10904 ($(TEMACS)): Don't generate buildobj.lst.
10905 * doc.c: Include buildobj.h.
10906 (buildobj): New static variable.
10907 (Fsnarf_documentation): Use it, instead of opening and reading
10908 buildobj.lst.
10909
10910 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
10911
10912 * dbusbind.c (Fdbus_call_method)
10913 (Fdbus_call_method_asynchronously): Use English numeric format for
10914 timeout values in doc string.
10915
10916 2009-08-25 Kenichi Handa <handa@m17n.org>
10917
10918 * alloc.c (mark_char_table): New function.
10919 (mark_object): Use mark_char_table for a char-table.
10920
10921 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10922 (CHAR_TABLE_REF): Use it.
10923
10924 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
10925
10926 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10927 before invoking the newly build emacs to check for load-path
10928 shadowing.
10929
10930 2009-08-22 Glenn Morris <rgm@gnu.org>
10931
10932 * Makefile.in (bootstrap_exe): New variable.
10933 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10934 Use ${bootstrap_exe}.
10935
10936 2009-08-22 Eli Zaretskii <eliz@gnu.org>
10937
10938 * coding.h (encode_coding_string): Don't encode unibyte strings.
10939 (Bug#4047)
10940
10941 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
10942
10943 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10944
10945 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10946 intended as hotfix only.
10947 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10948
10949 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10950
10951 * nsterm.m (ns_get_color): Update documentation properly for last
10952 change, and clean up loose ends in the code left by it.
10953 Fix longstanding bug with 16-bit hex parsing, and add support for
10954 yet another X11 format (rgb:r/g/b) for compatibility.
10955 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10956 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
10957
10958 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
10959
10960 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10961
10962 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
10963
10964 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10965 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
10966 (xd_initialize, xd_pending_messages): Check, whether
10967 $DBUS_SESSION_BUS_ADDRESS is set.
10968
10969 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10970
10971 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
10972
10973 * nsterm.m (ns_get_color): Remove incompatible color formats again.
10974
10975 2009-08-20 Glenn Morris <rgm@gnu.org>
10976
10977 * emacs.c (system-type): Doc fix.
10978
10979 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10980
10981 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
10982 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
10983
10984 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
10985
10986 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
10987 New functions.
10988 (xd_initialize): Revert change from 2009-08-16.
10989
10990 2009-08-18 Kenichi Handa <handa@m17n.org>
10991
10992 * fontset.c (Ffontset_font): If a nil element is found in a
10993 font-group vector, return nil.
10994
10995 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
10996
10997 * process.c (status_notify): Don't perform redisplay.
10998 (Fdelete_process, list_processes_1, process_send_signal):
10999 Expliticly perform redisplay.
11000 (wait_reading_process_output): Always check process status, but
11001 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11002
11003 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
11004
11005 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
11006 (XFLOAT_INIT): New macro for storing a float value.
11007 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11008 * fns.c (sxhash): Copy out the value of a float in order to
11009 examine its bytes.
11010 * dbusbind.c (xd_append_arg): Likewise.
11011
11012 * emacs.c (main): Don't call syms_of_data twice.
11013
11014 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11015
11016 * dbusbind.c (xd_initialize): Add connection file descriptor to
11017 input_wait_mask, in order to let select() detect, whether a new
11018 message has been arrived.
11019 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11020
11021 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11022
11023 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11024 New functions.
11025
11026 * lisp.h (xd_pending_messages): Declare.
11027
11028 * keyboard.c (readable_events): Call xd_pending_messages.
11029
11030 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11031
11032 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11033
11034 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11035
11036 * buffer.c (set_buffer_internal_1)
11037 (swap_out_buffer_local_variables): Check for unbound local
11038 variables (Bug#4138).
11039
11040 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11041
11042 * process.c (create_pty): Fix last change.
11043
11044 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11045
11046 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11047 (xbm_load_image): Caller changed.
11048 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11049
11050 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11051
11052 * process.c (create_pty): New function.
11053 (Fstart_process): Use it to allow Emacs to just associate a pty
11054 with the buffer. See associated change in gdb-mi.el.
11055 (list_processes_1): Deal with no program name.
11056 (start_process_unwind): Use pid == -2 to mean no process.
11057
11058 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11059
11060 * cmds.c (nonundocount): New global variable.
11061 (keys_of_cmds): Initialize it.
11062 (Fself_insert_command): Use it to combine upto 20 sequential chars
11063 into a single undo entry, just like the Qself_insert_command code in
11064 keyboard.c does.
11065 Call frame_make_pointer_invisible, also like the Qself_insert_command
11066 code in keyboard.c does.
11067 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11068 than its own local replacement for it.
11069
11070 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11071
11072 * fns.c (concat): Don't re-set string length to its current value.
11073
11074 * coding.h (decode_coding_string, encode_coding_string):
11075 Use SBYTES macro.
11076
11077 * doprnt.c (doprnt_lisp): Delete unused function.
11078 (doprnt): Merge with doprnt1, discarding lispstrings code.
11079 * lisp.h (doprnt_lisp): Don't declare.
11080
11081 2009-08-07 Juri Linkov <juri@jurta.org>
11082
11083 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11084
11085 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11086
11087 * print.c (syms_of_print): Undo previous change.
11088
11089 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11090
11091 * lread.c (read1, syms_of_lread): Read hashtables back from the
11092 readable format.
11093
11094 * print.c (print_preprocess, print_object): Print hashtables fully
11095 and readably.
11096 (syms_of_print): Provide 'hashtable-print-readable.
11097
11098 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11099
11100 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11101 no family set.
11102 (nsfont_open): Handle case when entity has no family.
11103
11104 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11105
11106 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11107 element, not a list, for match case.
11108
11109 2009-07-28 Kenichi Handa <handa@m17n.org>
11110
11111 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11112 rigidly.
11113
11114 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11115 font_parse_xlfd. Check font properties more rigidly.
11116
11117 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11118
11119 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11120 bsd-common.h.
11121
11122 2009-07-27 Kenichi Handa <handa@m17n.org>
11123
11124 * xfaces.c (face_with_height): Call font_clear_prop.
11125
11126 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11127
11128 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11129
11130 * xterm.c (x_term_init): Use Qx.
11131
11132 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11133
11134 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11135 (ns_get_color): Revert 2009-07-16 change.
11136
11137 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11138
11139 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11140 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11141
11142 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11143
11144 * coding.h (decode_coding_string, encode_coding_string):
11145 Use SCHARS macro.
11146
11147 * lread.c: Rewrite 2009-07-21 changes.
11148 (load_depth): Delete.
11149 (Qload_in_progress): New variable.
11150 (load_unwind): Don't reference load_depth or load_in_progress.
11151 (Fload): Likewise; specbind Qload_in_progress instead.
11152 (init_lread): Don't initialize load_depth.
11153 (syms_of_lread): Initialize and protect Qload_in_progress.
11154
11155 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11156
11157 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11158
11159 2009-07-23 Yavor Doganov <yavor@gnu.org>
11160
11161 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11162
11163 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11164
11165 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11166 Bugs 3792, 3720, 2402.
11167 (ns_lookup_indexed_color): Check for bad index.
11168 (ns_index_color): Init unused slot to 0.
11169 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11170 Bug 3714, possibly 3082.
11171
11172 2009-07-22 Jason Rumney <jasonr@gnu.org>
11173
11174 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11175 Position IME window at cursor (Bug#2570).
11176 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11177 (globals_of_w32fns): Dynamically load functions required above.
11178
11179 * w32term.c (w32_draw_window_cursor): Send message to reposition
11180 any IME window.
11181
11182 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11183
11184 * fileio.c: Revert 2009-07-16 changes.
11185 (Vauto_save_include_big_deletions): New variable.
11186 (Fdo_auto_save): Disable auto-save only if
11187 auto-save-include-big-deletions is nil.
11188
11189 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11190
11191 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11192 the overflowed pixels into account (Bug#3879).
11193
11194 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11195
11196 * lread.c (load_depth): New variable.
11197 (Fload, load_unwind, init_lread): Set it to the load recursion
11198 depth; set load_in_progress as a simple boolean based on the
11199 current load_depth. (Bug#3892)
11200
11201 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11202
11203 * nsfont.m (ns_has_attribute): Remove.
11204 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11205
11206 2009-07-18 Juri Linkov <juri@jurta.org>
11207
11208 * process.c (Fset_process_query_on_exit_flag): Mention killing
11209 a buffer in docstring.
11210
11211 2009-07-17 Kenichi Handa <handa@m17n.org>
11212
11213 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11214
11215 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11216
11217 * nsfns.m (Fns_set_alpha): Remove function.
11218 (syms_of_nsfns): Don't defsubr it.
11219
11220 * nsterm.m (ns_get_color): Remove incompatible color formats.
11221 (ns_color_to_lisp): Generate #rrggbb color format string.
11222
11223 2009-07-16 Richard Stallman <rms@gnu.org>
11224
11225 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11226 (Fset_buffer_auto_saved): Handle save_length = -2.
11227
11228 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11229
11230 * xterm.c (Qx_gtk_map_stock): New var.
11231
11232 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11233 of calling intern each time.
11234
11235 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11236
11237 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11238 does tiling.
11239
11240 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11241
11242 2009-07-14 Kenichi Handa <handa@m17n.org>
11243
11244 * font.c (font_vconcat_entity_vectors): New function.
11245 (struct font_sort_data): New member font_driver_preference.
11246 (font_compare): Check font_driver_preference.
11247 (font_sort_entities): The format of the first argument changed.
11248 (font_delete_unmatched): Likewise.
11249 (font_list_entities): The return type changed.
11250 (font_select_entity): The format of the second argument changed.
11251 (font_find_for_lface): Adjuste for the above changes.
11252 Don't suppress the checking of C even if the repertory supports it.
11253 (Flist_fonts): Adjust for the above changes.
11254
11255 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11256 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11257 Reject a font who has adstyle property that is different from a
11258 langname derived from registry property.
11259 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11260
11261 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11262
11263 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11264 local copy of dirfilename.
11265
11266 2009-07-13 Kenichi Handa <handa@m17n.org>
11267
11268 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11269 against max_char.
11270
11271 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11272 calling XSYMBOL (sym).
11273
11274 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11275
11276 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11277 New function.
11278 (directory_files_internal) [WINDOWSNT]:
11279 Bind w32-get-true-file-attributes to either t or nil, depending whether
11280 the filesystem of the directory is fast or slow.
11281
11282 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11283 file name.
11284 (is_slow_fs): New function.
11285 (stat): Use it to determine whether to issue more system calls to
11286 get accurate file attributes, when w32-get-true-file-attributes is
11287 `local'.
11288
11289 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11290
11291 * xfns.c (Fx_select_font): Remember last font selected in
11292 x_last_font_name and use that the next time. Also try the frame
11293 parameter font-parameter as default to the font dialog.
11294
11295 2009-07-10 Kenichi Handa <handa@m17n.org>
11296
11297 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11298
11299 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11300
11301 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11302
11303 * w32.c (stat): Treat UNC file names as residing on remote
11304 drives. (Bug#3542)
11305
11306 2009-07-09 Kenichi Handa <handa@m17n.org>
11307
11308 * fontset.c (fontset_find_font): Fix previous change.
11309
11310 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
11311
11312 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11313 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11314 error flag.
11315
11316 2009-07-08 Kenichi Handa <handa@m17n.org>
11317
11318 * fontset.c (fontset_find_font): Fix the logic of handling
11319 charset_matched.
11320 (font_for_char): Delete unused var.
11321 (generate_ascii_font_name): Delete it.
11322
11323 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11324
11325 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11326 (encode_coding_sjis): Fix the code range check.
11327
11328 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
11329
11330 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11331 (Fexpand_file_name): Copy string data properly (Bug#3772).
11332
11333 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11334
11335 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11336 first MapNotify.
11337
11338 2009-07-07 Kenichi Handa <handa@m17n.org>
11339
11340 * character.h (unibyte_has_multibyte_table): Delete extern.
11341 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11342
11343 * charset.c (Fset_charset_priority): Update charset_unibyte.
11344 (syms_of_charset): Initialize charset_unibyte.
11345
11346 * character.c (unibyte_has_multibyte_table): Delete it.
11347 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11348 charset_unibyte.
11349 (multibyte_char_to_unibyte_safe): Likewise.
11350 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11351
11352 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
11353 (x_produce_glyphs): Likewise.
11354
11355 * .gdbinit (xcharset): Fix the treating $arg0.
11356
11357 2009-07-04 Eli Zaretskii <eliz@gnu.org>
11358
11359 Emulation of `getloadavg' on MS-Windows.
11360 * w32.c: Include float.h.
11361 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11362 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11363 (get_native_system_info, get_system_times): New functions.
11364 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11365 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11366 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11367 g_b_init_get_system_times, and num_of_processors.
11368
11369 2009-07-03 Jason Rumney <jasonr@gnu.org>
11370
11371 * w32term.c (w32_initialize): Use standard types.
11372
11373 2009-07-03 Eli Zaretskii <eliz@gnu.org>
11374
11375 * dired.c (Ffile_attributes): Decode user and group names by the
11376 locale's encoding. (Bug#3443)
11377
11378 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11379
11380 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11381 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11382
11383 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11384
11385 * term.c (init_tty): Remove spurious #ifdef.
11386
11387 * m/mips.h: Mention this file is also used for netbsd.
11388 * m/pmax.h: Remove file.
11389
11390 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11391
11392 * xterm.h (struct x_display_info): Add invisible_cursor.
11393 (struct x_output): Add current_cursor.
11394
11395 * xterm.c (XTtoggle_invisible_pointer): New function.
11396 (x_define_frame_cursor): Don't define cursor if invisible or the
11397 same as before. Set current_cursor.
11398 (x_create_terminal): Set toggle_invisible_pointer_hook.
11399
11400 * xfns.c (make_invisible_cursor): New function.
11401 (x_set_mouse_color): Call make_invisible_cursor.
11402 Set current_cursor.
11403 (x_window): Set current_cursor.
11404
11405 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11406
11407 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11408 inserting a character.
11409 (read_avail_input): Call frame_make_pointer_visible.
11410
11411 * frame.c (Vmake_pointer_invisible): New variable.
11412 (frame_make_pointer_invisible, frame_make_pointer_visible):
11413 New functions.
11414 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11415
11416 * frame.h: Declare frame_make_pointer_invisible and
11417 frame_make_pointer_visible.
11418 (struct frame): Add pointer_invisible.
11419
11420 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11421
11422 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11423 frame isn't visible.
11424 (xg_frame_resized): If width/height is -1, get size of window
11425 from X server.
11426
11427 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11428 for MapNotify.
11429
11430 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
11431 here or call change_frame_size. Just call flush_and_sync.
11432 (flush_and_sync): Reintroduce.
11433
11434 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
11435
11436 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
11437
11438 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11439 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11440
11441 * frame.h: Declare Qsticky.
11442
11443 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11444
11445 * nsfns.m (ns_frame_parm_handlers): Ditto.
11446
11447 * frame.c: Declare Qsticky.
11448 (frame_parms): Add sticky.
11449
11450 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11451
11452 * xterm.h: Declare x_set_sticky.
11453
11454 * xterm.c (x_set_sticky): New function.
11455
11456 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11457 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11458 xg_tool_bar_proxy_help_callback.
11459
11460 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11461
11462 * frame.c: Qmaximized is new.
11463 (x_set_frame_parameters): Do not handle fullscreen specially.
11464 Only set width and height if explicitly set.
11465 (x_set_fullscreen): Handle Qmaximized.
11466 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11467 (syms_of_frame): Initialize Qmaximized.
11468
11469 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11470 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
11471
11472 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
11473 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11474 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
11475 set gravity to NorthWestGravity when USE_GTK.
11476 (set_wm_state): New function.
11477 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
11478 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11479 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
11480 or the case when no window manager is running. That means remove calls
11481 to x_real_positions and x_fullscreen_adjust.
11482
11483 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11484 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11485 flush_and_sync.
11486 (xg_height_changed): New function.
11487 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
11488 and gtk_window_set_policy. Set frame gravity after parsing the
11489 geometry string.
11490 (xg_update_frame_menubar, free_frame_menubar)
11491 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11492 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11493 Remove calls to xg_frame_set_char_size.
11494
11495 2009-07-01 Kenichi Handa <handa@m17n.org>
11496
11497 * keyboard.c (decode_keyboard_code): New function.
11498 (tty_read_avail_input): Decode the input bytes if necessary.
11499
11500 * coding.c (setup_coding_system):
11501 Initialize coding->carryover_bytes to 0.
11502 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11503 use Qno_conversion.
11504
11505 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11506
11507 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11508
11509 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
11510
11511 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
11512
11513 2009-06-30 Jason Rumney <jasonr@gnu.org>
11514
11515 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11516 is already loaded.
11517 Set user model ID if supported (bug#1849).
11518
11519 2009-06-29 Jim Meyering <meyering@redhat.com>
11520
11521 Remove useless if-before-xfree test.
11522 * nsfont.m (nsfont_close): Remove useless test.
11523 * term.c (delete_tty): Likewise.
11524 * w32.c (system_process_attributes): Likewise.
11525 * w32font.c (w32font_close): Likewise.
11526 * xfaces.c (x_free_gc): Likewise.
11527 * xselect.c (buffer): Likewise.
11528
11529 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11530
11531 * process.c (send_process): Keep decoded string in a local
11532 variable and protect it from GC. (Bug#3521)
11533
11534 2009-06-28 Eli Zaretskii <eliz@gnu.org>
11535
11536 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11537 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11538
11539 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
11540
11541 * xdisp.c (start_display, handle_face_prop)
11542 (move_it_vertically_backward, cursor_row_fully_visible_p)
11543 (redisplay_window, try_window_id, produce_image_glyph):
11544 Delete some #ifdef-ed out code chunks that are now obsolete.
11545
11546 * xterm.c (x_update_window_begin, x_new_focus_frame)
11547 (x_scroll_bar_handle_click, handle_one_xevent)
11548 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11549 (x_make_frame_visible, x_make_frame_invisible)
11550 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11551 code chunks that are now obsolete.
11552
11553 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
11554
11555 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11556 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11557 for hours, when optimzation is enabled.
11558 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11559 (xd_read_message): Make them static.
11560
11561 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11562
11563 * term.c (turn_on_face): Allow simultaneously bold and dim
11564 terminal faces (Bug#3530).
11565
11566 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
11567
11568 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11569
11570 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11571 truncation glyphs (Bug#3686).
11572
11573 2009-06-27 Glenn Morris <rgm@gnu.org>
11574
11575 * m/pmax.h: Restore file, with only netbsd portions.
11576
11577 2009-06-26 David Reitter <david.reitter@gmail.com>
11578
11579 * nsterm.m (keydown): Avoid infinite loop.
11580
11581 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11582
11583 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11584 the arg FORCE_SYMBOL.
11585
11586 2009-06-25 Kenichi Handa <handa@m17n.org>
11587
11588 * fontset.c (fontset_find_font): When a usable rfont_def is found
11589 in a fallback font-group, make it the first element of the group.
11590
11591 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
11592
11593 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11594
11595 2009-06-24 Kenichi Handa <handa@m17n.org>
11596
11597 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11598 set for C.
11599 (fontset_font): Record the availability of a font for C both in
11600 the realized fontsets of the current one and the default one.
11601
11602 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11603
11604 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11605 conditional, it is always defined on AIX.
11606
11607 2009-06-23 Miles Bader <miles@gnu.org>
11608
11609 * window.c (Vrecenter_redisplay): New variable.
11610 (syms_of_window): Initialize it.
11611 (Qtty): New extern declaration.
11612 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11613
11614 2009-06-23 Jim Meyering <meyering@redhat.com>
11615
11616 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11617 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
11618 pointer dereferences are guaranteed to be valid.
11619
11620 2009-06-23 Kenichi Handa <handa@m17n.org>
11621
11622 * emacs.c (main): Call init_font ().
11623
11624 * font.h (Vfont_log): Extern it.
11625 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11626
11627 * font.c (font_sort_entities, font_list_entities)
11628 (font_matching_entity, font_open_entity)
11629 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11630 (Vfont_log): Delete static.
11631 (font_log_env_checked): Delete this variable.
11632 (font_add_log): Don't check font_log_env_checked.
11633 (font_deferred_log): Check Vfont_log.
11634 (init_font): New function.
11635
11636 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11637
11638 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11639
11640 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11641
11642 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11643
11644 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11645 (face_for_char): Don't call font_deferred_log here.
11646 (font_for_char): Likewise.
11647
11648 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
11649
11650 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11651 rather than its background_width for drawing the overline and
11652 underline (Bug#489).
11653
11654 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11655 rather than its background_width for drawing the overline and
11656 underline (Bug#489).
11657 (xg_default_icon_file): New variable.
11658 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11659 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
11660
11661 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11662 (load_overlay_strings): Remove externs.
11663 (fast_find_position): Function deleted.
11664 (mouse_face_from_buffer_pos): New function, based on
11665 fast_find_position. Correctly handle before-strings,
11666 display-strings, and after-strings (Bug#1220).
11667 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11668
11669 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11670
11671 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
11672 (move_it_in_display_line_to, move_it_in_display_line_to)
11673 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11674
11675 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11676
11677 * Branch for 23.1.
11678
11679 2009-06-21 Jason Rumney <jasonr@gnu.org>
11680
11681 * w32term.c (keyboard_codepage): New static variable.
11682 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11683 (w32_read_socket) [WM_CHAR]: Use it to decode character
11684 input (bug#3237).
11685 (w32_initialize): Initialize it.
11686 (codepage_for_locale): New function.
11687
11688 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
11689
11690 * process.c (status_message): Pass Faset index argument as a lisp
11691 object, so as to work with USE_LISP_UNION_TYPE.
11692
11693 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11694
11695 * coding.c (Ffind_coding_systems_region_internal):
11696 Cache checked characters.
11697
11698 2009-06-18 Kenichi Handa <handa@m17n.org>
11699
11700 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
11701
11702 2009-06-18 Andreas Schwab <aschwab@redhat.com>
11703
11704 * xdisp.c (redisplay_internal): Check that the frame is still
11705 live after redisplay of its windows.
11706 (redisplay_windows): Check that the window is still live.
11707
11708 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11709
11710 * coding.c (detect_coding_utf_16): Fix previous change.
11711
11712 2009-06-16 Kenichi Handa <handa@m17n.org>
11713
11714 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11715 UTF-16 by checking the dispersion of Eth and Oth bytes.
11716
11717 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11718
11719 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11720
11721 2009-06-15 Kenichi Handa <handa@m17n.org>
11722
11723 * process.c (status_message): Fix previous change. Be sure to
11724 decode a localized string.
11725
11726 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11727
11728 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11729 add comment explaining why.
11730
11731 2009-06-14 Sidney Markowitz <sidney@sidney.com>
11732
11733 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
11734
11735 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11736
11737 * nsfont.m (ns_attribute_value): Remove.
11738 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11739 (ns_has_attribute): Shrink the normal range.
11740 (ns_findfonts): Don't worry about requested spec in determining
11741 need for synthItal.
11742 (ns_get_covering_families): Retain scriptToFamilies.
11743
11744 2009-06-14 Seiji Zenitani <zenitani@mac.com>
11745
11746 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11747
11748 2009-06-11 Kenichi Handa <handa@m17n.org>
11749
11750 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11751 overhang for the static composition case.
11752
11753 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11754
11755 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11756 overhang for the automatic composition case.
11757
11758 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11759 composition case.
11760
11761 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
11762
11763 * xdisp.c (get_next_display_element): When handling wrap-prefix
11764 and line-prefix, treat \n as a control character (bug#3502).
11765
11766 2009-06-10 Kenichi Handa <handa@m17n.org>
11767
11768 * font.c (font_parse_family_registry): Fix for one-char foundry.
11769 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11770
11771 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11772
11773 * process.c (status_message): Fix handling of multibyte signal
11774 string (Bug#3499).
11775
11776 2009-06-09 Jim Meyering <meyering@redhat.com>
11777
11778 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11779 color name is missing.
11780
11781 2009-06-09 Kenichi Handa <handa@m17n.org>
11782
11783 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11784 FROM-CODE and TO-CODE are codepoints of CHARSET.
11785
11786 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11787
11788 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11789
11790 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11791
11792 Changes to support :script/:lang/:otf in NS font driver.
11793 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11794 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11795 indicate not part of font driver interface, and change callers.
11796 (ns_get_family): Remove pointless null check.
11797 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11798 ns_spec_to_descriptor, ns_descriptor_to_entity.
11799 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11800 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11801 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11802 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11803 (ns_get_req_script, ns_accumulate_script_ranges)
11804 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11805 New functions.
11806 (nsfont_list, nsfont_match): Use ns_findfonts.
11807 (nsfont_open): Use font descriptor instead of traits.
11808 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11809 (dump_glyphstring): Rename to ns_dump_glyphstring.
11810
11811 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11812
11813 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11814
11815 * fontset.c (fontset_from_font): Remove NS-specific code.
11816
11817 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
11818
11819 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11820 nonactive windows.
11821
11822 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
11823
11824 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
11825
11826 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11827
11828 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11829
11830 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
11831
11832 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11833 account for the overflowing of newlines into the last glyph on the
11834 display line (Bug#3482).
11835
11836 2009-06-05 David Reitter <david.reitter@gmail.com>
11837
11838 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11839 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
11840 Fns_selection_exists_p, Fns_selection_owner_p.
11841
11842 2009-06-03 Jason Rumney <jasonr@gnu.org>
11843
11844 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11845 available. (Bug#3379)
11846
11847 2009-05-29 Kenichi Handa <handa@m17n.org>
11848
11849 * coding.c (get_translation_table):
11850 Check Venable_character_translation.
11851
11852 2009-05-26 David Reitter <david.reitter@gmail.com>
11853
11854 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11855 (x_make_frame_visible): Move frame to front rather than calling
11856 ns_raise_frame().
11857 (keyDown:): Do not swallow events that aren't re-sent if frame
11858 isn't key window.
11859 (drawRect:): Do not set visibility/iconified flags because
11860 drawRect may be called by NSView even if the frame is hidden.
11861
11862 * nsfns.m (Fx_create_frame): Follow other ports in
11863 determining visibility; default to t. Ensure async_visible is set.
11864
11865 2009-05-23 Eli Zaretskii <eliz@gnu.org>
11866
11867 * dired.c (Ffile_attributes): Doc fix.
11868
11869 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
11870
11871 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11872
11873 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11874
11875 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11876 and xfont_scratch_props.
11877 (syms_of_xfont): Do it here instead.
11878 (xfont_find_ccl_program): Delete, unused.
11879 (xfont_open): Delete unused var `i'.
11880
11881 2009-05-21 Kenichi Handa <handa@m17n.org>
11882
11883 * fontset.c (Qlatin): Don't make it static.
11884
11885 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11886 New functions.
11887 (xfont_scripts_cache, xfont_scratch_props): New variables.
11888 (Qlatin, Vscalable_fonts_allowed): Extern it.
11889 (xfont_list_pattern): Argument changed. Callers changed.
11890 Check Vscalable_fonts_allowed. Check the support of a script.
11891 (xfont_list): Don't reject a font spec with :script property.
11892 (xfont_has_char): Fix setting of encoding.
11893 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11894 xfont_scratch_props.
11895
11896 2009-05-19 Kenichi Handa <handa@m17n.org>
11897
11898 * font.c (font_sort_entities): Rename from font_sort_entites.
11899 Callers changed.
11900
11901 2009-05-18 Kenichi Handa <handa@m17n.org>
11902
11903 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11904
11905 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11906
11907 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11908 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11909
11910 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11911
11912 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11913 (x_delete_terminal): Dissociate resource database from display and
11914 then call XrmDestroyDatabase before closing display.
11915
11916 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11917
11918 * nsterm.m (ns_read_socket): Remove unused variable.
11919 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11920 whether selected frame is viable before raising it (based on patch
11921 by David Reitter), and improve commentary.
11922 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
11923
11924 2009-05-15 Kenichi Handa <handa@m17n.org>
11925
11926 * font.c (Ffont_spec): Check arguments.
11927
11928 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
11929
11930 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11931 weight when testing attributes (Bug#3282).
11932
11933 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11934
11935 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11936 what we expect to get in the next ConfigureNotify event.
11937
11938 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11939 before Xft one (Bug#1696).
11940
11941 2009-05-07 David Reitter <david.reitter@gmail.com>
11942
11943 * nsfns.m (Fx_display_planes): Compute bitplanes using
11944 NSBitsPerPixelFromDepth (Bug#3207).
11945
11946 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
11947
11948 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11949
11950 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
11951
11952 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11953
11954 2009-05-07 David Reitter <david.reitter@gmail.com>
11955
11956 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11957 Respect mouse face background.
11958
11959 2009-05-07 David Reitter <david.reitter@gmail.com>
11960
11961 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11962 Mouse movement/highlight: bracket drawing operations
11963 in ns_update_begin and ns_update_end.
11964
11965 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11966
11967 * nsfns.m (ns_get_screen): Rewrite.
11968 Don't presume selected-frame is of type `ns'.
11969
11970 * font.c (font_update_drivers): Sanity fallback to avoid disabling
11971 all drivers.
11972
11973 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11974
11975 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11976
11977 * keyboard.h (add_user_signal): Fix typo in extern.
11978
11979 * lisp.h (add_user_signal): Remove extern.
11980
11981 * unexelf.c (unexec): Consider a section to precede the .bss section
11982 if its addresses overlap that of .bss.
11983 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
11984 instead of dumping process.
11985
11986 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11987
11988 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
11989
11990 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
11991
11992 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
11993
11994 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
11995
11996 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
11997 any statements.
11998
11999 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12000
12001 * process.c (read_process_output): Make sure the current buffer is
12002 always restored.
12003
12004 * coding.c (record_conversion_result): Don't modify
12005 Vlast_code_conversion_error for successful result.
12006 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12007
12008 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12009
12010 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
12011 (load_charset_map): Remove unnecessary code.
12012
12013 2009-04-30 David Reitter <david.reitter@gmail.com>
12014
12015 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12016 through f24.
12017
12018 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12019
12020 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12021
12022 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12023 face_at_buffer_position.
12024 (face_before_or_after_it_pos, get_next_display_element)
12025 (note_mouse_highlight): Update face_at_buffer_position call.
12026
12027 * term.c (term_mouse_highlight):
12028 * msdos.c (IT_note_mouse_highlight):
12029 * fontset.c (Finternal_char_font):
12030 * font.c (font_at, font_range): Update face_at_buffer_position call.
12031
12032 * dispextern.h (face_at_buffer_position): Update prototype.
12033
12034 2009-04-30 Kenichi Handa <handa@m17n.org>
12035
12036 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12037
12038 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12039
12040 * callproc.c (Fcall_process): Fix GC protection. Make sure
12041 current buffer is always restored.
12042
12043 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12044
12045 * atimer.c (init_atimer): Also clear stopped_atimers.
12046
12047 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12048
12049 * process.c (create_process): Clean up merger residues of
12050 2008-07-17 change.
12051
12052 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12053
12054 * lread.c (Vread_circle): New variable.
12055 (read1): Disable recursive read if Vread_circle is nil.
12056
12057 2009-04-29 Kenichi Handa <handa@m17n.org>
12058
12059 * fontset.h (set_default_ascii_font): Delete extern.
12060
12061 * fontset.c (set_default_ascii_font): Delete this unused function.
12062
12063 * frame.c (x_set_font): When ARG is a font-object, check if the
12064 font-object matches with the ASCII font-spec of the frame's
12065 fontset. If not, create a new fontset for the frame. (Bug #3075)
12066
12067 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12068
12069 * fns.c (Flocale_info): Protect vector from GC during decoding.
12070
12071 * process.c (Fstart_process): Protect argv strings from GC during
12072 encoding.
12073
12074 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12075
12076 * sysdep.c: Include <ctype.h>.
12077
12078 2009-04-27 David Reitter <david.reitter@gmail.com>
12079
12080 * nsfont.m (nsfont_open): Remove unused variable shrink.
12081 Remove commented-out code.
12082
12083 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12084
12085 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12086
12087 2009-04-25 Jason Rumney <jasonr@gnu.org>
12088
12089 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12090
12091 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12092
12093 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12094 Swap bytes in short integer if fringe bitmap width > 8.
12095
12096 2009-04-23 Kenichi Handa <handa@m17n.org>
12097
12098 * xfaces.c (Fx_list_fonts): If a font size is specified in
12099 PATTERN, set it in returned scalable fonts.
12100
12101 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12102
12103 * keyboard.c (Fset_input_meta_mode): Doc fix.
12104
12105 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12106
12107 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12108
12109 * coding.c (Fterminal_coding_system): Doc fix.
12110
12111 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12112 (Fx_display_pixel_height, Fx_display_planes)
12113 (Fx_display_color_cells, Fx_server_max_request_size)
12114 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12115 (Fx_display_mm_height, Fx_display_mm_width)
12116 (Fx_display_backing_store, Fx_display_visual_class)
12117 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12118 Doc fixes, replacing "terminal id" with "terminal object".
12119 (check_x_display_info): Handle terminal objects instead of
12120 terminal ids.
12121
12122 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12123 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12124 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12125 Doc fixes, replacing "terminal id" with "terminal object".
12126
12127 2009-04-21 Kenichi Handa <handa@m17n.org>
12128
12129 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12130 (font_score): Check AVGWIDTH too.
12131
12132 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12133 worst case.
12134 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12135 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12136
12137 2009-04-19 Jason Rumney <jasonr@gnu.org>
12138
12139 The following changes fix Bug#3005 for wide glyphs on each platform,
12140 without reintroducing Bug#1258 for stretch glyphs.
12141
12142 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12143 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12144 get_phys_cursor_geometry.
12145
12146 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12147 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12148 using get_phys_cursor_geometry.
12149
12150 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12151 correctly calculated.
12152
12153 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12154
12155 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12156 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12157 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12158 is deprecated.
12159
12160 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12161
12162 * font.c (font_put_frame_data): Use xfree instead of free.
12163
12164 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12165
12166 * w32font.c (Qja, Qko): Remove declarations.
12167 (syms_of_w32font): Don't DEFSYM them.
12168
12169 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12170
12171 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12172
12173 * font.h (Qja, Qko): Extern them.
12174
12175 * ftfont.c (Qja, Qko): Remove declarations.
12176
12177 * xfont.c (Qja, Qko): Remove declarations.
12178
12179 2009-04-17 Kenichi Handa <handa@m17n.org>
12180
12181 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12182 string from a vector to handle Latin-1 characters correctly.
12183
12184 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12185 entity even if the cache hits.
12186
12187 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12188
12189 * search.c (boyer_moore): Use zero as marker value for a possible
12190 match instead of depending on overflow behavior. (Bug#2844)
12191
12192 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12193 * lisp.h: Adjust prototypes.
12194
12195 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12196
12197 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12198 change (Bug#3003).
12199
12200 2009-04-16 Kenichi Handa <handa@m17n.org>
12201
12202 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12203
12204 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12205 adstyle.
12206
12207 * ftfont.c (Qja, Qko): Don't make them static.
12208 (enum ftfont_cache_for): New enum.
12209 (fc_charset_table): Undo the previous change.
12210 (ftfont_get_latin1_charset): Delete it.
12211 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12212 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12213 non-scarable font, try to get AVERAGE_WIDTH.
12214 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12215 Change ft_face_cache from a list of a hash-table. Don't check
12216 `ja' and `ko' adstyle here.
12217 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12218 FTFONT_CACHE_FOR_CHARET.
12219 (ftfont_get_charset): Undo the previous change.
12220 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12221 (ftfont_close): Likewise.
12222 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12223
12224 * font.c (font_sort_entites): Change the meaning of the arg
12225 BEST-ONLY. Don't optimize for VEC of lenght 1.
12226 (font_select_entity): Just return the value of font_sort_entites.
12227
12228 * xfaces.c (merge_face_vectors): Reflect font properties in
12229 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12230 font_clear_prop if a face attribute doesn't change.
12231
12232 * charset.h (charset_ksc5601): Extern it.
12233
12234 * charset.c (charset_ksc5601): New variable.
12235 (Fdefine_charset_internal): Set charset_ksc5601.
12236 (init_charset_once): Initialize charset_ksc5601 to -1.
12237
12238 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12239
12240 * fileio.c (history_delete_duplicates): Remove unused declaration.
12241
12242 * callint.c (history_delete_duplicates): New declaration.
12243 (Fcall_interactively): Remove command history duplicates when
12244 history_delete_duplicates is true.
12245
12246 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12247
12248 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12249
12250 2009-04-14 Kenichi Handa <handa@m17n.org>
12251
12252 * font.c (Ffont_info): Fix docstring. Fix the second element of
12253 the returned value (bug#2949).
12254
12255 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12256
12257 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12258
12259 2009-04-14 Kenichi Handa <handa@m17n.org>
12260
12261 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12262 encoding charset is ascii_compatible.
12263
12264 * charset.c (Fdefine_charset_internal): Make charset
12265 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12266 code_offset is 0, and covers all ASCII characters.
12267
12268 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12271 (ns_string_to_pasteboard_internal):
12272 * nsmenu.m (process_dialog):
12273 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12274 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12275 * lisp.h (Fx_load_color_file): Declare.
12276
12277 2009-04-13 Kenichi Handa <handa@m17n.org>
12278
12279 * font.c (font_delete_unmatched): Preserve the order of list elements.
12280 (font_select_entity): Suppress the code to optimize for the same
12281 kind of fonts.
12282 (font_load_for_lface): Get a font that supports at least ASCII
12283 characters.
12284
12285 * ftfont.c (Qja, Qko): New variables.
12286 (fc_charset_table): Delete uniquifier data for iso8859-1.
12287 (ftfont_get_latin1_charset): New function.
12288 (get_adstyle_property): New function.
12289 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12290 bitmap fonts.
12291 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12292 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12293 `ko' or `ja'.
12294 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12295 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12296 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12297 property.
12298 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12299 (syms_of_ftfont): DEFSYM Qja and Qko.
12300
12301 2009-04-09 Kenichi Handa <handa@m17n.org>
12302
12303 * charset.c (map_charset_chars): For a charset of `superset'
12304 method, fix calculation of code range.
12305
12306 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12307 from the list of extra properties.
12308 (font_clear_prop): Be sure to delete `:name' font property.
12309
12310 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12311
12312 * dispnew.c (redraw_overlapping_rows): Fix detection of
12313 overlapping for topmost and bottommost rows.
12314
12315 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
12316
12317 2009-04-06 Jason Rumney <jasonr@gnu.org>
12318
12319 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12320
12321 2009-04-06 Kenichi Handa <handa@m17n.org>
12322
12323 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12324
12325 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12326
12327 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12328
12329 * ftfont.c (ftfont_open): Fix checking of the return value of
12330 FT_Load_Char. Fix setting font->underline_thickness.
12331
12332 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
12333
12334 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12335 (Fterminal_parameters, Fterminal_parameter)
12336 (Fset_terminal_parameter): In doc string, refer to terminal
12337 objects rather than terminal ids.
12338
12339 2009-04-04 Eli Zaretskii <eliz@gnu.org>
12340
12341 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12342 ret_lim_data. (Bug#2867)
12343
12344 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12347 so they don't get wider than the window, matching 2006-01-23
12348 change to the partner function in xdisp.c (Bug#2800).
12349
12350 2009-04-03 Kenichi Handa <handa@m17n.org>
12351
12352 * print.c (print_object): Make each lowest sub_char_table start a
12353 new line (Bug#2866).
12354
12355 2009-04-02 Kenichi Handa <handa@m17n.org>
12356
12357 * fontset.c (fontset_font): Record no-font when a fontset
12358 explicitly tells not to try another font-specs.
12359
12360 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12361
12362 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12363
12364 2009-03-30 Kenichi Handa <handa@m17n.org>
12365
12366 * fontset.c (fontset_from_font): Specify only registry in a
12367 font-spec for all characters supported by that registry.
12368
12369 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12370 even if HAVE_M17N_FLT is not defined.
12371
12372 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12373
12374 * ftfont.c: Conditionalize prototyping and use of
12375 ftfont_variation_glyphs.
12376
12377 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12378
12379 * frame.c (delete_frame): Work around compiler bug.
12380
12381 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12382 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12383 Some more EMACS_INT.
12384 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12385
12386 * xdisp.c (dump_glyph): Fix typo.
12387
12388 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12389 (adjust_markers_gap_motion, adjust_markers_for_delete)
12390 (adjust_markers_for_insert, adjust_point)
12391 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12392 (make_gap, copy_text, count_size_as_multibyte, insert)
12393 (insert_and_inherit, insert_before_markers)
12394 (insert_before_markers_and_inherit, insert_1)
12395 (count_combining_before, count_combining_after, insert_1_both)
12396 (insert_from_string, insert_from_string_before_markers)
12397 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12398 (insert_from_buffer_1, adjust_after_replace)
12399 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12400 (replace_range_2, del_range, del_range_1, del_range_byte)
12401 (del_range_both, del_range_2, modify_region)
12402 (prepare_to_modify_buffer, signal_before_change)
12403 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12404 for buffer positions and sizes.
12405 * lisp.h: Adjust prototypes accordingly.
12406
12407 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12408 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12409 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12410
12411 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12412
12413 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12414
12415 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12416 lines and columns so we keep the same pixel height and width.
12417
12418 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12419 the property _NET_WM_STATE has changed.
12420 (x_handle_net_wm_state): New function to update frame parameter
12421 fullscreen.
12422 (x_term_init): Initialize atoms for _NET_WM_STATE.
12423
12424 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12425
12426 2009-03-27 Kevin Ryde <user42@zip.com.au>
12427
12428 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12429 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12430 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12431 (Fgpm_mouse_stop): Pass that new parameter.
12432 * termhooks.h (close_gpm): Adjust prototype.
12433
12434 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12435
12436 * lisp.h (Fx_focus_frame): Declare.
12437
12438 * callint.c (Fcall_interactively): For '^' just delegate the work to
12439 handle-shift-selection.
12440 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12441
12442 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
12443
12444 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12445
12446 * data.c (Qinteractive_form): New variable.
12447 (Finteractive_form): Use it.
12448
12449 * eval.c (Fcommandp): Use Qinteractive_form.
12450
12451 2009-03-24 Jason Rumney <jasonr@gnu.org>
12452
12453 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12454 Calculate total size precisely. Decode environment variables
12455 before substituting. (Bug#38)
12456
12457 2009-03-24 Kenichi Handa <handa@m17n.org>
12458
12459 * font.c (find_font_encoding): Return Qnil for unsupported
12460 encoding (Bug#2722).
12461
12462 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12463
12464 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12465 that gdpy is set.
12466
12467 2009-03-22 Alan Mackenzie <acm@muc.de>
12468
12469 * callint.c (Finteractive): Clarify the doc string - even
12470 promptless elements need \n separators.
12471
12472 2009-03-22 Jason Rumney <jasonr@gnu.org>
12473
12474 * w32term.c (syms_of_w32term): Doc fix for
12475 x-use-underline-position-properties.
12476
12477 2009-03-21 Eli Zaretskii <eliz@gnu.org>
12478
12479 * w32.c (getpwuid): Change argument type to unsigned.
12480 (struct w32_id): Change type of `rid' member to unsigned.
12481 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12482 argument ID to unsigned. All callers changed.
12483 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12484
12485 2009-03-20 Eli Zaretskii <eliz@gnu.org>
12486
12487 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12488 negative, produce a float value.
12489
12490 * dired.c (make_uid, make_gid): New functions.
12491 (Ffile_attributes): Use them to avoid negative UID and GID.
12492
12493 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
12494
12495 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12496 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12497 Fix typos in docstrings.
12498
12499 2009-03-19 Kenichi Handa <handa@m17n.org>
12500
12501 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
12502 changed, use font_load_for_lface to get a new font object.
12503 Call free_realized_fontset after handling ASCII font change.
12504
12505 * frame.c (x_set_font): Handle the case that ARG is a cons.
12506
12507 2009-03-19 Glenn Morris <rgm@gnu.org>
12508
12509 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12510
12511 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
12512
12513 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12514
12515 2009-03-19 Kenichi Handa <handa@m17n.org>
12516
12517 * charset.c (load_charset_map_from_file): When a mapfile can't be
12518 loaded, signal an error.
12519
12520 2009-03-18 Eli Zaretskii <eliz@gnu.org>
12521
12522 * dired.c (Ffile_attributes): Make sure UID and GID are always
12523 positive, even if the value is too large for a positive EMACS_INT.
12524 Doc fix.
12525
12526 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12527
12528 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12529
12530 * xmenu.c (xdialog_show): Move Fredisplay call ...
12531 (Fx_popup_dialog): ... here.
12532
12533 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12534
12535 * dired.c (file_name_completion): Disable the first optimization just
12536 installed, since it is not implemented correctly.
12537
12538 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12539
12540 * dired.c (file_name_completion): Check completion-ignored-extensions
12541 only if the entry can affect bestmatch.
12542 Stop the search early, as Ftry_completion already does.
12543
12544 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
12545
12546 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
12547
12548 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
12549
12550 * keyboard.c (parse_menu_item): Don't display remappings as menu
12551 equivalent bindings (Bug#788).
12552
12553 2009-03-15 Jason Rumney <jasonr@gnu.org>
12554
12555 * w32term.h (WM_EMACS_PAINT): New message.
12556 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12557 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12558 before passing to lisp thread. (Bug#950)
12559
12560 2009-03-14 David Reitter <david.reitter@gmail.com>
12561
12562 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12563 variable as it was never reset.
12564 (ns_term_init): Remove initialization of Lisp-settable defaults
12565 and ns_expand_space.
12566 (-setPanelFromDefaultValues): Remove ns_expand_space.
12567 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12568 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
12569 i.e. no additional spacing, similar to Carbon port.
12570
12571 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12572 * nsfns.m (ns-popup-prefs-panel): Remove.
12573
12574 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12575
12576 * sound.c (alsa_configure): Remove call to deprecated
12577 snd_pcm_sw_params_set_xfer_align.
12578
12579 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
12580
12581 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12582 after clicking in a detached tool bar.
12583 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12584
12585 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12586
12587 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12588 int/Lisp_Object mixup).
12589
12590 2009-03-13 Kenichi Handa <handa@m17n.org>
12591
12592 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
12593 Handle NAME nil and t correctly. Callers changed.
12594 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12595 (set_fontset_font): Change ARG to a vector. Handle range_list in
12596 ARG correctly.
12597 (Fset_fontset_font): Fix the case that TARGET is both a script
12598 name and charset name. Adjust the arg to set_fontset_font for
12599 the above change.
12600 (fontset_from_font): Fix previous change.
12601 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
12602 entry. If FONTSET is the default fontset, don't set the extra
12603 slot of the returning char-table.
12604
12605 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
12606
12607 * nsfns.m (Fx_close_connection): Doc fix.
12608 (Fns_do_applescript): Reflow docstring.
12609 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12610 (Fx_display_pixel_width, Fx_display_pixel_height)
12611 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12612 Fix typos in docstrings.
12613 (Fns_set_alpha): Fix typos in error messages.
12614
12615 2009-03-12 David Reitter <david.reitter@gmail.com>
12616
12617 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
12618 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12619 were used for such events.
12620
12621 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12622 (toggleToolbar, performDragOperation, runHelp): Use it.
12623
12624 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
12625 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12626
12627 2009-03-11 Kenichi Handa <handa@m17n.org>
12628
12629 * font.h (font_open_by_spec): Extern it.
12630
12631 * font.c (font_open_by_spec): New function.
12632 (font_open_by_name): Use font_open_by_spec.
12633
12634 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12635 fontset of the frame.
12636
12637 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12638 modify the default font of frames that use this fontset.
12639 (num_auto_fontsets): New variable.
12640 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12641 name. Be sure to set FONTSET_ASCII to the correct font name.
12642 (update_auto_fontset_alist): New function.
12643
12644 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
12645
12646 * makefile.w32-in: Update dependencies.
12647
12648 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12649
12650 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12651
12652 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12653
12654 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12655
12656 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
12657
12658 * lread.c (Feval_buffer): Doc fix.
12659
12660 2009-03-09 Kenichi Handa <handa@m17n.org>
12661
12662 * charset.c (Qfile_name_handler_alist): Extern it.
12663 (load_charset_map_from_file): Temporarily bind
12664 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12665
12666 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
12667
12668 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12669 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
12670
12671 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12672
12673 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12674 (x_set_window_size): Change back to calculated method of setting
12675 toolbar height under Cocoa. (Bug#2546)
12676 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12677 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12678
12679 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12680
12681 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12682 accelerator in parens under GNUstep.
12683
12684 2009-03-06 Kenichi Handa <handa@m17n.org>
12685
12686 These changes are to detect incorrect composition sequence without
12687 looking ahead the source. (Bug#2370)
12688
12689 * coding.h: Include "composite.h".
12690 (enum compisition_state): New enum.
12691 (struct compisition_status): New struct.
12692 (struct iso_2022_spec): New member cmp_status.
12693 (struct emacs_mule_spec): New struct.
12694 (struct coding_system): New members ctext_extended_segment_len and
12695 embedded_utf_8. Change the union member
12696 spec.emacs_mule_full_support to spec.emacs_mule.
12697
12698 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12699 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
12700 (MAX_ANNOTATION_LENGTH): Define to 5.
12701 (ADD_COMPOSITION_DATA): New arg nbytes.
12702 (emacs_mule_char): New arg cmp_status.
12703 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12704 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12705 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12706 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12707 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12708 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12709 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12710 (EMACS_MULE_COMPOSITION_END): New macro.
12711 (emacs_mule_finish_composition): New function.
12712 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12713 (decode_coding_emacs_mule): Avoid long looking ahead while
12714 handling composition.
12715 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12716 (ENCODE_COMPOSITION_RULE): New macro.
12717 (finish_composition): New function.
12718 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12719 (DECODE_COMPOSITION_START): New implementation.
12720 (DECODE_COMPOSITION_END): Likewise.
12721 (STORE_COMPOSITION_RULE): New macro.
12722 (decode_coding_iso_2022): Avoid long looking ahead while handling
12723 composition, CTEXT extended segment, and embedded UTF-8.
12724 (setup_coding_system): For a coding of type iso-2022, reset
12725 CODING_ISO_EXTSEGMENT_LEN (coding) and
12726 CODING_ISO_EMBEDDED_UTF_8 (coding).
12727 (get_translation): Delete arguments last_block, from_nchars,
12728 to_nchars. Callers changed.
12729 (produce_chars): Don't modify charbuf. Adjusted for the change of
12730 get_translation.
12731 (produce_composition): Adjust for the new annotation sequence.
12732 (handle_composition_annotation): Likewise.
12733 (consume_chars): Adjust for the change of get_translation.
12734
12735 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12736
12737 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
12738
12739 2009-03-05 Kenichi Handa <handa@m17n.org>
12740
12741 * font.c (font_select_entity): New function.
12742 (font_find_for_lface): Use font_select_entity to select a font.
12743
12744 * fontset.c (fontset_find_font): If a font found without
12745 restricting to the characters C doesn't support C, try to find a
12746 font with C restriction.
12747
12748 2009-03-04 Nikolaj Schumacher <me@nschum.de>
12749
12750 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
12751
12752 2009-03-04 Jason Rumney <jasonr@gnu.org>
12753
12754 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12755 characters that have already been read. (Bug#2569)
12756
12757 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12758 Log an error message if check_image_size failed.
12759 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12760 (gs_load): Mention max-image-size in size error message. (Bug#2560)
12761
12762 2009-03-02 Eli Zaretskii <eliz@gnu.org>
12763
12764 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12765 when decoding process output.
12766
12767 2009-03-01 Richard M Stallman <rms@gnu.org>
12768
12769 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12770
12771 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12772
12773 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12774
12775 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12776 (decode_coding_emacs_mule, decode_coding_iso_2022)
12777 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12778 (decode_coding_raw_text, decode_coding_charset)
12779 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12780 Honor inhibit-eol-conversion. (Bug #2186)
12781
12782 2009-02-28 Jason Rumney <jasonr@gnu.org>
12783
12784 * coding.c (detect_coding_charset): If not checking latin extra,
12785 fail on characters between 0x80 and 0xA0. (Bug#2354)
12786
12787 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12788
12789 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
12790 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
12791
12792 2009-02-27 Glenn Morris <rgm@gnu.org>
12793
12794 * callint.c (Finteractive): Doc fix.
12795
12796 2009-02-27 Kenichi Handa <handa@m17n.org>
12797
12798 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12799
12800 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
12801
12802 * font.c (font_style_to_value): Set value for unknown symbols to
12803 100 instead of 255.
12804 (weight_table, slant_table, width_table): Treat "unspecified" as
12805 the default value.
12806
12807 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
12808
12809 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12810
12811 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
12812
12813 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12814 error as soon as a recursive load is detected.
12815
12816 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12817
12818 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12819 before caching.
12820
12821 2009-02-24 Kenichi Handa <handa@m17n.org>
12822
12823 * fontset.c (fontset_find_font): Fix the condition for checking
12824 unavailable font.
12825
12826 2009-02-24 Glenn Morris <rgm@gnu.org>
12827
12828 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12829 whitespace that confuses documentation.
12830
12831 2009-02-23 Miles Bader <miles@gnu.org>
12832
12833 * process.c (Flist_system_processes, Fprocess_attributes)
12834 (syms_of_process): Rename `system-process-attributes' to
12835 `process-attributes'.
12836
12837 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12838
12839 * coding.h (struct coding_system): Make safe_charsets a pointer to
12840 unsigned char.
12841 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12842 being 255.
12843 (SAFE_CHARSET_P): Likewise.
12844 (setup_iso_safe_charsets): Properly setup safe_charsets.
12845 (Fdefine_coding_system_internal): Likewise.
12846 (setup_coding_system): Likewise. Remove unneeded casts.
12847 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
12848 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12849 Remove unneeded casts.
12850
12851 * insdel.c (del_range_2): Don't modify gap contents when called
12852 from decode_coding_object. (Bug#1809)
12853
12854 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
12855
12856 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12857 Qfont_object.
12858 (Ftype_of): Recognize font objects.
12859
12860 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12861
12862 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12863 Definitions moved to data.c.
12864
12865 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12866
12867 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12868 async_iconified. Based on a patch by Christian Lynbech
12869 <christian.lynbech@tieto.com>.
12870 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12871
12872 2009-02-20 Glenn Morris <rgm@gnu.org>
12873
12874 * syntax.c (Fskip_chars_forward): Fix doc typo.
12875
12876 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
12877
12878 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12879
12880 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
12881
12882 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12883
12884 2009-02-19 Kenichi Handa <handa@m17n.org>
12885
12886 * coding.c (detect_coding): Preserve coding->mode.
12887 Don't overflow coding->carryover. (Bug#2370)
12888
12889 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12890
12891 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12892
12893 2009-02-18 Kenichi Handa <handa@m17n.org>
12894
12895 * font.c (font_check_otf_features): Fix handling of `nil' element.
12896 (Ffont_spec): Describe :lang and :otf in the docstring.
12897
12898 2009-02-16 Andreas Schwab <schwab@suse.de>
12899
12900 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12901 string.
12902
12903 2009-02-16 Kenichi Handa <handa@m17n.org>
12904
12905 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
12906 (Bug#1723)
12907
12908 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
12909
12910 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
12911
12912 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12913 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12914
12915 2009-02-14 Eli Zaretskii <eliz@gnu.org>
12916
12917 * msdos.c (MAX_SCREEN_BUF): New macro.
12918 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12919 Encode the entire run of glyphs sharing the same face, instead of
12920 doing that one glyph at a time (fixes a bug with displaying
12921 double-size characters).
12922
12923 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12924
12925 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12926
12927 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12928 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
12929 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
12930
12931 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
12932 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
12933
12934 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12935
12936 * keyboard.c (adjust_point_for_property): Allow stopping between two
12937 invisible areas.
12938
12939 2009-02-12 Jason Rumney <jasonr@gnu.org>
12940
12941 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12942 (add_font_entity_to_list): Call check_face_name even when family
12943 is unspecified.
12944
12945 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12946 Release DC when finished. Use NULL window to refer to desktop.
12947 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
12948
12949 * w32font.c (add_font_entity_to_list): Fix check for substituted
12950 raster fonts. (Bug#2219)
12951
12952 2009-02-12 Kenichi Handa <handa@m17n.org>
12953
12954 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12955 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12956 (autocmp_chars): Use fast_looking_at. Don't compose more
12957 characters than MAX_COMPOSITION_COMPONENTS.
12958 (find_automatic_composition): While looking forward and backward,
12959 check static composition. Fix where to stop looking forward.
12960 (composition_adjust_point): Fix checking of static composition.
12961 (Fcomposition_get_gstring): Pay attention to
12962 MAX_COMPOSITION_COMPONENTS.
12963
12964 * lisp.h (fast_looking_at): Extern it.
12965
12966 * search.c (fast_looking_at): New function.
12967
12968 * term.c (encode_terminal_code): Adjust for the change of
12969 <struct glyph>.u.cmp.to.
12970 (append_composite_glyph): Likewise.
12971
12972 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
12973 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
12974 composition.
12975 (append_composite_glyph): Adjust for the change of
12976 <strcut glyph>.u.cmp.to.
12977
12978 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
12979
12980 * casetab.c (init_casetab_once):
12981 * coding.c (ALLOC_CONVERSION_WORK_AREA):
12982 * font.c (font_update_lface):
12983 * fontset.c (Fnew_fontset):
12984 * ftfont.c (ftfont_drive_otf):
12985 * xfont.c (xfont_open):
12986 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
12987
12988 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12989
12990 * fileio.c (Fwrite_region): !NILP -> CONSP.
12991
12992 2009-02-10 Andreas Schwab <schwab@suse.de>
12993
12994 * process.c (send_process): Properly relocate pointer into data
12995 when using encoded data. (Bug#2272)
12996
12997 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
12998
12999 * coding.c (detect_coding_charset): Fix previous change.
13000
13001 2009-02-08 Jason Rumney <jasonr@gnu.org>
13002
13003 * w32fns.c (w32_hide_hourglass): Handle case where frame
13004 disappeared while hourglass was displayed. (Bug #2193)
13005
13006 2009-02-07 Andreas Schwab <schwab@suse.de>
13007
13008 * unexelf.c (unexec): Fix error message.
13009
13010 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13011
13012 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13013 when modal window is active. (Bug #2152)
13014 (applicationShouldTerminate:): Remove now-unneeded while loop
13015 around NSRunAlertPanel.
13016
13017 * nsmenu.m (popupSession): New file-global variable.
13018 (pop_down_menu): End the popupSession before closing dialog.
13019 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13020 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13021 don't query NSApp for events (just sleep instead).
13022
13023 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13024
13025 * coding.c (syms_of_coding) <translation-table-for-input>:
13026 Modify doc string to discourage use for character code unification.
13027
13028 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13029
13030 * atimer.c (run_timers): Update pending_atimers.
13031
13032 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13033
13034 * image.c (svg_load_image): Fix last change.
13035
13036 * xfns.c (Fx_create_frame): Signal an error if no font is
13037 found (Bug#2147).
13038
13039 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13040
13041 * character.c (syms_of_character) <script-representative-chars>:
13042 Fix typo in docstring.
13043
13044 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13045
13046 * nsmenu.m (pop_down_menu): New function.
13047 (ns_popup_dialog): Call it on unwind.
13048 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13049 call timer_check() (Bug#2154).
13050 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13051 handling_signal is set.
13052 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13053
13054 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13055
13056 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13057
13058 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13059
13060 * keyboard.c (poll_for_input_1, handle_async_input):
13061 Set handling_signal under HAVE_NS.
13062
13063 2009-02-04 Glenn Morris <rgm@gnu.org>
13064
13065 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13066
13067 2009-02-04 Kenichi Handa <handa@m17n.org>
13068
13069 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13070
13071 * charset.c (Fchar_charset): New optional arg restriction.
13072
13073 * coding.h (coding_system_charset_list): Extern it.
13074
13075 * coding.c (coding_system_charset_list): New function.
13076
13077 * composite.c: Include coding.h and termhooks.h.
13078 (composition_gstring_p): Fix for the terminal case.
13079 (composition_gstring_width): Likewise.
13080 (fill_gstring_body): Likewise.
13081 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13082 the frame.
13083 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13084 is within a composition.
13085 (Fcomposition_get_gstring): Fix the terminal case.
13086
13087 * term.c (encode_terminal_code): Fix handling of composition.
13088 (produce_composite_glyph): For static composition, get pixel_width
13089 from struct composition.
13090
13091 2009-02-02 Andreas Schwab <schwab@suse.de>
13092
13093 * unexelf.c (unexec): Handle unaligned bss offset.
13094
13095 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13096
13097 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13098 XT,w32read_socket changes to ns_read_socket.
13099
13100 * keyboard.c (handle_interrupt): Don't call
13101 quit_throw_to_read_char() under NS.
13102
13103 * blockinput.h: Remove NS-specific code.
13104
13105 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13106
13107 * dispnew.c (window_change_signal): Don't try to get the size of a
13108 suspended tty frame.
13109 * term.c (Fresume_tty): Resize if the size has changed while the
13110 tty was suspended.
13111
13112 * alloc.c (mark_stack): Properly conditionalize previous change.
13113
13114 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13115
13116 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13117 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13118 Remove; this code is not used on Windows.
13119
13120 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13121
13122 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13123 EOLs that also has stray ^M characters.
13124
13125 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13126
13127 * atimer.c (run_timers, alarm_signal_handler):
13128 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13129 * w32inevt.c (w32_console_read_socket):
13130 * w32term.c (w32_read_socket):
13131 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13132
13133 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13134
13135 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13136 Initialize it as a relative filename pattern.
13137 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13138 (Fcall_process_region): Simplify temp file creation using
13139 temporary-file-directory.
13140
13141 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13142
13143 * msdos.c: Rename pending_signals to msdos_pending_signals.
13144 (sig_suspender, sigprocmask): Adjust.
13145
13146 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13147
13148 * keyboard.c (pending_signals): New var.
13149 (poll_for_input, input_available_signal, init_keyboard): Set it.
13150 (process_pending_signals): New function.
13151
13152 * lisp.h (QUIT): Check pending_signals instead of
13153 interrupt_input_pending. Use process_pending_signals.
13154
13155 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13156
13157 * process.c (wait_reading_process_output): Use process_pending_signals.
13158
13159 * sysdep.c (emacs_write): Use process_pending_signals.
13160
13161 * xterm.c (XTread_socket): Update pending_signals.
13162
13163 * w32term.c (w32_read_socket): Update pending_signals.
13164
13165 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13166
13167 2009-01-29 Kenichi Handa <handa@m17n.org>
13168
13169 * xftfont.c (xftfont_has_char): New function.
13170 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13171
13172 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13173
13174 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13175 under GNUstep.
13176 (ns_query_color): New declaration.
13177
13178 * nsterm.m (ns_confirm_quit): New variable.
13179 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13180 (EmacsApp-applicationShouldTerminate:): Use it.
13181 (EmacsPrefsController): Let user set it.
13182 (ns_query_color): New function.
13183 (ns_defined_color): Use it.
13184 (ns_initialize): Drop.
13185 (ns_term_init): Add two lines from ns_initialize(), and set
13186 input_interrupt_mode to nil.
13187
13188 * image.c (svg_load_image): Don't right-shift background RGB when
13189 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13190
13191 2009-01-28 Kenichi Handa <handa@m17n.org>
13192
13193 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13194 (fontset_get_font_group): Remember that no font-group is specified
13195 for C.
13196
13197 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13198
13199 * fns.c (concat): Check for string overflow (bug#1787).
13200
13201 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13202 Quadruple undo limits (bug#1501).
13203
13204 2009-01-27 Kenichi Handa <handa@m17n.org>
13205
13206 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13207 directly use GT_Get_Char_index.
13208
13209 * xftfont.c (struct xftfont_info): New member `index'.
13210
13211 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13212 (Ffontset_font): Adjust for the change of fontset entry.
13213
13214 2009-01-26 Kenichi Handa <handa@m17n.org>
13215
13216 * fontset.c (fontset_find_font): Fix handling of non-cons return
13217 value of fontset_get_font_group.
13218 (fontset_font): Revert last change.
13219
13220 2009-01-26 Jason Rumney <jasonr@gnu.org>
13221
13222 * w32font.c (w32font_list_internal): Return quickly if registry is
13223 unknown. Simplify final return.
13224 (add_font_entity_to_list): Break complex logic down into more
13225 manageable chunks. Move unknown registry check to
13226 w32font_list_internal.
13227
13228 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13229
13230 Changes to remove Feval calls from GUI under NS.
13231
13232 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13233 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13234 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13235
13236 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13237 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13238 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13239 instead of NON_ASCII_KEYSTROKE_EVENT.
13240 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13241 (EmacsApp-applicationShouldTerminate:): Query user.
13242 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13243 instead of Feval.
13244
13245 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13246
13247 * keyboard.c (kbd_buffer_get_event): Check for it.
13248 (keys_of_keyboard): Define lispy keys for
13249 ns-put/unput-working-text.
13250
13251 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13252 versions.
13253 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13254
13255 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13256
13257 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13258 setting current_buffer directly. (Bug#2044)
13259
13260 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13261
13262 * fontset.c (fontset_font): If we know there is no font, don't do
13263 any work. (Bug#1952, bug#1990).
13264
13265 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13266
13267 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13268
13269 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13270 (ns_no_defaults): New declaration.
13271 (main): Use it.
13272
13273 * nsterm.h (ns_no_defaults): New declaration.
13274
13275 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13276
13277 * nsterm.m (ns_no_defaults): New variable.
13278 (ns_initialize): Don't read defaults when ns_no_defaults.
13279 (EmacsView-readSelectionFromPasteboard:)
13280 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13281 NSServicesRequests protocol. (Bug#1435)
13282 (ns_dumpglyphs_stretch): New function.
13283 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13284 of 2008-11-15 to other terms. (Bug#615)
13285
13286 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13287
13288 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13289
13290 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13291 call for Sparc64.
13292
13293 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13294
13295 * nsfns.m:
13296 * nsgui.h:
13297 * nsmenu.m:
13298 * nsselect.m:
13299 * nsterm.h:
13300 * nsterm.m: Remove '23' comments that indicated code added during
13301 update from emacs-20 -> emacs-23.
13302
13303 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13304
13305 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13306 ns_alternate_modifier. (Bug#1217)
13307
13308 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13309 Display all shortcuts, including those w/o super modifier.
13310
13311 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13312
13313 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
13314
13315 * fileio.c (Vwrite_region_post_annotation_function)
13316 (Vwrite_region_annotation_buffers): New vars.
13317 (build_annotations_unwind): Just reset
13318 Vwrite_region_annotation_buffers.
13319 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13320 Call write-region-post-annotation-function.
13321 (build_annotations): Add to Vwrite_region_annotation_buffers if
13322 buffer changes.
13323
13324 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13325
13326 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13327 Tiger.
13328 * nsfns.m (ns_do_applescript):
13329 Conditionalize typeUTF16ExternalRepresentation on Tiger.
13330
13331 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13332
13333 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13334
13335 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13336
13337 * nsmenu.m (NSMENUPROFILE): Change #if style.
13338
13339 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13340
13341 * nsterm.m (x_set_frame_alpha): Add prototype.
13342 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13343 handle Ctrl-tab. (Bug#1841)
13344 (ns_get_color): Use unsigned long long for scanned hex string value.
13345 (ns_term_shutdown): Abort on non SIGTERM signals.
13346 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
13347 (EmacsPrefsController-setPanelFromDefaultValues): New function.
13348 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
13349 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
13350 (ns_defined_color): Fix settings of the XColor variable fields:
13351 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
13352
13353 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
13354 DPI. (Bug#1316)
13355 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13356 values in onTiger section.
13357
13358 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
13359
13360 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13361 Check return value of font_spec_from_name.
13362 (Fx_list_fonts): Doc fix. (Bug#1951)
13363
13364 * font.c (font_spec_from_name): Return Qnil if font name could not
13365 be parsed.
13366 (font_parse_name): Treat a `?' character as part of an XLFD.
13367
13368 * fns.c (Fsubstring): Doc fix.
13369
13370 2009-01-19 Kenichi Handa <handa@m17n.org>
13371
13372 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
13373 (ftfont_list): Likewise.
13374
13375 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
13376
13377 * dbusbind.c (Fdbus_register_signal):
13378 * process.c (conv_sockaddr_to_lisp):
13379 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13380
13381 * callproc.c (Fgetenv_internal): Doc fix.
13382
13383 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
13384
13385 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13386 it is not even used.
13387
13388 2009-01-16 Glenn Morris <rgm@gnu.org>
13389
13390 * font.c (Ffont_variation_glyphs): Silence compiler.
13391
13392 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
13393
13394 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13395 Reported by David Robinow <drobinow@gmail.com>.
13396
13397 2009-01-15 Kenichi Handa <handa@m17n.org>
13398
13399 * coding.c (detect_coding_system): Fix handling of null_byte_found.
13400
13401 2009-01-14 Jason Rumney <jasonr@gnu.org>
13402
13403 * frame.c (x_set_font): Always store a font to the font parameter,
13404 never a fontset. (Bug#1562)
13405
13406 2009-01-14 Kenichi Handa <handa@m17n.org>
13407
13408 * coding.c (TWO_MORE_BYTES): New macro.
13409 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
13410
13411 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
13412
13413 * font.c (font_clear_prop): If clearing the family, clear the font
13414 width index too.
13415
13416 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
13417
13418 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
13419
13420 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13421 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13422 functions, use sizeof.
13423
13424 2009-01-12 Martin Rudalics <rudalics@gmx.at>
13425
13426 * keyboard.c (read_char): Fix case where last_nonmenu_event
13427 returned a bad value with submenus. (Bug#447)
13428
13429 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
13430
13431 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13432 family, clear the font width index too.
13433
13434 2009-01-11 Jason Rumney <jasonr@gnu.org>
13435
13436 * keyboard.c (cmd_error_internal): Exit when errors occur before
13437 frame creation and not in daemon mode. (Bug#1836)
13438
13439 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
13440
13441 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13442 of a display vector, backtrack.
13443 (try_window_reusing_current_matrix): Check glyph type before
13444 referencing charpos member.
13445
13446 2009-01-10 Eli Zaretskii <eliz@gnu.org>
13447
13448 Fix Bug #876:
13449
13450 * coding.c (inhibit_null_byte_detection): New variable.
13451 (detect_coding, detect_coding_system): Don't pay attention to null
13452 bytes if inhibit_null_byte_detection is non-zero.
13453 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
13454 <inhibit-iso-escape-detection>: Doc fix.
13455
13456 2009-01-09 Jason Rumney <jasonr@gnu.org>
13457
13458 * w32font.c (add_font_entity_to_list): Don't report unknown
13459 Windows charset as any unrecognized registry. (Bug#1548)
13460 Only report Unicode Plane 2 fonts as unicode-sip.
13461
13462 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
13463
13464 * xfaces.c (Fx_font_family_list): Delete function.
13465 Move compatibility version to faces.el.
13466
13467 * font.c (Ffont_family_list): Return a list of strings, not symbols.
13468
13469 2009-01-09 Martin Rudalics <rudalics@gmx.at>
13470
13471 * frame.c (x_set_frame_parameters): Remember requested value for
13472 fullscreen before it's reset by the parameter handler.
13473
13474 2009-01-09 Glenn Morris <rgm@gnu.org>
13475
13476 * keyboard.c (last_command_char): For clarity, rename to...
13477 (last_command_event): ... and update all users.
13478 (last_input_char): For clarity, rename to...
13479 (last_input_event): ... and update all users.
13480 (last-command-char, last-input-char): Move to subr.el as aliases.
13481 * cmds.c, commands.h: Update for last_command_char rename.
13482
13483 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
13484
13485 * font.c (font_open_for_lface): Handle unspecified height attribute.
13486
13487 2009-01-08 Jason Rumney <jasonr@gnu.org>
13488
13489 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13490 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13491 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13492 Don't declare.
13493 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
13494 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13495
13496 2009-01-07 Kenichi Handa <handa@m17n.org>
13497
13498 * fileio.c (Finsert_file_contents): In the case of replace,
13499 remember the coding system used for decoding in
13500 coding_system (Bug#1039).
13501
13502 * coding.c (decode_coding_utf_8): Check byte_after_cr before
13503 breaking the loop. (Bug#870)
13504 (decode_coding_utf_16, decode_coding_emacs_mule)
13505 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13506 (decode_coding_charset): Likewise.
13507
13508 2009-01-05 Martin Rudalics <rudalics@gmx.at>
13509
13510 * frame.c (x_set_frame_parameters): Make sure height (width) get
13511 applied when fullwidth (fullheight) is set. (Bug#1522)
13512
13513 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
13514
13515 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13516 (utc_base): Declare as ULONGLONG, not long double.
13517 (convert_time_raw): Delete.
13518 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13519 (initialize_utc_base): New function.
13520 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13521 (convert_from_time_t): Use initialize_utc_base; compute result with
13522 64-bit arithmetic.
13523 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13524
13525 2009-01-03 Eli Zaretskii <eliz@gnu.org>
13526
13527 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
13528 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13529 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13530 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13531 [!subprocesses]: Define.
13532 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13533 (Flist_system_processes, Fsystem_process_attributes)
13534 [!subprocesses]: Call list_system_processes and
13535 system_process_attributes instead of returning Qnil.
13536
13537 * dosfns.c (system_process_attributes, list_system_processes):
13538 New functions.
13539
13540 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13541
13542 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13543 Don't use the default (no-op) implementation.
13544
13545 2009-01-03 Jason Rumney <jasonr@gnu.org>
13546
13547 * keyboard.c (parse_modifiers_uncached): Wheel events are
13548 clicks (bug#687).
13549
13550 * w32term.c (x_query_colors, x_query_color): New functions.
13551
13552 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13553 (svg_load_image): Cast returned pointers from dynamically loaded
13554 functions. Eliminate W32 specific code.
13555
13556 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13557
13558 * nsfns.m (x_set_foreground_color, x_set_background_color)
13559 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13560 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13561 x_ prefix instead of ns_. Update references.
13562 (syms_of_nsfns): Add a FIXME comment.
13563
13564 * nsterm.m (x_set_cursor_type): New prototype.
13565 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13566
13567 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13568 for Solaris instead of incorrectly providing Qutime and Qcutime.
13569
13570 2009-01-02 Eli Zaretskii <eliz@gnu.org>
13571
13572 * w32.c (process_times): Compute sum of utime and stime.
13573 (system_process_attributes): Add Qtime to the alist.
13574
13575 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13576 and add them to the alist.
13577
13578 * process.c (top level) <Qtime, Qctime>: New variables.
13579 (syms_of_process): staticpro them.
13580 (Fsystem_process_attributes): Add their documentation to the doc
13581 string.
13582
13583 * process.h: Declare Qtime and Qctime.
13584
13585 2009-01-02 Jason Rumney <jasonr@gnu.org>
13586
13587 * image.c (Qgobject): New symbol.
13588 (syms_of_image): Initialize it.
13589 (init_svg_functions): Load some functions from gobject library.
13590
13591 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13592
13593 * frame.c (make_terminal_frame): Remove redundant code and useless
13594 block.
13595
13596 2009-01-01 Andreas Schwab <schwab@suse.de>
13597
13598 * process.c (conv_sockaddr_to_lisp): Add workaround for
13599 getsockname bug on BSD.
13600
13601 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
13602
13603 * xfns.c (x_create_tip_frame): Set border width of the X window.
13604
13605 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
13606
13607 2009-01-01 Jason Rumney <jasonr@gnu.org>
13608
13609 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
13610 Don't block input, as per earlier xterm.c changes.
13611
13612 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13613
13614 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13615 (ns_appkit_version_int): New function.
13616 (x-server-version): Use ns_appkit_version_int and follow 21+
13617 convention of returning 3 integers.
13618
13619 2008-12-30 Kenichi Handa <handa@m17n.org>
13620
13621 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13622 (CHAR_SURROGATE_PAIR_P): New macro.
13623
13624 * font.h (struct font_driver): New member get_variation_glyphs.
13625
13626 * font.c (font_range): Don't require a font for a variation selector.
13627 (Ffont_variation_glyphs): New function.
13628 (syms_of_font): Defsubr it.
13629
13630 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13631 ftfont_variation_glyphs.
13632 (setup_otf_gstring): New function.
13633 (ftfont_drive_otf): Use it.
13634 (ftfont_shape_by_flt): Handle variation selector.
13635 (ftfont_variation_glyphs): New function.
13636
13637 2008-12-30 Martin Rudalics <rudalics@gmx.at>
13638
13639 * frame.c (Vemacs_iconified): Remove.
13640
13641 2008-12-30 Jason Rumney <jasonr@gnu.org>
13642
13643 * frame.c (store_frame_param, x_get_arg): Enable newer code on
13644 WINDOWSNT too, as related changes have already been synced. (Bug#117)
13645
13646 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
13647
13648 * indent.c (Fvertical_motion): Don't advance iterator if we have
13649 reseated to the desired position.
13650
13651 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13652 checking for pos match.
13653
13654 2008-12-30 Kenichi Handa <handa@m17n.org>
13655
13656 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13657 just get the low 8-bit of the code.
13658
13659 * font.c (font_intern_prop): Validate str as multibyte.
13660
13661 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13662
13663 * dispextern.h (struct face): Move lface and hash from the middle
13664 of bitfields.
13665
13666 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13667
13668 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13669
13670 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13671 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13672 instead of intervals.h.
13673
13674 2008-12-26 Andreas Schwab <schwab@suse.de>
13675
13676 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13677 cons.
13678
13679 2008-12-26 Martin Rudalics <rudalics@gmx.at>
13680
13681 * textprop.c (Qminibuffer_prompt): New variable.
13682 (syms_of_textprop): Initialize it.
13683 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13684 in minibuffer-prompt face. (Bug#1662)
13685
13686 2008-12-25 Jason Rumney <jasonr@gnu.org>
13687
13688 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13689
13690 2008-12-24 Jason Rumney <jasonr@gnu.org>
13691
13692 * ralloc.c (r_alloc_reset_variable): New function.
13693
13694 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
13695 record of what points where. (Bug#716)
13696
13697 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13698
13699 * minibuf.c (read_minibuf): Follow the non-interactive case when
13700 running as a daemon, before detaching.
13701
13702 2008-12-22 Andreas Schwab <schwab@suse.de>
13703
13704 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13705 * gtkutil.c (free_widget_value): Use xfree instead of free.
13706
13707 2008-12-22 Martin Rudalics <rudalics@gmx.at>
13708
13709 * frame.c (delete_frame): New function derived from
13710 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13711 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13712 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13713 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13714 * frame.h: Extern delete_frame.
13715 * window.c (window_loop):
13716 * terminal.c (delete_terminal):
13717 * xterm.c (x_connection_closed):
13718 * xfns.c (Fx_hide_tip):
13719 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
13720
13721 2008-12-21 Jason Rumney <jasonr@gnu.org>
13722
13723 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13724 when character maps to .notdef character.
13725
13726 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13727
13728 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13729
13730 2008-12-20 Jason Rumney <jasonr@gnu.org>
13731
13732 * frame.c (Fmake_terminal_frame): Raise an error when called from
13733 a graphical frame on Windows. (Bug#1325)
13734
13735 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13736
13737 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13738
13739 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
13740
13741 * minibuf.c (Fread_buffer): Doc fix.
13742
13743 2008-12-20 Jason Rumney <jasonr@gnu.org>
13744
13745 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
13746 server name in UNC paths. (Bug#719)
13747
13748 * coding.c (decode_coding): Clear chars_at_source flag when using
13749 charbuf. (Bug#1035)
13750
13751 2008-12-19 Daniel Engeler <engeler@gmail.com>
13752
13753 * sysdep.c (serial_configure): Fix typo.
13754
13755 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13756
13757 * sysdep.c: Include alloca.h.
13758 (system_process_attributes): Add implementation for Solaris.
13759
13760 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13761
13762 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13763
13764 Reorganize implementation of Flist_system_processes and
13765 Fsystem_process_attributes. No functional changes.
13766 * process.c: Don't #include pwd.h, grp.h and limits.h.
13767 (Flist_system_processes): Just call list_system_processes.
13768 (Fsystem_process_attributes): Just call system_process_attributes.
13769 (procfs_list_system_processes, time_from_jiffies)
13770 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13771 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13772
13773 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13774 (list_system_processes): Rename from
13775 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13776 Provide a do nothing implementation.
13777 (system_process_attributes): Rename from
13778 procfs_list_system_processes.
13779 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13780 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13781
13782 * w32.c (list_system_processes): Rename from
13783 w32_list_system_processes.
13784 (system_process_attributes): Rename from
13785 w32_system_process_attributes.
13786
13787 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13788
13789 * process.h (w32_list_system_processes)
13790 (w32_system_process_attributes): Remove.
13791 (list_system_processes, system_process_attributes):
13792 New prototypes.
13793
13794 2008-12-19 Kenichi Handa <handa@m17n.org>
13795
13796 * xfont.c (xfont_decode_coding_xlfd): New function.
13797 (xfont_encode_coding_xlfd): New function.
13798 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13799 (xfont_list): Decode and encode XLFD by iso-8859-1.
13800 (xfont_match): Likewise.
13801 (xfont_list_family): Likewise.
13802 (xfont_open): Likewise.
13803
13804 * ftfont.c (ftfont_open): Generate a multibyte string if given
13805 names are utf-8.
13806
13807 * xftfont.c (xftfont_open): Generate a multibyte string if given
13808 names are utf-8.
13809
13810 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13811
13812 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13813 changed.
13814 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13815 clicked on a detached tool bar button.
13816
13817 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13818
13819 * emacs.c (main): Print and error and exit when no data is read
13820 from the pipe.
13821
13822 2008-12-17 Jason Rumney <jasonr@gnu.org>
13823
13824 * w32font.c (w32font_has_char): Always return -1.
13825
13826 2008-12-16 Kenichi Handa <handa@m17n.org>
13827
13828 * font.c (font_open_entity): Fix previous change.
13829
13830 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13831
13832 * process.c: Include <limits.h>.
13833
13834 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
13835
13836 * font.c (font_update_drivers): Fix mistake in reconstructing the
13837 driver list.
13838
13839 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
13840
13841 * font.c (font_clear_cache): Fix format of font cache data.
13842
13843 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
13844
13845 * xftfont.c (xftfont_open): Free Xft font pattern if
13846 XftFontOpenPattern fails.
13847
13848 * xterm.c (x_free_frame_resources): Remove extraneous call to
13849 free_frame_faces.
13850
13851 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13852
13853 * xterm.c (x_delete_display): Move xim_close_dpy call to
13854 x_delete_terminal.
13855 (x_delete_terminal): Call xim_close_dpy.
13856
13857 2008-12-13 Jason Rumney <jasonr@gnu.org>
13858
13859 * w32font.c (intern_font_name): New function.
13860 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13861 (w32font_open_internal, Fx_select_font): Decode font name.
13862 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13863
13864 * w32font.h (intern_font_name): Declare new function.
13865
13866 * w32uniscribe.c (add_opentype_font_name_to_list):
13867 Use intern_font_name.
13868
13869 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13870
13871 * frame.c (Fdelete_frame): Call free_font_driver_list.
13872
13873 * font.c (free_font_driver_list): Implement missing function.
13874
13875 * w32term.c (w32_term_init): Don't initialize the image cache
13876 here; it will be done in init_frame_faces.
13877
13878 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
13879 (struct x_display_info): Remove unused member null_pixel.
13880 New member xim_callback_data.
13881
13882 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13883 (xim_initialize): Save pointer to callback function data.
13884 (xim_close_dpy): Free callback function data. Call XCloseIM,
13885 reverting 2008-11-04 change by David Smith.
13886 (x_term_init): Don't initialize the image cache here; it will be
13887 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13888 (x_delete_display): Free x_dnd_atoms member.
13889
13890 2008-12-13 Kenichi Handa <handa@m17n.org>
13891
13892 * font.c (font_rescale_ratio): Move from xfaces.c.
13893 Argument type changed. Handle a font-spec too.
13894 (font_score): Check Vface_font_rescale_alist.
13895 (font_open_entity): Likewise. (Bug#1547)
13896
13897 * xfaces.c (font_rescale_ratio): Move to font.c.
13898
13899 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13902
13903 2008-12-12 Jason Rumney <jasonr@gnu.org>
13904
13905 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13906 Set Vwindow_system_version to the real w32 major version.
13907
13908 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13909
13910 * term.c (init_tty): Move setting the terminal name before the
13911 potential user: maybe_fatal.
13912
13913 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
13914
13915 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
13916 all callers changed. Call free_frame_faces to free the face cache.
13917
13918 2008-12-11 Jason Rumney <jasonr@gnu.org>
13919
13920 * w32font.c (fill_in_logfont): Don't assume symbol script means
13921 SYMBOL_CHARSET. (Bug#547)
13922
13923 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
13924 size for surrogates. (Bug#1096, bug#872)
13925
13926 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13927
13928 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13929
13930 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13931
13932 * process.c (Fsystem_process_attributes, syms_of_process):
13933 Fix typo in name of Ssystem_process_attributes.
13934 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13935
13936 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13937
13938 * syntax.c (Fmodify_syntax_entry): Doc fix.
13939
13940 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
13941
13942 * font.c (Ffont_spec): Move usage to end of docstring.
13943
13944 2008-12-10 Jason Rumney <jasonr@gnu.org>
13945
13946 * w32font.c (Qcham): New symbol.
13947 (font_supported_scripts): Add cham, and comments for other new
13948 scripts in bitfield from OpenType spec.
13949 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13950 contain characters beyond the bmp.
13951
13952 2008-12-10 Kenichi Handa <handa@m17n.org>
13953
13954 * ftfont.c (fc_charset_table): Add "unicode-sip".
13955 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
13956 Qunicode_sip.
13957
13958 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
13959
13960 * coding.c (QCdefault_char): Rename from QCdefalut_char.
13961 (Fcoding_system_put): Use QCdefault_char.
13962 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13963
13964 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
13965
13966 * xftfont.c (syms_of_xftfont): Fix typo.
13967
13968 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
13969
13970 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
13971
13972 * emacs.c (main): Close daemon_pipe on exec.
13973
13974 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
13975
13976 * termchar.h (struct tty): New members termcap_term_buffer and
13977 termcap_strings_buffer.
13978
13979 * term.c (encode_terminal_code): Free any previous memory blocks
13980 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
13981 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
13982 All callers changed.
13983 (init_tty): Store termcap data and string buffers in new struct
13984 tty members termcap_term_buffer and termcap_strings_buffer.
13985 (delete_tty): Free them.
13986 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
13987
13988 2008-12-07 Seiji Zenitani <zenitani@mac.com>
13989
13990 * nsfns.m (ns_set_background_color): Remove code duplication.
13991 It was a substitute for face-transparency on OS X 10.3.
13992
13993 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
13994
13995 * coding.c (make_conversion_work_buffer): Disable buffer
13996 modification hooks in the work buffer.
13997
13998 2008-12-05 Eli Zaretskii <eliz@gnu.org>
13999
14000 * process.c (procfs_system_process_attributes): If `nread' has a
14001 negative value, assign zero to it.
14002
14003 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
14004
14005 * eval.c (Vdebug_on_error): Doc fix.
14006
14007 2008-12-05 Kenichi Handa <handa@m17n.org>
14008
14009 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14010 second character is a combining character.
14011
14012 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14013
14014 * process.c (procfs_system_process_attributes): Don't use cmd,
14015 cmdsize, and q without initializing them first.
14016
14017 2008-12-04 Jason Rumney <jasonr@gnu.org>
14018
14019 * w32font.c (w32font_draw): Initialize orig_clip before getting
14020 it, and delete it when finished.
14021
14022 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14023
14024 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14025 case when running as a daemon before detaching.
14026
14027 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14028
14029 * w32.c (init_environment): Don't unload library shell32.dll.
14030
14031 2008-12-03 Kenichi Handa <handa@m17n.org>
14032
14033 * font.c (font_at): Set `multibyte' at first.
14034
14035 * coding.c (decode_coding_charset): Check type of an element of
14036 vector VALIDS.
14037 (encode_coding_emacs_mule): Be sure to set `code'.
14038
14039 * fontset.c (face_for_char): Handle invalid charset property correctly.
14040 (font_for_char): Likewise.
14041
14042 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14043
14044 * font.c (Fopen_font): Compute pixel size correctly.
14045 (font_update_lface): Handle fonts with corrupted size specs,
14046 i.e. non-int and non-float.
14047
14048 * ftfont.c (ftfont_match): Initialize entity variable.
14049 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14050 (ftfont_list_family): Initialize list var earlier.
14051
14052 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14053
14054 * xterm.c (x_draw_glyph_string): Fall back on
14055 underline_minimum_offset for underline position.
14056
14057 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14058
14059 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14060
14061 * character.c (c_string_width): Specify the type for LEN.
14062
14063 2008-12-03 Kenichi Handa <handa@m17n.org>
14064
14065 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14066 (decode_coding_utf_8): Likewise.
14067 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14068 (produce_chars): Initialize consumed_chars to 0.
14069
14070 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14071
14072 * keyboard.c (make_lispy_position): Only use PT if the selected
14073 window is current.
14074
14075 2008-12-02 Andreas Schwab <schwab@suse.de>
14076
14077 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14078
14079 * doprnt.c (doprnt1): Fix size of charbuf.
14080
14081 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14082
14083 * keyboard.c (timer_check): Revert last change.
14084
14085 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14086
14087 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14088
14089 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14090
14091 * makefile.w32-in: Update dependencies.
14092 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14093
14094 2008-12-01 Andreas Schwab <schwab@suse.de>
14095
14096 * font.c (register_font_driver): Use xmalloc.
14097 (font_put_frame_data): Likewise.
14098
14099 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14100
14101 * xfaces.c (realize_x_face): Make abort condition clearer.
14102
14103 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14104
14105 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14106
14107 * keyboard.c (timer_check): After a timer runs, ensure that the
14108 selected window's buffer is current.
14109
14110 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14111
14112 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14113 It was accidentally restored by the Unicode merge.
14114
14115 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14116
14117 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14118
14119 * w32proc.c: Include "coding.h".
14120 (Fw32_short_file_name): Encode filename passed to Windows API.
14121 (Fw32_long_file_name): Encode filename passed to Windows API and
14122 decode back the result. (Bug#1433)
14123
14124 2008-11-29 Kenichi Handa <handa@m17n.org>
14125
14126 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14127 not before accessing it.
14128
14129 * charset.c (Fdefine_charset_internal): After calculating
14130 min_char, max_char, and fastmap, copy the charset structure again.
14131 (encode_char): Fix the previous change.
14132
14133 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14134
14135 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14136
14137 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14138
14139 * nsterm.m (x_set_frame_alpha): New function.
14140
14141 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14142
14143 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14144
14145 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14146
14147 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14148 pointer to check_face_name.
14149
14150 2008-11-27 Kenichi Handa <handa@m17n.org>
14151
14152 * category.h (SET_CATEGORY_SET): Call set_category_set.
14153 (set_category_set): Extern it.
14154
14155 * category.c (hash_get_category_set): New function.
14156 (Fmodify_category_entry): Adjust for the change of
14157 char_table_ref_and_range. Call hash_get_category_set to get a
14158 category set to store in the table.
14159
14160 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14161 Funify_charset.
14162
14163 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14164 (DECODE_CHAR): Check if the decoder vector is ready.
14165 (ENCODE_CHAR): Check if the encoder char-table is ready.
14166 (maybe_unify_char): Extern it.
14167
14168 * charset.c (Vchar_unified_charset_table): Delete it.
14169 (inhibit_load_charset_map): New variable.
14170 (temp_charset_work): New variable.
14171 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14172 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14173 New macros.
14174 (load_charset_map): Meaning of control_flag changed.
14175 If inhibit_load_charset_map is nonzero, setup a table in
14176 temp_charset_work.
14177 (load_charset): New argument control_flag.
14178 (map_charset_for_dump): New function.
14179 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14180 map_charset_for_dump.
14181 (Fdefine_charset_internal): If the charset method is MAP, load
14182 mapping tables by calling load_charset.
14183 (Funify_charset): Don't load a mapping table but directly set
14184 Vchar_unify_table.
14185 (maybe_unify_char): New function.
14186 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14187 Handle the case of inhibit_load_charset_map being nonzero.
14188 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14189 Handle the case of inhibit_load_charset_map being nonzero.
14190 (Fclear_charset_maps): Just free temp_charset_work.
14191 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14192 variable.
14193
14194 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14195 change of char_table_ref_and_range.
14196 (char_table_ref_and_range): Change the meaning of argument FROM
14197 and TO. Now the caller must provide initial values for *FROM
14198 and *TO.
14199
14200 * fontset.c (fontset_add): Adjust for the change of
14201 char_table_ref_and_range.
14202 (fontset_get_font_group): Likewise.
14203 (Ffontset_info): Likewise.
14204
14205 * keymap.c (describe_vector): Adjust for the change of
14206 char_table_ref_and_range. For char-table, put boundary between
14207 non-ASCII and 8-bit characters.
14208
14209 * print.c (print_object): For bool-vector, delete unnecessary
14210 check of ASCII_BYTE_P.
14211
14212 2008-11-26 Jason Rumney <jasonr@gnu.org>
14213
14214 * w32font.c (w32font_open_internal): Don't include external
14215 leading in font height. (Bug#879)
14216
14217 2008-11-26 Glenn Morris <rgm@gnu.org>
14218
14219 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14220 redefinition with ifdef. (Bug#1383)
14221
14222 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14223
14224 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14225
14226 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14227
14228 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14229 New EmacsView methods.
14230 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14231 Fixes bug #1048,1357,1414.
14232
14233 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14234
14235 Fix bug #1362.
14236 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14237 is not an indexed color.
14238 * nsterm.m (free_indexed_color): Add argument checking.
14239 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14240
14241 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14242
14243 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14244 Document confirm-after-completion value for
14245 minibuffer-completion-confirm.
14246
14247 2008-11-24 Jason Rumney <jasonr@gnu.org>
14248
14249 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14250 warning.
14251
14252 2008-11-23 Jason Rumney <jasonr@gnu.org>
14253
14254 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14255 restored before returning.
14256
14257 * w32font.c (check_face_name): New function.
14258 (add_font_entity_to_list): Use it to filter out common substituted
14259 fonts. (Bug#642)
14260
14261 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14262
14263 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14264 confirm-nonexistent-file-or-buffer in doc-string.
14265
14266 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14267
14268 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14269 Fix copy/paste typo. Add checks.
14270
14271 2008-11-21 Kenichi Handa <handa@m17n.org>
14272
14273 * coding.c (detect_coding_iso_2022): Reject invalid composition
14274 sequence.
14275 (DECODE_COMPOSITION_START): If the current source is the last
14276 block, and the current composition doesn't end, regard this
14277 sequence as invalid.
14278 (decode_coding_iso_2022): Handle invalid composition sequence.
14279
14280 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14281
14282 * window.c (coordinates_in_window): Don't return
14283 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14284 line when the window is not the rightmost one. (Bug#1372)
14285
14286 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14287
14288 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14289
14290 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14291
14292 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14293 and bright_bg if noninteractive is non-zero.
14294
14295 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14296
14297 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14298 x_draw_glyph_string_background.
14299
14300 * w32term.c (x_draw_glyph_string): Likewise.
14301
14302 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14303
14304 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14305 the next glyph string once past the overhang width.
14306
14307 * nsterm.m (ns_draw_glyph_string): Likewise.
14308
14309 * w32term.c (x_draw_glyph_string): Likewise.
14310
14311 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14312
14313 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14314 double file close.
14315
14316 2008-11-14 Martin Rudalics <rudalics@gmx.at>
14317
14318 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14319 dedicated status of window before attempting to display another
14320 buffer in it.
14321
14322 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
14323
14324 * msdos.c (Fmsdos_long_file_names):
14325 (syms_of_msdos) <dos-unsupported-char-glyph>:
14326 * dosfns.c (Fint86): Fix typos in docstrings.
14327
14328 2008-11-14 Eli Zaretskii <eliz@gnu.org>
14329
14330 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14331
14332 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14333
14334 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14335
14336 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14337
14338 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14339
14340 * frame.h: Negative alpha means "don't touch".
14341
14342 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14343
14344 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14345
14346 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14347
14348 * hftctl.c:
14349 * chpdef.h:
14350 * acldef.h: Remove files used only for systems no longer supported.
14351
14352 * Makefile.in: Fix .o alphabetical ordering.
14353 (hftctl.o): Remove dependency, file removed.
14354 (keymap.o, print.o): Depend on charset.h.
14355
14356 2008-11-10 Kenichi Handa <handa@m17n.org>
14357
14358 * character.c (Fget_byte): Fix and make it faster for unibyte target.
14359
14360 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
14361
14362 * dired.c (file_name_completion): If completion_ignore_case is
14363 enabled, ignore case when checking completion-regexp-list.
14364
14365 2008-11-08 Eli Zaretskii <eliz@gnu.org>
14366
14367 * vm-limit.c (get_lim_data): Fix last change.
14368
14369 2008-11-08 Kenichi Handa <handa@m17n.org>
14370
14371 * character.c (Fget_byte): New function.
14372 (syms_of_character): Defsubr Fget_byte.
14373
14374 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
14375
14376 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14377 cursor position is valid after scrolling.
14378
14379 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
14380
14381 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14382
14383 2008-11-06 Glenn Morris <rgm@gnu.org>
14384
14385 * xterm.c (handle_one_xevent): Don't let popup menus cause
14386 mouse-autoselect-window related window switching. (Bug#1261)
14387
14388 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14389
14390 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14391
14392 2008-11-04 Andreas Schwab <schwab@suse.de>
14393
14394 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14395
14396 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
14397
14398 * xfns.c (Fx_wm_set_size_hint): New function.
14399
14400 2008-11-03 Martin Rudalics <rudalics@gmx.at>
14401
14402 * textprop.c (Fprevious_single_char_property_change): Return 0
14403 when there's no change in a string. (Bug#1301)
14404
14405 2008-11-02 Martin Rudalics <rudalics@gmx.at>
14406
14407 * frame.c (do_switch_frame): New argument NORECORD passed to
14408 Fselect_window.
14409 (Fselect_frame): New argument NORECORD passed to
14410 do_switch_frame.
14411 (Fset_frame_selected_window): New argument NORECORD passed to
14412 Fselect_frame.
14413 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14414 in call of do_switch_frame.
14415 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14416 Handle NORECORD argument in call of Fselect_frame.
14417 * lisp.h (do_switch_frame, Fselect_frame)
14418 (Fset_frame_selected_window): Adjust declarations.
14419 * window.c (select_frame_norecord): New function.
14420 (run_window_configuration_change_hook): Use it and call
14421 Fselect_frame with NORECORD set.
14422 (Fselect_window): Pass NORECORD to Fselect_frame.
14423 (Fset_window_configuration): Handle NORECORD argument in call of
14424 do_switch_frame.
14425 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14426 Fset_frame_selected_window.
14427 * keyboard.c (command_loop_1): Handle NORECORD in call of
14428 Fselect_frame (currently ifdefd).
14429
14430 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14431
14432 * emacs.c (USAGE2): Untabify.
14433
14434 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14435
14436 * composite.c (fill_gstring_header): Fix copy/paste typo.
14437
14438 2008-10-31 Martin Rudalics <rudalics@gmx.at>
14439
14440 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14441 (Fother_window): Rename argument and rewrite doc-string.
14442 (select_window_norecord): Fix return value. (Bug#1276)
14443
14444 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
14445
14446 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14447 new frames overriding foreground for tooltips. Based on similar patch
14448 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14449
14450 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
14451
14452 * emacs.c (Fdaemon_initialized): Initialize nfd.
14453
14454 2008-10-29 Martin Rudalics <rudalics@gmx.at>
14455
14456 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14457 (Fwindow_text_height): Clarify doc-strings.
14458 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14459 doc-string of window-scroll-functions.
14460
14461 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14462
14463 * category.c (syms_of_category): Fix typo in docstring.
14464
14465 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
14466
14467 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14468 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14469 Fix typos in docstrings.
14470
14471 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14472
14473 * emacs.c (daemon_pipe): Make non-static.
14474 (IS_DAEMON): Move definition ...
14475 * lisp.h (IS_DAEMON): ... here.
14476 (daemon_pipe): Declare.
14477 (is_daemon): Remove.
14478 * dispnew.c (init_display): Use IS_DAEMON.
14479
14480 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14481
14482 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14483 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14484
14485 * emacs.c (is_daemon): Remove.
14486 (main): Don't set is_daemon.
14487 (IS_DAEMON): New macro.
14488 (Fdaemonp, Fdaemon_initialized): Use it.
14489 (Fdaemon_initialized): Write a char into the pipe to make sure the
14490 parent exits.
14491 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14492
14493 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
14494
14495 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14496 over-sized glyph, draw it with the default glyph width.
14497
14498 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14499 glyph, draw it with the default glyph width.
14500
14501 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14502 glyph, draw it with the default glyph width.
14503
14504 * xdisp.c (try_scrolling): When computing the distance from the
14505 scroll margin to PT, try moving some distance past the window
14506 bottom before giving up.
14507
14508 2008-10-27 Martin Rudalics <rudalics@gmx.at>
14509
14510 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14511 (Fset_window_buffer): Explain in doc-string that a window can be
14512 "strongly" dedicated to its buffer.
14513
14514 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14515
14516 * emacs.c (daemon_name): New variable.
14517 (main): Deal with --daemon=SERVER_NAME.
14518 (Fdaemonp): Return a name if one was passed to --daemon.
14519
14520 2008-10-26 Romain Francoise <romain@orebokech.com>
14521
14522 * emacs.c (daemon_pipe): New variable.
14523 (main): Create a pipe before forking, make the parent exit only after
14524 the child has closed its end of the pipe. Move closing the
14525 descriptors ...
14526 (Fdaemon_initialized): ... here. New function.
14527
14528 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14529
14530 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14531 the previous unoptimized table.
14532
14533 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14534 the distinction between non-nil and non-t value of `dedicated'.
14535
14536 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
14537
14538 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
14539 read_char_minibuf_menu_text is large enough to hold the menu string.
14540
14541 2008-10-25 Martin Rudalics <rudalics@gmx.at>
14542
14543 * window.c (Fget_buffer_window, Fdelete_windows_on)
14544 (Freplace_buffer_in_windows): Make buffer argument optional and
14545 rename to buffer_or_name.
14546
14547 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
14548
14549 * xdisp.c (handle_single_display_spec, handle_display_prop):
14550 Undo 2005-05-16 change.
14551 (handle_stop): Pop iterator if it's loaded with an empty string.
14552 (get_overlay_strings_1): Don't save iterator if it's loaded with
14553 an empty string (bug#1201).
14554
14555 2008-10-24 Kenichi Handa <handa@m17n.org>
14556
14557 * ftfont.c (ftfont_otf_features): Fix previous change.
14558 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14559 calling ftfont_otf_features.
14560
14561 2008-10-24 Kenichi Handa <handa@m17n.org>
14562
14563 * font.c (font_match_p): Fix for the case that a vector of
14564 characters is in script-representative-chars.
14565
14566 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
14567
14568 * dbusbind.c (xd_in_read_queued_messages): New variable.
14569 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
14570 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14571 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
14572 macro. (Bug#1186)
14573
14574 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
14575
14576 * s/sol2-10.h: New file.
14577
14578 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14579
14580 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14581 poor beast has survived 9+ years and the jump from xterm.c!).
14582
14583 2008-10-23 Martin Rudalics <rudalics@gmx.at>
14584
14585 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14586 Reword doc-string.
14587 (Fbury_buffer): In doc-string say what happens to the buffer's window.
14588
14589 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14590
14591 * character.c (syms_of_character) <script-representative-chars>:
14592 <unicode-category-table>: Doc fixes.
14593
14594 2008-10-23 Noah Friedman <friedman@splode.com>
14595
14596 * coding.c (make_conversion_work_buffer): Check that
14597 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14598 Fget_buffer_create.
14599
14600 2008-10-23 Kenichi Handa <handa@m17n.org>
14601
14602 * font.c (font_add_log): Check the values of extra properties.
14603
14604 2008-10-22 Martin Rudalics <rudalics@gmx.at>
14605
14606 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14607 Reword doc-string.
14608 (Fset_window_parameter): Use NILP.
14609 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
14610 (Frecenter): Use "selected" instead of "current" window in doc-strings.
14611
14612 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14613
14614 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14615
14616 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14617
14618 * nsfns.m (ns_appkit_version): New function.
14619 (x-server-version): Use it.
14620 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14621 (x-server-vendor): Don't check_ns().
14622
14623 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14624
14625 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14626
14627 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14628 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14629
14630 2008-10-22 Kenichi Handa <handa@m17n.org>
14631
14632 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14633 scripts.
14634
14635 * category.c (word_boundary_p): Check scripts instead of charset.
14636 Handle nil value in word-separating-categories and
14637 word-combining-categories.
14638 (syms_of_category): Fix docstrings of word-separating-categories
14639 and word-combining-categories.
14640
14641 2008-10-21 Eli Zaretskii <eliz@gnu.org>
14642
14643 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14644 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14645
14646 2008-10-21 Martin Rudalics <rudalics@gmx.at>
14647
14648 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14649 Rename arg "buffer" to "buffer_or_name".
14650 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14651 it optional.
14652 (no_switch_window): Remove since the return value is not used.
14653 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
14654 Consider window as dedicated when Fwindow_dedicated_p returns a
14655 non-nil value.
14656 * lisp.h: Remove prototype for no_switch_window.
14657
14658 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14659
14660 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
14661 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
14662
14663 2008-10-21 Kenichi Handa <handa@m17n.org>
14664
14665 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14666 check Vlatin_extra_code_table.
14667
14668 2008-10-20 Eli Zaretskii <eliz@gnu.org>
14669
14670 * fileio.c (Fset_file_modes): Doc fix.
14671
14672 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
14673
14674 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14675 in arrays.
14676
14677 2008-10-19 Martin Rudalics <rudalics@gmx.at>
14678
14679 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14680 Mention kill-buffer in doc-string.
14681 (Fset_window_buffer): Reinsert tem check removed in last commit.
14682 (Fenlarge_window, Fshrink_window): Have argument names and
14683 doc-string follow Elisp manual more closely.
14684
14685 2008-10-18 Eli Zaretskii <eliz@gnu.org>
14686
14687 * fileio.c (Fset_file_modes): Doc fix.
14688
14689 2008-10-18 Martin Rudalics <rudalics@gmx.at>
14690
14691 * window.c (Fwindow_width, Fset_window_start)
14692 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
14693 (Fdelete_windows_on, Freplace_buffer_in_windows):
14694 Make doc-strings follow code and Elisp manual more closely.
14695 (Fwindow_dedicated_p): Make window argument optional.
14696 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14697 (Fset_window_buffer): Respect any non-nil dedicated value for
14698 window. Rename "buffer" argument to "buffer_or_name".
14699
14700 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
14701
14702 * m/sh3.h: New file, machine description for SuperH.
14703
14704 2008-10-17 Martin Rudalics <rudalics@gmx.at>
14705
14706 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14707
14708 2008-10-17 Kenichi Handa <handa@m17n.org>
14709
14710 * ftfont.c (ftfont_otf_features): Fix indexing
14711 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14712
14713 2008-10-16 Magnus Henoch <mange@freemail.hu>
14714
14715 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14716 (Fdbus_call_method_asynchronously): Ditto.
14717 This change makes C-h f display the argument list.
14718
14719 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
14720
14721 * fileio.c (Fexpand_file_name): Doc fix.
14722
14723 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14724 of :foreground and :background equivalent to unspecified (20.x
14725 compatibility).
14726
14727 2008-10-15 Eli Zaretskii <eliz@gnu.org>
14728
14729 * buffer.c (syms_of_buffer): Doc fix.
14730
14731 2008-10-14 Kenichi Handa <handa@m17n.org>
14732
14733 * font.c (font_clear_prop): When clearing font width, clear the
14734 average width field too.
14735
14736 2008-10-12 Andreas Schwab <schwab@suse.de>
14737
14738 * ftfont.c (ftfont_shape_by_flt): Make static.
14739 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14740
14741 * font.c: Don't include <m17n-flt.h>.
14742
14743 2008-10-10 Eli Zaretskii <eliz@gnu.org>
14744
14745 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14746
14747 2008-10-09 Eli Zaretskii <eliz@gnu.org>
14748
14749 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14750 away code.
14751
14752 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
14753
14754 * dispnew.c (update_text_area): Avoid looping due to large glyph
14755 overhangs (bug#1070).
14756
14757 2008-10-09 Kenichi Handa <handa@m17n.org>
14758
14759 * fontset.c (face_for_char): If face->fontset is negative, just
14760 return ascii_face.
14761
14762 * font.c (font_delete_unmatched): Fix previous change.
14763 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14764
14765 2008-10-09 Martin Rudalics <rudalics@gmx.at>
14766
14767 * frame.c (Fraise_frame): On text-only terminals select frame in
14768 order to make it visible. (Bug#1061)
14769
14770 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
14771
14772 * fontset.c (fontset_find_font): Check frame validity.
14773
14774 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
14775
14776 * gtkutil.c (xg_display_open): Reset default display if none exists.
14777 (xg_display_close): Allow Emacs to close all displays (bug#985).
14778
14779 2008-10-06 Andreas Schwab <schwab@suse.de>
14780
14781 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14782
14783 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
14784
14785 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
14786
14787 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
14788
14789 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14790 during initialization.
14791
14792 2008-10-04 Eli Zaretskii <eliz@gnu.org>
14793
14794 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14795 whole thing on MSDOS frames as well as on a TTY.
14796
14797 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14798 well as for TTY.
14799 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14800 well as on a TTY.
14801
14802 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14803 as well as for TTY.
14804
14805 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14806
14807 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14808 MSDOS frames as well.
14809
14810 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14811
14812 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14813 correct arguments.
14814 * menu.c (find_and_return_menu_selection): Add cast.
14815
14816 2008-10-03 Glenn Morris <rgm@gnu.org>
14817
14818 * emacs.c (USAGE1): Add --daemon.
14819
14820 2008-10-02 Eli Zaretskii <eliz@gnu.org>
14821
14822 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14823 100, so it's in percents as advertised.
14824
14825 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14826
14827 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14828 (ns_output.current_cursor, ns_output.desired_cursor)
14829 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14830 (FRAME_NEW_CURSOR_COLOR): Remove.
14831
14832 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
14833 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
14834 enumeration (HOLLOW_BOX_CURSOR, etc.).
14835
14836 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14837 (draw_window_cursor): Simplify code.
14838 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14839 Don't change cursor type. In latter, call rehighlight instead of doing
14840 updates manually.
14841 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14842 Use core Emacs cursor types.
14843
14844 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
14845
14846 2008-10-02 Martin Rudalics <rudalics@gmx.at>
14847
14848 * process.c (Faccept_process_output): Fix doc-string.
14849
14850 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14851
14852 * gmalloc.c (__sbrk): Also define for uClibc.
14853
14854 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14855 for uClibc.
14856
14857 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14858
14859 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14860 styles.
14861 (nsfont_open): Reenable the cache.
14862
14863 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14864
14865 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14866 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14867
14868 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14869
14870 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14871 a suspended terminal.
14872
14873 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
14874
14875 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14876
14877 2008-09-30 Eli Zaretskii <eliz@gnu.org>
14878
14879 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14880
14881 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
14882
14883 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14884 in a continued line coincides with a line beginning.
14885
14886 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14887
14888 * nsfont.m (nsfont_trait_distance): Fix bug.
14889 (nsfont_list): Return a list rather than a vector (syncs with Handa
14890 changes of 2008-05-14).
14891 (nsfont_open): Improve logging.
14892
14893 2008-09-29 Andreas Schwab <schwab@suse.de>
14894
14895 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14896
14897 2008-09-28 Martin Rudalics <rudalics@gmx.at>
14898
14899 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14900 name as char-resolve-modifiers.
14901 Reported by: Markus Triska <markus.triska@gmx.at>
14902
14903 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14904
14905 * dispnew.c (init_display): Return earlier when running as a daemon.
14906
14907 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14908
14909 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14910
14911 2008-09-27 Eli Zaretskii <eliz@gnu.org>
14912
14913 * composite.c (Fcomposition_get_gstring)
14914 (Fcompose_region_internal, Fcompose_string_internal)
14915 (Ffind_composition_internal): Doc fix.
14916 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14917 (syms_of_composite) <auto-composition-function>: Doc fix.
14918 (syms_of_composite) <composition-function-table>: Doc fix.
14919
14920 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
14921
14922 * search.c (wordify): New argument for lax word-ends.
14923 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14924
14925 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14926
14927 * lisp.h (is_daemon): Declare.
14928 * dispnew.c (init_display): Do not try to initialize the terminal
14929 when running as a daemon.
14930
14931 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
14932
14933 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14934 x_display_pixel_height.
14935
14936 2008-09-22 Martin Rudalics <rudalics@gmx.at>
14937
14938 * undo.c (record_point): Don't call Fundo_boundary for first
14939 change. (Bug#731)
14940
14941 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
14942
14943 * emacs.c (Fdaemonp): Doc fix.
14944
14945 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14946
14947 * emacs.c (main): Place #ifdef in the proper place.
14948
14949 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14950
14951 * emacs.c (standard_args): Add --daemon.
14952 (main): Disconnect from the terminal when --daemon is passed.
14953 (is_daemon): New variable.
14954 (Fdaemonp): New function.
14955 (syms_of_emacs): Defsubr it.
14956
14957 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
14958
14959 * xdisp.c (get_next_display_element): Handle string display
14960 correctly when checking for the end of a box run.
14961
14962 2008-09-20 Glenn Morris <rgm@gnu.org>
14963
14964 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14965 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14966 (Frename_file): Avoid copying to trash if a rename involves
14967 a delete. (Bug#964).
14968
14969 2008-09-20 Eli Zaretskii <eliz@gnu.org>
14970
14971 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14972 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14973 frames as well as termcap frames.
14974 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14975 get_named_tty.
14976
14977 2008-09-19 Eli Zaretskii <eliz@gnu.org>
14978
14979 * process.c (procfs_system_process_attributes): Fix cmdline in
14980 case /proc/PID/cmdline is empty.
14981
14982 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
14983 x_display_pixel_height.
14984
14985 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
14986
14987 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
14988
14989 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14990 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
14991
14992 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
14993
14994 * dispextern.h (struct it): Move line_wrap away from the middle of
14995 bitfields. Move voffset in struct iterator_stack_entry after the
14996 bitfields. Move tab_width near after another short.
14997
14998 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
14999
15000 * frame.h (struct frame): Move alpha from the middle of bitfields.
15001
15002 * window.h (struct window): Move frozen_window_start_p after the
15003 rest of the bitfields to reduce padding.
15004
15005 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
15006
15007 * xterm.h (x_display_info): Remove `height' and `width' members.
15008
15009 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15010
15011 * w32term.h (w32_display_info): Remove `height', `width',
15012 `height_in', and `width_in' members.
15013
15014 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15015 New functions.
15016 (x_calc_absolute_position): Use them.
15017 (x_term_init): Omit removed `height' and `width' members.
15018
15019 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15020 New functions.
15021 (w32_read_socket, x_calc_absolute_position): Use them.
15022 (w32_initialize_display_info, w32_term_init): Omit removed members
15023 of w32_display_info.
15024
15025 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15026 New functions.
15027 (ns_initialize_display_info): Omit removed members of ns_display_info.
15028
15029 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15030 New functions.
15031 (x_calc_absolute_position): Use them.
15032 (x_term_init): Omit removed `height' and `width' members.
15033
15034 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15035 (compute_tip_xy):
15036 * frame.c (x_fullscreen_adjust):
15037 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15038 x_display_pixel_width.
15039
15040 2008-09-18 Kenichi Handa <handa@m17n.org>
15041
15042 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15043 (composition_compute_stop_pos): Fix handling of static composition.
15044 (Fcomposition_get_gstring): Check FROM and TO at first.
15045
15046 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15047
15048 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15049 mixup (YAILOM).
15050
15051 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15052
15053 * indent.c (Fvertical_motion): Use position reported by iterator
15054 instead of PT for determining screen motion (bug#943).
15055
15056 2008-09-17 Romain Francoise <romain@orebokech.com>
15057
15058 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15059
15060 2008-09-17 Kenichi Handa <handa@m17n.org>
15061
15062 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15063
15064 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15065 if necessary.
15066
15067 2008-09-16 Kenichi Handa <handa@m17n.org>
15068
15069 * coding.c (make_conversion_work_buffer): Avoid calling
15070 Fget_buffer_create if it is not necessary.
15071
15072 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15073
15074 * window.c (Fselect_window): Don't update window_select_count and
15075 use_time when norecord is not nil.
15076
15077 2008-09-14 Kenichi Handa <handa@m17n.org>
15078
15079 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15080 specpdl_ptr.
15081
15082 2008-09-12 Kenichi Handa <handa@m17n.org>
15083
15084 * indent.c (scan_for_column): Don't handle automatic composition
15085 if the current buffer is not associated with a window.
15086
15087 * composite.c (composition_reseat_it): If the current buffer is
15088 not associated with a window, ignore the automatic composition.
15089 (find_automatic_composition): Likewise.
15090
15091 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15092
15093 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15094 (Fgpm_mouse_stop): Use it.
15095 * termhooks.h (close_gpm): Declare.
15096 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15097 connection if Gpm_GetEvent fails.
15098
15099 * window.c (set_window_buffer): Always preserve current-buffer.
15100
15101 2008-09-12 Glenn Morris <rgm@gnu.org>
15102
15103 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15104
15105 2008-09-11 Glenn Morris <rgm@gnu.org>
15106
15107 * charset.c (charset-map-path): Doc fix.
15108
15109 2008-09-10 Kenichi Handa <handa@m17n.org>
15110
15111 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15112
15113 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15114 compose a grapheme cluster with the preceding base glyph.
15115
15116 * composite.c (composition_compute_stop_pos): Fix previous change.
15117 Reset cmp_it->id to -1 at first.
15118
15119 2008-09-10 Glenn Morris <rgm@gnu.org>
15120
15121 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15122
15123 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15124
15125 * keyboard.c (read_key_sequence): Reapply translation maps when
15126 switching keyboards.
15127
15128 2008-09-09 Kenichi Handa <handa@m17n.org>
15129
15130 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15131 characters.
15132
15133 * composite.c (FORWARD_CHAR): Fix calculation
15134 of (POSITION).pos_byte.
15135 (composition_compute_stop_pos): Limit the search of composition to
15136 at most 500 characters ahead. If we reach the limit or find a
15137 newline, set cmp_it->ch to -2 and return 0.
15138 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15139
15140 2008-09-08 Kenichi Handa <handa@m17n.org>
15141
15142 * indent.c (Fvertical_motion): Be sure to set
15143 it_overshoot_expected if it.cmp_it.id is non-negative.
15144
15145 2008-09-07 Andreas Schwab <schwab@suse.de>
15146
15147 * callproc.c (Fcall_process): Don't hold references to string data
15148 across garbage collection. Move initialisation of new_argv down
15149 to avoid compiler bug.
15150
15151 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15152
15153 * process.c (Fsystem_process_attributes): Doc fix.
15154
15155 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15156
15157 * callproc.c (Fcall_process): Canonicalize current directory name.
15158
15159 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15160 iterator advances to the next line if the current line ends in a
15161 continued tab.
15162
15163 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15164
15165 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15166 member to point to cmp_from.
15167
15168 * xdisp.c: Doc fix for references to gidx data member.
15169
15170 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15171
15172 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15173
15174 2008-09-07 Kenichi Handa <handa@m17n.org>
15175
15176 * composite.c (FORWARD_CHAR): Check STOP after
15177 incrementing (POSITION).pos.
15178
15179 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15180
15181 * process.c (Fsystem_process_attributes): Doc fix.
15182
15183 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15184
15185 * keyboard.c (Ftop_level): Doc fix.
15186
15187 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15188
15189 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15190 minibuffer, don't let lower part of menu invade the echo area.
15191
15192 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15193 "char *q" to access menu text and advance through it. Revert the
15194 change that displayed ">" instead of ASCII character 0x10.
15195
15196 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15197
15198 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15199 toggle boxes and radio buttons on MS-DOS as well.
15200
15201 2008-09-05 Kenichi Handa <handa@m17n.org>
15202
15203 * composite.c (autocmp_chars): Check lookback count.
15204 (composition_compute_stop_pos): Set cmp_it->lookback.
15205 (composition_reseat_it): Check lookback count.
15206 (struct position_record): New struct.
15207 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15208 (find_automatic_composition): New function.
15209 (composition_adjust_point): Use find_automatic_composition.
15210
15211 * dispextern.h (struct composition_it): New member lookback.
15212
15213 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15214
15215 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15216 if moving by a single line.
15217
15218 2008-09-02 Andreas Schwab <schwab@suse.de>
15219
15220 * xterm.c (x_delete_display): Fix merge error.
15221
15222 * fileio.c (Fexpand_file_name): Remove unused variables.
15223
15224 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15225
15226 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15227 storage on all platforms, not just on DOS_NT.
15228
15229 2008-09-02 Jason Rumney <jasonr@gnu.org>
15230
15231 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15232 Ensure mouse is not grabbed after menu is finished.
15233
15234 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15235
15236 * xfaces.c (Finternal_set_alternative_font_family_alist)
15237 (Finternal_set_alternative_font_registry_alist): Properly copy
15238 entire alist structure.
15239
15240 2008-09-01 Kenichi Handa <handa@m17n.org>
15241
15242 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15243 representative chars of the script is a vector.
15244 (ftfont_list): Handle the case where the representative chars of
15245 the script is a vector.
15246
15247 * character.c (syms_of_character): Docstring of
15248 script-representative-chars fixed.
15249
15250 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15251
15252 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15253 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15254 the menu. Allocate larger buffer for `text', to account for
15255 possible ^C characters.
15256
15257 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15258
15259 * xdisp.c (prepare_menu_bars): Don't call
15260 Vwindow_size_change_functions with arg Qt.
15261
15262 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15263
15264 * font.h (font_range):
15265 * fileio.c (report_file_error):
15266 * composite.c (composition_update_it): Yet another int/Lisp_Object
15267 mixup (YAILOM).
15268
15269 2008-08-30 Glenn Morris <rgm@gnu.org>
15270
15271 * data.c (Fmake_variable_frame_local): Doc fix.
15272
15273 * frame.c (Fmodify_frame_parameters): Doc fix.
15274
15275 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15276
15277 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15278 needed by GetTokenInformation.
15279 (w32_system_process_attributes): Check return values of all system
15280 APIs.
15281
15282 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15283 only when the state changes.
15284 (IT_update_begin, IT_update_end): Add termscript trace.
15285
15286 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15287 clipboard is unavailable. Set dst to NULL if it doesn't point to
15288 malloc'ed data.
15289 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15290 passing random values to xfree.
15291
15292 * dispnew.c (init_display): Set `tty's association in frame's
15293 parameters alist to the name of the terminal device, if that is known.
15294
15295 2008-08-29 Jason Rumney <jasonr@gnu.org>
15296
15297 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15298
15299 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15300
15301 * composite.c (fill_gstring_body): Avoid compiler warnings.
15302
15303 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15304 LGLYPH_SET_CODE to avoid compiler warnings.
15305
15306 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15307
15308 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15309
15310 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15311 LGLYPH_SET_CODE.
15312
15313 2008-08-29 Kenichi Handa <handa@m17n.org>
15314
15315 * fileio.c (report_file_error): Don't downcase the first character
15316 of errstring if it is still unibyte.
15317
15318 2008-08-29 Kenichi Handa <handa@m17n.org>
15319
15320 These changes are to re-implement the automatic composition so
15321 that it doesn't use text properties.
15322
15323 * Makefile.in (ftfont.o): Depend on composite.h.
15324 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15325
15326 * character.h (Vunicode_category_table): Extern it.
15327
15328 * character.c (Vunicode_category_table): New variable.
15329 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15330
15331 * chartab.c (optimize_sub_char_table): Perform more greedy
15332 optimization.
15333
15334 * composite.h (enum composition_method):
15335 Delete COMPOSITION_WITH_GLYPH_STRING.
15336 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15337 (Vcomposition_function_table): Extern it.
15338 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15339 (composition_gstring_put_cache, composition_gstring_from_id)
15340 (composition_gstring_p, composition_gstring_width)
15341 (composition_compute_stop_pos, composition_reseat_it)
15342 (composition_update_it, composition_adjust_point): Extern them.
15343 (Fcomposition_get_gstring): EXFUN it.
15344
15345 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
15346 (Vcomposition_function_table)
15347 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
15348 (gstring_hash_table, gstring_work, gstring_work_headers):
15349 New variables.
15350 (gstring_lookup_cache, composition_gstring_put_cache)
15351 (composition_gstring_from_id, composition_gstring_p)
15352 (composition_gstring_width, fill_gstring_header)
15353 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15354 (composition_reseat_it, composition_update_it)
15355 (composition_adjust_point, Fcomposition_get_gstring): New functions.
15356 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15357 and gstring_work_headers. DEFVAR_LISP composition-function-table.
15358 Defsubr composition_get_gstring.
15359
15360 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15361 cmp_id.
15362 (struct glyph_string): Delete the member gidx. New members
15363 cmp_id, cmp_from, and cmp_to.
15364 (enum it_method): Delete GET_FROM_COMPOSITION.
15365 (struct composition_it): New struct.
15366 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15367 Delete c, len, cmp_id, cmp_len in u.comp.
15368
15369 * font.h (enum lgstring_indices): Delete it.
15370 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
15371 (enum lglyph_indices): Likewise.
15372 (font_range): Adjust extern.
15373 (font_fill_lglyph_metrics): Extern it.
15374
15375 * font.c (QCf): New variable.
15376 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15377 (font_prepare_composition): Delete this function.
15378 (font_range): Type and arguments changed.
15379 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15380 (font_fill_lglyph_metrics): New function.
15381 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
15382 (syms_of_font): DEFSYM QCf. Delete defsubr for
15383 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15384 Defsubr Sfont_shape_gstring.
15385
15386 * fontset.h (font_for_char): Extern it.
15387
15388 * fontset.c (font_for_char): New function.
15389
15390 * ftfont.c: Include composite.h.
15391 (ftfont_resolve_generic_family): Add langset "en" to pattern.
15392 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15393
15394 * indent.c: Include composite.h and dispextern.h.
15395 (check_composition): Delete this function.
15396 (scan_for_column): Handle composition by
15397 composition_compute_stop_pos, composition_reseat_it, and
15398 composition_update_it.
15399 (compute_motion): Likewise.
15400 (Fvertical_motion): Fix checking of composition.
15401
15402 * keyboard.c (adjust_point_for_property): Check composition by
15403 composition_adjust_point.
15404
15405 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
15406 struct glyph_string.
15407
15408 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15409 (append_composite_glyph): Adjust for the change of struct it and
15410 struct glyph.
15411 (produce_composite_glyph): Likewise.
15412
15413 * w32term.c (x_draw_composite_glyph_string_foreground):
15414 Adjust for the change of struct glyph_string.
15415 (x_draw_glyph_string): Likewise.
15416
15417 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15418 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15419
15420 * xdisp.c: Include font.h.
15421 (it_props): Delete the entry for Qauto_composed.
15422 (init_iterator): Initialize it->cmp_it.id to -1.
15423 (compute_stop_pos): Call composition_compute_stop_pos.
15424 (face_before_or_after_it_pos): Adjust for the change of struct it.
15425 (handle_auto_composed_prop): Delete it.
15426 (handle_composition_prop): Handle only static composition.
15427 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15428 from xassert. Initialize it->cmp_it.stop_pos.
15429 (push_it): Adjust for the change of struct it.
15430 (pop_it): Likewise.
15431 (get_next_element): Delete next_element_from_composition.
15432 (CHAR_COMPOSED_P): New macro.
15433 (get_next_display_element): For automatic composition, get a face
15434 from the font in the glyph-string.
15435 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
15436 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
15437 (next_element_from_string): Check if the character at the current
15438 position is composed by CHAR_COMPOSED_P.
15439 (next_element_from_buffer): Likewise.
15440 (next_element_from_composition): Adjust for the change of struct it.
15441 Update it->cmp_it.
15442 (dump_glyph): Adjust for the change of struct glyph.
15443 (fill_composite_glyph_string): Adjust for the change of struct
15444 it and struct glyph. Don't handle automatic composition here.
15445 (fill_gstring_glyph_string): New function.
15446 (x_get_glyph_overhangs): Handle automatic composition.
15447 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
15448 (BUILD_GSTRING_GLYPH_STRING): New macro.
15449 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15450 automatic composition.
15451 (append_composite_glyph): Adjust for the change of struct it and
15452 struct glyph.
15453 (x_produce_glyphs): Adjust for the change of struct it.
15454
15455 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15456 the change of struct glyph_string.
15457 (x_draw_glyph_string): Likewise.
15458
15459 2008-08-29 Glenn Morris <rgm@gnu.org>
15460
15461 * buffer.c (word-wrap): Doc fix.
15462 * xdisp.c (truncate-partial-width-windows): Doc fix.
15463 Increase default to 50.
15464
15465 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
15466
15467 * xdisp.c (update_tool_bar_unwind): New function.
15468 (update_tool_bar): Temporarily set selected frame before building
15469 tool-bar items.
15470
15471 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
15472
15473 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15474 snprintf, respectively.
15475 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15476
15477 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
15478
15479 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15480 LDFLAGS to GNUstep CC invocation.
15481
15482 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
15483
15484 * indent.c (Fvertical_motion): Revert last change. Handle the
15485 general case where we are moving forward, and PT spans multiple
15486 screen lines.
15487
15488 * eval.c (find_handler_clause): Temporarily increase
15489 max-lisp-eval-depth while printing the backtrace buffer, to
15490 guarantee that help-mode code can run.
15491
15492 2008-08-27 Eli Zaretskii <eliz@gnu.org>
15493
15494 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15495 colors under -rv.
15496 (IT_set_frame_parameters): Don't swap foreground and background
15497 colors if `(reverse . t)' is present in the frame properties.
15498 (internal_terminal_init): Call init_frame_faces only for the
15499 initial frame.
15500
15501 2008-08-27 Andreas Schwab <schwab@suse.de>
15502
15503 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15504
15505 2008-08-27 Andreas Schwab <schwab@suse.de>
15506
15507 * search.c (search_buffer): Set char_base to zero only at the end.
15508
15509 2008-08-27 Kenichi Handa <handa@m17n.org>
15510
15511 * fileio.c (report_file_error): Fix handling of multibyte error string.
15512
15513 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15514
15515 * xterm.c (x_term_init): Temporarily hide the partially
15516 initialized terminal while calling vendor-specific-keysyms.
15517
15518 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15519
15520 * msdos.c (internal_terminal_init): Most initializations done only
15521 once, especially initial_screen_colors[] and termscript open.
15522
15523 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15524
15525 * eval.c (Fcondition_case): Doc fix.
15526
15527 * widgetprv.h (EmacsFramePart): Change font member to the new font
15528 struct.
15529
15530 * widget.c: Include character.h and font.h for XSETFONT.
15531 (setup_frame_gcs): Compute X font id from font struct, just once.
15532
15533 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15534
15535 * term.c (get_named_tty): Fix last change.
15536
15537 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15538
15539 * indent.c (Fvertical_motion): If moving forward starting from a
15540 multi-line string, move the iterator to the last line of that string.
15541
15542 2008-08-25 Eli Zaretskii <eliz@gnu.org>
15543
15544 * frame.c (do_switch_frame): Mark previously displayed frame as
15545 obscured for FRAME_MSDOS_P frames as well.
15546
15547 2008-08-24 Eli Zaretskii <eliz@gnu.org>
15548
15549 * frame.c (make_terminal_frame): Initialize f->terminal,
15550 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15551 Set the top frame to newly created frame.
15552 (Fmake_terminal_frame): Reuse the_only_display_info.
15553
15554 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15555 estimating available memory.
15556
15557 2008-08-23 David Reitter <david.reitter@gmail.com>
15558
15559 * nsterm.m (ns_draw_window_cursor): Don't call
15560 NSDisableScreenUpdates and NSEnableScreenUpdates on
15561 non-NS_IMPL_COCOA systems.
15562
15563 2008-08-23 Andreas Schwab <schwab@suse.de>
15564
15565 * process.c (procfs_system_process_attributes): Fix use of
15566 uninitialized variables.
15567
15568 2008-08-23 Eli Zaretskii <eliz@gnu.org>
15569
15570 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15571
15572 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15573 calling tty-set-up-initial-frame-faces.
15574
15575 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15576 Allow MSDOS frames along with X frames.
15577
15578 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15579 addition to output_termcap.
15580
15581 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15582
15583 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15584 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15585 highlight.
15586
15587 * process.c [!subprocesses]: Define QCname.
15588 (syms_of_process): Intern and staticpro it.
15589
15590 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
15591 Adjust for changes in encoding/decoding routines.
15592 Use encode_coding_object and decode_coding_object instead of
15593 encode_coding and decode_coding.
15594
15595 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
15596
15597 * dosfns.c: Include frame.h before termhooks.h.
15598 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15599 variable termscript.
15600
15601 * s/msdos.h (USER_FULL_NAME): Define.
15602 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15603
15604 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15605 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15606 pw->pw_gecos.
15607
15608 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15609 SELECTED_FRAME as additional (1st) argument.
15610 (tty_read_avail_input): Handle output_msdos_raw in
15611 addition to output_termcap.
15612
15613 * msdos.c: Include frame.h before termhooks.h.
15614 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15615 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15616 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15617 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15618 (IT_set_terminal_modes, IT_reset_terminal_modes)
15619 (IT_set_frame_parameters): Use tty->termscript instead of a global
15620 variable termscript.
15621 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15622 global variable terminal_coding. Don't refer to
15623 Vnonascii_translation_table.
15624 (internal_terminal_init): Set Vwindow_system in current_kboard.
15625 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15626 Announce date and time of session start, if termscript is open.
15627 Don't zero out the_only_display_info (it is done in
15628 term.c:init_tty). Open termscript only of not already open.
15629 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
15630 here instead of dos_ttraw. Don't initialize display if this is an
15631 initial tty. Don't set FRAME_FONT.
15632 (Vwindow_system_version): Bump to 23.
15633 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15634 is available, set up mouse_position_hook.
15635 (dos_ttraw, IT_set_terminal_modes): If called with initial
15636 terminal, do nothing.
15637 (IT_set_frame_parameters): Handle the Qtty_type frame
15638 parameter by calling internal_terminal_init.
15639 (dos_set_window_size, show_mouse_face)
15640 (clear_mouse_face, IT_note_mode_line_highlight)
15641 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15642 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15643 (initialize_msdos_display): New function.
15644 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15645 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15646 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15647 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
15648 Accept additional argument: a pointer to a frame. Update all callers.
15649 (request_sigio, unrequest_sigio): Don't define, now defined on
15650 sysdep.c.
15651 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15652
15653 * term.c [MSDOS]: Include msdos.h.
15654 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15655 conditional to DOS_NT. Allow only one call to this function in a
15656 session. Don't allocate a new struct tty_display_info; instead,
15657 reuse the_only_display_info. Call get_tty_size to get screen
15658 dimensions. Call init_baud_rate to set bad_rate.
15659 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15660 (Fsuspend_tty) [MSDOS]: Don't close input and output.
15661 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
15662 (get_tty_terminal, get_named_tty, Ftty_type)
15663 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15664 output_termcap.
15665 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15666 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
15667 only when subprocesses are supported.
15668
15669 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15670 f->output_data.x.
15671 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15672 terminal devices.
15673
15674 * msdos.h: Remove definition of struct x_display_info and struct
15675 x_output.
15676 (FRAME_FONT): Use output_data.tty.
15677 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
15678 (struct x_display_info): Rename from display_info. Update all users in
15679 msdos.c.
15680 (struct x_output): Remove background_pixel and foreground_pixel.
15681 (the_only_display_info): Rename from the_only_x_display.
15682 (dos_ttraw): Update prototype.
15683
15684 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15685 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15686
15687 2008-08-23 Jason Rumney <jasonr@gnu.org>
15688
15689 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15690 (fn_TIFFSetDirectory): New library function used.
15691 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15692 (tiff_load): Use :index to select among multiple images. Set count
15693 property when multiple images exist.
15694 (gif_format): Use :index, not :image.
15695
15696 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
15697
15698 * xdisp.c (try_scrolling): Check INT_MAX instead of
15699 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15700 to obtain INT_MAX.
15701
15702 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15703
15704 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15705
15706 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15707
15708 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15709 GNUstep library location.
15710
15711 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
15712
15713 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15714 before using it.
15715
15716 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15717
15718 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15719
15720 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15721 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15722 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15723 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15724 (EmacsApp-cursor_blink_handler): Remove declaration.
15725 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15726 match 01 Feb 2008 changes in xterm.c.
15727 (ns_read_socket): Add cast to avoid warning.
15728 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15729 GNUstep.
15730
15731 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
15732
15733 * xselect.c (x_get_foreign_selection): Return nil if desired
15734 selection could not be obtained, instead of signalling an error.
15735
15736 2008-08-20 David Reitter <david.reitter@gmail.com>
15737
15738 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15739 * nsterm.m: Remove ns-specific code for cursor blinking.
15740 (ns_draw_window_cursor): Clear cursor properly rather than
15741 redrawing the area. Respect width of bar cursors.
15742 These changes enable the use of generic blink-cursor-mode and
15743 generic cursor types in NS and support smooth cursor movements (do
15744 not blink off after command).
15745 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15746 Nextstep, too.
15747
15748 2008-08-19 Kenichi Handa <handa@m17n.org>
15749
15750 * font.c (Vfont_log_deferred): New variable.
15751 (font_add_log): Check Vfont_log_deferred.
15752 (font_deferred_log): New function.
15753
15754 * font.h (font_deferred_log): Extern it.
15755
15756 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15757 for sorting.
15758 (face_for_char): Use deferred log.
15759
15760 2008-08-18 Kenichi Handa <handa@m17n.org>
15761
15762 * fontset.c (face_for_char): Add font log.
15763
15764 * font.c (font_add_log): Add the font properties :script, :lang,
15765 and :otf in the log.
15766
15767 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
15768
15769 * xdisp.c: Remove dead code.
15770 (handle_invisible_prop, next_overlay_string): Defer call to
15771 setup_for_ellipsis.
15772 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15773
15774 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
15775
15776 * xfaces.c (lookup_derived_face): Properly handle possible zero
15777 return value of get_lface_attributes.
15778 (merge_faces): Don't tell lookup_derived_face to signal an error
15779 if face is not found.
15780
15781 * dired.c (Fdirectory_files): Doc fix.
15782
15783 * process.c (make_process): Initialize kill_without_query struct
15784 member.
15785
15786 2008-08-15 Eli Zaretskii <eliz@gnu.org>
15787
15788 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15789 Alternative calculation of totphys for Visual Studio 6.
15790
15791 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15792
15793 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15794 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15795 All users changed.
15796 (stat): Only root directory passed to GetDriveType. Allow RAM
15797 disk as well as local fixed disk when w32-get-true-file-attributes
15798 is set to `local'.
15799 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15800 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15801 (w32_cached_id, w32_add_to_cache): New functions.
15802 (get_name_and_id): Look account names in the cache before calling
15803 lookup_account_sid.
15804 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15805 New initialization flags.
15806 (globals_of_w32): Initialize them to zero.
15807 (w32_system_process_attributes): Use w32_cached_id and
15808 w32_add_to_cache.
15809
15810 2008-08-14 Lawrence Mitchell <wence@gmx.li>
15811
15812 * lread.c (Fread_char, Fread_char_exclusive): If no character
15813 event is read before timeout is reached, return nil, rather than
15814 converting to a number.
15815
15816 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * fns.c (use_dialog_box): Doc fix.
15819
15820 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15821 on OS X.
15822
15823 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
15824
15825 * frame.c (Qns_parse_geometry): New var.
15826 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15827
15828 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
15829
15830 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15831 space character in calculating tabs.
15832
15833 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15834
15835 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15836
15837 2008-08-10 Glenn Morris <rgm@gnu.org>
15838
15839 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15840 silence gcc "limited range of data type" warnings in some
15841 make_fixnum_or_float calls.
15842
15843 2008-08-09 Eli Zaretskii <eliz@gnu.org>
15844
15845 * w32.c (w32_system_process_attributes): If the process does not
15846 exist, return nil.
15847
15848 * w32.c: Include thelp32.h, psapi.h and coding.h.
15849 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15850 declarations.
15851 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15852 (Process32Next_Proc): New typedefs.
15853 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15854 (g_b_init_process32_next, g_b_init_open_thread_token)
15855 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15856 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15857 (g_b_init_get_process_working_set_size)
15858 (g_b_init_global_memory_status_ex): New static variables.
15859 (globals_of_w32): Initialize them.
15860 (create_toolhelp32_snapshot, process32_first, process32_next)
15861 (open_thread_token, impersonate_self, revert_to_self)
15862 (get_process_memory_info, get_process_working_set_size)
15863 (global_memory_status, global_memory_status_ex): New wrapper
15864 functions.
15865 (w32_list_system_processes, w32_system_process_attributes)
15866 (enable_privilege, restore_privilege, ltime, process_times):
15867 New functions.
15868 (convert_time_raw): New function.
15869 (convert_time): Remove conversion of FILETIME into time in 100
15870 nsec units, call convert_time_raw instead.
15871
15872 * process.h (w32_list_system_processes, w32_system_process_attributes):
15873 Add prototypes.
15874 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15875 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15876 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15877 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15878
15879 * process.c (Fsystem_process_attributes): Doc fix.
15880
15881 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
15882
15883 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15884 a continued multi-char glyph; if so, advance to the actual glyph.
15885
15886 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15887
15888 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15889
15890 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15891 (.m.o): Use it.
15892 * config.in: Regenerate.
15893
15894 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
15895
15896 * xdisp.c (redisplay_window): Revert last change.
15897 (try_window): Check bottom scroll margin too.
15898
15899 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15900
15901 * config.in: Regenerate.
15902
15903 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15904 -list-load-path-shadows'.
15905 (nsgui.h): Reduce number of things depending on it.
15906
15907 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
15908
15909 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15910 instead of window-end which does the wrong thing at eob.
15911 (try_cursor_movement): Minor optimization.
15912 (redisplay_window): If scroll margin is defined, don't assume
15913 window doesn't need scrolling.
15914
15915 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15916
15917 * config.in: Regenerate.
15918
15919 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15920 (mostlyclean): Don't delete *.d under NS.
15921
15922 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15923
15924 2008-08-06 Kenichi Handa <handa@m17n.org>
15925
15926 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15927
15928 2008-08-06 Andreas Schwab <schwab@suse.de>
15929
15930 * config.in: Regenerate.
15931
15932 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
15933
15934 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15935 forcing a window start.
15936
15937 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15938 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15939
15940 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15941
15942 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15943 argument.
15944
15945 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
15946
15947 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15948 <scroll-down-aggressively, before-change-functions>:
15949 <after-change-functions>: Reflow docstrings.
15950
15951 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15952 Ken Raeburn <raeburn@gnu.org>
15953
15954 Dock menu customization, based on a patch by Ken Raeburn, plus some
15955 other fixes.
15956 * nsmenu.m (dockMenu): New variable.
15957 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15958
15959 * nsterm.h (dockMenu): Declare.
15960
15961 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15962 (ns_term_init): Initialize dockMenu.
15963 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15964 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15965 left.
15966
15967 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15968
15969 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
15970
15971 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15972
15973 * config.in: Regenerate.
15974
15975 2008-08-04 Seiji Zenitani <zenitani@mac.com>
15976
15977 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15978
15979 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
15980
15981 * nsterm.h (find_and_call_menu_selection): Fix prototype.
15982
15983 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15984
15985 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
15986
15987 * keyboard.h: Comment an #endif.
15988
15989 * lisp.h (have_menus_p): Adjust comment.
15990
15991 * menu.c (find_and_return_menu_selection): Fix comparison with
15992 client_data.
15993
15994 * nsmenu.m (popup_activated_flag): New variable.
15995 (popup_activated): New function.
15996 (menu-or-popup-active-p): New exported lisp definition.
15997 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
15998 when popup done.
15999 (ns_popup_dialog): Set popup_activated_flag.
16000
16001 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16002 version for GNUstep (handled by conditional typedef in nsterm.m).
16003 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16004 in rgb.txt).
16005
16006 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16007
16008 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16009
16010 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16011
16012 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16013 shortcircuit if popup_activated like GTK and X toolkit.
16014
16015 * m/inter386.h: Change DARWIN to DARWIN_OS.
16016
16017 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16018 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16019 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16020 Expand comment on NO_SOCK_SIGIO.
16021
16022 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16023
16024 * nsterm.m (windowDidResize): Remove stopModal call.
16025
16026 2008-08-03 Andreas Schwab <schwab@suse.de>
16027
16028 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16029 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16030
16031 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16032
16033 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16034 Don't use uninitialized pointer variable when using getrlimit.
16035
16036 2008-08-02 Jason Rumney <jasonr@gnu.org>
16037
16038 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16039
16040 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16041
16042 * alloc.c (NSTATICS): Bump to 0x640.
16043
16044 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16045
16046 * lisp.h: Add prototype for directory_files_internal.
16047
16048 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16049 New functions.
16050 (syms_of_process): Defsubr them. Add initializations for various
16051 Q* symbols used in procfs_system_process_attributes.
16052 (procfs_list_system_processes, procfs_system_process_attributes)
16053 [HAVE_PROCFS]: New functions.
16054 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16055 (procfs_get_total_memory): New functions.
16056
16057 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16058
16059 * xfaces.c (Fx_load_color_file): Fix previous change;
16060 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16061
16062 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16063
16064 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16065
16066 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16067
16068 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16069
16070 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16071
16072 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16073
16074 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16075 define NSApplicationDelegateReplySuccess.
16076 (EmacsView -converstationIdentifier): Use long instead of
16077 NSInteger for GNUstep, since it doesn't have NSInteger.
16078
16079 * xmenu.c: Revert last change.
16080
16081 * keyboard.h: Fix last change.
16082
16083 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16084
16085 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16086 on Windows.
16087
16088 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16089
16090 Warning clearing and clean-up in NS port.
16091 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16092 Add prototypes.
16093 * nsgui.h (FACE_DEFAULT): Remove, unused.
16094 (XGCValues): Change colors to unsigned long.
16095 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16096 nsterm.m.
16097 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16098 (ns_list_fonts): Remove, unused.
16099 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16100 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16101 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16102 (nsfont_draw): Compare face colors to 0, not nil.
16103 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16104 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16105 (-addSubmenuWithTitle:): Use NSMenuItem class.
16106 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16107 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16108 (ns_clip_to_row): Make gc arg a BOOL.
16109 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16110 ns_clip_to_row() call.
16111 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16112 used). Cast FRAME_FONT assignments.
16113 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16114 (ns_string_to_lispmod): Change arg to const char.
16115 (ns_term_init): Use NSMenuItem class.
16116 (EmacsApp -openFile:): Move to different section of file.
16117 (EmacsApp -application:openFiles:): Don't return a value, call
16118 -replyToOpenOrPrint:.
16119 (EmacsView -keyDown:): Fix up cast.
16120 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16121 (EmacsView -menuDown:): Cast tag in call to
16122 find_and_call_menu_selection().
16123 (ns_list_fonts): Remove, unused.
16124 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16125 (ns_fontname_to_xlfd): Make static.
16126 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16127 Remove prototypes (now in keyboard.h).
16128 (next_menubar_widget_id): Remove, unused.
16129 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16130 Remove prototypes (now in keyboard.h).
16131 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16132
16133 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16134
16135 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16136 (floatfns.o): Depend on syssignal.h.
16137 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16138
16139 * systty.h: Fix previous change that removed BSD_TERMIOS.
16140 Add comments to #ifdefs.
16141
16142 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16143
16144 * w32fns.c (w32-load-color-file): Remove.
16145 (x-open-connection): Use renamed Fx_load_color_file.
16146 * xfaces.c (x-load-color-file): Add.
16147 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16148 Emacs.clr.
16149 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16150
16151 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16152
16153 * dbusbind.c (Fdbus_call_method_asynchronously)
16154 (Fdbus_method_error_internal): New defuns.
16155 (xd_read_message): Handle also reply messages.
16156 (Vdbus_registered_functions_table): Extend docstring.
16157
16158 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16159
16160 * keyboard.c (gobble_input): Fix previous change.
16161
16162 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16163
16164 * bitmaps/README:
16165 * xfns.c:
16166 * termcap.c:
16167 * term.c:
16168 * syswait.h:
16169 * systty.h:
16170 * systime.h:
16171 * syssignal.h:
16172 * sysdep.c:
16173 * process.h:
16174 * process.c:
16175 * print.c:
16176 * ndir.h:
16177 * lread.c:
16178 * keyboard.c:
16179 * getpagesize.h:
16180 * floatfns.c:
16181 * fileio.c:
16182 * emacs.c:
16183 * doc.c:
16184 * dispnew.c:
16185 * dired.c:
16186 * data.c:
16187 * callproc.c:
16188 * buffer.c:
16189 * README:
16190 * Makefile.in:
16191 * s/template.h:
16192 * s/msdos.h:
16193 * m/vax.h: Remove VMS support.
16194 * s/vms.h:
16195 * vlimit.h:
16196 * uaf.h:
16197 * temacs.opt:
16198 * param.h:
16199 * ioctl.h: Remove file.
16200
16201 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16202
16203 * s/ms-w32.h (MULTI_KBOARD): Remove.
16204 * xterm.c:
16205 * xselect.c:
16206 * xfns.c:
16207 * window.c:
16208 * w32term.c:
16209 * w32fns.c:
16210 * terminal.c:
16211 * termhooks.h:
16212 * term.c:
16213 * sysdep.c:
16214 * keyboard.h:
16215 * keyboard.c:
16216 * frame.h:
16217 * frame.c:
16218 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16219 * config.in: Regenerate.
16220
16221 2008-07-30 Jason Rumney <jasonr@gnu.org>
16222
16223 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16224
16225 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16226 (w32font_open_internal): Get unicode version of textmetrics.
16227 Don't enable or disable glyph indices here.
16228 (w32font_open): Disable use of glyph indices.
16229
16230 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16231
16232 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16233
16234 * minibuf.c (Vread_buffer_function): Doc fix.
16235
16236 2008-07-30 John Paul Wallington <jpw@pobox.com>
16237
16238 * minibuf.c (read_buffer_completion_ignore_case): New var.
16239 (Fread_buffer): Use it.
16240
16241 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16242
16243 * systty.h (sensemode): Remove empty #if. Remove reference to
16244 BSD_TERMIOS, unused.
16245
16246 * sysdep.c: Remove reference to DGUX.
16247 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16248
16249 * config.in: Regenerate.
16250
16251 2008-07-30 Jason Rumney <jasonr@gnu.org>
16252
16253 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16254
16255 2008-07-29 Jason Rumney <jasonr@gnu.org>
16256
16257 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16258 is populated.
16259 (uniscribe_encode_char): Always use uniscribe.
16260 Avoid using context if cache is populated.
16261
16262 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16263
16264 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16265 open menu.
16266
16267 * gtkutil.c (menu_nav_ended): Remove.
16268 (create_menus): Remove signal connect for menu_nav_ended.
16269
16270 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16271
16272 * xdisp.c (redisplay_window): Check return value of
16273 compute_window_start_on_continuation_line before forcing a window
16274 start.
16275
16276 2008-07-28 Jason Rumney <jasonr@gnu.org>
16277
16278 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16279
16280 * w32term.c (w32_enable_unicode_output, cleartype_active):
16281 Remove obsolete display options.
16282 (x_draw_glyph_string_background): Don't use old cleartype_active
16283 workaround.
16284 (w32_initialize): Remove cleartype_active initialization.
16285 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16286
16287 2008-07-28 Andreas Schwab <schwab@suse.de>
16288
16289 * lisp.h (init_weak_hash_tables, syms_of_font)
16290 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16291 (remove_hash_entry): Don't declare.
16292 * eval.c (maybe_call_debugger): Make static and move before use.
16293 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16294 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16295 * xterm.h (x_set_frame_alpha): Declare.
16296
16297 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16298
16299 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16300 (create_menus): Connect selection-done to menu_nav_ended.
16301
16302 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16303
16304 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16305 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16306 parameter with read of 'alpha' one.
16307 (Qns_frame_parameter): Remove.
16308 * nsselect.m (selection-coding-system)
16309 (next-selection-coding-system, Vselection_coding_system)
16310 (Vnext_selection_coding_system): Drop.
16311
16312 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16313
16314 * nsfns.m (do-applescript, do_applescript): Rename to
16315 ns-do-applescript, ns_do_applescript, and move within file.
16316
16317 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16318
16319 Remove support for Mac Carbon.
16320 * mactoolbox.c:
16321 * macterm.h:
16322 * macterm.c:
16323 * macselect.c:
16324 * macmenu.c:
16325 * macgui.h:
16326 * macfns.c:
16327 * mac.c: Remove file.
16328 * s/darwin.h:
16329 * m/intel386.h:
16330 * xfaces.c:
16331 * xdisp.c:
16332 * window.c:
16333 * tparam.c:
16334 * termhooks.h:
16335 * termcap.c:
16336 * term.c:
16337 * syssignal.h:
16338 * sysselect.h:
16339 * sysdep.c:
16340 * process.c:
16341 * lread.c:
16342 * lisp.h:
16343 * keyboard.c:
16344 * image.c:
16345 * fringe.c:
16346 * frame.h:
16347 * frame.c:
16348 * fontset.c:
16349 * font.h:
16350 * font.c:
16351 * fns.c:
16352 * fileio.c:
16353 * emacs.c:
16354 * dispnew.c:
16355 * dispextern.h:
16356 * config.in:
16357 * atimer.c:
16358 * Makefile.in: Remove code for Carbon.
16359
16360 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16361
16362 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16363
16364 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16365
16366 * macterm.h (kCGBitmapByteOrder32Host): New define for
16367 non-universal SDKs.
16368
16369 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16370 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16371
16372 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16373 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16374
16375 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16376
16377 * w32inevt.c: Include dispextern.h.
16378
16379 2008-07-26 Andreas Schwab <schwab@suse.de>
16380
16381 * print.c (print_object): Fix off-by-one in last change.
16382
16383 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
16384
16385 * term.c (syms_of_term): Don't initialize default_orig_pair,
16386 default_set_foreground and default_set_background on Windows.
16387
16388 2008-07-25 Jason Rumney <jasonr@gnu.org>
16389
16390 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16391 ScriptItemize. Clean up return value checking. Remove unused
16392 variables.
16393 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16394 shaping engine.
16395
16396 * w32font.c (w32font_has_char): Handle the case where we can't
16397 determine the script for a character.
16398
16399 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16400
16401 * term.c (syms_of_term): Initialize default_orig_pair,
16402 default_set_foreground, and default_set_background.
16403
16404 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16405 clash (bug#86).
16406 (getloadavg): Callers changed.
16407
16408 * image.c (svg_load_image): Fix last change.
16409 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16410 image size is valid. Use g_object_unref instead of deprecated
16411 rsvg_handle_free to free rsvg handle.
16412 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16413
16414 2008-07-25 Jason Rumney <jasonr@gnu.org>
16415
16416 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16417 surrogates before looking up glyph index.
16418 (w32font_text_extents): Encode as surrogates if falling back to
16419 functions that need UTF-16 wide chars.
16420
16421 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16422 BMP as surrogates before looking up glyph index.
16423
16424 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16425
16426 * image.c (svg_load_image): Check for failure in return value of
16427 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16428
16429 2008-07-25 Jason Rumney <jasonr@gnu.org>
16430
16431 * w32font.c (Fx_select_font): Reverse sense of second arg.
16432
16433 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16434
16435 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16436 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16437
16438 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16439 (PURESIZE): Use it.
16440
16441 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16442
16443 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16444 * m/alpha.h (TEXT_END):
16445 * m/ibmrs6000.h (TEXT_END):
16446 * m/macppc.h (TEXT_END):
16447 * s/darwin.h (TEXT_END):
16448 * s/msdos.h (TEXT_END): Remove, unused.
16449 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16450 * s/cygwin.h: Remove comment.
16451
16452 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16453 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16454 * m/intel386.h (DOT_GLOBAL_START):
16455 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16456 (USG): Remove, file not used on USG platforms.
16457
16458 * Makefile.in (HAVE_X11): Remove empty #else.
16459
16460 2008-07-24 Andreas Schwab <schwab@suse.de>
16461
16462 * fileio.c (Finsert_file_contents): Properly adjust undo list
16463 after format conversion.
16464
16465 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16466
16467 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16468 (menu_nav_ended): Remove.
16469 (create_menus): Remove signal connect for menu_nav_ended.
16470 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16471 create_menus.
16472 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16473
16474 2008-07-23 Jason Rumney <jasonr@gnu.org>
16475
16476 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16477 with opened font.
16478 (w32font_open): Set font type to gdi.
16479
16480 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16481
16482 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16483
16484 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16485 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16486 defines it.
16487 * unexec.c (ADDR_CORRECT): Define unconditionally.
16488
16489 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16490
16491 * unexec.c: Remove code depending on !COFF and USG, the file is
16492 not used for such systems.
16493
16494 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16495 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16496 (LD_SWITCH_SYSTEM_1): Remove, update users.
16497
16498 * s/darwin.h (DATA_END):
16499 * m/intel386.h (DATA_END):
16500 * m/ibmrs6000.h (DATA_END):
16501 * m/alpha.h (DATA_END): Remove, unused.
16502
16503 * config.in: Regenerate.
16504 * s/ms-w32.h (subprocesses): Define unconditionally.
16505 * s/template.h (subprocesses): Update comment.
16506 * s/vms.h (subprocesses):
16507 * s/usg5-4.h (subprocesses):
16508 * s/hpux10-20.h (subprocesses):
16509 * s/gnu-linux.h (subprocesses):
16510 * s/cygwin.h (subprocesses):
16511 * s/bsd-common.h (subprocesses):
16512 * s/aix4-2.h (subprocesses):
16513 * s/darwin.h (subprocesses): Do not define, defined by default now.
16514
16515 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16516 Remove all references.
16517 (temacs): Add GNUstep specific ld flags.
16518
16519 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16520 similarly to what X does.
16521
16522 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16523
16524 * nsfns.m (x-list-fonts): Remove.
16525 (syms_of_nsfns): Drop the x-list-fonts declaration.
16526 * nsterm.m: Get rid of remaining "//" comments.
16527
16528 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
16529
16530 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16531
16532 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16533 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16534 (Fns_own_selection_internal, Fx_disown_selection_internal)
16535 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16536
16537 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16538 ... */' style of docstrings. Doc fixes.
16539
16540 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16541
16542 * terminfo.c (UP, BC, PC): Undo previous change.
16543
16544 * nsfns.m: Rename ns prefixed functions/variables to the
16545 corresponding x versions. Update references.
16546
16547 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16548
16549 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16550
16551 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16552
16553 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16554 Remove forwarding functions.
16555 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16556 non-static.
16557 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16558 non-static.
16559 (ns_frame_parm_handlers): Use the new names.
16560 (syms_of_nsfns): Move to the end of file.
16561
16562 * nsterm.m (syms_of_nsterm): Move to the end of file.
16563
16564 * dispnew.c (init_display): Remove code for X10.
16565
16566 2008-07-22 Jason Rumney <jasonr@gnu.org>
16567
16568 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16569 bare drive.
16570
16571 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16572
16573 * nsterm.m (syms_of_nsterm): Remove debugging println.
16574
16575 2008-07-22 David Reitter <david.reitter@gmail.com>
16576
16577 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16578 Carbon implementation of the same functionality: execute arbitrary
16579 AppleScript code.
16580
16581 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16582
16583 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16584 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16585 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16586 (Fx_display_mm_height, Fx_display_mm_width)
16587 (Fx_display_backing_store, Fx_display_visual_class)
16588 (Fx_display_save_under, Fx_open_connection)
16589 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16590 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16591 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16592 (Fx_display_pixel_width, Fx_display_pixel_height)
16593 (Fx_display_usable_bounds, Fx_display_planes)
16594 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16595 ... */' style of docstrings.
16596
16597 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16598
16599 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16600 on this platform.
16601 (mips):
16602 * m/iris4d.h (mips): Do not define.
16603 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16604
16605 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16606
16607 * image.c:
16608 * nsfns.m:
16609 * nsselect.m:
16610 * nsterm.h:
16611 * nsterm.m: Rename ns prefixed functions/variables to the
16612 corresponding x versions. Update references.
16613
16614 * m/ibms390x.h (NO_REMAP): Do not undefine.
16615
16616 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16617
16618 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
16619
16620 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16621 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16622 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16623 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16624 (Fns_display_mm_height, Fns_display_mm_width)
16625 (Fns_display_backing_store, Fns_display_visual_class)
16626 (Fns_display_save_under, Fns_open_connection)
16627 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16628 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16629 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16630 (Fns_display_pixel_width, Fns_display_pixel_height)
16631 (Fns_display_usable_bounds, Fx_display_planes)
16632 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16633
16634 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16635
16636 * print.c (print_object): Check print_depth before searching for
16637 circularities.
16638
16639 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
16640
16641 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16642 only sprintf.
16643
16644 2008-07-21 Kenichi Handa <handa@m17n.org>
16645
16646 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16647
16648 2008-07-20 Andreas Schwab <schwab@suse.de>
16649
16650 * syntax.c (find_start_pos, find_start_value)
16651 (find_start_value_byte, find_start_begv, find_defun_start)
16652 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16653
16654 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16655
16656 * s/sol2-3.h: Insert contents of s/sol2.h.
16657 (LD_SWITCH_SYSTEM): Remove redundant definition.
16658 * s/sol2.h: Remove, unused.
16659
16660 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16661
16662 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16663
16664 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16665
16666 * Makefile.in (ns_appdir): Fix typo in find command.
16667
16668 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16669
16670 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16671
16672 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16673 added not supported anymore.
16674
16675 * s/usg5-4-2.h (LIBS_SYSTEM):
16676 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16677
16678 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16679 * s/lynxos.h (GETPGRP_NO_ARG):
16680 * s/hpux10-20.h (NO_SIOCTL_H):
16681 * s/gnu.h (GETPGRP_NO_ARG):
16682 * s/gnu-linux.h (NO_SIOCTL_H):
16683 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16684 * s/cygwin.h (GETPGRP_NO_ARG):
16685 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16686 (C_DEBUG_SWITCH): Remove duplicate definition.
16687
16688 * m/ibms390.h: Remove boilerplate comments.
16689
16690 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16691
16692 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16693 (wait_reading_process_output): Remove code for SunOS, platform not
16694 supported anymore. Use SOLARIS2 instead of sun.
16695
16696 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16697
16698 * font.c (font_open_by_name): Under NS, default lface height to zero.
16699 (font_open_for_lface): Under NS, set size based on frame fontsize.
16700 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16701 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16702
16703 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16704
16705 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16706 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16707 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16708 YES/NO.
16709 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16710 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16711 * Makefile.in (clean): Clear out build destination dir.
16712
16713 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16714
16715 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16716 xterm, xselect.
16717 * lisp.h: Remove declaration of hash_remove.
16718 * nsgui.h: Remove redefinitions of hash_remove.
16719 * fns.c (hash_remove): Rename to hash_remove_from_table.
16720
16721 2008-07-19 Seiji Zenitani <zenitani@mac.com>
16722
16723 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16724 strdup() the family UTF8String before modifying it.
16725
16726 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16727
16728 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16729 NS_FACE_BACKGROUND with 0 instead of nil.
16730 * nsfont.m (nsfont_draw): Same.
16731
16732 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
16733
16734 * nsfns.m (ns_set_background_color): Fix crash.
16735
16736 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
16737
16738 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16739
16740 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16741
16742 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16743
16744 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16745
16746 * gtkutil.c: Include <config.h> instead of "config.h".
16747
16748 * lisp.h (Foverlay_buffer): Add EXFUN.
16749
16750 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16751 child process to complete child_setup. Undo 2005-09-21 change.
16752
16753 * s/darwin.h: Mention setsid after vfork.
16754
16755 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16756
16757 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16758 Depend on macgui.h.
16759
16760 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16761 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16762
16763 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16764 and f19.
16765 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16766
16767 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16768 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16769 Remove enumerators.
16770
16771 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16772 Check if FACE_FROM_ID returns NULL.
16773
16774 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16775
16776 * w32inevt.c (change_frame_size): Remove extern declaration.
16777 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16778 change_frame_size.
16779
16780 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16781
16782 * getloadavg.c: Revert last change (2008-07-15).
16783
16784 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16785
16786 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
16787 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
16788 from configure.
16789
16790 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16791
16792 * s/sol2.h:
16793 * s/sol2-4.h: Reorganize conditionals.
16794
16795 * ecrt0.c: Remove code depending on m68000, not used anymore.
16796
16797 * fns.c (hash_remove): Make static.
16798 * lisp.h (hash_remove): Don't prototype.
16799
16800 * m/ibmrs6000.h:
16801 * m/ibms390x.h:
16802 * m/macppc.h: Remove boilerplate comments.
16803
16804 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16805 Solaris, which does not need them.
16806
16807 * m/vax.h: Remove comments about unsupported systems.
16808
16809 * s/darwin.h: Reorganize ifdefs.
16810
16811 2008-07-17 Andreas Schwab <schwab@suse.de>
16812
16813 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16814
16815 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16816
16817 Use SDATA. Follow coding convention of placing operators at
16818 beginning of next line rather than end of previous line, and placing
16819 spaces around infix operators.
16820
16821 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16822 in case it was defined already.
16823 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16824 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16825 ns_default.
16826 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16827 Lisp_Objects.
16828 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16829 (ns_defined_color, ns_color_to_lisp): Declare.
16830 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16831 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16832 it's accepted even with USE_LISP_UNION_TYPE.
16833 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16834 (update_frame_tool_bar): Remove apparently obsolete tests for
16835 non-integerness of f->tool_bar_lines.
16836 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16837 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16838 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16839 (nsfont_open): Don't confuse NULL for Qnil.
16840 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16841 * menu.h (find_and_call_menu_selection):
16842 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16843 (find_and_return_menu_selection): Always return something.
16844 * frame.h: Include dispextern.h for Display_Info.
16845 (display_x_get_resource): Declare.
16846
16847 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16848
16849 * syntax.c: Remove stdio.h include accidentally introduced in
16850 Emacs.app commit.
16851 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16852 NS_IMPL_COCOA.
16853 * keyboard.c (handle_async_input, input_available_signal): Remove
16854 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16855
16856 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16857
16858 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16859 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16860 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16861 Use SDATA.
16862
16863 * keymap.c: Remove all NS-specific code.
16864 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16865 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16866 where_is_preferred_modifier, return a different value depending on how
16867 preferred is the binding.
16868 (where_is_internal): Adjust accordingly.
16869 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16870 Adjust to new preferred_sequence_p.
16871 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16872 * keyboard.c (parse_solitary_modifier): Not static any more.
16873 * keyboard.h (parse_solitary_modifier): Declare.
16874
16875 2008-07-16 Andreas Schwab <schwab@suse.de>
16876
16877 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16878 of easymenu.
16879
16880 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
16881
16882 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16883 that we don't move off the line.
16884
16885 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16886
16887 * keyboard.c (Qsuper): Remove.
16888 (parse_menu_item): Don't call where_is_internal specially for NS.
16889
16890 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16891
16892 * s/gnu-linux.h: Remove boilerplate comments.
16893
16894 * m/alpha.h (__ELF__): Consolidate conditions.
16895
16896 * m/m68k.h (linux): Use GNU_LINUX instead.
16897 Remove boilerplate comments.
16898
16899 * m/intel386.h: Undo refactoring from previous change.
16900 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16901 too, remove dead code.
16902 (linux): Use GNU_LINUX instead.
16903
16904 2008-07-16 Jason Rumney <jasonr@gnu.org>
16905
16906 * w32gui.h: Repeat 26 June changes lost by last change.
16907
16908 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16909
16910 * systty.h: Remove code for Aix on 386, unsupported platform.
16911
16912 * s/ms-w32.h: Remove boilerplate comments.
16913 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16914
16915 * s/gnu-linux.h (TERM): Remove support.
16916 (HAVE_SYSVIPC): Remove, unused.
16917 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16918 for this system.
16919
16920 * process.c: Remove support for IRIS, unused.
16921 Remove support for TERM, not relevant anymore.
16922
16923 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16924 used with the definition.
16925
16926 * s/aix4-2.h (static): Do not undef.
16927
16928 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16929 only used on Aix.
16930 (HAVE_SYSVIPC): Remove, unused.
16931
16932 * m/hp800.h (CANNOT_DUMP): Do not undef.
16933
16934 * m/alpha.h: Fix comment.
16935
16936 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16937 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16938 used by this configuration.
16939 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16940 * unexec.c: Remove code depending on HPUX and
16941 USG_SHARED_LIBRARIES, not used with this file. Remove code
16942 depending on IRIS, unused. Remove if 0-ed code.
16943
16944 * s/template.h: Remove comments about static.
16945
16946 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16947 Remove if 0-ed code.
16948 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16949 were the same as the default.
16950 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16951 Remove boilerplate comments.
16952 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16953 (HAVE_SYSVIPC): Remove, unused.
16954 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16955
16956 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16957 Remove boilerplate comments.
16958 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16959 Remove boilerplate comments.
16960 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16961 Remove boilerplate comments.
16962 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16963
16964 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16965 USG systems which do not use DATA_SEG_BITS.
16966 Refactor code. Remove boilerplate comments.
16967
16968 * m/ibms390.h:
16969 * m/m68k.h:
16970 * s/bsd-common.h:
16971 * s/cygwin.h:
16972 * s/darwin.h:
16973 * s/freebsd.h:
16974 * s/gnu.h:
16975 * s/msdos.h: Remove boilerplate comments.
16976
16977 * m/iris4d.h: Remove boilerplate comments and code for systems that
16978 do not use this file.
16979 (IRIS_4D): Remove, unused.
16980
16981 * m/mips.h: Remove boilerplate comments and code for systems that
16982 do not use this file.
16983 (SIGN_EXTEND_CHAR):
16984 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
16985 * unexmips.c: Remove file, unused.
16986
16987 * editfns.c (Fuser_full_name): Replace the only use of
16988 USER_FULL_NAME with its value.
16989 * config.in: Regenerate.
16990
16991 2008-07-16 David Reitter <david.reitter@gmail.com>
16992
16993 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
16994 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
16995
16996 2008-07-16 Glenn Morris <rgm@gnu.org>
16997
16998 * emacs.c (system-type): Doc fix.
16999
17000 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17001
17002 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17003 If the cache doesn't work, let's fix it, rather than work around it.
17004
17005 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17006
17007 * Makefile.in: Correct additions for nsfont.o in last commit.
17008 * nsfont.m: New file (forgot last commit).
17009
17010 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17011
17012 * callproc.c (set_initial_environment):
17013 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17014 batch-compiling for bootstrap).
17015
17016 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17017 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17018
17019 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17020 CANNOT_DUMP case -- fix crash due to different init order.
17021
17022 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17023
17024 Changes and additions for NeXTstep windowing system (Cocoa and
17025 GNUstep) support.
17026
17027 * Makefile.in:
17028 * config.in: Support defines and build commands for NS port.
17029 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17030 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17031 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17032 windowing.
17033 (struct face): Add synth_ital field.
17034 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17035 (init_display): Initialize Vinitial_window_system to "ns" when so
17036 compiled.
17037 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17038 (display_arg): Use under NS.
17039 (main): Under NS, allocate autorelease pool and handle command line
17040 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17041 (standard_args): Add NS-specific args.
17042 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17043 * font.c (DEFAULT_ENCODING): New variable.
17044 (font_find_for_lface): Use it.
17045 (syms_of_font): Load syms_of_nsfont under NS.
17046 * font.h: Declare nsfont_driver when compiled under NS.
17047 * fontset.c: When compiling under NS, include nsterm.h.
17048 (fontset_from_font): Autoconstruct fontset under NS.
17049 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17050 symbol, document and use it.
17051 (do_switch_frame): When for_deletion under Cocoa, add
17052 Fraise_frame(Qnil).
17053 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17054 (x_get_arg): Allow "yes" and "no" as boolean values.
17055 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17056 Qright under Cocoa.
17057 (focus-follows-mouse): Default to 0 under NS.
17058 * frame.h (enum output_method): Add output_ns.
17059 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17060 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17061 (FRAME_WINDOW_P): NS-specific definition.
17062 * fringe.c (max_used_fringe_bitmap): Make public.
17063 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17064 (getloadavg): Use NeXT code under descendant OS's.
17065 * image.c (includes and header section, x_create_bitmap_from_data)
17066 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17067 (image_background_transparent, x_clear_image_1)
17068 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17069 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17070 (x_to_xcolors, x_from_xcolors, x_disable_image)
17071 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17072 other GUIs, including XPM support using code originally written for
17073 Carbon GUI.
17074 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17075 using NS API.
17076 (image_ascent): Use font metrics macros instead of direct struct field
17077 access.
17078 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17079 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17080 Also, handle NS as GTK for menu bar purposes.
17081 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17082 toolkit where they differ.
17083 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17084 use cachelist, still needed under NS.
17085 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17086 (struct widget_value): Define it here for menu.c.
17087 * keymap.c (includes): Include modifier internals.
17088 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17089 NS.
17090 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17091 support for preferring sequences using certain modifiers, specified by
17092 the FIRSTONLY argument.
17093 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17094 under NS GNUstep implementation.
17095 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17096 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17097 * menu.c: Include nsterm.h under NS.
17098 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17099 (free_menubar_widget_tree_value, update_submenu_strings)
17100 (find_and_call_menu_selection): Treat NS as X and NT.
17101 (find_and_return_menu_selection): New function, used for popup menus.
17102 * nsgui.h:
17103 * nsterm.h:
17104 * nsfns.m:
17105 * nsimage.m:
17106 * nsmenu.m:
17107 * nsselect.m:
17108 * nsterm.m: New files.
17109 * process.c (wait_reading_process_output): Under NS, call ns_select()
17110 instead of plain select().
17111 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17112 beginning of buffer.
17113 * sysselect.h (init_process): Rename when compiling under Cocoa to
17114 avoid name conflict.
17115 * termhooks.h (display_info): Add ns_display_info to union.
17116 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17117 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17118 COCOA environment.
17119 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17120 unexec() signature. (Note, this will dump, but the resulting file
17121 crashes; unexosx is used instead; keeping around for reference and
17122 possible aid in getting dump working under GNUstep.)
17123 * w32gui.h (button_type, widget_value): Remove definitions (now in
17124 keyboard.h).
17125 * window.c: Include nsterm.h when compiling under NS.
17126 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17127 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17128 other GUI windowing systems.
17129 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17130 GTK.
17131 (x_consider_frame_title): Under NS, set icon type and frame
17132 modified-state indicator; use ns_set_name_as_filename() when using
17133 formatted title.
17134 (update_window_cursor): Make public when compiling under NS.
17135 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17136 (hourglass_atimer, Vhourglass_delay
17137 * xfaces.c (header section, init_frame_faces, clear_font_table)
17138 (defined_color, unload_color, x_face_list_fonts)
17139 (prepare_face_for_display): Add NS support parallel to other GUIs.
17140 Emulate GCs like other non-X GUIs.
17141 (split_font_name): Don't lowercase font name under NS.
17142 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17143 under NS.
17144 * s/darwin.h: Add support for compilation under NS.
17145
17146 2008-07-15 Jason Rumney <jasonr@gnu.org>
17147
17148 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17149 (w32_show_hourglass): Rename from show_hourglass.
17150 (w32_hide_hourglass): Rename from hide_hourglass.
17151 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17152 (Vhourglass_delay): Declare extern.
17153 (hourglass_started): Remove.
17154
17155 * xdisp.c (Vhourglass_delay): Remove static.
17156 (hourglass_started, start_hourglass, cancel_hourglass):
17157 Don't include these versions on WINDOWSNT.
17158
17159 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17160
17161 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17162 variables (formerly in xfns.c).
17163 (show_hourglass, hide_hourglass): New prototypes (same).
17164 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17165 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17166 in xfns.c).
17167 (syms_of_xdisp): Declare/initialize display-hourglass,
17168 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17169 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17170 formerly in xfns.c.
17171 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17172 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17173 (start_hourglass, cancel_hourglass): Remove.
17174 (show_hourglass, hide_hourglass): Remove prototypes and static
17175 modifiers.
17176 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17177 hourglass_atimer, hourglass_shown_p declaration/initialization.
17178 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17179 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17180 (start_hourglass, cancel_hourglass): Remove.
17181 (show_hourglass, hide_hourglass): Remove prototypes and static
17182 modifiers.
17183 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17184 hourglass_atimer, hourglass_shown_p declaration/initialization.
17185 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17186 (DEFAULT_HOURGLASS_DELAY): Remove.
17187 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17188 hourglass_shown_p declaration/initialization.
17189
17190 2008-07-14 Jason Rumney <jasonr@gnu.org>
17191
17192 * w32fns.c (w32_get_arg): Remove wrapper function.
17193 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17194 directly.
17195 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17196
17197 2008-07-14 Kenichi Handa <handa@m17n.org>
17198
17199 * xfont.c (xfont_open): Add workaround for X's bug.
17200
17201 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17202
17203 * fontset.c: Include <stdio.h> unconditionally.
17204
17205 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17206
17207 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17208 for filtering.
17209
17210 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17211
17212 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17213
17214 * m/macppc.h:
17215 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17216
17217 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17218 (SPECIAL_EMACS_INT):
17219 * m/ia64.h (SPECIAL_EMACS_INT):
17220 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17221 * s/gnu.h (NLIST_STRUCT):
17222 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17223 * s/gnu-linux.h (LINUX):
17224 * s/msdos.h (HAVE_FACES):
17225 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17226
17227 * systty.h:
17228 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17229 anymore.
17230
17231 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17232
17233 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17234 always defined as int.
17235
17236 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17237 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17238 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17239 * s/freebsd.h (HAVE_WAIT_HEADER):
17240 * s/bsd-common.h (HAVE_UNION_WAIT):
17241 * s/aix4-2.h (HAVE_WAIT_HEADER):
17242 * m/mips.h (HAVE_UNION_WAIT):
17243 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17244 (COFF, static): Do not define, they are undefined later in the file.
17245
17246 * process.c (update_status): Don't use a union.
17247 (status_convert):
17248 (sigchld_handler): Use int instead of WAITTYPE.
17249
17250 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17251
17252 * indent.c (Fvertical_motion): Restore hscroll before moving to
17253 goal column.
17254
17255 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17256
17257 * lisp.h: Remove left over code.
17258
17259 2008-07-11 Andreas Schwab <schwab@suse.de>
17260
17261 * lisp.h: Fix logic in last change.
17262
17263 * menu.h: New file.
17264 * menu.c: Include it.
17265 * xmenu.c: Likewise.
17266 * Makefile.in: Update dependencies.
17267
17268 2008-07-11 Kenichi Handa <handa@m17n.org>
17269
17270 * fontset.c (fontset_from_font): Cancel the previous change.
17271
17272 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17273
17274 * lisp.h:
17275 * w32heap.c:
17276 * emacs.c:
17277 * alloc.c: Replace all references of NO_UNION_TYPE with
17278 USE_LISP_UNION_TYPE.
17279
17280 * m/xtensa.h (NO_UNION_TYPE):
17281 * m/vax.h (NO_UNION_TYPE):
17282 * m/template.h (NO_UNION_TYPE):
17283 * m/sparc.h (NO_UNION_TYPE):
17284 * m/mips.h (NO_UNION_TYPE):
17285 * m/macppc.h (NO_UNION_TYPE):
17286 * m/m68k.h (NO_UNION_TYPE):
17287 * m/iris4d.h (NO_UNION_TYPE):
17288 * m/intel386.h (NO_UNION_TYPE):
17289 * m/ibms390x.h (NO_UNION_TYPE):
17290 * m/ibms390.h (NO_UNION_TYPE):
17291 * m/ibmrs6000.h (NO_UNION_TYPE):
17292 * m/ia64.h (NO_UNION_TYPE):
17293 * m/hp800.h (NO_UNION_TYPE):
17294 * m/arm.h (NO_UNION_TYPE):
17295 * m/amdx86-64.h (NO_UNION_TYPE):
17296 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17297 defining it the same.
17298
17299 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17300
17301 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17302
17303 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17304
17305 * fileio.c:
17306 * sysdep.c:
17307 * systty.h:
17308 * m/ibmrs6000.h:
17309 * m/iris4d.h:
17310 * s/aix4-2.h:
17311 * s/freebsd.h:
17312 * s/gnu-linux.h:
17313 * s/hpux10-20.h:
17314 * s/hpux11.h:
17315 * s/netbsd.h:
17316 * s/sol2-3.h:
17317 * s/sol2-4.h:
17318 * s/sol2.h:
17319 * s/usg5-4.h:
17320 * s/vms.h: Remove references to unused variables.
17321
17322 2008-07-10 Andreas Schwab <schwab@suse.de>
17323
17324 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17325 pattern before matching the generic family.
17326
17327 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17328
17329 * unexec.c:
17330 * s/vms.h:
17331 * s/usg5-4-2.h:
17332 * s/sol2-5.h:
17333 * s/freebsd.h:
17334 * s/darwin.h: Remove dead code.
17335
17336 * m/template.h:
17337 * m/sparc.h:
17338 * m/mips.h:
17339 * m/m68k.h:
17340 * m/iris4d.h:
17341 * m/intel386.h:
17342 * m/ibms390x.h:
17343 * m/ibms390.h:
17344 * m/ia64.h:
17345 * m/hp800.h:
17346 * m/arm.h:
17347 * m/amdx86-64.h: Remove dead code and references to unused
17348 and compiler defined symbols.
17349
17350 * unexmips.c:
17351 * unexelf.c: Remove references to desupported systems.
17352
17353 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17354
17355 * m/powermac.h: Remove boilerplate comments.
17356 (NO_REMAP): Remove unused definition.
17357
17358 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17359 define them.
17360
17361 2008-07-10 Kenichi Handa <handa@m17n.org>
17362
17363 * xfont.c (xfont_open): Log the reason of failure.
17364
17365 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17366
17367 * fontset.c (fontset_get_font_group):
17368 * font.c (font_check_otf): Specify argument types.
17369
17370 2008-07-09 Kenichi Handa <handa@m17n.org>
17371
17372 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17373 non-ASCII char is found.
17374
17375 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17376 (reorder_font_vector): Change the arg preferred_family to font.
17377 Prefer the spec matching with font.
17378 (fontset_get_font_group): New function.
17379 (fontset_find_font): Change the format of an element of a realized
17380 fontset. Use fontset_get_font_group.
17381 (fontset_font): Try the current fontset, the default fontset, the
17382 fallbacks of the current fontset, and the fallbacks of the default
17383 fontset in this order.
17384 (face_for_char): Delete the shortcut to use the current font.
17385 (fontset_from_font): Don't set fonts for Latin in the fontset.
17386
17387 * font.h (font_make_object, font_match_p): Adjust prototypes.
17388
17389 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17390
17391 * font.c (font_make_object): New arg entity and pixelsize.
17392 (font_check_otf_features, font_check_otf): New functions.
17393 (font_match_p): Check :lang, :script, and :otf properties.
17394
17395 * xfont.c (xfont_open): Adjust it for the change of
17396 font_make_object.
17397 (xfont_text_extents): Fix initial setting of metrics.
17398
17399 * ftfont.c (struct ftfont_info): New member index, delete member
17400 fc_charset_idx. Make the member order compatible with struct
17401 xftfont_info.
17402 (fc_charset_table): Change charset names to registry names.
17403 (ftfont_pattern_entity): Delete the args registry and
17404 fc_charset_idx. Change the value of :font-entity property
17405 to (FONTNAME . INDEX). Always set :registry property to
17406 `iso10646-1'.
17407 (struct ftfont_cache_data): New struct.
17408 (ftfont_lookup_cache): New arg for_face.
17409 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17410 (ftfont_driver): Set the member otf_capability.
17411 (ftfont_get_charset): Adjust it for the change of
17412 fc_charset_table.
17413 (OTF_TAG_SYM): New macro.
17414 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17415 for the change of fc_charset_table.
17416 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17417 ftfont_pattern_entity. Add FC_INDEX to objset.
17418 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17419 and ftfont_pattern_entity.
17420 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17421 font_make_object, struct ftfont_info.
17422 (ftfont_has_char): Use ftfont_get_fc_charset.
17423 (ftfont_otf_features, ftfont_otf_capability): New functions.
17424 (ftfont_shape): Use ftfont_get_otf.
17425 (ftfont_text_extents): Fix initial setting of metrics.
17426
17427 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17428 member order compatible with struct ftfont_info.
17429 (xftfont_open): Add FC_CHARSET to the pattern.
17430 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
17431 properties if appropriate.
17432 (xftfont_close): Unlock the face.
17433 (xftfont_anchor_point, xftfont_shape): Deleted.
17434 (syms_of_xftfont): Don't set members anchor_point and shape of
17435 xftfont_driver.
17436
17437 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17438 font_make_object.
17439
17440 * w32font.c (w32font_open): Adjust it for the change of
17441 font_make_object.
17442 (w32font_open_internal): Don't set properties of font_object here.
17443
17444 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
17445
17446 * macfns.c (x_create_tip_frame):
17447 * w32fns.c (x_create_tip_frame):
17448 * xfns.c (x_create_tip_frame): Pass parameter argument to
17449 face-set-after-frame-default.
17450
17451 * xfaces.c (Finternal_merge_in_global_face): Save merged
17452 attributes for the default face back into the face vector.
17453
17454 2008-07-08 Andreas Schwab <schwab@suse.de>
17455
17456 * fontset.h: Declare fontset_from_font. Don't declare
17457 new_fontset_from_font and fontset_from_font_name.
17458 * xterm.c: Include "fontset.h".
17459 * Makefile.in (xterm.o): Update dependencies.
17460
17461 2008-07-08 Glenn Morris <rgm@gnu.org>
17462
17463 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17464 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17465
17466 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
17467
17468 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17469 (x_set_frame_parameters): Don't bind it.
17470
17471 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
17472
17473 * w32fns.c (map_w32_filename): Declare extern.
17474
17475 2008-07-07 Jason Rumney <jasonr@gnu.org>
17476
17477 * w32term.c (WS_EX_LAYERED): Define if not already.
17478
17479 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
17480
17481 * xfaces.c (set_font_frame_param): Don't try to set the font
17482 parameter if it is still unspecified in the lface.
17483
17484 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17485
17486 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17487 face if it didn't already exist.
17488
17489 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17490
17491 2008-07-05 Andreas Schwab <schwab@suse.de>
17492
17493 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17494
17495 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17496
17497 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17498 word-wrapping.
17499 (IT_DISPLAYING_WHITESPACE): New macro.
17500 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17501 when word-wrapping. Simplify word-wrapping logic. Use correct
17502 pixel positions when saving copies of the iterator.
17503 (display_line): Use proper wrap point if the last character on a
17504 line was preceded by whitespace.
17505
17506 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17507
17508 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17509
17510 2008-07-04 Kenichi Handa <handa@m17n.org>
17511
17512 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17513
17514 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17515
17516 2008-07-02 Jason Rumney <jasonr@gnu.org>
17517
17518 * xfns.c (syms_of_xfns): Only define x-select-font when both
17519 HAVE_FREETYPE and USE_GTK.
17520
17521 * xdisp.c (next_element_from_display_vector): Move assignment out
17522 of if statement.
17523
17524 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17525
17526 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17527
17528 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17529 (syms_of_fileio): Initialize and export them.
17530 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17531
17532 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17533 (Fsystem_move_file_to_trash): New function.
17534 (syms_of_w32fns): Export it to lisp.
17535
17536 2008-07-01 Jason Rumney <jasonr@gnu.org>
17537
17538 * w32font.c (w32font_text_extents): Don't count overhang as part
17539 of width.
17540
17541 2008-06-30 Miles Bader <miles@gnu.org>
17542
17543 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17544 Add `avoid_cursor_p' field.
17545
17546 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17547 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17548 (append_glyph, append_composite_glyph, produce_image_glyph)
17549 (append_stretch_glyph): Initialize avoid_cursor_p.
17550 (get_it_property): Rename from `get_line_height_property'.
17551 (x_produce_glyphs): Use get_it_property.
17552 (handle_line_prefix, push_display_prop): New functions.
17553 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17554 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17555 New variables.
17556 (syms_of_xdisp): Initialize them.
17557
17558 2008-06-30 Kenichi Handa <handa@m17n.org>
17559
17560 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17561 XftDefaultSubstitute (they are called in XftFontMatch).
17562 (xftfont_open): Fix args to ftfont_font_format.
17563
17564 * ftfont.c (fc_charset_table): New member lang.
17565 (ftfont_resolve_generic_family): New arg pattern.
17566 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
17567 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17568 (ftfont_open): Fix args to ftfont_font_format.
17569 (ftfont_font_format): New arg filename.
17570
17571 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
17572
17573 * xfaces.c (Finternal_merge_in_global_face): If default face was
17574 modified, realize it again. Update the font face attribute.
17575
17576 2008-06-29 Jason Rumney <jasonr@gnu.org>
17577
17578 * w32term.c (x_set_frame_alpha): Fix logic.
17579
17580 2008-06-29 Kenichi Handa <handa@m17n.org>
17581
17582 * fontset.c (Finternal_char_font): Return font-object instead of
17583 font-name.
17584
17585 * composite.c (get_composition_id): Fix the width calculation for TAB.
17586
17587 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17588
17589 * indent.c (Fvertical_motion): Properly handle float column arg.
17590
17591 2008-06-28 Jason Rumney <jasonr@gnu.org>
17592
17593 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17594 (pfnSetLayeredWindowAttributes): New function pointer.
17595 (w32_initialize): Initialize it when supported.
17596 (x_set_frame_alpha): New function.
17597
17598 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17599 (w32_frame_parm_handlers): Set alpha handler.
17600
17601 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17602
17603 2008-06-27 Jason Rumney <jasonr@gnu.org>
17604
17605 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17606 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17607 (w32_to_x_charset, x_to_w32_charset)
17608 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17609 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17610 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17611 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17612 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17613 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17614 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17615 (Qw32_charset_unicode): Remove.
17616 (syms_of_w32fns): Update for above changes.
17617
17618 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17619 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17620 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17621 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17622 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17623 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17624 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17625 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17626 (syms_of_w32font): Update for above changes.
17627
17628 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17629
17630 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17631 removed #if.
17632 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17633
17634 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17635 Eli Zaretskii <eliz@gnu.org>
17636
17637 * makefile.w32-in (LOCAL_FLAGS):
17638 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17639
17640 * sysdep.c (_spawnlp, _getpid):
17641 Declare with explicit _cdecl instead of _CRTAPI1.
17642
17643 * editfns.c (Fget_internal_run_time):
17644 Check for WINDOWSNT with #ifdef, not #if.
17645
17646 2008-06-26 Jason Rumney <jasonr@gnu.org>
17647
17648 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17649
17650 * w32term.c (x_draw_glyph_string_foreground)
17651 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17652 Use FONT_HANDLE macro.
17653 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17654
17655 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17656 (uniscribe_encode_char): Use FONT_HANDLE macro.
17657
17658 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17659 (w32font_text_extents): Use precast w32_font.
17660 (w32font_close): Free cached metrics.
17661 (w32font_open_internal): Allocate space for name on stack.
17662
17663 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
17664
17665 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17666
17667 2008-06-26 Jason Rumney <jasonr@gnu.org>
17668
17669 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17670 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17671
17672 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17673
17674 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17675
17676 2008-06-26 Jason Rumney <jasonr@gnu.org>
17677
17678 * w32bdf.c, w32bdf.h: Remove obsolete files.
17679
17680 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17681
17682 * w32gui.h: Don't include w32bdf.h.
17683 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17684 Remove obsolete font support.
17685
17686 * w32font.h (struct w32font_info): Remove compat_w32_font.
17687 Add hfont member.
17688 (FONT_COMPAT): Remove obsolete macro.
17689
17690 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17691 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17692 (w32font_open_internal): Remove compat code. Set new hfont member.
17693 (Fx_select_font): Use new hfont member.
17694
17695 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17696 (uniscribe_encode_char): Use new hfont member.
17697
17698 * w32term.c (x_draw_glyph_string_foreground)
17699 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17700 (x_draw_glyph_string): Use metrics in w32font_info.
17701
17702 2008-06-26 Kenichi Handa <handa@m17n.org>
17703
17704 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17705
17706 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17707
17708 * unexnext.c:
17709 * m/ews4800.h:
17710 * m/hp9000s300.h:
17711 * m/ibm370aix.h:
17712 * m/mips-siemens.h:
17713 * m/ncr386.h:
17714 * m/next.h:
17715 * m/pmax.h:
17716 * m/powerpcle.h:
17717 * m/tandem-s2.h:
17718 * s/386bsd.h:
17719 * s/bsd386.h:
17720 * s/bsd4-1.h:
17721 * s/bsd4-2.h:
17722 * s/bsdos2-1.h:
17723 * s/bsdos2.h:
17724 * s/bsdos3.h:
17725 * s/bsdos4.h:
17726 * s/nextstep.h:
17727 * s/ultrix4-3.h:
17728 * s/usg5-0.h:
17729 * s/usg5-2-2.h:
17730 * s/usg5-2.h:
17731 * s/usg5-4-3.h:
17732 * s/ux4800.h:
17733 * s/uxpds.h:
17734 * s/uxpv.h: Remove support for obsolete systems.
17735 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
17736 Remove, insert contents in s/hpux10-20.h.
17737 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17738 Remove, insert contents in s/aix4-2.h.
17739 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17740 * s/bsd4-3.h: Rename to ...
17741 * s/bsd-common.h: ... this.
17742 * data.c:
17743 * doc.c:
17744 * ecrt0.c:
17745 * emacs.c:
17746 * fileio.c:
17747 * floatfns.c:
17748 * keyboard.c:
17749 * mem-limits.h:
17750 * print.c:
17751 * process.c:
17752 * sysdep.c:
17753 * syssignal.h:
17754 * systty.h:
17755 * syswait.h:
17756 * term.c:
17757 * unexec.c:
17758 * unexelf.c:
17759 * unexhp9k800.c:
17760 * m/hp800.h:
17761 * m/ibmrs6000.h:
17762 * m/mips.h:
17763 * m/vax.h:
17764 * s/darwin.h:
17765 * s/freebsd.h:
17766 * s/gnu.h:
17767 * s/ms-w32.h:
17768 * s/msdos.h:
17769 * s/netbsd.h:
17770 * s/template.h: Remove references to obsolete variables.
17771
17772 * Makefile.in: Add dependencies for all unexec files.
17773 (admindir): Remove unused variable.
17774 (UNEXEC_SRC): Remove references.
17775
17776 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
17777
17778 * xfns.c (x_default_font_parameter): If Xft is available, first
17779 try Monospace-12 for the default font.
17780
17781 2008-06-25 Jason Rumney <jasonr@gnu.org>
17782
17783 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17784
17785 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17786
17787 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17788
17789 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17790
17791 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
17792
17793 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17794 <scroll-conservatively>: Fix typo in docstring.
17795
17796 * xselect.c (Fx_send_client_event): Doc fix.
17797
17798 2008-06-25 Kenichi Handa <handa@m17n.org>
17799
17800 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17801
17802 * font.c (font_parse_fcname): Remove unused variables.
17803 (font_sort_entites): Delete the arg SPEC. Caller changed.
17804 Fix for the case of ! best_only.
17805 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17806
17807 * lisp.h (Fstring_to_unibyte): EXFUN it.
17808
17809 * character.h (str_to_unibyte): Extern it.
17810
17811 * character.c (str_to_unibyte): New function.
17812
17813 * fns.c (Fstring_to_unibyte): New function.
17814 (syms_of_fns): Defsubr it.
17815
17816 2008-06-24 Kenichi Handa <handa@m17n.org>
17817
17818 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17819 DPI too.
17820 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17821
17822 2008-06-24 Andreas Schwab <schwab@suse.de>
17823
17824 * Makefile.in (${lispsource}loaddefs.el): Rename from
17825 ../lisp/loaddefs.el.
17826 (bootstrap-clean): Do what distclean does but don't remove
17827 Makefile.
17828 (distclean): Depend on bootstrap-clean and remove Makefile.
17829
17830 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
17831
17832 * buffer.h (struct buffer): New member word_wrap.
17833
17834 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17835 word-wrap.
17836 (init_buffer_once): Initialize them.
17837
17838 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17839 line_wrap enum possessing three possible values.
17840
17841 * termopts.h: Replace truncate_partial_width_windows with
17842 Vtruncate_partial_width_windows.
17843
17844 * dispnew.c (direct_output_for_insert): Avoid direct output when
17845 inserting a space with word wrap on.
17846
17847 * indent.c (compute_motion): Obey integer values of
17848 truncate-partial-width-windows.
17849
17850 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17851 replacing truncate_partial_width_windows.
17852 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17853 truncate only if the window width is below that integer.
17854 (start_display, resize_mini_window, produce_stretch_glyph)
17855 (display_string, move_it_in_display_line_to): Use line_wrap.
17856 (back_to_previous_visible_line_start, reseat_1):
17857 Reset string_from_display_prop_p.
17858 (display_line): Extend default face to end of line when wrapping.
17859
17860 2008-06-24 Kim F. Storm <storm@cua.dk>
17861
17862 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17863 to wrap continued lines at word boundaries.
17864
17865 2008-06-24 Jason Rumney <jasonr@gnu.org>
17866
17867 * font.c (Ffont_face_attributes): Multiply pixel size before point
17868 conversion to avoid multiplying rounding error.
17869
17870 2008-06-23 Jason Rumney <jasonr@gnu.org>
17871
17872 * w32term.c (x_draw_glyph_string_background)
17873 (x_draw_glyph_string): Remove old bdf font code.
17874
17875 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17876
17877 2008-06-22 Kenichi Handa <handa@m17n.org>
17878
17879 * font.c (font_find_for_lface): Try the adstyle specified in
17880 the property of LFACE_FONT of LFACE (if any).
17881
17882 2008-06-21 Seiji Zenitani <zenitani@mac.com>
17883 Ryo Yoshitake <ryo@shiftmode.net>
17884
17885 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17886
17887 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17888
17889 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17890 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17891 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17892 (witness-emacs): Remove.
17893 (lisp, shortlisp): Move loaddefs.el earlier.
17894 (mostlyclean): Forget about witness-emacs.
17895
17896 2008-06-22 Glenn Morris <rgm@gnu.org>
17897
17898 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17899 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17900
17901 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17902
17903 * Makefile.in (PRECOMP): Remove.
17904 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17905 (witness-emacs): Run `compile-first'.
17906 (.el.elc): Use the new compile-onefile target.
17907
17908 2008-06-21 Kenichi Handa <handa@m17n.org>
17909
17910 * xftfont.c (xftfont_open): Handle QCembolden only when
17911 FC_EMBOLDEN is defined.
17912
17913 2008-06-21 Andreas Schwab <schwab@suse.de>
17914
17915 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17916 (.el.elc): Likewise.
17917
17918 2008-06-21 Miles Bader <miles@gnu.org>
17919
17920 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17921 build dir, not the lisp source dir.
17922
17923 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17924
17925 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17926 (bootstrapclean): Remove.
17927 (.el.elc): New rule.
17928 (PRECOMP): New var.
17929 (../lisp/subdirs.el): Remove.
17930 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17931 (witness-emacs): New target.
17932 (mostlyclean): Remove witness-emacs as well.
17933 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17934 Add witness-emacs dependency.
17935
17936 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
17937
17938 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17939 defined by the font.
17940
17941 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17942
17943 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17944 (bootstrap-clean): New target that keeps TAGS around.
17945 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17946 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17947
17948 2008-06-20 Jason Rumney <jasonr@gnu.org>
17949
17950 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17951 Remove obsolete font code.
17952
17953 * w32font.c (font_matches_spec): Use csb bitfield from font signature
17954 to determine language support.
17955
17956 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17957
17958 * sysdep.c (cfsetspeed): New fun extracted from the code.
17959 (cfmakeraw): Move before first use.
17960
17961 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
17962
17963 * sysdep.c (cfmakeraw): Provide fallback implementation.
17964 (serial_configure): Provide fallback implementation of cfsetspeed.
17965
17966 2008-06-20 Kenichi Handa <handa@m17n.org>
17967
17968 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17969 the pattern.
17970
17971 * fontset.c (fontset_from_font): Copy font_spec before changing
17972 the elements.
17973
17974 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17975
17976 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17977
17978 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17979 for explicit `font' parameters.
17980
17981 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
17982
17983 2008-06-19 Kenichi Handa <handa@m17n.org>
17984
17985 * frame.c: Include <ctype.h>.
17986 (x_set_font_backend): Allow spacing characters in the X resource
17987 for FontBackend.
17988
17989 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
17990
17991 * w32fns.c, xfns.c (Qfont_param): New var.
17992 (syms_of_w32fns): Initialize it.
17993 (x_default_font_parameter): Record explicit `font' into
17994 `font-parameter'.
17995
17996 2008-06-18 Kenichi Handa <handa@m17n.org>
17997
17998 * font.c (font_parse_xlfd): Fix previous change.
17999 (font_parse_fcname): Don't use :fc-unknown-spec.
18000 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18001 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18002 (font_add_log): Prepend the driver name to the resulting fonts.
18003
18004 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18005 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18006 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18007
18008 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18009 (QCembolden): New variables.
18010 (syms_of_xftfont): DEFSYM them.
18011 (xftfont_open): Call XftFontMatch. Don't trust the result of
18012 XftTextExtents8 if the pixel_size is less than 5.
18013
18014 2008-06-18 Andreas Schwab <schwab@suse.de>
18015
18016 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18017 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18018
18019 2008-06-18 Jason Rumney <jasonr@gnu.org>
18020
18021 * w32font.c (w32font_list, w32font_match): Add logging.
18022
18023 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18024
18025 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18026
18027 * font.c (font_parse_fcname): Store divider characters for
18028 unknown-spec list. For known key symbols, intern using correct
18029 symbol name.
18030
18031 2008-06-17 Kenichi Handa <handa@m17n.org>
18032
18033 * xfaces.c (realize_default_face): If the frame is not on window
18034 system, set the fontset of face to nil.
18035
18036 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18037
18038 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18039
18040 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18041
18042 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18043 (build_font_name_from_vector): Delete externs.
18044
18045 * xfaces.c (struct font_name): Don't declare.
18046
18047 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18048
18049 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18050
18051 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18052
18053 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18054
18055 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18056
18057 * font.c (Ffont_spec): Fix usage in docstring.
18058 (Ffont_face_attributes): Doc fix.
18059
18060 2008-06-16 Andreas Schwab <schwab@suse.de>
18061
18062 * font.c (Ffont_face_attributes): Fix definition.
18063
18064 2008-06-16 Jason Rumney <jasonr@gnu.org>
18065
18066 * font.h (font_style_symbolic_from_value): Remove.
18067
18068 * font.c (font_style_symbolic_from_value): Remove.
18069 (font_style_symbolic): Revert to pre 2008-06-13 version.
18070
18071 * w32font.c (w32_to_fc_weight): New function.
18072 (w32font_full_name, logfont_to_fcname): Use it.
18073
18074 2008-06-16 Kenichi Handa <handa@m17n.org>
18075
18076 * font.c (font_check_object): Delete it.
18077 (font_clear_cache): Check if a font-object is alive.
18078 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18079 font-object to nil.
18080 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18081 (font_at): Don't call font_check_object.
18082 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18083
18084 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18085
18086 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18087
18088 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18089
18090 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18091
18092 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18093
18094 * font.c (font_parse_fcname): Only one decimal point.
18095 (font_unparse_fcname): Handle data in family and foundry indices
18096 as symbols, not strings.
18097 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18098
18099 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18100
18101 * font.h (font_unparse_gtkname): Add prototype.
18102
18103 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18104
18105 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18106
18107 2008-06-15 Andreas Schwab <schwab@suse.de>
18108
18109 * font.c (font_update_drivers): Fix crash when no drivers match.
18110
18111 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18112
18113 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18114 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18115
18116 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18117
18118 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18119
18120 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18121
18122 * process.c (Fserial_process_configure, Fprocess_send_eof):
18123 Use EQ to compare Lisp_Objects.
18124
18125 2008-06-13 Jason Rumney <jasonr@gnu.org>
18126
18127 * w32fns.c (Fw32_select_font): Remove old font API function.
18128
18129 * w32font.c (logfont_to_fcname): New function.
18130 (Fx_select_font): New font dialog function compatible with
18131 GTK/fontconfig version.
18132
18133 * font.c (font_style_symbolic_from_value): New function.
18134 (font_style_symbolic): Use it.
18135
18136 * font.h (font_style_symbolic_from_value): Declare new function.
18137
18138 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18139
18140 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18141 <font-width-table>: Fix typos in docstrings.
18142
18143 2008-06-13 Daniel Engeler <engeler@gmail.com>
18144
18145 These changes add serial port access.
18146 * process.c: Add HAVE_SERIAL.
18147 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18148 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18149 (list_processes_1, select_wrapper, Fstop_process)
18150 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18151 (status_notify): Modify to handle serial processes.
18152 [HAVE_SERIAL] (Fserial_process_configure)
18153 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18154 New functions.
18155 * process.h (struct Lisp_Process): Add `type'.
18156 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18157 New functions.
18158 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18159 serial ports.
18160 (serial_open, serial_configure): New functions.
18161 * w32.h: Add FILE_SERIAL.
18162 (struct _child_process): Add ovl_read, ovl_write.
18163
18164 2008-06-13 Kenichi Handa <handa@m17n.org>
18165
18166 * dispextern.h (enum lface_attribute_index): New member
18167 LFACE_FOUNDRY_INDEX.
18168
18169 * font.c (font_score): Delete arg alternate_families. Check only
18170 weight, slant, width, and size. Ignore the difference of alias
18171 style symbols.
18172 (font_sort_entites): Adjust for the above change. Reflect the
18173 order of font-driver to scores.
18174 (font_list_entities): Don't check alternate_familes here.
18175 (font_clear_prop): Handle foundry.
18176 (font_update_lface): Don't parse "foundry-family" form here.
18177 Handle FONT_FOUNDRY_INDEX.
18178 (font_find_for_lface): Likewise. Handle alternate families here.
18179 If registry is nil, try iso8859-1 and ascii-0.
18180 (font_open_for_lface): Pay attention to size in ENTITY.
18181 (font_open_by_name): Simplify by calling font_load_for_lface.
18182 (free_font_driver_list): Delete it.
18183 (font_update_drivers): Preserve the order of backends.
18184 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18185 of font_score and font_sort_entites.
18186 (font_update_sort_order): Likewise.
18187
18188 * xfaces.c (LFACE_FOUNDRY): New macro.
18189 (check_lface_attrs): Check foundry.
18190 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18191 (merge_face_vectors): Check foundry.
18192 (merge_face_ref): Likewise.
18193 (Finternal_set_lisp_face_attribute): Likewise.
18194 (x_update_menu_appearance): Likewise.
18195 (Finternal_get_lisp_face_attribute): Likewise.
18196 (lface_hash): Likewise.
18197 (lface_same_font_attributes_p): Likewise.
18198 (x_supports_face_attributes_p): Likewise.
18199 (tty_supports_face_attributes_p): Likewise.
18200 (Finternal_set_alternative_font_family_alist): Intern strings.
18201 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18202 (realize_default_face): Set LFACE_FOUNDRY (lface).
18203
18204 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18205 font-driver at first.
18206
18207 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18208
18209 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18210
18211 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18212
18213 2008-06-12 Jim Meyering <meyering@redhat.com>
18214
18215 Make unexec_free handle NULL the same way free does.
18216 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18217
18218 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18219
18220 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18221 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18222 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18223 (WEAK_ALIAS): Simplify.
18224 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18225 when searching a unibyte buffer.
18226
18227 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18228
18229 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18230
18231 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18232
18233 * w32font.c: Include ctype.h.
18234
18235 2008-06-11 Jason Rumney <jasonr@gnu.org>
18236
18237 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18238 misreported as space.
18239 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18240 as aliases for registry iso10646-1.
18241
18242 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * buffer.c (clone_per_buffer_values): Skip `name'.
18245
18246 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18247
18248 * font.c (font_parse_fcname): Fix last change; accept decimal
18249 points in font size.
18250
18251 2008-06-10 Jason Rumney <jasonr@gnu.org>
18252
18253 * w32uniscribe.c (add_opentype_font_name_to_list):
18254 Skip non unicode fonts.
18255
18256 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18257
18258 * xfns.c (Fx_font_dialog): New function.
18259
18260 * gtkutil.c (xg_dialog_response_cb): Rename from
18261 xg_file_response_callback.
18262 (pop_down_dialog): Rename from pop_down_file_dialog.
18263 (xg_get_file_name): Callers changed.
18264 (xg_get_font_name): New function.
18265
18266 * gtkutil.h (xg_get_font_name): Insert prototype.
18267
18268 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18269
18270 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18271 x_underline_minimum_display_offset.
18272 (syms_of_xdisp): Declare it here rather than in xterm.c.
18273 * dispextern.h (underline_minimum_offset): Declare it.
18274 * w32term.c (x_draw_glyph_string): Use it.
18275 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18276 (syms_of_xterm): Don't declare it any more.
18277 (x_draw_glyph_string): Adjust to the new name.
18278
18279 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18280
18281 * xterm.c (x_underline_minimum_display_offset): New var.
18282 (x_draw_glyph_string): Use it.
18283 (syms_of_xterm): Declare it.
18284
18285 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18286
18287 * font.c (font_parse_fcname): Accept GTK-style font names too.
18288
18289 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18290
18291 * dired.c (file_name_completion): Don't return t if the match is exact
18292 but with different capitalization.
18293 * minibuf.c (Ftry_completion): Simplify.
18294
18295 * window.c (Vwindow_point_insertion_type): New var.
18296 (set_window_buffer): Use it.
18297 (syms_of_window): Init and export it to Lisp.
18298
18299 2008-06-10 Kenichi Handa <handa@m17n.org>
18300
18301 * font.h (font_intern_prop): Prototype adjusted.
18302
18303 * font.c (font_intern_prop): New arg force_symbol.
18304 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18305 Adjust for the change of font_intern_prop.
18306
18307 * ftfont.c (ftfont_pattern_entity):
18308 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18309 (w32_registry):
18310 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18311 the change of font_intern_prop.
18312
18313 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
18314
18315 * w32menu.c (digest_single_submenu): Declare extern.
18316
18317 2008-06-09 Jason Rumney <jasonr@gnu.org>
18318
18319 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18320
18321 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18322 (parse_single_submenu): Remove.
18323 (digest_single_submenu): Remove.
18324 (syms_of_w32menu): Don't initialise variables that have moved
18325 to menu.c.
18326 (set_frame_menubar): Sync with version in xmenu.c.
18327 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18328
18329 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18330 Make static again.
18331
18332 2008-06-09 Jason Rumney <jasonr@gnu.org>
18333
18334 Changes to w32 files related to the move of common menu code
18335 to menu.c on 2008-06-08 by Chong Yidong.
18336
18337 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18338 defs to w32gui.h.
18339 (single_keymap_panes, push_menu_item, push_menu_pane):
18340 Make globally visible.
18341
18342 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18343 (local_free, malloc_widget_value, free_widget_value)
18344 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18345 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18346 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18347 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18348 (menu_items, menu_items_allocated, menu_items_used)
18349 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18350 (init_menu_items, finish_menu_items, discard_menu_items)
18351 (grow_menu_items, push_submenu_start, push_submenu_end)
18352 (push_left_right_boundary, push_menu_pane, push_menu_item)
18353 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18354 (free_menubar_widget_tree_value, parse_single_submenu)
18355 (update_submenu_strings): Remove functions.
18356 (xmalloc_widget_value): Remove and declare extern.
18357
18358 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18359 (OBJ1): Build it.
18360
18361 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18362 (local_heap, local_alloc, local_free, malloc_widget_value)
18363 (free_widget_value): Define here.
18364
18365 2008-06-09 Kenichi Handa <handa@m17n.org>
18366
18367 * font.h (Qascii_0): Extern it.
18368
18369 * font.c (Qascii_0): New variable.
18370 (syms_of_font): DEFSYM it.
18371 (font_open_by_name): If the registry "iso8859-1" fails, try also
18372 "ascii-0".
18373
18374 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18375
18376 2008-06-08 Kenichi Handa <handa@m17n.org>
18377
18378 * .gdbinit (xfont): New command.
18379
18380 2008-06-08 Andreas Schwab <schwab@suse.de>
18381
18382 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18383 * Makefile.in (menu.o): Update dependencies.
18384
18385 * Makefile.in (obj): Always add menu.o.
18386 * emacs.c (main): Always call syms_of_menu.
18387 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18388
18389 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
18390
18391 * Makefile.in: Compile menu.c.
18392
18393 * lisp.h: Declare syms_of_menu.
18394
18395 * emacs.c (main): Call syms_of_menu.
18396
18397 * keyboard.h: Relocate platform-independent menu definitions from
18398 xmenu.c.
18399
18400 * menu.c: New file. Relocate platform-independent menu
18401 definitions from xmenu.c. Suggested by Adrian Robert.
18402
18403 * xmenu.c: Remove platform-independent menu definitions.
18404 (menu_items, menu_items_inuse, menu_items_allocated)
18405 (menu_items_used, menu_items_n_panes)
18406 (menu_items_submenu_depth): Move to keyboard.h.
18407 (init_menu_items, finish_menu_items, unuse_menu_items)
18408 (discard_menu_items, restore_menu_items, save_menu_items)
18409 (grow_menu_items, push_submenu_start, push_submenu_end)
18410 (push_left_right_boundary, push_menu_pane, push_menu_item)
18411 (keymap_panes, single_keymap_panes, single_menu_item)
18412 (list_of_panes, list_of_items, find_and_call_menu_selection)
18413 (xmalloc_widget_value, free_menubar_widget_value_tree)
18414 (parse_single_submenu, digest_single_submenu)
18415 (update_submenu_strings): Move to menu.c.
18416
18417 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18418
18419 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18420
18421 2008-06-06 Miles Bader <miles@gnu.org>
18422
18423 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18424 face, not frame default.
18425
18426 2008-06-05 Martin Rudalics <rudalics@gmx.at>
18427
18428 * window.c (pop_up_windows, pop_up_frames)
18429 (display_buffer_reuse_frames, Vpop_up_frame_function)
18430 (Vdisplay_buffer_function, Veven_window_heights)
18431 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18432 (Vspecial_display_function, Vsame_window_buffer_names)
18433 (Vsame_window_regexps, split_height_threshold)
18434 (Vsplit_window_preferred_function): Move those vars to window.el.
18435 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18436 (Fdisplay_buffer): Move those functions to window.el.
18437 (syms_of_window): Remove corresponding declarations.
18438 (display_buffer): New function.
18439 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18440 * dispnew.c (Flast_nonminibuf_frame): New function.
18441 * buffer.c (Fpop_to_buffer): Move to window.el.
18442
18443 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18444
18445 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18446
18447 2008-06-05 Kenichi Handa <handa@m17n.org>
18448
18449 * coding.c (detect_coding): Fix previous change.
18450 (detect_coding_system): Likewise.
18451
18452 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18455
18456 * keymap.c (Vminibuffer_local_filename_must_match_map):
18457 Rename from Vminibuffer_local_must_match_filename_map.
18458 (syms_of_keymap):
18459 * minibuf.c (Fcompleting_read): Adjust accordingly.
18460 * commands.h: Rename declaration as well.
18461
18462 2008-06-05 Kenichi Handa <handa@m17n.org>
18463
18464 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18465 family name.
18466 (Ffont_put): Likewise.
18467
18468 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18469 current font-spec.
18470
18471 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18472 is unspecified.
18473
18474 * xfaces.c (realize_x_face): If the font-related face attributes
18475 are the same as those of default face, realize a new fontset from
18476 default->fontset.
18477 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18478
18479 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18480
18481 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18482 (move_it_in_display_line): New wrapper.
18483
18484 * window.c (window_scroll_pixel_based_preserve_x)
18485 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18486 (window_scroll_pixel_based, window_scroll_line_based):
18487 Use them to preserve column positions.
18488 (syms_of_window): Initialize them.
18489
18490 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18491 (HPOS . VPOS) pair.
18492
18493 * dispextern.h (move_it_in_display_line): Declare.
18494
18495 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
18496
18497 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18498 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18499 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18500
18501 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
18502
18503 * window.c (Fset_window_parameter): Doc fix.
18504 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18505
18506 2008-06-04 Joakim Verona <joakim@verona.se>
18507
18508 * window.h (struct window): Add new member window_parameters.
18509
18510 * window.c (Fwindow_parameters, Fwindow_parameter)
18511 (Fset_window_parameter): New defuns.
18512 (syms_of_window): Defsubr the new defuns.
18513 (make_window): Initialize window_parameters to nil.
18514
18515 2008-06-04 John Paul Wallington <jpw@pobox.com>
18516
18517 * eval.c (Fdefmacro): Doc fix.
18518
18519 2008-06-04 Kenichi Handa <handa@m17n.org>
18520
18521 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18522 Be sure to call setup_coding_system when we find a proper coding system.
18523 (detect_coding_system): Fix handling of coding->head_ascii.
18524
18525 2008-06-03 Andreas Schwab <schwab@suse.de>
18526
18527 * font.c (font_prop_validate_spacing): Fix last change.
18528
18529 2008-06-03 Kenichi Handa <handa@m17n.org>
18530
18531 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18532 (font_parse_fcname): Fix handling of unknown key.
18533
18534 * xfont.c (xfont_list): Try an alias.
18535
18536 * charset.c (char_charset): Return NULL if the arg charset_list is
18537 specified and C doesn't belong to any of them.
18538
18539 2008-06-02 Chip Coldwell <coldwell@redhat.com>
18540
18541 * font.c (font_pixel_size): Don't take cdr of an integer.
18542
18543 2008-06-02 Jim Meyering <meyering@redhat.com>
18544
18545 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18546 * alloc.c (xfree): Return right away for a NULL arg.
18547 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18548 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18549 * mac.c (create_apple_event_from_event_ref): Likewise.
18550 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18551 Likewise.
18552 * doprnt.c (doprnt1): Likewise.
18553 * frame.c (frame): Likewise.
18554 * keyboard.c (wipe_kboard): Likewise.
18555 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18556 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18557 * term.c (tty_default_color_capabilities, maybe_fatal)
18558 (delete_tty): Likewise.
18559 * w16select.c (string): Likewise.
18560 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18561 * w32bdf.c (w32_free_bdf_font): Likewise.
18562 * w32fns.c (w32_unload_font): Likewise.
18563 * w32font.c (w32font_close): Likewise.
18564 * window.c (size_window): Likewise.
18565 * xselect.c (receive_incremental_selection): Likewise.
18566 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18567 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18568 * w32.c (stat): Likewise.
18569
18570 Remove useless if-before-free tests.
18571 * editfns.c (Fset_time_zone_rule): Likewise.
18572 * lread.c (nosuffix): Likewise.
18573 * ralloc.c (get_bloc): Likewise.
18574 * regex.c (reg_free): Likewise.
18575 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18576 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18577 * xsmfns.c (smc_save_yourself_CB): Likewise.
18578
18579 2008-06-02 Kenichi Handa <handa@m17n.org>
18580
18581 * font.c (font_find_for_lface): Handle float font size.
18582 (font_open_for_lface): Likewise.
18583
18584 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18585 comparing the properties.
18586
18587 2008-06-01 Jason Rumney <jasonr@gnu.org>
18588
18589 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18590 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18591 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18592 Don't add empty script list.
18593 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18594
18595 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18596
18597 * Makefile.in (dot, dotdot): Remove, update users.
18598 ".." has been used elsewhere in the file for a long time.
18599 (LIBXT_STATIC): Remove conditional based on unused variable.
18600
18601 2008-06-01 Miles Bader <miles@gnu.org>
18602
18603 * xfaces.c (Vface_remapping_alist): New variable.
18604 (syms_of_xfaces): Initialize it.
18605 (enum named_merge_point_kind): New type.
18606 (struct named_merge_point): Add `named_merge_point_kind' field.
18607 (push_named_merge_point): Make cycle detection respect different
18608 named-merge-point kinds.
18609 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18610 Remove face-name alias resolution.
18611 (lface_from_face_name): New definition using
18612 `lface_from_face_name_no_resolve'.
18613 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18614 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18615 (get_lface_attributes): New definition that layers face-remapping on
18616 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18617 (lookup_basic_face): New function.
18618 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18619 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18620 `get_lface_attributes'.
18621 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18622 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18623 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18624
18625 * xdisp.c (init_iterator): Pass base_face_id through
18626 `lookup_basic_face' when we actually use it as a face-id.
18627 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18628 DEFAULT_FACE_ID.
18629
18630 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18631 lookup the initial face-id.
18632
18633 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18634
18635 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
18636
18637 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18638 (Fremove_text_properties): Fix typos in docstrings.
18639
18640 2008-05-31 Kenichi Handa <handa@m17n.org>
18641
18642 * font.c (font_list_entities): Fix the car part of data to be
18643 stored in the cache.
18644
18645 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18646
18647 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18648
18649 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18650 Add a `test' argument so another predicate than `equal' can be used.
18651 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18652 (map_char_table): Remove unused vars `c' and `i'.
18653 * lisp.h (Foptimize_char_table): Adjust declaration.
18654 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18655
18656 2008-05-30 Kenichi Handa <handa@m17n.org>
18657
18658 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18659 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18660 defined.
18661
18662 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18663
18664 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18665 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18666 frame-local settings for the same variable.
18667
18668 2008-05-30 Kenichi Handa <handa@m17n.org>
18669
18670 * fontset.c (Ffont_info): Move to font.c.
18671 (syms_of_fontset): Delete defsubr of Sfont_info.
18672
18673 * font.c (font_style_to_value, font_score): Delete casting of the
18674 args to xstcasecmp.
18675 (register_font_driver): Increment num_font_drivers only when
18676 registering the driver globally.
18677 (Ffont_info): Move from fontset.c. Handle a font object too.
18678 (syms_of_font): Defsubr Sfont_info.
18679
18680 2008-05-29 Kenichi Handa <handa@m17n.org>
18681
18682 * coding.h (enum define_coding_utf8_arg_index): New enum.
18683 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18684 coding_attr_utf_bom.
18685 (enum utf_bom_type): Rename from utf_16_bom_type.
18686 (struct utf_16_spec): Adjust for the above change.
18687 (struct coding_system): Add utf_8_bom in `spec' union.
18688
18689 * coding.c (CODING_UTF_8_BOM): New macro.
18690 (enum coding_category): Delete coding_category_utf_8, add
18691 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18692 coding_category_utf_8_sig.
18693 (CATEGORY_MASK_UTF_8): Delete it.
18694 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18695 (CATEGORY_MASK_UTF_8_SIG): New macros.
18696 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18697 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18698 CATEGORY_MASK_UTF_8_SIG.
18699 (CATEGORY_MASK_UTF_8): New macro.
18700 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18701 (detect_coding_utf_8): Check BOM.
18702 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18703 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18704 (encode_coding_utf_16): Likewise.
18705 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18706 (detect_coding, detect_coding_system): Handle utf-8-auto.
18707 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18708 (syms_of_coding): Fix setting up of Vcoding_category_table.
18709
18710 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18711
18712 * process.c (Faccept_process_output): If `millisec' is non-nil,
18713 `seconds' default to 0.
18714 (wait_reading_process_output): Also return non-nil if we read output
18715 from a non-running process.
18716
18717 2008-05-29 Jason Rumney <jasonr@gnu.org>
18718
18719 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18720 `raster' specified.
18721 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18722 in the uniscribe backend, but disallow any font that has no
18723 unicode subrange support.
18724
18725 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
18726
18727 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18728 Fix typos in docstrings.
18729
18730 2008-05-29 Kenichi Handa <handa@m17n.org>
18731
18732 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18733 (Fx_family_fonts): Set frame correctly.
18734
18735 2008-05-28 Jason Rumney <jasonr@gnu.org>
18736
18737 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18738
18739 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18740
18741 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18742 calling build_annotations.
18743
18744 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
18745
18746 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18747 (Fencode_coding_string):
18748 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18749 <latin-extra-code-table>: Fix typos in docstrings.
18750 (syms_of_coding) <coding-system-alist>: Doc fix.
18751 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18752
18753 2008-05-28 Kenichi Handa <handa@m17n.org>
18754
18755 * fontset.c (Ffont_info): Don't call font_close_object.
18756
18757 * font.c (font_parse_family_registry): Use Ffont_put to validate
18758 foundry and family.
18759 (font_delete_unmatched): Don't check spacing.
18760 (font_list_entities): Add spacing to the spec to list fonts.
18761
18762 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18763 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18764
18765 * coding.c (encode_coding_raw_text): Fix previous change.
18766 (encode_coding_object): When the dst_object is a buffer and is
18767 different from src_object, move gap to PT.
18768
18769 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18770
18771 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18772
18773 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18774
18775 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18776 all branches. Compute it differently.
18777
18778 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18779
18780 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
18781
18782 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18783 into "else if () ... else ...".
18784
18785 2008-05-27 Jason Rumney <jasonr@gnu.org>
18786
18787 * w32font.c (w32font_open_internal): Determine if glyph indices
18788 are likely to work here.
18789
18790 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18791
18792 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18793 draw overlap glyphs with appropriate highlighting.
18794
18795 2008-05-27 Kenichi Handa <handa@m17n.org>
18796
18797 * xfont.c (xfont_open): Fix calculation of font->average_width.
18798
18799 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18800
18801 * casefiddle.c (casify_object): Try to guess better whether the
18802 argument is a byte or a char.
18803
18804 2008-05-26 Andreas Schwab <schwab@suse.de>
18805
18806 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18807 Always send multiples of format size.
18808
18809 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18810
18811 2008-05-26 Jason Rumney <jasonr@gnu.org>
18812
18813 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18814 (compute_metrics): Don't set failure if we just cleared the cache.
18815 (w32_weight_table): Remove unused variable.
18816 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18817 backwards compatibility.
18818
18819 2008-05-25 Kenichi Handa <handa@m17n.org>
18820
18821 * w32term.c (x_draw_glyph_string):
18822 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18823
18824 * xfaces.c: Delete unused function prototypes.
18825 (xstrlwr, font_frame): Delete them.
18826 (clear_face_cache): Delete unused variable.
18827
18828 * xftfont.c (xftfont_open): Delete unused variable.
18829 If underline_thickness is not 1, adjust underline_position.
18830
18831 * ftxfont.c (ftxfont_open): Delete unused variable.
18832
18833 * fontset.c (face_for_char): Optimize for the case of no charset
18834 property.
18835
18836 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18837 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18838 (otf_open, font_otf_capability, generate_otf_features)
18839 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18840 Comment out by surrounding "#if 0" and "#endif" for the moment.
18841 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18842 (syms_of_font): Codes for accessing above commented out.
18843
18844 2008-05-24 Eli Zaretskii <eliz@gnu.org>
18845
18846 * w32proc.c: Include dispextern.h.
18847
18848 * w32.c: Include dispextern.h.
18849
18850 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
18851
18852 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18853 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18854 Fix typos in docstrings.
18855
18856 2008-05-23 Jason Rumney <jasonr@gnu.org>
18857
18858 * xsmfns.c: Remove includes that are already included by config.h.
18859
18860 2008-05-23 Kenichi Handa <handa@m17n.org>
18861
18862 * charset.c (Qemacs, charset_emacs): New variables.
18863 (char_charset): Fix for non-Unicode characters.
18864 (syms_of_charset): Define charset_emacs.
18865
18866 * w32term.c (x_draw_glyph_string): Be sure to update
18867 s->underline_thickness and s->underline_position. Be sure to draw
18868 underline within the current line area.
18869
18870 * xterm.c (x_draw_glyph_string): Be sure to update
18871 s->underline_thickness and s->underline_position. Be sure to draw
18872 underline within the current line area.
18873
18874 * fontset.c: Delete unused variables and add casting for char *
18875 throughout the file.
18876 (fontset_font): Try the fallback fonts of the current fontset
18877 before consulting the default fontset.
18878
18879 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18880
18881 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18882
18883 2008-05-22 Jason Rumney <jasonr@gnu.org>
18884
18885 * font.c: Don't include strings.h.
18886
18887 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18888
18889 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18890 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18891 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18892 to call xstrcasecmp.
18893
18894 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18895
18896 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18897
18898 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18899
18900 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18901
18902 2008-05-22 Kenichi Handa <handa@m17n.org>
18903
18904 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18905
18906 * font.c (font_prop_validate_style): Adjust for the format
18907 change of font_style_table.
18908
18909 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18910 two args.
18911
18912 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18913 two args.
18914
18915 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18916
18917 * minibuf.c (keys_of_minibuf): Delete.
18918 * lisp.h (keys_of_minibuf): Delete.
18919 * emacs.c (main): Don't call keys_of_minibuf.
18920
18921 2008-05-22 Kenichi Handa <handa@m17n.org>
18922
18923 * ftfont.c (ftfont_resolve_generic_family): Rename from
18924 ftfont_list_generic_family. Return a single family for each
18925 generic family.
18926 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18927 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18928 Call font_add_log.
18929 (ftfont_match): Call font_add_log.
18930
18931 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18932 (FONT_DEBUG): Define it.
18933 (font_add_log): Extern it.
18934 (font_assert): Rename from xassert.
18935
18936 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18937 (xfont_list_family): Call font_add_log.
18938 (xfont_match): Likewise.
18939 (memq_no_quit): Delete.
18940
18941 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18942 call of Ffont_xlfd_name.
18943
18944 * xfaces.c (struct table_entry, slant_table, weight_table)
18945 (swidth_table): Move to font.c.
18946
18947 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18948 xassert are changed to font_assert. Delete many unused variables.
18949 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18950 New variables.
18951 (struct table_entry): Move from xfaces.c and modified.
18952 (weight_table, slant_table, width_table): Move from xfaces.c and
18953 contents adjusted for the change of struct table_entry.
18954 (font_style_to_value, font_style_symbolic): Adjust for the
18955 format change of font_style_table.
18956 (font_parse_family_registry): Don't overwrite existing foundry and
18957 family of font_spec.
18958 (font_score): Fix calculation of diff for sizes.
18959 (font_sort_entites): Call font_add_log.
18960 (font_delete_unmatched): Return a newly created list.
18961 (font_list_entities): Fix previous change. Call font_add_log.
18962 (font_matching_entity, font_open_entity, font_close_entity):
18963 Call font_add_log.
18964 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18965 (Finternal_set_font_style_table): Delete.
18966 (BUILD_STYLE_TABLE): New macro.
18967 (build_style_table): New function.
18968 (Vfont_log, font_log_env_checked): New variables.
18969 (font_add_log): New function.
18970 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18971 Declare Lisp variables "font-weight-table", "font-slant-table",
18972 "font-width-table", and "font-log". Initialize font_style_table.
18973
18974 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
18975
18976 * xterm.c (x_set_frame_alpha): Move declarations before statements.
18977
18978 2008-05-21 Seiji Zenitani <zenitani@mac.com>
18979 Ryo Yoshitake <ryo@shiftmode.net>
18980
18981 * frame.c (Qalpha): Add a new frame parameter `alpha'.
18982 (Vframe_alpha_lower_limit): New variable.
18983 (x_set_alpha): New function.
18984
18985 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
18986
18987 * xfns.c (x-create-frame, Qalpha):
18988 Initialize the frame parameter `alpha'.
18989 * xterm.c (OPAQUE, OPACITY): New.
18990 (x_set_frame_alpha): New function.
18991 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
18992
18993 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
18994 * w32fns.c (w32_frame_parm_handlers): Likewise.
18995
18996 2008-05-20 Jason Rumney <jasonr@gnu.org>
18997
18998 * w32font.c (add_font_entity_to_list): Don't add non-opentype
18999 truetype fonts to opentype list.
19000
19001 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
19002
19003 * fontset.c (Ffontset_info): Doc fix.
19004 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19005 <ignore-relative-composition>: Fix typos in docstrings.
19006
19007 * font.c (syms-of-font) <font-encoding-alist>:
19008 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19009 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19010 (Ffont_otf_alternates): Doc fixes.
19011
19012 2008-05-20 Kenichi Handa <handa@m17n.org>
19013
19014 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19015 font.h through out the file.
19016 (FONT_DRIVERS): Rename from FONTOBJ.
19017 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19018 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19019
19020 * emacs.c (main): Call syms_of_font unconditionally.
19021
19022 * font.h (find_font_encoding): Extern it.
19023
19024 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19025 fontset.c.
19026 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19027 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19028 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19029 only when HAVE_WINDOW_SYSTEM is defined.
19030 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19031 when HAVE_WINDOW_SYSTEM is defined.
19032
19033 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19034 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19035
19036 * xfaces.c: Include font.h unconditionally.
19037 (merge_face_ref, merge_face_vectors)
19038 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19039
19040 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19041
19042 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19043 indirect_variable.
19044 * eval.c (lisp_indirect_variable): New fun.
19045 (Fuser_variable_p): Use it.
19046
19047 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19048
19049 * lisp.h (indirect_variable):
19050 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19051 Use Lisp_Symbol pointers rather than Lisp_Object.
19052 Adjust callers.
19053 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19054 To this end, change calling-convention.
19055
19056 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19057 if some non-hidden buffers are selected by string&pred.
19058
19059 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19060
19061 * process.c (wait_reading_process_output): Always check status
19062 when in batch mode.
19063
19064 2008-05-19 Kenichi Handa <handa@m17n.org>
19065
19066 * font.c (font_list_entities): Fix handling of cache.
19067 (font_matching_entity): Likewise.
19068
19069 * ftfont.c (cs_iso8859_1): Delete.
19070 (ft_face_cache): New variable.
19071 (struct ftfont_info): New member fc_charset_idx.
19072 (ftfont_build_basic_charsets): Delete.
19073 (fc_charset_table): New variable.
19074 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19075 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19076 Callers changed.
19077 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19078 (ftfont_spec_pattern): New argument fc_charset_idx.
19079 Check registry more rigidly. Change callers.
19080 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19081 change of :font-entity property of the font.
19082
19083 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19084 property of the font.
19085
19086 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19087
19088 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19089 (Funencodable_char_position, Fcheck_coding_systems_region)
19090 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19091 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19092 (Ffind_operation_coding_system, Fset_coding_system_priority)
19093 (Fcoding_system_eol_type): Doc fixes.
19094
19095 2008-05-17 Glenn Morris <rgm@gnu.org>
19096
19097 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19098
19099 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19100
19101 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19102 and st_gid.
19103
19104 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19105 HAVE_WINDOW_SYSTEM is not defined.
19106
19107 * xfaces.c (merge_face_ref, merge_face_vectors)
19108 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19109 HAVE_WINDOW_SYSTEM is defined.
19110 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19111
19112 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19113
19114 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19115
19116 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19117
19118 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19119
19120 2008-05-15 Kenichi Handa <handa@m17n.org>
19121
19122 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19123 preference.
19124
19125 2008-05-15 Glenn Morris <rgm@gnu.org>
19126
19127 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19128
19129 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19130
19131 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19132 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19133
19134 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19135
19136 2008-05-15 Kenichi Handa <handa@m17n.org>
19137
19138 * ftfont.c (ftfont_list): Downcase family name to check generic
19139 families.
19140
19141 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19142 font-spec for QCfont value.
19143
19144 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19145 buffer. Check the return value of it.
19146
19147 2008-05-14 Jason Rumney <jasonr@gnu.org>
19148
19149 * w32term.c (w32_get_glyph_overhangs): Remove.
19150 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19151
19152 2008-05-14 Kenichi Handa <handa@m17n.org>
19153
19154 * font.c (font_prop_validate): Make nil a valid value.
19155 (font_clear_cache): Check if the cached vector of entities is nil
19156 or not.
19157
19158 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19159
19160 * emacs.c (main_thread): Conditionalize on
19161 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19162 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19163
19164 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19165 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19166 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19167
19168 2008-05-14 Kenichi Handa <handa@m17n.org>
19169
19170 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19171 has no corresponding coding system.
19172
19173 2008-05-14 Jason Rumney <jasonr@gnu.org>
19174
19175 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19176
19177 * w32font.h (w32font_open_internal): Update declaration.
19178
19179 * w32font.c (w32font_open_internal): Change last argument from
19180 w32font_info struct to font object. Fill in font object from
19181 font_entity. Get Outline metrics if possible. Use them to
19182 calculate underline position and thickness. Use xlfd name as name
19183 property. Don't set codepage.
19184 (w32font_open): Pass font_object to w32font_open_internal. Don't
19185 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19186 (w32font_draw): Use s->font.
19187 (clear_cached_metrics): Don't clear non-existent blocks.
19188
19189 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19190 font was not found.
19191 (x_draw_glyph_string): Use underline position and thickness from font.
19192
19193 * w32uniscribe.c (uniscribe_open): Pass font_object to
19194 w32font_open_internal.
19195
19196 2008-05-14 Kenichi Handa <handa@m17n.org>
19197
19198 These changes are to delete all legacy font-handling codes, and
19199 make Emacs use only font-backends.
19200
19201 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19202 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19203
19204 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19205
19206 * charset.h (Vcharset_non_preferred_head)
19207 (Vcurrent_iso639_language): Extern them.
19208
19209 * charset.c (Vcharset_non_preferred_head): New variable.
19210 (Vcurrent_iso639_language): New variable.
19211 (syms_of_charset): Declare it as a Lisp variable.
19212 (char_charset): Don't check non preferred charsets. As a last
19213 resort, return charset_unicode.
19214 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19215
19216 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19217 conditionals. Don't check enable_font_backend. Delete all codes
19218 used only when USE_FONT_BACKEND is not defined.
19219
19220 * dispextern.h (struct glyph_string): Change type of `font' to
19221 `struct font *'.
19222 (struct glyph_string): New member underline_position and
19223 underline_thickness.
19224 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19225 (struct face): Change type of `font' to `struct font *'.
19226 Remove members `font_name', `font_info_id'.
19227 (per_char_metric, encode_char): Delete externs.
19228 (calc_pixel_width_or_height): Adjust the prototype.
19229
19230 * emacs.c (enable_font_backend): Delete extern.
19231 (main): Don't set enable_font_backend. Don't check the command
19232 line argument "-disable-font-backend".
19233
19234 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19235 (enum font_property_index): New members FONT_DPI_INDEX,
19236 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19237 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19238 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19239 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19240 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19241 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19242 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19243 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19244 (struct font_spec, struct font_entity): New structs.
19245 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19246 (struct font): Many members from old "struct font_info" moved to
19247 here. Members font and entity deleted.
19248 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19249 the new font-related objects.
19250 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19251 (CHECK_FONT_GET_OBJECT): Likewise.
19252 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19253 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19254 (struct font_driver): New members case_sensitive anc check.
19255 Type of the member list and open changed.
19256 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19257 (font_symbolic_width, font_find_object, font_get_spec)
19258 (font_set_lface_from_name): Delete extern.
19259 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19260
19261 * font.c: Include <strings.h>.
19262 (enable_font_backend): Delete it.
19263 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19264 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19265 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19266 (null_string): Delete it.
19267 (null_vector): Make it static.
19268 (font_family_alist): Delete it.
19269 (Qnormal): Extern it.
19270 (QCextra, QClanguage): Delete it.
19271 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19272 (font_make_spec, font_make_entity, font_make_object)
19273 (font_intern_prop): Rename from intern_downcase. Don't downcase
19274 the string. Callers changed.
19275 (font_pixel_size): Adjust for the format change of font-related
19276 objects.
19277 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19278 (font_style_to_value, font_style_symbolic): New function.
19279 (build_font_family_alist): Delete it.
19280 (font_registry_charsets): Use Fassoc_string instead of
19281 assq_no_quit.
19282 (font_prop_validate_symbol): Don't return null_string.
19283 (font_prop_validate_style): Adjust for the change of
19284 style-related values in a font vector.
19285 (font_property_table): Delete entries for QClanguage and
19286 QCantialias, add entries for QCavgwidth.
19287 (get_font_prop_index): Delete the 2nd argument FROM.
19288 (font_prop_validate): Arguments changed.
19289 (font_put_extra): Adjust for the change of font-related objects.
19290 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19291 (font_parse_fcname, font_unparse_fcname)
19292 (font_prepare_composition): Likewise.
19293 (font_parse_family_registry): Rename from font_merge_old_spec.
19294 (otf_open): Delete the 1st arg entity.
19295 (font_otf_capability): Adjust for the above change.
19296 (font_score): New arg alternate_families. Adjusted for the change
19297 of font-related objects.
19298 (font_sort_entites): New arg best_only.
19299 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19300 Delete them.
19301 (font_match_p): Check alternate families.
19302 (font_find_object): Delete it.
19303 (font_check_object): New function.
19304 (font_clear_cache): Adjust for the change of font-related objects.
19305 (font_delete_unmatched): New arg.
19306 (font_list_entities): Call font_driver->list with a spec that
19307 doesn't specify style-related properties.
19308 (font_matching_entity): Arguments changed. Caller changed.
19309 (font_open_entity): Adjust for the change of font-related objects.
19310 (font_close_object, font_has_char, font_encode_char)
19311 (font_get_name, font_get_spec): Likewise.
19312 (font_spec_from_name, font_clear_prop, font_update_lface):
19313 New functions.
19314 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19315 (font_prepare_for_face, font_done_for_face, font_open_by_name)
19316 (font_at): Adjust for the change of font-related objects.
19317 (font_range): New function.
19318 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
19319 (Ffont_xlfd_name): Adjust for the change of font-related objects.
19320 (Fcopy_font_spec, Fmerge_font_spec): New function.
19321 (Ffont_family_list): Rename from list-families.
19322 (Finternal_set_font_style_table): Arguments changed.
19323 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
19324 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
19325 change of font-related objects.
19326 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19327
19328 * fontset.h (struct font_info): Delete it. Most members go to
19329 struct font.
19330 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
19331 (enum FONT_SPEC_INDEX): Delete it.
19332 (font_info, list_fonts_func, load_font_func, query_font_func)
19333 (set_frame_fontset_func, find_ccl_program_func)
19334 (get_font_repertory_func, new_fontset_from_font_name):
19335 Delete externs.
19336 (fontset_from_font_name): Extern it.
19337 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19338 (FONT_INFO_FROM_FACE): Deleted.
19339 (face_for_font): Adjust prototype.
19340
19341 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19342 conditionals. Don't check enable_font_backend. Delete all codes
19343 used only when USE_FONT_BACKEND is not defined.
19344 (get_font_info_func, list_font_func, load_font_func)
19345 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19346 (get_font_repertory_func): Delete them.
19347 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19348 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19349 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19350 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19351 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19352 (fontset_compare_rfontdef): New function.
19353 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19354 rfont-defs by qsort. Adjusted for the change of font-group vector.
19355 (load_font_get_repertory): Deleted.
19356 (fontset_find_font): Use new macros to ref/set elements of
19357 font-def and rfont-def.
19358 (fontset_font): Fix the timing of remembering that no font for C.
19359 (free_face_fontset): Do nothing if the face has no fontset.
19360 (face_suitable_for_char_p): Use new macros to ref/set elements of
19361 rfont-def.
19362 (face_for_char): Likewise. Call face_for_char with font_object.
19363 (fs_load_font): Delete. Delete #pragma surrounding it.
19364 (fs_query_fontset): Use strcasecmp instead of strcmp.
19365 (generate_ascii_font_name): Adjust for the format change of
19366 font-spec.
19367 (Fset_fontset_font): Likewise. Use new macros to set elements of
19368 font-def.
19369 (Fnew_fontset): Use font_unparse_xlfd to generate
19370 FONTSET_ASCII (fontset).
19371 (new_fontset_from_font_name): Deleted.
19372 (fontset_from_font): Rename from new_fontset_from_font. Check if
19373 a fontset is already created for the font. FIx updating of
19374 Vfontset_alias_alist.
19375 (fontset_ascii_font): Deleted.
19376 (Ffont_info): Adjust for the format change of font-spec.
19377 (Finternal_char_font): Likewise.
19378 (Ffontset_info): Likewise.
19379 (syms_of_fontset): Don't check load_font_func.
19380
19381 * fns.c (internal_equal): Handle PREV_FONT.
19382
19383 * frame.h: Delete USE_FONT_BACKEND conditional.
19384
19385 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19386 conditionals. Don't check enable_font_backend. Delete all codes
19387 used only when USE_FONT_BACKEND is not defined.
19388 (x_set_font): Call x_new_font, not x_new_fontset2.
19389 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19390 already set for the frame.
19391
19392 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19393 Make a font-entity by font_make_entity. Use font_intern_prop instead
19394 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19395 font property. If a font is scalable, set avgwidth property to 0.
19396 Set font-entity property by font_put_extra.
19397 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
19398 (ffont_driver): Adjust for the change of struct font_driver.
19399 (ftfont_spec_pattern): New function.
19400 (ftfont_list): Return a list, not vector.
19401 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19402 (ftfont_list_family): Don't downcase names.
19403 (ftfont_free_entity): Deleted.
19404 (ftfont_open): Return a font-object. Adjusted for the change of
19405 struct font. Get underline_thickness and underline_position from
19406 font property. Don't update dpyinfo->smallest_font_height and
19407 dpyinfo->smallest_char_width.
19408 (ftfont_close): Don't free `struct font'.
19409 (ftfont_has_char): Adjust for the format change of font-entity.
19410 (ftfont_encode_char, ftfont_text_extents): Likewise.
19411
19412 * ftxfont.c (ftxfont_list): Return a list, not vector.
19413 (ftxfont_open): Return a font-object. Adjusted for the change of
19414 struct font. Get underline_thickness and underline_position from
19415 font property. Don't update dpyinfo->smallest_font_height and
19416 dpyinfo->smallest_char_width.
19417 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
19418 (ftxfont_draw): Adjust for the change of struct font.
19419
19420 * image.c (image_ascent): Don't include "charset.h".
19421 Include "character.h" and "font.h".
19422
19423 * lisp.h (enum pvec_type): New member PREV_FONT.
19424 (Fassoc_string): EXFUN it.
19425
19426 * print.c: Include font.h.
19427 (print_object): Handle font-related objects.
19428
19429 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19430 conditionals. Don't check enable_font_backend. Delete all codes
19431 used only when USE_FONT_BACKEND is not defined.
19432 (handle_auto_composed_prop): Do nothing if it->f is not on a
19433 window system. Check how many following characters can be
19434 displayed by the same font.
19435 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19436 'struct font *'.
19437 (get_char_face_and_encoding): Assign the whole encoding task to
19438 the `encode-char' method of a font driver.
19439 (fill_composite_glyph_string): Adjust for the change of `struct
19440 face' and `struct glyph_string'.
19441 (fill_glyph_string): Likewise.
19442 (get_per_char_metric): Arguments changed.
19443 (x_get_glyph_overhangs): Adjust for the change of `struct face'
19444 and `struct glyph_string'.
19445 (produce_stretch_glyph, calc_line_height_property)
19446 (x_produce_glyphs): Likewise.
19447
19448 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19449 conditionals. Don't check enable_font_backend. Delete all codes
19450 used only when USE_FONT_BACKEND is not defined.
19451 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
19452 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19453 (Qp): Extern them.
19454 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19455 Deleted.
19456 (struct font_name): Deleted.
19457 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19458 (compare_fonts_by_sort_order): New function.
19459 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19460 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19461 Deleted.
19462 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19463 compare_fonts_by_sort_order.
19464 (Fx_font_family_list): Call Ffont_family_list.
19465 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19466 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19467 (face_symbolic_slant, face_symbolic_swidth)
19468 (split_font_name_into_vector, build_font_name_from_vector)
19469 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19470 (font_rescale_ratio, split_font_name, build_font_name)
19471 (free_font_names, sort_fonts, x_face_list_fonts)
19472 (face_font_available_p, sorted_font_list, cmp_font_names)
19473 (font_list_1, concat_font_list, font_list, remove_duplicates):
19474 Deleted.
19475 (Fx_list_fonts): Use Ffont_list.
19476 (LFACE_AVGWIDTH): Deleted.
19477 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19478 by FONTP.
19479 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19480 (set_lface_from_font_name): Delete it.
19481 (set_lface_from_font): Rename from
19482 set_lface_from_font_and_fontset. Caller changed. Don't set
19483 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19484 for face.
19485 (merge_face_vectors): Copy font-spec if necessary.
19486 Clear properties of the font-spec if necessary.
19487 (merge_face_ref): Clear properties of the font-spec if necessary.
19488 (Finternal_set_lisp_face_attribute): Likewise.
19489 (set_font_frame_param): Use font_load_for_lface to load a
19490 font-object, and call Fmodify_frame_parameters with it.
19491 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19492 font name by Ffont_xlfd_name.
19493 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19494 QCslant, and QCwidth.
19495 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19496 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19497 Compare fonts by EQ.
19498 (lookup_non_ascii_face): Deleted.
19499 (face_for_font): The 2nd argument changed.
19500 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19501 Check atomic font properties by case insensitive.
19502 (realize_non_ascii_face): Set face->overstrike correctly.
19503 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19504 (dump_realized_face): Get font name from
19505 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19506
19507 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19508 conditionals. Don't check enable_font_backend. Delete all codes
19509 used only when USE_FONT_BACKEND is not defined.
19510 (xic_create_xfontset): Original code deleted and renamed from
19511 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19512 (x_make_gc): Don't set GCFont in GCs.
19513 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19514 opened by "fixed".
19515 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19516 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19517 get_font_repertory_func.
19518
19519 * xfont.c: Include <stdlib.h> and "ccl.h".
19520 (struct xfont_info): New structure.
19521 (xfont_query_font): Deleted.
19522 (xfont_find_ccl_program): Rename from x_find_ccl_program and
19523 moved from xterm.c.
19524 (xfont_driver): Adjust for the change of struct font_driver.
19525 (compare_font_names): New function.
19526 (xfont_list_pattern): Sort font names case insensitively.
19527 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
19528 (xfont_list): Return a list, not vector.
19529 (xfont_match): If the font doesn't have QCname property, generate
19530 a name from the other font properties.
19531 (xfont_open): Return a font-object. Adjusted for the change of
19532 struct font. Get underline_thickness and underline_position from
19533 font property. Don't update dpyinfo->smallest_font_height and
19534 dpyinfo->smallest_char_width.
19535 (xfont_close): Don't free struct font.
19536 (xfont_prepare_face): Adjust for the change of struct font.
19537 (xfont_done_face): Deleted.
19538 (xfont_has_char): Adjust for the change of struct font.
19539 (xfont_encode_char, xfont_draw): Likewise.
19540 (xfont_check): New function.
19541
19542 * xftfont.c (xftfont_list): Adjust for the change of `list'
19543 callback function.
19544 (xftfont_match): Adjust for the format change of font-entity.
19545 (xftfont_open): Adjust for the format change of font-entity and
19546 font-object. Adjusted for the change of struct font. Return a
19547 font-object. Don't update dpyinfo->smallest_font_height and
19548 dpyinfo->smallest_char_width.
19549 (xftfont_close): Block input while calling XftFontClose.
19550 (xftfont_prepare_face): Don't block input while calling
19551 xftfont_get_colors. Adjusted for the change of struct font.
19552 (xftfont_shape): Return value of error case fixed.
19553
19554 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19555
19556 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19557 conditionals.
19558 (FONT_WIDTH): Return (f)->max_width.
19559 (struct x_display_info): Delete member `font'.
19560 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19561 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19562 (struct x_output): Change type of `font' to `struct font *'.
19563
19564 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19565 conditionals. Don't check enable_font_backend. Delete all codes
19566 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19567 (x_per_char_metric, x_encode_char): Deleted.
19568 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
19569 (x_compute_glyph_string_overhangs): Adjust for the change of
19570 `struct face'.
19571 (x_draw_glyph_string_foreground)
19572 (x_draw_composite_glyph_string_foreground): Likewise.
19573 (x_draw_glyph_string): Likewise. Use font->underline_position and
19574 font->underline_thickness.
19575 (x_new_font): Rename from x_new_fontset2.
19576 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19577 (x_check_font): Call `check' method of a font driver.
19578 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19579 (x_query_font, x_get_font_repertory): Deleted.
19580 (x_find_ccl_program): Rename and moved to xfont.c.
19581 (x_redisplay_interface): Adjust for the change of `struct
19582 redisplay_interface'.
19583
19584 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19585 conditionals. Don't check enable_font_backend. Delete all codes
19586 used only when USE_FONT_BACKEND is not defined. Surround non-used
19587 code by "#ifdef OLD_FONT" and "endif".
19588 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19589
19590 * w32font.h (struct w32font_info): New member.
19591 (FONT_COMPAT): New macro.
19592 (w32font_open_internal): Prototype adjusted.
19593
19594 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19595 OLD_FONT" and "endif".
19596
19597 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19598 conditionals. Don't check enable_font_backend. Delete all codes
19599 used only when USE_FONT_BACKEND is not defined.
19600 (w32font_open): Return a font-object. Make a font-object by
19601 font_make_object. Adjusted for the change of struct w32font_info.
19602 (w32font_close): Don't free struct font. Adjusted for the change
19603 of struct w32font_info.
19604 (w32font_encode_char, w32font_text_extents, w32font_draw):
19605 Adjust for the change of struct w32font_info.
19606 (w32font_draw): Likewise.
19607 (w32font_list_internal): Return a list, not vector.
19608 (w32font_open_internal): Change the 4th arg to font-object.
19609 Adjusted for the change of struct w32font_info and font-object format.
19610 (add_font_name_to_list): Don't downcase names.
19611 (w32_enumfont_pattern_entity): Make a font-entity by
19612 font_make_entity. Adjusted for the format change of font-entity.
19613 Use FONT_SET_STYLE to set a style-related font property. If a
19614 font is scalable, set avgwidth property to 0. Set font-entity
19615 property by font_put_extra.
19616 (font_matches_spec): Adjust for the format change of font-entity.
19617 (w32_weight_table, w32_decode_weight): New variables.
19618 (w32_encode_weight): New function.
19619 (fill_in_logfont): Adjust for the format change of font-spec.
19620 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19621 weight value.
19622 (w32font_driver): Adjust for the change of struct font_driver.
19623
19624 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19625 conditionals. Don't check enable_font_backend. Surround non-used
19626 code by "#ifdef OLD_FONT" and "endif".
19627 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
19628 (FONT_AVG_WIDTH): Adjust for the change of struct font.
19629
19630 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19631 conditionals. Don't check enable_font_backend. Delete all codes
19632 used only when USE_FONT_BACKEND is not defined. Surround non-used
19633 code by "#ifdef OLD_FONT" and "endif".
19634
19635 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19636 (uniscribe_open): Return value changed to font-object.
19637 Adjusted for the format change of font-object.
19638 (uniscribe_otf_capability): Adjust for the change of struct font.
19639 (add_opentype_font_name_to_list): Don't downcase names.
19640 (uniscribe_font_driver): Adjust for the change of struct
19641 font_driver.
19642
19643 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
19644
19645 * dispnew.c (update_frame_1): Check if tty output is still valid
19646 before flushing it.
19647
19648 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19649
19650 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19651 to Gtk+ menus.
19652
19653 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19654
19655 * dired.c (file_name_completion): Tweak the code so as to always do it
19656 in a single pass. Tighten the scope of some variables.
19657
19658 * dired.c (Qdefault_directory): New var.
19659 (file_name_completion): Use it instead of Fexpand_file_name.
19660 (syms_of_dired): Initialize it.
19661
19662 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19663
19664 * fileio.c (double_dollars): Remove dead code.
19665
19666 2008-05-10 Eli Zaretskii <eliz@gnu.org>
19667
19668 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19669 Mention w32-get-true-file-attributes in doc string.
19670
19671 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19672
19673 2008-05-09 Glenn Morris <rgm@gnu.org>
19674
19675 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19676 2008-04-23.
19677
19678 2008-05-09 Eli Zaretskii <eliz@gnu.org>
19679
19680 Support for reporting owner and group of each file on MS-Windows:
19681 * dired.c (stat_uname, stat_gname): New functions, with special
19682 implementation for w32.
19683 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19684
19685 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19686 (dflt_group_name): New static variable.
19687 (dflt_group): Rename from the_group.
19688 (init_user_info): Init dflt_group fields. Get user's group name
19689 from LookupAccountSid.
19690 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19691 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19692 New initialization states.
19693 (globals_of_w32): Initialize them to zero. Initialize the default
19694 group name to "None".
19695 (GetFileSecurity_Name): New global var, the name of the function
19696 to call for GetFileSecurity.
19697 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19698 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19699 (get_file_security, get_security_descriptor_owner)
19700 (get_security_descriptor_group, is_valid_sid)
19701 (get_file_security_desc, get_rid, get_name_and_id)
19702 (get_file_owner_and_group): New functions.
19703 (stat): Use get_file_security_desc and get_file_owner_and_group to
19704 report the owner and primary group of each file. Don't ignore the
19705 high 32 bits of file's size, now that st_size is 64-bit wide.
19706 Fix test when to get true file attributes.
19707 (init_user_info): Use get_rid instead of equivalent inline code.
19708 (fstat): Don't ignore the high 32 bits of file's size.
19709
19710 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
19711
19712 * image.c (png_load): Use correct bit-depth for setting background
19713 color.
19714
19715 2008-05-08 Eli Zaretskii <eliz@gnu.org>
19716
19717 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19718 epa-hook.elc.
19719
19720 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
19721
19722 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19723
19724 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19725
19726 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19727 because the original parameters are in pure storage now.
19728 (mac_window): Remove unused params. Update callers.
19729
19730 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19731
19732 * lread.c (substitute_object_recurse): Use lower-level primitives.
19733 Don't signal errors when traversing sub-char-tables.
19734 Don't loop over all the possible characters when traversing char-tables.
19735
19736 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19737 just like we do in print.c.
19738
19739 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19740
19741 * minibuf.c (Ftry_completion): Remove code left over from when we used
19742 scmp instead of Fcompare_strings.
19743
19744 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
19745
19746 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19747
19748 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19749
19750 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19751 Create bitmap context in native byte order.
19752
19753 * macterm.c (XDrawLine)
19754 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19755 context in native byte order.
19756
19757 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19758
19759 * config.in: Regenerate.
19760
19761 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19762 New definitions for Image I/O support.
19763 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19764 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19765 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19766 (mac_data_provider_release_data, image_load_image_io)
19767 [USE_MAC_IMAGE_IO]: New functions.
19768 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19769 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19770 (init_image_func_pointer) [MAC_OSX]: Remove function.
19771 (image_load_quartz2d) [MAC_OSX]: Check availability of
19772 CGImageCreateWithPNGDataProvider at compile time.
19773 Use lowercase `false' for boolean constant.
19774 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19775 Use image_load_image_io.
19776 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19777 Don't check MyCGImageCreateWithPNGDataProvider.
19778 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19779 Don't call init_image_func_pointer.
19780
19781 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19782
19783 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19784 Make variable non-static.
19785 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19786 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19787
19788 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19789 (RED_FROM_ULONG): Mask off higher bits.
19790 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19791
19792 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19793 Include AvailabilityMacros.h.
19794 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19795 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19796
19797 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19798
19799 * chartab.c (Fset_char_table_range): If range is t, really set all
19800 chars to that value.
19801
19802 2008-05-03 Eli Zaretskii <eliz@gnu.org>
19803
19804 * dired.c (Ffile_attributes): Don't allow the device number become
19805 negative.
19806
19807 2008-05-02 Daiki Ueno <ueno@unixuser.org>
19808
19809 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19810
19811 2008-05-02 Juri Linkov <juri@jurta.org>
19812
19813 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19814 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19815 DEFAULT argument as a list of default values in docstrings.
19816
19817 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
19818
19819 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19820
19821 2008-05-01 Martin Rudalics <rudalics@gmx.at>
19822
19823 * dispnew.c (change_frame_size_1): Preserve small windows when
19824 shrinking frames by calling set_window_height|width with third
19825 arg 2.
19826
19827 * window.h (struct window): Replace field too_small_ok by field
19828 resize_proportionally.
19829
19830 * window.c (make_window): Initialize resize_proportionally.
19831 (enlarge_window): Temporarily set resize_proportionally to make
19832 sure that shrink_windows does scale the window proportionally.
19833 (shrink_windows): When window has resize_proportionally set try
19834 to shrink it proportionally by stealing from other windows.
19835 (struct saved_window, Fset_window_configuration)
19836 (compare_window_configurations): Handle resize_proportionally.
19837 (WINDOW_TOTAL_SIZE): New macro.
19838 (window_min_size, shrink_windows, size_window): Use it.
19839 (check_min_window_sizes): Remove. Invalid values of
19840 window-min-height|width are handled by window_min_size_2 now.
19841 (size_window, Fsplit_window, enlarge_window)
19842 (adjust_window_trailing_edge, grow_mini_window): Don't call
19843 check_min_window_sizes.
19844 (window_min_size_2, window_min_size_1, window_min_size):
19845 New argument safe_p for retrieving "safe" minimum sizes.
19846 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19847 (adjust_window_trailing_edge, grow_mini_window):
19848 Adjust arguments of window_min_size... functions.
19849 (shrink_windows): Argument min_size removed. New argument
19850 safe_p allows shrinking windows to their safe minimum sizes.
19851 Calculate minimum size and decide whether a window shall be
19852 deleted for each window individually.
19853 (size_window): When nodelete_p equals 2, tell shrink_windows to
19854 delete windows only if their new minimum size is no more safe.
19855 (shrink_window_lowest_first): Call window_min_size_1 to make
19856 sure to preserve modeline of bottom-most window when resizing
19857 the minibuffer.
19858 (Fset_window_configuration, Fcurrent_window_configuration)
19859 (compare_window_configurations): Do not handle
19860 window-min-height|width any more.
19861 (syms_of_window): Clarify window-min-height|width doc-strings.
19862
19863 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19864
19865 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19866 some more. Copy some of the code from Ftry_completions.
19867 Remove special case code that dates back to initial revision when the
19868 slash was only added when necessary and that can't trigger nowadays.
19869
19870 2008-04-27 Kenichi Handa <handa@m17n.org>
19871
19872 * font.c (font_prop_validate): Signal `error' instead of `font'.
19873
19874 2008-04-29 Jason Rumney <jasonr@gnu.org>
19875
19876 * w32fns.c (Fw32_battery_status): New defun.
19877 (syms_of_w32fns): Defsubr it.
19878
19879 2008-04-28 Andreas Schwab <schwab@suse.de>
19880
19881 * dired.c (file_name_completion): Fix another mixing of encoded
19882 and decoded names.
19883
19884 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
19885
19886 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19887
19888 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
19889
19890 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19891
19892 2008-04-27 Andreas Schwab <schwab@suse.de>
19893
19894 * dired.c (file_name_completion): Fix inappropriate mixing of
19895 encoded and decoded names.
19896
19897 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19898
19899 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19900
19901 2008-04-26 Eli Zaretskii <eliz@gnu.org>
19902
19903 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19904 2008-03-31, it's not needed anymore with `struct stat' definition
19905 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19906 for the same reasons.
19907
19908 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19909
19910 * m/sparc.h: Additional redefinitions for GNU/Linux.
19911
19912 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19913
19914 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19915 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19916 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19917 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19918 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19919 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19920 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19921 Likewise.
19922
19923 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19924 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19925 (mac_ax_number_of_characters): Add externs.
19926 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19927 [USE_MAC_TSM]: Likewise.
19928 (mac_handle_text_input_event) [MAC_OSX]:
19929 Handle kEventTextInputOffsetToPos for no active input area case.
19930 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19931 (mac_handle_document_access_event)
19932 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19933 (install_application_handler) [MAC_OSX]: Register handlers for
19934 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19935 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19936 Register mac_handle_document_access_event.
19937
19938 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19939 Make functions non-static.
19940
19941 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19942
19943 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19944 (read_file_name_completion_ignore_case, insert_default_directory)
19945 (Qdefault_directory): Move to minibuffer.el.
19946 (Fread_file_name): Call the new `read-file-name' instead.
19947
19948 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19949
19950 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19951 Make function non-static.
19952 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19953 Remove function.
19954 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19955 Move to mactoolbox.c.
19956 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19957
19958 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19959 (mac_rect_make): New macro.
19960
19961 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19962 instead of float.
19963 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19964 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19965 (XSetBackground) [USE_CG_DRAWING]: Likewise.
19966 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19967 CGRectMake.
19968 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19969 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19970 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19971 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19972 instead of WindowRef in argument type.
19973 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19974 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19975 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19976 instead of DISPLAY. All uses changed.
19977 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19978 (x_calc_absolute_position): Simplify so as not to use
19979 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
19980
19981 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19982 instead of WindowRef in argument type.
19983 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
19984 [TARGET_API_MAC_CARBON]: Remove externs.
19985 (create_apple_event, mac_event_parameters_to_lisp)
19986 [TARGET_API_MAC_CARBON]: Add externs.
19987
19988 * mactoolbox.c (Vmac_ts_script_language_on_focus)
19989 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
19990 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
19991 is clicked.
19992 (x_activate_menubar): Remove extern for saved_menu_event_location.
19993 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19994 Move from mac.c.
19995
19996 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19997
19998 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
19999 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20000
20001 2008-04-23 Jason Rumney <jasonr@gnu.org>
20002
20003 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20004 attributes only for local files.
20005
20006 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20007 default to Qlocal.
20008
20009 2008-04-22 Juri Linkov <juri@jurta.org>
20010
20011 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20012 read-buffer-to-switch instead of using the letter "B".
20013
20014 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20015
20016 * fileio.c (Qdefault_directory): New variable.
20017 (Fread_file_name): Use it to pass `dir' to the completion functions.
20018
20019 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20020
20021 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20022
20023 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20024
20025 * keyboard.c (Vpre_help_message): Remove.
20026 (show_help_echo): Remove default C code.
20027
20028 * dired.c (directory_files_internal, file_name_completion):
20029 Only call ENCODE_FILE if the string is indeed decoded.
20030
20031 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20032
20033 * Makefile.in (TOOLKIT_DEFINES): Remove.
20034 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20035
20036 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20037
20038 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20039 (mactoolbox.o): New target.
20040
20041 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20042 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20043
20044 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20045 Use mac_set_frame_window_background instead of XSetWindowBackground.
20046 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20047 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20048 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20049 instead of SetWindowTitleWithCFString.
20050 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20051 Move function to mactoolbox.c.
20052 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20053 Use mac_set_window_modified instead of SetWindowModified.
20054 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20055 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20056 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20057 FrontNonFloatingWindow. Use mac_activate_window instead of
20058 ActivateWindow. Use mac_active_non_floating_window instead of
20059 ActiveNonFloatingWindow.
20060 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20061 Use mac_show_hourglass and mac_hide_hourglass.
20062 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20063 instead of GetGlobalMouse.
20064 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20065 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20066 Use mac_bring_window_to_front instead of BringToFront.
20067 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20068 mactoolbox.c.
20069 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20070 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20071 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20072 mactoolbox.c.
20073
20074 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20075 (XtPointer): Move typedef from macmenu.c.
20076 (enum button_type): Move enum from macmenu.c.
20077 (widget_value): Move typedef from macmenu.c.
20078 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20079 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20080 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20081 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20082 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20083 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20084 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20085 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20086 (Selection): Move typedef from macselect.c.
20087 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20088 macterm.c.
20089 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20090 (mac_is_window_collapsed, mac_bring_window_to_front)
20091 (mac_send_window_behind, mac_hide_window, mac_show_window)
20092 (mac_collapse_window, mac_front_non_floating_window)
20093 (mac_active_non_floating_window, mac_activate_window)
20094 (mac_move_window_structure, mac_move_window, mac_size_window)
20095 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20096
20097 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20098 (enum mac_menu_kind): Move enum to mactoolbox.c.
20099 (min_menu_id): Move variable to mactoolbox.c.
20100 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20101 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20102 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20103 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20104 [TARGET_API_MAC_CARBON]: Likewise.
20105 (XtPointer): Move typedef to macgui.h.
20106 (enum button_type): Move enum to macgui.h.
20107 (widget_value): Move typedef to macgui.h.
20108 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20109 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20110 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20111 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20112 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20113 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20114 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20115 (popup_activated_flag): Make variable non-static.
20116 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20117 (add_menu_item, fill_menu, dispose_menus):
20118 Move functions to mactoolbox.c.
20119 (restore_show_help_function, menu_target_item_handler)
20120 (install_menu_target_item_handler, mac_handle_dialog_event)
20121 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20122 [TARGET_API_MAC_CARBON]: Likewise.
20123 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20124 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20125 (find_and_call_menu_selection, name_is_separator): Make function
20126 non-static.
20127 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20128 to mactoolbox.c.
20129 (set_frame_menubar): Don't call install_menu_quit_handler.
20130 (menu_item_selection): New variable.
20131 (mac_menu_show): Use create_and_show_popup_menu.
20132 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20133 selection but set variable menu_item_selection. All uses changed.
20134 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20135 Call install_menu_quit_handler. Move to mactoolbox.c.
20136
20137 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20138 (Selection): Move typedef to macgui.h.
20139 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20140 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20141 Make variables non-static.
20142 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20143 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20144 Make functions non-static.
20145 (Vmac_service_selection) [MAC_OSX]: Likewise.
20146 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20147 (mac_valid_selection_target_p, mac_clear_selection)
20148 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20149 (mac_put_selection_value, mac_selection_has_target_p)
20150 (mac_get_selection_value, mac_get_selection_target_list)
20151 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20152 Move functions to mactoolbox.c.
20153 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20154 Likewise.
20155 (copy_scrap_flavor_data, mac_handle_service_event)
20156 (install_service_handler) [MAC_OSX]: Likewise.
20157 (syms_of_macselect) <Vmac_dnd_known_types>:
20158 Use mac_dnd_default_known_types.
20159
20160 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20161 Move to mactoolbox.c.
20162 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20163 (Fx_selection_owner_p): Add EXFUN.
20164 (install_window_handler, remove_window_handler, XSetWindowBackground):
20165 Remove externs.
20166 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20167 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20168 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20169 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20170 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20171 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20172 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20173 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20174 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20175 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20176 (mac_valid_selection_target_p, mac_clear_selection)
20177 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20178 (mac_put_selection_value, mac_selection_has_target_p)
20179 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20180 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20181 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20182 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20183 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20184 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20185 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20186 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20187 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20188
20189 * mactoolbox.c: New file.
20190
20191 2008-04-18 Jason Rumney <jasonr@gnu.org>
20192
20193 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20194
20195 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20196
20197 * character.c (Fmultibyte_char_to_unibyte):
20198 Return latin1 chars unchanged.
20199
20200 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20201 relocated if it points to `name'.
20202
20203 2008-04-17 Kenichi Handa <handa@m17n.org>
20204
20205 * data.c (Faset): Allow setting a multibyte character in an
20206 ASCII-only unibyte string.
20207
20208 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20209
20210 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20211
20212 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20213 done in config.h.
20214
20215 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20216
20217 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20218 (Fchar_direction): Add usage in the docstring.
20219
20220 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20221
20222 * keyboard.c (read_key_sequence): Remove always-true checks.
20223
20224 2008-04-14 Jason Rumney <jasonr@gnu.org>
20225
20226 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20227 compatibility struct, for better underline positioning.
20228
20229 2008-04-13 David Hansen <david.hansen@gmx.net>
20230
20231 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20232 string.
20233
20234 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20235
20236 * m/hp800.h (XUINT, XSET): Remove.
20237
20238 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20239
20240 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20241 previous change.
20242
20243 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20244
20245 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20246 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20247
20248 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20249
20250 * keymap.h (map_keymap_canonical): Declare.
20251 * xmenu.c (single_keymap_panes): Use it.
20252
20253 2008-04-11 Glenn Morris <rgm@gnu.org>
20254
20255 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20256 set the target's value to that of the alias.
20257
20258 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20259
20260 * term.c (set_tty_color_mode): Left over typo.
20261
20262 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20263
20264 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20265 only after check for file name handler functions. Signal, when
20266 native functionality is not supported.
20267 (syms_of_fileio): Declare it unconditionally.
20268
20269 2008-04-10 Jason Rumney <jasonr@gnu.org>
20270
20271 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20272 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20273
20274 * w32.c (logon_network_drive): Also logon to remote drives that
20275 are mapped to drive letters.
20276
20277 2008-04-10 Glenn Morris <rgm@gnu.org>
20278
20279 * xdisp.c (truncate-partial-width-windows): Doc fix.
20280
20281 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20282
20283 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20284 Move functions to minibuffer.el.
20285 (syms_of_fileio): Don't declare them.
20286
20287 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20288
20289 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20290 (syms_of_minibuf): Remove its initialization.
20291
20292 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20293
20294 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20295
20296 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20297
20298 2008-04-09 Jason Rumney <jasonr@gnu.org>
20299
20300 * makefile.w32-in (distclean): Delete makefile too.
20301 (maintainer-clean): New target.
20302
20303 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20304
20305 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20306 for new font backend and composite cases.
20307
20308 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20309
20310 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20311 Most of the code moved to run_timers.
20312 (do_pending_atimers): Call run_timers.
20313 (run_timers): New function.
20314
20315 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20316 run atimers.
20317
20318 * process.c (wait_reading_process_output): The same as above.
20319
20320 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20321
20322 * minibuf.c (last_exact_completion): Remove variable.
20323 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20324 (complete_and_exit_1, complete_and_exit_2)
20325 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20326 (Fdisplay_completion_list, display_completion_list_1)
20327 (Fminibuffer_completion_help, Fself_insert_and_exit)
20328 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20329 minibuffer.el.
20330 (syms_of_minibuf): Remove corresponding initializations.
20331
20332 * keyboard.c (Qdeactivate_mark): New var.
20333 (command_loop_1): Use it to call `deactivate-mark'.
20334 (syms_of_keyboard): Initialize it.
20335
20336 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20337 to another frame.
20338 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20339 Don't call set_tty_color_mode.
20340 (store_frame_param): Reset previous_frame rather than call
20341 set_tty_color_mode.
20342 * term.c (set_tty_color_mode): Rewrite.
20343 * dispextern.h (set_tty_color_mode): New type.
20344 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20345
20346 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20347
20348 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20349 for generic chars, which do not exist any more in emacs-unicode.
20350
20351 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
20352
20353 * coding.c (detect_coding_emacs_mule)
20354 (Ffind_operation_coding_system): Fix typo.
20355
20356 2008-04-08 Jason Rumney <jasonr@gnu.org>
20357
20358 * w32uniscribe.c (SNAME): Extract only symbol name.
20359
20360 * w32font.h (struct w32_metric_cache): New struct.
20361 (w32font_info): Use it.
20362 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20363 (CACHE_BLOCKSIZE): New constants.
20364
20365 * w32font.c (Qja, Qko, Qzh): New symbols.
20366 (syms_of_w32font): Initialise them.
20367 (font_matches_spec): Use them to filter by language.
20368 (recompute_cached_metrics): Remove function.
20369 (compute_metrics, clear_cached_metrics): New functions.
20370 (w32font_encode_char): Use them to manage metric cache.
20371 (w32font_text_extents): Cache metrics for all glyphs on demand.
20372 Delay converting glyph indices to WORD until needed.
20373 (w32font_open_internal): Initialize metric cache to empty.
20374 (registry_to_w32_charset): Charset should always be a symbol.
20375 (fill_in_logfont, list_all_matching_fonts): Family should
20376 always be a symbol.
20377
20378 2008-04-06 Jason Rumney <jasonr@gnu.org>
20379
20380 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20381 Give up if glyph indices not supported. Use uniscribe obtained
20382 ABC widths for individual metrics. Map glyph clusters back to
20383 characters using fClusterStart flag. Return number of glyphs
20384 produced, not chars processed.
20385 (uniscribe_shape): Map char at FROM to current glyph.
20386
20387 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20388
20389 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20390 Use SetMenuItemHierarchicalMenu.
20391
20392 2008-04-05 Jason Rumney <jasonr@gnu.org>
20393
20394 * image.c (pbm_load): Allow color values up to 65535.
20395 Throw an error if max_color_idx is outside the supported range.
20396 Report an error when image size is invalid.
20397 Read two bytes at a time when raw images have max_color_idx above 255.
20398
20399 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20400
20401 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20402 append "CCL: Quitted" when the CCL program is quitted.
20403 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20404
20405 * ccl.h (struct ccl_program): New member quit_silently.
20406
20407 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
20408
20409 * search.c (compile_pattern_1): Treat non-nil and non-string of
20410 search-spaces-regexp as nil.
20411
20412 * minibuf.c (Fassoc_string): Tweak docstring.
20413
20414 2008-04-05 Eli Zaretskii <eliz@gnu.org>
20415
20416 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20417 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20418 2008-03-14 to force inode be positive.
20419
20420 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20421 _S_* ones, since we now use our own sys/stat.h.
20422 (stat, fstat): Don't mangle the inode number.
20423 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20424
20425 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * frame.h (struct frame): Give one more bit to `visible' since we use
20428 values larger than 1 to indicate obscured frames on ttys.
20429
20430 * keymap.c (Qkeymap_canonicalize): New var.
20431 (Fmap_keymap_internal): New fun.
20432 (describe_map): Use keymap-canonicalize.
20433
20434 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20435 (Fundo_boundary): Set them.
20436 (syms_of_undo): Initialize them.
20437 (record_point): Use them instead of last_point_position*.
20438 (last_undo_buffer): Change type.
20439
20440 2008-04-04 Jason Rumney <jasonr@gnu.org>
20441
20442 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20443 (recompute_cached_metrics): Don't set ascent and descent per char.
20444
20445 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20446 (uniscribe_check_otf): Add GC protection before consing.
20447 Rearrange loop for counting features.
20448
20449 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20450
20451 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20452 buffer with byte-size of source buffer.
20453
20454 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
20455
20456 * callint.c (Fcall_interactively): Handle temporary region even
20457 when shift-select-mode is off.
20458
20459 2008-04-03 Jason Rumney <jasonr@gnu.org>
20460
20461 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20462
20463 2008-04-03 Kenichi Handa <handa@m17n.org>
20464
20465 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20466 (CATEGORY_MASK_UTF_16): Likewise.
20467 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20468 binary file.
20469 (detect_coding): Add null-byte detection for a binary file.
20470 (detect_coding_system): Likewise.
20471
20472 2008-04-03 Jason Rumney <jasonr@gnu.org>
20473
20474 * w32uniscribe.c: New file.
20475
20476 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20477
20478 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20479
20480 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20481 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20482 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20483 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20484 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20485 (Qphonetic): New symbols.
20486 (syms_of_w32font): Initialize them.
20487 (font_supported_scripts): Use them.
20488 (w32font_list_family): List all charsets.
20489 (w32font_text_extents, recompute_cached_metrics): Fix metric
20490 calculations.
20491 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20492 Give opentype fonts their own format.
20493 (font_matches_spec): New arguments backend and logfont.
20494 Handle :otf spec for uniscribe backend.
20495 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20496 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20497
20498 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20499 font backend.
20500 (globals_of_w32fns): Initialize uniscribe font backend.
20501
20502 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20503 dependencies.
20504 (w32uniscribe.$(O)): New file to build.
20505 (FONT_OBJ): Include w32uniscribe.$(O).
20506 (LIBS): Add uniscribe libraries.
20507
20508 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20509
20510 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
20511
20512 * callint.c (Vshift_select_mode): New var.
20513 (Finteractive): Document new ^ spec.
20514 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20515 is present.
20516
20517 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20518 (command_loop_1): Avoid running the direct display versions of
20519 forward-char and backward-char if shift-selection may occur.
20520 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20521 shift-translation takes place.
20522
20523 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20524 avoid clobbering by define-minor-mode.
20525
20526 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20527 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20528
20529 * syntax.c (Fforward_word): Add ^ interactive spec.
20530
20531 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20532 (Fscroll_right): Add ^ interactive spec.
20533
20534 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20535
20536 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20537
20538 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20539
20540 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20541
20542 2008-03-31 Juri Linkov <juri@jurta.org>
20543
20544 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20545
20546 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20547
20548 * gtkutil.c (xg_set_geometry): Fix indentation.
20549 (xg_resize_outer_widget): Remove.
20550 (x_wm_size_hint_off): Fix indentation.
20551 (xg_frame_set_char_size): Call flush_and_sync after
20552 gtk_window_resize.
20553 (x_wm_set_size_hint): Pass NULL as geometry window to
20554 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20555 Add menu bar and tool bar height to base height.
20556 (xg_update_frame_menubar, free_frame_menubar)
20557 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20558 (update_frame_tool_bar, free_frame_tool_bar):
20559 Change xg_resize_outer_widget to xg_frame_set_char_size.
20560
20561 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
20562
20563 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20564 (Fdbus_call_method): New parameter TIMEOUT.
20565 (dbus-send-signal): Optimize UNGCPRO call.
20566
20567 2008-03-29 Juri Linkov <juri@jurta.org>
20568
20569 * window.c (Fdisplay_buffer): Move call to
20570 Vsplit_window_preferred_function out of conditions that check
20571 if window is eligible for vertical splitting.
20572 When Vsplit_window_preferred_function is non-nil, call it and use
20573 its non-nil return value as window. Otherwise, continue doing
20574 vertical splitting using Fsplit_window with arg horflag=nil.
20575 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20576 default value from `split-window' to nil.
20577
20578 2008-03-29 Juri Linkov <juri@jurta.org>
20579
20580 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20581 for interactive code letters 'b' and 'B'.
20582
20583 2008-03-29 Eli Zaretskii <eliz@gnu.org>
20584
20585 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20586 multibyte string.
20587
20588 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20589
20590 * keyboard.c (pending_funcalls): New var.
20591 (timer_check): Run it.
20592 (syms_of_keyboard): Initialize it.
20593 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20594 (Vdelete_terminal_functions): New vars.
20595 (syms_of_terminal): Initialize them.
20596 (Fdelete_terminal): Run delete-terminal-functions.
20597 * xdisp.c (safe_eval): Rewrite.
20598 (safe_call2): New fun.
20599 * frame.c (Qdelete_frame_functions): New var.
20600 (syms_of_frame): Initialize it.
20601 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20602 * lisp.h (safe_call2, pending_funcalls): Declare.
20603
20604 2008-03-28 Andreas Schwab <schwab@suse.de>
20605
20606 * indent.c (Fmove_to_column): Move declaration before statements.
20607
20608 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20611 (struct frame): Use bit fields for boolean vars.
20612
20613 * process.c (server_accept_connection): Simplify naming.
20614 (emacs_get_tty_pgrp): Use SDATA.
20615
20616 * coding.c (decode_coding_object): Fix last change.
20617
20618 2008-03-27 Jason Rumney <jasonr@gnu.org>
20619
20620 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20621
20622 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20623
20624 * charset.c (Fdefine_charset_internal): Change the way of
20625 registering charsets in Vcharset_order_list.
20626 (syms_of_charset): Make the charset `eight-bit' supplementary.
20627
20628 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20629
20630 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20631 operations, to avoid having the difference between pointers
20632 overflow.
20633
20634 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20635
20636 * indent.c (check_display_width): New fun.
20637 (scan_for_column): Use it.
20638
20639 * data.c (syms_of_data): Mark most-positive-fixnum and
20640 most-negative-fixnum as constants.
20641
20642 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20643
20644 * indent.c (scan_for_column): Extract from current_column_1.
20645 Merge with the same code from Fmove_to_column.
20646 (current_column_1, Fmove_to_column): Use it.
20647
20648 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20649
20650 * keymap.c (map_keymap_internal): New fun.
20651 (map_keymap): Use it.
20652 (Fmap_keymap_internal): New fun.
20653 (Fmap_keymap): Remove left-out test from before make_save_value.
20654
20655 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20656
20657 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20658 Use XCAR/XCDR.
20659
20660 * process.h (struct Lisp_Process): Remove filter_multibyte.
20661 * process.c (QCfilter_multibyte): Remove.
20662 (setup_process_coding_systems): Don't use filter_multibyte.
20663 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20664 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20665 (Fset_process_filter_multibyte): Change the coding-system to
20666 approximate the previous behavior.
20667 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20668 coding-system.
20669
20670 * coding.c (decode_coding_object): When not decoding into a buffer,
20671 obey the coding system's preference of (uni|multi)byte.
20672
20673 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20674
20675 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20676 every char is changed and has a different byte-length.
20677 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20678 Fix int -> EMACS_INT.
20679
20680 2008-03-23 David Hansen <david.hansen@gmx.net>
20681
20682 * dbusbind.c (xd_read_message): Remove extra copying of message
20683 strings. Check for NULL `interface' or `member'.
20684
20685 2008-03-22 Eli Zaretskii <eliz@gnu.org>
20686
20687 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20688 cFileName a file name that includes `?' characters, use the 8+3
20689 alias in cAlternateFileName instead.
20690
20691 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20692
20693 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20694
20695 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20696
20697 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20698 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20699 work on current_buffer only instead (that was already the case
20700 for some of the code anyway).
20701 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20702 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20703 (SET_PT, SET_PT_BOTH): Adjust.
20704 * intervals.h (set_point, temp_set_point, set_point_both)
20705 (temp_set_point_both): Remove redundant declarations.
20706
20707 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20708
20709 * fileio.c (Finsert_file_contents):
20710 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20711 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20712 when buffer != current_buffer anyway.
20713
20714 2008-03-20 Andreas Schwab <schwab@suse.de>
20715
20716 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20717 as default.
20718
20719 2008-03-19 Jason Rumney <jasonr@gnu.org>
20720
20721 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20722 (syms_of_w32fns): Initialize them.
20723 (HOURGLASS_ID): New constant.
20724 (x_window_to_frame): Don't check hourglass_window.
20725 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20726 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20727 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20728 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20729 Only change the cursor if hourglass is not active.
20730 (Fx_create_frame): Initialize frame's current_cursor.
20731 (hourglass_atimer): Remove.
20732 (hourglass_started): New function.
20733 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20734 (show_hourglass): Adapt to w32, changing argument to frame.
20735
20736 * w32term.h (struct w32_output): Remove hourglass_window.
20737 Add current_cursor.
20738
20739 * eval.c (call_debugger, Fsignal):
20740 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20741 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20742 (Fexecute_extended_command, cancel_hourglass_unwind):
20743 * minibuf.c (read_minibuf):
20744 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20745
20746 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20747
20748 * window.c (run_funs): New fun.
20749 (run_window_configuration_change_hook): Use it to run the buffer-local
20750 and the global part of the hook.
20751
20752 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20753 (unwind_format_mode_line): Restore selected window.
20754 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20755
20756 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20757
20758 * editfns.c (Fchar_equal): Check they are valid characters.
20759
20760 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20761
20762 2008-03-17 Andreas Schwab <schwab@suse.de>
20763
20764 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20765 against a charset.
20766
20767 * lisp.h (Fbuffer_list): Declare.
20768
20769 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
20770
20771 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20772 handlebox_widget is != 0.
20773
20774 2008-03-16 Juri Linkov <juri@jurta.org>
20775
20776 * callint.c (Fcall_interactively): For interactive code letters
20777 'b' and 'B' put the buffer list into the list of default "future"
20778 values of the minibuffer.
20779
20780 2008-03-16 Andreas Schwab <schwab@suse.de>
20781
20782 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20783 modifiers.
20784
20785 * regex.c (re_match_2_internal): Correct matching of a charset
20786 against latin-1 characters.
20787
20788 2008-03-16 Kenichi Handa <handa@m17n.org>
20789
20790 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20791 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20792 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20793 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20794 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20795 CHAR_STRING_ADVANCE.
20796 (produce_chars): Fix for the case that the source and the
20797 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20798 instead of CHAR_STRING_ADVANCE.
20799 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20800 STRING_CHAR_ADVANCE.
20801
20802 2008-03-15 Andreas Schwab <schwab@suse.de>
20803
20804 * regex.c (re_match_2_internal): Correct matching of eight bit
20805 characters in unibyte strings.
20806
20807 2008-03-15 Martin Rudalics <rudalics@gmx.at>
20808
20809 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20810 at end of range when it coincides with the end of the buffer.
20811
20812 2008-03-14 Eli Zaretskii <eliz@gnu.org>
20813
20814 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20815
20816 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20817
20818 2008-03-14 Jason Rumney <jasonr@gnu.org>
20819
20820 * editfns.c (initial_tz): New variable.
20821 (syms_of_editfns): Initialize it.
20822 (Fset_time_zone_rule): Set it when first called.
20823 Use it when TZSTRING is nil.
20824
20825 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20826 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20827 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20828 (globals_of_w32fns): Initialize them.
20829 (compute_tip_xy): Use them to position tooltips.
20830
20831 2008-03-14 Glenn Morris <rgm@gnu.org>
20832
20833 * emacs.c (main): Revert previous change.
20834 (standard_args): Revert -internal-script back to -scriptload,
20835 and remove the long-option form.
20836
20837 2008-03-13 Glenn Morris <rgm@gnu.org>
20838
20839 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20840 Remove option -enable-font-backend.
20841
20842 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20843
20844 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20845
20846 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20847
20848 * xterm.c (x_connection_closed): For GTK: If this is the last
20849 terminal just exit without closing the display.
20850
20851 2008-03-11 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32font.c (w32font_full_name): Use floor to round.
20854
20855 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20856
20857 * sound.c (alsa_configure): Declare vol at beginning of block.
20858
20859 * fontset.c (Ffontset_info): Remove extra semicolon.
20860
20861 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20862
20863 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20864 size of resulting string.
20865
20866 2008-03-10 Jason Rumney <jasonr@gnu.org>
20867
20868 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20869
20870 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20871
20872 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20873 Don't pretend as if characters with display property haven't been
20874 consumed for string-replacing-string case.
20875
20876 2008-03-08 Kim F. Storm <storm@cua.dk>
20877
20878 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20879 (get_next_display_element, next_element_from_string)
20880 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20881
20882 2008-03-08 Andreas Schwab <schwab@suse.de>
20883
20884 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20885
20886 2008-03-06 Jason Rumney <jasonr@gnu.org>
20887
20888 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20889 when charset not specified. Only translate ANSI to unicode when
20890 font_type is truetype.
20891 (w32font_coverage_ok): New function.
20892 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20893
20894 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20895
20896 * lread.c (Fread_char): Resolve modifiers.
20897 (Fread_char_exclusive): Likewise.
20898
20899 * character.c (char_resolve_modifier_mask): New function.
20900 (char_string): Use char_resolve_modifier_mask.
20901 (Fchar_resolve_modifiers): New function.
20902 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20903 function.
20904
20905 2008-03-04 Jason Rumney <jasonr@gnu.org>
20906
20907 * makefile.w32-in: Always include w32font.c in the build.
20908 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20909
20910 2008-03-04 Andreas Schwab <schwab@suse.de>
20911
20912 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20913 (versionclean): Likewise.
20914
20915 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
20916
20917 * .cvsignore: Add oo.
20918
20919 2008-03-03 Andreas Schwab <schwab@suse.de>
20920
20921 * coding.c (decode_coding_object): Inhibit gap shrinking while
20922 decoding in place.
20923
20924 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20925
20926 * w32term.c: Remove unused include "gnu.h".
20927 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20928
20929 * gnu.h: Rename to ...
20930 * emacs-icon.h: ... this.
20931 * xterm.c: Use emacs-icon.h instead of gnu.h.
20932 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20933
20934 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
20935
20936 * w32font.c: Include math.h.
20937
20938 2008-03-03 Jason Rumney <jasonr@gnu.org>
20939
20940 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20941 Compute options separately.
20942 (w32font_open_internal): Set glyph_idx before caching metrics.
20943
20944 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20945 Define if system headers don't.
20946 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20947 (w32font_encode_char): Don't declare here.
20948
20949 * w32font.c (Quniscribe, QCformat): New symbols.
20950 (syms_of_w32font): Define them.
20951 (w32font_has_char): Indicate uncertainty.
20952 (w32font_encode_char): Encode as glyph point. Make static.
20953 (recompute_cached_metrics): New function.
20954 (w32font_open_internal): Use it. Set font to use glyph points
20955 initially. Set format based on type of font.
20956 (w32font_text_extents, w32font_draw): Optionally use glyph points.
20957 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
20958 on it. Set format based on information available here.
20959 (add_font_entity_to_list): Identify backend based on opentype_only.
20960
20961 2008-03-02 Andreas Schwab <schwab@suse.de>
20962
20963 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20964
20965 * coding.c (decode_coding_big5, produce_chars):
20966 Fix typos in last change.
20967
20968 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
20969
20970 * gnu.h: New icon.
20971
20972 2008-03-02 Kenichi Handa <handa@m17n.org>
20973
20974 * coding.c (decode_coding_utf_8): When eol-type of CODING is
20975 `dos', don't decode '\r' if that is the last in the source.
20976 (decode_coding_utf_16, decode_coding_emacs_mule)
20977 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20978 (decode_coding_raw_text, decode_coding_charset): Likewise.
20979 (produce_chars): Don't decode EOL here. Use EMACS_INT.
20980
20981 2008-03-01 Jason Rumney <jasonr@gnu.org>
20982
20983 * w32font.c (w32font_full_name): Report point size for scalable fonts.
20984
20985 2008-03-01 Kim F. Storm <storm@cua.dk>
20986
20987 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
20988
20989 2008-03-01 Jason Rumney <jasonr@gnu.org>
20990
20991 * w32font.c (w32font_full_name): New function.
20992 (w32font_open_internal): Use it.
20993
20994 2008-03-01 Kim F. Storm <storm@cua.dk>
20995
20996 * dispnew.c (line_draw_cost): Fix invalid glyph check.
20997
20998 2008-03-01 Jason Rumney <jasonr@gnu.org>
20999
21000 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21001
21002 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21003
21004 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21005 xg_frame_resized when the event is for the edit widget.
21006
21007 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
21008
21009 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21010 set_char_size.
21011 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21012 operations on widgets here. Just set frame size if needed.
21013 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21014 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21015 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21016 the whole frame.
21017 (xg_create_tool_bar): Move attachment of the tool bar to
21018 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21019 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21020
21021 2008-03-01 Jason Rumney <jasonr@gnu.org>
21022
21023 * w32fns.c (w32_msg_pump): Disable debug code.
21024
21025 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21026
21027 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21028
21029 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21030
21031 * xdisp.c (next_overlay_string): Don't set
21032 overlay_strings_at_end_processed_p if we're currently reading from
21033 a display string.
21034
21035 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21036
21037 * xdisp.c (get_overlay_strings_1): Fix typo.
21038
21039 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21040
21041 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21042
21043 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21044
21045 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21046
21047 * xdisp.c (display_mode_element): Cancel the previous change.
21048 (decode_mode_spec): Likewise.
21049 (handle_auto_composed_prop): Don't make composition if it->string
21050 is a string.
21051
21052 2008-02-27 Kim F. Storm <storm@cua.dk>
21053
21054 * lisp.h (GLYPH): Change type from int to struct with separate char
21055 and face_id members.
21056 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21057 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21058 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21059 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21060 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21061 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21062 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21063 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21064 handle new Lisp glyph code encoding, either an integer or a cons.
21065
21066 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21067 (GLYPH_ALIAS): Delete.
21068 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21069 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21070 (GLYPH_FROM_CHAR): Replace macro by ...
21071 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21072
21073 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21074 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21075 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21076 (GLYPH_INVALID_P): New macro.
21077 (spec_glyph_lookup_face): Update prototype.
21078
21079 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21080 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21081 new glyph code encoding.
21082 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21083 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21084
21085 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21086 Adapt to new glyph type and new glyph code encoding.
21087
21088 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21089
21090 * indent.c (current_column, current_column_1, Fmove_to_column)
21091 (compute_motion): Adapt to new glyph code encoding.
21092
21093 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21094
21095 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21096
21097 * process.c (wait_reading_process_output): Check for window
21098 changes caused by timers.
21099 Suggested by Johan Bockgård.
21100
21101 2008-02-27 Glenn Morris <rgm@gnu.org>
21102
21103 * emacs.c (USAGE1): Add `--disable-font-backend'.
21104
21105 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21106
21107 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21108 is made to the buffer.
21109
21110 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21111
21112 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21113 (face_at_string_position):
21114 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21115 (face_at_string_position):
21116 * xdisp.c (display_string, next_overlay_change):
21117 * buffer.h (overlays_at):
21118 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21119 Update callers.
21120
21121 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21122
21123 * editfns.c (Fformat): Doc fix.
21124
21125 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21126
21127 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21128 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21129 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21130
21131 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21132
21133 * buffer.c (Fbuffer_swap_text): New function.
21134 (syms_of_buffer): Defsubr it.
21135
21136 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21137
21138 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21139
21140 2008-02-25 Jason Rumney <jasonr@gnu.org>
21141
21142 * w32font.c (w32font_draw): Draw one character at a time when padding.
21143
21144 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21145
21146 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21147 Handle a nil arg. Use run_window_configuration_change_hook.
21148 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21149 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21150 Use run_window_configuration_change_hook.
21151
21152 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21153
21154 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21155 1-pixel width.
21156
21157 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21158
21159 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21160 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21161 if the glyph in the font is zero pixel with.
21162
21163 * dispextern.h (struct glyph_string): New member padding_p.
21164
21165 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21166
21167 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21168
21169 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21170
21171 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21172
21173 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21174
21175 2008-02-25 Jason Rumney <jasonr@gnu.org>
21176
21177 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21178
21179 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21180
21181 Allow fine-grained image-cache flushing.
21182 * dispextern.h (struct image): Add `dependencies' field.
21183 (clear_image_caches): Change arg to Lisp_Object.
21184 * image.c (make_image): Initialize `dependencies' field.
21185 (clear_image_cache): Change arg to allow fine-grained flushing.
21186 Perform the flush even if image-cache-eviction-delay is nil.
21187 (clear_image_caches): Change arg to Lisp_Object.
21188 (Fclear_image_cache): Expand meaning of the argument.
21189 (mark_image): Mark `dependencies' field.
21190 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21191 (lface_hash): Use XHASH rather than XFASTINT.
21192 (face_at_buffer_position): Fix int -> EMACS_INT position.
21193 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21194 (select_frame_for_redisplay): Remove code duplication.
21195 (redisplay_internal): Adapt arg to call to clear_image_caches.
21196
21197 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21198
21199 * s/vms4-0.h:
21200 * s/vms4-2.h:
21201 * s/vms4-4.h:
21202 * s/vms5-5.h: Remove, unused.
21203
21204 * s/irix5-2.h:
21205 * s/irix6-0.h:
21206 * s/riscos5.h:
21207 * s/mach-bsd4-3.h:
21208 * m/mips4.h: Remove files for obsolete systems.
21209
21210 * Makefile.in:
21211 * filelock.c:
21212 * unexmips.c:
21213 * m/hp9000s300.h:
21214 * m/iris4d.h:
21215 * s/aix3-1.h:
21216 * s/hpux.h:
21217 * s/msdos.h:
21218 * s/usg5-0.h:
21219 * s/usg5-2-2.h:
21220 * s/usg5-2.h:
21221 * s/usg5-3.h: Remove references to obsolete variables.
21222
21223 * s/irix5-0.h: Remove, move all the contents ...
21224 * s/irix6-5.h: ... here. Simplify.
21225 * config.in: Regenerate.
21226
21227 2008-02-24 Jason Rumney <jasonr@gnu.org>
21228
21229 * w32term.c (x_draw_glyph_string_background): Clear the background
21230 manually when cleartype is in use.
21231 (x_draw_glyph_string_foreground): Draw text transparently when
21232 cleartype is in use.
21233
21234 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21235 a font into it unless we have to.
21236
21237 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21238
21239 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21240 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21241
21242 2008-02-18 Jason Rumney <jasonr@gnu.org>
21243
21244 * w32fns.c (Fw32_shell_execute): Encode parameters.
21245
21246 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21247
21248 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21249
21250 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21251
21252 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21253
21254 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21255
21256 * xterm.c (x_set_offset): Don't change the gravity if
21257 CHANGE_GRAVITY is -1.
21258
21259 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21260
21261 * fileio.c (auto_save_error_occurred): New var.
21262 (auto_save_error): Set it.
21263 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21264 error occurred.
21265
21266 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21267
21268 * w32.c (globals_of_w32): Add initializations for
21269 g_b_init_get_sid_sub_authority and
21270 g_b_init_get_sid_sub_authority_count.
21271
21272 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21273
21274 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21275 (font_parse_xlfd): Use them for sanity check.
21276 (Finternal_set_font_style_table): Make sure the table is bijective.
21277
21278 Consolidate the image_cache to the terminal struct.
21279 * termhooks.h (P_): Remove redundant def.
21280 (struct terminal): New field `image_cache'.
21281 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21282 of FRAME_X_IMAGE_CACHE.
21283 * xterm.h (struct x_display_info): Remove image_cache field.
21284 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21285 * w32term.h (struct w32_display_info): Remove image_cache field.
21286 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21287 * macterm.h (struct mac_display_info): Remove image_cache field.
21288 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21289 * xterm.c (x_term_init):
21290 * w32term.c (w32_term_init):
21291 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21292 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21293 Remove declarations.
21294 (clear_image_caches, mark_image_cache): New declarations.
21295 * xfaces.c (clear_face_cache):
21296 * xdisp.c (redisplay_internal): Use clear_image_caches.
21297 * image.c (clear_image_cache): Don't check that a frame is on
21298 a window-system before checking if it shares the same cache.
21299 (clear_image_caches): New function.
21300 (Fclear_image_cache): Use it.
21301 (mark_image): Move from allo.c.
21302 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21303 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21304 (mark_object): Don't call mark_image_cache for frames.
21305 (mark_terminals): Call mark_image_cache.
21306
21307 * lisp.h (Fdelete_terminal): Declare.
21308
21309 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21310 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21311 wrong_type_argument.
21312
21313 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21314
21315 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21316 malayalam.el, and tamil.el. Add sinhala.el.
21317
21318 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21319
21320 * xterm.c (x_connection_closed): Consolidate identical tests.
21321 (x_delete_terminal): Don't crash if called via x_connection_closed.
21322
21323 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21324
21325 * xdisp.c (decode_mode_spec): New arg string.
21326 (display_mode_element): Adjust for the above change.
21327
21328 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21329
21330 * callint.c (Fcall_interactively): Use AREF.
21331
21332 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21333
21334 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21335
21336 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21337
21338 * xfns.c (Fx_show_tip): Set string to " " if empty.
21339
21340 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21341
21342 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21343 with Qt.
21344
21345 2008-02-17 Kenichi Handa <handa@m17n.org>
21346
21347 * ftfont.c (ftfont_shape): Return Lispy number.
21348
21349 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21350 for GCs.
21351 (Finternal_set_font_selection_order): Call font_update_sort_order
21352 only when enable_font_backend is set.
21353 (realize_x_face): Set face->font_info to that of default face only
21354 when enable_font_backend is set.
21355
21356 * xdisp.c (handle_composition_prop): Set it->c to the fist
21357 character of the composed region.
21358 (fill_composite_glyph_string): Set base_face->font_info to
21359 s->font_info. Get a face for ascii from base_face->ascii_face.
21360 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21361 with a face already decided.
21362 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21363 non-negative.
21364 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21365 call font_prepare_composition unconditionally.
21366
21367 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21368
21369 * xterm.h (struct x_display_info): New member font.
21370
21371 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21372 (x_set_mouse_face_gc, x_new_font): Likewise.
21373 (x_term_init): Setup display_info->font.
21374 (x_delete_terminal): Free display_info->font.
21375
21376 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21377
21378 * ftxfont.c (ftxfont_default_fid): Delete it.
21379 (ftxfont_open): Set xfont->fid to 0.
21380 (ftxfont_end_for_frame): Clear data specific to the frame and the
21381 font-driver.
21382
21383 * xftfont.c (xftfont_default_fid): Delete it.
21384 (xftfont_open): Set xfont->fid to 0.
21385
21386 * fontset.c (FONTSET_OBJLIST): New macro.
21387 (fontset_find_font): Update font-object list of the fontset.
21388 (free_realized_fontset): New function.
21389 (free_face_fontset): Call free_realized_fontset.
21390 (Ffont_info): Call font_close_object only when enable_font_backend
21391 is set.
21392
21393 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21394 [HAVE_NTGUI]: Include w32term.h.
21395 [MAC_OS]: Include macterm.ch.
21396 (font_otf_ValueRecord): Use make_number.
21397 (font_finish_cache): Fix handling of reference count.
21398 (font_clear_cache): Update num_fonts.
21399 (font_open_entity): Update smallest_char_width and
21400 smallest_font_height of the frame.
21401 (font_close_object): Update num_fonts.
21402 (Fclear_font_cache): Fix finding the target cache data.
21403
21404 2008-02-16 Glenn Morris <rgm@gnu.org>
21405
21406 * fontset.c (Finternal_char_font): Fix compilation warning.
21407
21408 2008-02-16 Eli Zaretskii <eliz@gnu.org>
21409
21410 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21411 instead of char arrays. Enlarge the size of array passed to
21412 get_token_information.
21413
21414 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21415 warnings.
21416
21417 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21418
21419 * .gdbinit: Don't set `args', it breaks gdb --args.
21420
21421 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21422
21423 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21424 within a narrowed buffer.
21425
21426 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21427
21428 * coding.c (decode_coding_object, encode_coding_object):
21429 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21430
21431 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21432
21433 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21434 hardcoding 1.
21435 (detect_coding_system):
21436 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21437 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21438 * insdel.c (insert_from_gap):
21439 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21440 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21441 (string_to_multibyte):
21442 * character.c (chars_in_text, multibyte_chars_in_text):
21443 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21444
21445 * character.h (FETCH_STRING_CHAR_ADVANCE)
21446 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21447 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21448 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21449
21450 * casefiddle.c (casify_region): Only call after-change and composition
21451 functions on the part of the region that was changed.
21452
21453 * keyboard.c (read_avail_input):
21454 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21455
21456 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21459 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21460
21461 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
21462
21463 * w32menu.c (push_submenu_start, push_submenu_end)
21464 (push_left_right_boundary, push_menu_pane, push_menu_item):
21465 * keyboard.c (read_key_sequence): Don't pass args with side effects
21466 to AREF, it fails when compiling with -DENABLE_CHECKING.
21467
21468 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21469
21470 * Makefile.in (${lispsource}international/charprop.el):
21471 Delete this target.
21472
21473 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21474 emacs-unicode-2.
21475
21476 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21477
21478 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21479
21480 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21481
21482 * frame.c (Qnoelisp): New symbol.
21483 (syms_of_frame): Initialize it.
21484 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21485 harmless Elisp code, from a strong `force' from x_connection_closed.
21486 * frame.h (Qnoelisp): Declare.
21487 * xterm.c (x_connection_closed): Pass `noelisp'.
21488
21489 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21490 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21491 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21492 rather than `int' for the type of `type'.
21493
21494 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21495
21496 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21497
21498 * Makefile.in (GNUC): Remove support for gcc-1.x.
21499
21500 2008-02-10 Richard Stallman <rms@gnu.org>
21501
21502 * lisp.h (ASET): Use AREF, not ASLOT.
21503
21504 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21505
21506 * lisp.h (ASET): Check bounds.
21507
21508 2008-02-10 Glenn Morris <rgm@gnu.org>
21509
21510 * buffer.c (mode-name): Doc fix.
21511
21512 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21513
21514 * Makefile.in:
21515 * emacs.c:
21516 * gmalloc.c:
21517 * keyboard.c:
21518 * lisp.h:
21519 * m/ibm370aix.h:
21520 * process.c:
21521 * regex.c:
21522 * s/hpux.h:
21523 * sysdep.c:
21524 * sysselect.h:
21525 * systty.h:
21526 * unexec.c:
21527 * w32term.c:
21528 * xsmfns.c:
21529 * xterm.c: Remove code that deals with obsolete variables.
21530
21531 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21532
21533 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21534 nothing else needs it anymore.
21535
21536 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21537
21538 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21539 instead of unibyte_char_to_multibyte.
21540
21541 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21542
21543 * s/gnu-linux.h: Remove commented out code.
21544
21545 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21546
21547 * Makefile.in: Update what RMS says about using autoconf.
21548 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21549 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21550 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21551 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21552
21553 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 * keymap.c (Fkey_description): Move side effect outside of macro call.
21556
21557 * xfaces.c (Finternal_make_lisp_face):
21558 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21559
21560 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21561 (syms_of_fontset): Use ASET.
21562
21563 * fns.c (concat): Move side effect outside of macro call.
21564 (hash_clear): Use ASET.
21565
21566 2008-02-08 Richard Stallman <rms@gnu.org>
21567
21568 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21569 If FORCE, and frame has a surrogate minibuffer for another frame,
21570 delete the other frame first.
21571
21572 2008-02-07 Timo Savola <timo.savola@iki.fi>
21573
21574 * xterm.c (x_detect_focus_change): Handle embed client message.
21575 (handle_one_xevent): Ditto.
21576 (handle_one_xevent): If embedded and we get a button press/release,
21577 request focus.
21578 (xembed_set_info, xembed_send_message): New functions.
21579 (x_make_frame_visible): Call xembed_set_info if embedded.
21580 (x_make_frame_invisible): Call xembed_set_info if embedded.
21581 (x_term_init): Initialize Xatom_XEMBED.
21582 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21583 (x_iconify_frame): Ditto.
21584
21585 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21586 (enum xembed_info, enum xembed_message, enum xembed_focus)
21587 (enum xembed_modifier, enum xembed_accelerator): New.
21588 (xembed_set_info, xembed_send_message): Declare.
21589 (FRAME_X_EMBEDDED_P): New.
21590
21591 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21592 gtk_plug_new.
21593
21594 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21595 window ID of a frame.
21596 (x_window): Reparent frame if embedded.
21597 (Fx_create_frame): Don't set border width if embedded.
21598
21599 * emacs.c (USAGE3): Add --parent-id.
21600 (standard_args): Ditto.
21601
21602 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21603
21604 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21605
21606 2008-02-07 Jim Meyering <meyering@redhat.com>
21607
21608 Use "do...while (0)", not "if (1)...else" in macro definitions.
21609 The latter provokes a warning from gcc about the empty else, when
21610 followed by ";". Also, without that trailing semicolon, it would
21611 silently swallow up any following statement.
21612 * syntax.h (SETUP_SYNTAX_TABLE)
21613 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21614 * buffer.h (DECODE_POSITION): Likewise.
21615 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21616 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21617 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21618 (FETCH_CHAR_ADVANCE): Likewise.
21619 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21620
21621 2008-02-07 Jim Meyering <meyering@redhat.com>
21622
21623 * lread.c [lint]: Don't include <sys/inode.h>.
21624
21625 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21626
21627 * xselect.c (x_handle_dnd_message):
21628 * xmenu.c (digest_single_submenu, xmenu_show):
21629 * xdisp.c (with_echo_area_buffer_unwind_data)
21630 (format_mode_line_unwind_data, unwind_format_mode_line)
21631 (display_menu_bar):
21632 * eval.c (Ffetch_bytecode):
21633 * doc.c (store_function_docstring):
21634 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21635 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21636 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21637
21638 2008-02-07 Kenichi Handa <handa@m17n.org>
21639
21640 * ftxfont.c (ftxfont_open): Don't set
21641 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21642
21643 * ftfont.c (ftfont_open): Fix previous change.
21644
21645 2008-02-06 Jason Rumney <jasonr@gnu.org>
21646
21647 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21648 Use cached metrics for ASCII characters.
21649 (w32font_open_internal): Don't set font's owning_frame.
21650 Cache metrics for ASCII characters.
21651
21652 * w32font.h (struct w32font_info): Add ascii_metrics.
21653 Remove owning_frame.
21654
21655 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21656
21657 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21658 to negative value.
21659
21660 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21661
21662 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21663
21664 * charset.c (syms_of_charset): Set QCtest and Qeq.
21665
21666 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21667
21668 * process.c (Fstart_process):
21669 * callproc.c (Fcall_process): Handle the case where
21670 Funhandled_file_name_directory returns nil.
21671
21672 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21673 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21674 * font.c (check_gstring): Use them and AREF to access the vector before
21675 we know it's really a gstring.
21676 (Ffont_shape_text): Fix typo.
21677 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
21678
21679 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21680 Declare.
21681
21682 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21683
21684 2008-02-05 Jason Rumney <jasonr@gnu.org>
21685
21686 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21687 Set smallest_font_height and smallest_char_width in display info.
21688
21689 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21690
21691 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21692
21693 2008-02-05 Miles Bader <miles@gnu.org>
21694
21695 * xfaces.c (get_lface_attributes, merge_named_face)
21696 (lookup_named_face, lookup_derived_face, realize_named_face):
21697 Revert 2008-02-01 change by cyd@stupidchicken.com.
21698
21699 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21700
21701 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21702 fallback fonts.
21703 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21704
21705 2008-02-04 Jason Rumney <jasonr@gnu.org>
21706
21707 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21708 set full_name.
21709 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21710
21711 2008-02-03 Jason Rumney <jasonr@gnu.org>
21712
21713 * makefile.w32-in (OBJ1): Include font.o here.
21714 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21715
21716 2008-02-02 Jason Rumney <jasonr@gnu.org>
21717
21718 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21719
21720 2008-02-01 Jason Rumney <jasonr@gnu.org>
21721
21722 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21723
21724 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21725
21726 2008-02-01 Andreas Schwab <schwab@suse.de>
21727
21728 * Makefile.in (shortlisp, lisp): Update for rename of
21729 ../lisp/language/myanmar.el.
21730
21731 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
21732
21733 * xfaces.c (get_lface_attributes): Delete function.
21734 (merge_named_face, lookup_named_face, lookup_derived_face)
21735 (realize_named_face): Call lface_from_face_name directly, and use
21736 the fact that merge_face_vectors does not alter its FROM argument.
21737
21738 2008-02-01 Jason Rumney <jasonr@gnu.org>
21739
21740 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21741 input in the default locale. Handle non-Unicode multibyte input.
21742
21743 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21744
21745 * fontset.c (reorder_font_vector): Exclude nil elements from the
21746 font group. Don't try multiple fonts.
21747 (fontset_font): Adjust for the above change.
21748 (Finternal_char_font): Return nil if the found font doesn't
21749 contain the character ch.
21750
21751 * Makefile.in (lisp, shortlisp): Add cham.el.
21752
21753 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21754
21755 * font.h (FONTP): Make it return 1 also for a font-object.
21756
21757 * .gdbinit (xfontset): New function.
21758
21759 * font.c (font_find_for_lface): Check if the character C is
21760 supported or not only for the first font.
21761
21762 * fontset.c (reorder_font_vector): Fix typo.
21763 (fontset_find_font): Don't add a font-spec specifying a script.
21764 Use 0 (not Qt) for the indication of empty font-group. Change the
21765 format of RFONT-DEF. Return Qt if no font in the font-group
21766 support the character.
21767 (fontset_font): Adjust for the above change. If no font was
21768 found the character, remember that.
21769 (face_for_char): Adjust for the change of RFONT-DEF.
21770 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21771 no font for the target.
21772 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21773
21774 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21775
21776 * font.c (font_load_for_face): Handle the case that the font in
21777 face->lface is a string.
21778
21779 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21780
21781 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21782
21783 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21784
21785 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21786 Fix previous change. If the frame is not on a window system,
21787 signal an error.
21788
21789 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21790
21791 * coding.c (decode_coding_object, encode_coding_object):
21792 Adjust marker positions after conversion.
21793
21794 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21795
21796 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21797
21798 * font.c (font_find_for_lface): Fix the handling of the return
21799 value of font_has_char.
21800 (Ffont_shape_text): Fix previous change.
21801
21802 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21803 (fontset_ref_and_range): Delete it.
21804 (fontset_find_font): Call char_table_ref_and_range instead of
21805 FONTSET_REF_AND_RANGE.
21806 (make_fontset): Don't setup font groups of Latin here.
21807 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21808 (new_fontset_from_font): Make the specified font the default for
21809 all Latin characters.
21810
21811 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21812
21813 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21814 is on a window system before accessing the fontset of the frame.
21815
21816 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21817
21818 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21819
21820 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21821 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21822
21823 * font.c (Ffont_shape_text): If the font driver doesn't have a
21824 shaper function, make zero-width glyphs to have at least one-pixel
21825 width. Fix setting of `to' field of glyphs.
21826
21827 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21828
21829 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21830 glyphs.
21831
21832 * font.h (struct font_driver): Improve docstring of member `shape'.
21833
21834 2008-02-01 Kenichi Handa <handa@m17n.org>
21835
21836 * composite.c (syms_of_composite): Fix docstring of
21837 auto-composition-function.
21838
21839 * font.h (LGLYPH_SIZE): New macro.
21840
21841 * font.c (Ffont_fill_gstring): Stop filling when a character not
21842 supported by the font is found.
21843 (Ffont_shape_text): When a shape callback function returns nil,
21844 try at most two more times with larger gstring.
21845 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21846
21847 * xdisp.c (handle_auto_composed_prop): Change the argument to
21848 auto-composition-function.
21849
21850 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21851 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21852 Lispy glyph and store it in the lgstring.
21853
21854 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21855
21856 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21857
21858 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21859
21860 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21861
21862 * fontset.c (Vfont_encoding_charset_alist): New variable.
21863 (syms_of_fontset): DEFVAR it.
21864 (reorder_font_vector, fontset_find_font): Optimize for the case of
21865 no need of reordering.
21866 (face_for_char): Map the charset property by
21867 Vfont_encoding_charset_alist.
21868
21869 2008-02-01 Jason Rumney <jasonr@gnu.org>
21870
21871 * w32font.c (logfonts_match): Don't check adstyle here.
21872 (font_matches_spec): Check here against physical font instead.
21873 (add_font_entity_to_list): Avoid some substitutions.
21874
21875 * font.c (font_parse_fcname): Default weight and slant to normal.
21876 (font_score): Prefer normal fonts if weight or slant unspecified.
21877 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21878 match freetype scores.
21879
21880 2008-02-01 Jason Rumney <jasonr@gnu.org>
21881
21882 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21883 font, as it may have been deleted.
21884 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21885 most common hyphenless variation.
21886 (logfonts_match): Check generic family.
21887 (font_matches_spec): Don't check generic family here.
21888 (fill_in_logfont): Set generic family based on adstyle.
21889
21890 * w32font.h (w32font_get_cache): Update declaration.
21891
21892 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21893
21894 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21895
21896 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21897 If none of the new drivers are available, call font_update_drivers
21898 with the old drivers.
21899
21900 * w32font.c (w32font_get_cache): Adjust the argument type.
21901
21902 * xfont.c (xfont_get_cache): Adjust the argument type.
21903
21904 * font.h (struct font_driver): Change argument type of get_cache.
21905
21906 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21907
21908 * font.c (Ffont_get): Fix arguments to Fassoc.
21909 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21910 (font_clear_cache): New function.
21911 (font_list_entities, font_matching_entity): Use font_get_cache.
21912 (font_update_drivers): Call font_clear_cache when finishing a driver.
21913
21914 * fontset.c (fontset_find_font): Fix previous change.
21915
21916 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21917
21918 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21919 dpyinfo->font_table.
21920 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21921 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21922
21923 * font.c (font_at): Handle the case that the arg C is negative.
21924 Handle the unibyte case.
21925 (Ffont_at): Call font_at with the arg C -1.
21926
21927 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21928 the position here, and call font_at with the arg C -1.
21929 Don't check the range of the existing composition at the point.
21930
21931 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21932
21933 * fontset.c (fontset_add): New args charset_id and family.
21934 Change caller.
21935 (load_font_get_repertory, fontset_find_font): Assume that
21936 font_spec is always a font-spec object.
21937 (Fset_fontset_font): Always store a font-spec object in a fontset.
21938
21939 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21940 instead of get_property_and_range.
21941
21942 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21943
21944 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21945 (xftfont_open): Don't keep locking face.
21946 (xftfont_close): Don't unlock face.
21947 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21948
21949 * fontset.c (fontset_find_font): Don't prefer a font of
21950 supplementary charset.
21951
21952 2008-02-01 Kenichi Handa <handa@m17n.org>
21953
21954 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21955 script, langsys_tag to langsys, new member script.
21956 (OTF_TAG_STR): Terminate by '\0'.
21957 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
21958 listing to the script specified in that property. Fix arg to
21959 OTF_check_features.
21960
21961 2008-02-01 Jason Rumney <jasonr@gnu.org>
21962
21963 * w32font.h: New file.
21964
21965 * w32font.c: Include it.
21966 (struct w32font_info): Add owning_frame field. Move to w32font.h.
21967 (w32font_open): Set owning_frame.
21968 (w32font_text_extents): Use owning_frame.
21969 (struct font_callback_data): Add opentype_only field.
21970 (add_font_entity_to_list): Use it to filter fonts.
21971 Don't check against full name.
21972 (w32font_list_internal): New function.
21973 (w32font_list): Use it.
21974 (w32font_match_internal): New function.
21975 (w32font_match): Use it.
21976 (w32font_open_internal): New function.
21977 (w32font_open): Use it.
21978 (w32font_get_cache, w32font_close, w32font_has_char)
21979 (w32font_encode_char, w32font_text_extents, w32font_draw):
21980 Make non-static.
21981
21982 * makefile.w32-in (w32font.o): Depend on w32font.h.
21983
21984 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21985
21986 * charset.c (Fdefine_charset_internal): Record a supplementary
21987 charset at the tail of Vcharset_order_list.
21988
21989 * font.c (Ffont_shape_text): Fix the return value.
21990
21991 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
21992
21993 * xdisp.c (handle_auto_composed_prop): Fix previous change.
21994
21995 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21996
21997 * ftfont.c (struct OpenTypeSpec): New struct.
21998 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
21999 (ftfont_get_open_type_spec): New function.
22000 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22001
22002 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22003
22004 2008-02-01 Jason Rumney <jasonr@gnu.org>
22005
22006 * w32font.c (add_font_entity_to_list): Compare only the beginning
22007 of full name.
22008
22009 2008-02-01 Kenichi Handa <handa@m17n.org>
22010
22011 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22012 Never return HANDLED_RECOMPUTE_PROPS.
22013
22014 2008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * font.c (font_gstring_produce): Delete it.
22017
22018 * composite.h (COMPOSITION_METHOD):
22019 Handle COMPOSITION_WITH_GLYPH_STRING.
22020
22021 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22022
22023 * xfont.c (Qx): Delete.
22024 (syms_of_xfont): Don't initialize Qx.
22025
22026 * composite.h (enum composition_method):
22027 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22028
22029 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22030
22031 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22032 (choose_face_font): Accept new form of font-spec.
22033
22034 * frame.h (font_driver_list): Declare it unconditionally.
22035 (struct frame): Define members font_driver_list and font_data_list
22036 unconditionally.
22037
22038 * fontset.c: Include "font.h" unconditionally.
22039 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22040 (Fset_fontset_font): Accept a font-spec object.
22041
22042 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22043 PIXEL_SIZE part a wild card.
22044
22045 * dispextern.h (struct glyph_string): Define members clip and
22046 num_clips unconditionally.
22047 (struct face): Define members font_info and extra unconditionally.
22048
22049 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22050 ftfont_info only when HAVE_LIBOTF is defined.
22051
22052 2008-02-01 Andreas Schwab <schwab@suse.de>
22053
22054 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22055 and end.
22056
22057 2008-02-01 Jason Rumney <jasonr@gnu.org>
22058
22059 * w32font.c (w32font_driver): Add new fields.
22060
22061 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22062
22063 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22064 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22065 (LIBES): Add @M17N_FLT_CFLAGS@.
22066
22067 * composite.c (compose_text): Don't treat the new style
22068 composition specially.
22069
22070 * emacs.c (main): Call syms_of_font unconditionally.
22071
22072 * font.h (FONT_ENTITY_NOT_LOADABLE)
22073 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22074 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22075 (struct font_driver): New member shape.
22076 (font_registry_charsets): Extern it.
22077 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22078 (font_otf_capability, font_drive_otf): Delete their externs.
22079
22080 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22081 (font_charset_alist, font_registry_charsets): Move from xfont.c
22082 and rename.
22083 (font_prop_validate_otf): New function.
22084 (font_property_table): Register it for QCotf.
22085 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22086 (font_drive_otf): Delete.
22087 (font_prepare_composition): New arg F. Adjust for the change of
22088 lispy gstring.
22089 (font_find_for_lface): New arg C.
22090 (font_load_for_face): Adjust for the change of font_find_for_lface.
22091 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22092 lispy gstring.
22093 (Ffont_shape_text): New function.
22094 (Fopen_font): If the font size is not given, use 12-pixel.
22095 (Ffont_at): New arg STRING.
22096 (syms_of_font): Initialize font_charset_alist.
22097 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22098 conditionally.
22099
22100 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22101 fonts of the same font-spec. Change the format of RFONT-DEF.
22102 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22103 Adjust for the change of RFONT-DEF.
22104 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22105
22106 * ftfont.h: New file.
22107
22108 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22109 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22110 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22111 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22112 font_otf_capability and font_drive_otf, set ftfont_shape.
22113 (ftfont_list): Adjust for the change of :otf property value.
22114 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22115 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22116 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22117 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22118 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22119 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22120
22121 * w32term.c (x_draw_composite_glyph_string_foreground):
22122 Adjust for the change of lispy gstring.
22123
22124 * xdisp.c (handle_composition_prop): Adjust for the change of
22125 lispy gstring. Call a function for auto-composition with the
22126 third arg it->window.
22127 (fill_composite_glyph_string): Adjust for the change of lispy string.
22128 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22129
22130 * xfaces.c (set_font_frame_param): Adjust for the change of
22131 font_find_for_lface.
22132
22133 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22134 (xfont_registry_charsets): Likewise. Change caller.
22135 (syms_of_xfont): Don't handle x_font_charset_alist.
22136
22137 * xftfont.c: Include "ftfont.h".
22138 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22139 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22140 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22141 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22142 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22143 Set xftfont_driver.shape to xftfont_shape.
22144
22145 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22146 the change of lispy gstring.
22147
22148 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22149
22150 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22151
22152 2008-02-01 Jason Rumney <jasonr@gnu.org>
22153
22154 * w32font.c (w32font_draw): Fill background manually.
22155
22156 2008-02-01 Jason Rumney <jasonr@gnu.org>
22157
22158 * font.c (Qfontp): Remove unused symbol.
22159 (QCantialias): New symbol.
22160 (syms_of_font): Define it.
22161 (font_property_table): Set a validator for QCantialias.
22162
22163 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22164 Define if not already.
22165 (QCfamily): Share with xfaces.c.
22166 (Qstandard, Qsubpixel, Qnatural): New symbols.
22167 (syms_of_w32font): Define them. Don't define QCfamily here.
22168 (w32_antialias_type, lispy_antialias_type): New functions.
22169 (w32_enumfont_pattern_entity): New arg requested_font.
22170 Set antialias parameter if non-default was requested.
22171 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22172
22173 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22174
22175 * lread.c (read1): Undo the previous change.
22176
22177 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22178
22179 * frame.c (Fdelete_frame): Call font_update_drivers only when
22180 USE_FONT_BACKEND is defined.
22181
22182 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22183
22184 * font.h (struct font_bitmap): New member bits_per_pixel.
22185 (struct font_driver): New members start_for_frame and end_for_frame.
22186 (struct font_data_list): New struct.
22187 (font_put_frame_data, font_get_frame_data): Extern them.
22188
22189 * frame.h (struct frame): New member font_data_list.
22190
22191 * font.c (font_update_drivers): Call driver->start_for_frame and
22192 driver->end_for_frame at proper timings.
22193 (font_put_frame_data, font_get_frame_data): New functions.
22194 (Ffont_spec): Add usage in the docstring.
22195
22196 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22197 (Fdelete_frame): Call font_update_drivers.
22198
22199 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22200 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22201 (xftfont_get_xft_draw): New function.
22202 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22203 (xftfont_end_for_frame): New function.
22204 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22205
22206 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22207 Change argument. Cache GCs in the per-frame data.
22208 (struct ftxfont_frame_data): New struct.
22209 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22210 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22211 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22212 (ftxfont_end_for_frame): New function.
22213 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22214
22215 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22216
22217 2008-02-01 Kenichi Handa <handa@m17n.org>
22218
22219 * xselect.c (Vselection_coding_system)
22220 (Vnext_selection_coding_system): Delete them.
22221 (syms_of_xselect): Don't declare selection-coding-system and
22222 next-selection-coding-system. They are declared in select.el.
22223
22224 2008-02-01 Jason Rumney <jasonr@gnu.org>
22225
22226 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22227
22228 * w32fns.c: Include imm.h.
22229 (get_composition_string_fn, get_ime_context_fn): New optional
22230 system functions.
22231 (globals_of_w32fns): Load them from imm32.dll.
22232 (ignore_ime_char): New flag.
22233 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22234 WM_IME_ENDCOMPOSITION messages.
22235
22236 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22237 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22238
22239 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22240
22241 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22242 (READCHAR_REPORT_MULTIBYTE): New macro.
22243 (readchar): New 2nd arg MULTIBYTE.
22244 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22245 Make symbol's name multibyte according to the multibyteness of the
22246 source.
22247
22248 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22249
22250 * xfaces.c (face_for_overlay_string): Call lookup_face with
22251 correct arguments (fix of synching with the trunk).
22252
22253 2008-02-01 Kenichi Handa <handa@m17n.org>
22254
22255 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22256 (font_prop_validate_non_neg, font_prop_validate_spacing):
22257 Delete argument prop_index.
22258 (font_property_table): Change arguments to validater. Change Callers.
22259 (font_lispy_object): Delete.
22260 (font_at): Use font_find_object instead fo font_lispy_object.
22261
22262 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22263
22264 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22265 and file names.
22266
22267 2008-02-01 Jason Rumney <jasonr@gnu.org>
22268
22269 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22270 (font_matches_spec): Remove debug output.
22271 (add_font_entity_to_list): Avoid using substituted fonts.
22272
22273 2008-02-01 Jason Rumney <jasonr@gnu.org>
22274
22275 * doc.c (Fsnarf_documentation):
22276 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22277
22278 2008-02-01 Miles Bader <miles@gnu.org>
22279
22280 * dispextern.h (struct glyph_row): Only define "clip" field if
22281 HAVE_WINDOW_SYSTEM is defined.
22282
22283 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22284
22285 Fix up multi-tty merge.
22286
22287 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22288 and indentation.
22289
22290 * xfaces.c (free_realized_face, clear_face_gcs):
22291 Include font_done_for_face in the input_blocked section, just in case.
22292
22293 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22294 (get_char_face_and_encoding): Undo last change and remove the *other*
22295 duplicate definition (i.e. keep the one that's better scoped and that
22296 includes code for the font-backend).
22297
22298 * terminal.c (create_terminal): Default keyboard_coding to
22299 `no-conversion' and terminal_coding to `undecided'.
22300
22301 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22302
22303 * fontset.c (free_realized_fontsets): Check that the table entry does
22304 contain a fontset before trying to compare it to `base'.
22305
22306 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22307 syms_of_charset, and syms_of_coding earlier because init_window_once
22308 now needs Vcoding_system_hash_table to be setup.
22309
22310 * coding.h (default_buffer_file_coding): Remove.
22311
22312 * coding.c (default_buffer_file_coding): Remove.
22313 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22314 than ->symbol, and use the terminal-local coding system.
22315 (syms_of_coding): Don't setup the coding-systems that are not
22316 terminal-local.
22317 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22318
22319 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22320 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22321
22322 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22323 in chartab.c and were re-added here by mistake.
22324 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22325
22326 * doc.c (Fsnarf_documentation):
22327 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22328 src to etc.
22329
22330 * ChangeLog.10: Add mistakenly removed entry.
22331
22332 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22333
22334 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22335
22336 2008-02-01 Miles Bader <miles@gnu.org>
22337
22338 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22339 Add extra args to FACE_FOR_CHAR.
22340
22341 2008-02-01 Kenichi Handa <handa@m17n.org>
22342
22343 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22344 in sequence.
22345
22346 * chartab.c (map_sub_char_table, map_char_table): If the range
22347 contains just one character, call the function with that character
22348 even if the depth is not 3.
22349
22350 2008-02-01 Jason Rumney <jasonr@gnu.org>
22351
22352 * w32font.c (w32font_text_extents): Calculate metrics for the
22353 whole string.
22354
22355 2008-02-01 Jason Rumney <jasonr@gnu.org>
22356
22357 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22358
22359 2008-02-01 Jason Rumney <jasonr@gnu.org>
22360
22361 * w32term.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 * w32font.c (w32font_draw): Do clipping here.
22367
22368 2008-02-01 Kenichi Handa <handa@m17n.org>
22369
22370 * xftfont.c (xftfont_draw): Adjust for the change of struct
22371 glyph_string.
22372
22373 * xterm.c (x_set_glyph_string_clipping):
22374 Use get_glyph_string_clip_rects.
22375 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22376 Adjust for the change of struct glyph_string.
22377
22378 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22379 the resulting clip(s}.
22380 (expose_overlaps): Add arg r. Change callers. Set it to
22381 row->clip temporarily.
22382 (expose_window): Redraw rows overlapping the exposed area.
22383
22384 * dispextern.h (struct glyph_row): New member clip.
22385 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22386 clip_height, new member clip, and num_clips.
22387
22388 2008-02-01 Kenichi Handa <handa@m17n.org>
22389
22390 * data.c (Fchar_or_string_p): Fix docstring.
22391
22392 2008-02-01 Kenichi Handa <handa@m17n.org>
22393
22394 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22395 create a temporary XftDraw object.
22396
22397 2008-02-01 Kenichi Handa <handa@m17n.org>
22398
22399 * font.c (Ffontp): Fix docstring.
22400
22401 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22402 strong evidence of ISO-2022.
22403
22404 2008-02-01 Kenichi Handa <handa@m17n.org>
22405
22406 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22407 SYNTAX_ENTRY_FOLLOW_PARENT.
22408
22409 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22410
22411 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22412 its type.
22413 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22414 Update to the new type of weak_hash_tables and next_weak.
22415
22416 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22417 a plain C pointer to Lisp_Hash_Table.
22418
22419 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22420 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22421 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22422 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22423 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22424 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22425 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22426 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22427 (GC_EQ): Remove since they've been identical to their non-GC_
22428 alter-egos ever since the markbit was eradicated.
22429
22430 * alloc.c:
22431 * buffer.c:
22432 * buffer.h:
22433 * data.c:
22434 * fileio.c:
22435 * filelock.c:
22436 * fns.c:
22437 * frame.h:
22438 * lisp.h:
22439 * macterm.c:
22440 * print.c:
22441 * process.c:
22442 * w32fns.c:
22443 * w32menu.c:
22444 * w32term.c:
22445 * xfns.c:
22446 * xmenu.c:
22447 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22448
22449 2008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * chartab.c (map_sub_char_table): Make it work for the top-level
22452 char-table. Fix handling of parent char-table.
22453 (map_char_table): Adjust for the above change.
22454
22455 2008-02-01 Jason Rumney <jasonr@gnu.org>
22456
22457 * w32font.c (Qgdi): Rename from Qw32.
22458
22459 2008-02-01 Jason Rumney <jasonr@gnu.org>
22460
22461 * w32bdf.c (get_quoted_string): Make function static.
22462
22463 2008-02-01 Kenichi Handa <handa@m17n.org>
22464
22465 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22466 bigger ascent and descent than those of the font, use them as
22467 font's ascent and descent.
22468
22469 2008-02-01 Kenichi Handa <handa@m17n.org>
22470
22471 * Makefile.in (${lispsource}international/charprop.el): Move this
22472 target within "#ifdef HAVE_UNIDATA" and "#endif".
22473
22474 2008-02-01 Kenichi Handa <handa@m17n.org>
22475
22476 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22477 (shortlisp): Add ../lisp/language/tai-viet.el.
22478
22479 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
22480
22481 * Makefile.in (${lispsource}international/charprop.el): Depend on
22482 temacs${EXEEXT}.
22483
22484 2008-02-01 Jason Rumney <jasonr@gnu.org>
22485
22486 * w32font.c (w32font_close): Delete the GDI font object.
22487
22488 * w32menu.c: Include character.h.
22489
22490 * w32proc.c: Likewise.
22491
22492 * w32select.c: Likewise.
22493
22494 * makefile.w32-in (w32proc.o): Depend on character.h.
22495
22496 2008-02-01 Jason Rumney <jasonr@gnu.org>
22497
22498 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22499
22500 * w32menu.c (syms_of_w32menu): Likewise.
22501
22502 * w32proc.c (syms_of_ntproc): Likewise.
22503
22504 * w32select.c (syms_of_w32select): Likewise.
22505
22506 * w32term.c (syms_of_w32term): Likewise.
22507
22508 2008-02-01 Jason Rumney <jasonr@gnu.org>
22509
22510 * w32font.c (w32font_draw): Delete brush after using it.
22511
22512 2008-02-01 Jason Rumney <jasonr@gnu.org>
22513
22514 * w32font.c (w32font_open): Don't set font_idx.
22515 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22516 to font settings.
22517 (w32font_draw): Fill background explicitly.
22518
22519 2008-02-01 Jason Rumney <jasonr@gnu.org>
22520
22521 * w32term.c (w32_initialize): Don't call w32font_initialize.
22522
22523 * w32font.c (w32font_info): Remove subranges.
22524 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22525 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22526 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22527 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22528 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22529 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22530 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22531 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22532 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22533 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22534 New symbols.
22535 (font_callback_data): New struct.
22536 (w32font_list, w32font_match): Use it.
22537 (w32font_open): Don't populate subranges.
22538 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22539 (w32font_encode_char): Always return unicode code-point as-is.
22540 (w32font_text_extents): Supply a transformation matrix to
22541 GetGlyphOutline. Never look up by glyph index. Avoid looping
22542 twice. Use unicode version of GetTexExtentPoint32 instead of
22543 glyph index version.
22544 (set_fonts_frame): Remove.
22545 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22546 set frame parameter. Use backward compatible fake foundries.
22547 Save generic family in extra slot under QCfamily. Make width slot
22548 constant. Save QCspacing value. Save list of scripts instead of
22549 binary subranges.
22550 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
22551 (add_font_entity_to_list): Use font_callback_data struct.
22552 Filter unwanted fonts.
22553 (add_one_font_entity_to_list): Use font_callback_data struct.
22554 (w32_registry): Default to iso10646_1.
22555 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22556 string font registries. Don't fill in font name if it is a generic
22557 family name, fill family instead. Use spacing, family and script
22558 extra info to fill pitch, family and charset fields.
22559 (list_all_matching_fonts): Use font_callback_data struct.
22560 (unicode_range_for_char): Remove.
22561 (font_supported_scripts): New function.
22562 (w32font_initialize): Remove.
22563 (syms_of_w32font): Update which symbols are defined.
22564
22565 2008-02-01 Jason Rumney <jasonr@gnu.org>
22566
22567 * font.c (font_pixel_size): Reverse assq_no_quit args.
22568
22569 * w32term.h (FONT_WIDTH): Report max width, not average.
22570 (FONT_MAX_WIDTH): Remove.
22571 (FONT_AVG_WIDTH): New macro.
22572
22573 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22574 redefinition of FONT_WIDTH.
22575
22576 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22577 (w32_cache_char_metrics): Use FONT_WIDTH.
22578
22579 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22580
22581 2008-02-01 Jason Rumney <jasonr@gnu.org>
22582
22583 * w32font.c (w32font_open): Make lfHeight negative.
22584
22585 * w32fns.c (x_default_font_parameter): Use new style font name.
22586 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22587
22588 2008-02-01 Jason Rumney <jasonr@gnu.org>
22589
22590 * w32font.c (QCsubranges): New symbol.
22591 (w32font_open, w32font_has_char): Get subranges from subproperty
22592 of extra.
22593 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22594 (syms_of_w32font): Define :subranges symbol.
22595
22596 * font.c (font_put_extra): Expose externally.
22597
22598 * font.h (font_put_extra): Move declaration from font.c.
22599
22600 * font.c (Ffont_get): Use font driver to determine otf capability.
22601 (adjust_anchor): Check if driver defines anchor_point before using.
22602
22603 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22604 (w32font_draw): Use options.
22605 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22606 Fix detection of truetype fonts.
22607 (registry_to_w32_charset): Handle charsets other than iso8859-1
22608 expressed as lisp symbols.
22609 (w32_registry): Express charset as lisp symbol.
22610 (fill_in_logfont): Reverse pixel and point height logic.
22611 Don't set width here. Set quality to default.
22612
22613 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22614 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22615
22616 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22617 Remove redundant loop and allocation.
22618
22619 * makefile.w32-in (font.o, w32font.o): New objects.
22620 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22621 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22622
22623 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22624 STORE_XCHARB a valid l-value.
22625
22626 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22627 calculations for non-Truetype fonts.
22628 (x_draw_glyph_string): Sync with xterm.c.
22629 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22630 Remove redundant code.
22631 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22632
22633 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22634 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22635
22636 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22637 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22638
22639 * w32font.c: New file for w32 font backend.
22640
22641 2008-02-01 Kenichi Handa <handa@m17n.org>
22642
22643 * term.c: Don't include "buffer.h" twice.
22644
22645 2008-02-01 Kenichi Handa <handa@m17n.org>
22646
22647 * character.c (Funibyte_string): New function.
22648 (syms_of_character): Defsubr it.
22649
22650 2008-02-01 Jason Rumney <jasonr@gnu.org>
22651
22652 * w32term.c [USE_FONT_BACKEND]:
22653 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22654 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22655 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22656 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22657 (x_free_frame_resources): Sync with xterm.c.
22658
22659 2008-02-01 Andreas Schwab <schwab@suse.de>
22660
22661 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22662 char-table size.
22663
22664 2008-02-01 Kenichi Handa <handa@m17n.org>
22665
22666 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22667
22668 2008-02-01 Kenichi Handa <handa@m17n.org>
22669
22670 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22671 font_otf_gpos, add font_drive_otf.
22672
22673 * fontset.c (fontset_find_font): Pay attention to font size
22674 specified for a font.
22675 (reorder_font_vector): Check contents of font_def.
22676
22677 * font.c (struct otf_list): Delete it.
22678 (otf_list): Make it a lisp variable.
22679 (otf_open): Use lispy otf_list.
22680 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22681 (check_otf_features): New function.
22682 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22683 New functions.
22684 (font_drive_otf): New function merging font_otf_gsub and
22685 font_otf_gpos.
22686 (font_open_for_lface): New arg spec. Change argument order.
22687 (font_load_for_face): Adjust for the change of font_open_for_lface.
22688 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22689 Ffont_otf_gpos.
22690 (syms_of_font): Staticpro otf_list. Delete defsubr of
22691 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22692
22693 * xfaces.c (set_font_frame_param): Adjust for the change of
22694 font_open_for_lface.
22695
22696 * font.h (font_open_for_lface): Adjust prototype.
22697 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22698 member otf_drive.
22699 (font_otf_gsub, font_otf_gpos): Delete externs.
22700 (font_drive_otf): Extern it.
22701
22702 2008-02-01 Kenichi Handa <handa@m17n.org>
22703
22704 * font.c (font_at): If the window W is not on a window system,
22705 return Qnil.
22706
22707 * coding.c (produce_chars, encode_coding): Don't call
22708 insert_from_gap if no characters to produce.
22709
22710 2008-02-01 Kenichi Handa <handa@m17n.org>
22711
22712 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22713 Fclear_face_cache.
22714
22715 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22716
22717 2008-02-01 Miles Bader <miles@gnu.org>
22718
22719 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22720 Parse "--disable-font-backend" option.
22721 (standard_args): Add "--disable-font-backend" option.
22722
22723 2008-02-01 Kenichi Handa <handa@m17n.org>
22724
22725 * fontset.c (fontset_find_font): New function.
22726 (fontset_font): Use fontset_find_font.
22727 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22728 Register the specified font for all Latin characters.
22729 (new_fontset_from_font): Register the specified font for all Latin
22730 characters.
22731 (dump_fontset): For a realized fontset, include the base fontset
22732 name in the returned vector.
22733
22734 2008-02-01 Kenichi Handa <handa@m17n.org>
22735
22736 * character.h (CHAR_STRING): Cast C to unsigned on calling
22737 char_string.
22738
22739 * character.c (char_string): Type of arg C changed to unsigned.
22740 Signal an error if C is an invalid character code.
22741
22742 * editfns.c (general_insert_function, Fchar_to_string):
22743 Use CHARACTERP, not INTEGERP.
22744
22745 2008-02-01 Kenichi Handa <handa@m17n.org>
22746
22747 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22748 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22749
22750 * regex.c (analyse_first): Fix for multibyte characters in "case
22751 charset:" and "case categoryspec:".
22752
22753 2008-02-01 Andreas Schwab <schwab@suse.de>
22754
22755 * Makefile.in (LIBES): Move standard libraries to the end.
22756
22757 2008-02-01 Kenichi Handa <handa@m17n.org>
22758
22759 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22760 nonzero, don't shrink the buffer nextb.
22761
22762 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22763
22764 * coding.c (coding_alloc_by_making_gap): New arg offset.
22765 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22766 offset.
22767 (decode_coding_iso_2022): Update coding->safe_charsets.
22768 (decode_coding_gap): Temporarily set
22769 current_buffer->text->inhibit_shrinking to 1.
22770
22771 2008-02-01 Kenichi Handa <handa@m17n.org>
22772
22773 * xterm.c (x_draw_composite_glyph_string_foreground):
22774 Fix indexing into elements of s->cmp and s->char2b.
22775
22776 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
22777
22778 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22779
22780 2008-02-01 Kenichi Handa <handa@m17n.org>
22781
22782 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22783 target_multibyte instead of multibyte.
22784 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22785 (bcmp_translate): Change the argument name from multibyte to
22786 target_multibyte.
22787
22788 2008-02-01 Kenichi Handa <handa@m17n.org>
22789
22790 These changes are to compile a regexp into a pattern that can be
22791 used both for multibyte and unibyte targets.
22792
22793 * Makefile.in (search.o): Depend on charset.h.
22794
22795 * character.c (multibyte_char_to_unibyte_safe): New function.
22796
22797 * search.c: Include "charset.h".
22798 (compile_pattern_1): Delete argument multibyte. Don't set
22799 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22800 (compile_pattern): Don't compare cp->buf.target_multibyte.
22801 Compare cp->buf.charset_unibyte.
22802 (compile_pattern): Set cp->buf.target_multibyte.
22803
22804 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22805
22806 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22807
22808 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22809 multibyte. Change callers.
22810 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22811 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22812 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22813 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22814 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22815 (regex_compile): Make the compiled pattern usable both for
22816 multibyte and unibyte targets.
22817 (analyse_first): Make the fastmap usable both for multibyte and
22818 unibyte targets.
22819 (TRANSLATE_VIA_MULTIBYTE): Delete.
22820 (re_match_2_internal): Pay attention to the case that the
22821 multibyteness of bufp and target may be different.
22822
22823 2008-02-01 Kenichi Handa <handa@m17n.org>
22824
22825 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22826 empty box occupy at least one column width.
22827
22828 2008-02-01 Miles Bader <miles@gnu.org>
22829
22830 * Makefile.in: Remove redundant HAVE_XFT clause.
22831
22832 2008-02-01 Kenichi Handa <handa@m17n.org>
22833
22834 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22835
22836 2008-02-01 Kenichi Handa <handa@m17n.org>
22837
22838 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22839 being nil.
22840
22841 2008-02-01 Kenichi Handa <handa@m17n.org>
22842
22843 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22844
22845 2008-02-01 Kenichi Handa <handa@m17n.org>
22846
22847 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22848
22849 2008-02-01 Kenichi Handa <handa@m17n.org>
22850
22851 * search.c (simple_search): Fix previous change.
22852
22853 2008-02-01 Kenichi Handa <handa@m17n.org>
22854
22855 * xftfont.c (ftfont_font_format): Extern declaration.
22856
22857 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22858
22859 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22860 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22861
22862 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22863 (ftfont_font_format): Fix previous change.
22864
22865 * font.h (Ffont_xlfd_name): EXFUN it.
22866
22867 * font.c (font_parse_xlfd): Fix the array size of `f'.
22868 (register_font_driver): Use EQ to compare driver->type.
22869
22870 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22871 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22872 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22873
22874 2008-02-01 Kenichi Handa <handa@m17n.org>
22875
22876 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22877 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22878
22879 2008-02-01 Kenichi Handa <handa@m17n.org>
22880
22881 * xfont.c (xfont_open): Set font->format.
22882
22883 * xftfont.c (xftfont_open): Set font->format.
22884
22885 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22886 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22887 (ftfont_open): Set font->format.
22888 (ftfont_font_format): New function.
22889
22890 * font.h (struct font): New member format.
22891
22892 * font.c (Qopentype): New variable.
22893 (syms_of_font): Defsym it.
22894 (Fquery_font): Change the format of the last element of the return
22895 value.
22896
22897 2008-02-01 Kenichi Handa <handa@m17n.org>
22898
22899 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22900 last resort.
22901
22902 2008-02-01 Kenichi Handa <handa@m17n.org>
22903
22904 * coding.c (detect_coding_charset): Fix detection of multi-byte
22905 charset.
22906
22907 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22908
22909 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22910
22911 2008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * xdisp.c (get_next_display_element): Set it->face_id for the
22914 first component of a composition.
22915 (x_produce_glyphs): Check if the font is changed or not for composition.
22916
22917 2008-02-01 Kenichi Handa <handa@m17n.org>
22918
22919 * fontset.c (Qlatin): New variable.
22920 (syms_of_fontset): Define it as a lisp symbol.
22921 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22922
22923 2008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * font.c (font_unparse_fcname): Pay attention to the case that
22926 some of font property is a null string.
22927
22928 2008-02-01 Kenichi Handa <handa@m17n.org>
22929
22930 * term.c: Include "composite.h".
22931 (encode_terminal_code): Output all components of composition.
22932 Check the size of encode_terminal_src.
22933 (produce_glyphs): For composition, call produce_composite_glyph.
22934 (append_composite_glyph, produce_composite_glyph): New functions.
22935
22936 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22937 is not found, get font_info from the current ascii face.
22938
22939 2008-02-01 Kenichi Handa <handa@m17n.org>
22940
22941 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22942 buffer-file-name to Qnil before calling insert_from_buffer.
22943
22944 * font.c (font_unparse_fcname): Pay attention to the case that
22945 foundry is a null string.
22946
22947 2008-02-01 Kenichi Handa <handa@m17n.org>
22948
22949 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22950
22951 * font.c (Qunicode_sip): New variable.
22952 (syms_of_font): Declare it as a Lisp symbol.
22953
22954 * font.h (Qunicode_sip): Extern it.
22955
22956 2008-02-01 Kenichi Handa <handa@m17n.org>
22957
22958 * composite.c (get_composition_id): Pay attention to TAB component.
22959
22960 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22961 TAB. Adjust for the change of s->char2b which always points to
22962 the first element of allocated memory.
22963
22964 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22965
22966 * xdisp.c (handle_composition_prop): Set it->c to the first
22967 non-TAB component.
22968 (fill_composite_glyph_string): Change argument.
22969 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22970 (x_produce_glyphs): Fix handling of left/right padding.
22971
22972 2008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * coding.c (detect_coding_system): Fix for handling off
22975 inhibit_iso_escape_detection. Fix for the case that no coding
22976 system is defined for a specific coding category.
22977
22978 2008-02-01 Kenichi Handa <handa@m17n.org>
22979
22980 * font.c (font_matching_entity): Delete unused local var.
22981
22982 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
22983 opening a font.
22984
22985 * fileio.c (Finsert_file_contents): On recovering a file, assume
22986 Unix-like eol.
22987 (choose_write_coding_system): On auto-saving a file, force
22988 Unix-like eol.
22989
22990 * coding.c (setup_coding_system): Fix setting of
22991 coding->common_flags based on eol_type.
22992 (coding_inherit_eol_type): If PARENT is not nil, be sure to
22993 inherit from it.
22994
22995 2008-02-01 Kenichi Handa <handa@m17n.org>
22996
22997 * alloc.c (NSTATICS): Increas to 0x600.
22998
22999 2008-02-01 Kenichi Handa <handa@m17n.org>
23000
23001 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23002 (ftfont_list): Don't check :name property.
23003 (ftfont_match): New function.
23004 (ftfont_pattern_entity): If the pattern doesn't contain
23005 FC_SPACING, don't assume FC_MONO.
23006
23007 * font.h (struct font_driver): New member `match'.
23008 (font_update_drivers): Adjust prototype.
23009
23010 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23011 property of FONT.
23012 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23013 Define them unconditionally.
23014 (font_matching_entity): New function.
23015 (font_open_by_name): Try font_matching_entity if exact match is
23016 not found.
23017 (font_update_drivers): Delete the arg FONT. Return a list of
23018 actually used backends. Don't free faces, font caches here.
23019 Don't store data in frame parameters. Don't call x_set_font.
23020 (Ffont_spec): Store :name property as is.
23021 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23022 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23023 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23024 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23025 Call font->driver->otf_gsub instead of font_otf_gsub.
23026
23027 * frame.c (x_set_font_backend): Do more works that were done in
23028 font_update_drivers before.
23029
23030 * xfont.c (xfont_match): New function.
23031 (xfont_driver): Set xfont_driver.match to xfont_match.
23032 (xfont_draw): Set font in GC if necessary.
23033
23034 * ftxfont.c (ftxfont_match): New function.
23035 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23036
23037 * xftfont.c (xftfont_match): New function.
23038 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23039
23040 2008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * font.h (struct font): New member scalable.
23043 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23044 (font_otf_gsub): Adjust prototype.
23045
23046 * font.c (font_otf_capability): Fix handling of the default langsys.
23047 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23048 Check the contents of SPEC.
23049 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23050 (check_gstring): New function.
23051 (REPLACEMENT_CHARACTER): New macro.
23052 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23053 glyph codes of GSTRING.
23054 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23055 (font_prepare_composition): Set cmp->glyph_len.
23056 (font_open_entity): Set font->scalable.
23057 (Ffont_get): Handle :otf property.
23058 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23059 New functions.
23060 (Fquery_font): Use font->font.full_name.
23061 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23062 Sfont_otf_alternates.
23063
23064 * ftfont.c (ftfont_open): Set font->font.full_name and
23065 font->font.name properly. Fix calculation of font->font.height
23066 and font->min_width.
23067
23068 * ftxfont.c (ftxfont_create_gcs): New function.
23069 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23070 (ftxfont_draw_backgrond): Fix filling region.
23071 (ftxfont_default_fid): New function.
23072 (ftxfont_open): Set xfont->fid to the return value of
23073 ftxfont_default_fid.
23074 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23075 (ftxfont_done_face): Free only GCs that are created by
23076 ftxfont_create_gcs.
23077 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23078
23079 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23080 Clip to src->width, etc (not src->clip_XXX).
23081
23082 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23083 FontBackend frame parameter.
23084
23085 2008-02-01 Kenichi Handa <handa@m17n.org>
23086
23087 * font.h (struct font_driver_list): New member `on'.
23088 (Fclear_font_cache): EXFUN it.
23089 (font_update_drivers): Extern it.
23090
23091 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23092 (font_list_entities): Check driver_list->on.
23093 (register_font_driver): Initialize `on' member to 0.
23094 (font_update_drivers): New function.
23095 (Fclear_font_cache): Check driver_list->on.
23096
23097 * frame.h (Qfont_backend): Extern it.
23098 (x_set_font_backend): Extern it.
23099
23100 * frame.c (Qfont_backend): New variable.
23101 (frame_parms): New element for font-backend.
23102 (x_set_font_backend): New function.
23103
23104 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23105 FontBackend frame parameter.
23106 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23107 x_set_font_backend.
23108
23109 * xfont.c (xfont_list): Don't try listing by :name property if the
23110 name is not for XLFD.
23111
23112 2008-02-01 Kenichi Handa <handa@m17n.org>
23113
23114 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23115 (LGLYPH_SET_TO): New macros.
23116 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23117 element of G is vector or not.
23118 (font_at): Extern it.
23119
23120 * font.c: Include window.h.
23121 (font_lispy_object): New function.
23122 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23123 end of valid glyph.
23124 (font_close_object): Fix getting (struct font *).
23125 (font_at): New function.
23126 (Ffont_get): If FONT is a font-object, get entity from it.
23127 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23128 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23129 Fix range check.
23130 (Ffont_at): New function.
23131 (syms_of_font): Defsubr Sfont_at.
23132
23133 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23134 before the entry for Qcomposition.
23135 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23136 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23137 the font in gstring.
23138 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23139 LGLYPH_FORM (g) to detect the end of valid glyph.
23140 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23141 we are composing with gstring.
23142
23143 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23144 Check if adjustment is vector or not.
23145
23146 * Makefile.in (font.o): Make it depends on window.h.
23147
23148 2008-02-01 Kenichi Handa <handa@m17n.org>
23149
23150 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23151 adjustment is vector or not.
23152
23153 2008-02-01 Miles Bader <miles@gnu.org>
23154
23155 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23156
23157 2008-02-01 Kenichi Handa <handa@m17n.org>
23158
23159 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23160 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23161 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23162
23163 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23164 (DEVICE_DELTA): Fix typo.
23165 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23166 LGLYPH format.
23167
23168 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23169 the change of LGLYPH format.
23170
23171 2008-02-01 Kenichi Handa <handa@m17n.org>
23172
23173 * ftfont.c (ftfont_list): Fix typo.
23174 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23175
23176 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23177
23178 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23179
23180 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23181 xftface_info is non-NULL.
23182
23183 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23184
23185 * ftfont.c (ftfont_list): Move misplaced #endif.
23186
23187 2008-02-01 Kenichi Handa <handa@m17n.org>
23188
23189 * ftfont.c (ftfont_list): Pay attention to the case that
23190 FC_CAPABILITY is not defined.
23191
23192 2008-02-01 Kenichi Handa <handa@m17n.org>
23193
23194 * xftfont.c (xftfont_open): Set charset related members to -1.
23195
23196 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23197 QCname.
23198 (ftfont_open): Set charset related members to -1.
23199
23200 * fontset.c (Votf_script_alist): New variable.
23201 (syms_of_fontset): Initialize it.
23202 (fontset_font): Delete unused variable.
23203
23204 * fontset.h (Votf_script_alist): Extern it.
23205
23206 * font.c (font_find_for_lface): Optimize code.
23207
23208 * font.h (font_close_object, font_merge_old_spec): Extern them.
23209
23210 2008-02-01 Kenichi Handa <handa@m17n.org>
23211
23212 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23213 (syms_of_font): Initialize them.
23214 (font_pixel_size): Allow float value in dpi.
23215 (font_prop_validate_type): Delete.
23216 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23217 Change caller.
23218 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23219 (font_prop_validate_extra): Delete.
23220 (font_prop_validate_spacing): New function.
23221 (font_property_table): Add elements for all known properties.
23222 (get_font_prop_index): Rename from check_font_prop_name.
23223 New argument FROM. Change caller.
23224 (font_prop_validate): Validate all known properties.
23225 (font_put_extra): Delete argument force. Change caller.
23226 (font_expand_wildcards): Make it static. Fix the way of shrinking
23227 the possible range.
23228 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23229 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23230 Change caller.
23231 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23232 (font_parse_fcname): Delete argument merge. Fix parsing of point
23233 size. Don't validate properties values here. Change caller.
23234 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23235 (font_open_by_name): Delete unused variable.
23236 (Ffont_spec): Likewise. Validate property values.
23237 (Ffont_match_p): New function.
23238
23239 * font.h (QCscalable): Extern it.
23240 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23241
23242 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23243
23244 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23245 (xfont_list_pattern): New function.
23246 (xfont_list): Use xfont_list_pattern.
23247
23248 2008-02-01 Kenichi Handa <handa@m17n.org>
23249
23250 * font.h (Flist_fonts): EXFUN it.
23251
23252 2008-02-01 Jason Rumney <jasonr@gnu.org>
23253
23254 * w32term.c (w32_initialize): Add back smoothing_type and
23255 smoothing_enabled definitions.
23256
23257 2008-02-01 Kenichi Handa <handa@m17n.org>
23258
23259 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23260 s->face->font on determining underline position.
23261
23262 2008-02-01 Kenichi Handa <handa@m17n.org>
23263
23264 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23265 (font_has_char): Accept font-object too.
23266 (font_find_for_lface): Try at first with a size specified in face.
23267
23268 2008-02-01 Kenichi Handa <handa@m17n.org>
23269
23270 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23271 font_open_by_name.
23272
23273 2008-02-01 Kenichi Handa <handa@m17n.org>
23274
23275 * font.h (QCspacing, QCdpi): Extern them.
23276 (enum font_spacing): New enum.
23277 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23278
23279 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23280 (QCspacing, QCdpi): New variables.
23281 (syms_of_font): Initialize them.
23282 (font_pixel_size): New function.
23283 (font_put_extra): New function.
23284 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23285 in FONT_EXTRA.
23286 (font_parse_fcname): Handle enumerated values (e.g. bold).
23287 Fix handling font size. Add QCname property that contains only
23288 unknown properties.
23289 (font_score): Change argument. Change caller. Pay attention to
23290 FONT_PIXEL_SIZE_QUANTUM.
23291 (font_sort_entites, font_list_entities, font_find_for_lface)
23292 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23293 (Ffont_spec): Add QCname property that contains only unknown properties.
23294
23295 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23296 Don't include weight in listing pattern, instead check weight of each
23297 listed font. Don't include scalable in pattern. Pay attention to
23298 FONT_PIXEL_SIZE_QUANTUM.
23299
23300 2008-02-01 Kenichi Handa <handa@m17n.org>
23301
23302 * font.c (font_parse_fcname): Fix parsing of point-size.
23303 (font_unparse_fcname): Produce symbolic names for style properties.
23304 (font_list_entities): Handle float size correctly.
23305 (font_open_by_name): Prefer `normal' property values if the name
23306 doesn't specify them.
23307
23308 * fontset.c (Finternal_char_font): Use font_get_name, not
23309 Ffont_xlfd_name.
23310
23311 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23312 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23313 pattern. Don't force scalable.
23314
23315 * xftfont.c (xftfont_open): For generating a name, start from
23316 96-byte buffer.
23317
23318 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23319
23320 * frame.h (x_new_fontset2): Fix prototype.
23321
23322 2008-02-01 Kenichi Handa <handa@m17n.org>
23323
23324 * font.h (struct font_driver): Delete member parse_name.
23325 (font_match_p, font_get_spec, font_parse_fcname)
23326 (font_unparse_fcname): Extern them.
23327 (font_get_name): Adjust prototype.
23328
23329 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23330 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
23331 (font_expand_wildcards): Fix handling ENCODING field.
23332 Avoid unnecessary checks for weight, slant, and swidth.
23333 (font_parse_fcname): New function.
23334 (font_unparse_fcname): New function.
23335 (font_parse_name): New function.
23336 (font_match_p): New function.
23337 (font_get_name): Change return value to Lisp string.
23338 (font_get_spec): New function.
23339 (Qunspecified, Qignore_defface): Don't extern them.
23340 (font_find_for_lface): Assume that LFACE is fully specified.
23341 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23342 object, use it for FACE.
23343 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23344 driver->parse_name.
23345 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23346
23347 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23348 prototype.
23349
23350 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23351 argument F. Don't call Fnew_fontset. Instead, directly call
23352 make_fontset.
23353
23354 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23355
23356 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23357 of x_new_fontset2.
23358
23359 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23360 (Qsans__serif): New variables.
23361 (ftfont_generic_family_list): New variable.
23362 (syms_of_ftfont): Initialize the above variables.
23363 (ftfont_pattern_entity): Delete argument NAME.
23364 (ftfont_list_generic_family): New function.
23365 (ftfont_parse_name): Delete this function.
23366 (ftfont_list): Try generic family only when FcFontList found no font.
23367 (ftfont_list_family): Fix args to FcObjectSetBuild.
23368
23369 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23370 object in attrs[LFACE_FONT_INDEX].
23371 (set_lface_from_font_name): Cancel all changes for font-backend.
23372 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23373 function.
23374 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23375 font object in QCfont attribute.
23376 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23377 (realize_default_face) [USE_FONT_BACKEND]: Call
23378 set_lface_from_font_and_fontset.
23379
23380 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23381 "fixed", and signal error here if no suitable font was found.
23382
23383 * xfont.c (xfont_parse_name): Delete this function.
23384
23385 * xftfont.c (xftfont_open): Change coding style of error
23386 handling. Generate fontconfig's fontname pattern.
23387
23388 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23389 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23390
23391 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23392 Both args FONTSET and FONT_OBJECT must be existing ones.
23393
23394 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23395
23396 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23397
23398 2008-02-01 Kenichi Handa <handa@m17n.org>
23399
23400 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23401
23402 * font.h (struct font): Fix typo.
23403
23404 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23405 XLFD_XXX_INDEX.
23406 (enum xlfd_field_mask): New enum.
23407 (intern_font_field): Change argument. Change caller. If digits
23408 are followed by non-digits, return a symbol.
23409 (font_expand_wildcards): New function.
23410 (font_parse_xlfd): Fix wildcard handling.
23411 (Ffont_spec): If :name is specified, reflect the info in the other
23412 properties.
23413
23414 * ftfont.c (ftfont_pattern_entity): Fix typo.
23415 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23416 locale.
23417
23418 2008-02-01 Kenichi Handa <handa@m17n.org>
23419
23420 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23421
23422 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23423 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23424 registry doesn't specify encoding part.
23425 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23426 (font_open_by_name): At first try parsing the name.
23427 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23428 as Lisp symbols.
23429
23430 * fontset.c (reorder_font_vector): Pay attention to the case that
23431 the 3rd element of font_def is nil.
23432 (fontset_font): For the default fontset, append one more fontset
23433 elements for a script-based font specification. Don't add script
23434 attribute on finding a font.
23435 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23436 font name.
23437 (fontset_ascii_font): If a font can't be opened, return nil.
23438
23439 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23440 (ftfont_pattern_entity): New function.
23441 (ftfont_get_cache): Assume that freetype_font_cache is already
23442 initialized.
23443 (ftfont_list): Handle the case that a file is specified in font
23444 name. Use ftfont_pattern_entity to generate entities.
23445 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23446 (syms_of_ftfont): Initialize freetype_font_cache.
23447
23448 * xftfont.c (xftfont_open): Make the font name fontconfig's
23449 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23450 (xftfont_close): Free font->font.name if not NULL.
23451
23452 * xfont.c (xfont_list): If script is specified for a font, return
23453 null_vector.
23454 (xfont_list_family): Declare argument type.
23455
23456 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23457 name, set LFACE_FONT (lface) to nil.
23458
23459 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23460 return Qnil.
23461
23462 2008-02-01 Kenichi Handa <handa@m17n.org>
23463
23464 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23465 (standard_args): Add "-enable-font-backend".
23466
23467 2008-02-01 Kenichi Handa <handa@m17n.org>
23468
23469 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23470 (struct xftdraw_list, xftdraw_list): Delete them.
23471 (register_xftdraw, check_xftdraw): Delete them.
23472 (xftfont_prepare_face): Don't call register_xftdraw.
23473 (xftfont_done_face): Don't call check_xftdraw.
23474 (xftfont_draw): Get background color only when with_background is
23475 nonzero.
23476
23477 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23478
23479 2008-02-01 Kenichi Handa <handa@m17n.org>
23480
23481 These changes are for the new font handling codes.
23482
23483 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23484 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23485 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23486 (FONTSRC, FONTOBJ): New variables.
23487 (obj): Add $(FONTOBJ).
23488 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23489 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23490 @LIBOTF_LIBS@.
23491 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23492 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23493
23494 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23495
23496 * character.h (Vscript_representative_chars): Extern it.
23497
23498 * character.c (Vscript_representative_chars): New variable.
23499 (syms_of_character): Declare it as a Lisp variable.
23500
23501 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23502 enable_font_backend is nonzero, accept the composition method
23503 COMPOSITION_WITH_GLYPH_STRING.
23504
23505 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23506 enumeration COMPOSITION_WITH_GLYPH_STRING.
23507
23508 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23509 members clip_x, clip_y, clip_width, and clip_height.
23510 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23511
23512 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23513 --enable-font-backend. Call syms_of_font.
23514
23515 * fns.c (assoc_no_quit): New function.
23516
23517 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23518 (face_for_font, new_fontset_from_font)
23519 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23520
23521 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23522 (fontset_font, fontset_ascii, face_for_char)
23523 (make_fontset_for_ascii_face, Ffont_info)
23524 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23525 is nonzero, use font-backend mechanism.
23526 (find_font_encoding): Make it non-static.
23527 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23528 New functions.
23529
23530 * frame.h (struct frame): New members resx and resy.
23531 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23532 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23533
23534 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23535 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23536
23537 * lisp.h (assoc_no_quit): Extern it.
23538
23539 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23540 Through out the file, use FONT_INFO_FROM_FACE instead of
23541 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23542 rif->per_char_metric.
23543 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23544 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23545 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23546 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23547 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23548 nonzero, use font-backend mechanism.
23549 (get_per_char_metric): New function.
23550
23551 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23552 (set_lface_from_font_name)
23553 (set_font_frame_param, free_realized_face)
23554 (prepare_face_for_display, clear_face_gcs)
23555 (Finternal_set_font_selection_order, realize_x_face)
23556 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23557 font-backend mechanism.
23558 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23559 (load_face_font) [USE_FONT_BACKEND]: Abort.
23560 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23561 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23562
23563 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23564 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23565 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
23566 nonzero, register all available font drivers.
23567 Call x_default_font_parameter for deciding a font.
23568 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23569
23570 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23571 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23572 (x_set_glyph_string_clipping_exactly)
23573 (x_compute_glyph_string_overhangs)
23574 (x_draw_glyph_string_foreground)
23575 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23576 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23577 enable_font_backend is nonzero, use font-backend mechanism.
23578 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23579
23580 2008-02-01 Kenichi Handa <handa@m17n.org>
23581
23582 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23583 system_eol_type.
23584 (syms_of_coding): Initialize system_eol_type.
23585
23586 * process.c (Fset_process_coding_system): Inherit system's eol
23587 format if necessary.
23588
23589 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23590
23591 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23592
23593 2008-02-01 Kenichi Handa <handa@m17n.org>
23594
23595 * coding.c (decode_eol): Pay attention to buffer relocation in
23596 del_range_2.
23597 (decode_coding): Call decode_eol before restoring undo_list.
23598
23599 2008-02-01 Kenichi Handa <handa@m17n.org>
23600
23601 * charset.c (Fdefine_charset_internal): Fix setting of
23602 emacs_mule_bytes.
23603
23604 2008-02-01 Kenichi Handa <handa@m17n.org>
23605
23606 * keyboard.c (read_char): Check if C is a character or not before
23607 looking up Vkeyboard_translate_table.
23608
23609 2008-02-01 Kenichi Handa <handa@m17n.org>
23610
23611 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23612 Fix condition to terminate the loop.
23613
23614 2008-02-01 Kenichi Handa <handa@m17n.org>
23615
23616 * coding.c (produce_composition): Compare charbuf[i] instead of
23617 args[i] against 0.
23618 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23619
23620 2008-02-01 Kenichi Handa <handa@m17n.org>
23621
23622 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23623 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23624 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23625 detect_coding.
23626 (emacs_mule_char): Handle old style (Emacs 20) component character
23627 of a composition.
23628 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23629 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23630 composition rule.
23631 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23632
23633 2008-02-01 Kenichi Handa <handa@m17n.org>
23634
23635 * coding.c (encode_coding_ccl): Allocate destination dynamically
23636 when necessary.
23637
23638 2008-02-01 Kenichi Handa <handa@m17n.org>
23639
23640 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23641 the loop. When quitted, show a proper error message.
23642
23643 2008-02-01 Kenichi Handa <handa@m17n.org>
23644
23645 * xterm.c (x_set_glyph_string_clipping_exactly):
23646 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
23647
23648 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23649 character sequence.
23650 (Fccl_execute_on_string): Use ASET, not XSET.
23651
23652 2008-02-01 Kenichi Handa <handa@m17n.org>
23653
23654 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23655
23656 2008-02-01 Kenichi Handa <handa@m17n.org>
23657
23658 * coding.c (decode_coding): Fix the condition of terminating the
23659 decoding loop.
23660
23661 2008-02-01 Kenichi Handa <handa@m17n.org>
23662
23663 * data.c (Faset): On setting a character bigger than 255 in a
23664 unibyte string, signal an error instead of make the string multibyte.
23665
23666 2008-02-01 Kenichi Handa <handa@m17n.org>
23667
23668 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23669 made by a mapping table.
23670
23671 2008-02-01 Kenichi Handa <handa@m17n.org>
23672
23673 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23674 not.
23675 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23676 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23677
23678 * xterm.c (x_draw_composite_glyph_string_foreground):
23679 Check s->face is NULL or not.
23680
23681 2008-02-01 Kenichi Handa <handa@m17n.org>
23682
23683 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23684 (x_draw_glyph_string): Fix drawing of right_overhang and
23685 left_overhang around/on cursor.
23686
23687 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23688
23689 2008-02-01 Kenichi Handa <handa@m17n.org>
23690
23691 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23692
23693 2008-02-01 Kenichi Handa <handa@m17n.org>
23694
23695 * coding.c (Fdefine_coding_system_internal)
23696 (Fdefine_coding_system_alias): Avoid a duplicated element in
23697 Vcoding_system_alist.
23698
23699 2008-02-01 Kenichi Handa <handa@m17n.org>
23700
23701 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23702
23703 * coding.c (Qcoding_system_define_form): New variable.
23704 (syms_of_coding): Intern and staticpro it.
23705 (Fcoding_system_p): Check Qcoding_system_define_form.
23706 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23707
23708 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23709 Fcoding_system_p.
23710 (CHECK_CODING_SYSTEM): If ID is not available, call
23711 Fcheck_coding_system.
23712 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23713 Try also Fcheck_coding_system.
23714
23715 2008-02-01 Kenichi Handa <handa@m17n.org>
23716
23717 * coding.c (code_conversion_restore): GCPRO arg.
23718
23719 2008-02-01 Kenichi Handa <handa@m17n.org>
23720
23721 * character.c (lisp_string_width): Check multibyteness of STRING.
23722
23723 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23724
23725 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23726 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23727 (decode_mac_font_name): Use decode_coding_c_string instead of
23728 decode_coding.
23729 (x_load_font): Initialize fontp->fontset to -1.
23730 Set fontp->encoding_type.
23731
23732 2008-02-01 Kenichi Handa <handa@m17n.org>
23733
23734 * search.c (search_buffer): Give up BM search on case-fold-search
23735 if one of a target character has a case-equivalence of different
23736 byte length even if that target character is an ASCII.
23737 (simple_search): Fix calculation of byte length of matched text.
23738 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23739
23740 2008-02-01 Kenichi Handa <handa@m17n.org>
23741
23742 * coding.c (decode_coding): Fix handling of invalid bytes.
23743
23744 2008-02-01 Kenichi Handa <handa@m17n.org>
23745
23746 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23747 Unicode characters.
23748
23749 2008-02-01 Kenichi Handa <handa@m17n.org>
23750
23751 * coding.c (encode_coding_object): If a pre-write-conversion
23752 function makes a new buffer, kill it.
23753
23754 2008-02-01 Kenichi Handa <handa@m17n.org>
23755
23756 * coding.c (QCascii_compatible_p): New variable.
23757 (syms_of_coding): Initialize it.
23758 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23759 calling string_char.
23760 (record_conversion_result): Add `default:' case.
23761 (coding_charset_list): Delete unused variable `coding_type'.
23762 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23763 property in the plist of the coding system.
23764 (Fcoding_system_put): Check QCascii_compatible_p.
23765
23766 2008-02-01 Miles Bader <miles@gnu.org>
23767
23768 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23769 removed calculation of frame `f', as it's now used.
23770
23771 2008-02-01 Kenichi Handa <handa@m17n.org>
23772
23773 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23774 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23775 (UNIDATA): New variable.
23776 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23777 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23778 Run $(RUN_TEMACS) unconditionally.
23779
23780 2008-02-01 Kenichi Handa <handa@m17n.org>
23781
23782 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23783 (admindir): New variable.
23784 ($(lispsource)international/charprop.el): New target.
23785
23786 2008-02-01 Miles Bader <miles@gnu.org>
23787
23788 * character.c (chars-in-region): Remove obsolete function.
23789 (syms_of_character): Remove its initialization.
23790
23791 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23792
23793 * w32select.c (validate_coding_system)
23794 (setup_windows_coding_system): New functions.
23795 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23796 Use setup_windows_coding_system.
23797 (setup_config, Fw32_get_clipboard_data):
23798 Use validate_coding_system.
23799 (Fx_selection_exists): Move call to setup_config to a place
23800 where signals are allowed.
23801
23802 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23803 (Fcheck_coding_system): Add declarations.
23804
23805 2008-02-01 Kenichi Handa <handa@m17n.org>
23806
23807 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23808
23809 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23810
23811 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23812 string as the second argument for x_new_fontset.
23813
23814 2008-02-01 Kenichi Handa <handa@m17n.org>
23815
23816 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23817 (encode_coding_object): Use safe_call instead of call2.
23818
23819 2008-02-01 Kenichi Handa <handa@m17n.org>
23820
23821 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23822
23823 * Makefile.in (lisp): Include charprop.el.
23824
23825 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23826
23827 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23828 Not sure if it's unnecessary.
23829
23830 2008-02-01 Steven Tamm <steventamm@mac.com>
23831
23832 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23833 some possibly unnecessary fontset checking code that crashed
23834 when creating a new frame.
23835
23836 2008-02-01 Kenichi Handa <handa@m17n.org>
23837
23838 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23839 lookup_face.
23840
23841 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23842
23843 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23844
23845 2008-02-01 Kenichi Handa <handa@m17n.org>
23846
23847 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23848 (coding_charset_list): New function.
23849
23850 * coding.h (coding_charset_list): Extern it.
23851
23852 2008-02-01 Kenichi Handa <handa@m17n.org>
23853
23854 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23855 concatenation of family and registry.
23856
23857 2008-02-01 Kenichi Handa <handa@m17n.org>
23858
23859 * character.h (BYTE8_STRING): Fix typo.
23860
23861 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23862 string to multibyte (sync to HEAD).
23863
23864 * casefiddle.c (casify_region): Handle changes in byte-length
23865 using replace_range_2 (sync to HEAD).
23866
23867 2008-02-01 Andreas Schwab <schwab@suse.de>
23868
23869 * chartab.c (map_char_table): GCPRO table and arg.
23870
23871 2008-02-01 Kenichi Handa <handa@m17n.org>
23872
23873 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23874 already at limit.
23875
23876 2008-02-01 Kenichi Handa <handa@m17n.org>
23877
23878 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23879 instead of fast_c_string_match_ignore_case.
23880 (find_font_encoding): Change argument to Lisp_Object.
23881 Use fast_string_match_ignore_case instead of
23882 fast_c_string_match_ignore_case. Change caller.
23883
23884 2008-02-01 Kenichi Handa <handa@m17n.org>
23885
23886 * xdisp.c (get_next_display_element): In unibyte case, decide to
23887 display in octal form by checking a character by
23888 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23889
23890 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23891
23892 * character.c (unibyte_has_multibyte_table): New variable.
23893
23894 * character.h (unibyte_has_multibyte_table): Extern it.
23895 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23896
23897 2008-02-01 Kenichi Handa <handa@m17n.org>
23898
23899 * coding.c (encode_coding_iso_2022): Fix handling of charset
23900 annotation.
23901
23902 2008-02-01 Kenichi Handa <handa@m17n.org>
23903
23904 * coding.c (setup_coding_system): If coding_system is nil, use
23905 Qundecided.
23906 (Fterminal_coding_system): Return nil if terminal coding system is
23907 `undecided'.
23908 (syms_of_coding): Define coding-system `undecided' here.
23909 Setup terminal_coding as `undecided'.
23910
23911 2008-02-01 Kenichi Handa <handa@m17n.org>
23912
23913 * xdisp.c (message_dolog, set_message_1):
23914 Call unibyte_char_to_multibyte with arg type int.
23915
23916 * lread.c (read1): Fix reading of a char-table.
23917
23918 * print.c (print_object): Include sub char-table in circularities
23919 detection.
23920
23921 2008-02-01 Kenichi Handa <handa@m17n.org>
23922
23923 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23924 Append the found sequences in car of ARGS instead of prepending.
23925
23926 2008-02-01 Kenichi Handa <handa@m17n.org>
23927
23928 * fileio.c (report_file_error): Make a unibyte string from
23929 strerror (errorno).
23930 (Fsubstitute_in_file_name): Fix the arg to
23931 unibyte_char_to_multibyte. It is evaluated twice.
23932
23933 2008-02-01 Kenichi Handa <handa@m17n.org>
23934
23935 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23936
23937 2008-02-01 Kenichi Handa <handa@m17n.org>
23938
23939 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23940 BOM is not found.
23941 (detect_coding, detect_coding_system): Optimization for ISO-2022
23942 when no 8-bit data is found.
23943
23944 2008-02-01 Jason Rumney <jasonr@gnu.org>
23945
23946 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23947
23948 2008-02-01 Kenichi Handa <handa@m17n.org>
23949
23950 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23951 CHARS.
23952
23953 2008-02-01 Steven Tamm <steventamm@mac.com>
23954
23955 * macterm.c (mac_encode_char): Add charset argument and update
23956 to use encoding_type.
23957 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23958 switch to pure fontset.
23959 (decode_mac_font_name): Temporarily remove decoding.
23960 (x_font_name_to_mac_font_name): Temporarily remove encoding.
23961 (x_load_font): Temporarily remove encoding.
23962
23963 2008-02-01 Kenichi Handa <handa@m17n.org>
23964
23965 * xfaces.c (Fface_font): If frame is not on a window system,
23966 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
23967 refer to face->font.
23968 (split_font_name_into_vector, build_font_name_from_vector)
23969 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23970 when HAVE_WINDOW_SYSTEM is defined.
23971
23972 2008-02-01 Kenichi Handa <handa@m17n.org>
23973
23974 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23975 (x_produce_glyphs): Fix setting of members of cmp in case
23976 cmp->glyph_len is zero.
23977
23978 * fontset.c (Fset_fontset_font): Fix docstring.
23979 (Ffontset_info): Make it backward compatible. New arg ALL.
23980
23981 2008-02-01 Kim F. Storm <storm@cua.dk>
23982
23983 * process.c (read_process_output): Grow decoding_buf when needed;
23984 this could cause a crash in allocate_string and compact_small_strings.
23985
23986 2008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
23989
23990 2008-02-01 Kenichi Handa <handa@m17n.org>
23991
23992 * coding.c (setup_coding_system): Set coding->common_flags
23993 correctly for raw-text.
23994 (consume_chars): On encoding unibyte text by raw-text, don't check
23995 multibyte form.
23996 (encode_coding): On encoding by raw-text, never use translation tables.
23997
23998 * fileio.c (e_write): Short cut for the case of no encoding.
23999
24000 2008-02-01 Kenichi Handa <handa@m17n.org>
24001
24002 * coding.c (detect_coding, detect_coding_system): Delete unused
24003 variables.
24004
24005 2008-02-01 Kenichi Handa <handa@m17n.org>
24006
24007 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24008 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24009
24010 2008-02-01 Kenichi Handa <handa@m17n.org>
24011
24012 * coding.c (Ffind_coding_systems_region_internal):
24013 Include raw-text and no-conversion in the result.
24014
24015 2008-02-01 Kenichi Handa <handa@m17n.org>
24016
24017 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24018 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24019 FONT_DEF.
24020 (font_def_arg, add_arg, from_arg, to_arg): New args.
24021 (set_fontset_font): Change argument.
24022 (Fset_fontset_font): Fix for the case that TARGET is a script
24023 name and charset name.
24024 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24025
24026 2008-02-01 Kenichi Handa <handa@m17n.org>
24027
24028 * fontset.c (fontset_font): Rename from fontset_face. Change return
24029 value.
24030 (face_suitable_for_char_p, face_for_char): Adjust for the change
24031 of fontset_font.
24032 (make_fontset_for_ascii_face): Fix setting of the fontset element
24033 for ASCII.
24034 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24035 to get a font name.
24036 (Ffontset_info): Adjust for the change of fontset_font.
24037
24038 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24039
24040 * character.h (LEADING_CODE_LATIN_1_MIN)
24041 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24042
24043 2008-02-01 Kenichi Handa <handa@m17n.org>
24044
24045 * editfns.c (check_translation): New function.
24046 (Ftranslate_region_internal): Handle M:N mapping.
24047
24048 2008-02-01 Kenichi Handa <handa@m17n.org>
24049
24050 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24051
24052 2008-02-01 Kenichi Handa <handa@m17n.org>
24053
24054 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24055 goto invalid_code.
24056 (decode_coding_iso_2022): Fix handling of invalid designation.
24057
24058 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24059 after calling code_conversion_save.
24060
24061 2008-02-01 Kenichi Handa <handa@m17n.org>
24062
24063 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24064
24065 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24066
24067 * fontset.c: Include "intervals.h".
24068 (fontset_face): Fix comparing of Lisp_Objects.
24069 (free_face_fontset, new_fontset_from_font_name):
24070 Fix Lisp_Object/int mixup.
24071
24072 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24073
24074 * coding.c: Add many prototypes for static functions.
24075 (get_translation_table): Allow max_lookup to be NULL.
24076 (decode_coding, Ffind_coding_systems_region_internal)
24077 (Funencodable_char_position, Fcheck_coding_systems_region):
24078 Call get_translation_table with max_lookup NULL.
24079
24080 2008-02-01 Kenichi Handa <handa@m17n.org>
24081
24082 * coding.c (get_translation_table): Declare it as Lisp_Object.
24083 (LOOKUP_TRANSLATION_TABLE): New macro.
24084 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24085 instead of CHAR_TABLE_REF.
24086
24087 2008-02-01 Kenichi Handa <handa@m17n.org>
24088
24089 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24090 annotation data format.
24091 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24092 Change arguments FROM and TO to single argument NCHARS. Change caller.
24093 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24094 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24095 (decode_coding_ccl, decode_coding_charset): Pay attention to
24096 coding->charbuf_used.
24097 (get_translation): New function.
24098 (produce_chars): New arguments translation_table and last_block.
24099 Translate characters here. Return number of carryover chars.
24100 Change caller.
24101 (produce_composition): New argument pos. Change caller.
24102 Adjust for the change of annotation data format.
24103 (produce_charset, produce_annotation): Likewise.
24104 (decode_coding, encode_coding): Don't call translate_chars.
24105 (consume_chars): New arg translation_table. Change caller.
24106 (translate_chars): Delete.
24107 (syms_of_coding): Make translation-table's number of extra slots 2.
24108
24109 2008-02-01 Kenichi Handa <handa@m17n.org>
24110
24111 * search.c (simple_search): Fix setting this_pos_byte in backward
24112 search.
24113
24114 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24115 byte sequence.
24116 (detect_coding_ccl): Fix setting of the variable valids.
24117
24118 2008-02-01 Kenichi Handa <handa@m17n.org>
24119
24120 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24121
24122 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24123
24124 * editfns.c (Ftranslate_region_internal): Rename from
24125 Ftranslate_region. Accept a char-table in TABLE.
24126 (syms_of_editfns): Defsubr Stranslate_region_internal.
24127
24128 * xfaces.c (set_lface_from_font_name): If a font is specified for
24129 a frame, generate a fontset from the font.
24130 (build_scalable_font_name): If the scalable font is requested for
24131 a specific size, don't change that size.
24132 (try_font_list): Try a scalable font also in the case that a
24133 pattern string is specified.
24134
24135 2008-02-01 Kenichi Handa <handa@m17n.org>
24136
24137 * xfaces.c (Fface_font): New optional arg CHARACTER.
24138
24139 2008-02-01 Kenichi Handa <handa@m17n.org>
24140
24141 * charset.h (CHARSET_OFFSET): New macro.
24142
24143 2008-02-01 Kenichi Handa <handa@m17n.org>
24144
24145 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24146
24147 * fontset.c (fontset_face): Handle the case that repertory is a
24148 char-table.
24149 (find_font_encoding): Return nil for unknown encoding.
24150 (Fset_fontset_font): Ignore a font of unknown encoding.
24151
24152 2008-02-01 Kenichi Handa <handa@m17n.org>
24153
24154 * keymap.c (describe_vector): Handle default value of a char table.
24155
24156 * fontset.c (fontset_face): Handle fallback fonts correctly.
24157 (Ffontset_info): Return infomation about fallback fonts.
24158
24159 2008-02-01 Kenichi Handa <handa@m17n.org>
24160
24161 * fontset.c (FONTSET_DEFAULT): New macro.
24162 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24163 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24164 the case that it is nil.
24165 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24166 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24167
24168 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24169 subset or superset.
24170
24171 2008-02-01 Kenichi Handa <handa@m17n.org>
24172
24173 * emacs.c (main): Call init_charset after syms_of_XXX.
24174
24175 * charset.c (Vcharset_map_directory): Delete.
24176 (Vcharset_map_path): New variable.
24177 (load_charset_map_from_file): Use Vcharset_map_path instead.
24178 (init_charset): Initialize Vcharset_map_path.
24179 (syms_of_charset): Delete declaration of "charset-map-directory",
24180 add declaration of "charset-map-path".
24181
24182 2008-02-01 Kenichi Handa <handa@m17n.org>
24183
24184 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24185 ASCII only string.
24186
24187 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24188
24189 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24190 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24191
24192 2008-02-01 Kenichi Handa <handa@m17n.org>
24193
24194 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24195
24196 * coding.c (QCmnemonic, QCdefalut_char)
24197 (QCdecode_translation_table, QCencode_translation_table)
24198 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24199 (get_translation_table): Return a list of translation tables if
24200 necessary.
24201 (decode_coding): Call get_translation_table with ENCODEP 0.
24202 (char_encodable_p): If translation_table is non-nil, always call
24203 translate_char.
24204 (Fdefine_coding_system_internal): Accept list of translation
24205 tables as :encode-translation-table and :decode-translation-table.
24206 (Fcoding_system_put): New function.
24207 (syms_of_coding): Declare new symbols.
24208 Defsubr Scoding_system_put.
24209 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24210 typically JISX0212.
24211
24212 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24213 when the charset is superset type.
24214
24215 * character.c (translate_char): Accept list of translation tables.
24216
24217 2008-02-01 Kenichi Handa <handa@m17n.org>
24218
24219 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24220 (CODING_ATTR_TRANS_TBL): New macro.
24221
24222 * coding.c (get_translation_table): New function.
24223 (translate_chars): Fix the bug of skipping annotation data.
24224 (decode_coding, encode_coding): Utilize get_translation_table.
24225 (char_encodable_p, Funencodable_char_position): Translate char if
24226 necessary.
24227 (Ffind_coding_systems_region_internal)
24228 (Fcheck_coding_systems_region): Setup translation table for encode
24229 in a coding system attribute vector in advance.
24230 (Fdefine_coding_system_internal): Allow a symbol as translation
24231 table. For shift-jis type coding system, allow 4th charset.
24232
24233 2008-02-01 Kenichi Handa <handa@m17n.org>
24234
24235 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24236
24237 * xdisp.c (get_next_display_element): Pass -1 as POS to
24238 FACE_FOR_CHAR if displaying a C-string.
24239
24240 2008-02-01 Kenichi Handa <handa@m17n.org>
24241
24242 * composite.c (get_composition_id): Handle xoff and yoff in a
24243 composition rule.
24244
24245 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24246 (struct composition): New member lbearing and rbearing.
24247
24248 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24249 (x_get_glyph_overhangs): Handle a composition glyph.
24250 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24251
24252 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24253 composition glyph.
24254
24255 2008-02-01 Kenichi Handa <handa@m17n.org>
24256
24257 * print.c: Include charset.h.
24258 (Vprint_charset_text_property): New variable.
24259 (Qdefault): Extern it.
24260 (PRINT_STRING_NON_CHARSET_FOUND)
24261 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24262 (print_check_string_result): New variable.
24263 (print_check_string_charset_prop): New function.
24264 (print_prune_charset_plist): New variable.
24265 (print_prune_string_charset): New function.
24266 (print_object): Call print_prune_string_charset if
24267 Vprint_charset_text_property is not t.
24268 (print_interval): Print nothing if interval->plist is nil.
24269 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24270 variable. Init and staticpro print_prune_charset_plist.
24271
24272 2008-02-01 Kenichi Handa <handa@m17n.org>
24273
24274 * fontset.c (new_fontset_from_font_name): Use the specified font
24275 for all characters in the new fontset.
24276
24277 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24278 OBJECT args.
24279
24280 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24281 OBJECT args for composition too.
24282
24283 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24284 OBJECT args.
24285
24286 2008-02-01 Kenichi Handa <handa@m17n.org>
24287
24288 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24289
24290 * fontset.c (reorder_font_vector): Adjust for the change of
24291 FONT_DEF format.
24292 (fontset_face): New arg id. Change caller.
24293 (face_for_char): New args pos and object.
24294 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24295 (fs_query_fontset): Check NAME by Fassoc too.
24296 (Fset_fontset_font): Allow non-XLFD font name.
24297 (Ffontset_info): Adjust for the change of FONT_DEF format.
24298
24299 * fontset.h (face_for_char): Adjust prototype.
24300
24301 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24302 (append_space, extend_face_to_end_of_line)
24303 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24304 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24305
24306 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24307 POS and OBJECT args.
24308
24309 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24310 POS and OBJECT args.
24311
24312 2008-02-01 Jason Rumney <jasonr@gnu.org>
24313
24314 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24315 of GlobalAlloc'ed memory.
24316
24317 2008-02-01 Kenichi Handa <handa@m17n.org>
24318
24319 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24320
24321 * charset.h (charset_table_used): Delete extern.
24322
24323 * charset.c (charset_table_used): Make it static.
24324 (map_charset_chars): Fix args to c_function with.
24325
24326 * chartab.c (map_sub_char_table_for_charset): Fix args to
24327 c_function with.
24328
24329 * coding.h (enum coding_result_code):
24330 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
24331
24332 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24333 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24334 (Vlast_code_conversion_error): New variables.
24335 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24336 (ONE_MORE_BYTE): Record error if any instead of signaling an
24337 error. If non-ASCII multibyte char is found, return the negative
24338 value of the code. All callers changed to check it.
24339 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24340 (record_conversion_result): New function. Change all codes setting
24341 coding->result to call this function.
24342 (detect_coding_utf_8, decode_coding_utf_8)
24343 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24344 Don't use the local variable incomplete.
24345 (emacs_mule_char): Change the second arg to `const'.
24346 (decode_coding): Fix of flushing out unprocessed data.
24347 (make_conversion_work_buffer): Fix making of a work buffer.
24348 (decode_coding_object): Return coding->dst_object.
24349
24350 * fontset.c (set_fontset_font): Fix args.
24351
24352 * lisp.h (CHARACTERBITS): Define as 22.
24353
24354 * process.c (send_process): Be sure to set coding->src_multibyte.
24355
24356 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24357
24358 2008-02-01 Kenichi Handa <handa@m17n.org>
24359
24360 * xdisp.c (handle_auto_composed_prop): Give limit to
24361 Fnext_single_char_property_change.
24362
24363 2008-02-01 Kenichi Handa <handa@m17n.org>
24364
24365 * composite.c (syms_of_composite): Don't make the composition hash
24366 table weak.
24367
24368 * fontset.c (Fset_fontset_font): Fix docstring.
24369
24370 * lisp.h (detect_coding_system): Adjust prototype.
24371
24372 * fileio.c (kill_workbuf_unwind): Delete this function.
24373 (Finsert_file_contents): Adjust the call of detect_coding_system.
24374 Get conversion_buffer by code_conversion_save. Use the macro
24375 CODING_MAY_REQUIRE_DECODING. After decoding, update
24376 coding_system.
24377
24378 * coding.h (make_conversion_work_buffer): Delete extern.
24379 (code_conversion_save): Extern it.
24380
24381 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24382 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24383 (decode_coding_utf_8): Don't do eol converion.
24384 (detect_coding_utf_16): Check coding->src_chars, not
24385 coding->src_bytes. Add heuristics for those that have no signature.
24386 (decode_coding_emacs_mule, decode_coding_iso_2022)
24387 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24388 Don't do eol converion.
24389 (adjust_coding_eol_type): Return a new coding system.
24390 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24391 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24392 each change.
24393 (decode_coding): Pay attention to undo_list. Do eol conversion for
24394 all types of coding-systems (if necessary).
24395 (Vcode_conversion_work_buf_list): Delete it.
24396 (Vcode_conversion_reused_workbuf): Rename from
24397 Vcode_conversion_reused_work_buf.
24398 (Vcode_conversion_workbuf_name): New variable.
24399 (reused_workbuf_in_use): New variable.
24400 (make_conversion_work_buffer): Delete the arg DEPTH.
24401 (code_conversion_restore): Change argument to cons.
24402 (code_conversion_save): Delete the argument BUFFER. Change callers.
24403 (detect_coding_system): New argument src_chars. Change callers.
24404 Fix for utf-16 detection.
24405 (init_coding_once): Don't use ISO_carriage_return.
24406 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24407 reused_workbuf_in_use.
24408
24409 2008-02-01 Kenichi Handa <handa@m17n.org>
24410
24411 * keymap.c (store_in_keymap): Pay attention to the case that idx
24412 is a cons specifying a character range.
24413
24414 2008-02-01 Kenichi Handa <handa@m17n.org>
24415
24416 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24417 HANDLED_RECOMPUTE_PROPS.
24418
24419 * coding.c (Fdefine_coding_system_internal): Fix checking of
24420 ascii compatibility.
24421
24422 2008-02-01 Kenichi Handa <handa@m17n.org>
24423
24424 * charset.c (find_charsets_in_text): Delete unused locale variable.
24425 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24426
24427 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24428 Resync charset_list to Vemacs_mule_charset_list.
24429
24430 * keymap.c (store_in_keymap): Pay attention to the case that idx
24431 is a cons specifying a character range.
24432
24433 2008-02-01 Kenichi Handa <handa@m17n.org>
24434
24435 * composite.c (update_compositions): Bind inhibit-read-only, etc
24436 to t before calling remove-list-of-text-properties.
24437
24438 * print.c (print_object): Always print ASCII chars as is.
24439
24440 2008-02-01 Kenichi Handa <handa@m17n.org>
24441
24442 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24443
24444 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24445 is a char table.
24446
24447 2008-02-01 Kenichi Handa <handa@m17n.org>
24448
24449 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24450
24451 2008-02-01 Kenichi Handa <handa@m17n.org>
24452
24453 * xfaces.c (set_lface_from_font_name): Fix for the case that
24454 FONTNAME is not fontset name.
24455
24456 2008-02-01 Kenichi Handa <handa@m17n.org>
24457
24458 * fns.c (base64_encode_1): Fix previous change.
24459
24460 2008-02-01 Kenichi Handa <handa@m17n.org>
24461
24462 * fontset.c (set_fontset_font): New function.
24463 (Fset_fontset_font): If a font is specified for a charset, use
24464 map_charset_chars to store the font spec in a fontset.
24465
24466 2008-02-01 Kenichi Handa <handa@m17n.org>
24467
24468 * fontset.c (fontset_face): Create a fallback fontset on demand.
24469 (make_fontset): Don't create a fallback fontset here.
24470 (free_face_fontset): Free a fallback fontset (if any) too.
24471 (n_auto_fontsets): Delete this variable.
24472 (auto_fontset_alist): New variable.
24473 (new_fontset_from_font_name): Check auto_fontset_alist.
24474 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24475 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24476 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24477 Defsubr Sfontset_list_all.
24478
24479 2008-02-01 Kenichi Handa <handa@m17n.org>
24480
24481 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24482
24483 2008-02-01 Kenichi Handa <handa@m17n.org>
24484
24485 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24486
24487 2008-02-01 Kenichi Handa <handa@m17n.org>
24488
24489 * editfns.c (Fgoto_char): Fix docstring.
24490
24491 2008-02-01 Kenichi Handa <handa@m17n.org>
24492
24493 * insdel.c (insert_from_gap): Adjust intervals correctly.
24494
24495 2008-02-01 Jason Rumney <jasonr@gnu.org>
24496
24497 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24498 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24499 (w32_initialize): Try to load it.
24500 (x_get_font_repertory): Use it if available.
24501 (w32_encode_char): Add shortcut for unicode output.
24502
24503 * w32fns.c (w32_load_system_font): Default charset to -1.
24504 (x_to_w32_charset): Match all fonts for unicode.
24505 (w32_to_x_charset): New parameter matching. Don't return partial
24506 or wildcard charsets.
24507 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24508 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24509 (w32_to_x_font): Match charset to real charset.
24510 (enum_font_cb2): Always list unicode versions.
24511
24512 * makefile.w32-in (temacs): Increase EMHEAP.
24513
24514 2008-02-01 Jason Rumney <jasonr@gnu.org>
24515
24516 * w32term.c (w32_encode_char): New charset parameter.
24517 font_info.encoding becomes encoding_type.
24518 (x_get_font_repertory): New function. Warning: stub only!
24519 (x_new_font): Return quickly if font already set.
24520 (x_new_fontset): fontsetname parameter is Lisp_Object.
24521 Use new fs_query_fontset. Try new_fontset_from_font_name.
24522 Use fontset_name for return value.
24523
24524 * w32term.h: Declare x_get_font_repertory.
24525
24526 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24527 place of find_charset_in_text. Use encode_coding_object in place
24528 of encode_coding.
24529 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24530 decode_coding.
24531
24532 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24533 of x_new_fontset.
24534 (w32_load_system_font): Initialize charset as unicode.
24535 font_info.encoding becomes encoding_type.
24536 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24537 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24538 (syms_of_w32fns): Set get_font_repertory_func.
24539
24540 * w32console.c: Include character.h. Use terminal_encode_buffer
24541 from term.c.
24542 (write_glyphs): Use new version of encode_terminal_code.
24543 Use encode_coding_object in place of encode_coding.
24544
24545 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24546 encoding becomes encoding_type.
24547
24548 * term.c (terminal_encode_buffer): Make externally visible.
24549
24550 * makefile.w32-in: Add character.h dependancies.
24551 (character.o, chartab.o): New targets.
24552
24553 2008-02-01 Kenichi Handa <handa@m17n.org>
24554
24555 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24556 CODING_ID_EOL_TYPE.
24557
24558 2008-02-01 Andreas Schwab <schwab@suse.de>
24559
24560 * coding.c (produce_chars): Revert last change.
24561
24562 2008-02-01 Kenichi Handa <handa@m17n.org>
24563
24564 * charset.h (charset_unicode): Extern it.
24565
24566 * charset.c (string_xstring_p): Check by (C >= 0x100).
24567 (find_charsets_in_text): Change format of the arc CHARSETS.
24568 New arg MULTIBYTE.
24569 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24570 change of find_charsets_in_text.
24571 (Fsplit_char): Fix doc. Never return unknown.
24572
24573 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24574
24575 * coding.c (Fdefine_coding_system_alias):
24576 Update Vcoding_system_list.
24577
24578 * fontset.c (load_font_get_repertory): Pay attention to the case
24579 that ENCODING of a font is specified by a char-table.
24580
24581 * xterm.c (x_get_font_repertory): Handle the case that the
24582 encoding of font is other than Unicode.
24583
24584 2008-02-01 Kenichi Handa <handa@m17n.org>
24585
24586 * term.c (encode_terminal_code): Don't handle glyph-table.
24587 Check if a character is encodable by the terminal coding system.
24588 If not, produces proper number of `?'s. Update
24589 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24590 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24591
24592 2008-02-01 Kenichi Handa <handa@m17n.org>
24593
24594 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24595 New variables.
24596 (encode_terminal_code): Change argument. Encode multiple
24597 characters at once. Store the result of encoding in
24598 terminal_encode_buffer.
24599 (write_glyphs, insert_glyphs): Adjust for the change of
24600 encode_terminal_code.
24601 (term_init): Initialize terminal_encode_buffer and
24602 terminal_encode_buf_size.
24603
24604 * coding.c (consume_chars): If coding->src_object is nil, don't
24605 check annotation.
24606
24607 2008-02-01 Kenichi Handa <handa@m17n.org>
24608
24609 * character.c (char_string): Use ASCII_CHAR_P instead of
24610 SINGLE_BYTE_CHAR_P.
24611
24612 2008-02-01 Kenichi Handa <handa@m17n.org>
24613
24614 * xdisp.c (handle_auto_composed_prop): Check if the last
24615 characters of auto-composed region is newly composed with the
24616 following characters.
24617 (handle_composition_prop): Fix checking of point being inside
24618 composition.
24619
24620 2008-02-01 Kenichi Handa <handa@m17n.org>
24621
24622 * fns.c (concat): Don't change multibyteness of the result by
24623 concatenating an 8-bit character.
24624
24625 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24626 multibyteness of the result when newelt is an 8-bit character.
24627
24628 2008-02-01 Dave Love <fx@gnu.org>
24629
24630 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24631 EMACS_INT.
24632
24633 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24634
24635 * xfaces.c (face_numeric_value): Declare dim size_t.
24636 (Finternal_lisp_face_equal_p): Remove unused f.
24637
24638 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24639 (MATRIX_ROW): Remove unused vars.
24640 (draw_glyphs, x_insert_glyphs, fast_find_position)
24641 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24642 byte/char counts.
24643
24644 * regex.c (regex_compile): Remove unused var.
24645
24646 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24647
24648 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24649 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24650
24651 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24652
24653 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24654
24655 * fileio.c (Fwrite_region): Remove unused var.
24656
24657 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24658 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24659
24660 * composite.c (Fremove_list_of_text_properties): Declare.
24661
24662 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24663 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24664 (coding_inherit_eol_type): Remove unused attrs.
24665 (detect_coding): Cast arg of detect_eol.
24666
24667 * charset.c (syms_of_charset): Remove unused var p.
24668 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24669 byte/char counts.
24670
24671 * casetab.c (set_case_table): Remove unused var.
24672
24673 * window.c (Fdisplay_buffer, Fframe_selected_window):
24674 Remove unused vars.
24675
24676 2008-02-01 Dave Love <fx@gnu.org>
24677
24678 * xterm.c (x_bitmap_mask): Declare.
24679
24680 2008-02-01 Dave Love <fx@gnu.org>
24681
24682 * xterm.c (x_term_init): Fix type error.
24683
24684 * lisp.h: Add Funibyte_char_to_multibyte.
24685
24686 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24687 (Fset_coding_system_priority): Doc fix.
24688
24689 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24690
24691 * indent.c (check_composition): Make start and end EMACS_INT.
24692
24693 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24694
24695 * xdisp.c (handle_composition_prop, check_point_in_composition):
24696 Make buffer positions EMACS_INT.
24697
24698 * composite.c (find_composition, run_composition_function)
24699 (update_compositions, Ffind_composition_internal): Make buffer
24700 positions EMACS_INT.
24701
24702 * composite.h (find_composition, update_compositions):
24703 Make position args EMACS_INT.
24704
24705 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24706
24707 * intervals.c (get_property_and_range):
24708 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24709
24710 * unexalpha.c: Don't include varargs.h.
24711
24712 2008-02-01 Dave Love <fx@gnu.org>
24713
24714 * coding.h (ENCODE_UTF_8): New.
24715
24716 * Makefile.in (gtkutil.o): Depend on coding.h.
24717
24718 * coding.c (Fset_coding_system_priority): Doc fix.
24719
24720 2008-02-01 Kenichi Handa <handa@m17n.org>
24721
24722 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24723 the case of auto saving.
24724
24725 2008-02-01 Andreas Schwab <schwab@suse.de>
24726
24727 * chartab.c (map_char_table, map_char_table_for_charset):
24728 Protect `range' from GC.
24729
24730 2008-02-01 Kenichi Handa <handa@m17n.org>
24731
24732 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24733
24734 2008-02-01 Kenichi Handa <handa@m17n.org>
24735
24736 * fileio.c (choose_write_coding_system): Return a decided coding system.
24737 (Fwrite_region): Set Vlast_coding_system_used to the return value
24738 of choose_write_coding_system.
24739
24740 2008-02-01 Kenichi Handa <handa@m17n.org>
24741
24742 * charset.c (Fset_charset_priority): Pay attention to duplicated
24743 arguments.
24744
24745 * coding.c (QCcategory): New variable.
24746 (syms_of_coding): Defsym it. Set all elements of
24747 Vcoding_category_table and their symbol values.
24748 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24749 coding-category-XXX, and coding-category-list.
24750 (Fdefine_coding_system_internal): Add category in the plist.
24751
24752 2008-02-01 Kenichi Handa <handa@m17n.org>
24753
24754 * callproc.c (Fcall_process): Handle carryover correctly.
24755
24756 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24757 (raw_text_coding_system): Check NILP (coding_system).
24758 (coding_inherit_eol_type): Check NILP (coding_system) and
24759 NILP (parent).
24760 (consume_chars): Fix for the case of raw-text.
24761
24762 * process.c (read_process_output): Handle carryover correctly.
24763
24764 2008-02-01 Dave Love <fx@gnu.org>
24765
24766 * regex.c (re_search_2): Fix last change.
24767
24768 2008-02-01 Kenichi Handa <handa@m17n.org>
24769
24770 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24771 target_multibyte. Even in a unibyte case, return a converted
24772 multibyte char.
24773 (GET_CHAR_AFTER): New macro.
24774 (PATFETCH): Translate via multibyte char.
24775 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24776 (SETUP_MULTIBYTE_RANGE): New macro.
24777 (regex_compile): Setup compiled code so that its multibyteness
24778 matches that of a target. Fix the handling of "[X-YZ]" using
24779 SETUP_MULTIBYTE_RANGE.
24780 (analyse_first) <charset>: For filling fastmap for all multibyte
24781 characters, don't check by BASE_LEADING_CODE_P.
24782 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24783 the same as RE_MULTIBYTE_P (bufp) now.
24784 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24785 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24786 (TRANSLATE_VIA_MULTIBYTE): New macro.
24787 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24788 It is the same as RE_MULTIBYTE_P (bufp) now.
24789 <exactn>: Translate via multibyte.
24790 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24791 Don't translate it.
24792 <charset, charset_not>: Fetch a character by
24793 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24794 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24795 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24796 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24797 by GET_CHAR_AFTER.
24798 (bcmp_translate): Likewise.
24799
24800 * search.c (compile_pattern): Check the member target_multibyte,
24801 not the member multibyte of buf.
24802
24803 * lread.c (read1): While reading a string, set force_singlebyte
24804 and force_multibyte correctly.
24805
24806 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24807 up of unibyte_to_multibyte_table.
24808
24809 2008-02-01 Kenichi Handa <handa@m17n.org>
24810
24811 * coding.c (setup_coding_system): If coding has
24812 post-read-conversion or pre-write-conversion, set
24813 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24814 respectively.
24815 (decode_coding_gap): Run post-read-conversion if any.
24816
24817 * fileio.c (Finsert_file_contents): Even if we read into a
24818 unibyte buffer, check if we must decode the result or not.
24819
24820 2008-02-01 Kenichi Handa <handa@m17n.org>
24821
24822 * coding.c (make_conversion_work_buffer): Change the work buffer
24823 name to the same one as that of Emacs 21.
24824
24825 2008-02-01 Kenichi Handa <handa@m17n.org>
24826
24827 * coding.h (make_conversion_work_buffer): Adjust prototype.
24828 (code_conversion_restore): Don't extern it.
24829
24830 * coding.c (detected_mask): Delete unused variable.
24831 (decode_coding_iso_2022): Pay attention to the byte sequence of
24832 CTEXT extended segment, and retain those bytes as is.
24833 (decode_coding_ccl): Delete unused variable `valids'.
24834 (setup_coding_system): Delete unused variable `category'.
24835 (consume_chars): Delete unused variable `category'. Make it work
24836 for non-multibyte case.
24837 (make_conversion_work_buffer): Change argument.
24838 (saved_coding): Delete unused variable.
24839 (code_conversion_restore): Don't check saved_coding->destination.
24840 (code_conversion_save): New function.
24841 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24842 instead of record_unwind_protect.
24843 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24844 (detect_coding_system): Delete unused variable `mask'.
24845 (Fdefine_coding_system_internal): Delete unused variable id.
24846
24847 * fileio.c (kill_workbuf_unwind): New function.
24848 (Finsert_file_contents): On replacing, call
24849 make_conversion_work_buffer with correct args, and call
24850 record_unwind_protect with the first arg kill_workbuf_unwind.
24851
24852 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24853
24854 2008-02-01 Kenichi Handa <handa@m17n.org>
24855
24856 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24857 (fontset_add): Fix for the case that TO is less than TO1.
24858 (Ffontset_info): Don't use fallback fontset on checking the
24859 default fontset.
24860 (dump_fontset): New function for debugging.
24861
24862 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24863 coding_type is Qcharset.
24864
24865 2008-02-01 Kenichi Handa <handa@m17n.org>
24866
24867 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24868 (map_char_table): Don't inherit the value from the parent on
24869 initializing VAL. Adjust for the above change.
24870
24871 2008-02-01 Kenichi Handa <handa@m17n.org>
24872
24873 * coding.c (Qsignature, Qendian): Delete these variables.
24874 (syms_of_coding): Don't initialize them.
24875 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24876 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24877 detect_info->found.
24878 (decode_coding_utf_16): Don't detect BOM here.
24879 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24880 is NOT utf_16_without_bom.
24881 (setup_coding_system): For a coding system of type utf-16, check
24882 if the attribute :endian is Qbig or not (not nil or not), and set
24883 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24884 (detect_coding): If coding type is utf-16 and BOM detection is
24885 required, detect it.
24886 (Fdefine_coding_system_internal): For a coding system of type
24887 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24888
24889 2008-02-01 Kenichi Handa <handa@m17n.org>
24890
24891 * coding.c (coding_set_source): Fix for the case that the current
24892 buffer is different from coding->src_object.
24893 (decode_coding_object): Don't use the conversion work buffer if
24894 DST_OBJECT is a buffer.
24895
24896 2008-02-01 Dave Love <fx@gnu.org>
24897
24898 * lread.c (read_emacs_mule_char) [len==2]: Index
24899 emacs_mule_charset correctly.
24900
24901 2008-02-01 Dave Love <fx@gnu.org>
24902
24903 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24904 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24905 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24906 treated specially.)
24907 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24908 (detected_mask): Remove Big5 bits.
24909
24910 2008-02-01 Kenichi Handa <handa@m17n.org>
24911
24912 The following changes are to make the font rescaling facility
24913 compatible with Emacs 21.
24914
24915 * xfaces.c (Vface_font_rescale_alist): Rename from
24916 Vface_resizing_fonts.
24917 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24918 (font_rescale_ratio): Rename from font_resizing_ratio.
24919 (split_font_name): Set font->rescale_ratio.
24920 (better_font_p): Pay attention to font->rescale_ratio.
24921 (build_scalable_font_name): Likewise. Change RESX, and RESY
24922 fields.
24923 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24924
24925 2008-02-01 Kenichi Handa <handa@m17n.org>
24926
24927 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24928 (Qutf_16_le): Remove these variables.
24929 (syms_of_coding): Don't DEFSYM them.
24930 (decode_coding_utf_16): Fix handling of BOM.
24931 (encode_coding_utf_16): Fix handling of BOM.
24932
24933 2008-02-01 Kenichi Handa <handa@m17n.org>
24934
24935 * fileio.c (Finsert_file_contents): On replacing, before decoding
24936 the file into the work buffer, set point of the work buffer to the end.
24937
24938 2008-02-01 Dave Love <fx@gnu.org>
24939
24940 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24941
24942 2008-02-01 Dave Love <fx@gnu.org>
24943
24944 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24945 and fix C types.
24946
24947 2008-02-01 Kenichi Handa <handa@m17n.org>
24948
24949 * xdisp.c (SKIP_GLYPHS): New macro.
24950 (set_cursor_from_row): Pay attention to string display properties.
24951
24952 * category.c (copy_category_entry): Fix for the case that RANGE
24953 is an integer.
24954
24955 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24956
24957 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24958
24959 2008-02-01 Kenichi Handa <handa@m17n.org>
24960
24961 * charset.c (Fcharset_id_internal): New function.
24962 (syms_of_charset): Defsubr it.
24963
24964 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24965 with the last arg charset_list acquired from coding.
24966 (Fdefine_coding_system_internal): For ccl-based coding system, fix
24967 the attribute coding_attr_ccl_valids.
24968
24969 * coding.h (enum define_coding_ccl_arg_index): Set the first
24970 member coding_arg_ccl_decoder to coding_arg_max.
24971
24972 * ccl.h (ccl_driver): Adjust prototype.
24973
24974 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24975 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
24976 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
24977 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24978 last arg Qnil.
24979
24980 2008-02-01 Kenichi Handa <handa@m17n.org>
24981
24982 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
24983 call encode_char.
24984
24985 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
24986
24987 2008-02-01 Dave Love <fx@gnu.org>
24988
24989 * composite.c (syms_of_composite): Make composition_hash_table weak.
24990
24991 2008-02-01 Kenichi Handa <handa@m17n.org>
24992
24993 * dispextern.h (check_face_attributes, generate_ascii_font_name)
24994 (font_name_registry): Don't extern them.
24995 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
24996
24997 * fontset.h (Qfontset): Don't extern it.
24998 (new_fontset_from_font_name): Extern it.
24999
25000 * fontset.c: Give 8 extra slots to fontset objects.
25001 (Qfontset_info): New variable.
25002 (syms_of_fontset): Defsym it.
25003 (FONTSET_FALLBACK): New macro.
25004 (fontset_face): Try also the default fontset.
25005 (make_fontset): Realize a fallback fontset from the default fontset.
25006 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25007 using split_font_name_into_vector and build_font_name_from_vector.
25008 (Fset_fontset_font): Access the elements of font_spec by enum
25009 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25010 name by using split_font_name_into_vector.
25011 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25012 generate a proper font name from the fontset name.
25013 Update Vfontset_alias_alist.
25014 (n_auto_fontsets): New variable.
25015 (new_fontset_from_font_name): New function.
25016 (Ffont_info): Store the information about fonts generated from the
25017 default fontset in the first extra slot of the returned char-table.
25018
25019 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25020 (font_name_registry): Delete function.
25021 (split_font_name_into_vector): New function.
25022 (build_font_name_from_vector): New function.
25023 (font_list): The argument REGISTRY is now a list of registry names.
25024 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25025 specifies an explicit font name, return the name as is. Make a
25026 list of registy names.
25027
25028 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25029 of x_new_fontset.
25030 (Fx_create_frame): Don't call x_new_fontset here. Just use
25031 x_list_fonts to check the existence of fonts.
25032
25033 * xterm.h (x_new_fontset): Adjust prototype.
25034
25035 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25036 string. Use new_fontset_from_font_name to create a fontset from a
25037 font name.
25038
25039 2008-02-01 Kenichi Handa <handa@m17n.org>
25040
25041 * syntax.c (Vfind_word_boundary_function_table): New name for
25042 Vnext_word_boundary_function_table.
25043 (find-word-boundary-function-table): New name for
25044 next-word-boundary-function-table.
25045
25046 2008-02-01 Dave Love <fx@gnu.org>
25047
25048 * Makefile.in: Fix some dependencies.
25049
25050 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25051 set it to nil before returning.
25052
25053 * composite.c (update_compositions): Fix type error.
25054
25055 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25056
25057 2008-02-01 Kenichi Handa <handa@m17n.org>
25058
25059 * xterm.c (x_new_font): Optimize for the case that the font is
25060 already set for the frame.
25061
25062 2008-02-01 Kenichi Handa <handa@m17n.org>
25063
25064 * chartab.c (char_table_ascii): Check if the char table contents
25065 is sub-char-table or not.
25066 (char_table_set, char_table_set_range): Fix argument to
25067 char_table_ascii.
25068
25069 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25070 (detect_coding_utf_8, detect_coding_utf_16)
25071 (detect_coding_emacs_mule, detect_coding_iso_2022)
25072 (detect_coding_sjis, detect_coding_big5)
25073 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25074 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25075 sequence is valid in this coding system. Change callers.
25076 (MAX_ANNOTATION_LENGTH): New macro.
25077 (ADD_ANNOTATION_DATA): New macro.
25078 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25079 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25080 (ADD_CHARSET_DATA): New macro.
25081 (emacs_mule_char): New argument ID. Change callers.
25082 (decode_coding_emacs_mule, decode_coding_iso_2022)
25083 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25084 Produce charset annotation data in coding->charbuf.
25085 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25086 to charset annotation data in coding->charbuf.
25087 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25088 coding->common_flags if the coding system is iso-2022 based and
25089 uses designation.
25090 (produce_composition): Adjust for the new annotation data format.
25091 (produce_charset): New function.
25092 (produce_annotation): Handle charset annotation.
25093 (handle_composition_annotation, handle_charset_annotation):
25094 New functions.
25095 (consume_chars): Handle charset annotation. Utilize the above two
25096 functions.
25097 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25098 buffer, get the deleted text as a string and set
25099 coding->src_object to that string.
25100 (detect_coding, detect_coding_system): Use the new struct
25101 coding_detection_info.
25102
25103 * coding.h (struct coding_detection_info): New structure.
25104 (struct coding_system): Adjust prototype of the member `detector'.
25105 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25106
25107 2008-02-01 Kenichi Handa <handa@m17n.org>
25108
25109 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25110
25111 2008-02-01 Dave Love <fx@gnu.org>
25112
25113 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25114 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25115 to new local and nullify apropos_accumulate before returning.
25116 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25117
25118 2008-02-01 Kenichi Handa <handa@m17n.org>
25119
25120 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25121 correctly.
25122
25123 2008-02-01 Dave Love <fx@gnu.org>
25124
25125 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25126
25127 2008-02-01 Kenichi Handa <handa@m17n.org>
25128
25129 The following changes are to make character composition happen
25130 automatically on displaying.
25131
25132 * Makefile.in (lisp, shortlisp): Add composite.elc.
25133
25134 * composite.h (Qauto_composed, Vauto_composition_function)
25135 (Qauto_composition_function): Extern them.
25136
25137 * composite.c (Vcomposition_function_table)
25138 (Qcomposition_function_table): Delete variables.
25139 (Qauto_composed, Vauto_composition_function)
25140 (Qauto_composition_function): New variables.
25141 (run_composition_function): Don't call
25142 compose-chars-after-function.
25143 (update_compositions): Clear `auto-composed' text property.
25144 (compose_chars_in_text): Delete this function.
25145 (syms_of_composite): Staticpro Qauto_composed and
25146 Qauto_composition_function. Declare Vauto_composition_function as
25147 a Lisp variable.
25148
25149 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25150
25151 * xdisp.c (it_props): Add an entry for Qauto_composed.
25152 (handle_auto_composed_prop): New function.
25153
25154 * xselect.c (selection_data_to_lisp_data): Don't call
25155 compose_chars_in_text.
25156
25157 2008-02-01 Dave Love <fx@gnu.org>
25158
25159 * keyboard.c (read_char): Modify checking around use of
25160 Vkeyboard_translate_table.
25161
25162 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25163 and fix C types.
25164
25165 2008-02-01 Kenichi Handa <handa@m17n.org>
25166
25167 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25168 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25169 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25170 the case that the last byte is '\r' correctly.
25171 (decode_coding): Flush out the unprocessed data correctly.
25172 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25173
25174 2008-02-01 Dave Love <fx@gnu.org>
25175
25176 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25177 Add XK_ISO... case.
25178 (xaw_scroll_callback): Revert last change.
25179
25180 2008-02-01 Kenichi Handa <handa@m17n.org>
25181
25182 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25183
25184 2008-02-01 Kenichi Handa <handa@m17n.org>
25185
25186 * xfaces.c (Vface_resizing_fonts): New variable.
25187 (struct font_name): New member `resizing_ratio'.
25188 (font_resizing_ratio): New function.
25189 (split_font_name): Set font->resizing_ratio.
25190 (better_font_p): Pay attention to font->resizing_ratio.
25191 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25192 RESX, and RESY fields.
25193 (try_alternative_families): Try scalable fonts if
25194 Vscalable_fonts_allowed is not Qt.
25195 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25196
25197 2008-02-01 Dave Love <fx@gnu.org>
25198
25199 * xterm.c (xaw_scroll_callback): Cast correctly.
25200
25201 2008-02-01 Dave Love <fx@gnu.org>
25202
25203 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25204 (lispy_kana_keys): Comment out.
25205 (make_lispy_event) [XK_kana_A]: Comment out.
25206
25207 * xterm.c (xaw_scroll_callback): Cast call_data.
25208 (XTread_socket): Deal with ASCII keysyms.
25209 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25210
25211 2008-02-01 Dave Love <fx@gnu.org>
25212
25213 * xterm.c (Vx_keysym_table): New.
25214 (syms_of_xterm): Initialize it.
25215 (XTread_socket): Use it.
25216 From head: Eliminate incorrect optimization that tried to avoid
25217 decoding the output of X*LookupString.
25218 (x_get_font_repertory): Delete charset declaration.
25219
25220 2008-02-01 Kenichi Handa <handa@m17n.org>
25221
25222 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25223 return 0.
25224 (Fdefine_coding_system_internal):
25225 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25226
25227 2008-02-01 Dave Love <fx@gnu.org>
25228
25229 * coding.c (Fcheck_coding_system): Doc fix.
25230
25231 * editfns.c (Finsert_byte): Return a proper value.
25232
25233 2008-02-01 Kenichi Handa <handa@m17n.org>
25234
25235 * coding.c (decode_coding): Fix args to translate_chars.
25236 Pay attention to Vstandard_translation_table_for_decode.
25237 (encode_coding): Fix args to translate_chars. Pay attention to
25238 Vstandard_translation_table_for_encode.
25239
25240 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25241 SINGLE_BYTE_CHAR_P.
25242
25243 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25244 not by SINGLE_BYTE_CHAR_P.
25245
25246 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25247 SINGLE_BYTE_CHAR_P.
25248
25249 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25250 SINGLE_BYTE_CHAR_P.
25251
25252 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25253 by SINGLE_BYTE_CHAR_P.
25254
25255 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25256 SINGLE_BYTE_CHAR_P.
25257
25258 2008-02-01 Dave Love <fx@gnu.org>
25259
25260 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25261
25262 2008-02-01 Dave Love <fx@gnu.org>
25263
25264 * fns.c (Flanginfo): Fix typo.
25265
25266 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25267
25268 2008-02-01 Kenichi Handa <handa@m17n.org>
25269
25270 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25271 (detect_coding_emacs_mule, detect_coding_iso_2022)
25272 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25273 incomplete byte sequence. Don't update *mask when correctly detected.
25274 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25275 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25276 (detect_coding, detect_coding_system): Adjust for the changes above.
25277
25278 2008-02-01 Kenichi Handa <handa@m17n.org>
25279
25280 * character.c (char_string): Rename from
25281 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25282 (string_char): Rename from string_char.
25283
25284 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25285 if C is greater than MAX_3_BYTE_CHAR.
25286 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25287 Call string_char instead of string_char_with_unification.
25288
25289 2008-02-01 Dave Love <fx@gnu.org>
25290
25291 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25292
25293 2008-02-01 Kenichi Handa <handa@m17n.org>
25294
25295 * keymap.c (push_key_description): Pay attention to force_multibyte.
25296
25297 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25298
25299 2008-02-01 Dave Love <fx@gnu.org>
25300
25301 * charset.c (define_charset_internal): Rename `supprementary'.
25302
25303 * Makefile.in (lisp, shortlisp): Remove latin-N.
25304
25305 2008-02-01 Dave Love <fx@gnu.org>
25306
25307 * xfns.c (x_window, x_window): Use use_xim.
25308
25309 * xterm.c (use_xim): Initialize.
25310 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25311 (x_term_init): Maybe set use_xim.
25312
25313 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25314
25315 2008-02-01 Kenichi Handa <handa@m17n.org>
25316
25317 * search.c (search_buffer): Fix case-fold-search of multibyte
25318 characters.
25319 (boyer_moore): Rename the last argument to char_high_bits.
25320
25321 2008-02-01 Kenichi Handa <handa@m17n.org>
25322
25323 * xdisp.c (display_string): Fix for the case of zero width glyph.
25324
25325 * xfns.c (x_set_font): Change the error message of the case that
25326 x_new_fontset returns Qt.
25327
25328 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25329 (Finternal_set_lisp_face_attribute): Use signal_error for the
25330 error of invalid fontset.
25331
25332 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25333 fontset, return Qt.
25334
25335 2008-02-01 Dave Love <fx@gnu.org>
25336
25337 * unexelf.c (unexec): Make .got handling not SGI-specific.
25338
25339 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25340
25341 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25342
25343 * keyboard.c (read_key_sequence): Fix type error.
25344
25345 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25346 Fix type error.
25347
25348 * fontset.c (fontset_add): Return Lisp_Object.
25349
25350 2008-02-01 Dave Love <fx@gnu.org>
25351
25352 * charset.h (charset_ordered_list_tick): Declare extern.
25353
25354 2008-02-01 Kenichi Handa <handa@m17n.org>
25355
25356 The following changes (and some of 2008-02-01 changes of mine) are
25357 for handling syntax, category, and case conversion for unibyte
25358 characters by converting them to multibyte on the fly. With these
25359 changes, we don't have to setup syntax and case tables for unibyte
25360 characters in each language environment.
25361
25362 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25363 multibyte if necessary.
25364
25365 * bytecode.c (Fbyte_code): Likewise.
25366
25367 * character.h (LEADING_CODE_LATIN_1_MIN)
25368 (LEADING_CODE_LATIN_1_MAX): New macros.
25369 (unibyte_to_multibyte_table): Extern it.
25370 (unibyte_char_to_multibyte): New macro.
25371 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25372 (CHAR_LEADING_CODE): New macro.
25373 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25374
25375 * character.c (unibyte_to_multibyte_table): New variable.
25376 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25377 (multibyte_char_to_unibyte): If C is an eight-bit character,
25378 convert it to the corresponding byte value.
25379
25380 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25381 not 1, signals an error. Update the elements of
25382 unibyte_to_multibyte_table.
25383 (init_charset_once): Initialize unibyte_to_multibyte_table.
25384 (syms_of_charset): Define the charset `iso-8859-1'.
25385
25386 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25387 as is without converting it to unibyte. In a unibyte buffer,
25388 convert C to multibyte before checking the syntax.
25389
25390 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25391
25392 * minibuf.c (Fminibuffer_complete_word): Use the macro
25393 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25394
25395 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25396
25397 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
25398 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25399 If that is zero, convert an eight-bit char to multibyte.
25400 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25401 non-emacs case.
25402 (PATFETCH): Convert an eight-bit char to multibyte.
25403 (HANDLE_UNIBYTE_RANGE): New macro.
25404 (regex_compile): Setup the compiled pattern for multibyte chars
25405 even if the given regex string is unibyte. Use PATFETCH_RAW
25406 instead of PATFETCH in many places. To handle `charset'
25407 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25408 only for ASCII chars.
25409 (analyse_first) <exactn>: Simplify because the compiled pattern
25410 is multibyte.
25411 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25412 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25413 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25414 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25415 multibyte always 1.
25416 (re_search_2): In emacs, set the locale variable multibyte to 1,
25417 otherwise to 0. New local variable target_multibyte. Check it
25418 to decide the multibyteness of STR1 and STR2.
25419 If target_multibyte is zero, convert unibyte chars to multibyte
25420 before translating and checking fastmap.
25421 (TARGET_CHAR_AND_LENGTH): New macro.
25422 (re_match_2_internal): In emacs, set the locale variable multibyte
25423 to 1, otherwise to 0. New local variable target_multibyte.
25424 Check it to decide the multibyteness of STR1 and STR2.
25425 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
25426 <charset, charset_not>: If multibyte is nonzero, check fastmap
25427 only for ASCII chars. Call bcmp_translate with
25428 target_multibyte, not with multibyte.
25429 <begline>: Declare the local variable C as `unsigned'.
25430 (bcmp_translate): Change the last arg name to target_multibyte.
25431
25432 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25433 the regexp pattern and the matching target. Set cp->buf.multibyte
25434 to the multibyteness of the regexp pattern. Set
25435 cp->but.target_multibyte to the multibyteness of the matching target.
25436 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25437 FETCH_STRING_CHAR_ADVANCE.
25438 (Freplace_match): Convert unibyte chars to multibyte.
25439
25440 * syntax.c (char_quoted, back_comment, scan_words)
25441 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25442 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25443 unibyte chars to multibyte.
25444 (skip_chars): Delete the arg syntaxp, and move the code for
25445 handling syntaxes to skip_syntaxes. Change callers.
25446 Fix the case that the multibyteness of STRING and the current
25447 buffer doesn't match.
25448 (skip_syntaxes): New function.
25449 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25450 SINGLE_BYTE_CHAR_P.
25451
25452 2008-02-01 Kenichi Handa <handa@m17n.org>
25453
25454 * xfaces.c (QCfontset): New variable.
25455 (LFACE_FONTSET): New macro.
25456 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25457 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25458 (Finternal_set_lisp_face_attribute)
25459 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25460 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25461 check also LFACE_FONTSET_INDEX.
25462 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25463 attrs[LFACE_FONT_INDEX].
25464 (syms_of_xfaces): Intern and staticpro QCfontset.
25465
25466 * dispextern.h (enum lface_attribute_index): New member
25467 LFACE_FONTSET_INDEX.
25468
25469 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25470
25471 2008-02-01 Kenichi Handa <handa@m17n.org>
25472
25473 * coding.c (coding_set_destination): Fix coding->destination for
25474 the case converting a region.
25475 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25476 (encode_coding_object): Fix coding->dst_pos and
25477 coding->dst_pos_byte for the case converting a region.
25478
25479 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25480
25481 * character.h (BYTE8_STRING): New macro.
25482
25483 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25484
25485 2008-02-01 Kenichi Handa <handa@m17n.org>
25486
25487 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25488 characters by octal form.
25489
25490 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25491
25492 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25493 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25494 _fetch_multibyte_char_len.
25495 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25496
25497 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25498
25499 * casefiddle.c (casify_object): Simplify. Handle the case that
25500 the case conversion change the byte length.
25501 (casify_region): Likewise.
25502
25503 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25504
25505 * character.c (_fetch_multibyte_char_len): Delete this variable.
25506 (syms_of_character): Setup Vprintable_chars.
25507
25508 * editfns.c (Fchar_equal): Fix for the unibyte case.
25509 (Finsert_byte): New function.
25510 (syms_of_editfns): Defsubr it.
25511
25512 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25513 of direct code 0x3ffff.
25514
25515 * search.c (Freplace_match): Fix for the unibyte case.
25516
25517 2008-02-01 Kenichi Handa <handa@m17n.org>
25518
25519 * lread.c (safe_to_load_p): Fix the logic.
25520
25521 * syntax.c (scan_words): Don't treat characters belonging to
25522 different scripts as constituting a word.
25523
25524 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25525
25526 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25527
25528 * emacs.c (main): In the case of --unibyte, instead of aborting on
25529 finding non-empty buffer, make it unibyte.
25530
25531 2008-02-01 Kenichi Handa <handa@m17n.org>
25532
25533 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25534 to create a fontset.
25535
25536 2008-02-01 Dave Love <fx@gnu.org>
25537
25538 * character.c (Funibyte_char_to_multibyte): Doc fix.
25539
25540 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25541
25542 2008-02-01 Kenichi Handa <handa@m17n.org>
25543
25544 * fontset.c (fontset_add): Make the type `int'.
25545 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25546
25547 * character.c (unibyte_char_to_multibyte)
25548 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25549 charset_unibyte, not charset_primary.
25550
25551 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25552
25553 * charset.c (charset_unibyte): Rename from charset_primary.
25554 (Funibyte_charset): Rename from Fprimary_charset.
25555 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25556 (syms_of_charset): Adjust for the above changes.
25557
25558 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25559 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25560 it->multibyte_p is zero.
25561
25562 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25563 Delete extern.
25564
25565 2008-02-01 Kenichi Handa <handa@m17n.org>
25566
25567 * coding.c (Fdefine_coding_system_internal): Fix category setting
25568 for a coding system of type iso-2022.
25569
25570 2008-02-01 Kenichi Handa <handa@m17n.org>
25571
25572 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25573
25574 2008-02-01 Kenichi Handa <handa@m17n.org>
25575
25576 * syntax.c (Vnext_word_boundary_function_table): New variable.
25577 (next-word-boundary-function-table): Declare it as a Lisp variable
25578 in syms_of_syntax.
25579 (scan_words): Call functions in Vnext_word_boundary_function_table
25580 if any.
25581
25582 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25583
25584 * fontset.c (fs_load_font): If fontp->charset is not negative,
25585 return fontp without setting its members.
25586
25587 2008-02-01 Dave Love <fx@gnu.org>
25588
25589 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25590
25591 * m/sparc.h (HAVE_ALLOCA): Delete.
25592
25593 * s/irix6-5.h: Don't include strings.h.
25594 (bcopy, bzero, bcmp): Don't undef.
25595
25596 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25597
25598 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25599 (TIOCSIGSEND): Don't test IRIX6.
25600 (bcopy, bzero, bcmp): Define conditionally.
25601
25602 2008-02-01 Kenichi Handa <handa@m17n.org>
25603
25604 * buffer.c (Qas, Qmake, Qto): New variables.
25605 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25606 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25607
25608 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25609 we are inserting a process output into a multibyte buffer.
25610
25611 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25612 multibyte_char_to_unibyte.
25613
25614 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25615 by the primary charset, make it eight-bit char.
25616 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25617
25618 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25619 (charset_8_bit__control, charset_8_bit_graphic)
25620 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25621 (define_charset_internal): New function.
25622 (syms_of_charset): Call define_charset_internal for pre-defined
25623 charsets.
25624
25625 * charset.h (charset_8_bit): Extern it.
25626
25627 * coding.c (make_conversion_work_buffer): Adjust for the change
25628 of Fset_buffer_multibyte.
25629 (encode_coding_raw_text): Increment p0 in the loop.
25630
25631 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25632
25633 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25634 Adjust for the change of Fset_buffer_multibyte.
25635
25636 * fns.c (Fstring_to_multibyte): New function.
25637 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25638
25639 2008-02-01 Dave Love <fx@gnu.org>
25640
25641 * xfns.c (x_put_x_image): Declare args.
25642
25643 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25644 (try_font_list): Declare an arg.
25645
25646 * xdisp.c (message2_nolog, set_message): Declare an arg.
25647
25648 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25649
25650 * syntax.c (scan_sexps_forward): Declare an arg.
25651
25652 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25653 Declare an arg.
25654
25655 * lisp.h (Fnew_fontset): Declare.
25656
25657 * keymap.c (push_key_description): Call CHARACTERP correctly.
25658
25659 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25660 (face_for_char): Delete unused vars.
25661 (Fset_fontset_font): Doc fix. Delete unused vars.
25662
25663 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25664
25665 * composite.c (update_compositions): Declare arg.
25666
25667 * cm.c (calccost, cmgoto): Declare args.
25668
25669 * charset.c: Remove `emacs' conditional. Doc fixes.
25670 (map_char_table_for_charset): Declare.
25671
25672 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25673
25674 * ccl.c: Remove `emacs' conditional.
25675
25676 2008-02-01 Kenichi Handa <handa@m17n.org>
25677
25678 The following changes are to allow specifying multiple font
25679 patterns for a character range (specified by script or charset).
25680
25681 * Makefile.in (abbrev.o): Depend on syntax.h.
25682 (xfaces.o): Depend on charset.h.
25683
25684 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25685 SINGLE_BYTE_CHAR_P.
25686
25687 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25688
25689 * character.h (Vchar_script_table): Extern it.
25690
25691 * character.c (Vscript_alist): Delete.
25692 (Vchar_script_table, Qchar_script_table): New variable.
25693 (syms_of_character): Declare Vchar_script_table as a lisp variable
25694 and initialize it.
25695
25696 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25697 have property char-table-extra-slots, make no extra slot.
25698
25699 * dispextern.h (struct face): Delete member `charset'.
25700 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25701 SINGLE_BYTE_CHAR_P.
25702 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25703 Add prototypes.
25704 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25705 (generate_ascii_font_name): Rename from generate_ascii_font.
25706
25707 * fontset.h (get_font_repertory_func): New prototype.
25708 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25709 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25710
25711 * fontset.c (Qprepend, Qappend): New variables.
25712 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25713 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25714 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25715 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25716 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25717 (load_font_get_repertory): New functions.
25718 (fontset_set): Delete.
25719 (fontset_face): New arg FACE. Return face ID, not face.
25720 Complete re-write to handle new fontset structure. Change caller.
25721 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25722 (face_for_char): Don't call lookup_face.
25723 (make_fontset_for_ascii_face): New arg FACE.
25724 (fs_load_font): New arg CHARSET_ID. Don't check
25725 Vfont_encoding_alist here.
25726 (find_font_encoding): New function.
25727 (list_fontsets): Use STRINGP, not ! NILP.
25728 (accumulate_script_ranges): New function.
25729 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25730 Completely re-written to handle new fontset structure.
25731 (Ffontset_font): Return a copy of element.
25732 (syms_of_fontset): Define symbols Qprepend and Qappend.
25733 Fix docstring of font-encoding-alist.
25734
25735 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25736 (Fset_fotset_font): Fix arguments to 5.
25737
25738 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25739
25740 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25741 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25742 (highlight_trailing_whitespace): Adjust for the change of
25743 lookup_named_face.
25744
25745 * xfaces.c: Include charset.h.
25746 (load_face_font): Delete argument C. Change caller.
25747 (generate_ascii_font_name): Rename from generate_ascii_font.
25748 (font_name_registry): New function.
25749 (cache_face): Store ascii faces before non-ascii faces in buckets.
25750 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25751 Lookup only ascii faces.
25752 (lookup_non_ascii_face): New function.
25753 (lookup_named_face): Delete argument C. Change caller.
25754 (lookup_derived_face): Delete argument C. Change caller.
25755 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25756 a string, just call font_list with it.
25757 (choose_face_font): Delete arguments FACE and C. New arg
25758 FONT_SPEC. Change caller.
25759 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25760 Change caller.
25761 (realize_non_ascii_face): New function.
25762 (realize_x_face): Call load_face_font here.
25763 (realize_tty_face): Delete argument C. Change caller.
25764 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25765 get a face ID.
25766 (dump_realized_face): Don't print charset of FACE.
25767
25768 * xfns.c (x_set_font): Always call x_new_fontset and
25769 store_frame_parameter.
25770 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25771 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25772
25773 * xterm.h (x_get_font_repertory): Extern it.
25774
25775 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25776 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25777 it->multibyte_p is zero.
25778 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25779 (x_new_fontset): If FONTSETNAME doesn't match any existing
25780 fontsets, create a new one.
25781 (x_get_font_repertory): New function.
25782
25783 2008-02-01 Kenichi Handa <handa@m17n.org>
25784
25785 * coding.c (Ffind_coding_systems_region_internal): Detect an
25786 ASCII only string correctly.
25787
25788 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25789 version is 0.
25790
25791 2008-02-01 Kenichi Handa <handa@m17n.org>
25792
25793 * lread.c: Include "coding.h".
25794 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25795 (load_each_byte, unread_char): New variables.
25796 (readchar_backlog): Delete.
25797 (readchar): Return a character unless load_each_byte is nonzero.
25798 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25799 cons. If unread_char is not -1, simply return it.
25800 (unreadchar): Handle the case that readcharfun is
25801 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25802 (read_multibyte): Delete.
25803 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25804 (read_emacs_mule_char): New functions.
25805 (Fload): Even if the file doesn't have the extension ".elc", if
25806 safe_to_load_p returns a positive version number, assume that the
25807 file contains bytecompiled code. If the version is less than 22,
25808 load the file while decoding multibyte sequences by emacs-mule.
25809 (readevalloop): Don't use readchar_backlog.
25810 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25811 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25812 (read_escape): Delete the arg BYTEREP.
25813 (read1): Set load_each_byte to 1 temporarily while handling
25814 #@NUMBER. Don't call read_multibyte.
25815 (read_vector): Call Fread with a cons. If readcharfun is
25816 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25817 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25818 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25819 and Qload_force_doc_strings.
25820
25821 2008-02-01 Kenichi Handa <handa@m17n.org>
25822
25823 * xdisp.c (face_before_or_after_it_pos):
25824 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
25825
25826 2008-02-01 Kenichi Handa <handa@m17n.org>
25827
25828 * character.h (TRAILING_CODE_P): New macro.
25829 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25830 (string_char_with_unification): Fix prototype.
25831 (Vscript_alist): Extern it.
25832
25833 * character.c (Vscript_alist): New variable.
25834 (string_char_with_unification, str_as_unibyte)
25835 (string_escape_byte8): Add `const' to local variables.
25836 (syms_of_character): Declare script-alist as a Lisp variable.
25837
25838 * charset.h (Vcharset_ordered_list): Extern it.
25839 (charset_ordered_list_tick): Extern it.
25840 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25841 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25842 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25843 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25844 (Funify_charset): Adjust for the change of Funify_charset.
25845
25846 * charset.c (charset_ordered_list_tick): New variable.
25847 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25848 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
25849 deunify instead of unify a charset.
25850 (string_xstring_p): Add `const' to local variables.
25851 (find_charsets_in_text): Add `const' to arguments and local variables.
25852 (encode_char): Adjust for the change of Funify_charset.
25853 Fix detecting of invalid code.
25854 (Fset_charset_priority): Increment charset_ordered_list_tick.
25855 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25856 and TO_CODE.
25857
25858 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25859 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25860 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25861 (decode_coding_ccl, consume_chars)
25862 (Ffind_coding_systems_region_internal)
25863 (Fcheck_coding_systems_region): Add `const' to local variables.
25864
25865 * print.c (print_object): Use octal form for printing the
25866 contents of a bool vector.
25867
25868 2008-02-01 Dave Love <fx@gnu.org>
25869
25870 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25871 <version == 20>: Refuse to load.
25872
25873 2008-02-01 Dave Love <fx@gnu.org>
25874
25875 * fns.c: Move coding.h.
25876 (Qcodeset, Qdays, Qmonths): New.
25877 (concat): Use CHARACTERP instead of INTEGERP.
25878 (Flocale_codeset): Delete.
25879 (Flanginfo): New function.
25880 (syms_of_fns): Change accordingly.
25881
25882 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25883
25884 2008-02-01 Dave Love <fx@gnu.org>
25885
25886 * casetab.c (init_casetab_once, init_casetab_once):
25887 Fix CHAR_TABLE_SET call.
25888
25889 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25890
25891 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25892
25893 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25894 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25895 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25896
25897 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25898
25899 * coding.c (ENCODE_DESIGNATION, decode_eol)
25900 (make_conversion_work_buffer, code_conversion_restore)
25901 (Fdefine_coding_system_internal): Convert Lisp types.
25902 (code_conversion_restore): Use EQ, not ==.
25903 (Fencode_coding_string): Fix code_convert_string call.
25904
25905 * coding.h (code_convert_region): Fix prototype.
25906
25907 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25908
25909 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25910 (Ffontset_info): Convert Lisp types.
25911
25912 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25913
25914 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25915
25916 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25917
25918 * chartab.c: Include "...h", not <...h> in some cases.
25919
25920 * callproc.c (Fcall_process): Remove unused variables.
25921
25922 2008-02-01 Dave Love <fx@gnu.org>
25923
25924 * coding.c (Fset_coding_system_priority): Allow null arg list.
25925
25926 2008-02-01 Dave Love <fx@gnu.org>
25927
25928 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25929 (Fself_insert_and_exit): Use CHARACTERP.
25930
25931 * callproc.c (Fcall_process): Remove unused vars.
25932
25933 * xterm.c (XTread_socket): Add extra dead keysyms.
25934
25935 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25936
25937 * dispextern.h: Remove prototypes for redraw_frame,
25938 redraw_garbaged_frames.
25939
25940 * cmds.c (Fself_insert_command): Use CHARACTERP.
25941
25942 * chartab.c (make_sub_char_table): Remove unused var.
25943 (Fset_char_table_default, Fmap_char_table): Doc fix.
25944
25945 * keymap.c (access_keymap): Remove generic char code.
25946 (push_key_description): Use CHARACTERP.
25947
25948 2008-02-01 Dave Love <fx@gnu.org>
25949
25950 * charset.c: Doc fixes.
25951 (Funify_charset): Extra checking.
25952
25953 2008-02-01 Dave Love <fx@gnu.org>
25954
25955 * lread.c: Remove some unused variables.
25956 (safe_to_load_p): If safe, return the magic number version byte.
25957 (Fload): Maybe use load-with-code-conversion.
25958
25959 2008-02-01 Kenichi Handa <handa@m17n.org>
25960
25961 * category.c (Fmodify_category_entry): Don't modify the contents
25962 of category_set for characters out of the range.
25963 Avoid unnecessary modification.
25964
25965 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25966 Vchar_unify_table. The default value of the table is now nil.
25967
25968 * character.c (syms_of_character): Setup Vchar_width_table for
25969 eight-bit-control and raw-byte chars.
25970
25971 * charset.h (enum define_charset_arg_index):
25972 Delete charset_arg_parents and add charset_arg_subset and
25973 charset_arg_superset.
25974 (enum charset_attr_index): Delete charset_parents and add
25975 charset_subset and charset_superset.
25976 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25977 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25978 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25979 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
25980 (CHARSET_SUPERSET): New macros.
25981 (charset_work): Extern it.
25982 (ENCODE_CHAR): Use charset_work.
25983 (CHAR_CHARSET_P): Adjust for the change of encoder format.
25984 (map_charset_chars): Extern it.
25985
25986 * charset.c (load_charset_map): Set the default value of encoder
25987 and deunifier char-tables to nil.
25988 (map_charset_chars): Change argument. Change callers.
25989 Use map_char_table_for_charset instead of map_char_table.
25990 (Fmap_charset_chars): New optional args from_code and to_code.
25991 (Fdefine_charset_internal): Adjust for the change of
25992 `define-charset' (:parents -> :subset or :superset).
25993 (charset_work): New variable.
25994 (encode_char, syms_of_charset): Adjust for the change of
25995 Fdefine_charset_internal.
25996 (Ffind_charset_string): Setup the vector `charsets' correctly.
25997
25998 * chartab.c (sub_char_table_ref_and_range): New arg default.
25999 Fix the previous change.
26000 (char_table_ref_and_range): Adjust for the above change.
26001 (map_sub_char_table_for_charset): New function.
26002 (map_char_table_for_charset): New function.
26003
26004 * keymap.c (describe_vector): Handle a char-table directly here.
26005 (describe_char_table): Delete.
26006
26007 * lisp.h (map_charset_chars): Delete.
26008
26009 2008-02-01 Dave Love <fx@gnu.org>
26010
26011 * fns.c (count_combining): Comment out (unused).
26012 (Flocale_codeset): New.
26013 (syms_of_fns): Defsubr it.
26014
26015 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26016 (size_t): Remove.
26017
26018 2008-02-01 Dave Love <fx@gnu.org>
26019
26020 * Makefile.in (chartab.o): Depend on charset.h.
26021
26022 2008-02-01 Kenichi Handa <handa@m17n.org>
26023
26024 * character.c (syms_of_character): Set the default value of
26025 Vprintable_chars to Qnil.
26026
26027 2008-02-01 Dave Love <fx@gnu.org>
26028
26029 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26030
26031 2008-02-01 Kenichi Handa <handa@m17n.org>
26032
26033 * charset.c (load_charset_map): Handle the case that from < to
26034 correctly.
26035
26036 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26037 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26038 Pay attention to raw-8-bit chars.
26039
26040 2008-02-01 Kenichi Handa <handa@m17n.org>
26041
26042 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26043 It is not bytecompiled now.
26044
26045 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26046 (charset_jisx0208): New variables.
26047 (Fdefine_charset_internal): Setup them if appropriate.
26048 (init_charset_once): Initialize them to -1.
26049
26050 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26051 (charset_jisx0208): Extern them.
26052
26053 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26054 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26055 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26056 (setup_iso_safe_charsets): Fix arguments to Fassq.
26057 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26058 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26059 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26060 (encode_coding_iso_2022): Change the 1st arg to
26061 ENCODE_ISO_CHARACTER to a variable.
26062
26063 2008-02-01 Kenichi Handa <handa@m17n.org>
26064
26065 * charset.h (enum define_charset_arg_index): New enums
26066 charset_arg_min_code and charset_arg_max_code.
26067 (struct charset): New member char_index_offset.
26068
26069 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26070 Take charset->char_index_offset into account.
26071 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26072 args[charset_arg_max_code]. Setup charset.char_index_offset.
26073 (syms_of_charset): Fix args to Fdefine_charset_internal.
26074
26075 2008-02-01 Dave Love <fx@gnu.org>
26076
26077 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26078
26079 2008-02-01 Dave Love <fx@gnu.org>
26080
26081 * coding.c: Doc fixes.
26082 (Fcoding_system_aliases): Fix return value.
26083 (Qmac): Remove (duplicated) definition.
26084
26085 2008-02-01 Dave Love <fx@gnu.org>
26086
26087 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26088 New functions.
26089
26090 * character.c (Fstring): Doc fix.
26091
26092 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26093
26094 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26095 (font-encoding-alist): Doc fix.
26096
26097 2008-02-01 Dave Love <fx@gnu.org>
26098
26099 * term.c (costs_set): Declare static, non-initialized for pcc.
26100 (encode_terminal_code): Remove unused var.
26101
26102 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26103 for K&R.
26104
26105 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26106
26107 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26108 (suffixes): Move out of make_subsidiaries for K&R.
26109
26110 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26111
26112 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26113
26114 2008-02-01 Dave Love <fx@gnu.org>
26115
26116 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26117
26118 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26119
26120 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26121
26122 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26123
26124 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26125
26126 2008-02-01 Kenichi Handa <handa@m17n.org>
26127
26128 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26129 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26130
26131 2008-02-01 Kenichi Handa <handa@m17n.org>
26132
26133 * coding.c (decode_coding_charset): Adjust for the change of
26134 Fdefine_coding_system_internal.
26135 (Fdefine_coding_system_internal): For a coding system of
26136 `charset' type, store a list of charset IDs in
26137 `charset_attr_charset_valids' element of coding attributes.
26138
26139 2008-02-01 Kenichi Handa <handa@m17n.org>
26140
26141 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26142 (emacs_mule_char): New arg src. Delete arg `composition'.
26143 Change caller. Handle 2-byte and 3-byte charsets correctly.
26144 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26145 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26146 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26147 (DECODE_EMACS_MULE_21_COMPOSITION):
26148 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26149 sequence.
26150 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26151 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26152 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26153 and alt&rule composition.
26154 (decode_coding_iso_2022): Handle composition correctly.
26155 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26156
26157 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26158 re-defining a charset. If the charset has :emacs-mule-id, setup
26159 emacs_mule_bytes.
26160 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26161
26162 2008-02-01 Kenichi Handa <handa@m17n.org>
26163
26164 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26165 (encode_coding_big5, encode_coding_charset): If coding requires safe
26166 encoding, produce a character specified by
26167 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26168
26169 2008-02-01 Dave Love <fx@gnu.org>
26170
26171 * xterm.c (XSetIMValues): Declare.
26172
26173 * process.c: Conditionally include sys/wait.h, pty.h.
26174
26175 * print.c (print_object): Fix print format for 64-bit systems.
26176
26177 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26178
26179 * buffer.c (emacs_strerror): Declare.
26180
26181 * fontset.c (Fclear_face_cache): Declare.
26182 (accumulate_font_info): Comment-out (unused).
26183 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26184 variables.
26185
26186 * character.h (string_escape_byte8): Declare.
26187
26188 * charset.c (load_charset_map, load_charset_map_from_file):
26189 Remove unused vars.
26190 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26191 (Fmap_charset_chars): Doc fix.
26192
26193 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26194 (Fset_coding_system_priority, Fset_coding_system_priority)
26195 (Fdefine_coding_system_internal): Doc fix.
26196
26197 2008-02-01 Dave Love <fx@gnu.org>
26198
26199 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26200
26201 2008-02-01 Kenichi Handa <handa@m17n.org>
26202
26203 * character.c (string_escape_byte8): Make multibyte string with
26204 correct size.
26205
26206 * charset.c (Fmake_char): Delete unnecessary code.
26207
26208 2008-02-01 Kenichi Handa <handa@m17n.org>
26209
26210 * xfns.c (x_encode_text): Allocate coding.destination here, and
26211 call encode_coding_object with dst_object Qnil.
26212
26213 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26214 multibyte form correctly.
26215
26216 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26217 against Vfont_encoding_alist.
26218
26219 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26220 handling of charset list.
26221 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26222 (decode_coding_object): Move point to coding->dst_pos before
26223 calling post-read-conversion function.
26224 (encode_coding_object): Give correct arguments to
26225 pre-write-conversion. Ignore the return value of
26226 pre-write-conversion function. Pay attention to the case that
26227 pre-write-conversion changes the current buffer. If dst_object is
26228 Qt, even if coding->src_bytes is zero, allocate at least one byte
26229 to coding->destination.
26230
26231 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26232
26233 * charset.c (Fmake_char): Make it more backward compatible.
26234 (Fmap_charset_chars): Fix docstring.
26235
26236 2008-02-01 Dave Love <fx@gnu.org>
26237
26238 * coding.c: Doc fixes.
26239 (Fdefine_coding_system_alias): Use names, not symbols, in
26240 coding-system-alist.
26241
26242 2008-02-01 Kenichi Handa <handa@m17n.org>
26243
26244 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26245 of calling free_realized_face.
26246
26247 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26248
26249 * charset.c (read_hex): Don't treat SPC as a comment starter.
26250 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26251 (Fdecode_char): Fix typo.
26252
26253 2008-02-01 Kenichi Handa <handa@m17n.org>
26254
26255 * charset.h (struct charset): New member `code_space_mask'.
26256
26257 * coding.c (coding_set_source): Delete the local variable beg_byte.
26258 (encode_coding_charset, Fdefine_coding_system_internal):
26259 Delete the local variable charset.
26260 (Fdefine_coding_system_internal):
26261 Setup attrs[coding_attr_charset_valids] correctly.
26262
26263 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26264 member to check if CODE is valid or not.
26265 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26266 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26267 is within the range of charset->min_code and carset->max_code.
26268
26269 2008-02-01 Dave Love <fx@gnu.org>
26270
26271 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26272
26273 * dispextern.h (generate_ascii_font): Fix return type.
26274
26275 * xfaces.c (generate_ascii_font): Fix arg declaration.
26276
26277 * coding.c (coding_inherit_eol_type)
26278 (Fset_terminal_coding_system_internal)
26279 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26280
26281 2008-02-01 Kenichi Handa <handa@m17n.org>
26282
26283 * coding.c (decode_coding_charset, encode_coding_charset):
26284 Handle multiple charsets correctly.
26285
26286 2008-02-01 Kenichi Handa <handa@m17n.org>
26287
26288 * search.c (boyer_moore): Fix handling of multibyte character
26289 translation.
26290
26291 * xdisp.c (display_mode_element): When the variable `elt' is
26292 changed, update `this' and `lisp_string'.
26293
26294 2008-02-01 Kenichi Handa <handa@m17n.org>
26295
26296 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26297
26298 * callproc.c (Fcall_process): Be sure to give the current buffer
26299 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26300
26301 * charset.c (struct charset_map_entries): New struct.
26302 (load_charset_map): Rename from parse_charset_map. New args
26303 entries and n_entries. Change caller.
26304 (load_charset_map_from_file): Rename from load_charset_map.
26305 Change caller. New arg control_flag. Call load_charset_map at
26306 the tail.
26307 (load_charset_map_from_vector): New function.
26308 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26309 (encode_char): If the charset is compact, change a character index
26310 to a code point.
26311
26312 * coding.c (coding_alloc_by_making_gap): Check the case that the
26313 source and destination are the same correctly.
26314 (decode_coding_raw_text): Set coding->consumed_char and
26315 coding->consumed to 0.
26316 (produce_chars): If coding->chars_at_source is nonzero, update
26317 coding->consumed_char and coding->consumed before calling
26318 alloc_destination.
26319 (Fdefine_coding_system_alias): Register ALIAS in
26320 Vcoding_system_alist.
26321 (syms_of_coding): Define `no-conversion' coding system at the tail.
26322
26323 * fileio.c (Finsert_file_contents): Set coding_system instead of
26324 val. If the current buffer is multibyte, always call
26325 decode_coding_gap.
26326
26327 * xfaces.c (try_font_list): Give higher priority to fontset's
26328 family than face's family.
26329
26330 2008-02-01 Kenichi Handa <handa@m17n.org>
26331
26332 * callproc.c (Fcall_process): Be sure to give the current buffer
26333 to decode_coding_c_string.
26334
26335 * xfaces.c (try_font_list): Give a family specified in a fontset
26336 higher priority than a family specified in a face.
26337
26338 2008-02-01 Kenichi Handa <handa@m17n.org>
26339
26340 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26341 Fix arguments to insert_from_buffer.
26342
26343 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26344
26345 2008-02-01 Kenichi Handa <handa@m17n.org>
26346
26347 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26348 (decode_coding_gap): Set coding->dst_multibyte correctly.
26349
26350 2008-02-01 Kenichi Handa <handa@m17n.org>
26351
26352 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26353 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26354 (encode_coding_utf_16): Substitute coding->default_char for
26355 non-Unicode characters.
26356 (decode_coding): Don't call record_insert here.
26357 (setup_coding_system): Initialize `surrogate' of
26358 coding->spec.utf_16 to 0.
26359 (EMIT_ONE_BYTE): Fix for multibyte case.
26360
26361 * insdel.c (insert_from_gap): Call record_insert.
26362
26363 2008-02-01 Kenichi Handa <handa@m17n.org>
26364
26365 * casefiddle.c (casify_region): Fix multibyte case.
26366
26367 * character.c (c_string_width): Add return type `int'.
26368 (char_string_with_unification): Delete arg ADVANCED.
26369
26370 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26371 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26372 (CHAR_STRING_ADVANCE): Make it do-while statement.
26373
26374 * chartab.c (sub_char_table_set_range): Optimize for the case
26375 DEPTH == 3. Add workaround code for a GCC optimization bug.
26376
26377 * charset.c (parse_charset_map): Remove an unused variable.
26378
26379 * coding.c: Delete unused variables.
26380
26381 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26382 earlier. If inserted is zero and the coding system doesn't
26383 require flushing, don't call decode_coding_gap.
26384
26385 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26386
26387 2008-02-01 Kenichi Handa <handa@m17n.org>
26388
26389 The following changes are for using Unicode as an internal
26390 character model, and use UTF-8 format for buffer/string
26391 representation.
26392
26393 * .gdbinit (xchartable): Adjust for the change of char table structure.
26394 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26395
26396 * Makefile.in (obj): Add character.o and chartab.o.
26397 (lisp, shortlisp): Remove utf-8.elc.
26398 (*.o): For many files, change dependency on charset.h to
26399 character.h, and add dependency on character.h.
26400 (character.o, chartab.o): New targets.
26401
26402 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26403 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26404 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26405 of "charset.h".
26406
26407 * dired.c, filelock.c: Include "character.h".
26408
26409 * alloc.c: Include "character.h" instead of "charset.h".
26410 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26411 (syms_of_alloc): Remove defsubr for Smake_char_table.
26412
26413 * buffer.c: Include "character.h" instead of "charset.h", don't
26414 include "coding.h".
26415 (Fset_buffer_multibyte): Adjust for UTF-8.
26416
26417 * buffer.h: EXFUN Fbuffer_live_p.
26418
26419 * callproc.c: Include "character.h" instead of "charset.h".
26420 (Fcall_process): Big change for the new code-conversion APIs.
26421
26422 * casetab.c: Include "character.h" instead of "charset.h".
26423 (set_canon, set_identity, shuffle): Adjust for the new
26424 map_char_table spec.
26425 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26426 accessing the char table structure.
26427
26428 * chartab.c: New file that implements char table.
26429
26430 * category.c: Include "character.h".
26431 (copy_category_entry): New function.
26432 (copy_category_table): Call map_char_table and copy_category_entry.
26433 (Fmake_category_table): Initialize all top-level slots.
26434 (char_category_set): New function.
26435 (modify_lower_category_set): Delete.
26436 (Fmodify_category_entry): Call char_table_ref_and_range.
26437
26438 * category.h (CATEGORY_SET): Just call char_category_set.
26439
26440 * ccl.c: Include "character.h".
26441 (Qccl, Qcclp): New variables.
26442 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26443 it's less than 256.
26444 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26445 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26446 and DST type.
26447 (ccl_driver): Change types of argument, adjust code accordingly.
26448 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26449 ccl_driver.
26450 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26451
26452 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26453 New members src_multibyte, dst_multibyte, consumed, and produced.
26454 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26455 (CODING_SPEC_CCL_PROGRAM): New macro.
26456 (ccl_driver): Update prototype.
26457 (Qccl, Qcclp, Fccl_program_p): Extern them.
26458 (CHECK_CCL_PROGRAM): New macro.
26459
26460 * character.c, character.h, chartab.c: New files.
26461
26462 * charset.c: Mostly re-written. Move character and multibyte sequence
26463 handling codes to character.c.
26464
26465 * charset.h: Mostly re-written. Move character and multibyte sequence
26466 handling codes to character.h.
26467
26468 * coding.c, coding.h: Mostly re-written.
26469
26470 * composite.c: Include "character.h" instead of "charset.h".
26471 (CHAR_WIDTH): Move to character.h.
26472 (HASH_KEY, HASH_VALUE): Delete.
26473
26474 * composite.h (enum composition_method): Change order of enumeration
26475 symbols.
26476
26477 * data.c: Include "character.h" instead of "charset.h".
26478 (Faref): Call CHAR_TABLE_REF for a char table.
26479 (Faset): Call CHAR_TABLE_SET for a char table.
26480
26481 * dispextern.h (free_realized_face, check_face_attribytes)
26482 (generate_ascii_font): Extern them.
26483 (free_realized_multibyte_face): Delete extern.
26484
26485 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26486 table structure.
26487
26488 * editfns.c: Include "character.h" instead of "charset.h".
26489 (Fchar_to_string): Always call CHAR_STRING.
26490
26491 * emacs.c (main): Call init_charset_once, init_charset,
26492 syms_of_chartab, and syms_of_character.
26493
26494 * fileio.c: Include "character.h" instead of "charset.h".
26495 (Finsert_file_contents): Big change for the new code-conversion API.
26496 (choose_write_coding_system, Fwrite_region): Likewise.
26497 (build_annotations_2): Delete.
26498 (e_write): Big change for the new code-conversion API.
26499
26500 * fns.c: Include "character.h" instead of "charset.h".
26501 (copy_sub_char_table): Move to chartab.c.
26502 (Fcopy_sequence): Call copy_char_table for a char table.
26503 (concat): Delete codes calling count_multibyte.
26504 (string_char_to_byte, string_byte_to_char): Adjust for the new
26505 multibyte form.
26506 (internal_equal): Adjust for the change of char table structure.
26507 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26508 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26509 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26510 (char_table_translate, optimize_sub_char_table)
26511 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26512 chartab.c.
26513 (char_table_ref_and_index): Delete.
26514 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26515 (Fmd5): Call preferred_coding_system instead of accessing
26516 Vcoding_category_list. Adjust for the new code-conversion API.
26517 (syms_of_fns): Move defsubr for char table related functions to
26518 chartab.c.
26519
26520 * fontset.c: Mostly re-written.
26521
26522 * fontset.h (struct font_info): Change type of the member encoding_type.
26523 (enum FONT_SPEC_INDEX): New enum.
26524 (fontset_font_pattern, fs_load_font): Update prototype.
26525 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26526
26527 * indent.c: Include "character.h" instead of "charset.h".
26528 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26529
26530 * insdel.c: Include "character.h" instead of "charset.h".
26531 (copy_text): Don't refer to Vnonascii_translation_table.
26532 (insert_from_gap): New function.
26533
26534 * keyboard.c: Include "character.h" instead of "charset.h".
26535 (command_loop_1): Never call direct_output_forward_char before
26536 a non-ASCII character.
26537 (read_char): If Vkeyboard_translate_table is a char table, always
26538 translate a character.
26539
26540 * keymap.c: Include "character.h".
26541 (store_in_keymap): Handle the case that IDX is a cons.
26542 (Fdefine_key): Handle the case that KEY is a cons and the car part
26543 is also a cons (range).
26544 (push_key_description): Adjust for the new character code.
26545 (describe_vector): Call describe_char_table for a char table.
26546 (describe_char_table): New function.
26547
26548 * keymap.h (describe_char_table): Extern it.
26549
26550 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26551 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26552 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26553 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26554 Delete.
26555 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26556 structure.
26557 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26558 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26559 (CHARTAB_SIZE_BITS_3): New macros.
26560 (chartab_size): Extern it.
26561 (struct Lisp_Char_Table): Re-design.
26562 (struct Lisp_Sub_Char_Table): New structure.
26563 (HASH_KEY, HASH_VALUE): Move from fns.c.
26564 (CHARACTERBITS): Define as 22.
26565 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26566 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26567 (GC_SUB_CHAR_TABLE_P): New macro.
26568 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
26569 (code_convert_string_norecord): Delete extern.
26570 (init_character_once, syms_of_character, init_charset)
26571 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26572
26573 * lread.c: Include "character.h".
26574 (read_multibyte): New arg NBYTES.
26575 (read_escape): Change the meaning of returned *BYTEREP.
26576 (to_multibyte): Delete.
26577 (read1): Adjust the handling of char table and string.
26578
26579 * print.c: Include "character.h" instead of "charset.h".
26580 (print_string): Convert 8-bit raw bytes to octal form by
26581 string_escape_byte8.
26582 (print_object): Adjust for the new multibyte form. Print 8-bit
26583 raw bytes always in octal form. Handle sub char table correctly.
26584
26585 * process.c: Include "character.h" instead of "charset.h".
26586 (read_process_output, send_process): Adjust for the new
26587 code-conversion API.
26588
26589 * puresize.h (BASE_PURESIZE): Increase.
26590
26591 * regex.c: Include "character.h" instead of "charset.h".
26592 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26593 (regex_compile): Accept a range whose starting and ending
26594 character have different leading bytes.
26595 (analyse_first): Adjust for the above change.
26596
26597 * search.c: Include "character.h" instead of "charset.h".
26598 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26599 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26600
26601 * syntax.c: Include "character.h" instead of "charset.h".
26602 (syntax_parent_lookup): Delete.
26603 (Fmodify_syntax_entry): Accept a cons as CHAR.
26604 (skip_chars): Adjust for the new multibyte form.
26605 (init_syntax_once): Call char_table_set_range instead of directly
26606 accessing the structure of a char table.
26607
26608 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26609 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26610 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26611 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26612
26613 * term.c: Include "buffer.h" and "character.h".
26614 (encode_terminal_code, write_glyphs): Adjust for the new
26615 code-conversion API.
26616 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26617
26618 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26619
26620 * xdisp.c: Include "character.h".
26621 (get_next_display_element): Adjust for the new multibyte form.
26622 (disp_char_vector): Adjust for the new char table structure.
26623 (decode_mode_spec_coding): Adjust for the new structure of
26624 coding system.
26625 (decode_mode_spec): Adjust for the new code-conversion API.
26626
26627 * xfaces.c: Include "character.h" instead of "charset.h".
26628 (load_face_font): Adjust for the change of choose_face_font and
26629 FS_LOAD_FONT.
26630 (generate_ascii_font): New function.
26631 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26632 (set_font_frame_param): Adjust for the change of choose_face_font.
26633 (free_realized_face): Make it public.
26634 (free_realized_faces_for_fontset): Rename from
26635 free_realized_multibyte_face. Free also faces realized for ASCII.
26636 (choose_face_font): Change arguments. Adjust for the change of
26637 fontset_font_pattern and FS_LOAD_FONT.
26638
26639 * xfns.c: Include "character.h".
26640 (x_encode_text): Adjust for the new code-conversion API.
26641
26642 * xselect.c: Don't include "charset.h".
26643 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26644
26645 * xterm.c: Include "character.h".
26646 (x_encode_char): New argument CHARSET. Change caller.
26647 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26648 Call ENCODE_CHAR instead of SPLIT_CHAR.
26649 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26650 CHAR_WIDTH instead of CHARSET_WIDTH.
26651 (XTread_socket): Adjust for the new code-conversion API.
26652 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26653 (x_load_font): Adjust for the change of struct font.
26654
26655 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26656
26657 * xfaces.c (face_at_buffer_position): Remove unused vars.
26658
26659 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26660
26661 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26662 Fix overflow checking.
26663
26664 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26665
26666 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26667 Cancel previous change.
26668
26669 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26670
26671 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26672 ccl->eight_bit_control. Fix check for buffer overflow.
26673 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26674 (ccl_driver): Initialize extra_bytes to 0.
26675
26676 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26677
26678 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26679 return it ORed with ctrl_modifier.
26680
26681 2008-01-29 Miles Bader <miles@gnu.org>
26682
26683 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26684
26685 2008-01-28 Jason Rumney <jasonr@gnu.org>
26686
26687 * w32.c (stat): Don't double check for networked drive.
26688
26689 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26690
26691 * window.c (run_window_configuration_change_hook): New function.
26692 Code extracted from set_window_buffer. Set the selected frame.
26693 (set_window_buffer): Use it.
26694 * window.h (run_window_configuration_change_hook): Declare.
26695 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26696
26697 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26698
26699 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26700
26701 * Makefile.in: Remove references to unused macros.
26702
26703 2008-01-26 Eli Zaretskii <eliz@gnu.org>
26704
26705 * w32.c (g_b_init_get_sid_sub_authority)
26706 (g_b_init_get_sid_sub_authority_count): New static variables.
26707 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26708 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26709 (init_user_info): Use them to retrieve uid and gid.
26710 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26711 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26712 st_uid and st_gid of the file.
26713
26714 2008-01-26 Jason Rumney <jasonr@gnu.org>
26715
26716 * w32.c (logon_network_drive): New function.
26717 (stat): Use it.
26718
26719 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
26720
26721 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26722 invisible text covered with an ellipsis.
26723
26724 2008-01-25 Richard Stallman <rms@gnu.org>
26725
26726 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26727 jump back to beginning. Move some other initializations after that.
26728 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26729 New variables.
26730 (syms_of_xdisp): Init them.
26731
26732 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26733
26734 * buffer.c (reset_buffer_local_variables):
26735 Implement `permanent-local-hook'.
26736 (Qpermanent_local_hook): New variable.
26737 (syms_of_buffer): Init and staticpro it.
26738
26739 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
26740
26741 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26742
26743 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26744
26745 * fns.c (Fclrhash): Return TABLE.
26746
26747 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26748
26749 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26750 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26751 is set even without positional changes.
26752 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26753
26754 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26755
26756 2008-01-23 Jason Rumney <jasonr@gnu.org>
26757
26758 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26759
26760 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26761 the unicode range available in MULE by locale-coding-system.
26762 Improve dbcs lead byte detection. Set event timestamp and modifiers
26763 earlier.
26764
26765 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26766
26767 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26768 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26769 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26770 when used on child processes.
26771
26772 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
26773
26774 * dbusbind.c (Fdbus_method_return_internal): Rename from
26775 Fdbus_method_return.
26776 (Fdbus_unregister_object): Move to dbus.el.
26777 (Fdbus_call_method, Fdbus_method_return_internal)
26778 (Fdbus_send_signal): Improve debug messages.
26779
26780 2008-01-20 Martin Rudalics <rudalics@gmx.at>
26781
26782 * undo.c (undo_inhibit_record_point): New variable.
26783 (syms_of_undo): Initialize it.
26784 (record_point): Don't record point when undo_inhibit_record_point
26785 is set.
26786
26787 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26788
26789 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26790
26791 * xdisp.c (Qauto_hscroll_mode): New var.
26792 (syms_of_xdisp): Initialize it.
26793 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26794 window's buffer.
26795 (hscroll_windows): Don't check automatic_hscrolling_p here.
26796
26797 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26798 vscroll if we're setting window-buffer to the value it already has.
26799
26800 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26801
26802 * m/intel386.h: Remove references to XENIX.
26803
26804 2008-01-17 Andreas Schwab <schwab@suse.de>
26805
26806 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26807 instead of HAVE_X86_64_LIB64_DIR.
26808 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26809
26810 2008-01-17 Glenn Morris <rgm@gnu.org>
26811
26812 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26813 to HAVE_X86_64_LIB64_DIR.
26814
26815 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26816
26817 * s/irix3-3.h:
26818 * s/irix4-0.h:
26819 * s/386-ix.h:
26820 * s/domain.h:
26821 * s/hpux9-x11r4.h:
26822 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26823
26824 * sysdep.c: Remove code containing references to symbols defined
26825 by unsupported systems.
26826
26827 2008-01-16 Glenn Morris <rgm@gnu.org>
26828
26829 * coding.c (select-safe-coding-system-function): Doc fix.
26830
26831 2008-01-15 Glenn Morris <rgm@gnu.org>
26832
26833 * config.in: Revert 2008-01-13 change: this is a generated file.
26834
26835 2008-01-13 Tom Tromey <tromey@redhat.com>
26836
26837 * lisp.h: Fix typo.
26838
26839 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26840
26841 * m/sequent-ptx.h:
26842 * m/sequent.h:
26843 * s/ptx.h:
26844 * s/ptx4-2.h:
26845 * s/ptx4.h: Remove files for systems no longer supported.
26846
26847 * callproc.c (Fcall_process): Fix previous change.
26848
26849 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26850
26851 * unexsunos4.c: Remove file, system not supported anymore.
26852
26853 * m/mips.h:
26854 * m/intel386.h:
26855 * callproc.c:
26856 * config.in:
26857 * ecrt0.c:
26858 * emacs.c:
26859 * fileio.c:
26860 * frame.c:
26861 * getpagesize.h:
26862 * keyboard.c:
26863 * lread.c:
26864 * process.c:
26865 * puresize.h:
26866 * sysdep.c:
26867 * systty.h:
26868 * syswait.h:
26869 * unexec.c:
26870 * xdisp.c:
26871 * alloc.c: Remove code containing references to symbols defined by
26872 unsupported systems.
26873
26874 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26875
26876 * coding.c (detect_coding_mask): Fix previous change.
26877
26878 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26879
26880 * coding.c (detect_coding_iso2022): New arg
26881 latin_extra_code_state. Allow Latin extra codes only
26882 when *latin_extra_code_state is nonzero.
26883 (detect_coding_mask): If there is a NULL byte, detect the encoding
26884 as UTF-16 or binary. If Latin extra codes exist, detect the
26885 encoding as ISO-2022 only when there's no other proper encoding is
26886 found.
26887
26888 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26889
26890 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26891 #ifdef MAC_OS.
26892
26893 2008-01-08 Richard Stallman <rms@gnu.org>
26894
26895 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26896
26897 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
26898
26899 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26900 menu bar in parentheses.
26901
26902 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26903
26904 * m/7300.h:
26905 * m/acorn.h:
26906 * m/alliant-2800.h:
26907 * m/alliant.h:
26908 * m/alliant1.h:
26909 * m/alliant4.h:
26910 * m/altos.h:
26911 * m/amdahl.h:
26912 * m/apollo.h:
26913 * m/att3b.h:
26914 * m/aviion-intel.h:
26915 * m/aviion.h:
26916 * m/celerity.h:
26917 * m/clipper.h:
26918 * m/cnvrgnt.h:
26919 * m/convex.h:
26920 * m/cydra5.h:
26921 * m/delta88k.h:
26922 * m/dpx2.h:
26923 * m/dual.h:
26924 * m/elxsi.h:
26925 * m/f301.h:
26926 * m/gould-np1.h:
26927 * m/gould.h:
26928 * m/i860.h:
26929 * m/ibmps2-aix.h:
26930 * m/ibmrt-aix.h:
26931 * m/ibmrt.h:
26932 * m/irist.h:
26933 * m/is386.h:
26934 * m/isi-ov.h:
26935 * m/mega68.h:
26936 * m/mg1.h:
26937 * m/news-r6.h:
26938 * m/news-risc.h:
26939 * m/news.h:
26940 * m/nh3000.h:
26941 * m/nh4000.h:
26942 * m/ns16000.h:
26943 * m/ns32000.h:
26944 * m/nu.h:
26945 * m/orion.h:
26946 * m/orion105.h:
26947 * m/paragon.h:
26948 * m/pfa50.h:
26949 * m/plexus.h:
26950 * m/pyramid.h:
26951 * m/pyrmips.h:
26952 * m/sh3el.h:
26953 * m/sps7.h:
26954 * m/sr2k.h:
26955 * m/stride.h:
26956 * m/sun1.h:
26957 * m/sun2.h:
26958 * m/sun3-68881.h:
26959 * m/sun3-fpa.h:
26960 * m/sun3-soft.h:
26961 * m/sun3.h:
26962 * m/sun386.h:
26963 * m/symmetry.h:
26964 * m/tad68k.h:
26965 * m/tahoe.h:
26966 * m/targon31.h:
26967 * m/tek4300.h:
26968 * m/tekxd88.h:
26969 * m/tower32.h:
26970 * m/tower32v3.h:
26971 * m/ustation.h:
26972 * m/wicat.h:
26973 * m/xps100.h:
26974 * s/cxux.h:
26975 * s/cxux7.h:
26976 * s/dgux.h:
26977 * s/dgux4.h:
26978 * s/dgux5-4-3.h:
26979 * s/dgux5-4r2.h:
26980 * s/esix.h:
26981 * s/esix5r4.h:
26982 * s/hiuxmpp.h:
26983 * s/hiuxwe2.h:
26984 * s/iris3-5.h:
26985 * s/iris3-6.h:
26986 * s/isc2-2.h:
26987 * s/isc3-0.h:
26988 * s/isc4-0.h:
26989 * s/isc4-1.h:
26990 * s/newsos5.h:
26991 * s/newsos6.h:
26992 * s/osf1.h:
26993 * s/osf5-0.h:
26994 * s/riscix1-1.h:
26995 * s/riscix12.h:
26996 * s/sco4.h:
26997 * s/sco5.h:
26998 * s/sunos4-0.h:
26999 * s/sunos4-1.h:
27000 * s/sunos413.h:
27001 * s/sunos4shr.h:
27002 * s/umax.h:
27003 * s/unipl5-2.h:
27004 * s/xenix.h:
27005 * cxux-crt0.s:
27006 * unexapollo.c:
27007 * unexconvex.c:
27008 * unexenix.c:
27009 * unexsni.c: Remove files for systems no longer supported.
27010
27011 * m/intel386.h: Remove references to unsupported systems.
27012
27013 * w32.c (get_emacs_configuration): Remove reference to i860.
27014
27015 * sysdep.c: Remove dead code.
27016
27017 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27018
27019 * s/rtu.h:
27020 * m/masscomp.h: Remove files. Platform is obsolete.
27021
27022 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27023
27024 * dbusbind.c (Fdbus_method_return): New function.
27025 (xd_read_message): Add the serial number to the event.
27026 (Fdbus_register_method): Activate the function.
27027
27028 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27029
27030 * keyboard.c (read_key_sequence): Fix typo.
27031
27032 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27033
27034 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27035 (xd_signature, xd_append_arg): Handle element type detection for
27036 empty arrays.
27037 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27038 SDATA () calls; this must be solved more general.
27039 (Fdbus_register_signal): Use SBYTES instead of strlen.
27040
27041 2008-01-03 Magnus Henoch <magnus@zemdatav>
27042
27043 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27044 unsigned int for byte values (necessary for big-endian platform).
27045 (Fdbus_call_method): Handle the case of no returned arguments.
27046
27047 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27048
27049 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27050
27051 2007-12-31 Magnus Henoch <mange@freemail.hu>
27052
27053 * dbusbind.c (xd_signature): Signature of variant is just "v".
27054
27055 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27056
27057 * dbusbind.c: Fix several errors and compiler warnings.
27058 Reported by Tom Tromey <tromey@redhat.com>.
27059 (XD_ERROR, XD_DEBUG_MESSAGE)
27060 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27061 (xd_append_arg): Part for basic D-Bus types rewritten.
27062 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27063 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27064 appropriate.
27065 (xd_read_message): Return Qnil. Don't signal an error; it is not
27066 useful during event reading.
27067 (Fdbus_register_signal): Signal an error if the check for
27068 FUNCTIONP fails.
27069 (Fdbus_register_method): New function. The implementation is not
27070 complete, the call of the function signals an error therefore.
27071 (Fdbus_unregister_object): New function, renamed from
27072 Fdbus_unregister_signal. The initial check signals an error, if
27073 the object is not well formed.
27074
27075 2007-12-30 Richard Stallman <rms@gnu.org>
27076
27077 * textprop.c (get_char_property_and_overlay):
27078 Signal error if POSITION is out of range in a buffer.
27079
27080 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27081
27082 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27083 because the original parameters are in pure storage now.
27084
27085 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27086
27087 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27088
27089 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27090
27091 * callint.c (syms_of_callint) <command-history>: Add reference to
27092 history-length in the doc string.
27093
27094 2007-12-17 Jason Rumney <jasonr@gnu.org>
27095
27096 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27097 before passing as wParam.
27098
27099 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27100
27101 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27102 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27103 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27104 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27105 as number.
27106 (Fdbus_call_method): Fix docstring.
27107
27108 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27109
27110 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27111 New macros.
27112 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27113 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27114 Simplify.
27115 (xd_signature): New function.
27116 (xd_append_arg): Compute also signatures. Major rewrite.
27117 (xd_retrieve_arg): Make debug messages friendly.
27118 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27119 Check for signatures of arguments.
27120
27121 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27122
27123 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27124 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27125 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27126 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27127 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27128 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27129 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27130 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27131 (xd_retrieve_value): Remove. Functionality included in ...
27132 (xd_append_arg): New function.
27133 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27134
27135 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27136
27137 * dbusbind.c (top): Include <stdio.h>.
27138 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27139 dbus_message_new_method_call and dbus_message_new_signal.
27140 (Fdbus_register_signal): Rename unique_name to uname.
27141 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27142 non-existing unique name. Fix typos in matching rule. Return an
27143 object which is useful in Fdbus_unregister_signal.
27144 (Fdbus_unregister_signal): Reimplementation, in order to remove
27145 only the corresponding entry.
27146 (Vdbus_registered_functions_table): Change the order of entries.
27147 Apply these changes in xd_read_message and Fdbus_register_signal.
27148
27149 2007-12-16 Andreas Schwab <schwab@suse.de>
27150
27151 * fileio.c (Finsert_file_contents): Fix overflow check to not
27152 depend on undefined integer overflow.
27153
27154 2007-12-14 Jason Rumney <jasonr@gnu.org>
27155
27156 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27157 for characters above 127.
27158
27159 2007-12-13 Jason Rumney <jasonr@gnu.org>
27160
27161 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27162 before dereferencing array.
27163 (lookup_vk_code): Remove zero comparison.
27164
27165 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27166
27167 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27168 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27169 Use `unsigned int' instead of `uint'.
27170 (xd_read_message, Fdbus_register_signal): Split expressions into
27171 multiple lines before operators "&&" and "||", according to the
27172 GNU Coding Standards.
27173
27174 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27175
27176 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27177
27178 2007-12-12 Juri Linkov <juri@jurta.org>
27179
27180 * buffer.c (Frename_buffer): In interactive spec replace
27181 `read-buffer' with `read-string' that uses `buffer-name-history'
27182 as history, and the current buffer's name as default.
27183
27184 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27185
27186 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27187 manipulating the backtrace manually.
27188 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27189 (struct backtrace, backtrace_list): Remove.
27190 (command_loop_1): Remove dead var `no_direct'.
27191
27192 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27193 preserve non-built-in buffer-local variables.
27194 (Fkill_all_local_variables): Don't re-create&re-set permanent
27195 buffer-local variables.
27196
27197 2007-12-09 Juri Linkov <juri@jurta.org>
27198
27199 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27200 Lisp code that uses `read-buffer' with current buffer as default.
27201
27202 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27203
27204 * dbusbind.c (xd_read_message): Generate an event for every
27205 registered handler. There might be several handlers registered
27206 for the same signal.
27207 (Fdbus_register_signal): Don't overwrite a registration for the
27208 same signal. Add a new registration if handlers are different.
27209 (Vdbus_registered_functions_table): Rework doc string.
27210
27211 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27212
27213 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27214 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27215 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27216 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27217 Unify argument lists.
27218 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27219 arguments and hash table keys. Use unique name for service.
27220 (Fdbus_unregister_signal): Remove checks.
27221 (Vdbus_registered_functions_table): Fix doc string.
27222
27223 2007-12-05 Magnus Henoch <mange@freemail.hu>
27224
27225 * process.c (make_process): Initialize pty_flag to 0.
27226
27227 2007-12-05 Jason Rumney <jasonr@gnu.org>
27228
27229 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27230 specified XBMs.
27231
27232 2007-12-05 Richard Stallman <rms@gnu.org>
27233
27234 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27235
27236 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27237
27238 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27239 New variable.
27240 (mac_try_close_socket) [MAC_OSX]: New function.
27241 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27242 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27243
27244 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27245 Use mac_try_close_socket.
27246
27247 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27248
27249 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27250 reloc_base.
27251 (copy_dysymtab): Compute relocation base here.
27252 (rebase_reloc_address) [__ppc64__]: New function.
27253 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27254 changed.
27255
27256 2007-12-05 Jason Rumney <jasonr@gnu.org>
27257
27258 * w32proc.c (sys_spawnve): Quote args with wildcards.
27259
27260 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27261
27262 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27263 __objc_* sections.
27264 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27265
27266 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27267
27268 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27269 Move check for Vdbus_registered_functions_table to
27270 xd_read_queued_messages.
27271 (xd_read_queued_messages): Protect xd_read_message calls by
27272 internal_condition_case_1.
27273
27274 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27275
27276 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27277 Qdbus_system_bus and Qdbus_session_bus, respectively.
27278 (Vdbus_intern_symbols): Remove.
27279 (Vdbus_registered_functions_table): New hash table.
27280 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27281 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27282 Rewrite in order to manage registered functions by hash table
27283 Vdbus_registered_functions_table.
27284
27285 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27286
27287 * xterm.c: Update URL to Window Manager Specification in comment.
27288
27289 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27290
27291 * config.in (HAVE_DBUS): Add.
27292
27293 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27294 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27295 (obj): Add $(DBUS_OBJ).
27296 (LIBES): Add $(DBUS_LIBS).
27297 (dbusbind.o): New target.
27298
27299 * dbusbind.c: New file.
27300
27301 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27302
27303 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27304 (Qdbus_event): New Lisp symbol.
27305 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27306 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27307 (keys_of_keyboard): Define dbus-event.
27308
27309 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27310
27311 2007-12-01 Richard Stallman <rms@gnu.org>
27312
27313 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27314
27315 2007-11-30 Jason Rumney <jasonr@gnu.org>
27316
27317 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27318 (w32con_reset_terminal_modes): Clear screen buffer.
27319 (w32_face_attributes): Don't use color indexes that are out of range.
27320 Only reverse the default colors.
27321
27322 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27323 WINDOWSNT.
27324
27325 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27326
27327 2007-11-29 Jason Rumney <jasonr@gnu.org>
27328
27329 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27330 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27331 if the terminal colors are initialized.
27332 (unspecified_fg, unspecified_bg): Remove unused declarations.
27333
27334 2007-11-29 Andreas Schwab <schwab@suse.de>
27335
27336 * keyboard.c (apply_modifiers): Fix typo.
27337
27338 2007-11-29 Richard Stallman <rms@gnu.org>
27339
27340 * keymap.c (Fcurrent_local_map): Doc fix.
27341
27342 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27343
27344 * s/gnu-kfreebsd.h: New file.
27345
27346 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27347
27348 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27349 Don't cast redundantly.
27350
27351 * keyboard.c (KEY_TO_CHAR): New macro.
27352 (parse_modifiers, apply_modifiers): Accept integer arguments.
27353 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27354 for chars and symbol keys.
27355 After doing such remapping, apply function-key-map again.
27356
27357 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27358
27359 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27360 compiled anymore.
27361
27362 2007-11-26 Andreas Schwab <schwab@suse.de>
27363
27364 * process.c (list_processes_1): Fix indentation level of the
27365 command column.
27366
27367 2007-11-23 Andreas Schwab <schwab@suse.de>
27368
27369 * editfns.c (Fformat): Handle %c specially since it requires the
27370 argument to be of type int.
27371
27372 2007-11-23 Markus Triska <markus.triska@gmx.at>
27373
27374 * emacs.c (main): Call init_editfns before init_process, since
27375 init_process sets Vprocess_connection_type depending on OS release.
27376
27377 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27378
27379 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27380 (find_symbol_value): Use do_symval_forwarding.
27381
27382 * data.c (set_internal): Set the value in the `cons-cell' (for
27383 Buffer_Local_values) not only for frame-local variables.
27384
27385 2007-11-22 Andreas Schwab <schwab@suse.de>
27386
27387 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27388 values to sprintf.
27389 * keymap.c (Fsingle_key_description): Likewise.
27390 * print.c (print_object): Likewise.
27391
27392 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27393
27394 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27395 file for image is nil.
27396
27397 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27398
27399 * term.c: Include stdarg.h.
27400 (fatal): Implement using varargs.
27401 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27402
27403 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27404
27405 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27406 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27407 Update call to buffer_slot_type_mismatch.
27408 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27409 (buffer_slot_type_mismatch): Update.
27410 * buffer.c (buffer_local_types): Remove.
27411 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27412 (defvar_per_buffer): Set the type in the buffer_objfwd.
27413
27414 2007-11-21 Jason Rumney <jasonr@gnu.org>
27415
27416 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27417 CreateFileMapping returns NULL on failure.
27418
27419 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27420
27421 * search.c (Fset_match_data): Remove the `evaporate' feature.
27422 (unwind_set_match_data): Don't use the `evaporate' feature.
27423
27424 2007-11-21 Jason Rumney <jasonr@gnu.org>
27425
27426 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27427
27428 * w32console.c (w32con_write_glyphs): Remove unused variables.
27429
27430 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27431
27432 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27433
27434 * s/darwin.h (MULTI_KBOARD): Remove.
27435
27436 * macfns.c (x_create_tip_frame, Fx_create_frame)
27437 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27438
27439 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27440
27441 * buffer.c (Fbuffer_local_value): Remove redundant test.
27442 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27443 than in `current-buffer' to match the comment.
27444 Do the swap using swap_in_global_binding.
27445
27446 * data.c (store_symval_forwarding, set_internal):
27447 * eval.c (specbind): Remove dead code.
27448
27449 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27450 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27451 Since we do not want to see internal Lisp_*fwd objects here.
27452
27453 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27454
27455 * sysdep.c (init_system_name): Use getaddrinfo if available.
27456
27457 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27458 (x_scroll_bar_note_movement): start, end, with, height in struct
27459 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27460
27461 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27462
27463 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27464
27465 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27466
27467 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27468 This undoes Richard's change of 14-Oct-2002.
27469
27470 * alloc.c (allocate_other_vector):
27471 * lisp.h (allocate_other_vector): Remove.
27472
27473 * window.c (struct save_window_data): Move non-lisp data to the end
27474 and make it `int' rather than Lisp_Object.
27475 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27476 Done wrap/unwrap integer values.
27477 (Fset_window_configuration, compare_window_configurations):
27478 Update use of fields to their new types.
27479
27480 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27481 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27482 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27483 (SET_SCROLL_BAR_X_WINDOW): Remove.
27484 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27485 Access the new x_window field directly.
27486 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27487 Don't wrap/unwrap integers into Lisp_Objects.
27488 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27489 (x_scroll_bar_report_motion):
27490 Don't wrap/unwrap integers into Lisp_Objects.
27491 (x_term_init): Use SDATA.
27492 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27493 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27494 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27495 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27496 * xfns.c (x_set_background_color):
27497 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27498 Access the new x_window field directly.
27499
27500 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27501 (allocate_pseudovector): Make non-static.
27502
27503 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27504 (allocate_pseudovector): Declare.
27505 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27506
27507 2007-11-15 Andreas Schwab <schwab@suse.de>
27508
27509 * editfns.c (Fformat): Correctly format EMACS_INT values.
27510 Also take precision into account when formatting an integer.
27511
27512 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27513
27514 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27515
27516 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27517 (syms_of_keyboard): Defsubr it.
27518
27519 * data.c (swap_in_global_binding): Fix longstanding bug where
27520 store_symval_forwarding was not called with the right second argument,
27521 thus causing objfwd-ing from being dropped.
27522
27523 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27524
27525 * macfns.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_visual_class, Fx_display_save_under):
27530 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27531 (Fx_display_pixel_height, Fx_display_planes)
27532 (Fx_display_color_cells, Fx_server_max_request_size)
27533 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27534 (Fx_display_mm_height, Fx_display_mm_width)
27535 (Fx_display_backing_store, Fx_display_visual_class)
27536 (Fw32_select_font, Fx_display_save_under):
27537 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27538 (Fx_display_pixel_height, Fx_display_planes)
27539 (Fx_display_color_cells, Fx_server_max_request_size)
27540 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27541 (Fx_display_save_under): Fix typos in docstrings.
27542
27543 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27544
27545 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27546 corresponding to deleted entries; they are an implementation detail.
27547 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27548 Remove variables.
27549 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27550 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27551 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27552 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27553 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27554 (Fw32_define_rgb_color, Fw32_load_color_file)
27555 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27556 Fix typos in docstrings.
27557 (Fx_server_version): Reflow docstring.
27558 (Fw32_shell_execute): Doc fixes.
27559
27560 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
27561
27562 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27563 if w32_parse_hot_key returned nil.
27564
27565 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27566
27567 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27568
27569 2007-11-09 Jason Rumney <jasonr@gnu.org>
27570
27571 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27572
27573 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27574
27575 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27576 Remove W32_SCROLL_BAR_CLICK_EVENT.
27577
27578 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27579 Add MULTIMEDIA_KEY_EVENT.
27580
27581 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27582 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27583 (make_lispy_event) [WINDOWSNT]: Use it to translate
27584 MULTIMEDIA_KEY_EVENT.
27585
27586 * w32term.h (WM_APPCOMMAND): Define if not already.
27587 (GET_APPCOMMAND_LPARAM): Likewise.
27588
27589 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27590 WM_APPCOMMAND.
27591
27592 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27593 (syms_of_w32fns): Export and initialize it.
27594 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27595
27596 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
27597
27598 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27599 twice.
27600
27601 * xdisp.c (handle_face_prop): Fix last change.
27602
27603 2007-11-09 Richard Stallman <rms@gnu.org>
27604
27605 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27606 not just for after-strings and before-strings.
27607 Call face_for_overlay_string and pass the overlay to it.
27608 (handle_display_prop): Determine whether property came from an overlay.
27609 Pass OVERLAY arg to handle_single_display_spec.
27610 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27611 (load_overlay_strings): Fill in it->string_overlays.
27612 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27613
27614 * xfaces.c (face_for_overlay_string): Function renamed from
27615 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27616
27617 * dispextern.h (struct it): New elt string_overlays.
27618 New elt from_overlay, also in stack.
27619 Rearrange a few elements.
27620 (face_for_overlay_string): Decl renamed from
27621 face_at_buffer_position_no_overlays, and add argument.
27622
27623 2007-11-09 Richard Stallman <rms@gnu.org>
27624
27625 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27626 to get the base face for an overlay string.
27627
27628 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27629
27630 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27631
27632 * xdisp.c (handle_stop): Move some code out of loop.
27633
27634 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27635
27636 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27637 Fix conversion from Lisp object to ATSUFontID.
27638
27639 2007-11-09 Jason Rumney <jasonr@gnu.org>
27640
27641 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27642
27643 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27644
27645 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27646 Don't assume regions are aligned to page boundary.
27647 (print_load_command_name): Add LC_UUID if defined.
27648
27649 2007-11-09 Richard Stallman <rms@gnu.org>
27650
27651 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27652
27653 2007-11-07 Jason Rumney <jasonr@gnu.org>
27654
27655 * s/windows95.h: Remove.
27656
27657 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27658
27659 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27660 abort with a message on unhandled store_type values.
27661
27662 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27663
27664 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27665 Remove HAVE_X11R5 and HAVE_X11R4.
27666
27667 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27668
27669 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27670
27671 2007-11-01 Johan Bockgård <bojohan@gnu.org>
27672
27673 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27674 Don't set s->stippled_p here, since it has already been set by
27675 x_set_glyph_string_gc from x_draw_glyph_string.
27676
27677 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27678
27679 * sunfns.c: Remove file.
27680
27681 * m/sun386.h:
27682 * m/sun2.h:
27683 * m/sparc.h: Remove Sun windows code.
27684
27685 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27686
27687 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27688 (init_keyboard): Set current_kboard's window-system to nil.
27689 (tty_read_avail_input): Typo.
27690 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27691
27692 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27693
27694 * s/usg5-4.h:
27695 * s/usg5-3.h:
27696 * s/ptx.h:
27697 * m/is386.h:
27698 * m/ibmps2-aix.h:
27699 * Makefile.in: Remove all mentions of X10.
27700
27701 * dispnew.c (syms_of_display): Don't mention version 10.
27702
27703 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
27704
27705 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27706 ($(BLD)/abbrev.$(O)): Remove.
27707
27708 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27709
27710 Rewrite abbrev.c in Elisp.
27711 * image.c (Qcount): Don't declare as extern.
27712 (syms_of_image): Initialize and staticpro `Qcount'.
27713 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27714 * emacs.c (main): Don't call syms_of_abbrev.
27715 * Makefile.in (obj): Remove abbrev.o.
27716 (abbrev.o): Remove.
27717 * abbrev.c: Remove.
27718
27719 2007-10-26 Martin Rudalics <rudalics@gmx.at>
27720
27721 * window.c (window_min_size_2): Don't count header-line.
27722
27723 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27724
27725 * frame.h (struct frame): Move all bit fields after the first bit
27726 field to take advantage of the available space. Group all the
27727 chars together to reduce wasted space due to padding.
27728
27729 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
27730
27731 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27732
27733 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27734 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27735 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27736 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27737 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27738 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27739 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27740 (last_marked, mark_object_loop_halt): Make static.
27741
27742 * frame.c (syms_of_frame) <delete-frame-functions>:
27743 Fix typo in docstring.
27744
27745 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
27746
27747 * w32.c (init_environment): Fix tiny memory leak.
27748 (w32_get_resource): Remove unused variable `ok'.
27749
27750 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27751
27752 Make `window-system' into a keyboard-local variable (rather than
27753 frame-local as done originally by multi-tty).
27754
27755 * keyboard.h (struct kboard): Add Vwindow_system.
27756 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27757 (mark_kboards): Mark Vwindow_system.
27758
27759 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27760 (init_display): Don't set the obsolete `window-system' frame-param.
27761
27762 * xterm.c (x_term_init):
27763 * w32term.c (w32_create_terminal):
27764 * term.c (init_tty): Set Vwindow_system.
27765 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27766 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27767
27768 * xfns.c (Fx_create_frame, x_create_tip_frame):
27769 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27770 * macfns.c (Fx_create_frame):
27771 Don't set the obsolete `window-system' frame-param.
27772
27773 * frame.h (Qwindow_system): Remove.
27774 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27775 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27776
27777 2007-10-24 Richard Stallman <rms@gnu.org>
27778
27779 * frame.c (x_figure_window_size): For fullscreen case,
27780 set USPosition | PPosition without clobbering rest of window_prompting.
27781
27782 * keyboard.c (Fcurrent_idle_time): Doc fix.
27783
27784 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27785
27786 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27787
27788 * process.c (unwind_request_sigio): Only define if __ultrix__.
27789
27790 * callproc.c (child_setup): Remove spurious *.
27791
27792 * lisp.h (Fget_text_property): Declare.
27793 (have_menus_p): Declare it here rather than in sys-dep header files.
27794 * macterm.h (have_menus_p):
27795 * msdos.h (have_menus_p):
27796 * xterm.h (have_menus_p): Remove.
27797
27798 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27799 (Fmake_variable_frame_local): Just check the variable's const-ness
27800 rather than checking nil or t.
27801
27802 2007-10-22 Jason Rumney <jasonr@gnu.org>
27803
27804 * w32fns.c: Include math.h.
27805 (w32_abort): Declaration moved to nt/config.nt.
27806
27807 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27808 (abort): Redefinition moved to nt/config.nt.
27809
27810 * m/windowsnt.h: Remove.
27811
27812 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
27813
27814 * emacs.c (Fdump_emacs): Fix typo in message.
27815 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27816 <installation-directory>: Reflow docstring.
27817
27818 2007-10-22 Juri Linkov <juri@jurta.org>
27819
27820 * minibuf.c: Allow minibuffer default to be a list of default values.
27821 With empty input use the first element of this list as returned default.
27822 (string_to_object)
27823 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27824 (read_minibuf): If defalt is cons, set histstring to its car.
27825 (Fread_string): If default_value is cons, set val to its car.
27826 (Fread_buffer): If def is cons, use its car.
27827 (Fcompleting_read): If defalt is cons, set val to its car.
27828
27829 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
27830
27831 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27832
27833 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
27834
27835 * doc.c (Fdocumentation): Check for advice in all cases.
27836
27837 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
27838
27839 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27840
27841 2007-10-19 Richard Stallman <rms@gnu.org>
27842
27843 * doc.c (Fdocumentation): Check for and handle an advised function.
27844
27845 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
27846
27847 * process.c (Fset_process_filter): Doc fix.
27848
27849 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27850
27851 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27852 which caused key-translation-map to applied repeatedly (thus breaking
27853 double-mode).
27854
27855 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27856
27857 * xselect.c (x_own_selection, x_handle_selection_clear)
27858 (x_clear_frame_selections):
27859 * w32menu.c (list_of_panes, list_of_items):
27860 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27861 * textprop.c (validate_plist, interval_has_all_properties)
27862 (interval_has_some_properties, interval_has_some_properties_list)
27863 (add_properties, text_property_list):
27864 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27865 * minibuf.c (Fassoc_string):
27866 * macselect.c (x_own_selection, x_clear_frame_selections)
27867 (Fx_disown_selection_internal):
27868 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27869 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27870
27871 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
27872
27873 * process.c: Link to libs for calling res_init() if available.
27874 (Fmake_network_process): Call res_init() before getaddrinfo or
27875 gethostbyname, if possible.
27876
27877 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27878
27879 * lread.c (read1): Set pvectype for char_tables.
27880
27881 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27882 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27883 Add type checks.
27884 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27885
27886 * alloc.c (free_misc): Use XMISCTYPE.
27887 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27888
27889 2007-10-17 Glenn Morris <rgm@gnu.org>
27890
27891 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27892 (syms_of_minibuf): Add Qcompletion_ignore_case.
27893 * dired.c (Qcompletion_ignore_case): Change to external.
27894 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27895 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27896 (Fread_file_name): Use it rather than intern'ing.
27897
27898 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27899 (Fread_coding_system): Ignore case of user input.
27900
27901 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27902
27903 * xdisp.c (handle_display_prop): Ignore display specs after
27904 replacing one when string text is being replaced.
27905 (handle_single_display_spec): Pretend as if characters with display
27906 property haven't been consumed only when buffer text is being replaced.
27907
27908 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27909
27910 * xfns.c (Fx_create_frame, Fx_display_list):
27911 * window.c (window_fixed_size_p, enlarge_window)
27912 (shrink_window_lowest_first):
27913 * macterm.c (init_font_name_table):
27914 * macfns.c (Fx_create_frame, Fx_display_list):
27915 * lread.c (close_load_descs):
27916 * keyboard.c (read_char_x_menu_prompt):
27917 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27918 * coding.c (code_convert_region_unwind): Test the type of an object
27919 rather than just !NILP before extracting data from it.
27920
27921 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27922
27923 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27924 (XMISCANY): New macro.
27925 (XMISCTYPE): Use it.
27926 (struct Lisp_Misc_Any): New type.
27927 (union Lisp_Misc): Use it.
27928 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27929 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27930 (find_symbol_value, set_internal, default_value, Fset_default)
27931 (Fmake_variable_buffer_local, Fmake_local_variable)
27932 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27933 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27934 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27935 * alloc.c (allocate_buffer): Set the size and tag.
27936 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27937 Use XMISCANY.
27938 (die): Follow the GNU convention for error messages.
27939 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27940 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27941 tag any more.
27942 (set_buffer_internal_1):
27943 * frame.c (store_frame_param):
27944 * eval.c (specbind):
27945 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27946
27947 * doc.c (Fsnarf_documentation): Simplify.
27948
27949 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
27950
27951 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27952 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27953
27954 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
27955
27956 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27957
27958 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
27959
27960 * eval.c (do_autoload): Don't save autoloads.
27961
27962 * data.c (Ffset): Save autoload of the function being set.
27963
27964 2007-10-07 John Paul Wallington <jpw@pobox.com>
27965
27966 * xfns.c (x_create_tip_frame): Set the `display-type' frame
27967 parameter before setting up faces.
27968
27969 2007-10-13 Eli Zaretskii <eliz@gnu.org>
27970
27971 * ccl.c (Fregister_code_conversion_map):
27972 * keyboard.c (append_tool_bar_item): Reformat last change.
27973
27974 * lisp.h (eabs): Rename from `abs'. All callers changed.
27975
27976 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
27977
27978 * buffer.c (add_overlay_mod_hooklist):
27979 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
27980 * fontset.c (make_fontset):
27981 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
27982 (append_tool_bar_item):
27983 * macmenu.c (grow_menu_items):
27984 * w32menu.c (grow_menu_items):
27985 * xmenu.c (grow_menu_items): Use larger_vector.
27986
27987 2007-10-13 Eli Zaretskii <eliz@gnu.org>
27988
27989 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
27990 selected frame'' on MSDOS).
27991
27992 2007-10-12 Martin Rudalics <rudalics@gmx.at>
27993
27994 * frame.c (Qexplicit_name): New variable.
27995 (x_report_frame_params): Report it in parameter alist.
27996 (syms_of_frame): Intern and staticpro it.
27997
27998 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
27999
28000 * macfns.c (x_create_tip_frame): Set terminal for frame.
28001
28002 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28003
28004 * frame.c (Qenvironment): Remove.
28005 (syms_of_frame) <Qenvironment>: Don't initialize.
28006 (Fdelete_frame): Don't treat the `environment' param specially.
28007 * frame.h (Qenvironment): Don't declare.
28008 * callproc.c (set_initial_environment): Don't set unused frame param.
28009
28010 * frame.c (Fframe_with_environment): Remove.
28011 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28012
28013 * lisp.h (Fframe_with_environment): Don't declare.
28014
28015 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28016
28017 * indent.c (indent_tabs_mode, last_known_column)
28018 (last_known_column_modified): Make static.
28019 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28020
28021 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28022
28023 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28024
28025 2007-10-09 Jason Rumney <jasonr@gnu.org>
28026
28027 * w32term.c (x_set_window_size): Disable code that attempts to tell
28028 Lisp code about a size change before it actually happens.
28029
28030 2007-10-09 Richard Stallman <rms@gnu.org>
28031
28032 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28033 return HANDLED_RETURN.
28034
28035 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28036
28037 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28038 when there's an unread command event.
28039
28040 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28041 window autoselection act appropriately when leaving selected frame.
28042 (syms_of_frame): Initialize focus_follows_mouse.
28043 * frame.h (focus_follows_mouse): Extern it.
28044 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28045 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28046 * msdos.c (dos_rawgetc): Likewise.
28047 * w32term.c (w32_read_socket): Likewise.
28048 * xterm.c (handle_one_xevent): Likewise.
28049 * xdisp.c (syms_of_xdisp): In doc-string of
28050 mouse-autoselect-window mention focus-follows-mouse.
28051
28052 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28053
28054 * macterm.c (mac_load_query_font): Fix missing return value.
28055 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28056 Add BLOCK_INPUT.
28057
28058 2007-10-08 Richard Stallman <rms@gnu.org>
28059
28060 * xdisp.c (get_window_cursor_type): Implement documented behavior
28061 for cursor-in-non-selected-windows = t.
28062
28063 2007-10-08 Jason Rumney <jasonr@gnu.org>
28064
28065 * w32.c (w32_get_resource): Always close registry keys.
28066
28067 2007-10-08 Jason Rumney <jasonr@gnu.org>
28068
28069 * makefile.w32-in (LIBS): Add COMCTL32.
28070
28071 * w32fns.c (globals_of_w32fns): Init common controls.
28072
28073 2007-10-08 Richard Stallman <rms@gnu.org>
28074
28075 * image.c (our_memory_buffer): Rename from omfib_buffer.
28076
28077 2007-10-08 Richard Stallman <rms@gnu.org>
28078
28079 * buffer.c (Foverlays_at): Doc fix.
28080
28081 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28082
28083 * fns.c (Fplist_put): Preserve uneven tail data.
28084
28085 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28086
28087 * termhooks.h (enum event_kind): Remove trailing comma.
28088
28089 * frame.h (enum): Remove trailing comma.
28090
28091 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28092
28093 * w32proc.c (delete_child): Don't terminate threads of zombies.
28094
28095 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28096
28097 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28098
28099 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28100 last-repeatable-command.
28101 (init_kboard): Initialize Vlast_repeatable_command.
28102 (command_loop_1): Set it to real_this_command unless that was
28103 bound to an input event.
28104 (mark_kboards): Mark it.
28105
28106 2007-10-08 Richard Stallman <rms@gnu.org>
28107
28108 * eval.c (condition-case): Doc fix.
28109
28110 2007-10-08 Masatake YAMATO <jet@gyve.org>
28111
28112 * xfaces.c (tty_supports_face_attributes_p): Fix code
28113 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28114 was copied and not edited.
28115
28116 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28117
28118 Add new `input-decode-map' keymap and use it for terminal
28119 escape sequences.
28120 * keyboard.h (struct kboard): Add Vinput_decode_map.
28121 Remove Vlocal_key_translation_map.
28122 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28123 (init_kboard): Init input-decode-map.
28124 Replace local-key-translation-map back with key-translation-map.
28125 (syms_of_keyboard): Declare input-decode-map.
28126 Remove local-key-translation-map. Update docstrings.
28127 (mark_kboards): Mark Vinput_decode_map.
28128 Don't mark Vlocal_key_translation_map.
28129 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28130 Replace local-key-translation-map back with key-translation-map.
28131 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28132 Bind in input-decode-map rather than function-key-map.
28133
28134 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28135 This was made redundant by the previous introduction of XSETPVECTYPE.
28136
28137 2007-10-09 Richard Stallman <rms@gnu.org>
28138
28139 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28140
28141 2007-09-29 Richard Stallman <rms@gnu.org>
28142
28143 * eval.c (internal_condition_case_2, internal_condition_case_1)
28144 (internal_condition_case): Reenable abort if x_catching_errors ()
28145 to see if that really happens and why.
28146
28147 2007-10-06 Andreas Schwab <schwab@suse.de>
28148
28149 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28150
28151 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28152
28153 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28154
28155 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28156
28157 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28158
28159 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28160
28161 * window.h (struct window):
28162 * window.c (struct save_window_data, struct saved_window):
28163 * termhooks.h (struct terminal):
28164 * process.h (struct Lisp_Process):
28165 * frame.h (struct frame):
28166 * buffer.h (struct buffer):
28167 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28168 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28169 The size field of (pseudo)vectors is now unsigned.
28170 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28171
28172 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28173 Turn `count' into an integer.
28174
28175 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28176 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28177 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28178 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28179 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28180
28181 * alloc.c (allocate_pseudovector): New fun.
28182 (ALLOCATE_PSEUDOVECTOR): New macro.
28183 (allocate_window, allocate_terminal, allocate_frame)
28184 (allocate_process): Use it.
28185 (mark_vectorlike): New function.
28186 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28187 (mark_terminals): Use it.
28188 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28189 (Fmake_byte_code): Use XSETPVECTYPE.
28190
28191 * frame.c (Fframe_parameters): Minor simplification.
28192
28193 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28194
28195 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28196
28197 * buffer.c (Fget_buffer_create, init_buffer_once):
28198 * lread.c (defsubr):
28199 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28200
28201 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28202 defined differently in the m/*.h files.
28203 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28204 (XSETPVECTYPE): New macro.
28205 (XSETPSEUDOVECTOR): Use it.
28206
28207 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28208 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28209
28210 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28211 * lread.c (defvar_per_buffer):
28212 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28213
28214 * window.c (candidate_window_p): Only consider as visible frames that
28215 are on the same terminal.
28216
28217 * m/ibms390x.h (MARKBIT): Remove unused macro.
28218
28219 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28220
28221 * lread.c (Fload): Fix typo in docstring.
28222
28223 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28224
28225 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28226 of a non-zero value can't yield zero.
28227
28228 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28229
28230 * term.c (term_clear_mouse_face, term_mouse_highlight)
28231 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28232
28233 * print.c (safe_debug_print): Use XHASH.
28234
28235 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28236 Lisp elements such as tags.
28237 (XHASH): New macro.
28238 (EQ): Use it.
28239 (SREF, SSET, STRING_COPYIN): Use SDATA.
28240 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28241
28242 * alloc.c (mark_terminal): Remove left-over declaration.
28243 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28244 (allocate_vectorlike): Remove type argument. Adjust callers.
28245 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28246 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28247
28248 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28249 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28250 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28251 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28252 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28253 Use them.
28254
28255 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28256 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28257 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28258
28259 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28260
28261 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28262 loaded by default.
28263
28264 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28265
28266 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28267 on this tty.
28268 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28269
28270 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28271 Update all users.
28272 (handle_one_term_event): Use Gpm_DrawPointer.
28273 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28274 Signal errors instead of returning nil. Always return nil.
28275 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28276 Make it a noop if gpm-mouse was not activated.
28277 (syms_of_term): Update names.
28278
28279 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28280
28281 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28282 (init_sys_modes): Check that gpm_tty is the current tty.
28283
28284 * alloc.c (allocate_terminal): Set the vector size to only count the
28285 lisp fields. Initialize those to nil.
28286 (mark_object): Don't treat terminals specially.
28287 (mark_terminal): Remove.
28288 (mark_terminals): Use mark_object instead.
28289
28290 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28291 the GC to the beginning.
28292
28293 * indent.h:
28294 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28295
28296 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28297
28298 2007-09-25 Jason Rumney <jasonr@gnu.org>
28299
28300 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28301
28302 * w32console.c (create_w32cons_output): Remove.
28303
28304 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28305
28306 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28307 (reset_sys_modes): Use reset_terminal_modes_hook.
28308
28309 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28310
28311 * eval.c (do_autoload): Don't output any message.
28312
28313 2007-09-24 Juri Linkov <juri@jurta.org>
28314
28315 * emacs.c (standard_args): Change priority of "--no-splash"
28316 from 40 to 3. Add "--no-desktop" with the same priority.
28317
28318 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28319
28320 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28321 and optimize the case where they are all 1.
28322
28323 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
28324
28325 * lisp.h (abs): Define if not defined.
28326 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28327 Don't define `abs', since it's defined in lisp.h.
28328
28329 2007-09-22 Eli Zaretskii <eliz@gnu.org>
28330
28331 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28332 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28333 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28334 (init_tty): Use DEV_TTY instead of "/dev/tty".
28335 [WINDOWSNT]: No need to protect from NAME arg being null.
28336
28337 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28338
28339 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28340 up the tty state.
28341
28342 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28343
28344 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28345 (gpm_tty): Change its type.
28346 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28347 (gpm_tty): Change its type and initialize it.
28348 (Fterm_open_connection): Check the frame is indeed a tty.
28349 Use the new gpm_tty.
28350 (Fterm_close_connection): Use the new gpm_tty.
28351 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28352 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28353
28354 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
28355
28356 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28357 underline_color, to draw strike-through.
28358
28359 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28360
28361 * lisp.h (allocate_terminal): Declare.
28362
28363 * window.c (candidate_window_p): Consider frames that are being placed
28364 by the user as somewhere between visible and iconified.
28365 (window_loop): Prefer windows on the current frame.
28366 (Fselect_window): Move the use of select-frame to the beginning so we
28367 can just delegate all the work (it'll call us back anyway).
28368
28369 * frame.c (Qdisplay_environment_variable):
28370 * frame.h (Qdisplay_environment_variable): Delete.
28371
28372 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28373 of the first arg, since that value may be a union.
28374
28375 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28376 parameter rather than Qdisplay_environment_variable. If all else
28377 fails, look for DISPLAY in initial-environment.
28378
28379 2007-09-21 Glenn Morris <rgm@gnu.org>
28380
28381 * Makefile.in (emacstool): Remove target.
28382 (lisp, shortlisp): Remove termdev.elc.
28383
28384 2007-09-21 Markus Triska <markus.triska@gmx.at>
28385
28386 * xterm.c (x_delete_display): Compile session management conditionally.
28387
28388 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28389
28390 * callproc.c (getenv_internal_1): New function.
28391 (getenv_internal): Use it.
28392 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28393
28394 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28395 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28396 (Fset_terminal_parameter): Work with dead terminals as well.
28397 (Fmodify_terminal_parameters): Remove.
28398
28399 * terminal.c (get_terminal): Handle terminals.
28400 Make sure the terminal returned is live.
28401 (create_terminal): Use allocate_terminal.
28402 (mark_terminals): Move to alloc.c.
28403 (delete_terminal): Use terminal->name as liveness status.
28404 NULL out fields after freeing their contents.
28405 Don't deallocate the object.
28406 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28407 rather than an int.
28408 (Fterminal_live_p): Accept non-integer arguments.
28409 (Fterminal_list): Return terminal objects rather than an ints.
28410
28411 * alloc.c (enum mem_type): New member for `terminal' objects.
28412 (allocate_terminal): New function.
28413 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28414 Handle terminals.
28415 (mark_terminal): New fun.
28416 (mark_terminals): Move from terminal.c.
28417
28418 * term.c (get_tty_terminal): Don't treat output_initial specially.
28419 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28420 (delete_tty): Use terminal->name as liveness status.
28421
28422 * termhooks.h (struct terminal): Make it into a pseudovector.
28423 Remove `deleted' replaced by checking `name's nullness.
28424
28425 * print.c (print_object): Handle terminals.
28426
28427 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28428 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28429
28430 * frame.c (make_terminal_frame):
28431 * keyboard.c (tty_read_avail_input):
28432 * w32term.c (x_delete_terminal):
28433 * xfns.c (Fx_create_frame, x_create_tip_frame):
28434 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28435
28436 2007-09-20 Glenn Morris <rgm@gnu.org>
28437
28438 * process.c (Fmake_network_process): Doc fix.
28439
28440 2007-09-19 Jason Rumney <jasonr@gnu.org>
28441
28442 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28443
28444 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28445
28446 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28447 Fix a C warning regarding variable constness.
28448
28449 * xterm.c (handle_one_xevent): Fix a C warning.
28450
28451 2007-09-18 Jason Rumney <jasonr@gnu.org>
28452
28453 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28454
28455 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28456
28457 * gtkutil.c (gdpy_def): New variable.
28458 (xg_initialize): Initialize gdpy_def.
28459 (xg_display_close): If no other display exists, set gdpy_def to a
28460 new connection.
28461
28462 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28463
28464 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28465 when we have no file name for the icon.
28466 (xg_tool_bar_expose_callback): Remove.
28467 (xg_create_tool_bar): Don't connect expose signal to
28468 xg_tool_bar_expose_callback.
28469 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28470
28471 2007-09-16 Andreas Schwab <schwab@suse.de>
28472
28473 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28474 values instead of zapping them.
28475
28476 2007-09-14 Glenn Morris <rgm@gnu.org>
28477
28478 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28479 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28480 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28481 scope and rename to omfib_buffer for clarity.
28482 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28483
28484 2007-09-14 Kenichi Handa <handa@m17n.org>
28485
28486 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28487
28488 2007-09-13 Jason Rumney <jasonr@gnu.org>
28489
28490 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28491
28492 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28493
28494 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28495 (mac_term_init): Call here instead, passing rif.
28496
28497 2007-09-13 Glenn Morris <rgm@gnu.org>
28498
28499 * s/hpux.h: No longer define `static' as nothing.
28500
28501 2007-09-13 Johan Bockgård <bojohan@gnu.org>
28502
28503 * callint.c (Fcall_interactively): Remove unused var `fun'.
28504
28505 2007-09-12 Romain Francoise <romain@orebokech.com>
28506
28507 * window.c (prefer_window_split_horizontally, display_buffer):
28508 Revert 2007-09-08 change.
28509
28510 2007-09-12 Glenn Morris <rgm@gnu.org>
28511
28512 * alloca.c: Remove file.
28513 * Makefile.in (alloca): Do not undef.
28514 (allocaobj, alloca.o): Remove.
28515 (otherobj): Remove allocaobj.
28516 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28517 * regex.c (C_ALLOCA): Remove all references and code that was only
28518 used when this was defined.
28519 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28520 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28521 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28522
28523 * Makefile.in (SOURCES, unlock, relock): Delete.
28524
28525 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28526 (menu_grab_callback): All uses changed.
28527
28528 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28529 (x_reply_selection_request): All uses changed.
28530
28531 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28532
28533 * lread.c (load_warn_old_style_backquotes): Change message to look
28534 better when it appears in the middle of byte-compiler messages.
28535
28536 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28537
28538 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28539
28540 * xterm.c (x_create_terminal): Add comment.
28541
28542 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28543
28544 2007-09-10 Richard Stallman <rms@gnu.org>
28545
28546 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28547
28548 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28549
28550 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28551 (DEFUN): Document `intspec', use it instead of `prompt'.
28552
28553 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28554
28555 * data.c (Finteractive_form): If the interactive specification starts
28556 with a `(', use it as a Lisp form.
28557
28558 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28559 name and file modes.
28560
28561 * callint.c (Fcall_interactively): Comment fixes.
28562
28563 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28564
28565 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28566 and compiled functions.
28567
28568 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28569
28570 * window.c (prefer_window_split_horizontally): New variable.
28571 (display_buffer): Consider splitting window horizontally depending
28572 on prefer_window_split_horizontally.
28573
28574 2007-09-08 Eli Zaretskii <eliz@gnu.org>
28575
28576 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28577
28578 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28579
28580 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28581
28582 * frame.c (x_set_frame_parameters): Check number is positive before
28583 using XFASTINT.
28584
28585 * window.c (freeze_window_start): Don't presume selected_window holds
28586 a window object.
28587 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28588
28589 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28590
28591 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28592
28593 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28594
28595 * window.c (Vsplit_window_preferred_function): New var.
28596 (Fdisplay_buffer): Use it.
28597 (syms_of_window): Export, and initialize it.
28598
28599 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28600
28601 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28602
28603 2007-09-06 Glenn Morris <rgm@gnu.org>
28604
28605 * gtkutil.c (menu_grab_callback) <cnt>:
28606 * xselect.c (x_reply_selection_request) <cnt>: Move static
28607 variable to file scope.
28608
28609 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28610
28611 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28612 consistent values of selected_frame and selected_window.
28613
28614 2007-09-04 Jason Rumney <jasonr@gnu.org>
28615
28616 * w32console.c (initialize_w32_display): Zero unused hooks.
28617
28618 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28619
28620 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28621 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28622
28623 2007-09-04 Jason Rumney <jasonr@gnu.org>
28624
28625 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28626 in w32console.c. Set up input. Remove XXX comments that have been
28627 confirmed as correct.
28628
28629 * s/ms-w32.h (MULTI_KBOARD): Define.
28630
28631 * w32console.c (one_and_only_w32cons): Remove.
28632 (initialize_w32_display): Take terminal argument.
28633
28634 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28635 initialize_w32_display.
28636 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28637
28638 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28639
28640 * keyboard.c (discard_mouse_events): Discard it.
28641 (make_lispy_event): Translate it to a lisp event.
28642 (lispy_wheel_names): Add wheel-left and right events.
28643 (syms_of_keyboard): Enlarge wheel_syms.
28644
28645 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28646 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28647
28648 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28649
28650 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28651 from WM_MOUSEHWHEEL.
28652 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28653
28654 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28655 terminal.
28656
28657 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28658 keyboard for the terminal.
28659
28660 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28661
28662 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28663 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28664 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28665 and resume-tty-function to resume-tty-hook.
28666 (Fsuspend_tty, Fresume_tty): Use new names.
28667
28668 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28669
28670 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28671 if it starts with "n:".
28672
28673 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28674
28675 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28676
28677 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28678
28679 * frame.h:
28680 * frame.c (Qterm_environment_variable): Remove.
28681 (syms_of_frame): Don't init and staticpro it.
28682
28683 * callproc.c (getenv_internal): Remove special case for $TERM.
28684
28685 * callproc.c (Vinitial_environment): New variable.
28686 (set_initial_environment): Initialize it.
28687 (syms_of_callproc): Declare it.
28688 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28689 TERM under which a process runs is never related to the TERM in which
28690 Emacs is running.
28691
28692 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28693
28694 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28695 * s/darwin.h: ... do it here.
28696
28697 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28698
28699 * lisp.h (set_initial_environment): Rename from set_global_environment.
28700
28701 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28702 removed by mistake on the multi-tty branch.
28703
28704 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28705 (Fmodify_frame_parameters): Return a value.
28706
28707 * image.c (png_load): Comment-out var only used in commented-out code.
28708
28709 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28710 before passing it to mark_object.
28711
28712 * xfaces.c (internal_resolve_face_name): Return a value.
28713 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28714
28715 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28716 (x_icon): Comment-out var only used in commented-out code.
28717
28718 2007-08-29 Romain Francoise <romain@orebokech.com>
28719
28720 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28721 QUIT hasn't been provided.
28722
28723 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28724
28725 * callproc.c (child_setup, getenv_internal): Use the
28726 display-environment-variable and term-environment-variable frame params.
28727 (set_initial_environment): Initialise Vprocess_environment.
28728
28729 * config.in: Disable multi-keyboard support on a mac.
28730
28731 * frame.c (Qterm_environment_variable)
28732 (Qdisplay_environment_variable): New variables.
28733 (syms_of_frame): Intern and staticpro them.
28734 (Fmake_terminal_frame): Disable output method test.
28735
28736 * frame.h: Declare them here.
28737
28738 * macfns.c (x_set_mouse_color): Get rif from the frame.
28739 (x_set_tool_bar_lines): Don't use updating_frame.
28740 (mac_window): Add 2 new parameters for consistency with other systems.
28741 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28742 frame parameters following what is done in X11 and w32. Don't use
28743 FRAME_MAC_DISPLAY_INFO.
28744 (Fx_open_connection, start_hourglass): Remove window-system check.
28745 (x_create_tip_frame): Get the keyboard from the terminal.
28746
28747 * macmenu.c: Reorder includes.
28748 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28749
28750 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28751 terminal parameter.
28752 (x_clear_frame): Add a frame parameter.
28753 (note_mouse_movement): Get rif from the frame.
28754 (mac_term_init): Initialize the terminal.
28755 (mac_initialize): Make static and move terminal initialization ...
28756 (mac_create_terminal): ... to this new function.
28757
28758 * macterm.h (struct mac_display_info): Add terminal.
28759 (mac_initialize): Delete declaration.
28760
28761 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28762
28763 * sysdep.c: Comment out text after #endif.
28764
28765 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28766 is defined. Better initialize ttys in windows. Use terminal
28767 specific mouse_position_hook.
28768
28769 * termhooks.h (union display_info): Add mac_display_info.
28770
28771 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28772 Set the default minibuffer frame, window_system and the rest of the
28773 frame parameters following what is done in X11.
28774
28775 * w32term.c (w32_initialize): Make static.
28776
28777 * xselect.c (x_handle_selection_clear): Only access
28778 terminal->kboard when MULTI_KBOARD is defined.
28779
28780 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28781 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28782
28783 2007-08-29 Jason Rumney <jasonr@gnu.org>
28784
28785 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28786 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28787
28788 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28789 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28790
28791 * keyboard.c (restore_kboard_configuration): Only define when
28792 MULTI_KBOARD defined.
28793
28794 * makefile.w32-in: Update dependancies from Makefile.in.
28795 (OBJ1): Add terminal.$(O)
28796
28797 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28798 Don't define function body.
28799 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28800
28801 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28802
28803 * w32.c (request_sigio, unrequest_sigio): Remove.
28804
28805 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28806 (w32con_clear_frame, w32con_clear_end_of_line)
28807 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28808 (w32con_delete_glyphs, w32con_set_terminal_window)
28809 (scroll_line, w32_sys_ring_bell): Add frame arg.
28810 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28811 Add terminal arg.
28812 (PICK_FRAME): Remove.
28813 (w32con_write_glyphs): Use frame specific terminal coding.
28814 (one_and_only_w32cons): New global variable.
28815 (initialize_w32_display): Use it for storing hooks.
28816 (create_w32cons_output): New function.
28817
28818 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28819 arg a frame.
28820
28821 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28822 Set window_system.
28823 (x_set_tool_bar_lines): Don't use updating_frame.
28824 (Fx_create_frame): Set terminal and ref count.
28825 (Fx_open_connection): Remove window-system check.
28826
28827 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28828
28829 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28830 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28831 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28832 Add frame arg.
28833 (x_delete_terminal, w32_create_terminal): New functions.
28834 (w32_term_init): Create a terminal.
28835 (w32_initialize): Move terminal specific initialization to
28836 w32_create_terminal.
28837
28838 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28839 (w32_clear_rect, w32_clear_area): Use background from frame.
28840 (w32_display_info): Add terminal.
28841 (w32_sys_ring_bell, x_delete_display): Declare here.
28842
28843 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28844
28845 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28846
28847 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28848
28849 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28850 Fix get_named_tty calls for the controlling tty.
28851
28852 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28853
28854 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
28855
28856 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28857
28858 * term.c (tty_insert_glyphs): Add missing first parameter.
28859
28860 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28861
28862 * buffer.c (Fbuffer_list, Fbury_buffer):
28863 Take frame->buried_buffer_list into account.
28864
28865 * cm.c (current_tty): New variable, for cmputc().
28866 (cmputc): Use it.
28867 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28868 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28869 (cmgoto): Add tty parameter. Pass it on to calccost().
28870 Use emacs_tputs() instead of tputs().
28871
28872 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28873 tputs().
28874 (current_tty): New variable, for cmputc().
28875 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28876
28877 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28878 (internal_condition_case, internal_condition_case_1)
28879 (internal_condition_case_2): Don't abort when x_catching_errors.
28880
28881 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28882 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28883 prevent crashes caused by bogus longjmps in read_char.
28884
28885 * keymap.h (Fset_keymap_parent): Add EXFUN.
28886
28887 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28888 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28889 Remove redundant definition.
28890
28891 * macfns.c (x_set_mouse_color, x_make_gc):
28892 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28893
28894 * w32term.c (x_free_frame_resources):
28895 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28896 (w32_initialize): Use the accessor macros for terminal characteristics.
28897
28898 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28899 Use the accessor macros for terminal characteristics.
28900 * msdos.c (internal_terminal_init): Use the accessor macros for
28901 terminal characteristics.
28902 (ScreenVisualBell, internal_terminal_init):
28903 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28904
28905 * termopts.h (no_redraw_on_reenter): Declare.
28906
28907 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28908 (mark_terminals, mark_ttys): Declare.
28909 (Fgarbage_collect): Call them.
28910 (mark_object): Mark buried_buffer_list.
28911
28912 * prefix-args.c: Include stdlib.h for exit.
28913
28914 * syssignal.h: Add comment.
28915
28916 * indent.c: Include stdio.h.
28917
28918 * window.h (Vinitial_window_system): Declare.
28919 (Vwindow_system): Delete declaration.
28920
28921 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28922
28923 * image.c (lookup_image): Don't initialize `c' until the xasserts
28924 have been run.
28925
28926 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28927 FRAME_FOREGROUND_PIXEL.
28928
28929 * print.c (print_preprocess): Don't lose print_depth levels while
28930 iterating.
28931
28932 * widget.c (update_from_various_frame_slots):
28933 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28934
28935 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28936 frames.
28937 (window_internal_height): Remove bogus make_number call.
28938 (init_window_once): Call make_terminal_frame with two zero parameters.
28939
28940 * fileio.c (Fread_file_name): Update comment.
28941
28942 * callint.c (Fcall_interactively):
28943 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28944 Make sure it is correctly unwound.
28945
28946 * xsmfns.c (x_session_close): New function.
28947
28948 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28949 Delete declarations.
28950
28951 * xterm.h: Remove declaration for x_fully_uncatch_errors.
28952 (x_output): Remove background_pixel and foreground_pixel fields.
28953 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
28954 (x_delete_device, x_session_close): Declare.
28955
28956 * lread.c: Include setjmp.h. Update declaration of `read_char'.
28957 (read_filtered_event): Call `read_char' with a local
28958 `wrong_kboard_jmpbuf'.
28959
28960 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28961 Don't call single_kboard_state. Use FRAME_RIF.
28962
28963 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28964 systems.
28965
28966 * lisp.h (set_process_environment): Rename to `set_global_environment'.
28967 (Fframe_with_environment, Fset_input_meta_mode)
28968 (Fset_quit_char): EXFUN.
28969 (x_create_device, tty_output, terminal, tty_display_info): Declare.
28970 (init_sys_modes, reset_sys_modes): Update prototypes.
28971 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28972
28973 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28974 Vlocal_key_translation_map, and Vkeyboard_translate_table.
28975 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28976 Delete declarations.
28977 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28978 (temporarily_switch_to_single_kboard, tty_read_avail_input):
28979 New declarations.
28980
28981 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
28982 already does that during init_display(). Call syms_of_keymap
28983 before syms_of_keyboard. Call `syms_of_terminal'.
28984 Call set_initial_environment, not set_process_environment.
28985 (shut_down_emacs): Call reset_all_sys_modes() instead of
28986 reset_sys_modes().
28987
28988 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
28989 (internal_resolve_face_name, resolve_face_name_error): New functions.
28990 (resolve_face_name): Protect against loops and errors thrown by Fget.
28991 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
28992 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
28993
28994 * scroll.c: Replace CURTTY() with local variables throughout the
28995 file (where applicable).
28996 (calculate_scrolling, calculate_direct_scrolling)
28997 (scrolling_1, scroll_cost): Use the accessor macros for terminal
28998 characteristics.
28999
29000 * keymap.c (Vfunction_key_map): Remove.
29001 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29002 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29003 (Vkey_translation_map): Remove.
29004 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29005 (Fdescribe_buffer_bindings)
29006 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29007 Update for terminal-local key-translation-map.
29008
29009 * Makefile.in (callproc.o): Update dependencies.
29010 (lisp, shortlisp): Add termdev.elc.
29011 (obj): Add terminal.o.
29012 (terminal.o): Add dependencies.
29013 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29014 (data.o, fns.o): Add termhooks.h dependency.
29015 (SOME_MACHINE_LISP): Add dnd.elc.
29016 (minibuf.o): Fix typo.
29017 Update dependencies.
29018
29019 * data.c (do_symval_forwarding, store_symval_forwarding)
29020 (find_symbol_value): Use the selected frame's keyboard, not
29021 current_kboard.
29022
29023 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29024 Vwindow_system.
29025
29026 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29027 Fmenu_bar_open.
29028 (syms_of_xmenu): Update defsubr.
29029 (mouse_position_for_popup, Fx_popup_menu)
29030 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29031 (set_frame_menubar, free_frame_menubar)
29032 (create_and_show_popup_menu, xmenu_show)
29033 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29034 an X frame.
29035
29036 * xselect.c (x_own_selection): Abort if not an X frame.
29037 (some_frame_on_display): Check if it is an X frame.
29038 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29039
29040 * coding.c: Include frame.h and termhooks.h.
29041 (terminal_coding, keyboard_coding): Delete.
29042 (Fset_terminal_coding_system_internal)
29043 (Fset_keyboard_coding_system_internal)
29044 (Fkeyboard_coding_system)
29045 (Fterminal_coding_system): Add a terminal parameter.
29046 Get terminal_coding from the terminal.
29047 (init_coding_once): Don't call setup_coding_system here.
29048
29049 * dispextern.h (set_scroll_region, turn_off_insert)
29050 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29051 (tty_clear_end_of_line, tty_setup_colors)
29052 (delete_tty, updating_frame)
29053 (produce_special_glyphs, produce_glyphs, write_glyphs)
29054 (insert_glyphs): Remove.
29055 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29056 (tty_turn_off_highlight, get_tty_size): Add declaration.
29057 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29058
29059 * frame.h (enum output_method): Add output_initial.
29060 (struct x_output): Delete.
29061 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29062 Access foreground_pixel and background_pixel directly from the frame.
29063 (tty_display): Delete.
29064 (struct frame): Add buried_buffer_list, foreground_pixel,
29065 background_pixel and terminal. Delete kboard.
29066 (union output_data): Add tty.
29067 (FRAME_KBOARD): Get the kboard from the terminal.
29068 (FRAME_INITIAL_P): New macro.
29069 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29070 (Qterm_environment_variable, Qdisplay_environment_variable)
29071 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29072 New declarations.
29073
29074 * termchar.h (tty_output, tty_display_info): New structures.
29075 (tty_list): Declare.
29076 (FRAME_TTY, CURTTY): New macros.
29077 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29078 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29079 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29080 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29081
29082 * callproc.c: Include frame.h and termhooks.h, for terminal
29083 parameters.
29084 (add_env): New function.
29085 (child_setup): Use it.
29086 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29087 (getenv_internal): Fix get_terminal_param call.
29088 (Fgetenv_internal, egetenv): Update doc.
29089 (syms_of_callproc): Initialize Vprocess_environment to nil.
29090 Register and initialize them. Remove obsolete defvars. Update doc
29091 strings.
29092 (child_setup): Handle Vlocal_environment_variables.
29093 (getenv_internal): Add terminal parameter.
29094 Handle Vlocal_environment_variables.
29095 (Fgetenv_internal): Add terminal parameter.
29096 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29097 environment in a frame (not terminal) parameter. Update doc strings.
29098 (set_initial_environment): Rename from set_global_environment.
29099 Store Emacs environment in initial frame parameter.
29100
29101 * xdisp.c (redisplay_internal): Update references to
29102 `previous_terminal_frame'.
29103 (display_mode_line, Fformat_mode_line): Replace calls to
29104 `push_frame_kboard' with `push_kboard'.
29105 (get_glyph_string_clip_rects): Add extra parentheses and
29106 braces to prevent compiler warnings.
29107 (calc_pixel_width_or_height): Add xassert to check that the
29108 frame is alive. Don't call `lookup_image' on a termcap frame.
29109 (message2_nolog, message3_nolog, redisplay_internal)
29110 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29111 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29112 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29113 (Fx_display_pixel_width, Fx_display_pixel_height)
29114 (Fx_display_planes, Fx_display_color_cells)
29115 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29116 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29117 (Fx_display_backing_store, Fx_display_visual_class)
29118 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29119 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29120
29121 * xfns.c (x_set_foreground_color x_set_background_color)
29122 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29123 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29124 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29125 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29126 terminal that is being deleted.
29127 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29128 frame parameter, and make sure it overrides any user-supplied setting.
29129 (Fx_close_connection, Fx_synchronize): Unify argument names with
29130 the rest of the DEFUNs.
29131
29132 * dispnew.c (Fsend_string_to_terminal): Update call to
29133 `get_tty_terminal'.
29134 (Fredraw_frame, Fsend_string_to_terminal)
29135 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29136 FRAME_TERMCAP_P and FRAME_TTY.
29137 (window_change_signal): Don't believe width/height values that are
29138 impossibly small.
29139 (Vinitial_window_system): Rename from Vwindow_system.
29140 (termscript, Wcm, rif): Delete.
29141
29142 * termhooks.h (struct terminal): New struct containing the
29143 previously global text display hooks and new members NAME,
29144 DELETED and PARAM_ALIST.
29145 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29146 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29147 (FRAME_RIF): New macros.
29148 (get_terminal_param, get_device): New declarations.
29149 (termscript): Delete declaration.
29150
29151 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29152 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29153 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29154 FRAME_FOREGROUND_PIXEL.
29155 (x_fully_uncatch_errors): Disable definition.
29156 (x_scroll_bar_expose): Fix reference to foreground pixel.
29157 (XTread_socket): Disable loop on all X displays.
29158 (x_delete_terminal): Don't set terminal->deleted and let
29159 delete_terminal delete the frames on the terminal.
29160 (x_delete_display): Doc update to reflect changes in
29161 delete_terminal.
29162 (x_display_info) <terminal>: Move member earlier in the struct.
29163 (deleting_tty): Remove old variable.
29164 (Fsuspend_tty): Call clear_tty_hooks.
29165 (Fresume_tty, init_tty): Call set_tty_hooks.
29166 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29167 errors on X frames.
29168 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29169 (handle_one_xevent): Initialize `f' to NULL.
29170 (x_delete_terminal, x_create_terminal): New functions.
29171 (XTset_terminal_modes, XTreset_terminal_modes)
29172 (XTread_socket, x_connection_closed, x_term_init)
29173 (x_term_init, x_delete_display): Add terminal parameter.
29174 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29175 X connections.
29176
29177 * frame.c: Include termchar.h.
29178 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29179 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29180 (Qdisplay_environment_variable): New vars.
29181 (Fframep): Deal with output_initial.
29182 (Fframe-live-p): Doc fix.
29183 (Fwindow-system): New function.
29184 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29185 (make_terminal_frame): Don't create frames on a terminal that is
29186 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29187 (store_frame_param): Check for found_for_frame before calling XFRAME.
29188 (Fmake_terminal_frame): Handle NULL tty names correctly.
29189 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29190 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29191 frames to refer to a deleted frame in their 'environment parameter.
29192 (Fframe_with_environment): New function.
29193 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29194 (get_future_frame_param): New function.
29195 (Fmake_terminal_frame): Use it.
29196 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29197
29198 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29199 * sysdep.c (reset_sys_modes): Update for renames.
29200
29201 * keyboard.c (tty_read_avail_input): New function.
29202 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29203 (syms_of_keyboard): Defsubr them.
29204 (Fset_input_meta_mode, Fset_quit_char): New functions.
29205 (Fset_input_mode): Split to above functions.
29206 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29207 parameter. Use it in call to `read_char'.
29208 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29209 Set wrong_kboard_jmpbuf correctly in recursive calls.
29210 Use current_kboard to access Vkeyboard_translate_table.
29211 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29212 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29213 Update longjmp invocations. Remember the original current_kboard,
29214 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29215 changes it. Comment out unnecessary calls to
29216 `record_single_kboard_state' and `any_kboard_state'.
29217 Update recursive calls.
29218 (wrong_kboard_jmpbuf): Remove global variable.
29219 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29220 Handle deleted interrupted_kboards correctly; that is a legal
29221 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29222 and read_char calls. Abort if interrupted_kboard died in read_char.
29223 (any_kboard_state, single_kboard_state)
29224 (push_frame_kboard): Remove function.
29225 (pop_kboard): Switch out of single_kboard mode if the kboard has
29226 been deleted. Remove unused variable. Help debugging by not
29227 changing current_kboard unnecessarily. Set current_kboard to the
29228 kboard of the selected frame when the stored kboard object has
29229 been deleted before pop_kboard.
29230 (temporarily_switch_to_single_kboard): Change first parameter to a
29231 frame pointer. Throw an error when caller wants to change kboards
29232 while in single_kboard mode. Don't push_kboard if we weren't in
29233 single kboard state. Don't pop_kboard if we popped into any
29234 kboard state.
29235 (restore_kboard_configuration): Abort if pop_kboard changed the
29236 kboard in single_kboard mode. Call pop_kboard only after setting
29237 up single_kboard mode.
29238 (Frecursive_edit): Switch to single_kboard mode only in nested
29239 command loops.
29240 (cmd_error, command_loop, command_loop_1, timer_check):
29241 Comment out unnecessary call to `any_kboard_state' and
29242 `record_single_kboard_state'.
29243 (delete_kboard): Exit single_kboard mode if we have just deleted
29244 that kboard. Use FRAME_KBOARD.
29245 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29246 `fatal_error_signal'.
29247 (record_single_kboard_state): Don't push_kboard if we weren't in
29248 single kboard state. Don't pop_kboard if we popped into any
29249 kboard state.
29250 (push_frame_kboard): Rename to push_kboard.
29251 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29252 (read_avail_input): Read input from all terminals.
29253 (mark_kboards): Also mark Vkeyboard_translate_table.
29254 (kbd_buffer_store_event_hold): Simplify condition.
29255 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29256 (Vkeyboard_translate_table): Move to struct kboard.
29257 (init_kboard): Initialize Vkeyboard_translate_table.
29258 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29259 Vkeyboard_translate_table. Update doc strings. Update docs of
29260 local-function-key-map and function-key-map.
29261
29262 * terminal.c: New file.
29263
29264 * term.c: Include errno.h.
29265 (Vring_bell_function, device_list, initial_device)
29266 (next_device_id, ring_bell, update_begin, update_end)
29267 (set_terminal_window, cursor_to, raw_cursor_to)
29268 (clear_to_end, clear_frame, clear_end_of_line)
29269 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29270 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29271 (syms_of_term): Move their initialization to terminal.c.
29272 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29273 (Ftty_display_color_cells)
29274 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29275 (clear_tty_hooks, set_tty_hooks)
29276 (init_tty, maybe_fatal): New functions.
29277 (Ftty_type): Return nil if terminal is not on a tty instead of
29278 throwing an error. Doc update.
29279 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29280 Doc update. Initialize new subrs and variables.
29281 (delete_tty): Use terminal->deleted.
29282 (tty_set_terminal_modes): Rename from set_terminal_modes.
29283 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29284 (set_scroll_region): Rename to `tty_set_scroll_region'.
29285 (turn_on_insert): Rename to `tty_turn_on_insert'.
29286 (turn_off_insert): Rename to `tty_turn_off_insert'.
29287 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29288 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29289 (toggle_highligh): Rename to `tty_toggle_highlight'.
29290 (background_highlight): Rename to `tty_background_highlight'.
29291 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29292 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29293 (tty_set_scroll_region, tty_background_highlight)
29294 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29295 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29296 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29297 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29298 Add static modifier.
29299 (tty_reset_terminal_modes, tty_set_terminal_window)
29300 (tty_set_scroll_region, tty_background_highlight)
29301 (tty_highlight_if_desired, tty_cursor_to)
29302 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29303 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29304 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29305 renames.
29306
29307 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29308
29309 * keyboard.c: Qrtl is new.
29310 (parse_tool_bar_item): Handle :rtl keyword.
29311 (syms_of_keyboard): Intern :rtl keyword.
29312
29313 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29314
29315 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29316 so no Lisp code is executed.
29317 (file_for_image, find_rtl_image): New functions.
29318 (xg_get_image_for_pixmap): Use file_for_image.
29319 (update_frame_tool_bar): If direction is RTL, use RTL image if
29320 defined. Use Gtk stock images if defined.
29321
29322 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29323
29324 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29325 for nonexistent or zero-width glyph in composition glyph.
29326
29327 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29328
29329 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29330
29331 * xdisp.c (Finvisible_p): New function.
29332 (syms_of_xdisp): defsubr it.
29333
29334 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
29335
29336 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29337 Doc fixes.
29338
29339 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29340
29341 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29342
29343 2007-08-24 Martin Rudalics <rudalics@gmx.at>
29344
29345 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29346 whether decoding has modified buffer contents.
29347
29348 2007-08-24 Jason Rumney <jasonr@gnu.org>
29349
29350 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29351 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29352 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29353 (init_svg_functions) [HAVE_NTGUI]: New function.
29354 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29355 (svg_load_image): Use them.
29356 (svg_load_image) [HAVE_NTGUI]: Implement background.
29357
29358 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29359
29360 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29361 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29362 (LIBX): Remove @RSVG_LIBS@.
29363 (LIBES): Add $(RSVG_LIBS).
29364
29365 * image.c (svg_load_image): Blend with specified background if exists.
29366 Use IMAGE_BACKGROUND. Add Mac OS Support.
29367
29368 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29369 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29370 Remove macros.
29371 [MAC_OSX] (socket_callback): Do nothing.
29372 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29373 ReceiveNextEvent.
29374 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29375 socket_callback.
29376 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29377
29378 2007-08-22 Glenn Morris <rgm@gnu.org>
29379
29380 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29381
29382 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29383
29384 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29385
29386 * image.c: Add support for SVG images. Some additional comments
29387 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29388 (svg_image_p): New function to test for SVG image.
29389 (svg_load): New function to load SVG image.
29390 (svg_load_image): New function, helper for svg_load.
29391 (Qsvg): New Lisp_object.
29392 (svg_keyword_index): New enum.
29393 (svg_format): New static `image_keyword' struct.
29394 (svg_type): New static `image_type' struct.
29395 (librsvg/rsvg.h): Include it.
29396
29397 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29398
29399 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29400
29401 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29402
29403 * lread.c (Qold_style_backquotes): New var.
29404 (syms_of_lread): Init and staticpro it.
29405 (load_warn_old_style_backquotes): New fun.
29406 (Fload): Use them to warn about old style backquotes.
29407 (end_of_file_error, Fload): Remove unused vars.
29408
29409 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29410
29411 * lread.c (Vold_style_backquotes): New var.
29412 (syms_of_lread): Init and export it to Elisp.
29413 (read1): Set it when we find an old-style (back)quote.
29414
29415 2007-08-22 Jason Rumney <jasonr@gnu.org>
29416
29417 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29418
29419 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29420
29421 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29422
29423 2007-08-19 Richard Stallman <rms@gnu.org>
29424
29425 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29426
29427 2007-08-19 Andreas Schwab <schwab@suse.de>
29428
29429 * alloc.c (pure): Round PURESIZE up.
29430
29431 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29432
29433 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29434 active frame.
29435
29436 2007-08-16 Richard Stallman <rms@gnu.org>
29437
29438 * eval.c (Fcommandp): Add parens to clarify.
29439
29440 * minibuf.c (Fall_completions): Use enum for type of table.
29441
29442 * emacs.c (USAGE2): Improve text.
29443
29444 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29445
29446 * term.c (tty_default_color_capabilities): Declare static
29447 variables in file scope, to avoid HPUX compiler problem.
29448
29449 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29450
29451 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29452 to gtk_toolbar_insert.
29453
29454 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29455
29456 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29457
29458 * insdel.c (reset_var_on_error): New fun.
29459 (signal_before_change, signal_after_change):
29460 Use it to reset (after|before)-change-functions to nil in case of error.
29461 Bind inhibit-modification-hooks to t.
29462 Don't bind (after|before)-change-functions to nil while they run.
29463
29464 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29465
29466 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29467 filling pixmap with stippled background.
29468
29469 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29470
29471 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29472 Don't use invisible frame as parent window for repositioning.
29473
29474 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29475
29476 * print.c (new_backquote_output): Rename from old_backquote_output.
29477 (print): Inverse its logic (according to its name) so as to match the
29478 behavior of new_backquote_flag in lread.c.
29479
29480 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29481
29482 * gmalloc.c (posix_memalign): New function.
29483
29484 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29485 ActivateControl/DeactivateControl here.
29486 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29487 frame-notice-user-settings is non-nil.
29488 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29489 for kEventParamFMFontStyle.
29490 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29491 mac_pass_command_to_system and mac_pass_control_to_system here.
29492 (XTread_socket): Call ActivateControl/DeactivateControl here.
29493 (XTread_socket) [TARGET_API_MAC_CARBON]:
29494 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29495 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29496 for window repositioning.
29497
29498 2007-08-08 Glenn Morris <rgm@gnu.org>
29499
29500 * Replace `iff' in doc-strings and comments.
29501
29502 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
29503
29504 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29505
29506 2007-08-07 Martin Rudalics <rudalics@gmx.at>
29507
29508 * fileio.c (Finsert_file_contents): Run format-decode and
29509 after_insert_file_functions on entire buffer when REPLACE is
29510 non-nil and inhibit modification_hooks and point_motion_hooks.
29511 For consistency, run after_insert_file_functions iff something
29512 got inserted. Move signal_after_change and update_compositions
29513 after code running after_insert_file_functions. Make sure that
29514 undo_list doesn't record intermediate steps of the decoding process.
29515
29516 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29517
29518 * emacs.c (main)
29519 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29520 Call malloc_enable_thread on interactive startup.
29521
29522 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29523 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29524 [USE_PTHREAD]: Conditionalize with it.
29525 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29526 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29527 New functions.
29528
29529 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
29530
29531 * xdisp.c (redisplay_window): When restoring original buffer
29532 position, make sure it is still valid.
29533
29534 * image.c (png_load): Ignore png-supplied background color.
29535
29536 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29537
29538 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29539 Use kCFAbsoluteTimeIntervalSince1970.
29540
29541 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29542 New variable.
29543 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29544 event loop should be quit.
29545 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29546 Quit dialog event loop if quit_dialog_event_loop is set.
29547
29548 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29549 (Selection): New typedef. Use instead of ScrapRef.
29550 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29551 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29552 (mac_clear_selection): Rename from clear_scrap.
29553 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29554 scrap_has_target_type. All uses changed.
29555 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29556 (mac_selection_has_target_p): New functions.
29557 (mac_put_selection_value): Rename from put_scrap_string.
29558 (mac_get_selection_value): Rename from get_scrap_string.
29559 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29560 (put_scrap_private_timestamp, scrap_has_target_type)
29561 (get_scrap_private_timestamp): Remove functions.
29562 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29563 (x_own_selection, x_get_local_selection):
29564 Use mac_valid_selection_value_p.
29565 (x_own_selection): Don't use put_scrap_private_timestamp.
29566 Record OWNERSHIP-INFO into Vselection_alist instead.
29567 (x_get_local_selection): Don't check type if request is local.
29568 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29569 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29570
29571 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29572
29573 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29574 add comment explaining why.
29575
29576 2007-08-03 Richard Stallman <rms@gnu.org>
29577
29578 * fileio.c (Fvisited_file_modtime): Use make_time.
29579
29580 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29581
29582 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29583 build.
29584
29585 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29586
29587 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29588
29589 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29590
29591 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29592
29593 2007-07-30 Richard Stallman <rms@gnu.org>
29594
29595 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29596
29597 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29598
29599 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29600
29601 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
29602
29603 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29604 remote default-directory.
29605
29606 * buffer.c (mode-line-format): Update doc string.
29607
29608 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29609
29610 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29611 scroll bar gap.
29612 (x_scroll_bar_create): Set bar->fringe_extended_p.
29613 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29614 on frame edge. Check fringe background extension. Don't clear
29615 extended fringe background area.
29616
29617 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29618 (w32_fill_area): Enclose multiple statements with do ... while (0).
29619
29620 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29621 Extend fringe background to scroll bar gap.
29622 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29623 Set bar->fringe_extended_p.
29624 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29625 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29626 background extension. Don't clear extended fringe background area.
29627
29628 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29629 New member fringe_extended_p.
29630
29631 2007-07-25 Glenn Morris <rgm@gnu.org>
29632
29633 * Relicense all FSF files to GPLv3 or later.
29634
29635 * COPYING: Switch to GPLv3.
29636
29637 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29638
29639 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29640
29641 * data.c (Finteractive_form): Check for the presence of an
29642 `interactive-form' symbol property more thoroughly.
29643
29644 * data.c (Finteractive_form): Use an `interactive-form' property if
29645 present, analogous to the function-documentation property.
29646
29647 2007-07-24 Jason Rumney <jasonr@gnu.org>
29648
29649 * w32fns.c (x_real_positions): Get real position from OS instead of
29650 calculating it.
29651
29652 2007-07-23 Jason Rumney <jasonr@gnu.org>
29653
29654 * filelock.c (current_lock_owner): Allow for @ sign in username.
29655
29656 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
29657
29658 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29659 remote default-directory.
29660
29661 * buffer.c (mode-line-format): Describe above case in doc string.
29662
29663 2007-07-20 Eli Zaretskii <eliz@gnu.org>
29664
29665 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29666 Define if not defined.
29667
29668 2007-07-18 Jason Rumney <jasonr@gnu.org>
29669
29670 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29671
29672 2007-07-18 Richard Stallman <rms@gnu.org>
29673
29674 * data.c (Fsetq_default): Doc fix.
29675
29676 * eval.c (Fsetq): Doc fix.
29677
29678 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
29679
29680 * coding.c (Ffind_operation_coding_system):
29681 * eval.c (For, Fand): Doc fixes.
29682 Reported by Johan Bockgård.
29683
29684 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29685
29686 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29687
29688 * xterm.h: Declare x_ewmh_activate_frame.
29689
29690 * xterm.c (x_ewmh_activate_frame): New function.
29691 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29692
29693 2007-07-17 Martin Rudalics <rudalics@gmx.at>
29694
29695 * window.c (Fdisplay_buffer): If largest or LRU window is the
29696 only window, split it even if it is not eligible for splitting.
29697 This restores the original behavior broken by the 2007-07-15
29698 change.
29699
29700 2007-07-17 Glenn Morris <rgm@gnu.org>
29701
29702 * abbrev.c (abbrev_check_chars): New function.
29703 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29704 Call abbrev_check_chars to check abbrev characters are word
29705 constituents. Doc fix.
29706
29707 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29708
29709 * process.c (Fstart_process, Fmake_network_process)
29710 (read_process_output): Fix up last changes.
29711
29712 2007-07-16 Eli Zaretskii <eliz@gnu.org>
29713
29714 * makefile.w32-in (clean): Don't delete *~.
29715
29716 2007-07-16 Andreas Schwab <schwab@suse.de>
29717
29718 * window.c (Fdisplay_buffer): Use NILP.
29719 (Fset_window_scroll_bars): Likewise.
29720
29721 2007-07-15 Martin Rudalics <rudalics@gmx.at>
29722
29723 * window.c (window_min_size_2): New function.
29724 (window_min_size_1, size_window, Fdisplay_buffer)
29725 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29726 windows without mode- or header-lines when window-min-height is
29727 too small.
29728 (size_window): Reset nodelete_p after testing it, following an
29729 earlier note by Kim F. Storm.
29730 (display_buffer): Do not set split_height_threshold to twice the
29731 value of window_min_height to avoid changing the value of a
29732 customizable variable. Rather explicitly check whether the
29733 height of the window that shall be splitted is at least as large
29734 as split_height_threshold.
29735 (Fwindow_full_width_p): New defun.
29736 (syms_of_window): Defsubr it.
29737
29738 * window.h: Add EXFUN for Fwindow_full_width_p.
29739
29740 2007-07-14 Jason Rumney <jasonr@gnu.org>
29741
29742 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29743
29744 2007-07-14 Richard Stallman <rms@gnu.org>
29745
29746 * eval.c (maybe_call_debugger): New function.
29747 (find_handler_clause): Use maybe_call_debugger.
29748 Call it when the handler says `debug'.
29749 Eliminate DEBUGGER_VALUE_PTR.
29750 (Fsignal): Eliminate debugger_value.
29751 (Qdebug): New variable.
29752 (syms_of_eval): Initialize it.
29753
29754 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
29755
29756 * eval.c (Fprogn):
29757 * keyboard.c (Ftrack_mouse):
29758 * print.c (Fwith_output_to_temp_buffer):
29759 * window.c (Fsave_window_excursion): Doc fix.
29760
29761 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29762
29763 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29764
29765 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29766
29767 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29768 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29769 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29770 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29771 Remove unused encoding_carryover.
29772 * process.c: Adjust all functions accordingly.
29773
29774 2007-07-12 Richard Stallman <rms@gnu.org>
29775
29776 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29777
29778 2007-07-11 Jason Rumney <jasonr@gnu.org>
29779
29780 * makefile.w32-in (LIBS): Include OLE32.
29781
29782 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29783 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29784
29785 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29786
29787 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29788 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29789 from a Lisp_Object into a bare pointer.
29790 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29791 Adjust the code correspondingly.
29792
29793 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29794
29795 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29796 (term_show_mouse_face): Remove unused var `j'.
29797 (handle_one_term_event): Remove unused vars `i' and `j'.
29798 Don't cast return value of ttyname since it's not necessary.
29799
29800 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29801
29802 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29803 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29804
29805 * fns.c (map_char_table): Use an array of int for `indices' rather than
29806 an array of Lisp_Objects (which are only ever integers anyway).
29807 (Fmap_char_table): Update caller.
29808 * lisp.h: Update prototype.
29809 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29810 * fontset.c (Ffontset_info):
29811 * casetab.c (set_case_table): Update callers.
29812
29813 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29814
29815 * keymap.c (struct accessible_keymaps_data)
29816 (struct where_is_internal_data): New structures.
29817 (accessible_keymaps_1, where_is_internal_1): Use them to change
29818 interface to adhere to the one used by map_keymap.
29819 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29820 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29821
29822 * keymap.h (map_keymap_function_t): More informative prototype.
29823
29824 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29825
29826 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29827 (looking_at_1): Don't change search_regs and last_thing_searched
29828 if `inhibit-changing-match-data' is non-nil.
29829 (string_match_1, search_buffer, set_search_regs): Likewise.
29830 (syms_of_search): Add Lisp level definition for
29831 `inhibit-changing-match-data' and set it to nil.
29832 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29833 start and end of the match, instead of using values in search_regs.
29834
29835 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29836
29837 * minibuf.c (Fcompleting_read): New value `confirm-only'
29838 for `require-match'.
29839
29840 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29841
29842 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29843 part of the 2007-06-27 change to syms_of_fileio.
29844
29845 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29846
29847 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29848 Check WINDOWP before using XWINDOW. Consolidate return statements.
29849
29850 2007-06-27 Richard Stallman <rms@gnu.org>
29851
29852 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29853
29854 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
29855
29856 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29857
29858 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29859
29860 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29861 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29862 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29863 (_free_internal, memalign): Use them.
29864 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29865 Initialize to PTHREAD_MUTEX_INITIALIZER.
29866 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29867 (morecore_nolock): Rename from morecore. All uses changed.
29868 Use only nolock versions of internal allocation functions.
29869 (_malloc_internal_nolock, _realloc_internal_nolock)
29870 (_free_internal_nolock): New functions created from
29871 _malloc_internal, _realloc_internal, and _free_internal.
29872 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29873 Copy hook value to automatic variable before its use.
29874 (memalign): Copy hook value to automatic variable before its use.
29875
29876 2007-06-26 Kenichi Handa <handa@m17n.org>
29877
29878 * coding.c (Ffind_operation_coding_system): Docstring improved.
29879 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29880
29881 2007-06-25 David Kastrup <dak@gnu.org>
29882
29883 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29884 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29885 cater for additional parameter.
29886
29887 * keymap.h: Adjust number of parameters to `current-active-maps'.
29888
29889 * doc.c (Fsubstitute_command_keys): Adjust call of
29890 `current-active-maps'.
29891
29892 2007-06-25 David Kastrup <dak@gnu.org>
29893
29894 * callint.c (Fcall_interactively): Make the parsing of interactive
29895 specs somewhat more readable.
29896
29897 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29898
29899 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29900 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29901 if extended background has already been filled.
29902
29903 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29904
29905 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29906 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29907
29908 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29909 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29910 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29911 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29912 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29913 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29914 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29915 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29916 Run timers during dialog popup.
29917 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29918
29919 2007-06-21 Jason Rumney <jasonr@gnu.org>
29920
29921 * image.c (convert_mono_to_color_image): Swap fore and background.
29922
29923 2007-06-20 Jason Rumney <jasonr@gnu.org>
29924
29925 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29926 (w32_free_bdf_font): Unmap memory not handle.
29927
29928 2007-06-20 Sam Steingold <sds@gnu.org>
29929
29930 * gmalloc.c (__morecore): Fix the declaration to comply with the
29931 definition.
29932
29933 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
29934
29935 * w32term.c (w32_delete_display): Remove leftover declaration.
29936 (w32_define_cursor, w32_initialize): Make static.
29937
29938 * w32.c (_wsa_errlist): Fix typo in error message.
29939 (init_environment): Ignore any environment variable from the
29940 registry having a null value.
29941
29942 2007-06-20 Glenn Morris <rgm@gnu.org>
29943
29944 * Makefile.in (LIBGIF): Default to -lgif.
29945
29946 2007-06-17 Jason Rumney <jasonr@gnu.org>
29947
29948 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29949 unicode strings.
29950
29951 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
29952
29953 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29954 Fix typo in docstring.
29955
29956 2007-06-16 Eli Zaretskii <eliz@gnu.org>
29957
29958 * w32menu.c (add_menu_item): Escape `&' characters in menu items
29959 and their keybindings.
29960
29961 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
29962
29963 * composite.c (update_compositions): Fix last fix.
29964
29965 2007-06-14 Jason Rumney <jasonr@gnu.org>
29966
29967 * w32.c (get_process_times_fn): New function pointer.
29968 (globals_of_w32): Intialize it if present in kernel32.dll.
29969 (w32_get_internal_run_time): New function.
29970
29971 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29972
29973 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
29974
29975 * composite.c (update_compositions): Check the validness of
29976 compositions.
29977
29978 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29979
29980 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
29981 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
29982
29983 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
29984 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
29985
29986 * macgui.h (USE_MAC_TOOLBAR): New define.
29987
29988 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29989 Return immediately unless popup is activated.
29990
29991 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
29992 background to scroll bar gap.
29993 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
29994 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
29995 scroll bars on frame edge. Check fringe background extension.
29996 Don't clear extended fringe background area.
29997 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
29998 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
29999 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30000 [USE_MAC_TOOLBAR]: New macros.
30001 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30002 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30003 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30004 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30005 [USE_MAC_TOOLBAR]: New functions.
30006 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30007 manually if previous repositioning has failed.
30008 (mac_handle_keyboard_event): Use precomputed event kind.
30009 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30010 as tool bar item click. Handle mouse movement over tool bar items.
30011
30012 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30013 toolbar_win_gravity.
30014 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30015 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30016 Add externs.
30017
30018 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30019 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30020
30021 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30022
30023 * image.c (search_image_cache): Remove unused variable.
30024
30025 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30026
30027 * xfns.c, xmenu.c: Link to xaw3d if available.
30028
30029 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30030
30031 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30032 frame_foreground and frame_background.
30033
30034 * image.c (lookup_image): Save frame foreground and background colors.
30035 (search_image_cache): Check if saved and current frame colors match.
30036
30037 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30038
30039 * regex.c (regex_compile): Remove the `regnum' counter.
30040 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30041
30042 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30043
30044 * term.c: Include intervals.h to declare Fget_text_property.
30045
30046 2007-06-10 Jason Rumney <jasonr@gnu.org>
30047
30048 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30049
30050 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30051
30052 * callint.c (Fcall_interactively):
30053 * editfns.c (Fdelete_and_extract_region):
30054 * fileio.c (Fread_file_name):
30055 * fns.c (Fmapconcat):
30056 * keyboard.c (cmd_error_internal):
30057 * keymap.c (Fkey_description):
30058 * lread.c (openp):
30059 * minibuf.c (read_minibuf):
30060 * search.c (wordify):
30061 * sunfns.c (sel_read):
30062 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30063 * xfns.c (x_default_scroll_bar_color_parameter):
30064 * xmenu.c (menu_help_callback):
30065 * xselect.c (Fx_get_atom_name):
30066 * xterm.c (x_term_init): Use empty_unibyte_string.
30067
30068 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30069
30070 * alloc.c (init_strings): Initialize canonical empty strings.
30071 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30072 canonical empty string when the requested size is 0.
30073
30074 * emacs.c (empty_unibyte_string): Rename from empty_string.
30075 (empty_multibyte_string): New canonical empty string.
30076 (syms_of_emacs): Don't initialize empty_string.
30077
30078 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30079 string, if appropriate.
30080 (empty_unibyte_string, empty_multibyte_string): New externs.
30081 (empty_string): Remove extern.
30082
30083 * lread.c (syms_of_lread): Use empty_unibyte_string.
30084
30085 2007-06-07 Jason Rumney <jasonr@gnu.org>
30086
30087 * s/ms-w32.h: Don't define HAVE_TZNAME.
30088
30089 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30090
30091 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30092
30093 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30094
30095 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30096 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30097
30098 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30099 Don't call next handler.
30100 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30101 Remove argument. Install handler to application.
30102 (set_frame_menubar): Don't change deep_p.
30103 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30104 FRAME_OUTER_TO_INNER_DIFF_Y.
30105 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30106 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30107 [HAVE_DIALOGS]: New macros.
30108 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30109 Use them.
30110 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30111
30112 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30113 init_service_handler. All callers changed. Return OSStatus value.
30114
30115 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30116 All callers changed so as not to call SetPortWindowPort.
30117 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30118 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30119 mac_draw_string_common.
30120 (mac_draw_image_string_qd): Likewise.
30121 (mac_draw_string_common): Use them. Add INLINE.
30122 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30123 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30124 GetGlobalMouse.
30125 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30126 and FRAME_OUTER_TO_INNER_DIFF_Y.
30127 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30128 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30129 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30130 repositioning window to mac_handle_window_event.
30131 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30132 saving window location to mac_handle_window_event
30133 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30134 (install_menu_target_item_handler): Remove argument in extern.
30135 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30136 Also accept command events.
30137 (do_keystroke): New function created from XTread_socket.
30138 (init_command_handler): Remove functions.
30139 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30140 and save window location by kEventWindowShowing and kEventWindowHiding
30141 handlers here. Don't call next handler for window state change and
30142 focus events.
30143 (mac_handle_application_event, mac_handle_keyboard_event)
30144 [TARGET_API_MAC_CARBON]: New functions.
30145 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30146 kEventWindowShowing and kEventWindowHiding events. Move installation
30147 of mouse, font, text input and menu target item handlers to
30148 install_application_handler.
30149 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30150 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30151 New function.
30152 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30153 Register it.
30154 (XTread_socket) [TARGET_API_MAC_CARBON]:
30155 Consolidate SendEventToEventTarget calls.
30156 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30157 Move application activation handler to mac_handle_application_event.
30158 Move keyboard handler to mac_handle_keyboard_event.
30159 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30160 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30161 init_command_handler. Call install_application_handler.
30162
30163 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30164 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30165
30166 2007-06-07 Glenn Morris <rgm@gnu.org>
30167
30168 * emacs.c (main): Use `emacs-copyright' in --version output.
30169
30170 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30171
30172 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30173
30174 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30175
30176 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30177
30178 * macgui.h: Replace WindowPtr with WindowRef.
30179
30180 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30181 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30182 Replace ControlHandle with ControlRef.
30183 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30184
30185 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30186 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30187 Replace ControlHandle with ControlRef.
30188 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30189 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30190
30191 * macterm.h (struct scroll_bar): Rename member control_handle_low
30192 and control_handle_high to control_ref_low and control_ref_high.
30193 All uses changed.
30194 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30195 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30196 respectively. All uses changed.
30197 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30198 (install_window_handler, remove_window_handler): Replace WindowPtr
30199 with WindowRef in externs.
30200
30201 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30202
30203 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30204
30205 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30206
30207 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30208
30209 * frame.c (Fmouse_position, Fmouse_pixel_position):
30210 Condition on HAVE_GPM too.
30211
30212 * term.c (term_mouse_highlight): Remove unused variables.
30213 (Fterm_open_connection): Set gpm_zerobased to 1.
30214 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30215 Use zero based co-ordinates.
30216 (handle_one_term_event): Report a drag as mouse movement too.
30217
30218 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30219
30220 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30221
30222 * image.c (search_image_cache): New function. Require background
30223 color match if background color is unspecified in the image spec.
30224 (uncache_image, lookup_image): Use it.
30225
30226 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30227
30228 * window.c (Fshrink_window): Reflow docstring.
30229
30230 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30231
30232 * Version 22.1 released.
30233
30234 2007-06-01 Richard Stallman <rms@gnu.org>
30235
30236 * xfns.c (x_encode_text): Add GCPRO.
30237
30238 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30239
30240 * xfns.c (x_set_name_internal): Save encoded name before
30241 x_encode_text in case string data is relocated.
30242
30243 2007-05-31 Richard Stallman <rms@gnu.org>
30244
30245 * buffer.c (syms_of_buffer): Doc fix.
30246
30247 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30248
30249 * sysdep.c (init_sys_modes): Add rather than replace with
30250 O_NONBLOCK.
30251
30252 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30253 term_mouse_moveto.
30254
30255 * termhooks.h (term_mouse_moveto): New extern.
30256
30257 * term.c (mouse_face_window): Rename...
30258 (Qmouse_face_window): ...to this.
30259 (term_show_mouse_face, term_clear_mouse_face)
30260 (term_mouse_highlight): Use Qmouse_face_window.
30261 (term_mouse_moveto): New function.
30262 (term_mouse_position): Make it work.
30263 (syms_of_term): Uncomment assignment to mouse_position_hook.
30264 Staticpro Qmouse_face_window.
30265
30266 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30267
30268 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30269 around current_column call.
30270
30271 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30272
30273 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30274 * xdisp.c (next_element_from_buffer):
30275 * window.c (delete_window):
30276 * term.c (term_mouse_highlight):
30277 * msdos.c (getdefdir):
30278 * macterm.c (mac_create_bitmap_from_bitmap_data)
30279 (init_font_name_table):
30280 * fns.c (Fsxhash):
30281 * data.c (Fmake_local_variable):
30282 * ccl.c (ccl_driver): Likewise.
30283
30284 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30285
30286 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30287 Call mac_wakeup_from_rne on window size change.
30288
30289 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30290
30291 * image.c (uncache_image): Fix typo.
30292
30293 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30294
30295 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30296
30297 2007-05-22 Richard Stallman <rms@gnu.org>
30298
30299 * xterm.c (x_connection_closed): Remove NO_RETURN.
30300
30301 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30302
30303 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30304
30305 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30306
30307 * image.c (uncache_image): New function.
30308 (Fimage_refresh): New function.
30309
30310 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30311
30312 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30313
30314 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30315
30316 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30317 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30318
30319 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30320
30321 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30322 conditional on [HAVE_GPM_H].
30323
30324 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30325
30326 * syntax.c (skip_chars): Update syntax-table only after we checked that
30327 the new location is valid.
30328
30329 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30330
30331 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30332 mac_get_window_bounds.
30333
30334 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30335
30336 * Makefile.in (LIBGPM): Allow it to be set from configure.
30337 If set then link Emacs with it.
30338
30339 * config.in: Regenerate.
30340
30341 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30342 New externs.
30343
30344 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30345 Include gpm.h.
30346 (handle_one_term_event, term_gpm): New externs.
30347
30348 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30349 and allow it to be interrupted by SIGIO.
30350
30351 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30352 (wait_reading_process_output): Wait on gpm_fd too.
30353 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30354 (add_gpm_wait_descriptor_called_flag): New variable.
30355 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30356
30357 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30358 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30359 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30360 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30361 (make_lispy_event): Add case GPM_CLICK_EVENT.
30362 (read_avail_input): Handle mouse input.
30363
30364 * term.c (write_glyphs_with_face): New function.
30365 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30366 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30367 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30368 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30369 (last_mouse_x, last_mouse_y): New variables.
30370 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30371 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30372 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30373 (Fterm_close_connection): New functions.
30374 (term_init): Initialise mouse_face_window.
30375
30376 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
30377
30378 * xdisp.c (redisplay_window): If first window line is a
30379 continuation line, recompute the new window start instead of
30380 recentering.
30381
30382 2007-05-18 Glenn Morris <rgm@gnu.org>
30383
30384 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30385 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30386
30387 2007-05-17 Glenn Morris <rgm@gnu.org>
30388
30389 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30390
30391 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30392
30393 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30394 dead key repeat and up events.
30395
30396 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
30397
30398 * image.c (pbm_load): Check image size for monochrome pbm.
30399
30400 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
30401
30402 * xterm.c (XTread_socket): Revert last change.
30403
30404 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
30405
30406 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30407
30408 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30409
30410 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30411
30412 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30413 mixup (YAILOM).
30414
30415 2007-05-07 Andreas Schwab <schwab@suse.de>
30416
30417 * keymap.c (Flookup_key): Fix typo in last change.
30418
30419 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30420
30421 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30422 mapping for unibyte strings.
30423
30424 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30425
30426 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30427 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30428
30429 2007-04-29 Richard Stallman <rms@gnu.org>
30430
30431 * insdel.c (replace_range): For undo, record insertion first.
30432
30433 2007-04-29 Andreas Schwab <schwab@suse.de>
30434
30435 * lisp.h (VECSIZE): Use OFFSETOF.
30436
30437 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30438
30439 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30440 disabled lines.
30441
30442 2007-04-28 Richard Stallman <rms@gnu.org>
30443
30444 * lread.c (read_escape): In a string, \s is always space.
30445
30446 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30447
30448 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30449
30450 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30451 submenu for menu bar items.
30452
30453 See ChangeLog.10 for earlier changes.
30454
30455 ;; Local Variables:
30456 ;; coding: utf-8
30457 ;; End:
30458
30459 Copyright (C) 2007-2011 Free Software Foundation, Inc.
30460
30461 This file is part of GNU Emacs.
30462
30463 GNU Emacs is free software: you can redistribute it and/or modify
30464 it under the terms of the GNU General Public License as published by
30465 the Free Software Foundation, either version 3 of the License, or
30466 (at your option) any later version.
30467
30468 GNU Emacs is distributed in the hope that it will be useful,
30469 but WITHOUT ANY WARRANTY; without even the implied warranty of
30470 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30471 GNU General Public License for more details.
30472
30473 You should have received a copy of the GNU General Public License
30474 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.