* image.c: conform to C89 pointer rules
[bpt/emacs.git] / src / ChangeLog
1 2011-02-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
4 Emacs assumes two's complement elsewhere, but the assumption is
5 easy to remove here, and this suppresses a warning with Sun C 5.8.
6
7 conform to C89 pointer rules
8
9 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
10 (same_x_server, x_term_init):
11 Change types between char * and unsigned char *, to satisfy C89
12 rules about pointer type compatibility.
13 * doc.c (get_doc_string, Fsnarf_documentation):
14 (Fsubstitute_command_keys): Likewise.
15 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
16 * bitmaps/gray.xbm (gray_bits): Likewise.
17 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
18
19 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
20
21 don't ignore chdir failure
22 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
23 failure and exit.
24 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
25 remaining unchecked chdir calls in this function; some DOS/NT
26 expert needs to fix them.
27 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
28 in this function; some NextStep expert needs to fix them.
29
30 2011-02-05 Glenn Morris <rgm@gnu.org>
31
32 * xfaces.c (Finternal_set_lisp_face_attribute):
33 Try to clarify some error messages. (Bug#2659)
34
35 2011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
36
37 * editfns.c (save_restriction_restore): Don't forget to invalidate the
38 current_column cache (bug#7946).
39
40 2011-02-05 Kenichi Handa <handa@m17n.org>
41
42 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
43
44 * xftfont.c (xftfont_open): Likewise.
45
46 2011-02-05 Andreas Schwab <schwab@linux-m68k.org>
47
48 * window.c (Fselect_window): Add missing return value.
49
50 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
51
52 xstrcasecmp: conform to C89 pointer rules
53 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
54 to const char *, since they're usually low-level C strings, and
55 this stays compatible with C89 pointer rules. All callers changed.
56
57 * charset.c: conform to C89 pointer rules
58 (define_charset_internal): Switch between char * and unsigned char *.
59
60 * xmenu.c: conform to C89 const rules
61 (xmenu_show, xdialog_show): Declare local var as char *, not
62 const char *, to stay compatible with C89 const rules.
63
64 * xdisp.c: conform to C89 pointer rules
65 (store_mode_line_noprop, display_string, reseat_to_string):
66 (c_string_pos, number_of_chars, message_dolog):
67 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
68 (display_mode_element, display_string):
69 Switch between char * and unsigned char * to stay compatible wth
70 C89 pointer rules.
71
72 * regex.c: conform to C89 pointer rules
73 (re_wctype): Add cast, as C89 does not allow assigning between
74 char * and unsigned char *.
75 (regex_compile): Likewise.
76
77 sync from gnulib to remove HAVE_STDBOOL_H
78 * config.in: Regenerate.
79
80 2011-02-04 Eli Zaretskii <eliz@gnu.org>
81
82 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
83 Replace all uses of lisp.h with $(LISP_H), and all uses of
84 process.h with $(PROCESS_H).
85 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
86 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
87
88 * deps.mk: Update for recent changes: gnutls support, gnulib
89 imports, addition of globals.h.
90
91 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
92 ../lib/ignore-value.h.
93
94 2011-02-03 Paul Eggert <eggert@cs.ucla.edu>
95
96 allow C code to suppress warnings about ignored return values
97
98 We need to go through the code and for each such warning, either
99 fix the code to pay attention to the returned value, or tell GCC
100 that we really do want to ignore the returned value. Here is one
101 example of how to do the latter.
102 * sysdep.c: Include <ignore-value.h>.
103 (sys_subshell): Suppress an undesirable warning about not checking
104 the returned value of 'write', as there's nothing useful one can
105 do with that returned value.
106
107 2011-02-03 Jan Djärv <jan.h.d@swipnet.se>
108
109 * xterm.c (x_connection_closed): Remove all calls that calls
110 XSync (Bug#7949).
111
112 2011-02-01 Eli Zaretskii <eliz@gnu.org>
113
114 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
115 TIFFClientOpen.
116
117 2011-02-01 Jan Djärv <jan.h.d@swipnet.se>
118
119 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
120 (x_session_check_input): Change args and return type so it can be used
121 as argument to add_read_fd. Make static. Remove call to select.
122 Call kbd_buffer_store_event for emacs_event.
123 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
124 (ice_conn_watch_CB): Call add_read_fd.
125
126 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
127 x_session_check_input.
128 (x_session_initialized): Remove definition.
129 (x_initialize): Remove setting of x_session_initialized.
130
131 * xterm.h (x_session_check_input): Remove declaration.
132
133 2011-02-01 Paul Eggert <eggert@cs.ucla.edu>
134
135 format-time-string now supports subsecond time stamp resolution
136 * editfns.c (emacs_nmemftime): Renamed from emacs_memftimeu,
137 for consistency with its new argument and with gnulib nstrftime.
138 All callers changed. New argument NS.
139 (Fformat_time_string): Check that the time argument's microseconds
140 component, if any, is in range; this avoids integer overflow and
141 also nstrftime needs this. Document %N.
142
143 2011-01-31 Andreas Schwab <schwab@linux-m68k.org>
144
145 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
146 of int. All uses adjusted.
147 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
148 (svg_load_image): Remove casts.
149
150 2011-01-31 Chong Yidong <cyd@stupidchicken.com>
151
152 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
153 function definitions for compiling with libpng-1.5.
154 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
155 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
156 (Bug#7908).
157
158 2011-01-31 Eli Zaretskii <eliz@gnu.org>
159
160 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
161
162 * makefile.w32-in (OBJ2): Remove strftime.$(O).
163 ($(BLD)/strftime.$(O)): Remove prerequisites.
164
165 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
166
167 src/emacs.c now gets version number from configure.in
168 * emacs.c (emacs_version): Set to VERSION so that it
169 is determined automatically from ../configure.in.
170
171 2011-01-31 Jim Meyering <meyering@redhat.com>
172
173 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
174 Use xmalloc rather than malloc.
175
176 2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
177
178 strftime: import from gnulib
179 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
180 * deps.mk (strftime.o): Remove.
181 * editfns.c: Include <strftime.h>, supplied by gnulib.
182 (emacs_strftimeu): Remove decl.
183 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
184 emacs_strftimeu.
185 * config.in: Regenerate.
186 * strftime.c: Remove; we now use strftime from gnulib.
187
188 Use SSDATA when the context wants char *.
189 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
190 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
191 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
192 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
193 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
194 Use SSDATA (not SDATA) when the context of the expression wants
195 char * (not unsigned char *).
196
197 2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
198
199 * .gdbinit: Read global lisp variables as globals.f_V*.
200
201 2011-01-30 Andreas Schwab <schwab@linux-m68k.org>
202
203 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
204 All uses changed.
205 (PROP_SAVE): Likewise.
206
207 2011-01-29 Chong Yidong <cyd@stupidchicken.com>
208
209 * keyboard.c (make_lispy_position): Fix typo in last change
210 (Bug#7935).
211
212 2011-01-29 Eli Zaretskii <eliz@gnu.org>
213
214 * s/ms-w32.h (HAVE_MKTIME): Remove.
215
216 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
217 (GNULIB): New variable.
218 (LIBS): Add $(GNULIB).
219 $(TEMACS): Depend on $(GNULIB).
220 <top-level>: Fix font-lock disrupted by a lone `"'.
221
222 2011-01-29 Jan Djärv <jan.h.d@swipnet.se>
223
224 * nsselect.m (ns_string_from_pasteboard): Get length of string
225 and use make_string instead of build_string (Bug#7934).
226 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
227 instead of stringWithUTF8String (Bug#7934).
228
229 2011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
230
231 * nsfont.m (nsfont_open): Ensure that fonts with inexact
232 descenders would not become one pixel too tall (Bug#7887).
233
234 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
235
236 * keyboard.c (make_lispy_position): For clicks on right fringe or
237 margin, compute text position using the X coordinate relative to
238 the left of the text area (Bug#7839).
239
240 2011-01-28 Kenichi Handa <handa@m17n.org>
241
242 * ftfont.c (ftfont_spec_pattern): Check each extra property
243 value.
244
245 2011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
246
247 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
248
249 2011-01-27 Chong Yidong <cyd@stupidchicken.com>
250
251 * font.c (font_parse_fcname): Undefine a temporary macro.
252
253 2011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
254
255 Let the debugger continue to the normal handler (bug#7825).
256 * eval.c (maybe_call_debugger): Declare before new use.
257 (find_handler_clause): Don't call debugger any more.
258 Ignore Vstack_trace_on_error.
259 Use XCAR/XCDR.
260 (syms_of_eval): Remove Vstack_trace_on_error.
261 (Fsignal): Only modify handlerlist when we know we need to do it.
262 Call the debugger when necessary.
263 * globals.h (Vstack_trace_on_error): Remove.
264
265 2011-01-26 Chong Yidong <cyd@stupidchicken.com>
266
267 * font.c (font_parse_fcname): Rewrite GTK font name parser.
268
269 2011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
270
271 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
272 the buffer's point-max (bug#7876).
273
274 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
275
276 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
277 Remove unused case (Bug#6811).
278
279 2011-01-23 Jan Djärv <jan.h.d@swipnet.se>
280
281 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
282 setFrameTopLeftPoint is constrained.
283
284 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
285
286 Check return values of some library calls.
287 * emacs.c (main): Check dup result.
288 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
289 (frame_name_fnn_p): Check strtol result.
290
291 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
292 when calling XpmCreatePixmapFromData.
293
294 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
295 * lisp.h (SSDATA): New macro.
296 All uses of (char *) SDATA (x) replaced with SSDATA (x),
297 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
298 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
299 * xsmfns.c (SSDATA): Likewise.
300
301 2011-01-22 Martin Rudalics <rudalics@gmx.at>
302
303 * window.c (select_window): New function.
304 (Fselect_window): Call it.
305 (inhibit_point_swap): Variable deleted.
306 (Fset_window_configuration): Call select_window directly.
307
308 2011-01-22 Jan Djärv <jan.h.d@swipnet.se>
309
310 * nsterm.m (constrainFrameRect): Only constrain the first time called.
311
312 2011-01-21 Jan Djärv <jan.h.d@swipnet.se>
313
314 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
315 screen, not the window screen.
316 (x_set_window_size): Remove constraints.
317 Calculate origin.y only if zooming is 0 and without referring to a
318 screen.
319 (windowWillResize): Don't modify frameSize.
320 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
321 (initFrameFromEmacs): Initialize ns_userRect.
322 (windowShouldZoom): Set zooming to one. Remove all other code.
323 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
324 Zero it after restore.
325 (constrainFrameRect): New method for EmacsWindow.
326 (mouseDragged): Always post NSWindowDidResizeNotification after call to
327 windowWillResize.
328
329 * nsterm.h (ns_output): Add dont_constrain and zooming.
330 (EmacsView): Add ns_userRect.
331
332 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
333 if ns_alternate_modifier is none.
334
335 2011-01-20 Jan Djärv <jan.h.d@swipnet.se>
336
337 * unexmacosx.c: Add comment about include order.
338
339 2011-01-20 Glenn Morris <rgm@gnu.org>
340
341 * minibuf.c (syms_of_minibuf) <read-expression-history>:
342 Give it a doc string.
343 * globals.h: Add Vread_expression_history.
344
345 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
346 Give it a doc string.
347 * globals.h: Add Vkbd_macro_termination_hook.
348
349 2011-01-20 Chong Yidong <cyd@stupidchicken.com>
350
351 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
352
353 2011-01-19 Paul Eggert <eggert@cs.ucla.edu>
354
355 Fix X11 compilation failure.
356 * globals.h (struct emacs_globals): Document f_Vselection_alist.
357 * xselect.c (Vselection_alist): Remove declaration, moving its
358 documentation to globals.h. This fixes a compilation failure
359 induced by the earlier change to globals.h today.
360
361 2011-01-19 Jan Djärv <jan.h.d@swipnet.se>
362
363 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
364
365 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
366 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
367 (ns_input_spi_name, ns_input_spi_arg)
368 (ns_alternate_modifier, ns_right_alternate_modifier)
369 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
370 (ns_right_control_modifier, ns_function_modifier)
371 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
372 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
373 (x_underline_at_descent_line): Remove declaration.
374 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
375
376 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
377 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
378 (syms_of_nsselect): Remove & from DEFVAR_LISP.
379
380 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
381 Remove declaration.
382
383 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
384 globals.h.
385 (syms_of_nsfont): Remove & from DEFVAR_LISP.
386
387 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
388 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
389 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
390
391 * globals.h (struct emacs_globals): Add f_ns_input_file,
392 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
393 f_ns_input_color, f_ns_input_text, f_ns_working_text,
394 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
395 f_ns_right_alternate_modifier, f_ns_command_modifier,
396 f_ns_right_command_modifier, f_ns_control_modifier,
397 f_ns_right_control_modifier, f_ns_function_modifier,
398 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
399 f_Vns_version_string, f_Vns_sent_selection_hooks,
400 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
401 and corresponding defines.
402
403
404 2011-01-19 Sam Steingold <sds@gnu.org>
405
406 * w32.c (check_windows_init_file): Remove declarations of
407 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
408 * w32fns.c: Fix an error introduced by the previous patch.
409
410 2011-01-19 Tom Tromey <tromey@redhat.com>
411
412 * window.c: Fix error introduced by previous patch.
413
414 2011-01-18 Tom Tromey <tromey@parfait>
415
416 * globals.h: New file.
417 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
418 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
419 (Vwindow_system_version): Remove declaration.
420 * w32term.h (Vw32_enable_palette)
421 (Vx_pixel_size_width_font_regexp): Remove declaration.
422 * w32menu.c (Voverriding_local_map)
423 (Voverriding_local_map_menu_flag): Remove declaration.
424 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
425 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
426 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
427 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
428 (Vw32_phantom_key_code, Vw32_recognize_altgr)
429 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
430 (w32_use_full_screen_buffer): Remove declaration.
431 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
432 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
433 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
434 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
435 (no_redraw_on_reenter, visible_bell): Remove declaration.
436 * sysdep.c (Vsystem_name): Remove declaration.
437 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
438 * menu.h (Vmenu_updating_frame): Remove declaration.
439 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
440 Remove declaration.
441 * lisp.h (Vafter_init_time, Vafter_load_alist)
442 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
443 (Vcompletion_regexp_list, Vcurrent_load_list)
444 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
445 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
446 (Vexec_directory, Vexec_path, Vexec_suffixes)
447 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
448 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
449 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
450 (Vinstallation_directory, Vinvocation_directory)
451 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
452 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
453 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
454 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
455 (Vscalable_fonts_allowed, Vselect_active_regions)
456 (Vshell_file_name, Vstandard_input, Vstandard_output)
457 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
458 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
459 (Vuser_login_name, Vwindow_scroll_functions)
460 (Vwindow_system_version, Vx_no_window_manager)
461 (Vx_resource_class, Vx_resource_name, baud_rate)
462 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
463 (history_delete_duplicates, inhibit_x_resources)
464 (last_nonmenu_event, load_in_progress, max_specpdl_size)
465 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
466 (use_dialog_box, use_file_dialog): Remove declaration. Include
467 globals.h.
468 * keymap.h (Voverriding_local_map)
469 (Voverriding_local_map_menu_flag, meta_prefix_char): Remove
470 declaration.
471 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
472 (Vinput_method_function, Vkey_translation_map)
473 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
474 (do_mouse_tracking, extra_keyboard_modifiers)
475 (num_nonmacro_input_events): Remove declaration.
476 * intervals.h (Vchar_property_alias_alist)
477 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
478 (Vtext_property_default_nonsticky): Remove declaration.
479 * gtkutil.h (x_gtk_file_dialog_help_text)
480 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
481 (x_gtk_whole_detached_tool_bar): Remove declaration.
482 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
483 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
484 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
485 (focus_follows_mouse): Remove declaration.
486 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
487 (Vignore_relative_composition, Votf_script_alist)
488 (Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
489 declaration.
490 * font.h (Vfont_log): Remove declaration.
491 * dosfns.h (Vdos_display_scancodes, Vdos_version)
492 (Vdos_windows_version, dos_codepage, dos_country_code)
493 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
494 (dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
495 declaration.
496 * disptab.h (Vglyph_table, Vstandard_display_table): Remove
497 declaration.
498 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
499 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
500 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
501 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
502 (inverse_video, mode_line_in_non_selected_windows)
503 (tool_bar_button_relief, tool_bar_max_label_size)
504 (underline_minimum_offset)
505 (unibyte_display_via_language_environment, x_stretch_cursor_p):
506 Remove declaration.
507 * composite.h (Vauto_composition_function)
508 (Vcomposition_function_table): Remove declaration.
509 * commands.h (Vexecuting_kbd_macro)
510 (Vminibuffer_local_completion_map)
511 (Vminibuffer_local_filename_completion_map)
512 (Vminibuffer_local_filename_must_match_map)
513 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
514 (Vminibuffer_local_ns_map, Vthis_command)
515 (Vunread_command_events, cursor_in_echo_area)
516 (last_command_event, last_nonmenu_event, unread_command_char):
517 Remove declaration.
518 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
519 (Vdefault_file_name_coding_system)
520 (Vdefault_process_coding_system, Vfile_name_coding_system)
521 (Vlast_coding_system_used, Vlocale_coding_system)
522 (Vselect_safe_coding_system_function)
523 (Vtranslation_table_for_input, coding_system_require_warning)
524 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
525 (eol_mnemonic_unix, inherit_process_coding_system): Remove
526 declaration.
527 * charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
528 declaration.
529 * character.h (Vauto_fill_chars, Vchar_direction_table)
530 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
531 (Vscript_representative_chars, Vtranslation_table_vector)
532 (Vunicode_category_table): Remove declaration.
533 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
534 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
535 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
536 (inhibit_modification_hooks): Remove declaration.
537 * xterm.c (syms_of_xterm): Update.
538 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
539 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
540 (x_mouse_click_focus_ignore_position)
541 (x_underline_at_descent_line)
542 (x_use_underline_position_properties): Remove.
543 * xsmfns.c (syms_of_xsmfns): Update.
544 (Vx_session_id, Vx_session_previous_id): Remove.
545 * xsettings.c (syms_of_xsettings): Update.
546 (Vxft_settings, use_system_font): Remove.
547 * xselect.c (syms_of_xselect): Update.
548 (Vselection_converter_alist, Vx_lost_selection_functions)
549 (Vx_sent_selection_functions, x_selection_timeout): Remove.
550 * xfns.c (syms_of_xfns): Update.
551 (Vgtk_version_string, Vmotif_version_string)
552 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
553 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
554 (Vx_no_window_manager, Vx_nontext_pointer_shape)
555 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
556 (Vx_sensitive_text_pointer_shape)
557 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
558 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
559 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
560 Remove.
561 * xfaces.c (syms_of_xfaces): Update.
562 (Vface_default_stipple, Vface_font_rescale_alist)
563 (Vface_ignored_fonts, Vface_new_frame_defaults)
564 (Vface_remapping_alist, Vfont_list_limit)
565 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
566 * xdisp.c (syms_of_xdisp): Update.
567 (Vauto_resize_tool_bars, Vblink_cursor_alist)
568 (Vdisplay_pixels_per_inch, Vfontification_functions)
569 (Vframe_title_format, Vglobal_mode_string)
570 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
571 (Vicon_title_format, Vinhibit_redisplay)
572 (Vline_number_display_limit, Vline_prefix)
573 (Vmax_mini_window_height, Vmenu_bar_update_hook)
574 (Vmenu_updating_frame, Vmessage_log_max)
575 (Vmouse_autoselect_window, Vnobreak_char_display)
576 (Voverlay_arrow_position, Voverlay_arrow_string)
577 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
578 (Vresize_mini_windows, Vshow_trailing_whitespace)
579 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
580 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
581 (Vwindow_scroll_functions, Vwindow_size_change_functions)
582 (Vwindow_text_change_functions, Vwrap_prefix)
583 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
584 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
585 (highlight_nonselected_windows, hscroll_margin)
586 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
587 (inhibit_menubar_update, inhibit_try_cursor_movement)
588 (inhibit_try_window_id, inhibit_try_window_reusing)
589 (line_number_display_limit_width)
590 (make_cursor_line_fully_visible_p, message_truncate_lines)
591 (mode_line_inverse_video, multiple_frames, overline_margin)
592 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
593 (tool_bar_max_label_size, underline_minimum_offset)
594 (unibyte_display_via_language_environment, x_stretch_cursor_p):
595 Remove.
596 * window.c (syms_of_window): Update.
597 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
598 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
599 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
600 (Vwindow_point_insertion_type, auto_window_vscroll_p)
601 (mode_line_in_non_selected_windows, next_screen_context_lines)
602 (window_min_height, window_min_width): Remove.
603 (scroll_margin): Remove declaration.
604 * w32term.c (syms_of_w32term): Update.
605 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
606 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
607 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
608 (w32_use_visible_system_caret, x_underline_at_descent_line)
609 (x_use_underline_position_properties): Remove.
610 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
611 Remove declaration.
612 * w32select.c (syms_of_w32select): Update.
613 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
614 * w32proc.c (syms_of_ntproc): Update.
615 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
616 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
617 (Vw32_start_process_inherit_error_mode)
618 (Vw32_start_process_share_console)
619 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
620 (Vsystem_name): Remove declaration.
621 * w32font.c (syms_of_w32font): Update.
622 (Vw32_charset_info_alist): Remove.
623 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
624 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
625 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
626 (Vw32_enable_palette, Vw32_lwindow_modifier)
627 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
628 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
629 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
630 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
631 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
632 (Vx_no_window_manager, Vx_nontext_pointer_shape)
633 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
634 (Vx_sensitive_text_pointer_shape)
635 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
636 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
637 (w32_mouse_move_interval)
638 (w32_pass_extra_mouse_buttons_to_system)
639 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
640 (w32_strict_fontnames, w32_strict_painting): Remove.
641 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
642 (Vw32_recognize_altgr, Vwindow_system_version)
643 (w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
644 declaration.
645 * w32console.c (syms_of_ntterm): Update.
646 (w32_use_full_screen_buffer): Remove.
647 (Vtty_defined_color_alist): Remove declaration.
648 * w16select.c (syms_of_win16select): Update.
649 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
650 * undo.c (syms_of_undo): Update.
651 (Vundo_outer_limit, Vundo_outer_limit_function)
652 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
653 Remove.
654 * textprop.c (syms_of_textprop): Update.
655 (Vchar_property_alias_alist, Vdefault_text_properties)
656 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
657 Remove.
658 * terminal.c (syms_of_terminal): Update.
659 (Vdelete_terminal_functions, Vring_bell_function): Remove.
660 * term.c (syms_of_term): Update.
661 (Vresume_tty_functions, Vsuspend_tty_functions)
662 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
663 Remove.
664 * syntax.c (syms_of_syntax): Update.
665 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
666 (open_paren_in_column_0_is_defun_start)
667 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
668 (words_include_escapes): Remove.
669 * search.c (syms_of_search): Update.
670 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
671 * process.c (syms_of_process): Update.
672 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
673 (delete_exited_processes): Remove.
674 * print.c (syms_of_print): Update.
675 (Vfloat_output_format, Vprint_charset_text_property)
676 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
677 (Vprint_length, Vprint_level, Vprint_number_table)
678 (Vstandard_output, print_escape_multibyte)
679 (print_escape_newlines, print_escape_nonascii, print_quoted):
680 Remove.
681 * msdos.c (syms_of_msdos): Update.
682 (Vdos_unsupported_char_glyph): Remove.
683 (unibyte_display_via_language_environment): Remove declaration.
684 * minibuf.c (syms_of_minibuf): Update.
685 (Vcompletion_regexp_list, Vhistory_add_new_input)
686 (Vhistory_length, Vminibuffer_completing_file_name)
687 (Vminibuffer_completion_confirm)
688 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
689 (Vminibuffer_exit_hook, Vminibuffer_help_form)
690 (Vminibuffer_history_position, Vminibuffer_history_variable)
691 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
692 (Vread_buffer_function, Vread_expression_map)
693 (completion_ignore_case, enable_recursive_minibuffers)
694 (history_delete_duplicates, minibuffer_allow_text_properties)
695 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
696 Remove.
697 * marker.c (syms_of_marker): Update.
698 (byte_debug_flag): Remove.
699 * macros.c (syms_of_macros): Update.
700 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
701 * lread.c (syms_of_lread): Update.
702 (Vafter_load_alist, Vbyte_boolean_vars)
703 (Vbytecomp_version_regexp, Vcurrent_load_list)
704 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
705 (Vload_history, Vload_path, Vload_read_function)
706 (Vload_source_file_function, Vload_suffixes, Vobarray)
707 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
708 (Vread_symbol_positions_list, Vread_with_symbol_positions)
709 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
710 (force_load_messages, load_convert_to_unibyte)
711 (load_dangerous_libraries, load_force_doc_strings)
712 (load_in_progress): Remove.
713 * keymap.c (syms_of_keymap): Update.
714 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
715 (Vminibuffer_local_completion_map)
716 (Vminibuffer_local_filename_completion_map)
717 (Vminibuffer_local_filename_must_match_map)
718 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
719 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
720 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
721 Remove.
722 * keyboard.c (syms_of_keyboard): Update.
723 (Vauto_save_timeout, Vcommand_error_function)
724 (Vcommand_hook_internal, Vdeactivate_mark)
725 (Vdeferred_action_function, Vdeferred_action_list)
726 (Vdisable_point_adjustment, Vdouble_click_time)
727 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
728 (Vfunction_key_map, Vglobal_disable_point_adjustment)
729 (Vhelp_char, Vhelp_event_list, Vhelp_form)
730 (Vinput_method_function, Vinput_method_previous_message)
731 (Vkey_translation_map, Vlast_event_frame)
732 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
733 (Vminibuffer_message_timeout, Voverriding_local_map)
734 (Voverriding_local_map_menu_flag, Vpost_command_hook)
735 (Vpre_command_hook, Vprefix_help_command)
736 (Vsaved_region_selection, Vselect_active_regions)
737 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
738 (Vthis_command, Vthis_command_keys_shift_translated)
739 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
740 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
741 (Vtty_erase_char, Vunread_command_events)
742 (Vunread_input_method_events, Vunread_post_input_method_events)
743 (auto_save_interval, cannot_suspend, do_mouse_tracking)
744 (double_click_fuzz, extra_keyboard_modifiers)
745 (inhibit_local_menu_bar_menus, last_command_event)
746 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
747 (menu_prompting, meta_prefix_char, num_input_keys)
748 (num_nonmacro_input_events, polling_period, unread_command_char):
749 Remove.
750 * insdel.c (syms_of_insdel): Update.
751 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
752 * indent.c (syms_of_indent): Update.
753 (indent_tabs_mode): Remove.
754 * image.c (syms_of_image): Update.
755 (Vimage_cache_eviction_delay, Vimage_types)
756 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
757 (cross_disabled_images): Remove.
758 * fringe.c (syms_of_fringe): Update.
759 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
760 * frame.c (syms_of_frame): Update.
761 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
762 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
763 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
764 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
765 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
766 Remove.
767 * fontset.c (syms_of_fontset): Update.
768 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
769 (Vfontset_alias_alist, Vignore_relative_composition)
770 (Votf_script_alist, Vuse_default_ascent)
771 (Vvertical_centering_font_regexp): Remove.
772 * font.c (syms_of_font): Update.
773 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
774 (Vfont_weight_table, Vfont_width_table): Remove.
775 * fns.c (syms_of_fns): Update.
776 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
777 * filelock.c (syms_of_filelock): Update.
778 (Vtemporary_file_directory): Remove.
779 * fileio.c (syms_of_fileio): Update.
780 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
781 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
782 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
783 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
784 (Vinhibit_file_name_operation, Vset_auto_coding_function)
785 (Vwrite_region_annotate_functions)
786 (Vwrite_region_annotations_so_far)
787 (Vwrite_region_post_annotation_function)
788 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
789 (Vw32_get_true_file_attributes): Remove declaration.
790 * eval.c (syms_of_eval): Update.
791 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
792 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
793 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
794 (debug_on_next_call, debug_on_quit, debugger_may_continue)
795 (max_lisp_eval_depth, max_specpdl_size): Remove.
796 * emacs.c (syms_of_emacs): Update.
797 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
798 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
799 (Vinstallation_directory, Vinvocation_directory)
800 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
801 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
802 (Vsystem_configuration, Vsystem_configuration_options)
803 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
804 (inhibit_x_resources, noninteractive1): Remove.
805 * editfns.c (syms_of_editfns): Update.
806 (Vbuffer_access_fontified_property)
807 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
808 (Voperating_system_release, Vsystem_name, Vuser_full_name)
809 (Vuser_login_name, Vuser_real_login_name): Remove.
810 * dosfns.c (syms_of_dosfns): Update.
811 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
812 (dos_codepage, dos_country_code, dos_decimal_point)
813 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
814 (dos_super_key, dos_timezone_offset): Remove.
815 * doc.c (syms_of_doc): Update.
816 (Vbuild_files, Vdoc_file_name): Remove.
817 * dispnew.c (syms_of_display): Update.
818 (Vglyph_table, Vinitial_window_system)
819 (Vredisplay_preemption_period, Vstandard_display_table)
820 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
821 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
822 * dired.c (syms_of_dired): Update.
823 (Vcompletion_ignored_extensions): Remove.
824 (Vw32_get_true_file_attributes): Remove declaration.
825 * dbusbind.c (syms_of_dbusbind): Update.
826 (Vdbus_debug, Vdbus_registered_buses)
827 (Vdbus_registered_objects_table): Remove.
828 * data.c (syms_of_data): Update.
829 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
830 * composite.c (syms_of_composite): Update.
831 (Vauto_composition_function, Vauto_composition_mode)
832 (Vcompose_chars_after_function, Vcomposition_function_table):
833 Remove.
834 * coding.c (syms_of_coding): Update.
835 (Vcharset_revision_table, Vcoding_category_list)
836 (Vcoding_system_alist, Vcoding_system_for_read)
837 (Vcoding_system_for_write, Vcoding_system_list)
838 (Vdefault_process_coding_system, Venable_character_translation)
839 (Vfile_coding_system_alist, Vlast_code_conversion_error)
840 (Vlast_coding_system_used, Vlatin_extra_code_table)
841 (Vlocale_coding_system, Vnetwork_coding_system_alist)
842 (Vprocess_coding_system_alist)
843 (Vselect_safe_coding_system_function)
844 (Vstandard_translation_table_for_decode)
845 (Vstandard_translation_table_for_encode)
846 (Vtranslation_table_for_input, coding_system_require_warning)
847 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
848 (eol_mnemonic_unix, inherit_process_coding_system)
849 (inhibit_eol_conversion, inhibit_iso_escape_detection)
850 (inhibit_null_byte_detection): Remove.
851 * cmds.c (syms_of_cmds): Update.
852 (Vpost_self_insert_hook): Remove.
853 * charset.c (syms_of_charset): Update.
854 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
855 (inhibit_load_charset_map): Remove.
856 * character.c (syms_of_character): Update.
857 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
858 (Vchar_width_table, Vprintable_chars)
859 (Vscript_representative_chars, Vtranslation_table_vector)
860 (Vunicode_category_table): Remove.
861 * ccl.c (syms_of_ccl): Update.
862 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
863 (Vtranslation_hash_table_vector): Remove.
864 * category.c (syms_of_category): Update.
865 (Vword_combining_categories, Vword_separating_categories): Remove.
866 * callproc.c (syms_of_callproc): Update.
867 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
868 (Vexec_directory, Vexec_path, Vexec_suffixes)
869 (Vinitial_environment, Vprocess_environment)
870 (Vshared_game_score_directory, Vshell_file_name): Remove.
871 * callint.c (syms_of_callint): Update.
872 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
873 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
874 * bytecode.c (syms_of_bytecode): Update.
875 (Vbyte_code_meter, byte_metering_on): Remove.
876 * buffer.c (syms_of_buffer): Update.
877 (Vafter_change_functions, Vbefore_change_functions)
878 (Vchange_major_mode_hook, Vfirst_change_hook)
879 (Vinhibit_read_only, Vkill_buffer_query_functions)
880 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
881 * alloc.c (syms_of_alloc): Update.
882 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
883 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
884 (cons_cells_consed, floats_consed, garbage_collection_messages)
885 (gc_cons_threshold, gcs_done, intervals_consed)
886 (misc_objects_consed, pure_bytes_used, string_chars_consed)
887 (strings_consed, symbols_consed, vector_cells_consed): Remove.
888
889 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
890 (DEFVAR_INT): Assume global is in `globals'.
891 * alloc.c (globals): Define.
892
893 2011-01-18 Tom Tromey <tromey@redhat.com>
894
895 * image.c (Vimagemagick_render_type): Remove redundant
896 definition.
897
898 2011-01-18 Tom Tromey <tromey@redhat.com>
899
900 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
901 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
902 (redisplay_window): Update.
903 (syms_of_xdisp): Update.
904
905 2011-01-18 Tom Tromey <tromey@redhat.com>
906
907 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
908 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
909 Declare.
910 * gtkutil.c (xg_uses_old_file_dialog):
911 (xg_get_file_with_chooser):
912 (xg_tool_bar_detach_callback): Don't redeclare globals.
913
914 2011-01-18 Tom Tromey <tromey@redhat.com>
915
916 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
917 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
918
919 2011-01-18 Paul Eggert <eggert@cs.ucla.edu>
920
921 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
922 defined __GNUC__. ../configure now checks for this GCC feature,
923 which is now also supported by IBM and Oracle compilers.
924 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
925 since Solaris malloc returns mult-of-8.
926
927 2011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
928
929 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
930
931 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
932
933 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
934 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
935 * data.c (Fnumber_to_string): Use it.
936 * print.c (float_to_string, print_object): Likewise.
937
938 Include <unistd.h> unilaterally.
939 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
940 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
941 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
942 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
943 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
944 * xterm.c:
945 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
946 unistd.h is always present now, possibly supplied by gnulib.
947
948 * mktime.c: Remove; moving to ../lib.
949
950 Use gnulib's mktime module.
951 * deps.mk (mktime.o): Remove rule.
952
953 Use gnulib's ftoastr module.
954 * print.c: Include ftoastr.h.
955 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
956 Remove; no longer needed.
957 (float_to_string): Use dtoastr rather than rolling our own code,
958 which had an off-by-one bug on non-IEEE hosts.
959
960 Automate syncing from gnulib.
961 * Makefile.in (lib): New macro.
962 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
963 ($(lib)/libgnu.a): New rule.
964 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
965
966 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
967 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
968 so change the type of 'ign' to unsigned int from int.
969
970 * regex.c (analyse_first): Remove unreachable 'continue' statement.
971
972 * xterm.h (struct x_display_info): Remove stray semicolon.
973 The extra semicolon didn't conform to the C standard.
974 Problem reported by Sun cc.
975
976 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
977 These changes make compilation easier to follow with Sun cc.
978 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
979 EMACS_INT values without provoking overflow diagnostics.
980 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
981 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
982 diagnostic with signed left shift.
983
984 * fileio.c (make_temp_name): Remove unreachable code.
985
986 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
987 Previously it was marked by preceding it with "return;", but
988 Sun cc complains about this.
989
990 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
991 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
992 which fixed Bug#2370. Caught by Sun cc.
993
994 2011-01-15 Martin Rudalics <rudalics@gmx.at>
995
996 * window.c (inhibit_point_swap): New variable.
997 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
998 point this time.
999 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
1000 of setting selected_window to nil (Bug#7728).
1001
1002 2011-01-11 Tassilo Horn <tassilo@member.fsf.org>
1003
1004 * image.c (imagemagick_load_image, Finit_image_library):
1005 Free intermediate image after creating a MagickWand from it.
1006 Terminate MagickWand environment after image loading.
1007
1008 2011-01-10 Michael Albinus <michael.albinus@gmx.de>
1009
1010 * dbusbind.c (Fdbus_register_service): Raise an error in case of
1011 unexpected return values.
1012 (Fdbus_register_method): Remove connection initialization.
1013
1014 2011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
1015
1016 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
1017 used by Fdbus_register_service.
1018 (QCdbus_request_name_replace_existing): Likewise.
1019 (QCdbus_request_name_do_not_queue): Likewise.
1020 (QCdbus_request_name_reply_primary_owner): Likewise.
1021 (QCdbus_request_name_reply_in_queue): Likewise.
1022 (QCdbus_request_name_reply_exists): Likewise.
1023 (QCdbus_request_name_reply_already_owner): Likewise.
1024 (Fdbus_register_service): New function.
1025 (Fdbus_register_method): Use Fdbus_register_service to do the name
1026 registration.
1027 (syms_of_dbusbind): Add symbols dbus-register-service,
1028 :allow-replacement, :replace-existing, :do-not-queue,
1029 :primary-owner, :existing, :in-queue and :already-owner.
1030
1031 2011-01-09 Chong Yidong <cyd@stupidchicken.com>
1032
1033 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
1034 when removing extra buttons.
1035
1036 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
1037
1038 * fns.c (Fyes_or_no_p): Doc fix.
1039
1040 2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
1041
1042 * fns.c (Fyes_or_no_p): Add usage.
1043
1044 2011-01-08 Glenn Morris <rgm@gnu.org>
1045
1046 * makefile.w32-in ($(EMACS)):
1047 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
1048
1049 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
1050 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
1051
1052 2011-01-07 Andreas Schwab <schwab@linux-m68k.org>
1053
1054 * image.c (imagemagick_load_image): Fix some resource leaks and
1055 error handling.
1056
1057 2011-01-07 Chong Yidong <cyd@stupidchicken.com>
1058
1059 * fns.c (Fyes_or_no_p): Accept format string args.
1060
1061 2011-01-07 Glenn Morris <rgm@gnu.org>
1062
1063 * emacs.c (no_site_lisp): New int.
1064 (USAGE1): Add --no-site-lisp, mention -Q uses it.
1065 (main): Set no_site_lisp.
1066 (standard_args): Add --no-site-lisp.
1067 * lisp.h (no_site_lisp): New int.
1068 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
1069 directories to Vload_path.
1070
1071 2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
1072
1073 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
1074
1075 2011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
1076
1077 * dbusbind.c (Fdbus_register_method): Add optional parameter
1078 dont_register_service. Updated docstring accordingly.
1079
1080 2011-01-04 Glenn Morris <rgm@gnu.org>
1081
1082 * emacs.c (emacs_copyright): Update short copyright year to 2011.
1083
1084 2011-01-03 Eli Zaretskii <eliz@gnu.org>
1085
1086 * image.c (png_jmpbuf): Remove definition.
1087 (my_png_error, png_load): Don't use png_jmpbuf.
1088
1089 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1090
1091 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
1092
1093 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1094
1095 * image.c <Qlibpng_version>: New variable.
1096 (syms_of_image): Intern and staticpro it. Set its value to the
1097 version of PNG library we were compiled with.
1098 (my_png_error, png_load): Avoid GCC warnings about direct access
1099 to png_ptr->jmpbuf. (Bug#7716)
1100 (png_jmpbuf): New macro.
1101 (my_png_error, png_load): Use it instead of #ifdef'ing according
1102 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
1103
1104 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1105
1106 * .gdbinit (xgetptr): Fix the union+lsb case.
1107 (xbacktrace): Fix the union case.
1108
1109 2011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
1110
1111 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
1112 different from selected-window's.
1113
1114 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1115
1116 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
1117 equivalent of a menu item when the key sequence is given by the
1118 `:keys' attribute. (Bug#7662)
1119
1120 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
1121 the basic faces are supported.
1122
1123 2011-01-02 Jan Djärv <jan.h.d@swipnet.se>
1124
1125 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
1126
1127 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1128
1129 * xdisp.c (Fformat_mode_line): Fix last change.
1130
1131 2011-01-02 Chong Yidong <cyd@stupidchicken.com>
1132
1133 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
1134 faces (Bug#7587).
1135
1136 2011-01-02 Eli Zaretskii <eliz@gnu.org>
1137
1138 * fileio.c (Fexpand_file_name): One more doc fix.
1139
1140 2011-01-01 Chong Yidong <cyd@stupidchicken.com>
1141
1142 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
1143 image or label in the container.
1144 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
1145 (xg_show_toolbar_item): Function deleted.
1146 (xg_tool_item_stale_p): New function.
1147 (update_frame_tool_bar): Calculate tool-bar style once per call.
1148 Instead of hiding text labels, omit them. Don't use
1149 xg_show_toolbar_item; create new GtkToolItems from scratch if
1150 necessary, instead of trying to re-use them. This avoids an
1151 annoying animation when changing tool-bars.
1152
1153 2010-12-31 Jan Djärv <jan.h.d@swipnet.se>
1154
1155 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
1156 title and buffer filename only for RepresentedFilename.
1157 Handle bad UTF-8 in buffer name (Bug#7517).
1158
1159 2010-12-30 Jan Djärv <jan.h.d@swipnet.se>
1160
1161 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
1162
1163 * nsfns.m (ns_set_name_iconic): Remove.
1164 (ns_set_name_internal): New function (Bug#7517).
1165 (Vicon_title_format): Extern declare.
1166 (ns_set_name): Call ns_set_name_internal.
1167 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
1168 (x_implicitly_set_name): Ditto.
1169 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
1170 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
1171
1172 2010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
1173
1174 * window.c (syms_of_window): Add missing defsubr for
1175 window-use-time.
1176
1177 2010-12-28 Andreas Schwab <schwab@linux-m68k.org>
1178
1179 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
1180 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
1181
1182 2010-12-27 Andreas Schwab <schwab@linux-m68k.org>
1183
1184 * buffer.c: Remove unused declarations.
1185 * buffer.h: Likewise.
1186 * charset.h: Likewise.
1187 * composite.h: Likewise.
1188 * dispextern.h: Likewise.
1189 * dispnew.c: Likewise.
1190 * font.h: Likewise.
1191 * fontset.c: Likewise.
1192 * fontset.h: Likewise.
1193 * intervals.h: Likewise.
1194 * keymap.h: Likewise.
1195 * lisp.h: Likewise.
1196 * syntax.c: Likewise.
1197 * syntax.h: Likewise.
1198 * termhooks.h: Likewise.
1199 * window.h: Likewise.
1200 * xsettings.h: Likewise.
1201 * xterm.c: Likewise.
1202 * xterm.h: Likewise.
1203
1204 * chartab.c (sub_char_table_ref): Make static.
1205 * dispnew.c (line_hash_code, required_matrix_height)
1206 (required_matrix_width): Likewise.
1207 * eval.c (interactive_p, apply_lambda): Likewise.
1208 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
1209 Likewise.
1210 * font.c (QCadstyle, QCregistry, font_make_spec)
1211 (font_parse_fcname, font_encode_char, font_at): Likewise.
1212 * frame.c (x_frame_get_arg): Likewise.
1213 * keymap.c (get_keyelt): Likewise.
1214 * lread.c (read_filtered_event): Likewise.
1215 * print.c (write_string_1): Likewise.
1216 * window.c (delete_window, window_height, window_width)
1217 (foreach_window): Likewise.
1218 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
1219 * xterm.c (x_scroll_bar_clear, xembed_set_info)
1220 (xembed_send_message): Likewise.
1221
1222 * eval.c (run_hook_list_with_args): Delete.
1223 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
1224 * terminal.c (get_terminal_param): Likewise.
1225 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
1226
1227 * scroll.c: Fix comment.
1228
1229 * dispnew.c (add_window_display_history)
1230 (add_frame_display_history, glyph_row_slice_p)
1231 (find_glyph_row_slice, flush_stdout)
1232 (check_matrix_pointer_lossage, matrix_row)
1233 (check_matrix_invariants, check_window_matrix_pointers)
1234 (check_matrix_pointers, window_to_frame_vpos)
1235 (window_to_frame_hpos): Prototize.
1236 * textprop.c (erase_properties): Likewise.
1237
1238 2010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
1239
1240 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
1241 (print_preprocess): Fix handling of uninterned symbols in last change.
1242
1243 * print.c (print, print_preprocess, print_object): Use a hash table
1244 rather than a linear table for Vprint_number_table.
1245
1246 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1247
1248 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
1249
1250 2010-12-20 Chong Yidong <cyd@stupidchicken.com>
1251
1252 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
1253 (parse_tool_bar_item): Use it to obtain image separators for
1254 displays not using native tool-bar separators.
1255
1256 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
1257 specially, since this is now done in parse_tool_bar_item.
1258
1259 2010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
1260
1261 Minor clean up to silence some gcc warnings.
1262 * window.c (Fset_window_buffer):
1263 * xterm.c (x_set_frame_alpha): Restructure code to silence
1264 compiler warning.
1265 (handle_one_xevent): Remove unused var `p'.
1266 (do_ewmh_fullscreen): Remove unused var `lval'.
1267 (xembed_set_info): Remove unused var `atom'.
1268 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
1269 compiler warning.
1270 * fontset.c (fontset_id_valid_p, dump_fontset):
1271 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
1272 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
1273 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
1274 label only when it's used.
1275 * image.c (x_create_bitmap_from_xpm_data):
1276 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
1277 its callers.
1278 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
1279 `consumed_chars'.
1280 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
1281 (decode_coding_emacs_mule): Remove unused label `retry'.
1282 (detect_eol): Add parens to silence compiler warning.
1283 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
1284 it's used to silence the compiler.
1285 (make_number): Modernize k&r declaration.
1286 (mark_char_table): Add parens to silence compiler warning.
1287
1288 2010-12-17 Chong Yidong <cyd@stupidchicken.com>
1289
1290 * keyboard.c (parse_tool_bar_item): Allow menu separators in
1291 tool-bar maps.
1292 (menu_separator_name_p): New function, from gtkutil.c.
1293 (separator_names): Move from gtkutil.c.
1294
1295 * keyboard.h (menu_separator_name_p): Add prototype.
1296
1297 * gtkutil.c (XG_BIN_CHILD): New macro.
1298 (xg_get_menu_item_label, xg_update_menubar)
1299 (xg_update_menu_item, xg_tool_bar_menu_proxy)
1300 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
1301 (separator_names, xg_separator_p): Move to keyboard.c.
1302 (create_menus, xg_update_submenu, update_frame_tool_bar):
1303 Use menu_separator_name_p.
1304
1305 * nsmenu.m (name_is_separator): Function deleted.
1306 (addItemWithWidgetValue): Use menu_separator_name_p.
1307
1308 * w32menu.c (name_is_separator): Function deleted.
1309 (add_menu_item): Use menu_separator_name_p.
1310
1311 2010-12-16 Jan Djärv <jan.h.d@swipnet.se>
1312
1313 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
1314 same as the background, use the face forground as cursor.
1315
1316 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1317
1318 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
1319
1320 2010-12-13 Eli Zaretskii <eliz@gnu.org>
1321
1322 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
1323 (face_before_or_after_it_pos, next_element_from_string)
1324 (next_element_from_c_string, produce_stretch_glyph): Remove unused
1325 calculations of maximum string length before calling
1326 string_char_and_length and STRING_CHAR_AND_LENGTH.
1327 (string_char_and_length): Update commentary: MAXLEN is no longer
1328 needed.
1329
1330 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1331
1332 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
1333 as (Qsave_session arg).
1334
1335 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
1336 (smc_die_CB): Make an event with arg Qt.
1337 (Fhandle_save_session): If event has Qt as argument,
1338 call Fkill_emacs (Bug#7552).
1339
1340 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1341
1342 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
1343
1344 2010-12-13 Jan Djärv <jan.h.d@swipnet.se>
1345
1346 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
1347
1348 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1349
1350 * dispextern.h (struct it): New member overlay_strings_charpos.
1351
1352 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
1353 charpos where we computed n_overlay_strings.
1354 (next_overlay_string): Load overlay strings at recorded position,
1355 which may not be the same as the iterator's charpos (Bug#7016).
1356
1357 2010-12-13 Chong Yidong <cyd@stupidchicken.com>
1358
1359 * xdisp.c (try_scrolling): Avoid infloop if the first line is
1360 obscured due to a vscroll (Bug#7537).
1361
1362 2010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
1363
1364 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1365
1366 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
1367 Use FRAME_TOOLBAR_HEIGHT.
1368 (x_set_offset): Handle XNegative and YNegative in
1369 f->size_hint_flags (Bug#7510).
1370
1371 2010-12-11 Eli Zaretskii <eliz@gnu.org>
1372
1373 * w32fns.c (Fx_show_tip): Call try_window with last argument
1374 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
1375 solved. Round up the tip height to an integral multiple of the
1376 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
1377 (Bug#7398)
1378
1379 2010-12-08 Glenn Morris <rgm@gnu.org>
1380
1381 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
1382
1383 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
1384
1385 * xml.c (parse_region): Ignore blank HTML nodes.
1386 (make_dom): Return CDATA sections (like <style>foo</style>) as
1387 text nodes.
1388
1389 2010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1390
1391 * lread.c (read1): Allow newstyle unquote outside of backquote.
1392 Disallow old-style backquotes inside new-style backquotes.
1393 Don't count unquotes to figure out when we're "syntactically inside
1394 but semantically outside of a backquote" any more.
1395 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
1396 to all contexts.
1397
1398 2010-12-05 Chong Yidong <cyd@stupidchicken.com>
1399
1400 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
1401
1402 2010-12-04 Andreas Schwab <schwab@linux-m68k.org>
1403
1404 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
1405 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
1406 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
1407
1408 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1409
1410 * lisp.h (union Lisp_Object): Explicitly declare signedness of
1411 bit-field.
1412 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
1413 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
1414 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1415 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
1416 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
1417 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
1418 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
1419 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
1420 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
1421 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
1422 * m/hp800.h: Remove file.
1423 * m/mips.h: Remove file.
1424
1425 2010-12-03 Jan Djärv <jan.h.d@swipnet.se>
1426
1427 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
1428 with cursor color and draw a rectangle around the image (Bug#7412).
1429
1430 2010-12-03 Andreas Schwab <schwab@linux-m68k.org>
1431
1432 * frame.c (x_set_font): Remove unused variable.
1433
1434 2010-12-02 Jan Djärv <jan.h.d@swipnet.se>
1435
1436 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
1437
1438 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
1439 drawing text under filled box cursor (Bug#7479).
1440
1441 2010-11-27 Kenichi Handa <handa@m17n.org>
1442
1443 * charset.c (emacs_mule_charset): Make it an array of charset ID;
1444 i.e. integer.
1445 (Fdefine_charset_internal): Adjust for the above change.
1446 (init_charset_once): Likewise.
1447
1448 * charset.h (emacs_mule_charset): Adjust the prototype.
1449 Delete duplicated extern.
1450
1451 * coding.c (emacs_mule_char): Adjust for the change of
1452 emacs_mule_charset.
1453
1454 * lread.c (read_emacs_mule_char): Adjust for the change of
1455 emacs_mule_charset.
1456
1457 2010-11-27 Eli Zaretskii <eliz@gnu.org>
1458
1459 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1460 of w32api >= 3.15. (Bug#6989) (Bug#7452)
1461
1462 2010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1463
1464 * alloc.c (mark_terminals): Ensure that the image cache is marked
1465 even if the terminal object was marked earlier (Bug#6301).
1466
1467 2010-11-21 Chong Yidong <cyd@stupidchicken.com>
1468
1469 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
1470
1471 2010-11-27 Jan Djärv <jan.h.d@swipnet.se>
1472
1473 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
1474 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
1475 Use 23 as menubar height if 0. (Bug#7425).
1476
1477 2010-11-26 Eli Zaretskii <eliz@gnu.org>
1478
1479 * xdisp.c (set_message_1): Force paragraph direction in echo area
1480 be left-to-right.
1481
1482 * keyboard.c (make_lispy_position): Put a meaningful value in yret
1483 when the click is on the header or mode line.
1484
1485 2010-11-25 Eli Zaretskii <eliz@gnu.org>
1486
1487 * xdisp.c (set_cursor_from_row): Don't forget to consider the
1488 `cursor' property of the first character in overlay strings.
1489 (Bug#7474) (Bug#7481)
1490
1491 2010-11-24 Jan Djärv <jan.h.d@swipnet.se>
1492
1493 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
1494 (NSLeftAlternateKeyMask): New defines.
1495 (keyDown): Parse left and right keys separately (Bug#7458).
1496 Compare Left key masks exactly (Bug#7458).
1497
1498 2010-11-23 Eli Zaretskii <eliz@gnu.org>
1499
1500 * intervals.c (temp_set_point_both): Define before calling, to
1501 avoid GCC warnings.
1502
1503 2010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
1504
1505 * nsmenu.m: Use #include <config.h> instead of "config.h".
1506
1507 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
1508 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1509 Move declarations ...
1510 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
1511 (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
1512 ... here.
1513
1514 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
1515 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
1516 (gdb_pvec_type):
1517 * print.c (print_output_debug_flag):
1518 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
1519 (safe_debug_print): New declaration.
1520
1521 * xterm.c:
1522 * systty.h:
1523 * sound.c: Include <sys/ioctl.h> unconditionally.
1524
1525 2010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1526
1527 * alloc.c (mark_maybe_object): Return early if given a Lisp
1528 integer (Bug#6301).
1529
1530 2010-11-21 Ken Brown <kbrown@cornell.edu>
1531
1532 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
1533
1534 2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
1535
1536 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
1537 Define (Bug#7458).
1538 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
1539 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
1540 NSRightControlKeyMask also (Bug#7458).
1541 (keyDown): Ditto (Bug#7458).
1542 (syms_of_nsterm): Defvar ns-right-command-modifier and
1543 ns-right-control-modifier (Bug#7458).
1544
1545 2010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1546
1547 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
1548 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
1549
1550 * intervals.h (temp_set_point, temp_set_point_both):
1551 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
1552
1553 2010-11-20 Ken Brown <kbrown@cornell.edu>
1554
1555 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1556
1557 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1558
1559 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
1560 \xNNNNNN for hex-code display of glyphless characters.
1561
1562 2010-11-20 Jan Djärv <jan.h.d@swipnet.se>
1563
1564 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
1565 Set important to ! vert_only.
1566 (xg_show_toolbar_item): Don't show label horizontally if
1567 tool item isn't important.
1568 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
1569 xg_make_tool_item, or update important on existing tool item.
1570
1571 * keyboard.c (QCvert_only): New variable.
1572 (parse_tool_bar_item): Check for QCvert_only.
1573 (syms_of_keyboard): Initialize QCvert_only.
1574
1575 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
1576
1577 2010-11-20 Eli Zaretskii <eliz@gnu.org>
1578
1579 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
1580 same in-line.
1581
1582 2010-11-20 Andreas Schwab <schwab@linux-m68k.org>
1583
1584 * xfaces.c (lookup_face): Make static.
1585 * dispnew.c (copy_row_except_pointers): Likewise.
1586 * syntax.c (dec_bytepos): Likewise.
1587 (inc_bytepos): Remove.
1588 * dispextern.h (lookup_face): Remove declaration.
1589
1590 2010-11-19 Eli Zaretskii <eliz@gnu.org>
1591
1592 * xdisp.c (set_cursor_from_row): Display cursor after all the
1593 glyphs that come from an overlay. Don't overstep the last glyph
1594 when skipping glyphs from an overlay. (Bug#6687)
1595
1596 2010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
1597
1598 * alloc.c (refill_memory_reserve): Move declaration ...
1599 * lisp.h (refill_memory_reserve): ... here.
1600
1601 * strftime.c (_strftime_copytm): Add declaration.
1602
1603 * callproc.c (syms_of_callproc): Use intern_c_string.
1604
1605 Move declarations from .c files to .h files.
1606 * process.c (timers_run):
1607 * minibuf.c (quit_char):
1608 * lread.c (read_emacs_mule_char):
1609 * keyboard.c (minibuf_level, message_enable_multibyte)
1610 (pending_malloc_warning):
1611 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
1612 (Qonly): Remove declarations.
1613 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
1614 (Vselect_active_regions):
1615 * keyboard.h (timers_run): Add declarations.
1616
1617 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
1618 (tm_diff): Convert definitions to standard C.
1619 (extra_args_spec_iso): Remove, unused.
1620
1621 2010-11-18 Jan Djärv <jan.h.d@swipnet.se>
1622
1623 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
1624
1625 * config.in (HAVE_G_TYPE_INIT): New symbol.
1626
1627 2010-11-18 Eli Zaretskii <eliz@gnu.org>
1628
1629 * lread.c (Fload): Mention `load-in-progress' and
1630 `load-file-name'. (Bug#7346)
1631
1632 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
1633 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
1634 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
1635 subprocesses. Use buffer_free only ifdef subprocesses.
1636
1637 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
1638 the subprocesses version, not in the non-subprocesses one.
1639
1640 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
1641
1642 2010-11-17 Eli Zaretskii <eliz@gnu.org>
1643
1644 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
1645 lines on text-mode terminals. (bug#7417)
1646
1647 2010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1648
1649 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
1650 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
1651
1652 2010-11-17 Kenichi Handa <handa@m17n.org>
1653
1654 * coding.c (Fset_terminal_coding_system_internal): Fix previous
1655 change (set charset-ID list instead of charset-symbol list).
1656
1657 2010-11-16 Chong Yidong <cyd@stupidchicken.com>
1658
1659 * keyboard.c (make_lispy_position): For text area clicks, record Y
1660 pixel position relative to the text area, excluding header line.
1661 Also change X and Y to Lisp_Objects, not pointers; don't return
1662 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
1663 buffer_posn_from_coords counting from the start of the text area.
1664 (Fposn_at_x_y, make_lispy_event): Callers changed.
1665
1666 * window.c (coordinates_in_window): Change X and Y to ints rather
1667 than pointers; don't return coordinates via pointers.
1668 (struct check_window_data): Change X and Y from pointers to ints.
1669 (window_from_coordinates): Remove args WX and WY; don't return
1670 coordinates via pointers.
1671 (Fcoordinates_in_window_p, window_from_coordinates):
1672 (check_window_containing, Fwindow_at): Callers changed.
1673 (window_relative_x_coord): New function.
1674
1675 * window.h (window_from_coordinates, window_relative_x_coord):
1676 Update prototypes.
1677
1678 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
1679 the start of the text area.
1680
1681 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
1682 call. Use window_relative_x_coord.
1683 (note_mouse_highlight): Change window_from_coordinates call.
1684
1685 * w32term.c (w32_read_socket):
1686 * msdos.c (dos_rawgetc):
1687 * xterm.c (handle_one_xevent): Likewise.
1688
1689 2010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
1690
1691 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
1692 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
1693 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
1694 Convert definitions to standard C.
1695 * regex.c: Do not include <stdlib.h>, config.h does it.
1696 Include unistd.h.
1697 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
1698 (regerror, regfree): Convert definitions to standard C.
1699 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
1700 (__mktime_internal): Convert definitions to standard C.
1701
1702 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1703
1704 * w32proc.c:
1705 * w32inevt.c:
1706 * w32heap.c:
1707 * w32.c: Remove config.h include guards.
1708
1709 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
1710 No code changes.
1711
1712 * process.c: Include <sys/ioctl.h> unconditionally,
1713 keyboard.c already does it.
1714
1715 * keyboard.c (pending_malloc_warning): Add const to match
1716 definition in alloc.c.
1717 (Fset_input_interrupt_mode): Simplify #ifdefs.
1718
1719 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1720
1721 Clean up systty.h macros.
1722 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
1723 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
1724 definition in all uses.
1725 (EMACS_TTY_TABS_OK): Remove, it has a single user.
1726 * sysdep.c (discard_tty_input, child_setup_tty)
1727 (init_sys_modes, tabs_safe_p, reset_sys_modes):
1728 * emacs.c (shut_down_emacs):
1729 * callproc.c (child_setup):
1730 * term.c (dissociate_if_controlling_tty): Inline removed macros.
1731
1732 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
1733
1734 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1735
1736 * w32fns.c (Fx_create_frame):
1737 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
1738 resource here; it's now done at startup.
1739
1740 2010-11-14 Jan Djärv <jan.h.d@swipnet.se>
1741
1742 * xterm.c (set_wm_state): Add Qnil to final cons.
1743
1744 * xselect.c (x_send_client_event): Remove unused variables cons and
1745 size.
1746
1747 2010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1748
1749 * keyboard.c (modify_event_symbol) : Add const to array elements of
1750 arg NAME_TABLE.
1751 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
1752 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
1753 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
1754 Add const to array elements.
1755 (scroll_bar_parts): Make static. Fix position of const.
1756
1757 * w32fns.c (lispy_function_keys): Add const to extern.
1758
1759 * w32inevt.c (lispy_function_keys): Likewise.
1760
1761 2010-11-14 Chong Yidong <cyd@stupidchicken.com>
1762
1763 * xfns.c (Fx_create_frame): Don't check for the cursorColor
1764 resource here; it's now done at startup.
1765
1766 2010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
1767
1768 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
1769
1770 Fix compilation on Solaris.
1771 * sysdep.c: Do not #include <term.h>.
1772 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
1773
1774 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
1775
1776 2010-11-13 Jan Djärv <jan.h.d@swipnet.se>
1777
1778 * xterm.c (set_wm_state): Don't put Atom in cons, call
1779 make_fixnum_or_float on them first.
1780 (x_term_init): Initialize Xatom_net_supporting_wm_check and
1781 Xatom_net_supported correctly.
1782
1783 * xselect.c (x_send_client_event): Move CHECK_STRING ...
1784 (Fx_send_client_event): to here.
1785
1786 2010-11-13 Martin Rudalics <rudalics@gmx.at>
1787
1788 * window.c (Fwindow_use_time): New function.
1789
1790 2010-11-13 Eli Zaretskii <eliz@gnu.org>
1791
1792 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
1793 zero-width characters.
1794
1795 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
1796
1797 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
1798 box before drawing the glyphs inside it.
1799
1800 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
1801
1802 * dispextern.h (enum glyphless_display_method):
1803 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
1804 All users changed.
1805
1806 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1807 Fix comments.
1808 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
1809 whitespace in "[]", to simulate a box. Don't use uninitialized
1810 variable `width'.
1811
1812 2010-11-11 Julien Danjou <julien@danjou.info>
1813
1814 * xsettings.c (init_xsettings): Use already fetch atoms.
1815
1816 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
1817 from dpyinfo.
1818
1819 * xselect.c (Fx_send_client_event): Split and create
1820 x_send_client_event.
1821
1822 * lisp.h: Do not EXFUN Fx_send_client_event.
1823
1824 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
1825 from dpyinfo.
1826 (wm_supports): Use atoms from dpyinfo.
1827 (do_ewmh_fullscreen): Use atoms from dpyinfo.
1828 (x_ewmh_activate_frame): Use atoms from dpyinfo.
1829 (xembed_set_info): Use atoms from dpyinfo.
1830 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
1831 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
1832 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
1833 Get all atoms in one round-trip.
1834 (set_wm_state): Use x_send_client_event rather than
1835 Fx_send_client_event, using Atom directly.
1836 (x_ewmh_activate_frame): Ditto.
1837 (x_set_sticky): Pass atoms to set_wm_state.
1838 (do_ewmh_fullscreen): Ditto.
1839
1840
1841 * xterm.h (x_display_info): Add Xatom_net_supported,
1842 Xatom_net_supporting_wm_check, Xatom_net_active_window,
1843 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
1844
1845 * xfns.c (Fx_show_tip): Fix typo in docstring.
1846
1847 2010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
1848
1849 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
1850 it's not negative.
1851
1852 2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1853
1854 * font.c (font_filter_properties): Add const to array elements of
1855 properties args.
1856
1857 * font.h (font_filter_properties): Likewise.
1858
1859 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
1860 elements.
1861
1862 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
1863
1864 2010-11-10 Michael Albinus <michael.albinus@gmx.de>
1865
1866 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
1867 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
1868 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
1869 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
1870 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
1871
1872 2010-11-10 Glenn Morris <rgm@gnu.org>
1873
1874 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1875
1876 2010-11-09 Eli Zaretskii <eliz@gnu.org>
1877
1878 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
1879
1880 2010-11-09 Chong Yidong <cyd@stupidchicken.com>
1881
1882 * image.c (free_image): Don't garbage the frame here, since this
1883 function can be called while redisplaying (Bug#7210).
1884 (uncache_image): Garbage the frame here (Bug#6426).
1885
1886 2010-11-09 Jan Djärv <jan.h.d@swipnet.se>
1887
1888 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
1889 parent is the root window. Check this after traversing window tree.
1890
1891 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
1892
1893 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
1894
1895 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
1896 before traversing window tree (Bug#5721).
1897
1898 2010-11-07 Jan Djärv <jan.h.d@swipnet.se>
1899
1900 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
1901
1902 * xdisp.c (note_mode_line_or_margin_highlight):
1903 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
1904
1905 2010-11-06 Eli Zaretskii <eliz@gnu.org>
1906
1907 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
1908 adjust width of tool-tip frame to the width of text, excluding the
1909 stretch glyph at the beginning of R2L glyph rows.
1910
1911 * w32fns.c (Fx_show_tip): Likewise.
1912
1913 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
1914
1915 * nsfont.m: Include termchar for new mouse-highlight.
1916 (nsfont_draw): Use MOUSE_HL_INFO.
1917
1918 2010-11-05 Eli Zaretskii <eliz@gnu.org>
1919
1920 Unify mouse-highlight code for all GUI and TTY sessions.
1921
1922 * term.c: Remove static mouse_face_* variables. All users
1923 changed.
1924 (term_show_mouse_face, term_clear_mouse_face)
1925 (fast_find_position, term_mouse_highlight): Functions deleted.
1926 (tty_draw_row_with_mouse_face): New function.
1927 (term_mouse_movement): Call note_mouse_highlight instead of
1928 term_mouse_highlight.
1929
1930 * nsterm.m (ns_update_window_begin, ns_update_window_end)
1931 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
1932 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
1933 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
1934 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
1935 Replace Display_Info with Mouse_HLInfo everywhere where
1936 mouse_face_* members were accessed for mouse highlight purposes.
1937
1938 * xterm.c (x_update_window_begin, x_update_window_end)
1939 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
1940 (handle_one_xevent, x_free_frame_resources, x_term_init):
1941 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
1942 members were accessed for mouse highlight purposes.
1943
1944 * w32term.c (x_update_window_begin, x_update_window_end)
1945 (x_update_end, w32_read_socket, x_free_frame_resources)
1946 (w32_initialize_display_info): Replace Display_Info with
1947 Mouse_HLInfo everywhere where mouse_face_* members were accessed
1948 for mouse highlight purposes.
1949
1950 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
1951 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
1952 unless the frame is on a window-system.
1953 (get_tool_bar_item, handle_tool_bar_click)
1954 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
1955 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1956 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1957 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
1958 Replace Display_Info with Mouse_HLInfo everywhere where
1959 mouse_face_* members were accessed for mouse highlight purposes.
1960 (coords_in_mouse_face_p): Move prototype out of the
1961 HAVE_WINDOW_SYSTEM conditional.
1962 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
1963 HAVE_WINDOW_SYSTEM block.
1964 (try_window_id) [HAVE_GPM || MSDOS]:
1965 Call x_clear_window_mouse_face.
1966 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
1967 systems. Call tty_draw_row_with_mouse_face for TTY systems.
1968 (show_mouse_face): Call draw_row_with_mouse_face, instead of
1969 calling draw_glyphs directly.
1970 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
1971 (cursor_in_mouse_face_p, rows_from_pos_range)
1972 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
1973 (note_mode_line_or_margin_highlight, note_mouse_highlight)
1974 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
1975 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
1976 fragments.
1977 (note_mouse_highlight): Call popup_activated for MSDOS as well.
1978 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
1979 integer.
1980 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
1981 (x_consider_frame_title, tool_bar_lines_needed):
1982 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
1983 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1984 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1985 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1986 part.
1987
1988 * dispnew.c (mirror_make_current): Set Y coordinate of the
1989 mode-line and header-line rows.
1990 (init_display): Setup initial frame's output_data for text
1991 terminal frames.
1992
1993 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1994 its own definition on msdos.c.
1995
1996 * msdos.c (show_mouse_face, clear_mouse_face)
1997 (fast_find_position, IT_note_mode_line_highlight)
1998 (IT_note_mouse_highlight): Functions deleted.
1999 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
2000 instead of IT_note_mouse_highlight.
2001 (draw_row_with_mouse_face, popup_activated): New functions.
2002 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
2003 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
2004 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
2005 where mouse_face_* members were accessed for mouse highlight
2006 purposes.
2007
2008 * msdos.h (initialize_msdos_display): Add prototype.
2009
2010 * frame.h (MOUSE_HL_INFO): New macro.
2011
2012 * lisp.h (Mouse_HLInfo): New data type.
2013
2014 * xterm.h (struct x_display_info):
2015 * w32term.h (struct w32_display_info):
2016 * nsterm.h (struct ns_display_info):
2017 * termchar.h (struct tty_display_info): Use it instead of
2018 mouse_face_* members.
2019
2020 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
2021 1st argument.
2022 (frame_to_window_pixel_xy, note_mouse_highlight)
2023 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
2024 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
2025 HAVE_WINDOW_SYSTEM conditional.
2026 (draw_row_with_mouse_face): Declare prototype.
2027 (tty_draw_row_with_mouse_face): Declare prototype.
2028
2029 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2030
2031 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
2032 Remove unused variables.
2033
2034 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2035
2036 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
2037 logic pointed out by Eli Zaretskii.
2038
2039 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2040
2041 * coding.c (coding-category-list): Refer to set-coding-system-priority
2042 instead of the obsolete set-coding-priority in the doc string.
2043
2044
2045 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2046
2047 * nsfont.m (nsfont_draw): Correct previous patch to return
2048 correct value.
2049 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
2050 don't change the method signature, change the return.
2051
2052 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
2053
2054 * nsfont.m (nsfont_draw)
2055 * nsimage.m (EmacsImage-setXBMColor:)
2056 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
2057
2058 2010-11-03 Julien Danjou <julien@danjou.info>
2059
2060 * image.c (gif_load): Add support for transparency and specified
2061 :background.
2062
2063 2010-11-01 Kenichi Handa <handa@m17n.org>
2064
2065 * dispextern.h (lookup_glyphless_char_display): Extern it.
2066
2067 * termhooks.h (struct terminal): New member charset_list.
2068
2069 * coding.c (Fset_terminal_coding_system_internal): Set the
2070 `charset_list' member of struct terminal.
2071
2072 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
2073 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2074
2075 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
2076 (lookup_glyphless_char_display): Set it->what at the end.
2077 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2078 (last_glyphless_glyph_merged_face_id): Make them non-static.
2079
2080 * w32term.c (x_draw_glyphless_glyph_string_foreground):
2081 Fix the arg with_background for font->driver->draw.
2082
2083 2010-11-01 Kenichi Handa <handa@m17n.org>
2084
2085 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
2086 Surround chp by parentheses.
2087
2088 2010-11-01 Kenichi Handa <handa@m17n.org>
2089
2090 Implement various display methods for glyphless characters.
2091
2092 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
2093 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
2094 (Qzero_width): New variables.
2095 (THIN_SPACE_WIDTH): New macro.
2096 (lookup_glyphless_char_display): New funciton.
2097 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
2098 (last_glyphless_glyph_merged_face_id): New variables.
2099 (get_next_display_element): Check glyphless characters.
2100 (redisplay_internal): Initialize last_glyphless_glyph_frame and
2101 last_glyphless_glyph_face_id.
2102 (fill_glyphless_glyph_string): New function.
2103 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
2104 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
2105 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
2106 (x_produce_glyphs): If a suitable font is not found, produce a
2107 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
2108 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
2109 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
2110 Qzero_width.
2111 (Vglyphless_char_display): Declare it as a Lisp variable.
2112
2113 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
2114 (struct glyph): Change the size of the member "type" to 3.
2115 Add glyphless to the union slice and u.
2116 (enum display_element_type): Add IT_GLYPHLESS.
2117 (enum glyphless_display_method): New enum.
2118 (struct it): New member glyphless_method.
2119 (Vglyphless_char_display): Extern it.
2120
2121 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
2122 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2123
2124 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
2125 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
2126
2127 * nsterm.m (ns_draw_glyph_string): Handle the case
2128 GLYPHLESS_GLYPH (the detail is not yet implemented).
2129
2130 2010-10-31 Glenn Morris <rgm@gnu.org>
2131
2132 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
2133
2134 * frame.c (syms_of_frame) <tool-bar-mode>:
2135 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
2136
2137 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
2138
2139 * xterm.c (x_connection_closed): Print informative error message
2140 when aborting on GTK. This requires using shut_down_emacs
2141 directly instead of Fkill_emacs.
2142
2143 2010-10-29 Eli Zaretskii <eliz@gnu.org>
2144
2145 * emacs.c (main): Call syms_of_filelock unconditionally.
2146
2147 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
2148 clause, but keep part of it conditioned on CLASH_DETECTION.
2149
2150 2010-10-29 Glenn Morris <rgm@gnu.org>
2151
2152 * nsfns.m (Fx-display-save-under, Fx-open-connection)
2153 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
2154 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
2155 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
2156 Sync docs between X, W32, NS.
2157
2158 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
2159 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
2160
2161 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
2162
2163 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
2164 otherwise, bootstrapping on Windows fails to compile macroexp.el.
2165
2166 2010-10-26 Eli Zaretskii <eliz@gnu.org>
2167
2168 * cmds.c (internal_self_insert): Don't insert if argument N is
2169 zero or negative. (Bug#7281)
2170
2171 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
2172
2173 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
2174
2175 2010-10-25 Glenn Morris <rgm@gnu.org>
2176
2177 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
2178
2179 2010-10-24 Glenn Morris <rgm@gnu.org>
2180
2181 * w32fns.c (Fx_synchronize, Fx_change_window_property)
2182 (Fx_window_property, Fx_file_dialog):
2183 * xfns.c (Fx_synchronize, Fx_change_window_property)
2184 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2185
2186 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
2189
2190 2010-10-24 Eli Zaretskii <eliz@gnu.org>
2191
2192 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
2193
2194 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
2195 Deprecate use as a boolean flag.
2196
2197 2010-10-24 Jim Meyering <jim@meyering.net>
2198
2199 * emacs.c (argmatch): Don't treat "--" as "--chdir".
2200
2201 2010-10-24 Glenn Morris <rgm@gnu.org>
2202
2203 * w16select.c (syms_of_win16select) <selection-coding-system>:
2204 <next-selection-coding-system>:
2205 * w32select.c (syms_of_w32select) <selection-coding-system>:
2206 <next-selection-coding-system>:
2207 Sync docs with select.el.
2208
2209 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
2210 Lisp version.
2211
2212 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2213 Sync doc with the xterm.c version.
2214
2215 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
2216 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2217
2218 2010-10-23 Glenn Morris <rgm@gnu.org>
2219
2220 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2221 * frame.c (syms_of_frame) <menu-bar-mode>:
2222 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
2223 <hourglass-delay>: Sync docs with Lisp.
2224
2225 2010-10-23 Eli Zaretskii <eliz@gnu.org>
2226
2227 Implement mouse highlight for bidi-reordered lines.
2228
2229 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
2230 (mouse_face_from_string_pos): New function, replaces
2231 fast_find_string_pos.
2232 (note_mouse_highlight): Call it instead of fast_find_string_pos.
2233 (note_mode_line_or_margin_highlight): Support bidi-reordered
2234 strings and R2L glyph rows. Fix comments.
2235 (note_mouse_highlight): When bidi reordering is turned on in a
2236 buffer, call next-single-property-change and
2237 previous-single-property-change with last argument nil.
2238 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
2239 glyph that stands for no text beyond the line end.
2240 (row_containing_pos): Don't return too early when CHARPOS is in a
2241 bidi-reordered continued line. Return immediately when the first
2242 hit is found in a line that is not continued, or when an exact
2243 match for CHARPOS is found.
2244 (rows_from_pos_range): New function.
2245 (mouse_face_from_buffer_pos): Use it instead of calling
2246 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
2247 function to support mouse highlight in bidi-reordered lines and
2248 not to assume that START_CHARPOS is always in mouse_face_beg_row.
2249 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
2250 that the former is always above the latter or identical to it.
2251 (show_mouse_face): Support drawing highlighted R2L lines.
2252 (coords_in_mouse_face_p): New function, bidi-aware.
2253 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
2254 Call it instead of comparing with mouse-face members of dpyinfo.
2255 (note_mode_line_or_margin_highlight): Fix confusingly swapped
2256 usage of hpos and vpos.
2257
2258 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
2259
2260 * xrdb.c: Include keyboard.h for MOTIF.
2261
2262 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
2263 MOTIF (Bug#7263).
2264
2265 * xfns.c: Include Xm/TextF and Xm/List.
2266 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
2267 Make ANSI prototypes.
2268
2269 2010-10-22 Glenn Morris <rgm@gnu.org>
2270
2271 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
2272 Remove ccl and duplicate mouse.
2273
2274 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
2275
2276 * insdel.c (prepare_to_modify_buffer): Don't set
2277 saved-region-selection if modification hooks are disabled.
2278
2279 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
2280
2281 * cmds.c (Fdelete_char): Doc fix.
2282
2283 2010-10-19 Ken Brown <kbrown@cornell.edu>
2284
2285 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2286
2287 2010-10-19 Kenichi Handa <handa@m17n.org>
2288
2289 Fix incorrect font metrics when the same font is opened with
2290 different pixelsizes.
2291
2292 * xftfont.c: Include composite.h.
2293 (xftfont_shape): New function.
2294 (syms_of_xftfont): Set xftfont_driver.shape.
2295
2296 2010-10-18 Julien Danjou <julien@danjou.info>
2297
2298 * frame.c (Fframe_pointer_visible_p):
2299 Add `frame-pointer-visible-p' to get the pointer visibility.
2300
2301 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
2302
2303 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
2304 non-"EAGAIN"-like error to signal to Emacs that the socket should
2305 be closed.
2306
2307 2010-10-15 Eli Zaretskii <eliz@gnu.org>
2308
2309 * unexcoff.c (make_hdr): Fix prototype according to changes in
2310 2010-10-03T13:59:56Z!dann@ics.uci.edu.
2311
2312 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2313
2314 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
2315
2316 * Makefile.in (really-oldXMenu): Fix typo in variable name that
2317 made building the X menu fail.
2318 (really-oldXMenu): Fix my previous fix.
2319
2320 2010-10-14 Damyan Pepper <damyanp@gmail.com>
2321
2322 Fix handling of font properties on Windows (bug#6303).
2323 * font.c (font_filter_properties): New function, refactored from
2324 ftfont_filter_properties.
2325 * font.h (font_filter_properties): Declare.
2326 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
2327 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
2328 (w32font_filter_properties): New function.
2329 (w32font_driver): Add w32font_filter_properties.
2330
2331 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2332
2333 * font.c (Ffont_variation_glyphs):
2334 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2335
2336 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
2337
2338 * w32fns.c (w32_wnd_proc, file_dialog_callback):
2339 * w32font.c (w32_generic_family):
2340 * w32inevt.c (key_event):
2341 * w32menu.c (fill_in_menu):
2342 * w32proc.c (reader_thread, w32_executable_type, compare_env)
2343 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
2344 * w32term.c (w32_read_socket): Make static.
2345
2346 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2347
2348 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
2349 prototypes; all callers changed.
2350
2351 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2352
2353 * makefile.w32-in (TLIB2): Rename from TLIBW32.
2354 (OBJ2): New macro.
2355 (WIN32OBJ, FONTOBJ): Remove.
2356 (OBJ1): Redistribute object files with OBJ2.
2357 (LIBS, $(TEMACS)): Use TLIB2.
2358 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
2359 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2360
2361 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2362
2363 * emacs.c (Vdynamic_library_alist)
2364 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
2365 Doc fix.
2366
2367 * lisp.h (Vdynamic_library_alist): Declare extern.
2368
2369 * image.c (Vimage_library_alist)
2370 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
2371 (lookup_image_type): Use Vdynamic_library_alist.
2372 (Finit_image_library): Doc fix.
2373
2374 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
2375
2376 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
2377 (lispdir): Remove trailing /, update all uses.
2378
2379 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
2380
2381 * nsterm.m (Qleft): Declare.
2382 (ns_right_alternate_modifier): New variable
2383 (NSRightAlternateKeyMask): New define.
2384 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
2385 ns_right_alternate_modifier isn't Qleft.
2386 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
2387 as emacs modifier for NSRightAlternateKeyMask.
2388 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
2389
2390 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
2391
2392 * gnutls.c (emacs_gnutls_write): If we're trying to write before
2393 gnutls is ready, return EAGAIN as the errno.
2394
2395 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
2396
2397 * vm-limit.c:
2398 * unexhp9k800.c:
2399 * unexelf.c:
2400 * unexaix.c:
2401 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
2402
2403 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
2404 (PROFILING_LDFLAGS): Remove, not needed anymore.
2405
2406 * Makefile.in: Use $(...) everywhere instead of ${...}
2407 (CRT_DIR): Move near potential user.
2408 (START_FILE): Move near CRT_DIR, it might use it.
2409
2410 * sysdep.c (LPASS8): Remove, unused.
2411 (emacs_ospeed): Change from being a global to a local in the only
2412 user: init_baud_rate.
2413
2414 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2415
2416 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
2417 (emacs_gnutls_write): Remove the debuggin fsync call.
2418 (emacs_gnutls_read): Return -1 if we got an error from
2419 gnutls_read. This allows us to actually read lots of data from
2420 the GnuTLS stream.
2421 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
2422 According to the documentation, this is correct, and it seems to
2423 make things work.
2424
2425 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
2426
2427 * xterm.c (x_draw_relief_rect): Clear corner pixels.
2428
2429 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2430
2431 * keyboard.c: Revert last change; it was not intended to be
2432 synchronized with the trunk.
2433
2434 2010-10-08 Kenichi Handa <handa@m17n.org>
2435
2436 * coding.c (complement_process_encoding_system): Fix previous change.
2437
2438 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2439
2440 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
2441 (Fdbus_init_bus): ... here. (Bug#7113)
2442
2443 2010-10-08 Glenn Morris <rgm@gnu.org>
2444
2445 * buffer.c (before-change-functions, after-change-functions):
2446 Three-year overdue doc fix following 2007-08-13 change.
2447
2448 2010-10-08 Kenichi Handa <handa@m17n.org>
2449
2450 * coding.c (coding_inherit_eol_type): If parent doesn't specify
2451 eol-format, inherit from the system's default.
2452 (complement_process_encoding_system): Make a new coding system
2453 inherit the original eol-format.
2454
2455 2010-10-08 Kenichi Handa <handa@m17n.org>
2456
2457 * coding.c (complement_process_encoding_system): New function.
2458
2459 * coding.h (complement_process_encoding_system): Extern it.
2460
2461 * callproc.c (Fcall_process): Complement the coding system for
2462 encoding arguments.
2463 (Fcall_process_region): Complement the coding system for encoding
2464 the input to the process.
2465
2466 * process.c (Fstart_process): Complement the coding system for
2467 encoding arguments.
2468 (send_process): Complement the coding system for encoding what
2469 sent to the process.
2470
2471 2010-10-08 Kenichi Handa <handa@m17n.org>
2472
2473 * xfont.c (xfont_open): Fix setting of font->average_width from
2474 :avgwidth property (Bug#7123).
2475
2476 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
2477
2478 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
2479 is more portable.
2480
2481 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
2482 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
2483 has not defined SIGIO.
2484
2485 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
2486
2487 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
2488 draw the outermost line using the black relief, for legibility.
2489 Omit drawing the four corner pixels.
2490
2491 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
2492
2493 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
2494 (read_key_sequence): Inline echo_prompt.
2495 (echo_dash): Add a dash only if key is continued (Bug#7137).
2496
2497 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
2498
2499 Remove O_RDONLY, O_WRONLY definitions, not needed.
2500 * unexcoff.c:
2501 * lread.c:
2502 * fileio.c:
2503 * doc.c:
2504 * callproc.c:
2505 * alloc.c:
2506 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
2507
2508 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
2509
2510 * gnutls.h (GNUTLS_LOG2): Convenience macro.
2511
2512 * gnutls.c: Add property list symbol holders.
2513 (emacs_gnutls_handshake): Clarify how sockets are passed to
2514 GnuTLS.
2515 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
2516 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
2517 and keyfiles to be a list of file names. Default to "NORMAL" for
2518 the priority string. Improve logging.
2519
2520 2010-10-03 Glenn Morris <rgm@gnu.org>
2521
2522 * fileio.c (Vdirectory_sep_char): Remove.
2523
2524 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
2525
2526 * termhooks.h: Remove #ifdef CONSP.
2527
2528 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
2529
2530 Include <fcntl.h> unconditionally.
2531 * termcap.c:
2532 * sysdep.c:
2533 * lread.c:
2534 * keyboard.c:
2535 * filelock.c:
2536 * fileio.c:
2537 * doc.c:
2538 * callproc.c:
2539 * alloc.c: Remove include guards for <fcntl.h>, process.c already
2540 does it.
2541
2542 * process.c: Do not include <sys/wait.h>, syswait.h does it.
2543
2544 * sysdep.c (flush_pending_output): Remove code, does not do
2545 anything on any platform.
2546
2547 Remove unused code.
2548 * sysdep.c (select_alarm, sys_select, read_input_waiting):
2549 Remove select emulation, all systems support select.
2550 (set_exclusive_use): Remove, the only user is in an #if 0 block.
2551 * process.c (create_process): Remove #if 0 code.
2552
2553 Remove unused arguments for unexec.
2554 The third one is never used, and the last two are always passed as zero.
2555 * emacs.c (unexec): Add declaration.
2556 (Fdump_emacs): Only pass the first two arguments to unexec.
2557 Simplify #ifdef.
2558 * unexw32.c (unexec):
2559 * unexsol.c (unexec):
2560 * unexhp9k800.c (unexec):
2561 * unexcw.c (unexec): Remove the last 3 arguments, unused.
2562 * unexelf.c (unexec): Remove the last 3 arguments, unused.
2563 (find_section): Use const.
2564 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
2565 (unexec_error): Declare it NO_RETURN.
2566 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
2567 it as an argument, remove data_start and entry_address arguments, unused.
2568 (unexec): Remove bss_start, data_start and
2569 entry_address arguments.
2570 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
2571 it as an argument, remove data_start and entry_address arguments, unused.
2572 (unexec): Remove bss_start, data_start and
2573 entry_address arguments.
2574
2575 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
2576
2577 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
2578
2579 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
2580 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
2581 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
2582 Fix typos in docstrings.
2583 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
2584 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
2585
2586 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
2587
2588 * keyboard.c (command_loop_1): Make sure the mark is really alive
2589 before using it (Bug#7044).
2590
2591 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
2592
2593 * makefile.w32-in (tags): Rename target to full-tags.
2594
2595 2010-10-02 Eli Zaretskii <eliz@gnu.org>
2596
2597 * emacs.c (main): Remove !WINDOWSNT conditional.
2598 (Fkill_emacs): Don't mention exemption on MS-Windows.
2599
2600 2010-10-02 Glenn Morris <rgm@gnu.org>
2601
2602 * character.c (Fchar_bytes): Remove obsolete function.
2603 (syms_of_character): Remove Schar_bytes.
2604
2605 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
2606 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
2607 in batch-mode.
2608 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
2609 (kill-emacs-hook): Doc fix.
2610
2611 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2612
2613 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
2614 (parse_region): Rework to take regions instead of strings, and
2615 renamed to reflect that these are the libxml functions.
2616
2617 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2618
2619 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
2620 screen dimensions in tty->Wcm.
2621
2622 * xdisp.c (set_cursor_from_row): When the row is truncated and
2623 point is outside the range of displayed characters, position the
2624 cursor inside the scroll margin. (Bug#6349)
2625
2626 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
2627
2628 Do not include stdlib.h and string.h, config.h does it.
2629 * xfont.c:
2630 * w32term.c:
2631 * w32reg.c:
2632 * w32inevt.c:
2633 * w32heap.c:
2634 * w32console.c:
2635 * w16select.c:
2636 * unexsol.c:
2637 * term.c:
2638 * sound.c:
2639 * scroll.c (m):
2640 * gtkutil.c:
2641 * font.c:
2642 * filelock.c:
2643 * fileio.c:
2644 * dosfns.c:
2645 * dbusbind.c:
2646 * bidi.c:
2647 * callproc.c:
2648 * process.c:
2649 * msdos.c:
2650 * charset.c: Do not include stdlib.h and string.h, config.h does it.
2651
2652 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
2653 defines it.
2654
2655 * process.c: Move #include <pty.h> earlier.
2656 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
2657 (pty_name): Move definition later.
2658
2659 * nsselect.m (syms_of_nsselect):
2660 * nsmenu.m (syms_of_nsmenu):
2661 * nsfns.m (syms_of_nsfns):
2662 * msdos.c (syms_of_msdos):
2663
2664 * image.c (syms_of_image):
2665 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
2666
2667 * point.h: Remove, unused.
2668
2669 2010-10-01 Eli Zaretskii <eliz@gnu.org>
2670
2671 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
2672 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
2673 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
2674
2675 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2676
2677 * xml.c (parse_string): Use const.
2678
2679 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2680
2681 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
2682 Also only override Vprint_level if it isn't already bound, and increase
2683 the level to 8 to produce more useful backtraces for bug reports.
2684
2685 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2686
2687 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
2688
2689 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
2690
2691 * w32console.c (vga_stdcolor_name): Remove unused function;
2692 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
2693
2694 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2695
2696 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
2697 (Fgnutls_boot): Start the handshake.
2698 (emacs_gnutls_read): Perform the handshake from the reader loop.
2699 (Fgnutls_boot): Remove some debugging messages.
2700 Change indentation throughout to use the Emacs style.
2701 (emacs_gnutls_handshake): Cast the fds to something that's
2702 possibly the expected length.
2703 (emacs_gnutls_write): Return -1 if we try to write before handshake.
2704
2705 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
2706
2707 * process.c (make_process): Set the gnutls_p field to zero by
2708 default.
2709 (read_process_output): Always call the gnutls_read function if the
2710 stream is a gnutls stream.
2711 (send_process): Ditto for writes.
2712
2713 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
2714 or write anything until the state is GNUTLS_STAGE_READY.
2715 (Fgnutls_boot): Mark the stream as being a gnutls stream.
2716
2717 2010-09-29 Eli Zaretskii <eliz@gnu.org>
2718
2719 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
2720 NEUTRAL_DIR.
2721 (handle_invisible_prop, iterate_out_of_display_property)
2722 (next_element_from_buffer): If bidi_it.first_elt is set, call
2723 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
2724 (Bug#7128)
2725
2726 * print.c (print_object): Fix format string and argument types for
2727 printing a Lisp_Misc_Marker.
2728
2729 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
2730 (load_overlay_strings, get_overlay_strings_1)
2731 (get_overlay_strings, forward_to_next_line_start)
2732 (back_to_previous_visible_line_start, reseat, reseat_to_string)
2733 (get_next_display_element, next_element_from_string)
2734 (next_element_from_c_string, next_element_from_buffer)
2735 (move_it_vertically_backward, move_it_by_lines, add_to_log)
2736 (message_dolog, message_log_check_duplicate, message2_nolog)
2737 (message3, message3_nolog, vmessage, set_message, set_message_1)
2738 (hscroll_window_tree, text_outside_line_unchanged_p)
2739 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
2740 (find_last_unchanged_at_beg_row)
2741 (find_first_unchanged_at_end_row, row_containing_pos)
2742 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
2743 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
2744 Use EMACS_INT for buffer and string positions.
2745
2746 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
2747 (row_containing_pos): Adjust prototype.
2748
2749 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
2750 (message2_nolog, set_message): Adjust prototypes.
2751
2752 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2753
2754 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
2755 (Fgnutls_boot): Use SDATA.
2756 (Fgnutls_handshake): Remove unused var `max_log_level'.
2757
2758 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2759
2760 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
2761 (Bug#7113)
2762
2763 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
2764
2765 * xgselect.c (xg_select): Clear file descriptors not set from
2766 rfds and wfds.
2767
2768 * process.c (wait_reading_process_output): Add missing FD_CLR
2769 for write_mask (must mirror connect_wait_mask).
2770
2771 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2772
2773 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
2774 prefix.
2775 (Fgnutls_boot): Use changed process members. Use log level with a
2776 function parameter to set it. Bring back Emacs-level debugging
2777 messages at log level 1 and 2.
2778
2779 * process.c (make_process): Initialize gnutls_log_level.
2780
2781 * process.h: Add gnutls_log_level and rename x509_cred and
2782 anon_cred to have the gnutls_ prefix for consistency.
2783
2784 * gnutls.h (GNUTLS_LOG): Add convenience macro.
2785
2786 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
2787
2788 * w32.c (g_b_init_get_sid_identifier_authority)
2789 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
2790 Remove, not used.
2791 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
2792 (init_winsock): Remove useless assignment.
2793 (open_process_token, get_token_information, lookup_account_sid)
2794 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
2795 (get_security_descriptor_owner, get_security_descriptor_group)
2796 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
2797 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
2798 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
2799 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
2800 (unc_volume_file_attributes, convert_from_time_t)
2801 (create_toolhelp32_snapshot, process32_first, process32_next)
2802 (open_thread_token, impersonate_self, revert_to_self)
2803 (get_process_memory_info, get_process_working_set_size)
2804 (global_memory_status, global_memory_status_ex, socket_to_fd)
2805 (shutdown_handler): Make static.
2806
2807 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
2808
2809 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
2810 (xd_pending_messages): Functions removed.
2811 (xd_read_queued_messages): Add parameters fd, *data, for_read in
2812 order to be compatible with add_read_fd. Determine bus from data,
2813 and call xd_read_message just for this bus.
2814 (xd_add_watch): Use xd_read_queued_messages as callback function.
2815 Add data.
2816
2817 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
2818
2819 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2820
2821 * gnutls.c (gnutls_log_function): Add more debugging.
2822 (emacs_gnutls_read): Don't infloop while reading.
2823
2824 2010-09-27 Kenichi Handa <handa@m17n.org>
2825
2826 These changes are to remove restriction on the number of glyphs in
2827 one composition.
2828
2829 * dispextern.h (struct glyph): Change the member "slice" to union.
2830 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
2831 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
2832
2833 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
2834 instead of glyph->slice.
2835 (marginal_area_string): Likewise.
2836
2837 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
2838 glyph->u.cmp.
2839 (append_composite_glyph): Likewise.
2840
2841 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
2842 glyph->u.cmp.
2843 (fill_gstring_glyph_string, x_get_glyph_overhangs)
2844 (append_composite_glyph): Likewise.
2845 (fill_image_glyph_string): Use glyph->slice.img instead of
2846 glyph->slice.
2847 (append_glyph, produce_image_glyph, append_stretch_glyph)
2848 (note_mouse_highlight): Likewise.
2849
2850 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
2851
2852 * process.c (add_keyboard_wait_descriptor)
2853 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
2854 (wait_reading_process_output): Don't pass write_mask to select
2855 if SELECT_CANT_DO_WRITE_MASK is defined.
2856 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
2857
2858 * process.h (add_read_fd, delete_read_fd, add_write_fd)
2859 (delete_write_fd): Declare.
2860
2861 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
2862 (write_mask): New variable.
2863 (max_input_desc): Rename from max_keyboard_desc.
2864 (fd_callback_info): New variable.
2865 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
2866 New functions.
2867 (Fmake_network_process): FD_SET write_mask.
2868 (deactivate_process): FD_CLR write_mask.
2869 (wait_reading_process_output): Connecting renamed to Writeok.
2870 check_connect removed. check_write is new. Remove references to gpm.
2871 Use Writeok/check_write unconditionally (i.e. no #ifdef
2872 NON_BLOCKING_CONNECT) instead of Connecting.
2873 Loop over file descriptors and call callbacks in fd_callback_info
2874 if file descriptor is ready for I/O.
2875 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
2876 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
2877 (keyboard_bit_set): Use max_input_desc.
2878 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
2879 Remove #ifdef subprocesses. Use max_input_desc.
2880 (init_process): Initialize write_mask and fd_callback_info.
2881
2882 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
2883
2884 * dbusbind.c: Include process.h.
2885 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
2886 (xd_read_message_1): New functions.
2887 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
2888 Handle watch for both read and write.
2889 (Fdbus_init_bus): Also register xd_toggle_watch.
2890 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2891 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
2892 to dbus_connection_flush.
2893 (xd_read_message): Move most of the code to xd_read_message_1.
2894 Call xd_read_message_1 until status is COMPLETE.
2895
2896 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2897
2898 * term.c: Do not include sys/ioctl.h, not needed.
2899 (init_tty): Reorder code to reduce the number of #ifdefs.
2900 No code changes.
2901
2902 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
2903
2904 * process.h: Set up GnuTLS support.
2905
2906 * process.c (make_process, Fstart_process)
2907 (read_process_output, send_process): Set up GnuTLS support for
2908 process input/output file descriptors.
2909
2910 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
2911
2912 * gnutls.c: The source code for GnuTLS support in Emacs.
2913
2914 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
2915
2916 * config.in: Set up GnuTLS support.
2917
2918 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
2919 (obj, LIBES): Set up GnuTLS support.
2920
2921 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
2922
2923 * w32.c (get_emacs_configuration_options): Fix previous change.
2924
2925 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
2926
2927 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
2928 alive before using it (Bug#6977).
2929
2930 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
2931
2932 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
2933
2934 * dispextern.h: EMACS_INT/int fixup.
2935
2936 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
2937 fixup.
2938
2939 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
2940
2941 2010-09-25 Eli Zaretskii <eliz@gnu.org>
2942
2943 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
2944 (Fselect_window, window_scroll_pixel_based)
2945 (window_scroll_line_based, Frecenter, Fset_window_configuration):
2946 Use EMACS_INT for buffer positions.
2947
2948 * textprop.c (validate_interval_range, interval_of)
2949 (property_change_between_p, Fadd_text_properties)
2950 (set_text_properties_1, Fremove_text_properties)
2951 (Fremove_list_of_text_properties, Ftext_property_any)
2952 (Ftext_property_not_all, copy_text_properties)
2953 (text_property_list, extend_property_ranges)
2954 (verify_interval_modification): Use EMACS_INT for buffer
2955 positions.
2956
2957 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
2958 for buffer positions.
2959
2960 * process.c (read_process_output, send_process)
2961 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
2962 and string positions and size.
2963
2964 * print.c (print_object, print_string, strout): Use EMACS_INT for
2965 string indices.
2966
2967 * minibuf.c (string_to_object): Use EMACS_INT for string position
2968 and size.
2969
2970 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
2971
2972 * lread.c <read_from_string_index, read_from_string_index_byte>
2973 <read_from_string_limit, readchar_count>: Define EMACS_INT.
2974 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
2975 buffer positions and string length.
2976
2977 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2978 EMACS_INT.
2979 (echo_truncate, adjust_point_for_property, read_char)
2980 (gen_help_event, make_lispy_event, modify_event_symbol)
2981 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2982 for buffer positions and string length.
2983
2984 * keyboard.h (gen_help_event): Adjust prototype.
2985
2986 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2987
2988 * commands.h <last_point_position>: Declare EMACS_INT.
2989
2990 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2991 (truncate_echo_area): Accept EMACS_INT argument.
2992
2993 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2994
2995 * lisp.h (truncate_echo_area): Adjust prototype.
2996
2997 * composite.c (composition_adjust_point): Return EMACS_INT.
2998
2999 * composite.h (composition_adjust_point): Adjust prototype.
3000
3001 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
3002
3003 * process.c (Fmake_network_process): When arg :host is 'local,
3004 use address 127.0.0.1, not name "localhost". (Bug#6781)
3005
3006 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3007
3008 * indent.c (Fcurrent_indentation, indented_beyond_p)
3009 (compute_motion): Use EMACS_INT for buffer position variables.
3010
3011 * lisp.h (indented_beyond_p): Adjust prototype.
3012
3013 * buffer.c (overlay_strings): Return EMACS_INT.
3014
3015 * buffer.h (overlay_strings): Adjust prototype.
3016
3017 * region-cache.c (pp_cache): Adjust format to arguments.
3018
3019 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
3020 (call_debugger): Use EMACS_INT for specpdl_size related variables.
3021 (verror): Use EMACS_INT for size of allocated buffer.
3022
3023 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
3024 positions.
3025
3026 * xdisp.c (redisplay_internal, try_window_id)
3027 (set_cursor_from_row, find_first_unchanged_at_end_row):
3028 Use EMACS_INT for buffer positions.
3029
3030 * dispextern.h (set_cursor_from_row): Adjust prototype.
3031
3032 * dispnew.c (increment_matrix_positions)
3033 (increment_row_positions, copy_glyph_row_contents)
3034 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
3035 positions.
3036
3037 * dispextern.h (mode_line_string, marginal_area_string)
3038 (increment_matrix_positions, increment_row_positions):
3039 Adjust prototypes.
3040
3041 * data.c (Faref, Faset): Use EMACS_INT for string length and
3042 positions.
3043
3044 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
3045 characters to insert.
3046
3047 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
3048 position and size.
3049
3050 * syntax.c (scan_words, update_syntax_table)
3051 (prev_char_comend_first, back_comment, skip_chars)
3052 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
3053 Use EMACS_INT for buffer and string positions.
3054
3055 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
3056
3057 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
3058 positions.
3059
3060 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
3061
3062 * scroll.c (calculate_scrolling, line_ins_del)
3063 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
3064 conversion.
3065
3066 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
3067 (region_cache_backward, region_cache_forward)
3068 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
3069 conversion.
3070
3071 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3072
3073 * eval.c (verror): Fix EMACS_INT/int conversion.
3074
3075 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
3076 (print_preprocess, print_check_string_charset_prop)
3077 (print_object): Fix EMACS_INT/int conversion.
3078
3079 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
3080
3081 2010-09-24 Eli Zaretskii <eliz@gnu.org>
3082
3083 * callproc.c (Fcall_process): Use EMACS_INT for count of
3084 characters read from the subprocess.
3085
3086 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
3087 positions.
3088 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
3089 positions.
3090
3091 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
3092 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
3093 length.
3094 (advance_to_char_boundary, Fset_buffer_multibyte)
3095 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
3096 (overlay_touches_p, record_overlay_string, overlay_strings)
3097 (recenter_overlay_lists, fix_start_end_in_overlays)
3098 (modify_overlay, Fmove_overlay, report_overlay_modification)
3099 (evaporate_overlays): Use EMACS_INT for buffer positions.
3100
3101 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
3102 Adjust prototypes.
3103
3104 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
3105 positions.
3106
3107 * fns.c (Fcompare_strings, Fstring_lessp, concat)
3108 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
3109 (Fsubstring_no_properties, substring_both, Ffillarray)
3110 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
3111 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
3112 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
3113 (Fmd5): Use EMACS_INT for buffer and string positions and length
3114 variables and arguments.
3115
3116 * lisp.h (substring_both): Adjust prototype.
3117
3118 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
3119
3120 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
3121 * w32fns.c (clipboard_sequence_fn): Don't declare.
3122 (globals_of_w32fns): Don't initialize it.
3123
3124 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
3125
3126 * syntax.c (back_comment): Detect the case where a 1-char comment
3127 starter is also the 2nd char of a 2-char comment ender.
3128
3129 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
3130
3131 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
3132
3133 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3134
3135 * eval.c (verror): EMACS_INT/int cleanup.
3136
3137 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
3138 unwind_protect more than 2GB worth of functions.
3139
3140 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
3141
3142 * lisp.h: Have oblookup take EMACS_INT to allow interning big
3143 string and avoid compiler warnings.
3144 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
3145 all users.
3146
3147 * lread.c (oblookup): EMACS_INT/int cleanup.
3148
3149 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
3150
3151 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3152
3153 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
3154
3155 * lisp.h (clip_to_bounds): Adjust prototype.
3156
3157 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
3158
3159 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
3160
3161 * lisp.h: doprnt.c EMACS_INT/int cleanup.
3162
3163 * doprnt.c (doprnt): EMACS_INT/int cleanup.
3164
3165 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
3166 cleanup.
3167
3168 * lisp.h: Change the definition of all marker.c functions that
3169 take and return buffer stuff to be EMACS_INT instead of int.
3170
3171 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
3172 (buf_charpos_to_bytepos, bytepos_to_charpos)
3173 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
3174 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
3175 for all buffer positions.
3176
3177 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
3178
3179 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3180 (split_interval_right, find_interval, next_interval)
3181 (delete_node, delete_interval, interval_deletion_adjustment)
3182 (adjust_intervals_for_deletion, merge_interval_right)
3183 (merge_interval_left, graft_intervals_into_buffer)
3184 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
3185
3186 * intervals.h (traverse_intervals): Update prototype.
3187
3188 2010-09-23 Eli Zaretskii <eliz@gnu.org>
3189
3190 * indent.c (compute_motion): Use EMACS_INT for arguments to
3191 region_cache_forward.
3192
3193 * region-cache.c (struct boundary, struct region_cache):
3194 Use EMACS_INT for positions.
3195 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
3196 (delete_cache_boundaries, set_cache_region)
3197 (invalidate_region_cache, know_region_cache)
3198 (region_cache_forward, region_cache_backward, pp_cache):
3199 Use EMACS_INT for buffer positions.
3200
3201 * region-cache.h (know_region_cache, invalidate_region_cache)
3202 (region_cache_forward, region_cache_backward): Adjust prototypes.
3203
3204 * search.c (string_match_1, fast_c_string_match_ignore_case)
3205 (looking_at_1, scan_buffer, scan_newline)
3206 (find_next_newline_no_quit, find_before_next_newline)
3207 (search_command, trivial_regexp_p, search_buffer, simple_search)
3208 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
3209 and string positions and length.
3210
3211 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
3212 (find_before_next_newline): Adjust prototypes.
3213
3214 * editfns.c (transpose_markers, update_buffer_properties)
3215 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
3216 (get_pos_property, Fconstrain_to_field)
3217 (Fline_beginning_position, Fline_end_position, Fprevious_char)
3218 (Fchar_after, Fchar_before, Finsert_char)
3219 (Finsert_buffer_substring, Fcompare_buffer_substrings)
3220 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
3221 Use EMACS_INT for buffer and string position variables.
3222 (Finsert_char): Protect against too large insertions.
3223
3224 * lisp.h (clip_to_bounds): Adjust prototype.
3225
3226 * intervals.c (traverse_intervals, rotate_right, rotate_left)
3227 (balance_an_interval, split_interval_right, split_interval_left)
3228 (find_interval, next_interval, update_interval)
3229 (adjust_intervals_for_insertion, delete_node, delete_interval)
3230 (interval_deletion_adjustment, adjust_intervals_for_deletion)
3231 (offset_intervals, merge_interval_right, merge_interval_left)
3232 (graft_intervals_into_buffer, adjust_for_invis_intang)
3233 (move_if_not_intangible, get_local_map, copy_intervals)
3234 (copy_intervals_to_string, compare_string_intervals)
3235 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
3236 and for interval tree size.
3237
3238 * intervals.h (traverse_intervals, split_interval_right)
3239 (split_interval_left, find_interval, offset_intervals)
3240 (graft_intervals_into_buffer, copy_intervals)
3241 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
3242 (update_interval): Adjust prototypes.
3243
3244 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
3245 Use EMACS_INT for buffer position variables and arguments.
3246
3247 * composite.c (get_composition_id, find_composition)
3248 (run_composition_function, compose_text)
3249 (composition_gstring_width, autocmp_chars)
3250 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
3251 for buffer positions and string length variables and arguments.
3252
3253 * composite.h (get_composition_id, find_composition, compose_text)
3254 (composition_gstring_width): Adjust prototypes.
3255
3256 * editfns.c (Fformat): Use EMACS_INT for string size variables.
3257
3258 * xdisp.c (store_mode_line_noprop, display_mode_element):
3259 Use EMACS_INT for string positions.
3260
3261 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
3262 position arguments.
3263
3264 * intervals.h (get_property_and_range): Adjust prototype.
3265
3266 * character.c (parse_str_as_multibyte, str_as_multibyte)
3267 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3268 (string_count_byte8, string_escape_byte8, c_string_width)
3269 (strwidth, lisp_string_width, multibyte_chars_in_text):
3270 Use EMACS_INT for string length variables and arguments.
3271
3272 * character.h (parse_str_as_multibyte, str_as_multibyte)
3273 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
3274 (c_string_width, strwidth, lisp_string_width):
3275 Adjust prototypes.
3276
3277 * font.c (font_intern_prop): Use EMACS_INT for string length
3278 variables.
3279
3280 * font.c (font_intern_prop): Use EMACS_INT for string length
3281 variables.
3282
3283 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
3284 variables.
3285
3286 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
3287 (Fmake_string): Protect against too large strings.
3288 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
3289 (live_misc_p): Use ptrdiff_t instead of int for pointer
3290 differences.
3291 (string_bytes, check_sblock, check_string_free_list)
3292 (allocate_string_data, compact_small_strings, Fmake_string)
3293 (Fmake_bool_vector, make_string, make_unibyte_string)
3294 (make_multibyte_string, make_string_from_bytes)
3295 (make_specified_string_string, Fmake_list, Fmake_vector):
3296 Use EMACS_INT for string length variables and arguments.
3297 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
3298 (Fpurecopy): Use EMACS_INT for string size.
3299 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
3300 for vector size.
3301
3302 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
3303 (make_string_from_bytes, make_specified_string_string)
3304 (make_pure_string, string_bytes, check_point_in_composition):
3305 Adjust prototypes.
3306
3307 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3308
3309 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3310 (check_translation): Use EMACS_INT for buffer positions and
3311 length.
3312
3313 * undo.c (record_marker_adjustment, record_delete)
3314 (record_change, record_point, record_insert)
3315 (record_property_change, Fprimitive_undo): Use EMACS_INT for
3316 buffer positions.
3317
3318 * lisp.h (record_marker_adjustment, record_delete)
3319 (record_change, record_point, record_insert)
3320 (record_property_change, Fprimitive_undo): Adjust prototypes.
3321
3322 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
3323 Eli Zaretskii <eliz@gnu.org>
3324
3325 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
3326
3327 2010-09-22 Eli Zaretskii <eliz@gnu.org>
3328
3329 * minibuf.c (Fminibuffer_contents)
3330 (Fminibuffer_contents_no_properties)
3331 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
3332 positions.
3333
3334 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
3335 mark.
3336
3337 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
3338 (allocate_string_data): Accept EMACS_INT for string length.
3339
3340 * editfns.c (Ffield_string, Ffield_string_no_properties)
3341 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
3342 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
3343 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
3344 (Ffield_end): Use EMACS_INT for buffer positions.
3345
3346 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
3347 point with mark.
3348
3349 * lisp.h (allocate_string_data, make_uninit_string)
3350 (make_uninit_multibyte_string, make_buffer_string)
3351 (make_buffer_string_both): Adjust prototypes.
3352
3353 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
3354
3355 * xml.c: Switch to GNU indentation.
3356 (make_dom): Change parse tree format to match xml.el.
3357 (Fxml_parse_html_string_internal): Rename from html-parse-string.
3358 (Fxml_parse_string_internal): Rename from xml-parse-string.
3359
3360 2010-09-22 Kenichi Handa <handa@m17n.org>
3361
3362 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
3363 only if we are not at a composition.
3364 (set_iterator_to_next): Give it->end_charpos to
3365 composition_compute_stop_pos.
3366 (set_iterator_to_next, next_element_from_buffer): Likewise.
3367
3368 * dispnew.c (buffer_posn_from_coords): Fix position when the
3369 current display element is a grapheme cluster in bidi-reordered
3370 region.
3371
3372 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
3373
3374 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
3375 the regions may overlap.
3376
3377 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
3378
3379 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
3380
3381 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3382
3383 * emacs.c: Do not include sys/ioctl.h, not needed.
3384
3385 * doprnt.c: Do not include stdlib.h, config.h does it.
3386 Move #include before macro definition.
3387
3388 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
3389
3390 * Makefile.in (temacs): Link using $(CC) not $(LD).
3391 (LD_FIRSTFLAG): Define using autoconf.
3392 (LD): Remove.
3393
3394 Remove HAVE_TERMIOS definitions.
3395 * s/usg5-4-common.h (HAVE_TERMIOS):
3396 * s/template.h (HAVE_TERMIOS):
3397 * s/gnu-linux.h (HAVE_TERMIOS):
3398 * s/darwin.h (HAVE_TERMIOS):
3399 * s/cygwin.h (HAVE_TERMIOS):
3400 * s/bsd-common.h (HAVE_TERMIOS):
3401 * s/aix4-2.h (HAVE_TERMIOS):
3402 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
3403 defined on all non-MS platforms.
3404 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
3405
3406 * xterm.c (xt_action_hook): Use const.
3407
3408 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
3409
3410 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
3411 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3412 (gethostname) [!HAVE_SOCKETS]: Remove.
3413 (SOCK_REPLACE_HANDLE): Remove macro.
3414 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
3415 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
3416 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
3417 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
3418
3419 2010-09-18 Eli Zaretskii <eliz@gnu.org>
3420
3421 * deps.mk (xml.o): Add dependencies.
3422
3423 * xdisp.c (Fcurrent_bidi_paragraph_direction):
3424 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
3425
3426 * bidi.c (bidi_paragraph_init): Accept an additional argument
3427 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
3428 search back until a paragraph with a strong directional character
3429 is found, and use that to determine paragraph's base direction.
3430
3431 * dispextern.h (bidi_paragraph_init): Update prototype.
3432
3433 2010-09-17 Eli Zaretskii <eliz@gnu.org>
3434
3435 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3436 of w32api >= 3.15. (Bug#6989)
3437
3438 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
3439
3440 * process.c (wait_reading_process_output): Don't message about
3441 accept-process-output unless the time limit really is zero.
3442
3443 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3444
3445 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
3446 int/Lisp_Object mixup).
3447
3448 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3449
3450 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
3451 not HELP.
3452
3453 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
3454
3455 * frame.c (Ftool_bar_pixel_width): New function to expose tool
3456 bar's pixel width to Lisp (Bug#7048).
3457
3458 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3459
3460 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3461
3462 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
3463
3464 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
3465 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
3466
3467 2010-09-17 Kenichi Handa <handa@m17n.org>
3468
3469 * ftfont.c (ftfont_check_otf): Fix previous change.
3470
3471 2010-09-14 Kenichi Handa <handa@m17n.org>
3472
3473 * ftfont.c (ftfont_check_otf): Fix the case of checking just
3474 existence of GSUB or GPOS.
3475
3476 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
3477
3478 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
3479
3480 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
3481
3482 * xml.c (parse_buffer): Rename to parse_string(), since that's
3483 what it does.
3484 (parse_string): Return nil when the document can't be parsed.
3485
3486 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
3487
3488 * xterm.c (get_current_vm_state): New function.
3489 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
3490 want_fullscreen so set_wm_state calls are few (Bug#7013).
3491 (x_handle_net_wm_state): Move code to get_current_vm_state and
3492 call that function.
3493
3494 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
3495
3496 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
3497
3498 2010-09-14 Kenichi Handa <handa@m17n.org>
3499
3500 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
3501 we may use designation or locking-shift.
3502
3503 2010-09-14 Kenichi Handa <handa@m17n.org>
3504
3505 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
3506 sequence when the source is multibyte.
3507
3508 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
3509
3510 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
3511 Don't make first argument optional. Doc fix.
3512
3513 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
3514
3515 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
3516 parameters for the doc string.
3517
3518 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
3519
3520 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
3521
3522 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3523
3524 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
3525 (syms_of_fns): Don't defsubr Sy_or_n_p.
3526 * lisp.h: Don't declare Fy_or_n_p.
3527 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
3528
3529 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
3530
3531 * xml.c (Fxml_parse_buffer): New function to parse XML files.
3532
3533 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
3534
3535 * xml.c: New file.
3536 (Fhtml_parse_buffer): New function to interface to the libxml2
3537 html parsing function.
3538
3539 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
3540
3541 * biditype.h: Regenerate.
3542
3543 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3544
3545 * nsimage.m (ns_load_image): Check argument types.
3546
3547 * image.c: Remove all uses of gcpro.
3548 (xpm_load): Check all lisp types.
3549 (pbm_load): Likewise.
3550 (png_load): Likewise.
3551 (jpeg_load): Likewise.
3552 (tiff_load): Likewise.
3553 (gif_load): Likewise.
3554 (imagemagick_load_image): Likewise.
3555 (imagemagick_load): Likewise.
3556 (svg_load): Likewise.
3557 (gs_load): Likewise.
3558
3559 2010-09-04 Eli Zaretskii <eliz@gnu.org>
3560
3561 * w32uniscribe.c (uniscribe_shape): Update commentary.
3562 Don't try to reorder grapheme clusters, since LGSTRING should always
3563 hold them in the logical order.
3564 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
3565 return glyph codes in the logical order.
3566
3567 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
3568
3569 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
3570 (imagemagick_load_image): Fix type mismatch.
3571 (Fimagemagick_types): Likewise. Doc fix.
3572
3573 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
3574
3575 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
3576
3577 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
3578
3579 * xselect.c: Remove declaration of cut-buffer objects and functions.
3580 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
3581 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
3582 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
3583 (Fx_rotate_cut_buffers_internal): Remove.
3584 (syms_of_xselect): Remove defsubr of above.
3585 Remove intern of QCUT_BUFFERn.
3586
3587 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3588
3589 * cmds.c (Vblink_paren_function): Remove.
3590 (internal_self_insert): Make it insert N chars at a time.
3591 Don't call blink-paren-function.
3592 (Fself_insert_command): Adjust accordingly.
3593 (syms_of_cmds): Don't declare blink-paren-function.
3594
3595 2010-08-31 Kenichi Handa <handa@m17n.org>
3596
3597 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
3598 characters.
3599
3600 * term.c (encode_terminal_code): Fix the previous change.
3601 (produce_glyphs): Don't set it->char_to_display here.
3602 Don't handle unibyte-display-via-language-environment here.
3603 (produce_special_glyphs): Set temp_it.char_to_display before
3604 calling produce_glyphs.
3605
3606 * xdisp.c (get_next_display_element): Set it->char_to_display
3607 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
3608 characters.
3609 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
3610 calling PRODUCE_GLYPHS.
3611 (append_space_for_newline): Save and store it->char_to_display.
3612 Set it->char_to_display before calling PRODUCE_GLYPHS.
3613 (extend_face_to_end_of_line): Set it->char_to_display before
3614 calling PRODUCE_GLYPHS.
3615 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
3616 character to its byte value.
3617 (get_char_glyph_code): New function.
3618 (produce_stretch_glyph): Set it2.char_to_display too before
3619 calling x_produce_glyphs.
3620 (x_produce_glyphs): Simplify by using the same code for ASCII and
3621 non-ASCII characters. Don't set it->char_to_display here.
3622 Don't handle unibyte-display-via-language-environment here. For a
3623 character of no glyph, use font->space_width instead of FONT_WIDTH.
3624
3625 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3626
3627 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
3628
3629 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
3630
3631 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
3632
3633 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
3634
3635 * marker.c (Fcopy_marker): Make the first arg optional.
3636
3637 2010-08-30 Kenichi Handa <handa@m17n.org>
3638
3639 * composite.c (composition_update_it): Fix computing of
3640 cmp_it->width.
3641
3642 2010-08-29 Kenichi Handa <handa@m17n.org>
3643
3644 * term.c (encode_terminal_code): Encode byte chars to the
3645 corresponding bytes.
3646
3647 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
3648
3649 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
3650
3651 2010-08-26 Kenichi Handa <handa@m17n.org>
3652
3653 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
3654 on calling composition_compute_stop_pos.
3655
3656 2010-08-25 Kenichi Handa <handa@m17n.org>
3657
3658 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
3659 :otf.
3660
3661 * composite.c (composition_compute_stop_pos): Don't break
3662 composition at PT.
3663 (composition_reseat_it): Likewise. Fix calculation of character
3664 position starting a composition.
3665 (Fcomposition_get_gstring): Don't limit the number of components
3666 for automatic composition.
3667
3668 2010-08-25 Kenichi Handa <handa@m17n.org>
3669
3670 * composite.c (composition_compute_stop_pos): In forward search,
3671 pay attention to the possibility that some character after ENDPOS
3672 will be composed with charactrs before ENDPOS.
3673
3674 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
3675
3676 * keyboard.c (command_loop_1): Don't clobber primary selection
3677 during handle-switch-frame (Bug#6872).
3678
3679 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
3680
3681 * dbusbind.c: Accept UNIX domain sockets as bus address.
3682 (Fdbus_close_bus): New function.
3683 (Vdbus_registered_buses): New variable.
3684 (xd_initialize): Implement string as bus address.
3685 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
3686 (Fdbus_get_unique_name, Fdbus_call_method)
3687 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3688 (Fdbus_method_error_internal, Fdbus_send_signal)
3689 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
3690 check. This is done in xd_initialize_bus. Adapt doc string, if
3691 necessary.
3692 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
3693 Vdbus_registered_buses.
3694 (Vdbus_registered_objects_table): Create hash.
3695
3696 2010-08-22 Juri Linkov <juri@jurta.org>
3697
3698 * keyboard.c (Fexecute_extended_command): Move reading a command name
3699 with `completing-read' to a new Elisp function `read-extended-command'.
3700 Call it to read a command to `function' (bug#5364, bug#5214).
3701
3702 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3703
3704 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
3705
3706 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
3707
3708 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
3709 instead of SAFE_ALLOCA.
3710
3711 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
3712
3713 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
3714 (Bug#6214).
3715
3716 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3717
3718 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
3719
3720 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
3721
3722 * doc.c (Fsnarf_documentation): Initialize skip_file before
3723 build-files test.
3724
3725 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
3726
3727 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
3728 New definitions.
3729 (HAVE_TERMIO): Remove.
3730
3731 2010-08-22 Eli Zaretskii <eliz@gnu.org>
3732
3733 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
3734
3735 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
3736 for w32.
3737
3738 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
3739 it's done in nt/config.nt.
3740
3741 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
3742
3743 * unexcoff.c (report_error, make_hdr, write_segment)
3744 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
3745 Convert argument lists and prototypes to ANSI C.
3746 (make_hdr, write_segment): Remove unused variables.
3747 (unexec): Remove commented-out line. Initialize `new' to shut up
3748 compiler warnings.
3749
3750 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
3751
3752 Simplify termio code.
3753 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
3754 HAVE_TERMIO code is obsolete.
3755 Replace HAVE_TERMIOS conditionals with !DOS_NT.
3756 * systty.h: Do not define HAVE_TCATTR.
3757 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
3758 Do not define EMACS_HAVE_TTY_PGRP. Only define
3759 EMACS_GET_TTY_PGRP for !DOS_NT.
3760 * sysdep.c: Include sysselect.h unconditionally. Do not include
3761 sys/ioctl.h and termios.h, systty.h does it.
3762 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
3763 (init_baud_rate): Remove HAVE_TERMIO code.
3764 (child_setup_tty): Remove HAVE_TERMIO code.
3765 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
3766 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
3767 (new_ltchars, new_tchars): Remove, unused.
3768 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
3769 code. Remove special casing for __mips__, it was a no-op.
3770 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
3771 (init_sys_modes): Remove HPUX special case.
3772 * process.c: Include stdlib.h unconditionally. Do not include
3773 fcntl.h, systty.h does it. Remove conditional code for
3774 HAVE_SERIAL, it is always true.
3775 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
3776 always true when SIGNALS_VIA_CHARACTERS is true.
3777 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
3778 !WINDOWSNT means HAVE_TERMIOS.
3779 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
3780 conditional, which is true for all HAVE_TERMIOS systems.
3781 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
3782 instead of HAVE_TERMIOS.
3783 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
3784 EMACS_HAVE_TTY_PGRP.
3785 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
3786 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
3787 anyway.
3788
3789 2010-08-21 Eli Zaretskii <eliz@gnu.org>
3790
3791 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
3792 mirroring pixel positions.
3793
3794 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
3795
3796 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
3797 write only.
3798 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
3799 malloc_sbrk_used, nothing uses them.
3800
3801 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
3802 defined, unconditionally defined in lisp.h.
3803
3804 * term.c: Do not include <termios.h>, systty.h does it.
3805
3806 * s/unixware.h (HAVE_TCATTR):
3807 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
3808 systty.h defines it when HAVE_TERMIOS is defined.
3809
3810 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3811
3812 * dispnew.c (buffer_posn_from_coords): Fix last change for text
3813 terminals: add one-character offset for R2L lines.
3814
3815 * emacs.c <emacs_version>: Add a comment regarding
3816 msdos/mainmake.v2's dependency on the syntax of this declaration.
3817
3818 2010-08-20 Eli Zaretskii <eliz@gnu.org>
3819
3820 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
3821 position for R2L lines by mirroring the pixel position wrt the
3822 text are box. Improve commentary.
3823
3824 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
3825
3826 * image.c (imagemagick_clear_image): Remove debugging output.
3827
3828 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3829
3830 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
3831 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
3832 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
3833 self-insert-face.
3834 (syms_of_cmds): Initialize the new vars.
3835
3836 2010-08-19 Jason Rumney <jasonr@gnu.org>
3837
3838 * w32menu.c (set_frame_menubar): Remove call to undefined function.
3839
3840 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
3841
3842 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
3843
3844 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
3845
3846 2010-08-18 Eli Zaretskii <eliz@gnu.org>
3847
3848 * xterm.c (x_draw_bar_cursor):
3849 * w32term.c (x_draw_bar_cursor): If the character under cursor is
3850 R2L, draw the bar cursor on its right rather than on its left.
3851
3852 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
3853
3854 * eval.c (Fdefmacro): Only obey one declaration.
3855
3856 * casefiddle.c (casify_region): Setup gl_state.
3857
3858 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3859
3860 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
3861
3862 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
3863
3864 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
3865
3866 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
3867
3868 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
3869 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
3870 QPRIMARY => NXPrimaryPboard.
3871 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
3872 NXPrimaryPboard => QPRIMARY.
3873 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
3874 NXSecondaryPboard = SecondarySelection.
3875 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
3876
3877 2010-08-18 Joakim Verona <joakim@verona.se>
3878
3879 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
3880 defined:
3881 (imagemagick_image_p): New function to test for ImageMagic image.
3882 (imagemagick_load): New function to load ImageMagick image.
3883 (imagemagick_load_image): New function, helper for imagemagick_load.
3884 (imagemagick-types): New function.
3885 (Qimagemagick): New Lisp_object.
3886 (imagemagick-render-type): New variable, decides which renderer to use.
3887
3888 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
3889
3890 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
3891 is a string.
3892
3893 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
3894
3895 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
3896 x_set_tool_bar_position handler.
3897
3898 2010-08-17 Eli Zaretskii <eliz@gnu.org>
3899
3900 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
3901 x_set_tool_bar_position handler, needed to support changes from
3902 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
3903
3904 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
3905
3906 * nsselect.m: include keyboard.h for QPRIMARY, remove its
3907 declaration (Bug#6863).
3908 (syms_of_nsselect): Don't intern QPRIMARY.
3909
3910 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
3911
3912 * keyboard.h (QPRIMARY): Declare (Bug#6864).
3913
3914 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
3915
3916 * keyboard.c (command_loop_1): Avoid setting selection twice,
3917 since it's done in deactivate-mark as well.
3918 (Vselect_active_regions): Change default to t. Replace `lazy'
3919 with non-default value `only', meaning only set PRIMARY for
3920 temporarily active regions.
3921
3922 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
3923 select-active-regions.
3924
3925 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3926
3927 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
3928 isn't a string.
3929
3930 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
3931
3932 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
3933
3934 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
3935
3936 * keyboard.c (parse_tool_bar_item): malloc buf.
3937 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
3938 new_lbl (Bug#6855).
3939
3940 2010-08-14 Eli Zaretskii <eliz@gnu.org>
3941
3942 * xterm.c (x_draw_stretch_glyph_string):
3943 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
3944 the cursor on the right edge of the stretch glyph.
3945
3946 * xdisp.c (window_box_right_offset, window_box_right):
3947 Fix commentary.
3948
3949 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
3950 direction when point is inside a run of whitespace characters.
3951
3952 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
3953
3954 2010-08-14 Jason Rumney <jasonr@gnu.org>
3955
3956 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
3957
3958 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
3959
3960 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
3961
3962 2010-08-13 Jason Rumney <jasonr@gnu.org>
3963
3964 * w32menu.c (simple_dialog_show): Use unicode message box if available.
3965 (MessageBoxW_Proc): New function typedef.
3966 (unicode-message-box): New function pointer.
3967 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
3968
3969 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
3970
3971 * frame.h (Qtool_bar_position): Declare.
3972
3973 * xfns.c (Fx_create_frame): Call x_default_parameter for
3974 Qtool_bar_position.
3975
3976 2010-08-13 Eli Zaretskii <eliz@gnu.org>
3977
3978 * unexcoff.c: Remove the parts used when "emacs" is not defined.
3979 (report_error, report_error_1): Ditto.
3980 (write_segment): Remove "#if 0" unused code.
3981 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3982 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3983 (start_of_text): Remove unused function (was used only if NO_REMAP
3984 was NOT defined).
3985
3986 * msdos.c (IT_set_face): Fix format string to match argument
3987 types.
3988 (IT_write_glyphs, IT_note_mode_line_highlight)
3989 (IT_set_frame_parameters): Remove unused variables.
3990 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3991 (IT_set_terminal_modes): Disambiguate expression in if clause.
3992 (Fmsdos_remember_default_colors): Return Qnil.
3993 (IT_set_frame_parameters): Add parens to disambiguate boolean
3994 expression for logging the cursor type to termscript.
3995 (keyboard_layout_list, keypad_translate_map)
3996 (grey_key_translate_map): Add braces in inner initializers.
3997 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3998 (dos_rawgetc): Remove unused label.
3999 (XMenuActivate): Add braces to remove ambiguous `else'.
4000 (dos_ttraw): Always return a value.
4001 (spawnve): Declare.
4002 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
4003
4004 * dosfns.h (x_set_title): Declare.
4005
4006 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4007 Remove unused variables.
4008
4009 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
4010 variables.
4011 (init_dosfns): Declare get_lim_data.
4012 (system_process_attributes): Declare Fget_internal_run_time.
4013
4014 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
4015 list to be consistent with menu.h.
4016
4017 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
4018 warnings due to mixing of "char *" and "const char *".
4019
4020 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4021
4022 Introduce a new comment style "c" flag.
4023 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
4024 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
4025 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
4026 (syntax_prefix_flag_p): New function.
4027 (Fstring_to_syntax): Understand new "c" flag.
4028 (Finternal_describe_syntax_value): Recognize new flag; use the
4029 SYNTAX_FLAGS_* macros.
4030 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
4031 comment style to accomodate the new styles.
4032 (back_comment, forw_comment, Fforward_comment, scan_lists)
4033 (scan_sexps_forward): Update code to obey the new comment style flag.
4034
4035 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
4036
4037 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
4038
4039 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
4040
4041 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
4042 first.
4043 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
4044
4045 * gtkutil.h (xg_check_special_colors): Declare.
4046
4047 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
4048 (xg_create_frame_widgets): Connect theme name changes to
4049 style_changed_cb.
4050
4051 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
4052 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
4053 (x_term_init): Use char[] display_opt and name_opt instead of
4054 string literal. file is const char*.
4055
4056 * xsmfns.c (NOSPLASH_OPT): Change to char[].
4057 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
4058 props. Free them at the end.
4059
4060 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
4061
4062 * xrdb.c (get_system_app): Make path const and use char *p for
4063 non-const char.
4064
4065 * xmenu.c (Fx_popup_dialog): error_name is const char*.
4066 (xmenu_show): error parameter is const char **. pane_string is const
4067 char *.
4068 (button_names): Is const char *.
4069 (xdialog_show): error_name and pane_string is const.
4070
4071 * process.h (synch_process_death): Is const char*.
4072
4073 * w32menu.c (w32_menu_show):
4074 * nsmenu.m (ns_menu_show): error parameter is const char **.
4075
4076 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
4077 is const char **.
4078
4079 * menu.c (Fx_popup_menu): error_name is const.
4080
4081 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
4082 with unsigned char and XtPointer with void *.
4083
4084 * gtkutil.h: Replace widget_value with struct _widget_value.
4085 (enum button_type, struct _widget_value): Remove and use the one from
4086 keyboard.h.
4087
4088 * gtkutil.c (get_utf8_string): Always return an allocated string.
4089 Parameter is const.
4090 (create_dialog, xg_create_one_menuitem, create_menus)
4091 (xg_item_label_same_p, xg_update_menu_item): Free result from
4092 get_utf8_string.
4093 (xg_separator_p, xg_item_label_same_p): label is const.
4094
4095 * font.h (font_open_by_name): Make name const.
4096
4097 * font.c (font_open_by_name): Make name const.
4098
4099 * floatfns.c (matherr): Use a const char* variable for x->name.
4100
4101 * emacs.c (main): Pass char[] to putenv instead of literal.
4102
4103 * callproc.c (synch_process_death): Make const.
4104 (Fcall_process): Make signame const.
4105
4106 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
4107 (addDisplayItemWithImage): Use const char*.
4108
4109 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
4110 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
4111
4112 * nsfont.m (ns_descriptor_to_entity): Use const char*.
4113
4114 * keyboard.h (_widget_value): name, value and key are const char*.
4115
4116 * unexmacosx.c (unexec_error): Use const char *.
4117
4118 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4119
4120 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4121 (font_parse_name, font_open_by_name):
4122 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
4123 (font_parse_name, font_open_by_name): Remove const.
4124
4125 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
4126
4127 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
4128 definition.
4129
4130 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
4131 * m/amdx86-64.h: Likewise.
4132 * m/arm.h: Likewise.
4133 * m/hp800.h: Likewise.
4134 * m/ia64.h: Likewise.
4135 * m/ibmrs6000.h: Likewise.
4136 * m/ibms390.h: Likewise.
4137 * m/intel386.h: Likewise.
4138 * m/iris4d.h: Likewise.
4139 * m/m68k.h: Likewise.
4140 * m/macppc.h: Likewise.
4141 * m/mips.h: Likewise.
4142 * m/sh3.h: Likewise.
4143 * m/sparc.h: Likewise.
4144 * m/template.h: Likewise.
4145 * m/vax.h: Likewise.
4146 * m/xtensa.h: Likewise.
4147 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
4148 WORDS_BIG_ENDIAN.
4149 * lisp.h: Likewise.
4150 * md5.c: Likewise.
4151 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
4152
4153 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
4154
4155 Use const char* instead of char*.
4156 Reduce the number of warnings with -Wwrite-strings.
4157 * xrdb.c (get_environ_db, get_system_name):
4158 * unexelf.c (find_section):
4159 * term.c (string_cost, string_cost_one_line, per_line_cost)
4160 (get_named_tty, init_tty):
4161 * sysdep.c (sys_subshell):
4162 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
4163 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
4164 * search.c (Freplace_match):
4165 * process.c (Fmake_network_process, send_process, init_process):
4166 * lread.c (Fload, init_lread):
4167 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
4168 * keyboard.c (parse_tool_bar_item, struct event_head):
4169 * gtkutil.h (xg_get_font_name):
4170 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
4171 (make_widget_for_menu_item, make_menu_item, create_menus)
4172 (xg_make_tool_item):
4173 * font.c (parse_matrix, font_parse_name):
4174 * floatfns.c (rounding_driver, float_error_fn_name):
4175 * filelock.c (get_boot_time_1, lock_file_1):
4176 * fileio.c (barf_or_query_if_file_exists, check_writable):
4177 * editfns.c (get_system_name, get_operating_system_release)
4178 (Fencode_time, Fset_time_zone_rule):
4179 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
4180 * buffer.c (defvar_per_buffer): Use const.
4181
4182 2010-08-08 Kenichi Handa <handa@m17n.org>
4183
4184 * charset.c: Include <stdlib.h>.
4185 (struct charset_sort_data): New struct.
4186 (charset_compare): New function.
4187 (Fsort_charsets): New function.
4188 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
4189
4190 * coding.c (decode_coding_iso_2022): Fix checking of dimension
4191 number in CTEXT extended segment.
4192
4193 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4194
4195 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
4196 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
4197
4198 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4199
4200 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
4201 (Fhash_table_size): Fix typos in docstrings.
4202 (Fmake_hash_table): Doc fix.
4203
4204 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
4205
4206 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
4207 Doc fix (bug#5625).
4208
4209 2010-08-08 Ken Brown <kbrown@cornell.edu>
4210
4211 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
4212 the MSDOS definition.
4213
4214 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
4215
4216 Use const char* instead of char*.
4217 * xterm.c (x_create_toolkit_scroll_bar):
4218 * xfont.c (xfont_list_pattern):
4219 * xfns.c (x_default_scroll_bar_color_parameter)
4220 (xic_create_fontsetname, x_default_font_parameter)
4221 (x_screen_planes):
4222 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
4223 (store_mode_line_string, decode_mode_spec, display_string):
4224 * menu.c (digest_single_submenu):
4225 * keymap.h (initial_define_key, initial_define_lispy_key):
4226 * keymap.c (initial_define_key, initial_define_lispy_key):
4227 * image.c (image_error, image_keyword):
4228 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
4229 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
4230 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
4231 (ftfont_list, ftfont_match):
4232 * frame.c (frame_parm_table):
4233 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4234 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4235 (font_add_log, font_deferred_log):
4236 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
4237 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
4238 (font_add_log, font_deferred_log):
4239 * emacs.c (argmatch):
4240 * dispextern.h (struct it):
4241 * coding.c (ENCODE_DESIGNATION):
4242 * charset.c (define_charset_internal): Use const.
4243
4244 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4245
4246 * xrdb.c: Remove include guard.
4247 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
4248 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
4249 realloc->xrealloc instead of using #defines.
4250
4251 2010-08-08 Eli Zaretskii <eliz@gnu.org>
4252
4253 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
4254 * editfns.c (Fline_beginning_position, Fline_end_position):
4255 State in the doc strings that start and end of line are in the
4256 logical order.
4257
4258 * xdisp.c (display_line): Move the handling of overlay arrow after
4259 the call to find_row_edges. (Bug#6699)
4260
4261 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4262
4263 * keyboard.c (command_loop_1):
4264 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
4265
4266 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
4267
4268 * insdel.c (prepare_to_modify_buffer): Save active region text to
4269 Vsaved_region_selection.
4270
4271 * xselect.c (QPRIMARY): Move to keyboard.c.
4272
4273 * keyboard.c (Vselect_active_regions): Move from simple.el.
4274 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
4275 (command_loop_1): Set window selection prior to deactivating the mark.
4276
4277 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
4278
4279 * alloc.c (lisp_malloc):
4280 * buffer.c (set_buffer_internal, set_buffer_internal_1):
4281 * charset.h (emacs_mule_charset):
4282 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
4283 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
4284 (bitch_at_user):
4285 * lisp.h (Fcheck_coding_system, Fget_text_property)
4286 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
4287 Remove duplicate declarations.
4288
4289 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4290
4291 * process.c: Simplify include logic.
4292
4293 * keyboard.h (quit_char): Add declaration.
4294 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
4295 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
4296 Add declarations.
4297 * sysdep.c:
4298 * w32.c: Remove the above declarations.
4299
4300 Remove extern declarations in .c files, .h files have them.
4301 * xterm.c:
4302 * xdisp.c:
4303 * msdos.c:
4304 * image.c:
4305 * gtkutil.c:
4306 * fileio.c:
4307 * eval.c: Remove declarations.
4308
4309 * frame.c (frame_params): Make const.
4310
4311 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
4312
4313 * emacs.c (emacs_copyright, emacs_version): Make static.
4314 (Vinitial_window_system, Vauto_save_list_file_name)
4315 (Vinhibit_redisplay): Remove declarations.
4316 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
4317 for AIX.
4318
4319 Use const for some arrays and functions.
4320 * xterm.h (xg_set_icon_from_xpm_data):
4321 * xfns.c (xg_set_icon_from_xpm_data):
4322 * term.c (fkeys):
4323 * keyboard.c (lispy_accent_keys, lispy_function_keys)
4324 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
4325 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
4326 (frame.c frame_parms):
4327 * emacs-icon.h (gnu_xpm_bits):
4328 * callint.c (callint_argfuns): Use const.
4329
4330 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4331
4332 * sysdep.c: Move include term.h last of includes (Bug#6812).
4333
4334 2010-08-06 Eli Zaretskii <eliz@gnu.org>
4335
4336 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4337
4338 * msdos.c (IT_display_cursor): Log cursor position on termscript.
4339
4340 * .gdbinit (pgx): Display the avoid_cursor_p flag.
4341
4342 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4343
4344 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
4345
4346 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
4347
4348 * xterm.h (x_get_focus_frame): Declare.
4349
4350 * keyboard.h (poll_for_input_1): Unconditionally declare.
4351
4352 * nsterm.h (x_set_menu_bar_lines): Declare.
4353
4354 * window.c: Don't include menu.h, it depends on lots of other .h-files.
4355
4356 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
4357
4358 * window.c: Include menu.h.
4359
4360 * unexmacosx.c (print_region_list, print_regions)
4361 (build_region_list, find_emacs_zone_regions)
4362 (unexec_regions_merge, read_load_commands, dump_it)
4363 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
4364
4365 * term.c: Check HAVE_SYS_IOCTL_H.
4366
4367 * sysdep.c: Check HAVE_TERM_H.
4368
4369 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
4370
4371 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
4372 (ns_ring_bell, ns_defined_color, hide_hourglass)
4373 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
4374 Convert to ANSI C prototypes.
4375 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
4376 before code.
4377
4378 * nsterm.h : Include sysselect.h.
4379 (x_sync, x_get_focus_frame, x_set_mouse_position)
4380 (x_set_mouse_pixel_position, x_make_frame_visible)
4381 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
4382 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
4383 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
4384 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
4385 Declare.
4386
4387 * nsmenu.m (popup_activated, name_is_separator)
4388 (syms_of_nsmenu): Convert to ANSI C prototypes.
4389 (runMenuAt): Prototypes and move declarations before code.
4390
4391 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
4392
4393 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
4394 prototypes.
4395
4396 * nsfns.m (have_menus_p, ns_display_info_for_name)
4397 (x_set_cursor_type, ns_appkit_version_str)
4398 (ns_appkit_version_int, ns_do_applescript)
4399 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
4400 (syms_of_nsfns): Convert to ANSI C prototypes.
4401
4402 * menu.h (x_set_menu_bar_line): Declare.
4403 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
4404
4405 * lisp.h (fmod_float): Declare.
4406
4407 * image.c (xpm_scan, xpm_make_color_table_v)
4408 (xpm_put_color_table_v, xpm_get_color_table_v)
4409 (xpm_make_color_table_h, xpm_put_color_table_h)
4410 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
4411 (xpm_load): Convert to ANSI C prototypes.
4412
4413 * emacs.c: Include nsterm.h if HAVE_NS.
4414
4415 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
4416
4417 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
4418
4419 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
4420 subprocesses, only MSDOS does not define HAVE_SOCKETS.
4421 (socket_options): Use const char* for name.
4422
4423 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
4424
4425 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
4426
4427 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
4428 Don't declare xmalloc_widget_value and digest_single_submenu.
4429
4430 * w32font.c (Qlatin): Remove declaration.
4431
4432 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
4433
4434 * dired.c (compile_pattern): Restore declaration.
4435
4436 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
4437
4438 Remove extern declarations in .c files, .h files have them.
4439 * data.c:
4440 * dired.c:
4441 * editfns.c:
4442 * filelock.c:
4443 * fns.c:
4444 * font.c:
4445 * fontset.c:
4446 * frame.c:
4447 * fringe.c:
4448 * ftfont.c:
4449 * gtkutil.c:
4450 * indent.c:
4451 * keyboard.c:
4452 * keymap.c:
4453 * lread.c:
4454 * menu.c:
4455 * print.c:
4456 * search.c:
4457 * sound.c:
4458 * window.c:
4459 * xdisp.c:
4460 * xfaces.c:
4461 * xfns.c:
4462 * xfont.c:
4463 * xftfont.c:
4464 * xmenu.c:
4465 * xterm.c: Remove declarations.
4466
4467 Cleanup syssignal.h.
4468 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
4469 (main_thread): Move down to remove #ifdef.
4470 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
4471 Remove conditional definition following unconditional ones.
4472
4473 * lisp.h: Remove HAVE_SHM code, unused.
4474 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
4475 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
4476 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
4477 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
4478 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
4479 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
4480 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
4481 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
4482 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
4483 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
4484 (Qwindow_scroll_functions, Vafter_load_alist)
4485 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
4486 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
4487 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
4488 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
4489 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
4490 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
4491 (initial_argv, last_nonmenu_event, load_in_progress)
4492 (noninteractive_need_newline, scroll_margin): Add declarations.
4493
4494 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4495 Remove declarations, menu.h has them.
4496 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
4497 (Vinput_method_function, Qinput_method_function)
4498 (Qevent_symbol_element_mask, last_event_timestamp):
4499 * dispextern.h (Voverflow_newline_into_fringe):
4500 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
4501 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
4502 (syms_of_w32font, syms_of_nsfont):
4503 * fontset.h (find_font_encoding, Qlatin):
4504 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
4505 (Vtool_bar_mode, set_frame_menubar):
4506 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
4507 * xterm.h (Qx_gtk_map_stock):
4508 * keymap.h (meta_prefix_char): Add declarations.
4509
4510 * term.c: Remove dead code.
4511
4512 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4513 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
4514 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
4515 which is what was there before BSD_PGRPS was removed.
4516
4517 2010-08-05 Eli Zaretskii <eliz@gnu.org>
4518
4519 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4520
4521 * unexcoff.c: Renamed from unexec.c.
4522
4523 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
4524
4525 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4526
4527 2010-08-03 Johan Bockgård <bojohan@gnu.org>
4528
4529 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4530 (Bug#6744)
4531
4532 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
4533
4534 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4535 to TRUE if depth of screen is < 16.
4536
4537 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4538 USE_GTK_TOOLTIP.
4539 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
4540 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4541 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
4542 USE_GTK_TOOLTIP.
4543 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
4544
4545 * xterm.h (USE_GTK_TOOLTIP): New define.
4546 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
4547
4548 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4549 to Control-D (Bug#6771).
4550
4551 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
4552
4553 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
4554 Wording by Drew Adams <drew.adams@oracle.com>.
4555
4556 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
4557
4558 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
4559 ttip_lbl.
4560
4561 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
4562 calling gtk_widget_queue_draw.
4563 (x_free_frame_resources): Call xg_free_frame_widgets.
4564
4565 * xfns.c (x_gtk_use_system_tooltips): New variable.
4566 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
4567 new gtkutil tooltip functions to show the tooltip.
4568 (Fx_hide_tip): Call xg_hide_tooltip.
4569 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
4570
4571 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
4572 (xg_show_tooltip, xg_hide_tooltip): Declare.
4573
4574 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
4575 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
4576 New functions.
4577 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
4578 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
4579 Remove code that is commented out.
4580
4581 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
4582
4583 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
4584
4585 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
4586
4587 * xselect.c (x_own_selection): Use list4.
4588
4589 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4590
4591 * buffer.c (Qwindow): Do not define, already defined in data.c.
4592 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
4593
4594 2010-07-29 Chad Brown <yandros@mit.edu>
4595
4596 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
4597 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
4598 * config.in: Undef HAVE_DIRENT_H.
4599 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
4600 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
4601
4602 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4603
4604 Rename s/usg5-4.h -> s/usg5-4-common.h.
4605 * s/usg5-4.h: Rename file to ...
4606 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
4607 * s/unixware.h:
4608 * s/sol2-6.h:
4609 * s/irix6-5.h: Update includes accordingly.
4610
4611 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4612
4613 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
4614
4615 * xterm.h (struct x_output): Add toolbar_top_height,
4616 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
4617 Remove toolbar_height.
4618 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
4619 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
4620 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
4621 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
4622
4623 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4624
4625 * xfns.c (x_set_tool_bar_position): New function.
4626 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
4627 (x_frame_parm_handlers): Add x_set_tool_bar_position.
4628 (syms_of_xfns): If USE_GTK, provide move-toolbar.
4629
4630 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
4631 and FRAME_TOOLBAR_LEFT_WIDTH.
4632
4633 * gtkutil.h (xg_change_toolbar_position): Declare.
4634
4635 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
4636 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
4637 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
4638 (xg_create_frame_widgets): Create a hobox for placing widgets
4639 vertically. Use gtk_box_pack_start.
4640 (xg_height_or_width_changed): Rename from xg_height_changed.
4641 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
4642 (xg_update_frame_menubar, free_frame_menubar): Change to
4643 xg_height_or_width_changed.
4644 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
4645 size correctly. Remove hardcoded 4, instead use handlebox size -
4646 toolbar size.
4647 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
4648 size correctly. Use handlebox size + toolbar size as additional size.
4649 (xg_pack_tool_bar): POS is a new parameter.
4650 Set orientation of tool bar based on pos.
4651 Only make handlebox_widget if NULL.
4652 Check if tool bar goes to vbox or hbox depending on pos.
4653 (xg_update_tool_bar_sizes): New function.
4654 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
4655 height, call xg_update_tool_bar_sizes instead.
4656 (free_frame_tool_bar): Remove from hbox or vbox depending on
4657 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
4658 (xg_change_toolbar_position): New function.
4659
4660 * frame.h (struct frame): Add tool_bar_position.
4661 (Qbottom): Declare.
4662
4663 * frame.c (Qtool_bar_position): New variable.
4664 (make_frame): Set tool_bar_position to Qtop.
4665 (frame_parms): Add tool-bar-position.
4666 (x_report_frame_params): Store tool_bar_position.
4667 (x_set_fringe_width): Reset wm size hint after fringe changes.
4668
4669 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4670
4671 Make lisp_time_argument declaration work on all systems.
4672 * lisp.h (lisp_time_argument): Move declaration ...
4673 * systime.h (lisp_time_argument): ... here
4674 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
4675
4676 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
4677
4678 * vm-limit.c (POINTER): Add typedef for it.
4679 (start_of_data): Change return type from POINTER to char *.
4680
4681 * frame.h (Qtty_color_mode): Move declaration out of ifdef
4682 HAVE_WINDOW_SYSTEM.
4683
4684 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
4685
4686 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
4687 Remove reference to __osf__, unused.
4688
4689 * mem-limits.h: Remove duplicated includes.
4690 (NULL): Remove definition, unused.
4691 (POINTER): Remove definition.
4692 (start_of_data): Use char* in prototype, as the function
4693 definition does.
4694
4695 Remove extern declarations from .c files, and them to .h files.
4696 * keyboard.h (Qhelp_echo, waiting_for_input)
4697 (input_available_clear_time, ignore_mouse_drag_p)
4698 (Vdouble_click_time, real_this_command, Vthis_original_command):
4699 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
4700 (Voverriding_local_map_menu_flag):
4701 * lisp.h (Qinteractive_form, use_file_dialog)
4702 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
4703 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
4704 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4705 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
4706 (Qfunction, debug_on_next_call, Qfield)
4707 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
4708 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
4709 (Qfile_directory_p, Qinsert_file_contents)
4710 (Qcompletion_ignore_case, Qcompletion_ignore_case)
4711 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
4712 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
4713 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
4714 (Qminibuffer_prompt)
4715 (Vtemporary_file_directory,char_ins_del_vector, Qface):
4716 * xterm.h (gray_bitmap_width, gray_bitmap_height)
4717 (gray_bitmap_bits, xic_create_fontsetname):
4718 * coding.h (Vtranslation_table_for_input): Add extern declarations.
4719
4720 * xsmfns.c (Vuser_login_name):
4721 * xrdb.c (Vdouble_click_time):
4722 * xfaces.c (xic_create_fontsetname):
4723 * w32select.c (waiting_for_input):
4724 * print.c (minibuffer_auto_raise):
4725 * msdos.c (Qhelp_echo):
4726 * macros.c (real_this_command):
4727 * keymap.c (Voverriding_local_map):
4728 * xterm.c (poll_for_input_1, gray_bitmap_width)
4729 (gray_bitmap_height, gray_bitmap_bits;
4730 * xmenu.c ( Voverriding_local_map)
4731 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
4732 (use_file_dialog, Xt_app_con):
4733 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
4734 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
4735 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
4736 (Qtool_bar_lines, ignore_mouse_drag_p):
4737 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
4738 (Qrear_nonsticky, nconc2):
4739 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
4740 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
4741 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
4742 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
4743 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
4744 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
4745 (gc_in_progress):
4746 * doc.c (Voverriding_local_map, Qremap):
4747 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
4748 (Vcompletion_regexp_list):
4749 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
4750 (Qcompletion_ignore_case):
4751 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
4752 (Vhistory_length, Vthis_original_command, real_this_command)
4753 (Qface, Qminibuffer_prompt, history_delete_duplicates):
4754 * image.c (Qrisky_local_variable):
4755 * fontset.c (QCname):
4756 * fns.c (minibuffer_auto_raise, QCname):
4757 * dispnew.c (char_ins_del_cost):
4758 * composite.c (font_fill_lglyph_metrics):
4759 * cmds.c (Qface, Vtranslation_table_for_input):
4760 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
4761 * ccl.c (charset_unicode):
4762 * callproc.c (Vtemporary_file_directory):
4763 * buffer.c (emacs_strerror): Remove extern declarations.
4764
4765 * data.c (Qwindow): Make non-static, used from other files too.
4766 * frame.c (validate_x_resource_name): Remove shadow definition for i.
4767
4768 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
4769 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
4770 * s/usg5-4.h (COFF):
4771 * s/template.h:
4772 * s/msdos.h (COFF, NO_REMAP):
4773 * s/ms-w32.h (NO_REMAP):
4774 * s/hpux10-20.h (NO_REMAP):
4775 * m/sparc.h (SEGMENT_MASK):
4776 * m/m68k.h (NO_REMAP):
4777 * m/intel386.h (SEGMENT_MASK):
4778 * m/arm.h (NO_REMAP):
4779 * m/alpha.h (COFF):
4780 * m/template.h: Remove references to unused defines.
4781
4782 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
4783
4784 * xsettings.c (Ftool_bar_get_system_style): Also check for
4785 Qtext_image_horiz.
4786
4787 * xdisp.c (Qtext_image_horiz): Define.
4788 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
4789 to documentation of tool-bar-style.
4790
4791 * lisp.h (Qtext_image_horiz): Declare.
4792
4793 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
4794 style text_image_horiz.
4795
4796 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4797
4798 * emacs.c (Fkill_emacs): Remove return statement.
4799
4800 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
4801 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
4802 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
4803 Remove local extern declarations.
4804
4805 * xmenu.c: Do not included lwlib.h, not needed.
4806
4807 * m/iris4d.h (XUINT, XSET): Remove, not needed.
4808
4809 * process.c: Move definitions earlier to minimize #ifdefs.
4810
4811 * xterm.h (x_get_customization_string, x_load_resources)
4812 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
4813 (x_check_errors, x_property_data_to_lisp, defined_color)
4814 (xic_set_xfontset, x_defined_color): Use const.
4815
4816 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
4817 (x_text_icon, x_check_errors, x_connection_closed): Use const.
4818
4819 * xselect.c (selection_data_to_lisp_data)
4820 (x_property_data_to_lisp):
4821 * xrdb.c (x_get_string_resource, file_p)
4822 (x_get_customization_string, magic_file_p, search_magic_path)
4823 (get_system_app, get_user_app, x_load_resources, x_get_resource)
4824 (x_get_string_resource): Use const.
4825
4826 * xfns.c: Include xlwmenu.h when USE_LUCID.
4827 (x_defined_color, xic_set_xfontset): Use const.
4828 (Fx_hide_tip): Remove local extern declaration.
4829
4830 * xfaces.c (Qmouse_face): Remove declaration.
4831 (face_color_gray_p, tty_defined_color, defined_color)
4832 (face_color_gray_p, face_color_supported_p): Add const.
4833
4834 * xdisp.c (do_mouse_tracking): Remove declaration.
4835 (add_to_log): Use const.
4836
4837 * minibuf.c (Qmouse_face): Remove declaration.
4838
4839 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
4840
4841 * keyboard.h (do_mouse_tracking): Add declaration.
4842
4843 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
4844 (QCdata, QCtype, Qcenter): Remove declarations.
4845
4846 * frame.c (x_get_resource_string, x_get_string_resource)
4847 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4848 (x_default_parameter): Use const.
4849
4850 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
4851 (QCheight, QCsize, QCname): Remove declarations.
4852
4853 * emacs.c (main): Remove local extern declaration.
4854
4855 * editfns.c (region_limit, syms_of_editfns): Remove local extern
4856 declarations.
4857
4858 * dispnew.c: Remove duplicate #include <unistd.h>.
4859 (update_window, update_frame_1, init_display): Remove local extern
4860 declarations.
4861
4862 * dispextern.h (add_to_log): Remove declaration.
4863 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4864 (x_frame_get_and_record_arg, x_default_parameter): Add const.
4865
4866 * dired.c (scmp): Add const.
4867 (directory_files_internal): Remove local extern declaration.
4868
4869 * data.c (Finteractive_form): Use const.
4870
4871 * composite.c (syms_of_composite): Remove local extern declarations.
4872
4873 * charset.c (add_to_log): Remove declaration.
4874
4875 * character.c (strwidth, parse_str_to_multibyte): Add const.
4876
4877 * character.h (strwidth, parse_str_to_multibyte): Likewise.
4878
4879 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
4880
4881 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
4882 (Lisp_Subr): Make doc and intspec constant.
4883 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
4884 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
4885 (QCheight, QCsize, QCname, QCwidth, QCforeground)
4886 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
4887 (display_arg): Add declarations.
4888
4889 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
4890
4891 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
4892
4893 * window.c (Fwindow_height): Doc fix (bug#6518).
4894
4895 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
4896
4897 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
4898
4899 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
4900
4901 * keyboard.c (Ftop_level, Fexit_recursive_edit)
4902 (Fabort_recursive_edit): Remove return statements in NO_RETURN
4903 functions.
4904
4905 * frame.h (Qtty_color_mode): Add declaration.
4906
4907 * lisp.h (Ftop_level, Fexit_recursive_edit)
4908 (Fabort_recursive_edit): Mark as NO_RETURN.
4909
4910 2010-07-26 Kenichi Handa <handa@m17n.org>
4911
4912 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
4913 number of glyphs gets smaller than the original length. (Bug#6621)
4914
4915 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
4916
4917 * lread.c (unreadpure, mapatoms_1): Make static.
4918
4919 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4920
4921 * terminfo.c (tparam): Fix prototype of tparm.
4922
4923 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
4924
4925 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
4926 find start of text segment.
4927 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
4928 is defined.
4929
4930 * callproc.c (set_initial_environment): Avoid unbalanced braces.
4931
4932 2010-07-25 Ken Brown <kbrown@cornell.edu>
4933
4934 * vm-limit.c (check_memory_limits): Fix previous change;
4935 accidentally reverted an earlier change.
4936
4937 2010-07-25 Ken Brown <kbrown@cornell.edu>
4938
4939 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
4940 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4941
4942 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
4943
4944 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4945 * dired.c (opendir, readdir): Fix prototypes.
4946 * editfns.c (w32_get_internal_run_time): Fix prototypes.
4947 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4948 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4949 (telldir): Remove declaration.
4950 * ralloc.c (real_morecore, __morecore): Fix prototypes.
4951 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4952 * syssignal.h (strsignal): Fix prototype.
4953 * term.c (tparam): Fix prototype.
4954 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4955 (term_get_fkeys): Set inside "#ifndef DOS_NT".
4956 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4957 and __morecore.
4958 * w32gui.h (XParseGeometry): Fix prototype.
4959 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4960 * w32term.c (my_set_focus): Declare inside #if 0.
4961 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4962 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4963 (drain_message_queue, get_next_msg, post_msg, parse_button)
4964 (ClipboardSequence_Proc): Fix prototypes.
4965 (wait_for_sync): Remove declaration.
4966
4967 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
4968
4969 * w32fns.c (w32_to_x_color): Remove, unused.
4970
4971 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4972
4973 * lisp.h: Remove leftover P_.
4974
4975 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4976
4977 * ecrt0.c, unexalpha.c: Remove files, unused.
4978
4979 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
4980
4981 * cmds.c (internal_self_insert): Make static.
4982 * lisp.h (internal_self_insert): Remove declaration.
4983
4984 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
4985
4986 * alloc.c (free_float):
4987 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4988 * frame.c (delete_frame_handler):
4989 * ralloc.c (reorder_bloc):
4990 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4991 Remove unused static functions.
4992
4993 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4994 it is called only from NS code.
4995
4996 * w32term.c (my_set_focus): #ifdef away; it is called only from
4997 "#ifdef 0" code.
4998
4999 * w32fns.c (x_edge_detection):
5000 * xfaces.c (may_use_scalable_font_p):
5001 Remove obsolete static declarations.
5002
5003 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
5004
5005 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
5006 (emacs_blocked_realloc, uninterrupt_malloc):
5007 * fringe.c (w32_reset_fringes):
5008 * image.c (convert_mono_to_color_image, lookup_rgb_color)
5009 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
5010 * sound.c (be2hs, do_play_sound):
5011 * vm-limit.c (get_lim_data, ret_lim_data):
5012 * w32term.c (x_free_frame_resources):
5013 * xfaces.c (x_create_gc, x_free_gc):
5014 Convert definitions to standard C.
5015
5016 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
5017
5018 * eval.c (Feval, Ffuncall): Use the new names.
5019
5020 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
5021 (DEFUN): Add braces around the union initialisation and use ## to
5022 specify the right union alternative and avoid a cast.
5023
5024 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
5025
5026 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
5027
5028 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
5029
5030 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
5031
5032 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
5033
5034 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
5035 is related to the menu bar (Bug#6499).
5036 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
5037
5038 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5039
5040 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
5041
5042 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
5043
5044 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
5045 i.e. don't put back ButtonRelease (Bug#6608).
5046
5047 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
5048 instead of Window. Call xg_event_is_for_menubar when
5049 USE_GTK (Bug#6499).
5050
5051 * gtkutil.h (xg_event_is_for_menubar): Declare.
5052
5053 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
5054
5055 2010-07-16 Eli Zaretskii <eliz@gnu.org>
5056
5057 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
5058 when it's the same as the old foreground. (Bug#6609)
5059
5060 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
5061
5062 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
5063 widget is non-null (Bug#6645).
5064
5065 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
5066
5067 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
5068 Convert old-style definition.
5069
5070 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
5071 timestamp argument.
5072
5073 2010-07-15 Eli Zaretskii <eliz@gnu.org>
5074
5075 * fringe.c (update_window_fringes): Restore mistakenly reverted
5076 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
5077
5078 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
5079
5080 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
5081 (SET_SAVED_KEY_EVENT): Remove (not used).
5082 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
5083 remove size parameter.
5084 (handle_one_xevent): Check popup_activated () for menu for Xt also.
5085 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
5086 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
5087 ButtonRelease.
5088 (x_set_window_size_1): scroll_bar_actual_width is always
5089 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
5090
5091 * xdisp.c (pending_menu_activation): Remove extern declaration.
5092 (prepare_menu_bars): Remove setting of pending_menu_activation.
5093
5094 * xmenu.c (pending_menu_activation): Remove.
5095 (x_activate_menubar): Set popup_activated_flag for Xt also.
5096 Remove setting of pending_menu_activation.
5097 (set_frame_menubar): Remove check of pending_menu_activation.
5098 Declare menubar_size before code. Correct spelling in comment.
5099
5100 2010-07-14 Kenichi Handa <handa@m17n.org>
5101
5102 * font.c (font_open_entity): Cancel previous change.
5103 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
5104
5105 2010-07-13 Eli Zaretskii <eliz@gnu.org>
5106
5107 Remove subprocesses #ifdefs.
5108 * process.c <inhibit_sentinels>: Move to the common part.
5109 (Fwaiting_for_user_input_p): Move to the common part; return nil
5110 if async subprocesses aren't supported.
5111 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
5112 MS-DOS. Remove "#ifdef subprocesses".
5113 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
5114 (gettimeofday): Remove "#ifdef subprocesses".
5115 (wait_without_blocking): Remove function.
5116 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
5117 Remove "#ifdef subprocesses".
5118 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
5119 compiled on MS-DOS.
5120 * callproc.c (Fcall_process) [!MSDOS]: Don't call
5121 wait_for_termination on MS-DOS.
5122 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
5123 initialization of inhibit_sentinels.
5124 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
5125 subprocesses" conditional.
5126 * callproc.c (Fcall_process) [!subprocesses]: Don't call
5127 wait_for_termination, since `buffer' cannot be an integer when
5128 async subprocesses are not supported
5129 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
5130 for ifdefing away the call to Fprocess_status.
5131
5132 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
5133 away the entire body of the function.
5134
5135 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5136
5137 Remove subprocesses #ifdefs from term.c.
5138 * process.c (add_keyboard_wait_descriptor)
5139 (delete_keyboard_wait_descriptor): Move to common section, do
5140 nothing when subprocesses is not defined.
5141 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
5142 Remove subprocesses #ifdefs.
5143
5144 Convert maybe_fatal to standard C.
5145 * lisp.h (verror): Declare.
5146 * eval.c (verror): New function containing the code from ...
5147 (error): ... this. Call verror.
5148 * term.c (vfatal): New function containing the code from ...
5149 (fatal): ... this. Call vfatal.
5150 (maybe_fatal): Convert to standard C, use variable number of
5151 arguments. Declare as non-return.
5152 (init_tty): Fix maybe_fatal call.
5153
5154 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5155
5156 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
5157 (_scroll_bar_note_movement): Convert definitions to standard C.
5158 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
5159 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
5160
5161 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5162
5163 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
5164 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
5165 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
5166 (xaw_jump_callback, xaw_scroll_callback)
5167 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
5168 (x_wm_set_size_hint, x_activate_timeout_atimer):
5169 Convert definitions to standard C.
5170 * xmenu.c (menubar_id_to_frame, popup_get_selection)
5171 (popup_activate_callback, popup_deactivate_callback)
5172 (menu_highlight_callback, menubar_selection_callback)
5173 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
5174 (free_frame_menubar, popup_selection_callback, as)
5175 (create_and_show_popup_menu, dialog_selection_callback)
5176 (create_and_show_dialog):
5177 * xfns.c (hack_wm_protocols, x_window):
5178 * xfaces.c (x_update_menu_appearance):
5179 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
5180 (char_to_pixel_size, round_size_to_char, get_wm_shell)
5181 (set_frame_size, update_wm_hints, setup_frame_gcs)
5182 (update_various_frame_slots, update_from_various_frame_slots)
5183 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
5184 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
5185 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
5186
5187 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5188
5189 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
5190
5191 2010-07-12 Eli Zaretskii <eliz@gnu.org>
5192
5193 * process.c (setup_process_coding_systems): Move to the part
5194 shared by non-subprocesses systems, and make its body empty when
5195 subprocesses is not defined.
5196 (close_process_descs): Move to the part shared by non-subprocesses
5197 systems.
5198 (wait_reading_process_output) [!subprocesses]: Convert arg list to
5199 ANSI C.
5200
5201 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5202
5203 * editfns.c (transpose_markers): Convert old-style definition.
5204 * emacs.c (abort, shut_down_emacs, fixup_locale)
5205 (synchronize_system_time_locale)
5206 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
5207 * floatfns.c (extract_float, matherr, init_floatfns)
5208 (syms_of_floatfns): Likewise.
5209 * fns.c (make_hash_table): Likewise.
5210 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
5211 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
5212 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
5213 (ftfont_variation_glyphs): Likewise.
5214 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
5215 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
5216 * lread.c (read_filtered_event): Likewise.
5217 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
5218 * process.c (wait_reading_process_output): Likewise.
5219 * scroll.c (do_line_insertion_deletion_costs): Likewise.
5220 * search.c (search_buffer, boyer_moore): Likewise.
5221 * syntax.c (scan_sexps_forward): Likewise.
5222 * xdisp.c (try_scrolling): Likewise.
5223 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5224 (face_at_string_position): Likewise.
5225 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
5226 * xselect.c (x_get_window_property, receive_incremental_selection)
5227 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
5228 Likewise.
5229 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
5230
5231 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5232
5233 * callproc.c (child_setup): Remove subprocesses conditional.
5234 Remove code dealing with SET_EMACS_PRIORITY, unused.
5235
5236 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
5237 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
5238
5239 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
5240 (__do_global_dtors, __main): Use void in definition.
5241 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
5242 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
5243 the only users from ...
5244 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
5245 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
5246 (HAVE_VOLATILE): Remove, unused.
5247
5248 Convert more function definitions to standard C.
5249 * xdisp.c (window_box_edges, handle_single_display_spec)
5250 (display_string): Convert definition to standard C.
5251 * scroll.c (do_direct_scrolling, scrolling_1):
5252 * dispnew.c (allocate_matrices_for_frame_redisplay)
5253 (mirrored_line_dance):
5254 * coding.c (code_convert_string):
5255 * charset.c (map_charset_chars):
5256 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
5257 (Fregister_ccl_program, Fregister_code_conversion_map):
5258 * keyboard.c (kbd_buffer_nr_stored): Likewise.
5259 (head_table): Make static and const.
5260
5261 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
5262
5263 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
5264 (PROFILING_LDFLAGS): Set from substitution.
5265 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
5266 CFLAGS last.
5267
5268 2010-07-12 Kenichi Handa <handa@m17n.org>
5269
5270 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
5271 (shortlisp): Likewise.
5272
5273 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
5274
5275 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
5276 of FONT_ENTITY_INDEX.
5277 (Ffont_get): If KEY is :otf and the font-object doesn't have the
5278 property, get the property value dynamically.
5279 (Ffont_put): Accept font-entity and font-object too.
5280 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
5281 return value changed.
5282 (syms_of_font): Adjust for the above change.
5283
5284 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5285
5286 * blockinput.h: Remove obsolete comment.
5287
5288 * lisp.h: Include <stddef.h>.
5289 (OFFSETOF): Don't define.
5290 (VECSIZE): Use offsetof instead of OFFSETOF.
5291 (PSEUDOVECSIZE): Likewise.
5292 * process.c (conv_sockaddr_to_lisp): Likewise.
5293 * alloc.c: Don't include <stddef.h>.
5294 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
5295
5296 * process.c: Remove obsolete comment.
5297
5298 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
5299
5300 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
5301
5302 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
5303
5304 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
5305 index, rindex.
5306 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
5307 * editfns.c (Fuser_full_name, Fformat): Likewise.
5308 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
5309 * fileio.c (Ffile_symlink_p): Likewise.
5310 * filelock.c (current_lock_owner): Likewise.
5311 * font.c (font_parse_name, font_parse_family_registry): Likewise.
5312 * fontset.c (fontset_pattern_regexp): Likewise.
5313 * lread.c (read1): Likewise.
5314 * sysdep.c (init_system_name): Likewise.
5315 * xfns.c (select_visual): Likewise.
5316 * s/hpux10-20.h (index, rindex): Don't define.
5317 * s/ms-w32.h (index): Likewise.
5318 * s/usg5-4.h: Likewise.
5319
5320 * callproc.c (relocate_fd): Use F_DUPFD if defined.
5321
5322 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
5323 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
5324 (egetenv): Likewise.
5325 * doprnt.c (doprnt): Likewise.
5326 * editfns.c (set_time_zone_rule, format2): Likewise.
5327 * emacs.c (decode_env_path): Likewise.
5328 * eval.c (signal_error, error): Likewise.
5329 * insdel.c (replace_range_2): Likewise.
5330 * keyboard.c (cmd_error_internal): Likewise.
5331 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
5332 * print.c (write_string, write_string_1, print_error_message):
5333 Likewise.
5334 * vm-limit.c (warn_function, memory_warnings): Likewise.
5335 * xdisp.c (message1, message1_nolog, message_with_string)
5336 (vmessage, message, message_nolog): Likewise.
5337 * emacs.c: Remove duplicate declaration.
5338 * keyboard.h: Likewise.
5339 * lisp.h: Update prototypes.
5340
5341 * eval.c: Fix indentation problem.
5342
5343 * keyboard.c: Include "process.h"
5344
5345 * eval.c: Remove obsolete noinline declaration.
5346 * fns.c: Likewise.
5347
5348 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
5349
5350 * doprnt.c (doprnt): Take a va_list argument instead of count and
5351 pointer.
5352 * eval.c (error): Change to a standard-C variadic function.
5353 * xdisp.c (vmessage): Rename from message, made static, and
5354 changed to take a va_list argument.
5355 (message): New variadic wrapper.
5356 (message_nolog): Now a variadic function, calling vmessage.
5357 * lisp.h: Include stdarg.h for va_list.
5358 (doprnt, error, message, message_nolog): Decls updated.
5359
5360 2010-07-11 Eli Zaretskii <eliz@gnu.org>
5361
5362 * process.c (syms_of_process) <delete-exited-processes>: Define
5363 even if !subprocesses.
5364 (delete_exited_processes): Ditto.
5365
5366 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
5367 (delete_exited_processes): Don't define.
5368
5369 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
5370
5371 * frame.c (make_frame): Initialize menu_bar_lines and
5372 tool_bar_lines members.
5373 (make_initial_frame, make_terminal_frame):
5374 Initialize menu_bar_lines using value of menu-bar-mode.
5375
5376 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
5377
5378 2010-07-10 Eli Zaretskii <eliz@gnu.org>
5379
5380 * process.c: Reshuffle #include's. Condition some of the global
5381 and static variables on `subprocesses'.
5382 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5383 Leave only one implementation.
5384 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
5385 (kill_buffer_processes, Flist_system_processes)
5386 (Fprocess_attributes, init_process, syms_of_process): Unify the
5387 implementations for with subprocesses and without them.
5388
5389 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
5390
5391 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
5392 correct size for Motif.
5393 (free_frame_menubar): Call x_set_window_size to update frame size.
5394
5395 * xfns.c (x_window): Set borderWidth to 0 for pane and
5396 EmacsFrame. Frame size calculation is wrong otherwise.
5397
5398 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
5399
5400 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
5401 allows to suppress errors when polling in Emacs' main loop.
5402 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
5403 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5404 (Fdbus_method_error_internal, Fdbus_send_signal)
5405 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
5406 (Fdbus_register_method): Use it. (Bug#6579)
5407
5408 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5409
5410 * alloc.c: Convert DEFUNs to standard C.
5411 * buffer.c:
5412 * bytecode.c:
5413 * callint.c:
5414 * callproc.c:
5415 * casefiddle.c:
5416 * casetab.c:
5417 * category.c:
5418 * character.c:
5419 * charset.c:
5420 * chartab.c:
5421 * cmds.c:
5422 * coding.c:
5423 * composite.c:
5424 * data.c:
5425 * dbusbind.c:
5426 * dired.c:
5427 * dispnew.c:
5428 * doc.c:
5429 * dosfns.c:
5430 * editfns.c:
5431 * emacs.c:
5432 * eval.c:
5433 * fileio.c:
5434 * filelock.c:
5435 * floatfns.c:
5436 * fns.c:
5437 * font.c:
5438 * fontset.c:
5439 * frame.c:
5440 * fringe.c:
5441 * image.c:
5442 * indent.c:
5443 * insdel.c:
5444 * keyboard.c:
5445 * keymap.c:
5446 * lread.c:
5447 * macros.c:
5448 * marker.c:
5449 * menu.c:
5450 * minibuf.c:
5451 * msdos.c:
5452 * nsfns.m:
5453 * nsmenu.m:
5454 * nsselect.m:
5455 * print.c:
5456 * process.c:
5457 * search.c:
5458 * sound.c:
5459 * syntax.c:
5460 * term.c:
5461 * terminal.c:
5462 * textprop.c:
5463 * undo.c:
5464 * w16select.c:
5465 * w32console.c:
5466 * w32fns.c:
5467 * w32font.c:
5468 * w32menu.c:
5469 * w32proc.c:
5470 * w32select.c:
5471 * window.c:
5472 * xdisp.c:
5473 * xfaces.c:
5474 * xfns.c:
5475 * xmenu.c:
5476 * xselect.c:
5477 * xsettings.c:
5478 * xsmfns.c: Likewise.
5479
5480 2010-07-08 Eli Zaretskii <eliz@gnu.org>
5481
5482 * process.c (kbd_is_on_hold, hold_keyboard_input)
5483 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
5484
5485 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
5486
5487 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
5488 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
5489 unless USE_LUCID.
5490
5491 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
5492
5493 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
5494 declaration.
5495
5496 Clean up include guards.
5497 * tparam.c: Remove include guards for config.h, string.h and code
5498 that assumes #ifndef emacs.
5499 * termcap.c:
5500 * unexalpha.c:
5501 * sysdep.c:
5502 * filemode.c:
5503 * filelock.c:
5504 * bidi.c: Likewise.
5505
5506 Remove prefix-args.c
5507 * prefix-args.c: Remove file.
5508 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
5509 * Makefile.in (temacs${EXEEXT}): Remove references to
5510 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
5511 (mostlyclean): Remove reference to prefix-args.
5512 (prefix-args): Remove.
5513
5514 Simplify cstart_of_data, start_of_code and related code.
5515 * mem-limits.h: Remove !emacs and _LIBC conditional code.
5516 (start_of_data): Merge into start_of_data function.
5517 * sysdep.c (start_of_text): Remove. Move simplified versions of
5518 it in the only users: unexaix.c and unexec.c.
5519 (read_input_waiting): Remove local declaration of quit_char.
5520 (start, etext): Remove declarations.
5521 (start_of_data): Merge with the version in mem-limits.h and move
5522 to vm-limits.c.
5523 * vm-limit.c (start_of_data): Merged and simplified version of the
5524 code formerly in mem-limits.h and sysdep.c.
5525 * unexec.c (start): New declaration, moved from sysdep.c.
5526 (start_of_text): Simplified version of the code formerly in sysdep.c.
5527 * unexaix.c (start_of_text): Simplified version of the code
5528 formerly in sysdep.c.
5529 * m/alpha.h (HAVE_TEXT_START): Remove.
5530 (TEXT_START): Move ...
5531 * unexalpha.c (TEXT_START): ... here.
5532 * s/hpux10-20.h (TEXT_START): Remove.
5533 * s/darwin.h (TEXT_START):
5534 * m/mips.h (TEXT_START):
5535 * m/macppc.h (HAVE_TEXT_START):
5536 * m/m68k.h (TEXT_START):
5537 * m/iris4d.h (TEXT_START):
5538 * m/intel386.h (TEXT_START):
5539 * m/ibmrs6000.h (TEXT_START):
5540 * m/ia64.h (HAVE_TEXT_START):
5541 * s/msdos.h (TEXT_START): Likewise.
5542
5543 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
5544
5545 * alloc.c (overrun_check_malloc, overrun_check_realloc)
5546 (overrun_check_free, xstrdup, allocate_string)
5547 (allocate_string_data, compact_small_strings, Fmake_string)
5548 (make_unibyte_string, make_multibyte_string)
5549 (make_string_from_bytes, make_specified_string, make_float)
5550 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
5551 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
5552 memcpy, memmove, memset, memcmp.
5553 * atimer.c (start_atimer, set_alarm): Likewise.
5554 * buffer.c (clone_per_buffer_values, report_overlay_modification)
5555 (mmap_realloc, init_buffer_once): Likewise.
5556 * callint.c (Fcall_interactively): Likewise.
5557 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
5558 (getenv_internal_1): Likewise.
5559 * casefiddle.c (casify_object): Likewise.
5560 * ccl.c (ccl_driver): Likewise.
5561 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
5562 * charset.c (load_charset_map_from_file)
5563 (load_charset_map_from_file, load_charset_map_from_vector)
5564 (Fdefine_charset_internal): Likewise.
5565 * cm.c (Wcm_clear): Likewise.
5566 * coding.c (decode_eol, decode_coding_object)
5567 (Fset_coding_system_priority, make_subsidiaries): Likewise.
5568 * data.c (Faset): Likewise.
5569 * dired.c (directory_files_internal, file_name_completion_stat):
5570 Likewise.
5571 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
5572 (clear_glyph_row, copy_row_except_pointers)
5573 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
5574 (save_current_matrix, restore_current_matrix)
5575 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
5576 (mirror_line_dance, scrolling_window): Likewise.
5577 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
5578 Likewise.
5579 * doprnt.c (doprnt): Likewise.
5580 * editfns.c (Fuser_full_name, make_buffer_string_both)
5581 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
5582 * emacs.c (sort_args): Likewise.
5583 * eval.c (Fapply, Ffuncall): Likewise.
5584 * fileio.c (Ffile_name_directory, make_temp_name)
5585 (Fexpand_file_name, search_embedded_absfilename)
5586 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
5587 (auto_save_error): Likewise.
5588 * fns.c (Fstring_equal, Fcopy_sequence, concat)
5589 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
5590 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
5591 (Fmake_hash_table): Likewise.
5592 * fringe.c (Fdefine_fringe_bitmap): Likewise.
5593 * ftfont.c (ftfont_text_extents): Likewise.
5594 * getloadavg.c (getloadavg): Likewise.
5595 * image.c (define_image_type, make_image, make_image_cache)
5596 (x_create_x_image_and_pixmap, xbm_image_p)
5597 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
5598 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
5599 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
5600 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
5601 (tiff_image_p, tiff_read_from_memory, gif_image_p)
5602 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
5603 Likewise.
5604 * indent.c (scan_for_column, compute_motion): Likewise.
5605 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
5606 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
5607 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
5608 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
5609 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
5610 (store_user_signal_events, menu_bar_items, tool_bar_items)
5611 (process_tool_bar_item, append_tool_bar_item)
5612 (read_char_minibuf_menu_prompt, read_key_sequence)
5613 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
5614 Likewise.
5615 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
5616 Likewise.
5617 * lisp.h (STRING_COPYIN): Likewise.
5618 * lread.c (Fload, read1, oblookup): Likewise.
5619 * msdos.c (Frecent_doskeys): Likewise.
5620 * nsfns.m (Fx_create_frame): Likewise.
5621 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
5622 Likewise.
5623 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
5624 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
5625 Likewise.
5626 * nsmenu.m (ns_update_menubar): Likewise.
5627 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
5628 * print.c (print_unwind, printchar, strout, print_string)
5629 (print_error_message): Likewise.
5630 * process.c (conv_lisp_to_sockaddr, set_socket_option)
5631 (Fmake_network_process, Fnetwork_interface_list)
5632 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
5633 (init_process): Likewise.
5634 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
5635 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
5636 Likewise.
5637 * scroll.c (do_scrolling, do_direct_scrolling)
5638 (scrolling_max_lines_saved): Likewise.
5639 * search.c (search_buffer, wordify, Freplace_match): Likewise.
5640 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
5641 * syntax.c (skip_chars, skip_syntaxes): Likewise.
5642 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
5643 (emacs_set_tty): Likewise.
5644 * term.c (encode_terminal_code, calculate_costs)
5645 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
5646 Likewise.
5647 * termcap.c (tgetst1, gobble_line): Likewise.
5648 * termhooks.h (EVENT_INIT): Likewise.
5649 * tparam.c (tparam1): Likewise.
5650 * unexalpha.c (unexec): Likewise.
5651 * unexec.c (write_segment): Likewise.
5652 * unexmacosx.c (unexec_write_zero): Likewise.
5653 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
5654 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
5655 * w32font.c (w32font_list_family, w32font_text_extents)
5656 (w32font_list_internal, w32font_match_internal)
5657 (w32font_open_internal, compute_metrics, Fx_select_font):
5658 Likewise.
5659 * w32menu.c (set_frame_menubar, add_menu_item)
5660 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
5661 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
5662 * w32uniscribe.c (uniscribe_list_family): Likewise.
5663 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
5664 * window.c (make_window, replace_window, set_window_buffer)
5665 (Fsplit_window): Likewise.
5666 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
5667 (add_to_log, message3, x_consider_frame_title)
5668 (append_space_for_newline, extend_face_to_end_of_line)
5669 (decode_mode_spec_coding, init_glyph_string): Likewise.
5670 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
5671 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
5672 (face_attr_equal_p, make_realized_face, make_face_cache)
5673 (free_realized_faces, lookup_named_face, smaller_face)
5674 (face_with_height, lookup_derived_face)
5675 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
5676 (Finternal_set_font_selection_order, realize_default_face)
5677 (compute_char_face, face_at_buffer_position)
5678 (face_for_overlay_string, face_at_string_position, merge_faces):
5679 Likewise.
5680 * xfns.c (xic_create_fontsetname, Fx_create_frame)
5681 (Fx_window_property, x_create_tip_frame)
5682 (Fx_backspace_delete_keys_p): Likewise.
5683 * xfont.c (xfont_list, xfont_match, xfont_list_family)
5684 (xfont_text_extents): Likewise.
5685 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
5686 * xrdb.c (magic_file_p, x_get_resource): Likewise.
5687 * xselect.c (x_queue_event, x_get_window_property)
5688 (receive_incremental_selection): Likewise.
5689 * xsmfns.c (x_session_check_input): Likewise.
5690 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
5691 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
5692 Likewise.
5693 * character.h (BCOPY_SHORT): Removed.
5694 * config.in: Regenerate.
5695 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
5696 * emacs.c (main) [PROFILING]: Don't declare
5697 dump_opcode_frequencies.
5698 * lisp.h (safe_bcopy): Remove declaration.
5699 (memset) [!HAVE_MEMSET]: Declare.
5700 (memcpy) [!HAVE_MEMCPY]: Likewise.
5701 (memmove) [!HAVE_MEMMOVE]: Likewise.
5702 (memcmp) [!HAVE_MEMCMP]: Likewise.
5703 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
5704 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
5705 Don't define.
5706 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
5707 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
5708 (BCOPY_DOWNWARD_SAFE): Don't define.
5709 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
5710 (memcpy) [!HAVE_MEMCPY]: Define.
5711 (memmove) [!HAVE_MEMMOVE]: Define.
5712 (memcmp) [!HAVE_MEMCMP]: Define.
5713
5714 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
5715
5716 * process.c (kbd_is_on_hold): New variable.
5717 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
5718 New functions.
5719 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
5720 select on empty input mask.
5721 (init_process): Initialize kbd_is_on_hold to 0.
5722
5723 * process.h (hold_keyboard_input, unhold_keyboard_input)
5724 (kbd_on_hold_p): Declare.
5725
5726 * keyboard.c (input_available_signal): Declare.
5727 (kbd_buffer_nr_stored): New function.
5728 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
5729 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
5730 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
5731 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
5732 (tty_read_avail_input): If input is on hold, return.
5733 Don't read more that free slots in kbd_buffer (Bug#6571).
5734
5735 2010-07-07 Eli Zaretskii <eliz@gnu.org>
5736
5737 * msdos.h:
5738 * msdos.c:
5739 * dosfns.c:
5740 * w16select.c: Convert function definitions to ANSI C.
5741
5742 * msdos.h (ctrl_break_func, install_ctrl_break_check):
5743 Remove unused prototypes.
5744
5745 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5746
5747 * coding.c, sysdep.c: Convert some more functions to standard C.
5748
5749 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
5750
5751 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
5752 (encode_coding_object): Use SPECPDL_INDEX.
5753 (syms_of_coding): Use DOS_NT.
5754
5755 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
5756
5757 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
5758
5759 Make the function member of Lisp_Subr use standard C prototypes.
5760 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5761 (DECL_ALIGN): Add a cast for the function.
5762 * eval.c (Feval, Ffuncall): Use the proper type for each type
5763 function call.
5764
5765 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
5766
5767 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
5768 fringe face id, so face-remapping-alist works (Bug#6091).
5769
5770 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
5771
5772 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
5773 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
5774 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
5775
5776 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
5777
5778 * xterm.c (x_get_keysym_name): Change type of parameter to int.
5779 * lisp.h: Declare x_get_keysym_name.
5780 * keyboard.c (modify_event_symbol): Don't declare
5781 x_get_keysym_name here.
5782
5783 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
5784
5785 * ecrt0.c: Revert conversion to standard C.
5786
5787 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5788
5789 * vm-limit.c (memory_warnings):
5790 * keyboard.c (modify_event_symbol):
5791 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
5792 (round2, emacs_rint):
5793 * process.c (send_process, old_sigpipe): Convert function
5794 definitions and declarations to standard C.
5795
5796 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
5797
5798 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5799 * xdisp.c: Convert function definitions to standard C.
5800
5801 * cm.c (cmputc): Arg C is now int, not char.
5802 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
5803
5804 2010-07-05 James Cloos <cloos@jhcloos.com>
5805
5806 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
5807
5808 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
5809 _NET_WM_ICON_NAME atoms.
5810
5811 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
5812 and _NET_WM_ICON_NAME properties, too, matching what is
5813 done in the Gtk+ case.
5814
5815 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
5816
5817 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
5818
5819 * xsmfns.c (SSDATA): New macro.
5820 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
5821 passed to strlen/strcpy/strcat.
5822 (create_client_leader_window): Surround with #ifndef USE_GTK.
5823 Cast 7:th arg to XChangeProperty to (unsigned char *).
5824
5825 * xsettings.c (something_changedCB, parse_settings)
5826 (apply_xft_settings): Reformat prototype.
5827 (something_changedCB, init_gconf): Remove unused variable i.
5828 (read_settings): Remove unused variable long_len.
5829
5830 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
5831 (xg_get_image_for_pixmap, create_dialog)
5832 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
5833 (menuitem_highlight_callback, make_menu_item)
5834 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
5835 (xg_create_scroll_bar, xg_update_scrollbar_pos)
5836 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
5837 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
5838 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
5839 (xg_tool_bar_item_expose_callback): Reformat prototype.
5840 (xg_update_menubar): GList *group => GSList *group.
5841 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
5842 before use.
5843 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
5844 to GTK_IMAGE (wimage).
5845
5846 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
5847
5848 * atimer.c: Use "" instead of <> for local includes for
5849 consistency with the rest of the code.
5850
5851 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
5852 * xrdb.c (get_system_name):
5853 * window.c (shrink_windows):
5854 * syntax.c (forw_comment):
5855 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
5856 (ins_del_costs):
5857 * mem-limits.h (start_of_data):
5858 * lread.c (readevalloop):
5859 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
5860 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
5861 * frame.c (x_get_focus_frame):
5862 * floatfns.c (fmod_float):
5863 * fileio.c (choose_write_coding_system):
5864 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
5865 (malloc_initialize_hook, sort_args, synchronize_locale):
5866 * doprnt.c (doprnt):
5867 * dired.c (compile_pattern):
5868 * data.c (fmod_float):
5869 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
5870 (map_char_table_for_charset):
5871 * charset.c (define_charset_internal):
5872 * alloc.c (Fgarbage_collect): Convert declarations or definitions
5873 to standard C.
5874
5875 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
5876 Stefan Monnier <monnier@iro.umontreal.ca>
5877
5878 * lread.c (read1): Fix up last change to not mess up `c'.
5879
5880 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5881
5882 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
5883
5884 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
5885
5886 Fix prototypes.
5887
5888 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
5889 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
5890 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
5891 arg, as required by internal_condition_case_1.
5892 * print.c (strout): Use const char* for arg PTR.
5893 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
5894 (analyse_first): Fix "const const".
5895 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
5896 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
5897 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
5898
5899 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
5900
5901 * alloc.c: Convert function definitions to standard C.
5902 * atimer.c:
5903 * bidi.c:
5904 * bytecode.c:
5905 * callint.c:
5906 * callproc.c:
5907 * casefiddle.c:
5908 * casetab.c:
5909 * category.c:
5910 * ccl.c:
5911 * character.c:
5912 * charset.c:
5913 * chartab.c:
5914 * cmds.c:
5915 * coding.c:
5916 * composite.c:
5917 * data.c:
5918 * dbusbind.c:
5919 * dired.c:
5920 * dispnew.c:
5921 * doc.c:
5922 * doprnt.c:
5923 * ecrt0.c:
5924 * editfns.c:
5925 * fileio.c:
5926 * filelock.c:
5927 * filemode.c:
5928 * fns.c:
5929 * font.c:
5930 * fontset.c:
5931 * frame.c:
5932 * fringe.c:
5933 * ftfont.c:
5934 * ftxfont.c:
5935 * gtkutil.c:
5936 * indent.c:
5937 * insdel.c:
5938 * intervals.c:
5939 * keymap.c:
5940 * lread.c:
5941 * macros.c:
5942 * marker.c:
5943 * md5.c:
5944 * menu.c:
5945 * minibuf.c:
5946 * prefix-args.c:
5947 * print.c:
5948 * ralloc.c:
5949 * regex.c:
5950 * region-cache.c:
5951 * scroll.c:
5952 * search.c:
5953 * sound.c:
5954 * strftime.c:
5955 * syntax.c:
5956 * sysdep.c:
5957 * termcap.c:
5958 * terminal.c:
5959 * terminfo.c:
5960 * textprop.c:
5961 * tparam.c:
5962 * undo.c:
5963 * unexelf.c:
5964 * window.c:
5965 * xfaces.c:
5966 * xfns.c:
5967 * xfont.c:
5968 * xftfont.c:
5969 * xgselect.c:
5970 * xmenu.c:
5971 * xrdb.c:
5972 * xselect.c:
5973 * xsettings.c:
5974 * xsmfns.c:
5975 * xterm.c: Likewise.
5976
5977 2010-07-03 Eli Zaretskii <eliz@gnu.org>
5978
5979 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5980 frames other than the initial one. Fix reversal of colors when
5981 `reverse' is specified in the frame parameters.
5982 Call update_face_from_frame_parameter instead of
5983 internal-set-lisp-face-attribute. Initialize screen colors from
5984 initial_screen_colors[] when f->default_face_done_p is zero,
5985 instead of depending on being called with default-frame-alist as
5986 the alist argument.
5987
5988 * xfaces.c (update_face_from_frame_parameter): Move out of
5989 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
5990 with HAVE_WINDOW_SYSTEM.
5991
5992 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5993 to menu-bar-mode, if not set in the frame parameters or in
5994 default-frame-alist.
5995
5996 * w32console.c (sys_tputs): Adjust argument list to prototype in
5997 term.c.
5998
5999 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
6000
6001 * lisp.h (memory_warnings): Fix prototype.
6002
6003 * cm.h (evalcost): Fix prototype.
6004
6005 * cm.c (evalcost): Fix arg type.
6006
6007 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6008
6009 * term.c (term_clear_mouse_face, Fidentity):
6010 * syssignal.h (signal_handler_t):
6011 * lisp.h (memory_warnings):
6012 * coding.h (preferred_coding_system):
6013 * cm.h (evalcost):
6014 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
6015
6016 2010-07-02 Eli Zaretskii <eliz@gnu.org>
6017
6018 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
6019 from prototypes.
6020
6021 * msdos.h (load_pixmap): Don't define away.
6022
6023 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
6024
6025 * lisp.h:
6026 * atimer.h: Remove define for P_.
6027
6028 * alloc.c: Remove __P and P_ from .c and .m files.
6029 * atimer.c:
6030 * buffer.c:
6031 * callint.c:
6032 * category.c:
6033 * charset.c:
6034 * chartab.c:
6035 * cm.c:
6036 * coding.c:
6037 * composite.c:
6038 * data.c:
6039 * dired.c:
6040 * dispnew.c:
6041 * doc.c:
6042 * editfns.c:
6043 * emacs.c:
6044 * eval.c:
6045 * fileio.c:
6046 * filelock.c:
6047 * fns.c:
6048 * font.c:
6049 * fontset.c:
6050 * frame.c:
6051 * ftfont.c:
6052 * ftxfont.c:
6053 * gmalloc.c:
6054 * gtkutil.c:
6055 * image.c:
6056 * indent.c:
6057 * intervals.c:
6058 * keyboard.c:
6059 * keymap.c:
6060 * lread.c:
6061 * marker.c:
6062 * menu.c:
6063 * minibuf.c:
6064 * print.c:
6065 * process.c:
6066 * scroll.c:
6067 * search.c:
6068 * sound.c:
6069 * strftime.c:
6070 * syntax.c:
6071 * sysdep.c:
6072 * term.c:
6073 * terminal.c:
6074 * textprop.c:
6075 * unexalpha.c:
6076 * w32console.c:
6077 * w32fns.c:
6078 * w32font.c:
6079 * w32menu.c:
6080 * w32term.c:
6081 * w32uniscribe.c:
6082 * window.c:
6083 * xdisp.c:
6084 * xfaces.c:
6085 * xfns.c:
6086 * xfont.c:
6087 * xftfont.c:
6088 * xmenu.c:
6089 * xselect.c:
6090 * xterm.c: Likewise.
6091
6092 Remove P_ and __P macros.
6093 * atimer.h: Remove P_ and __P macros.
6094 * buffer.h:
6095 * category.h:
6096 * ccl.h:
6097 * character.h:
6098 * charset.h:
6099 * cm.h:
6100 * coding.h:
6101 * composite.h:
6102 * dispextern.h:
6103 * disptab.h:
6104 * dosfns.h:
6105 * font.h:
6106 * fontset.h:
6107 * frame.h:
6108 * gtkutil.h:
6109 * indent.h:
6110 * intervals.h:
6111 * keyboard.h:
6112 * keymap.h:
6113 * lisp.h:
6114 * macros.h:
6115 * md5.h:
6116 * menu.h:
6117 * msdos.h:
6118 * nsterm.h:
6119 * puresize.h:
6120 * region-cache.h:
6121 * syntax.h:
6122 * syssignal.h:
6123 * systime.h:
6124 * termhooks.h:
6125 * w32font.h:
6126 * w32term.h:
6127 * widget.h:
6128 * window.h:
6129 * xgselect.h:
6130 * xsettings.h:
6131 * xterm.h: Likewise.
6132
6133 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
6134
6135 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6136
6137 Cleanup old code.
6138 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
6139 * syssignal.h: Remove code for Lynx, not supported anymore.
6140 * vm-limit.c: Remove unused code the depends on emacs not being
6141 defined and NO_LIM_DATA being defined.
6142 * mem-limits.h: Remove dead code.
6143
6144 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
6145
6146 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
6147
6148 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
6149 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
6150
6151 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
6152 parameters, they are already absolute.
6153
6154 * nsterm.m (x_set_window_size, initFrameFromEmacs):
6155 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
6156
6157 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
6158
6159 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
6160 Update FRAME_TOOLBAR_HEIGHT.
6161
6162 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
6163 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
6164
6165 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
6166
6167 * frame.c (get_future_frame_param, Fmake_terminal_frame):
6168 Don't check default-frame-alist.
6169
6170 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
6171
6172 * process.c (create_process): Avoid using invalid file descriptors.
6173
6174 * callproc.c (child_setup): Avoid closing a file descriptor twice.
6175
6176 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
6177
6178 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
6179 Improve documentation. Return font regardless of use_system_font.
6180 (syms_of_xsettings): Improve documentation for font-use-system-font.
6181
6182 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
6183
6184 * xfaces.c (realize_face): Garbage the frame if a face is removed
6185 (Bug#6593).
6186
6187 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
6188
6189 * keyboard.c: Remove duplicate <setjmp.h>.
6190 (read_key_sequence): Remove volatile qualifiers.
6191
6192 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6193
6194 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
6195 (struct glyph_row): New members left_fringe_offset and
6196 right_fringe_offset.
6197
6198 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
6199 specially.
6200 * w32term.c (w32_draw_fringe_bitmap): Likewise.
6201 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
6202
6203 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
6204 Take account of bitmap offset.
6205 (draw_window_fringes): Take account of window vscroll.
6206 (update_window_fringes): Likewise. Extend top-aligned top indicator
6207 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
6208 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
6209 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
6210
6211 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
6212
6213 * w32fns.c (Qtooltip): Declare.
6214 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
6215
6216 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
6217
6218 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
6219 grab on just Press (Bug#6499).
6220
6221 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * frame.c (Qtooltip): New var.
6224 (delete_frame): Use it. Fix faulty if statement. Don't update
6225 mode line for tooltip frames. Suggested by Martin Rudalics.
6226
6227 * xfns.c (x_create_tip_frame):
6228 * w32fns.c (x_create_tip_frame): Use it.
6229
6230 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
6231
6232 * xftfont.c (xftfont_open): Check font width one by one also when
6233 spacing is dual.
6234
6235 * ftfont.c (ftfont_open): Ditto.
6236
6237 2010-06-30 Glenn Morris <rgm@gnu.org>
6238
6239 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
6240
6241 * Makefile.in (CANNOT_DUMP): Update for configure name change.
6242
6243 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
6244 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
6245 * s/darwin.h (SYSTEM_MALLOC):
6246 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
6247
6248 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
6249
6250 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
6251 (ns_get_screen): Don't assign integer to f.
6252 (Fx_display_color_cells): Declarations before statements.
6253
6254 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
6255
6256 * xfns.c (x_default_font_parameter): Remove got_from_system
6257 (Bug#6526).
6258
6259 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
6260 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
6261 New defines based on what configure finds.
6262
6263 * xterm.c (XTflash): Use gtk_widget_get_window.
6264 (xg_scroll_callback): Use gtk_adjustment_get_upper and
6265 gtk_adjustment_get_page_size.
6266 (handle_one_xevent): Use gtk_widget_get_mapped.
6267 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
6268 messages.
6269
6270 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
6271
6272 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
6273 HAVE_GTK_FILE_SELECTION_NEW.
6274
6275 * gtkutil.c (xg_display_open, xg_display_close):
6276 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
6277 (xg_display_open): Return type is void.
6278 (gtk_widget_set_has_window)
6279 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
6280 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
6281 (gtk_adjustment_set_page_increment)
6282 (gtk_adjustment_get_step_increment): #define these if not found
6283 by configure.
6284 (remove_submenu): New define based on Gtk+ version.
6285 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
6286 Use gtk_widget_get_window.
6287 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
6288 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
6289 (create_dialog): Use gtk_dialog_get_action_area and
6290 gtk_dialog_get_content_area.
6291 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
6292 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
6293 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
6294 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
6295 Use g_object_ref and g_object_unref.
6296 (xg_update_menu_item, xg_tool_bar_menu_proxy):
6297 Use gtk_widget_get_sensitive.
6298 (xg_update_submenu): Use remove_submenu.
6299 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
6300 properties instead to get old x and y position.
6301 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
6302 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
6303 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
6304 (xg_get_tool_bar_widgets): New function.
6305 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
6306 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
6307 (toolbar_set_orientation): New #define based on if configure
6308 finds gtk_orientable_set_orientation.
6309 (xg_create_tool_bar): Call toolbar_set_orientation.
6310 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
6311 instead of gtk_box_pack_start_defaults.
6312
6313 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * cmds.c (Fdelete_backward_char): Move into Lisp.
6316
6317 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6318
6319 * s/freebsd.h (BSD4_2): Remove redundant definition.
6320 bsd-common.h defines it already.
6321
6322 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
6323
6324 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
6325 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
6326 tool-bar-mode, which are now set using these X resources at
6327 startup, to determine the defaults (Bug#2249).
6328
6329 * w32fns.c (Fx_create_frame):
6330 * nsfns.m (Fx_create_frame): Likewise.
6331
6332 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
6333
6334 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
6335
6336 * gtkutil.c (xg_update_scrollbar_pos):
6337 Avoid C99 mid-block variable declaration.
6338
6339 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
6340
6341 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
6342
6343 * gtkutil.h (xg_show_scroll_bar): Remove.
6344
6345 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
6346 if height is less than scroll bar min size.
6347 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
6348
6349 * xfns.c (x_default_font_parameter): Try to open font from system
6350 before using it (bug#6478). Rename got_from_gconf to got_from_system.
6351
6352 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
6353
6354 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
6355
6356 2010-06-20 Eli Zaretskii <eliz@gnu.org>
6357
6358 * xdisp.c (try_scrolling): When scroll-conservatively is set to
6359 most-positive-fixnum, be extra accurate when scrolling window
6360 start, to avoid missing the cursor line.
6361
6362 2010-06-19 Eli Zaretskii <eliz@gnu.org>
6363
6364 * xdisp.c (try_scrolling): Compute the limit for searching point
6365 in forward scroll from scroll_max, instead of an arbitrary limit
6366 of 10 screen lines.
6367 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
6368 and
6369 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
6370 for details.
6371
6372 2010-06-16 Glenn Morris <rgm@gnu.org>
6373
6374 * editfns.c (Fbyte_to_string): Pacify compiler.
6375
6376 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6377
6378 * lread.c (read1): Phase out old-style backquotes a bit more.
6379
6380 2010-06-12 Eli Zaretskii <eliz@gnu.org>
6381
6382 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
6383 bidimirror.h.
6384
6385 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
6386
6387 * bidi.c (bidi_initialize): Remove explicit initialization of
6388 bidi_type_table; include biditype.h instead. Don't support
6389 entries whose second codepoint is zero. Initialize bidi_mirror_table.
6390 (bidi_mirror_char): Use bidi_mirror_table.
6391
6392 * biditype.h: New file.
6393
6394 * bidimirror.h: New file.
6395
6396 * window.c (syms_of_window): Doc fix (bug#6409).
6397
6398 2010-06-12 Romain Francoise <romain@orebokech.com>
6399
6400 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
6401 ediff-hook.
6402
6403 2010-06-10 Glenn Morris <rgm@gnu.org>
6404
6405 * editfns.c (Fbyte_to_string): Pacify compiler.
6406
6407 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
6408
6409 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
6410
6411 * alloc.c (Fmake_byte_code): Don't access undefined argument
6412 (Bug#6517).
6413
6414 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
6415
6416 * xdisp.c (next_element_from_image): Ensure that after-strings are
6417 read the next time we hit handle_stop (Bug#1336).
6418
6419 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
6420
6421 * lread.c (read1): Signal error if #s is not followed by paren.
6422
6423 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * image.c (free_image): Mark frame as garbaged (Bug#6426).
6426
6427 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
6428
6429 2010-06-15 Glenn Morris <rgm@gnu.org>
6430
6431 * editfns.c (Fbyte_to_string): Pacify compiler.
6432
6433 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
6434
6435 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
6436 Check `object's type before accessing its guts.
6437
6438 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
6439
6440 * s/usg5-4.h: Fix previous change.
6441 Suggested by Lawrence Mitchell <wence@gmx.li>
6442
6443 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
6444
6445 * minibuf.c (Fall_completions): Add more checks.
6446
6447 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
6448
6449 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
6450
6451 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
6452
6453 * lread.c (X_OK): Remove, unused.
6454
6455 * dispnew.c: Remove obsolete comment.
6456
6457 Remove INCLUDED_FCNTL.
6458 * xterm.c (INCLUDED_FCNTL):
6459 * callproc.c (INCLUDED_FCNTL):
6460 * alloc.c (INCLUDED_FCNTL):
6461 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
6462 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
6463
6464 2010-06-07 Martin Rudalics <rudalics@gmx.at>
6465
6466 * window.c (Fselect_window): Move `record_buffer' up to the
6467 beginning of this function, so the buffer gets recorded
6468 even if the selected window does not change.
6469 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
6470
6471 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
6472
6473 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
6474 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
6475
6476 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
6477
6478 Remove BSTRING related code, all platforms define it.
6479 * s/usg5-4.h (BSTRING): Remove definition.
6480 * s/template.h (BSTRING):
6481 * s/msdos.h (BSTRING):
6482 * s/ms-w32.h (BSTRING):
6483 * s/hpux10-20.h (BSTRING):
6484 * s/gnu-linux.h (BSTRING):
6485 * s/darwin.h (BSTRING):
6486 * s/cygwin.h (BSTRING):
6487 * s/bsd-common.h (BSTRING):
6488 * s/aix4-2.h (BSTRING): Likewise.
6489 * sysdep.c: Remove code depending on BSTRING not being defined.
6490
6491 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
6492
6493 Remove obsolete macro BASE_LEADING_CODE_P.
6494 * character.h (BASE_LEADING_CODE_P): Remove.
6495 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
6496 * buffer.c (Fset_buffer_multibyte):
6497 * indent.c (scan_for_column, compute_motion):
6498 * insdel.c (count_combining_before, count_combining_after):
6499 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
6500
6501 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
6502
6503 Turn `directory-sep-char' into a noop.
6504
6505 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6506 (DIRECTORY_SEP): Define unconditionally.
6507
6508 * s/ms-w32.h (DIRECTORY_SEP): Remove.
6509
6510 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
6511 call dostounix_filename directly.
6512
6513 * fileio.c (CORRECT_DIR_SEPS): Remove.
6514 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
6515 (Fsubstitute_in_file_name): Use dostounix_filename instead.
6516 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
6517 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
6518
6519 * w32proc.c (CORRECT_DIR_SEPS): Remove.
6520 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
6521
6522 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
6523
6524 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
6525 (Bug#6346)
6526
6527 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6528
6529 * ccl.c (Fccl_program_p): Fix typo in docstring.
6530
6531 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
6532
6533 Move UNEXEC definition to autoconf.
6534 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
6535 * s/sol2-10.h (UNEXEC):
6536 * s/irix6-5.h (UNEXEC):
6537 * s/hpux10-20.h (UNEXEC):
6538 * s/gnu-linux.h (UNEXEC):
6539 * s/darwin.h (UNEXEC):
6540 * s/cygwin.h (UNEXEC):
6541 * s/bsd-common.h (UNEXEC):
6542 * s/aix4-2.h (UNEXEC):
6543 * m/alpha.h (UNEXEC): Likewise.
6544 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
6545
6546 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
6547
6548 Remove obsolete pre-unicode2 macros.
6549 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
6550 * composite.c (composition_reseat_it):
6551 * data.c (Faset):
6552 * fns.c (Ffillarray):
6553 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
6554 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
6555
6556 2010-06-03 Juri Linkov <juri@jurta.org>
6557
6558 * buffer.c (Fother_buffer): Add CHECK_FRAME.
6559 (Fswitch_to_buffer): Remove unused variable `err'.
6560
6561 2010-06-03 Glenn Morris <rgm@gnu.org>
6562
6563 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
6564
6565 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
6566 now that AH_BOTTOM does it.
6567
6568 * m/hp800.h (HAVE_ALLOCA):
6569 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
6570
6571 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
6572 Remove NOT_C_CODE tests, it is always true now.
6573
6574 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
6575
6576 Fix config.h includes.
6577 * xsettings.c:
6578 * xgselect.c:
6579 * nsterm.m:
6580 * nsselect.m:
6581 * nsimage.m:
6582 * nsfont.m:
6583 * nsfns.m:
6584 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
6585 other files do.
6586
6587 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
6588
6589 * s/sol2-6.h: Remove obsolete comments.
6590
6591 Remove unnecessary alloca.h includes.
6592 * keymap.c: Do not include alloca.h, config.h does that.
6593 * sysdep.c: Likewise. Do not define fwrite, not used.
6594
6595 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6596
6597 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
6598 the HAVE_TERMIO where it belongs (bug#6149).
6599
6600 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6601
6602 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
6603 of bug#6305).
6604
6605 2010-05-30 Eli Zaretskii <eliz@gnu.org>
6606
6607 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
6608 state is always cached (bug#6306).
6609
6610 2010-05-29 Eli Zaretskii <eliz@gnu.org>
6611
6612 Fix cursor motion in bidi-reordered continued lines.
6613 * xdisp.c (try_cursor_movement): Backup to non-continuation line
6614 only after finding point's row. Fix the logic. Rewrite the loop
6615 over continuation lines in bidi-reordered buffers.
6616 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6617 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
6618
6619 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
6620
6621 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
6622
6623 2010-05-28 Kenichi Handa <handa@m17n.org>
6624
6625 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
6626 Don't sheck SPEC if it is nil.
6627 (font_list_entities): Call font_delete_unmatched if
6628 Vface_ignored_fonts is non-nil. (Bug#6287)
6629
6630 2010-05-28 Glenn Morris <rgm@gnu.org>
6631
6632 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
6633
6634 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
6637 whether to trash.
6638 (internal_delete_file, Frename_file): Callers changed.
6639 (delete_by_moving_to_trash): Doc fix.
6640 (Fdelete_directory_internal): Don't move to trash.
6641
6642 * callproc.c (delete_temp_file):
6643 * buffer.c (Fkill_buffer): Callers changed.
6644
6645 * lisp.h: Update prototype.
6646
6647 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
6648
6649 * xdisp.c (redisplay_window): After redisplay, check if point is
6650 still valid before setting it (Bug#6177).
6651
6652 2010-05-27 Glenn Morris <rgm@gnu.org>
6653
6654 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
6655 Convert comments to Makefile format.
6656
6657 * Makefile.in (bootstrap-clean): No more Makefile.c.
6658
6659 2010-05-26 Glenn Morris <rgm@gnu.org>
6660
6661 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
6662 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
6663
6664 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6665 Remove.
6666 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6667
6668 2010-05-26 Kenichi Handa <handa@m17n.org>
6669
6670 * composite.c (composition_compute_stop_pos): Fix condition for
6671 backward scanning.
6672
6673 2010-05-25 Glenn Morris <rgm@gnu.org>
6674
6675 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
6676 Move before TEMACS_LDFLAGS.
6677 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6678 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
6679
6680 * Makefile.in (NOT_C_CODE): No longer define.
6681 (config.h): No longer include.
6682
6683 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
6684 variables it may reference.
6685
6686 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
6687 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
6688
6689 2010-05-25 Kenichi Handa <handa@m17n.org>
6690
6691 * dispextern.h (struct composition_it): New members rule_idx and
6692 charpos.
6693
6694 * xdisp.c (set_iterator_to_next): While scanning backward, assume
6695 that the character positions of IT point the last character of the
6696 current grapheme cluster.
6697 (next_element_from_composition): Don't change character positions
6698 of IT.
6699 (append_composite_glyph): Set glyph->charpos to
6700 it->cmp_it.charpos.
6701
6702 * composite.c (autocmp_chars): Change the first argument to RULE,
6703 and try composition with RULE only.
6704 (composition_compute_stop_pos): Record the index number of the
6705 composition rule in CMP_IT->rule_idx.
6706 (composition_reseat_it): Call autocmp_chars repeatedly until the
6707 correct rule of the composition is found.
6708 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
6709 is at the last character of the current grapheme cluster when
6710 CMP_IT->reversed_p is nonzero.
6711
6712 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6713
6714 * editfns.c (Fbyte_to_string): New function.
6715
6716 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
6717
6718 * process.c (Fmake_network_process): Set :host to nil if it's not used.
6719 Suggested by Masatake YAMATO <yamato@redhat.com>.
6720
6721 2010-05-23 Eli Zaretskii <eliz@gnu.org>
6722
6723 * dispextern.h (init_iterator): Sync prototype with changed definition.
6724
6725 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
6726
6727 * s/netbsd.h: If terminfo is found, use it in preference to
6728 termcap. (Bug#6190) [Backport from trunk]
6729
6730 2010-05-19 Eli Zaretskii <eliz@gnu.org>
6731
6732 Redesign and reimplement bidi-aware edge positions of glyph rows.
6733
6734 * dispextern.h (struct glyph_row): New members minpos and maxpos.
6735 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
6736 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
6737 and maxpos members instead of start.pos and end.pos, respectively.
6738
6739 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
6740 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
6741 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
6742 (try_window_reusing_current_matrix, try_window_id):
6743 Use ROW->minpos rather than ROW->start.pos.
6744 (init_from_display_pos, init_iterator): Use EMACS_INT for
6745 character and byte positions.
6746 (find_row_edges): Rename from find_row_end. Accept additional
6747 arguments for minimum and maximum buffer positions seen by
6748 display_line for this row. Don't use iterator to find the
6749 position following the maximum one; instead, increment the
6750 position found by display_line directly. Fix logic; eol_pos
6751 should be tested before the rest. Handle the case of characters
6752 delivered from display vector (bug#6036). Fix tests related to
6753 it->method. Handle the truncated_on_right_p rows.
6754 (RECORD_MAX_MIN_POS): New macro.
6755 (display_line): Use it to record the minimum and maximum buffer
6756 positions for glyphs in the row being assembled. Record the
6757 position of the newline that terminates the line. If word wrap is
6758 in effect, restore minimum and maximum positions seen up to the
6759 wrap point, when iterator returns to it.
6760 (try_window_reusing_current_matrix): Give up if in bidi-reordered
6761 row and cursor not already at point. Restore original pre-bidi
6762 code for unidirectional buffers.
6763
6764 * dispnew.c (increment_row_positions, check_matrix_invariants):
6765 Increment and check row->start.pos and row->end.pos, in addition
6766 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
6767
6768 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
6769 Display truncated_on_left_p and truncated_on_right_p flags.
6770 Formatting fixes.
6771 (pmtxrows): Display the ordinal number of each row. Don't display
6772 rows beyond the last one.
6773
6774 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
6775 it is not copied by bidi_copy_it.
6776
6777 2010-05-22 Eli Zaretskii <eliz@gnu.org>
6778
6779 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
6780 (Bug#6237)
6781
6782 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
6783
6784 * image.c (Fimage_flush): Rename from image-refresh.
6785
6786 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
6787
6788 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
6789 just one window.
6790
6791 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
6792 (clear_image_cache): If the number of cached images is unusually
6793 large, decrease the cache eviction delay (Bug#6230).
6794
6795 2010-05-21 Glenn Morris <rgm@gnu.org>
6796
6797 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
6798 Move these rules to ns.mk.
6799 * ns.mk: New file.
6800
6801 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
6802
6803 * Makefile.in (CANNOT_DUMP): New, set by configure.
6804 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6805
6806 2010-05-20 Juri Linkov <juri@jurta.org>
6807
6808 * fileio.c (Fdelete_file): Change interative spec to use
6809 `read-file-name' like in `find-file-read-args' where the default
6810 value is `default-directory' instead of `buffer-file-name'.
6811 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6812
6813 2010-05-20 Kevin Ryde <user42@zip.com.au>
6814
6815 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6816 (Voverriding_terminal_local_map, Vsystem_key_alist)
6817 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6818
6819 2010-05-20 Glenn Morris <rgm@gnu.org>
6820
6821 * Makefile.in (DEPDIR): New constant.
6822 (DEPFLAGS): Set with configure, not cpp.
6823 (MKDEPDIR): New, set by configure.
6824 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6825 (clean): Use $DEPDIR.
6826 (deps_frag): Include from configure.
6827 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6828 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6829
6830 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6831 Fix reallocation of the cache. (Bug#6210)
6832
6833 2010-05-19 Glenn Morris <rgm@gnu.org>
6834
6835 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6836
6837 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6838 (GNULIB_VAR): Remove.
6839 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6840
6841 * m/ibms390x.h (LINKER):
6842 * m/macppc.h (LINKER) [GNU_LINUX]:
6843 * s/aix4-2.h (ORDINARY_LINK):
6844 * s/cygwin.h (LINKER):
6845 * s/darwin.h (ORDINARY_LINK):
6846 * s/gnu.h (ORDINARY_LINK):
6847 * s/netbsd.h (LINKER):
6848 * s/usg5-4.h (ORDINARY_LINK):
6849 Move to configure.
6850
6851 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6852
6853 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
6854
6855 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6856 prevent stack overflow if number of arguments is too large
6857 (Bug#6214).
6858
6859 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
6860
6861 * charset.c (load_charset_map_from_file): Don't call close after fclose.
6862
6863 2010-05-18 Glenn Morris <rgm@gnu.org>
6864
6865 * s/gnu-linux.h: Combine two conditionals.
6866
6867 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6868 $(POST_ALLOC_OBJ).
6869
6870 * Makefile.in (RALLOC_OBJ): New, set by configure.
6871 (rallocobj): Replace with the previous variable.
6872 (otherobj): Use $RALLOC_OBJ.
6873
6874 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6875 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6876
6877 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6878 (gmallocobj, vmlimitobj): Replace with previous two variables.
6879 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6880
6881 2010-05-17 Glenn Morris <rgm@gnu.org>
6882
6883 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6884 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6885
6886 2010-05-16 Glenn Morris <rgm@gnu.org>
6887
6888 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6889
6890 * Makefile.in (clean): Get rid of HAVE_NS conditional.
6891
6892 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6893 trailing "/".
6894
6895 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6896 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6897
6898 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6899 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6900 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6901 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6902 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6903
6904 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6905 Remove ${STARTFLAGS}, nothing ever sets it.
6906
6907 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
6908
6909 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6910
6911 2010-05-16 Glenn Morris <rgm@gnu.org>
6912
6913 * Makefile.in (LIBX_BASE): Always define.
6914
6915 * Makefile.in (LIBX_OTHER): Move out of cpp section.
6916
6917 * Makefile.in (LIBXT): Always define.
6918
6919 2010-05-15 Glenn Morris <rgm@gnu.org>
6920
6921 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
6922
6923 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6924 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6925
6926 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
6927
6928 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
6929 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6930
6931 * emacs.c (main): Initialize initial-environment and
6932 process-environment before generating from env, not after.
6933
6934 Handle --version reasonably in CANNOT_DUMP configuration.
6935 * emacs.c (emacs_version, emacs_copyright): New string variables.
6936 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6937 (syms_of_emacs): Defvar them, and initialize them from the C
6938 string variables.
6939 (main): If initialization hasn't been done, print initial version
6940 info from the C strings, instead of starting an interactive session.
6941
6942 2010-05-15 Eli Zaretskii <eliz@gnu.org>
6943
6944 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6945 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
6946 (bidi_paragraph_init): Remove redundant assertion that we are at
6947 the beginning of a line after call to bidi_find_paragraph_start.
6948
6949 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6950 (syms_of_xdisp): Defsubr it.
6951
6952 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6953
6954 * Makefile.in: Fix MSDOS-related comments.
6955
6956 2010-05-15 Glenn Morris <rgm@gnu.org>
6957
6958 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6959 (really-lwlib, really-oldXMenu): Always define.
6960 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6961
6962 * Makefile.in: Simplify cpp conditional.
6963
6964 * Makefile.in (${ns_appdir}): Simplify using umask.
6965
6966 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6967
6968 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6969
6970 * eval.c (specbind): Remove left-over duplicate test.
6971 Disallow let-binding frame-local vars. Add comment.
6972
6973 2010-05-14 Eli Zaretskii <eliz@gnu.org>
6974
6975 Make the cache of bidi iterator states dynamically allocated.
6976 * bidi.c (bidi_cache_shrink): New function.
6977 (bidi_init_it): Call it.
6978 (bidi_cache_iterator_state): Enlarge the cache if needed.
6979
6980 * bidi.c (bidi_move_to_visually_next): Rename from
6981 bidi_get_next_char_visually. All callers changed.
6982
6983 2010-05-14 Kenichi Handa <handa@m17n.org>
6984
6985 * dispextern.h (struct composition_it): New member reversed_p.
6986
6987 * composite.c (composition_compute_stop_pos): Search backward if
6988 ENDPOS < CHARPOS.
6989 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6990 Set CMP_IT->reversed_p.
6991 (composition_update_it): Pay attention to CMP_IT->reversed_p.
6992
6993 * xdisp.c (set_iterator_to_next):
6994 Call composition_compute_stop_pos with negative ENDPOS if we are
6995 scanning backward. Call composition_compute_stop_pos if scan
6996 direction is changed.
6997 (next_element_from_buffer): Call composition_compute_stop_pos with
6998 negative ENDPOS if we are scanning backward.
6999 (next_element_from_composition): Pay attention to
7000 IT->cmp_it.reversed_p.
7001
7002 2010-05-14 Kenichi Handa <handa@m17n.org>
7003
7004 * font.c (font_range): Return the range for the font found at first.
7005
7006 2010-05-14 Glenn Morris <rgm@gnu.org>
7007
7008 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
7009
7010 * Makefile.in (mktime, X11, register): Move undefs to configure.
7011
7012 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
7013 (MSDOS_X_OBJ): New variable.
7014 (MSDOS_SUPPORT_REAL): New constant.
7015 (MSDOS_SUPPORT): Set as a variable, not with cpp.
7016 (obj): Use MSDOS_X_OBJ.
7017 (lisp): Use MSDOS_SUPPORT as a variable.
7018
7019 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
7020 (GPM_MOUSE_SUPPORT): Now it's a constant.
7021 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
7022 not cpp.
7023
7024 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
7025 (ns_appresdir): Remove, unused.
7026
7027 * Makefile.in (SHELL): Move outside cpp section.
7028
7029 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
7030
7031 2010-05-13 Glenn Morris <rgm@gnu.org>
7032
7033 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
7034 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
7035
7036 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
7037 HAVE_WINDOW_SYSTEM must be too.
7038
7039 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
7040 (lisp): Remove WINNT_SUPPORT.
7041
7042 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
7043 Let configure set these variables (to empty) in this case as well.
7044
7045 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
7046 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
7047
7048 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
7049 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
7050 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
7051 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
7052 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
7053 the values output by configure.
7054 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
7055
7056 2010-05-12 Glenn Morris <rgm@gnu.org>
7057
7058 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
7059 (LINKER_WAS_SPECIFIED): Remove.
7060
7061 * Makefile.in (LIB_GCC): Set using configure, not cpp.
7062 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
7063 * m/arm.h (LIB_GCC) [GNU_LINUX]:
7064 * s/cygwin.h (LIB_GCC):
7065 * s/freebsd.h (LIB_GCC):
7066 * s/gnu-linux.h (LIB_GCC):
7067 * s/msdos.h (LIB_GCC):
7068 * s/netbsd.h (LIB_GCC):
7069 Move to configure.
7070
7071 2010-05-11 Karel Klíč <kklic@redhat.com>
7072
7073 * ftfont.c: Fix incorrect parentheses of #if condition for
7074 definining M17N_FLT_USE_NEW_FEATURE.
7075
7076 2010-05-11 Glenn Morris <rgm@gnu.org>
7077
7078 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
7079 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
7080
7081 2010-05-10 Eli Zaretskii <eliz@gnu.org>
7082
7083 * xdisp.c (init_iterator): Don't turn on bidi reordering in
7084 unibyte buffers. See
7085 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
7086
7087 2010-05-10 Glenn Morris <rgm@gnu.org>
7088
7089 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
7090 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
7091 (LIBES): Use LIBS_SYSTEM as a variable.
7092 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
7093 * s/aix4-2.h (LIBS_SYSTEM):
7094 * s/freebsd.h (LIBS_SYSTEM):
7095 * s/hpux10-20.h (LIBS_SYSTEM):
7096 * s/sol2-6.h (LIBS_SYSTEM):
7097 * s/unixware.h (LIBS_SYSTEM):
7098 Move to configure.
7099
7100 * s/aix4-2.h (MAIL_USE_LOCKF):
7101 * s/bsd-common.h (MAIL_USE_FLOCK):
7102 * s/darwin.h (MAIL_USE_FLOCK):
7103 * s/gnu-linux.h (MAIL_USE_FLOCK):
7104 * s/irix6-5.h (MAIL_USE_FLOCK):
7105 * s/template.h (MAIL_USE_FLOCK):
7106 Move to configure.
7107
7108 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
7109
7110 * Version 23.2 released.
7111
7112 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
7113
7114 * composite.c (autocmp_chars): Save point as marker before calling
7115 auto-composition-function (Bug#5984).
7116
7117 * lisp.h (restore_point_unwind): Add prototype.
7118
7119 * fileio.c (restore_point_unwind): Remove static attribute.
7120
7121 2010-05-08 Kenichi Handa <handa@m17n.org>
7122
7123 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
7124 new feature of libotf and m17n-flt.
7125 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
7126 Call OTF_check_features even if no specific feature is given.
7127 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
7128 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
7129 that OUT is NULL. Use OTF_drive_gsub_with_log and
7130 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
7131 OTF_drive_gpos.
7132 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
7133 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
7134 Setup mflt_enable_new_feature and mflt_try_otf.
7135
7136 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
7137
7138 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
7139
7140 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
7141 box and toolbar (Bug #6139).
7142 (xg_create_tool_bar): Remove comment (Bug #6139).
7143 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
7144 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
7145
7146 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
7147
7148 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
7149 Update dependencies.
7150
7151 2010-05-08 Eli Zaretskii <eliz@gnu.org>
7152
7153 * fringe.c (update_window_fringes): Set up truncation bitmaps for
7154 R2L lines.
7155
7156 2010-05-08 Glenn Morris <rgm@gnu.org>
7157
7158 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
7159
7160 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
7161 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
7162 (termcapobj): Replace with TERMCAP_OBJ.
7163 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7164 (LIBES): Use LIBS_TERMCAP as a variable.
7165
7166 * s/freebsd.h (osreldate.h): No longer include, since this file
7167 does not use __FreeBSD_version any more.
7168
7169 * s/aix4-2.h (TERMINFO):
7170 * s/cygwin.h (TERMINFO):
7171 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7172 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
7173 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7174 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
7175 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
7176 * s/irix6-5.h (TERMINFO):
7177 * s/netbsd.h (LIBS_TERMCAP):
7178 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
7179 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
7180 * s/usg5-4.h (TERMINFO):
7181 Move to configure.
7182
7183 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
7184
7185 * eval.c (unbind_to): Don't unbind a local binding into the global
7186 binding when the local binding disappeared. Inversely, don't unbind
7187 a global binding into a newly created local binding.
7188 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
7189 can specify the frame to use, when applicable. Adjust callers.
7190
7191 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
7192 Stefan Monnier <monnier@iro.umontreal.ca>
7193
7194 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
7195
7196 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7197
7198 * w32fns.c: Include w32.h.
7199 (Fw32_shell_execute): Decode the error message before passing it
7200 to `error'. (Bug#6126)
7201
7202 * msdos.c (dos_set_window_size):
7203 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
7204 instead of `XSYMBOL (foo)->value'.
7205
7206 2010-05-07 Eli Zaretskii <eliz@gnu.org>
7207
7208 Fix the MS-DOS build, broken by autoconfiscation.
7209
7210 * Makefile.in: Don't use Make-style comments past the "start of
7211 cpp stuff" line.
7212 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
7213
7214 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
7215 edited directly by msdos/sed1v2.inp).
7216
7217 2010-05-07 Glenn Morris <rgm@gnu.org>
7218
7219 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
7220 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
7221 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
7222 move out of cpp section.
7223 * s/freebsd.h (LD_SWITCH_SYSTEM):
7224 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
7225 * s/netbsd.h (LD_SWITCH_SYSTEM):
7226 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
7227
7228 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7229
7230 Define LIB_STANDARD and START_FILES using autoconf.
7231 * s/usg5-4.h (LIB_STANDARD):
7232 * s/netbsd.h (START_FILES):
7233 * s/irix6-5.h (LIB_STANDARD):
7234 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
7235 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7236 * s/freebsd.h (START_FILES):
7237 * s/darwin.h (START_FILES):
7238 * s/cygwin.h (START_FILES):
7239 * s/aix4-2.h (LIB_STANDARD):
7240 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
7241 * Makefile.in (STARTFILES): Rename to START_FILES, define using
7242 autoconf, not cpp.
7243
7244 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
7245
7246 Remove NEED_BSDTTY and NEED_UNISTD_H.
7247 * s/hpux10-20.h (NEED_BSDTTY): Remove.
7248 * s/aix4-2.h (NEED_UNISTD_H): Remove.
7249 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
7250 <sys/ptyio.h> and <unistd.h>.
7251
7252 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
7253
7254 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
7255 * s/gnu.h (START_FILES): Remove empty definition.
7256
7257 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
7258
7259 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
7260
7261 2010-05-06 Glenn Morris <rgm@gnu.org>
7262
7263 * Makefile.in (CPP, LN_S): Remove unused variables.
7264
7265 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7266
7267 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
7268
7269 2010-05-05 Lawrence Mitchell <wence@gmx.li>
7270
7271 * m/sparc.h: Fix typo in earlier change.
7272
7273 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7274
7275 Misc tweaks.
7276 * eval.c (Fdefvaralias): Remove unintended nested if.
7277 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
7278
7279 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
7280
7281 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
7282
7283 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7284
7285 Remove BSD_PGRPS.
7286 * s/bsd-common.h (BSD_PGRPS): Remove undef.
7287 * s/gnu-linux.h (BSD_PGRPS): Remove.
7288 * term.c (dissociate_if_controlling_tty):
7289 * sysdep.c (narrow_foreground_group, widen_foreground_group)
7290 (init_sys_modes, reset_sys_modes):
7291 * emacs.c (main):
7292 * callproc.c (Fcall_process, child_setup): Remove code depending
7293 on BSD_PGRPS.
7294
7295 Remove POSIX_SIGNALS.
7296 * s/usg5-4.h (POSIX_SIGNALS):
7297 * s/netbsd.h (POSIX_SIGNALS):
7298 * s/msdos.h (POSIX_SIGNALS):
7299 * s/ms-w32.h (POSIX_SIGNALS):
7300 * s/hpux11.h (POSIX_SIGNALS):
7301 * s/gnu.h (POSIX_SIGNALS):
7302 * s/gnu-linux.h (POSIX_SIGNALS):
7303 * s/freebsd.h (POSIX_SIGNALS):
7304 * s/darwin.h (POSIX_SIGNALS):
7305 * s/cygwin.h (POSIX_SIGNALS):
7306 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
7307 * s/unixware.h:
7308 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
7309 * process.c (create_process):
7310 * syssignal.h:
7311 * sysdep.c (wait_for_termination, init_signals):
7312 * process.c (create_process):
7313 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
7314 remove all code that assumes the contrary.
7315
7316 2010-05-04 Glenn Morris <rgm@gnu.org>
7317
7318 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
7319 variable.
7320 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7321 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
7322 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
7323 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
7324 LD_SWITCH_SYSTEM_tmp.
7325 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
7326 New variables, set by configure.
7327
7328 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7329 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
7330 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
7331 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7332 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
7333
7334 * s/aix4-2.h (C_SWITCH_SYSTEM):
7335 * m/alpha.h (C_SWITCH_MACHINE):
7336 Move to configure.in.
7337 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
7338 New variables, set by configure.
7339 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
7340 $c_switch_machine and $c_switch_system.
7341
7342 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
7343
7344 * s/hpux10-20.h (LIB_STANDARD): New definition.
7345 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
7346 on it, not used anymore.
7347
7348 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
7349
7350 * eval.c (internal_condition_case_n): Rename from
7351 internal_condition_case_2.
7352 (internal_condition_case_2): New function.
7353
7354 * xdisp.c (safe_call): Use internal_condition_case_n.
7355
7356 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
7357 (internal_delete_file, Frename_file): Callers changed.
7358
7359 * buffer.c (Fkill_buffer):
7360 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
7361
7362 * lisp.h: Update prototypes.
7363
7364 2010-05-03 Glenn Morris <rgm@gnu.org>
7365
7366 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
7367 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
7368 (LIBXT): Set with configure, not cpp.
7369 (LIBX): Remove.
7370 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
7371
7372 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7373
7374 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
7375 The FreeBSD is not needed, the default works, Solaris version is
7376 not needed, and the remaining case is not supported by configure.
7377
7378 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
7379
7380 * xsmfns.c (CHDIR_OPT): New define.
7381 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
7382 restarting emacs.
7383
7384 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
7385 shut_down_emacs.
7386
7387 * emacs.c (USAGE1): Mention --chdir.
7388 (main): Handle --chdir.
7389 (standard_args): Add --chdir.
7390 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
7391 #5552).
7392
7393 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
7394
7395 Remove LD_SWITCH_MACHINE.
7396 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
7397 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
7398
7399 Clean up IRIX code.
7400 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
7401 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
7402
7403 Clean up AIX code.
7404 * m/ibmrs6000.inp: Remove file, unused.
7405 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
7406 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
7407 definition ...
7408 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
7409
7410 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
7411 unused.
7412
7413 2010-05-01 Eli Zaretskii <eliz@gnu.org>
7414
7415 Emulate POSIX_SIGNALS on MS-Windows.
7416
7417 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
7418 (SIG_SETMASK, SIG_UNBLOCK): Define.
7419
7420 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
7421 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
7422 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
7423
7424 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
7425 New stubs.
7426
7427 Miscellaneous fixes of bidi display.
7428
7429 * xdisp.c (find_row_end): New function, refactored from display_line.
7430 (display_line): Use it.
7431 (extend_face_to_end_of_line): In almost-filled rows, extend only
7432 if the row is R2L and not continued.
7433 (display_line): Fix prepending of truncation glyphs to R2L rows.
7434 Preserve overlay and string info in row->end.
7435 (insert_left_trunc_glyphs): Support addition of left truncation
7436 glyphs to R2L rows.
7437 (set_cursor_from_row): Don't place cursor on the vertical border
7438 glyph between adjacent windows. Fix a crash when a display string
7439 is continued to the next line. Don't return zero if cursor was
7440 found by `cursor' property of a display string.
7441 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
7442 test for that explicitly.
7443
7444 2010-05-01 Glenn Morris <rgm@gnu.org>
7445
7446 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
7447 for clarity.
7448 (OTHER_OBJ): Remove.
7449 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
7450 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
7451
7452 2010-05-01 Karel Klíč <kklic@redhat.com>
7453
7454 * fileio.c (Ffile_selinux_context): Context functions may return null.
7455
7456 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
7457
7458 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
7459
7460 2010-04-30 Glenn Morris <rgm@gnu.org>
7461
7462 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
7463 (OTHER_OBJ): Define as a separate variable, for clarity.
7464
7465 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
7466
7467 * xsettings.c: include limits.h and update file comment.
7468
7469 2010-04-30 Glenn Morris <rgm@gnu.org>
7470
7471 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
7472 Set with configure, not cpp.
7473 (LIBW): Remove, replace with $TOOLKIT_LIBW.
7474
7475 * Makefile.in (mallocobj): Remove.
7476 (otherobj): Simplify using @OTHER_OBJ@.
7477
7478 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
7479 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
7480 Don't bother making nsgui.h dependency platform-specific.
7481
7482 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
7483
7484 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
7485
7486 * process.c (read_process_output, exec_sentinel): Don't burp if the
7487 sentinel/filter kills the current buffer (bug#6060).
7488
7489 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
7490 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
7491 Remove unused var `args'.
7492 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
7493 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
7494 * doc.c (store_function_docstring): Use XSETCAR.
7495
7496 2010-04-28 Glenn Morris <rgm@gnu.org>
7497
7498 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
7499 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
7500
7501 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
7502
7503 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
7504 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
7505
7506 * Makefile.in (FONT_OBJ): New, set by configure.
7507 (FONT_DRIVERS): Use $FONT_OBJ.
7508
7509 * Makefile.in (LIBXMU): Set with configure, not cpp.
7510 * s/aix4-2.h (LIBXMU):
7511 * s/hpux10-20.h (LIBXMU):
7512 Remove definition, now set in configure.
7513
7514 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
7515
7516 * m/amdx86-64.h [i386]: Move this test to configure.in.
7517
7518 2010-04-27 Glenn Morris <rgm@gnu.org>
7519
7520 * Makefile.in (LIBXTR6): Set with configure, not cpp.
7521 * s/unixware.h (NEED_LIBW): Remove definition.
7522
7523 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
7524 (TOOLKIT_LIBW): New, set by configure.
7525 (@X_TOOLKIT_TYPE@): No longer define it.
7526
7527 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
7528 (MOTIF_LIBW): Set with configure, not cpp.
7529 * s/aix4-2.h (LIB_MOTIF):
7530 * s/gnu-linux.h (LIB_MOTIF):
7531 * s/unixware.h (LIB_MOTIF): Move to configure.in.
7532
7533 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
7534
7535 Reduce CPP usage.
7536 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
7537 (obj): Use autoconf for unexec instead of cpp.
7538 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
7539 Remove definitions and undefs. Inline definitions in the only user.
7540 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
7541
7542 2010-04-27 Glenn Morris <rgm@gnu.org>
7543
7544 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
7545 since the defaults (set by the system file) are fine in most cases.
7546 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
7547 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7548 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
7549 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
7550 Remove definitions, since they are set correctly in s/gnu-linux.h.
7551 * s/freebsd.h (START_FILES, LIB_STANDARD):
7552 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
7553 * s/hpux10-20.h (START_FILES):
7554 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
7555 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
7556
7557 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
7558 (MOTIF_LIBW): Use $LIBXP.
7559 (otherobj): Use $WIDGET_OBJ.
7560
7561 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
7562
7563 * Makefile.in (LIBS_MACHINE): Remove, unused.
7564
7565 Use autoconf instead of cpp for LIB_MATH.
7566 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
7567 * s/cygwin.h (LIB_MATH): Likewise.
7568 * Makefile.in (LIB_MATH): Do not define with cpp.
7569 (LIBES): Use autoconf for LIB_MATH.
7570
7571 2010-04-26 Kenichi Handa <handa@m17n.org>
7572
7573 * composite.c (Ffind_composition_internal): Fix the return value
7574 for an automatic composition.
7575
7576 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
7577
7578 Remove all NO_ARG_ARRAY uses.
7579 * fns.c (concat2, concat3, nconc2):
7580 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
7581 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
7582 * m/xtensa.h (NO_ARG_ARRAY):
7583 * m/template.h (NO_ARG_ARRAY):
7584 * m/sparc.h (NO_ARG_ARRAY):
7585 * m/sh3.h (NO_ARG_ARRAY):
7586 * m/mips.h (NO_ARG_ARRAY):
7587 * m/macppc.h (NO_ARG_ARRAY):
7588 * m/iris4d.h (NO_ARG_ARRAY):
7589 * m/intel386.h (NO_ARG_ARRAY):
7590 * m/ibms390x.h (NO_ARG_ARRAY):
7591 * m/ibms390.h (NO_ARG_ARRAY):
7592 * m/ibmrs6000.h (NO_ARG_ARRAY):
7593 * m/ia64.h (NO_ARG_ARRAY):
7594 * m/hp800.h (NO_ARG_ARRAY):
7595 * m/arm.h (NO_ARG_ARRAY):
7596 * m/amdx86-64.h (NO_ARG_ARRAY):
7597 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
7598
7599 2010-04-25 Eli Zaretskii <eliz@gnu.org>
7600
7601 * xdisp.c (display_line): Don't assume 2nd call to
7602 get_next_display_element cannot return zero. (Bug#6030)
7603 (iterate_out_of_display_property): New function, body from pop_it.
7604 (pop_it): Use it.
7605
7606 2010-04-24 Glenn Morris <rgm@gnu.org>
7607
7608 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
7609 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
7610 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
7611 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
7612
7613 2010-04-24 Eli Zaretskii <eliz@gnu.org>
7614
7615 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
7616 use `get_next_display_element' and `set_iterator_to_next' to
7617 advance to the next character, when looking for the character that
7618 begins the next row.
7619
7620 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
7621 definition of "struct Lisp_Symbol".
7622
7623 2010-04-24 Glenn Morris <rgm@gnu.org>
7624
7625 * Makefile.in (CRT_DIR): New variable, set by configure.
7626 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
7627 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
7628
7629 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
7632
7633 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
7634
7635 Remove redundant flags.
7636 * s/freebsd.h (C_SWITCH_SYSTEM):
7637 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
7638 * s/netbsd.h (C_SWITCH_SYSTEM):
7639 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
7640 of these.
7641
7642 Simplify m/intel386.h.
7643 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
7644 user: ecrt0.c.
7645 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
7646 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
7647 the only user: s/unixware.h.
7648 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
7649 from m/intel386.h.
7650 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
7651 Definitions moved here from m/intel386.h.
7652
7653 * m/mips.h: Remove #if 0 code.
7654
7655 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7656
7657 Fix display of composed characters from L2R scripts in bidi buffers.
7658 * xdisp.c (set_iterator_to_next, next_element_from_composition):
7659 After advancing IT past the composition, resync the bidi iterator
7660 with IT's position. (Bug#5977)
7661
7662 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7663
7664 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
7665 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
7666
7667 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7668
7669 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
7670
7671 2010-04-23 Eli Zaretskii <eliz@gnu.org>
7672
7673 Support `display' text properties and overlay strings in bidi buffers.
7674 * xdisp.c (pop_it): When the stack is popped after displaying
7675 from a string, bidi-iterate to exit from the text portion covered
7676 by the `display' property or overlay. (Bug#5988, bug#5920)
7677
7678 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
7679
7680 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
7681 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
7682
7683 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
7684 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
7685
7686 Simplify STARTFILES definition.
7687 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
7688 relying on Makefile.in to define it.
7689 * s/cygwin.h (START_FILES): Likewise.
7690 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
7691
7692 Clean up Solaris code.
7693 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
7694 (LIB_MOTIF): Remove, configure takes care of this.
7695 (NOT_USING_MOTIF): Remove, unused.
7696 * xrdb.c: Remove #if 0-ed #include.
7697 (SYSV): Remove conditional for old SysV.
7698 * sysdep.c (closedir): Remove conditional code for Solaris,
7699 Solaris has closedir.
7700
7701 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
7702
7703 * xsettings.c (read_and_apply_settings): Check if current_font is
7704 NULL before strcmp (Bug#6001).
7705
7706 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
7707
7708 Clean up HP-UX files.
7709 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
7710 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
7711 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
7712 * s/hpux10-20.h: ... to the only user, here.
7713
7714 2010-04-21 Eli Zaretskii <eliz@gnu.org>
7715
7716 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
7717 use buffer-local values of paragraph-start and paragraph-separate.
7718 <paragraph_start_re, paragraph_separate_re>: Rename from
7719 fallback_paragraph_start_re and fallback_paragraph_separate_re.
7720 (Bug#5992)
7721
7722 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7723
7724 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
7725 current_tool_bar_style are new.
7726 (store_config_changed_event): Rename from store_font_changed_event.
7727 (XSETTINGS_TOOL_BAR_STYLE): New define.
7728 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
7729 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
7730 HAVE_XFT.
7731 (something_changedCB): store_font_changed_event is now
7732 store_config_changed_event.
7733 (parse_settings): Rename from parse_xft_settings.
7734 Read non-xft xsettings outside #ifdef HAVE_XFT.
7735 (read_settings): Rename from read_xft_settings.
7736 (apply_xft_settings): Take current settings as parameter. Do not
7737 call read_(xft)_settings.
7738 (read_and_apply_settings): New function.
7739 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
7740 Call read_and_apply_settings if there are settings to be read.
7741 (init_xsettings): Rename from init_xfd_settings.
7742 Call read_and_apply_settings unconditionally.
7743 (xsettings_initialize): Call init_xsettings.
7744 (Ftool_bar_get_system_style): New function.
7745 (syms_of_xsettings): Define Qmonospace_font_name and
7746 Qtool_bar_style. Initialize current_tool_bar_style to nil.
7747 defsubr Stool_bar_get_system_style. Fprovide on
7748 dynamic-setting.
7749 Move misplaced HAVE_GCONF
7750
7751 * xsettings.h (Ftool_bar_get_system_style): Declare.
7752
7753 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
7754 Qtext, Qboth, Qboth_horiz are new.
7755 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
7756 Vtool_bar_style, tool_bar_max_label_size.
7757
7758 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
7759
7760 * keyboard.c: QClabel is new.
7761 (parse_tool_bar_item): Take out QClabel from tool bar items.
7762 Try to construct a label if ther is no QClabel.
7763 (syms_of_keyboard): Intern :label as QClabel.
7764
7765 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
7766 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
7767 New.
7768
7769 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
7770 dynamic-setting.el.
7771
7772 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
7773 (xg_make_tool_item, xg_show_toolbar_item): New function.
7774 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
7775 Call xg_make_tool_item to make a tool bar item.
7776 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
7777
7778 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
7779 into account for toolbars.
7780
7781 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
7782
7783 * data.c (make_blv): Declarations before code (Bug#5993).
7784
7785 2010-04-21 Glenn Morris <rgm@gnu.org>
7786
7787 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
7788 Define using autoconf, not cpp.
7789 (LIBXSM): New variable, set by autoconf.
7790 (LIBXT): Use $LIBXSM.
7791
7792 2010-04-21 Dan Nicolaescu <local_user@dannlt>
7793
7794 Remove NOMULTIPLEJOBS, unused.
7795 * s/template.h (NOMULTIPLEJOBS):
7796 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
7797
7798 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
7799 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
7800 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
7801 detects -znocombreloc and passes it to the linker
7802 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7803
7804 2010-04-21 Glenn Morris <rgm@gnu.org>
7805
7806 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7807
7808 2010-04-21 Karel Klíč <kklic@redhat.com>
7809
7810 * Makefile.in (LIBSELINUX_LIBS): New.
7811 (LIBES): Add $LIBSELINUX_LIBS.
7812 * eval.c, lisp.h (call7): New function.
7813 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7814 (Ffile_selinux_context, Fset_file_selinux_context):
7815 New functions.
7816 (Fcopy_file): New parameter preserve-selinux-context.
7817 (Frename_file): Preserve selinux context when renaming by copy-file.
7818
7819 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
7820 Eli Zaretskii <eliz@gnu.org>
7821
7822 Don't depend on cm.c or termcap.c on Windows, use stubs.
7823 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7824 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7825 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7826 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7827 (sys_tputs, sys_tgetstr): New stubs.
7828 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7829 (tputs, tgetstr): New; define to sys_*.
7830
7831 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
7832
7833 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7834
7835 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7836
7837 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7838 Just signal a warning rather than an error when inside a let.
7839 (Fmake_variable_frame_local): Add the same test.
7840
7841 * font.c (syms_of_font): Make the style table vars read-only.
7842
7843 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7844 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7845
7846 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7847
7848 2010-04-20 Eli Zaretskii <eliz@gnu.org>
7849
7850 Fix R2L paragraph display on TTY.
7851
7852 * xdisp.c (unproduce_glyphs): New function.
7853 (display_line): Use it when produced glyphs are discarded from R2L
7854 glyph rows.
7855 (append_composite_glyph): In R2L rows, prepend the glyph rather
7856 than appending it.
7857
7858 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7859 rather than append it. Set up the resolved_level and bidi_type
7860 attributes of the appended glyph.
7861 (produce_special_glyphs): Mirror the backslash continuation
7862 character in R2L lines.
7863
7864 Implement display of R2L paragraphs in GUI sessions.
7865
7866 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7867 append_stretch_glyph.
7868 (set_cursor_from_row) <cursor_x>: Remove unused variable.
7869 Fix off-by-one error in computing x at end of text in the row.
7870 (append_stretch_glyph): In reversed row, prepend the glyph rather
7871 than append it. Set resolved_level and bidi_type of the glyph.
7872 (extend_face_to_end_of_line): If the row is reversed, prepend a
7873 stretch glyph whose width is such that the rightmost glyph will be
7874 drawn at the right margin of the window. Fix off-by-one error on
7875 TTY frames in testing whether a line needs face extension.
7876 Fix face extension at ZV. If this is the last glyph row, use
7877 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7878 region face.
7879 (set_cursor_from_row, display_line):
7880 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
7881 row->continuation_lines_width.
7882 (next_element_from_buffer): Don't call bidi_paragraph_init if we
7883 are at ZV. Fixes a crash when reseated to ZV by
7884 try_window_reusing_current_matrix.
7885 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7886 which happens with R2L glyph rows. Fixes a crash when inserting a
7887 character at end of an R2L line.
7888 (set_cursor_from_row): Don't be fooled by truncated rows: don't
7889 treat them as having zero-width characters. Improve comments.
7890 Don't reverse pos_before and pos_after for reversed glyph rows.
7891 Set cursor.x to negative value when the cursor might be on the
7892 left fringe.
7893 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7894 left fringe, not the right one.
7895 (notice_overwritten_cursor, draw_phys_cursor_glyph)
7896 (erase_phys_cursor): For reversed cursor_row, support cursor on
7897 the left fringe.
7898
7899 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7900 of continuation indicators on the fringes.
7901 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7902 left fringe.
7903
7904 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7905 draw cursor on the left fringe.
7906
7907 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7908 cursor on the left fringe.
7909
7910 * dispnew.c (update_text_area): Handle reversed desired rows when
7911 the cursor is on the left fringe.
7912 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7913 below, not by 0, for when the cursor is on the left fringe.
7914
7915 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
7916
7917 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7918 widget is a scrollbar.
7919
7920 2010-04-20 Kenichi Handa <handa@m17n.org>
7921
7922 * charset.c (char_charset): Consider Vcharset_non_preferred_head
7923 only when the arg CHARSET_LIST is nil.
7924
7925 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7926
7927 Make variable forwarding explicit rather the using special values.
7928 Basically, this makes the structure of buffer-local values and object
7929 forwarding explicit in the type of Lisp_Symbols rather than use
7930 special Lisp_Objects for that. This tends to lead to slightly more
7931 verbose code, but is more C-like, simpler, and makes it easier to make
7932 sure we handled all cases, among other things by letting the compiler
7933 help us check it.
7934 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7935 Removing forwarding objects.
7936 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7937 (struct Lisp_Symbol): Make the various forms of variable-forwarding
7938 explicit rather than hiding them inside Lisp_Object "values".
7939 (XFWDTYPE): New macro.
7940 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7941 (XBUFFER_LOCAL_VALUE): Remove.
7942 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7943 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7944 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7945 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7946 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7947 Remove the Lisp_Misc_* header.
7948 (struct Lisp_Buffer_Local_Value): Redefine.
7949 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7950 (struct Lisp_Misc_Any): Add filler to get the right size.
7951 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7952 Lisp_Intfwd.
7953 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7954 (DEFVAR_KBOARD): Allocate a forwarding object.
7955 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7956 (let_shadows_global_binding_p): New function.
7957 (union Lisp_Val_Fwd): New type.
7958 (make_blv): New function.
7959 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7960 (store_symval_forwarding, swap_in_global_binding, Fboundp)
7961 (swap_in_symval_forwarding, find_symbol_value, Fset)
7962 (let_shadows_buffer_binding_p, set_internal, default_value)
7963 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7964 (Fkill_local_variable, Fmake_variable_frame_local)
7965 (Flocal_variable_p, Flocal_variable_if_set_p)
7966 (Fvariable_binding_locus):
7967 * xdisp.c (select_frame_for_redisplay):
7968 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7969 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7970 * frame.c (store_frame_param):
7971 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7972 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7973 value structure.
7974 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7975 (clone_per_buffer_values): Only adjust markers into the current buffer.
7976 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7977 (Fbuffer_local_value, set_buffer_internal_1)
7978 (swap_out_buffer_local_variables):
7979 Adapt to the new symbol value structure.
7980 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7981 (defvar_per_buffer): Take a new arg for the fwd object.
7982 (buffer_lisp_local_variables): Return a proper alist (different fix
7983 for bug#4138).
7984 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7985 (Fgarbage_collect): Don't handle buffer_defaults specially.
7986 (mark_object): Handle new symbol value structure rather than the old
7987 special Lisp_Misc_* objects.
7988 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7989 * term.c (set_tty_color_mode):
7990 * bidi.c (bidi_initialize): Don't access the ->value field directly.
7991 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7992 a buffer_local_flags.
7993 * print.c (print_object): Get rid of impossible forwarding objects.
7994
7995 2010-04-19 Eli Zaretskii <eliz@gnu.org>
7996
7997 * bidi.c (bidi_get_type, bidi_get_category)
7998 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
7999 (bidi_type_of_next_char, bidi_level_of_next_char):
8000 Declare static. Use `INLINE' rather than `inline'.
8001
8002 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
8003
8004 * dired.c (Ffile_attributes): Fix typo in docstring.
8005
8006 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8007
8008 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
8009 NSInteger (Bug#5811).
8010
8011 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8012
8013 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
8014 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
8015
8016 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8017
8018 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
8019
8020 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
8021
8022 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
8023 terminal frames (Bug#5837).
8024
8025 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8026
8027 * .gdbinit (xsubchartable): New command.
8028
8029 2010-04-19 Eli Zaretskii <eliz@gnu.org>
8030
8031 * xdisp.c (display_line): Don't write beyond the last glyph row in
8032 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
8033 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
8034 and
8035 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
8036
8037 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8038
8039 * alloc.c (Fpurecopy): Hash-cons if requested.
8040 (syms_of_alloc): Update purify-flag docstring.
8041
8042 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
8043
8044 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
8045 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
8046
8047 2010-04-17 Eli Zaretskii <eliz@gnu.org>
8048
8049 Fix a crash when an NSM character is inserted at BEGV.
8050
8051 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
8052 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
8053 NEUTRAL_B or UNKNOWN_BT.
8054
8055 2010-04-16 Eli Zaretskii <eliz@gnu.org>
8056
8057 * xdisp.c (set_cursor_from_row): Don't consider possibility of
8058 other rows with cursor unless they are different from this row and
8059 this row is part of a continued line. (Bug#5943)
8060
8061 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
8062
8063 * s/freebsd.h: Restore osreldate.h include.
8064 Suggested by Naohiro Aota.
8065
8066 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
8067
8068 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
8069
8070 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
8071
8072 * s/cygwin.h: Avoid linking against static libgcc.
8073
8074 2010-04-15 Juri Linkov <juri@jurta.org>
8075
8076 * window.c: Add Qscroll_command.
8077 Remove Vscroll_preserve_screen_position_commands.
8078 (window_scroll_pixel_based, window_scroll_line_based): Check the
8079 `scroll-command' property on the last command instead of searching
8080 the last command in Vscroll_preserve_screen_position_commands.
8081 (syms_of_window): Initialize and staticpro `Qscroll_command'.
8082 Put Qscroll_command property on Qscroll_up and Qscroll_down.
8083 (scroll-preserve-screen-position): Doc fix.
8084 (Vscroll_preserve_screen_position_commands): Remove variable.
8085
8086 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8087
8088 * xdisp.c (message): Do not use NO_ARG_ARRAY.
8089
8090 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
8091
8092 Reduce cpp use in Makefile.in.
8093 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
8094 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
8095 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
8096 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8097 (CRT0_COMPILE): Remove, inline it in the only user.
8098
8099 2010-04-14 Juri Linkov <juri@jurta.org>
8100
8101 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
8102 `scroll-up-command' and `M-v' from `scroll-down' to
8103 `scroll-down-command'.
8104
8105 2010-04-14 Juri Linkov <juri@jurta.org>
8106
8107 * window.c (Vscroll_preserve_screen_position_commands): New variable
8108 with the default value as the list of Qscroll_down and Qscroll_up.
8109 (window_scroll_pixel_based, window_scroll_line_based): Search the
8110 last command in the list Vscroll_preserve_screen_position_commands
8111 instead of comparing with Qscroll_up and Qscroll_down.
8112
8113 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
8114
8115 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
8116 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
8117 does that.
8118
8119 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
8120 to zero.
8121
8122 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8123
8124 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
8125
8126 Try to solve the problem of spurious EOF chars in long lines of text
8127 sent to interactive subprocesses.
8128 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
8129 (system_process_attributes): Remove unused var `ttotal'.
8130 * process.c (send_process): Don't bother breaking long line with EOF
8131 chars when talking to ttys any more.
8132 (wait_reading_process_output): Output a warning when called in such
8133 a way that it could block without being interruptible.
8134
8135 Try to detect file modification within the same second.
8136 * buffer.h (struct buffer): New field modtime_size.
8137 * buffer.c (reset_buffer): Initialize it.
8138 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
8139 (Fverify_visited_file_modtime): Check it.
8140 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
8141 (Fset_visited_file_modtime): Set (or clear) it.
8142
8143 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8144
8145 * process.c (status_notify): Remove unused var `ro'.
8146
8147 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
8148
8149 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
8150 more than one visual (Bug#5938).
8151
8152 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8153
8154 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
8155 Undefine.
8156
8157 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
8158
8159 Remove C_SWITCH_SYSTEM_TEMACS.
8160 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
8161 (malloc, realloc, free): Use emacs, not temacs for conditional
8162 definition.
8163
8164 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
8165 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
8166
8167 Use autoconf, not cpp for some variables.
8168 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
8169 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
8170 (ALL_CFLAGS): Use them as make variables.
8171 (really-lwlib, really-oldXMenu): Do not pass them.
8172
8173 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
8174
8175 * xmenu.c (apply_systemfont_to_dialog): New.
8176 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
8177
8178 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * process.c (exec_sentinel): Preserve current-buffer.
8181
8182 * process.c (read_process_output): Move the save-current-buffer to
8183 apply to both the filter and the non-filter branches.
8184
8185 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
8186
8187 * s/msdos.h (UNEXEC): New definition.
8188
8189 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8190
8191 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
8192 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
8193
8194 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
8195 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
8196 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
8197 TRY_WINDOW_CHECK_MARGINS.
8198
8199 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
8200 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
8201 width only when it is for padding.
8202
8203 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
8204
8205 * xfns.c (Fx_show_tip): Call try_window in a loop until
8206 fonts_changed_p is zero (Bug#2423).
8207
8208 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8209
8210 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
8211 the end of TEXT_AREA. (Bug#5856)
8212
8213 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8214
8215 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
8216 HAVE_GCONF.
8217
8218 2010-04-08 Eli Zaretskii <eliz@gnu.org>
8219
8220 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
8221 prev.orig_type, for resolving type of NSM. (Bug#5858)
8222
8223 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
8224
8225 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
8226 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
8227 in current_font.
8228 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
8229 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
8230 New functions.
8231 (syms_of_xsettings): Initialize current_font.
8232 defsubr Sfont_get_system_normal_font.
8233
8234 * xsettings.h (Ffont_get_system_normal_font)
8235 (xsettings_get_system_normal_font): Declare.
8236
8237 * xfns.c (extern xlwmenu_default_font): Remove.
8238 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
8239 to xlwmenu.c.
8240
8241 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
8242 menu items in UTF-8.
8243
8244 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
8245 (apply_systemfont_to_menu): New function.
8246 (set_frame_menubar, create_and_show_popup_menu):
8247 Call apply_systemfont_to_menu.
8248
8249 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
8250
8251 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
8252 FRAME_LINE_TO_PIXEL_Y.
8253
8254 * xterm.c (x_set_window_size_1): Don't add border_width/height to
8255 pixelwidth/height.
8256
8257 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
8258
8259 Simplify code for HP machines.
8260 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
8261 for GNU_LINUX, not needed.
8262 (UNEXEC, NEED_BSDTTY): Move definitions...
8263 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8264
8265 * m/iris4d.h (UNEXEC): Move definition ...
8266 * s/irix6-5.h (UNEXEC): ... here.
8267
8268 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
8269
8270 * xfns.c (set_machine_and_pid_properties): New function.
8271 (Fx_create_frame): Call set_machine_and_pid_properties.
8272
8273 2010-04-03 Eli Zaretskii <eliz@gnu.org>
8274
8275 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
8276 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
8277 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
8278
8279 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8280 in this function. (Bug#5703)
8281
8282 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
8283
8284 * nsterm.h: Fix last change.
8285
8286 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
8287
8288 * m/intel386.h (NO_REMAP): Move definition ...
8289 * s/msdos.h (NO_REMAP): ... here.
8290
8291 * m/vax.h (CRT0_DUMMIES): Remove, unused.
8292
8293 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
8294 used on those platforms.
8295
8296 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
8297
8298 Remove extern errno declarations.
8299 * xterm.c:
8300 * xrdb.c:
8301 * w32term.c:
8302 * unexec.c:
8303 * unexaix.c:
8304 * sysdep.c:
8305 * process.c:
8306 * lread.c:
8307 * keyboard.c:
8308 * floatfns.c:
8309 * filelock.c:
8310 * fileio.c:
8311 * emacs.c (main):
8312 * ecrt0.c:
8313 * dispnew.c:
8314 * callproc.c:
8315 * buffer.c: Remove errno extern declarations.
8316 * s/netbsd.h (NEED_ERRNO): Remove.
8317
8318 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 Remove all uses of LIBX11_SYSTEM.
8321 * Makefile.in (LIBX11_SYSTEM): Remove.
8322 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
8323 instead.
8324
8325 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8326
8327 Remove support for DJGPP v1.x (bug#5813).
8328
8329 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8330 * s/msdos.h:
8331 * unexec.c (make_hdr, copy_text_and_data):
8332 * sysdep.c (wait_for_termination, sys_subshell):
8333 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
8334 (IT_set_terminal_modes, __write, _rename, gethostname)
8335 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
8336 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
8337 the value of __DJGPP__.
8338 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
8339 compatibility code.
8340 * lread.c:
8341 * gmalloc.c (memalign):
8342 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
8343 * emacs.c (main):
8344 * dosfns.c (init_dosfns):
8345 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
8346
8347 2010-04-01 Eli Zaretskii <eliz@gnu.org>
8348
8349 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
8350 string with `cursor' property comes from an `after-string'
8351 overlay. (Bug#5816)
8352
8353 2010-04-01 Glenn Morris <rgm@gnu.org>
8354
8355 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
8356 Define as Makefile variables.
8357 (LIBX): Use above variables rather than directly using autoconf.
8358
8359 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
8360
8361 Clean up BSD_SYSTEM use.
8362 * xterm.c:
8363 * process.c:
8364 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
8365 for including <sys/ioctl.h>.
8366 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
8367 code is only used for MSDOS.
8368
8369 2010-03-31 Juri Linkov <juri@jurta.org>
8370
8371 * image.c: Add `Qextension_data'.
8372 (syms_of_image): Initialize and staticpro `Qextension_data'.
8373 (Fimage_metadata): Rename from `Fimage_extension_data'.
8374 (gif_load): Put GIF extension data to the property
8375 `Qextension_data'.
8376
8377 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8378
8379 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
8380 * nsterm.h: Fix prototype.
8381
8382 2010-03-31 Eli Zaretskii <eliz@gnu.org>
8383
8384 * xdisp.c (highlight_trailing_whitespace): Support highlight of
8385 trailing whitespace in right-to-left rows.
8386
8387 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8388
8389 Get rid of the direct_output optimizations.
8390 * keyboard.c (nonundocount): Remove extern declaration.
8391 (command_loop_1): Remove brittle optimisation for cheap and
8392 common operations.
8393 * xdisp.c (redisplay_internal): Don't bother checking
8394 redisplay_performed_directly_p any more.
8395 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
8396 any more.
8397 * dispnew.c (redisplay_performed_directly_p)
8398 (direct_output_for_insert, direct_output_forward_char):
8399 * dispextern.h (redisplay_performed_directly_p)
8400 (direct_output_for_insert, direct_output_forward_char): Remove.
8401 * cmds.c (nonundocount): Make it static.
8402
8403 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
8404
8405 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
8406
8407 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
8408
8409 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
8410 invisible (Bug#5766).
8411
8412 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
8413
8414 * xdisp.c (x_consider_frame_title, update_window_cursor):
8415 Remove HAVE_NS conditionals.
8416 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
8417
8418 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
8419 filename for the title.
8420 (ns_set_doc_edited): Do nothing if the selected window is a
8421 minibuffer window.
8422
8423 * nsterm.h: Add prototypes for ns_set_name_as_filename and
8424 ns_set_doc_edited.
8425
8426 * nsterm.m: Remove unneeded prototype.
8427
8428 2010-03-31 Glenn Morris <rgm@gnu.org>
8429
8430 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
8431 in the DOC file. (Bug#5336)
8432
8433 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
8434
8435 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
8436
8437 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
8438
8439 * window.c (keys_of_window): Remove redundant/overridden bindings.
8440
8441 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8442
8443 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
8444 Restore original behavior when the iterator is not bidi_p.
8445
8446 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8447
8448 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
8449
8450 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8451
8452 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
8453 are outside the range of cached character positions.
8454
8455 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
8456
8457 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
8458
8459 2010-03-30 Eli Zaretskii <eliz@gnu.org>
8460
8461 Initial support for bidirectional editing.
8462
8463 * Makefile.in (obj): Include bidi.o.
8464 (bidi.o): New target.
8465
8466 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
8467 ($(BLD)/bidi.$(O)): New target.
8468
8469 * bidi.c: New file.
8470
8471 * buffer.h (struct buffer): New members bidi_display_reordering
8472 and bidi_paragraph_direction.
8473
8474 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
8475 and bidi_paragraph_direction.
8476 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
8477 and bidi-paragraph-direction.
8478 (Fbuffer_swap_text): Swap the values of
8479 bidi_display_reordering and bidi_paragraph_direction.
8480
8481 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
8482 (bidi_type_t, bidi_dir_t): New types.
8483 (bidi_saved_info, bidi_stack, bidi_it): New structures.
8484 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
8485 prev_stop, base_level_stop, and eol_pos.
8486 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
8487 (IT_STACK_SIZE): Enlarge to 5.
8488 (struct glyph_row): New member reversed_p.
8489 <string_buffer_position>: Update prototype.
8490 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
8491 glyph_row if bidi_it.paragraph_dir == R2L.
8492 (struct glyph): New members resolved_level and bidi_type.
8493
8494 * dispnew.c (direct_output_forward_char): Give up if we need bidi
8495 processing or buffer's direction is right-to-left.
8496 (prepare_desired_row): Preserve the reversed_p flag.
8497 (row_equal_p): Compare the reversed_p attributes as well.
8498
8499 * xdisp.c (init_iterator): Initialize it->bidi_p.
8500 Call bidi_init_it and set it->paragraph_embedding from the current
8501 buffer's value of bidi_paragraph_direction.
8502 (reseat_1): Initialize bidi_it.first_elt.
8503 (set_iterator_to_next, next_element_from_buffer): Use the value of
8504 paragraph_embedding to determine the paragraph direction.
8505 (set_iterator_to_next): Under bidi reordering, call
8506 bidi_get_next_char_visually. Call bidi_paragraph_init if the
8507 new_paragraph flag is set in the bidi iterator.
8508 (next_element_from_buffer): If bidi_it.first_elt is set,
8509 initialize paragraph direction and find the first character to
8510 display in the visual order. If reseated to a middle of a line,
8511 prime the bidi iterator starting at the line's beginning.
8512 Handle the situation where we overstepped stop_charpos due to
8513 non-linearity of the bidi iteration. Likewise for when we back up
8514 beyond the previous stop_charpos. When moving across stop_charpos,
8515 record it in prev_stop.
8516 (display_line): Set row->end and it->start for the next row to the
8517 next character in logical order. Always extend reversed_p rows to
8518 the end of line, even if they end at ZV. Copy the reversed_p flag
8519 to the next glyph row. Keep calling set_cursor_from_row for
8520 bidi-reordered rows even if we already have a possible candidate
8521 for cursor position. Set row_end after all the row's glyphs have
8522 been produced, by looping over the glyphs. Record the position
8523 after EOL in it->eol_pos, and use it to set end_pos of the last
8524 row produced for a continued line.
8525 <Qright_to_left, Qleft_to_right>: New variables.
8526 (syms_of_xdisp): Initialize and staticpro them.
8527 (string_buffer_position_lim): New function.
8528 (string_buffer_position): Most of code moved to
8529 string_buffer_position_lim. Last argument and return value are
8530 now EMACS_INT; all callers changed.
8531 (set_cursor_from_row): Rewritten to support bidirectional text and
8532 reversed glyph rows.
8533 (text_outside_line_unchanged_p, try_window_id):
8534 Disable optimizations if we are reordering bidirectional text and the
8535 paragraph direction can be affected by the change.
8536 (append_glyph, append_composite_glyph)
8537 (produce_image_glyph, append_stretch_glyph): Set the
8538 resolved_level and bidi_type members of each glyph.
8539 (append_glyph): If the glyph row is reversed, prepend the glyph
8540 rather than appending it.
8541 (handle_stop_backwards): New function.
8542 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
8543 (reseat): call handle_stop_backwards to recompute prev_stop and
8544 base_level_stop for the new position.
8545 (handle_invisible_prop): Under bidi iteration, skip invisible text
8546 using bidi_get_next_char_visually. If we are `reseat'ed, init the
8547 paragraph direction. Update IT->prev_stop after skipping
8548 invisible text.
8549 (move_it_in_display_line_to): New variables prev_method
8550 and prev_pos. Compare for strict equality in
8551 BUFFER_POS_REACHED_P.
8552 (try_cursor_movement): Examine all the candidate rows that occlude
8553 point, to return the best match. If rows are bidi-reordered
8554 and point moved backwards, back up to the row that is not a
8555 continuation line, and start looking for a suitable row from
8556 there.
8557
8558 * term.c (append_glyph): Reverse glyphs by pre-pending them,
8559 rather than appending, if the glyph_row's reversed_p flag is set.
8560 Set the resolved_level and bidi_type members of each glyph.
8561
8562 * .gdbinit (pbiditype): New command.
8563 (pgx): Use it to display bidi level and type of the glyph.
8564 (pitx): Display some bidi information about the iterator.
8565 (prowlims, pmtxrows): New commands.
8566
8567 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
8568
8569 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
8570 * s/usg5-4.h (LIBS_DEBUG):
8571 * s/irix6-5.h (C_DEBUG_SWITCH):
8572 * s/gnu-linux.h (LIBS_DEBUG):
8573 * s/darwin.h (LIBS_DEBUG):
8574 * s/bsd-common.h (LIBS_DEBUG):
8575 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
8576 * m/iris4d.h (LIBS_DEBUG):
8577 * m/hp800.h (LIBS_DEBUG): Remove definitions.
8578
8579 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
8580 (LIBS_DEBUG): Remove definition.
8581
8582 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
8583
8584 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
8585 Windows.
8586
8587 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8588
8589 * process.c (Fmake_network_process): Don't call turn_on_atimers around
8590 `connect' (Bug#5723).
8591
8592 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
8593
8594 * process.c (Fmake_network_process): Call `select' for interrupted
8595 `connect' rather than creating new socket (Bug#5173).
8596
8597 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
8598
8599 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
8600
8601 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
8602
8603 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
8604
8605 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8606
8607 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
8608 XLoadQueryFont.
8609
8610 2010-03-24 Kenichi Handa <handa@m17n.org>
8611
8612 * coding.c (decode_coding_ccl): Fix previous change for the
8613 multibyte case.
8614 (encode_coding_ccl): Don't setup ccl program here. Fix for the
8615 case that the output buffer is fullfilled.
8616 (encode_coding): Setup ccl program here.
8617
8618 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
8619
8620 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
8621
8622 Simplify LIBS_MACHINE definitions.
8623 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
8624 * m/iris4d.h (LIBS_MACHINE): Likewise.
8625 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
8626 * s/aix4-2.h (LIBS_SYSTEM): ... here.
8627 * s/netbsd.h: Remove commented out code.
8628
8629 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
8630
8631 Remove dead code dealing with POSIX_SIGNALS.
8632 * atimer.c (set_alarm): Remove dead code, all USG systems define
8633 POSIX_SIGNALS.
8634 * data.c (arith_error): Likewise.
8635 * keyboard.c (input_available_signal, handle_user_signal)
8636 (interrupt_signal): Likewise.
8637 * process.c (sigchld_handler): Likewise.
8638 (create_process): Remove if 0 code. Remove HPUX conditional when
8639 !defined (POSIX_SIGNALS), it cannot be true.
8640 * syssignal.h: Remove USG5_4 and USG conditionals when
8641 !POSIX_SIGNALS, they cannot be true.
8642
8643 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
8644 NO_SOCK_SIGIO, not used anymore.
8645
8646 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
8647
8648 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
8649 support vax on BSDs.
8650
8651 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
8652 * s/aix4-2.h (ORDINARY_LINK): ... here.
8653
8654 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
8655
8656 * Makefile.in (abs_builddir): Define.
8657 (bootstrap_exe): Use it.
8658 (VPATH): Use $(srcdir) instead of @srcdir@.
8659
8660 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8661
8662 * Makefile.in (bootstrap_exe): Use an absolute name.
8663
8664 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8665
8666 Remove support for old GNU/Linux using libc version 5.
8667 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
8668 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
8669
8670 Consolidate redundant definitions in s/bsd-common.h.
8671 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8672 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8673 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
8674 doing it in all files that include this one.
8675 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8676 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8677 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8678 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8679 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8680 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8681 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
8682 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
8683 (LDAV_SYMBOL, KERNEL_FILE): Remove.
8684
8685 Consolidate redundant definitions.
8686 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
8687 it's undefined in all files that include this one.
8688 (POSIX_SIGNALS): Define here instead of doing it in all files that
8689 include this one.
8690 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8691 (POSIX_SIGNALS): Do not define.
8692 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8693 (POSIX_SIGNALS): Do not define.
8694 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
8695 (POSIX_SIGNALS): Do not define.
8696
8697 Remove support for old UNIX System V systems.
8698 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
8699 * s/usg-5-4-2.h: Remove.
8700
8701 Remove support for Solaris on PPC and for old versions.
8702 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
8703 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
8704 that cancel each other.
8705 * s/sol2-3.h:
8706 * s/sol2-4.h:
8707 * s/sol2-5.h: Remove.
8708 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
8709 (NO_REMAP): Remove, unused.
8710 (UNEXEC): Move definition ...
8711 * s/aix4-2.h (UNEXEC): ... here.
8712
8713 * s/openbsd.h: Remove support for non-ELF and for systems that do
8714 not support shared libraries.
8715 * s/netbsd.h:
8716 * s/freebsd.h: Likewise.
8717
8718 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8719
8720 Remove non-working support for lynxos 3.0.
8721 * s/lynxos.h: Remove file.
8722
8723 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
8724 COFF_BSD_SYMBOLS, nothing defines it anymore.
8725
8726 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
8727
8728 Remove obsolete uses of HAVE_SHM.
8729 * emacs.c (standard_args):
8730 (Fdump_emacs):
8731 (syms_of_emacs): Remove code depending on HAVE_SHM.
8732
8733 * alloc.c: Remove HAVE_SHM dependent definition.
8734
8735 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
8736
8737 2010-03-18 Glenn Morris <rgm@gnu.org>
8738
8739 * emacs.c (USAGE4): Hard-code bug address.
8740 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
8741 (bug_reporting_address): Remove.
8742 (main): Don't call bug_reporting_address.
8743
8744 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
8745 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
8746
8747 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
8748
8749 * xfns.c (Fx_create_frame):
8750 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
8751 on left.
8752
8753 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
8754
8755 * editfns.c (Fformat): Account for string precision when computing
8756 field width (Bug#5710).
8757
8758 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
8759
8760 * xfns.c (Fx_create_frame): Set default to Qright.
8761
8762 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
8763 all window systems.
8764
8765 2010-03-12 Eli Zaretskii <eliz@gnu.org>
8766
8767 These changes remove termcap.c from the build on Posix platforms.
8768 * Makefile.in (termcapobj): Move termcap.o from here...
8769 (MSDOS_OBJ): ...to here.
8770 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
8771 now identical to when LIBS_TERMCAP is defined.
8772
8773 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
8774
8775 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
8776
8777 * config.in: Regenerated. (See top-level ChangeLog.)
8778
8779 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
8780
8781 * Branch for 23.2.
8782
8783 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8784
8785 Cleanup setup of gl_state in various parts of the code.
8786 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
8787 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
8788 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
8789 (skip_chars):
8790 * regex.c (regex_compile): Use it.
8791 (re_compile_pattern): Don't set gl_state.current_syntax_table since
8792 it's now set in regex_compile when/if we need it.
8793
8794 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
8795
8796 Make it possible to C-g in a tight bytecode loop again (bug#5680).
8797 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
8798 (QUIT): Use it to consolidate code and remove redundancy.
8799 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
8800
8801 * regex.c (regex_compile): Setup gl_state as well.
8802
8803 * syntax.c (skip_chars): Setup gl_state (bug#3823).
8804 (in_classes): Use CONSP before XCAR/XCDR.
8805
8806 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
8807
8808 * keymap.c (Fwhere_is_internal): Use Fequal to compare
8809 definitions, so that keyboard macros are correctly handled
8810 (Bug#5481).
8811
8812 2010-03-02 Eli Zaretskii <eliz@gnu.org>
8813
8814 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8815 text that could be relocated inside the call to emacs_mule_char.
8816 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8817 (CODING_DECODE_CHAR): Add a comment describing its purpose.
8818
8819 2010-03-02 Kenichi Handa <handa@m17n.org>
8820
8821 * character.c (parse_str_as_multibyte): Fix handling of the
8822 multibyte form of raw-bytes.
8823 (str_as_multibyte): Likewise.
8824
8825 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8826 form of raw-bytes.
8827
8828 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
8829
8830 * charset.c (load_charset_map_from_file)
8831 (load_charset_map_from_vector): Zero out allocated
8832 charset_map_entries before using them.
8833
8834 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
8835
8836 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8837
8838 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8841 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
8842
8843 2010-02-26 Kenichi Handa <handa@m17n.org>
8844
8845 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8846
8847 * xdisp.c (reseat_to_string): Fix previous change.
8848
8849 2010-02-26 David Reitter <david.reitter@gmail.com>
8850
8851 * nsfont.m (nsfont_draw): ns_antialias_text should be a
8852 Lisp_Object (Bug#4736).
8853
8854 2010-02-25 Kenichi Handa <handa@m17n.org>
8855
8856 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8857
8858 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
8859
8860 * xterm.c (XTflash): Move declarations before statements.
8861
8862 * gtkutil.c (xg_get_gdk_display): Remove (unused).
8863 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8864 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8865 (xg_create_tool_bar): Remove unused variables.
8866 (x_wm_set_size_hint): Move declarations before statements.
8867 (xg_create_frame_widgets): Remove variable grav.
8868
8869 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
8870
8871 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8872
8873 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8874
8875 * term.c (fatal): Add a final \n if needed (bug#5596).
8876
8877 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
8878
8879 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8880
8881 2010-02-18 Glenn Morris <rgm@gnu.org>
8882
8883 * callint.c (Finteractive): Doc fix.
8884
8885 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
8886
8887 * coding.c (record_conversion_result):
8888 Handle CODING_RESULT_INSUFFICIENT_DST.
8889 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8890 memory allocation error.
8891
8892 2010-02-17 Kenichi Handa <handa@m17n.org>
8893
8894 * coding.c (decode_coding_ccl): Don't setup ccl program here.
8895 Fix for the case that the output buffer is fullfilled.
8896 (decode_coding): Setup ccl program here. Keep looping when the
8897 decoder stopped because the output buffer is
8898 fullfilled (bug#5534).
8899
8900 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8901
8902 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
8903
8904 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
8905 bug #5571.
8906 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
8907 overdrawn.
8908
8909 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
8910
8911 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8912 doing_interact here.
8913 (ice_connection_closed): New function.
8914 (x_session_check_input, smc_die_CB, ice_io_error_handler)
8915 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8916 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8917 returns I/O error.
8918 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8919 bug #5512.
8920
8921 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
8922
8923 * nsfont.m (nsfont_open): The system's value for the font descent
8924 is negative, so round it down to avoid clipping.
8925
8926 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
8927
8928 * charset.c (load_charset_map_from_file)
8929 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
8930 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
8931
8932 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
8933
8934 * charset.c (load_charset_map_from_file): Allocate large
8935 charset_map_entries structure on the heap rather than the stack.
8936 (Bug#5526).
8937
8938 2010-01-31 Kenichi Handa <handa@m17n.org>
8939
8940 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
8941 size in NAME is invalid, return -1 (Bug#5396).
8942
8943 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
8946 <deactivated@gmail.com> (Bug#3605).
8947
8948 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
8949
8950 * fileio.c (Frename_file): Correctly rename symlinks to
8951 directories (Bug#5496).
8952
8953 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
8954
8955 * nsterm.m (ns_ring_bell): Handle visible bell like X.
8956
8957 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
8958
8959 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8960
8961 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
8962
8963 * frame.c (DEFAULT_ROWS): Change default to 35.
8964
8965 * xfns.c (x_default_font_parameter): Change default XFT font to
8966 monospace-10 (Bug#3643).
8967
8968 2010-01-29 Eli Zaretskii <eliz@gnu.org>
8969
8970 * w32inevt.c (key_event): Remove unnecessary comparison of
8971 event->uChar.AsciiChar with 128.
8972
8973 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
8974
8975 * fileio.c (Frename_file): Fix last change (Bug#5487).
8976
8977 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
8978
8979 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8980
8981 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
8982
8983 * xfns.c (Fx_create_frame): Remove window size matching code from
8984 2010-01-15.
8985 (x_get_current_desktop, x_get_desktop_workarea): Remove.
8986
8987 2010-01-27 Jason Rumney <jasonr@gnu.org>
8988
8989 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
8990 (key_event): Use unicode for characters 128 and higher (Bug#4567).
8991
8992 2010-01-27 Kenichi Handa <handa@m17n.org>
8993
8994 * regex.c (analyse_first): Fix setting of fastmap for unibyte
8995 pattern string (Bug#4209).
8996
8997 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
8998
8999 * fileio.c (Frename_file): Call copy-directory and
9000 delete-directory for directories, in order to handle cross-device
9001 renaming (Bug#3353).
9002
9003 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
9004
9005 * xfns.c (Fx_create_frame): If frame height is too big, try
9006 sizes 24 and 10. Bug #3643.
9007
9008 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
9009
9010 Try and fix bug#788, hopefully for real this time.
9011 * keymap.c (shadow_lookup): Add `remap' arg.
9012 (describe_map, describe_vector): Update calls to shadow_lookup.
9013 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
9014 `remapped' so this flag is applicable to `sequence'. Be careful to
9015 perform remapping during shadow_lookup check of remapped_sequences.
9016
9017 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
9018
9019 * image.c (png_load): Use png_sig_cmp instead of the obsolete
9020 png_check_sig, which has been removed in libpng 1.4.
9021
9022 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9023
9024 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
9025 lacks this header file).
9026
9027 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9028
9029 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
9030 as in Emacs 22.
9031
9032 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9033
9034 * lisp.h (make_pure_string): String pointer arg now points to const.
9035
9036 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
9037 args now point to const.
9038
9039 2010-01-22 Eli Zaretskii <eliz@gnu.org>
9040
9041 * lread.c (Fload): Don't treat files without .elc extension as
9042 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
9043 them. (bug#5303)
9044
9045 2010-01-20 Kenichi Handa <handa@m17n.org>
9046
9047 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
9048 treat the source as actual byte sequence.
9049
9050 2010-01-19 Alan Mackenzie <acm@muc.de>
9051
9052 Fix spurious before-change-functions invocation from (insert ?\n).
9053 * textprop.c (set_text_properties): Rename parameter
9054 `signal_after_change_p' to `coherent_change_p', and make the
9055 invocation of `modify_region' conditional on it.
9056
9057 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
9058
9059 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
9060 for debug purpose.
9061 (syms_of_xsettings): Declare xft-settings.
9062
9063 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
9064
9065 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
9066
9067 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9068
9069 * xterm.c (event_handler_gdk): Block input (Bug#5037).
9070
9071 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
9072
9073 * emacs.c (standard_args): Adjust arg priorities to reflect how
9074 they are processed in startup.el.
9075
9076 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
9077
9078 * Makefile.in (lisp, shortlisp): Update.
9079
9080 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
9081
9082 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
9083 code, link the new kboard into all_kboard before running Lisp code,
9084 and protect the new terminal with GCPRO (Bug#5365).
9085 (x_term_init): Remove unused var `atom'.
9086 (x_delete_display, x_delete_terminal): Remove unused var `i'.
9087
9088 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
9089
9090 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
9091 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
9092 to find out usable size of the desktop. Don't make frames larger than
9093 this. Bug #3643.
9094
9095 2010-01-15 Kenichi Handa <handa@m17n.org>
9096
9097 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
9098
9099 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
9100
9101 * nsterm.m (Qnone): Define.
9102
9103 * nsfns.m (Qnone): Move definition to nsterm.m.
9104
9105 2010-01-14 Kenichi Handa <handa@m17n.org>
9106
9107 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
9108 systems.
9109
9110 2010-01-14 Kenichi Handa <handa@m17n.org>
9111
9112 Make auto-composition work on all buffers even if they are
9113 fundamental mode.
9114
9115 * composite.c (Vauto_composition_mode): New variable.
9116 (composition_compute_stop_pos): Check Vauto_composition_mode
9117 instead of Vauto_composition_function.
9118 (composition_adjust_point, Ffind_composition_internal): Likewise.
9119 (syms_of_composite): Declare Lisp variable
9120 "auto-composition-mode" here.
9121
9122 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
9123
9124 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
9125 during call to vendor-specific-keysyms (Bug#5365).
9126
9127 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9128
9129 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9130 Call SIGNAL_THREAD_CHECK (Bug#5333).
9131
9132 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
9133 Call SIGNAL_THREAD_CHECK.
9134
9135 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
9136
9137 Try to fix bug#5314. This is probably not the final word, tho.
9138 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
9139 recent-auto-save-p as a side-effect.
9140 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
9141 * buffer.c (Fkill_buffer, reset_buffer):
9142 * editfns.c (Fsubst_char_in_region):
9143 * fileio.c (Finsert_file_contents, Fdo_auto_save)
9144 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
9145
9146 2010-01-13 Kenichi Handa <handa@m17n.org>
9147
9148 Display buffer name, etc. in mode line by composing correctly.
9149
9150 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
9151 STRING is not nil.
9152 (display_mode_element): Adjust for the change of
9153 decode_mode_spec and display_line.
9154 (decode_mode_spec): Change arg MULTIBYTE to STRING.
9155 (display_string): Handle the case that STRING is non-null and
9156 LISP_STRING is not nil.
9157
9158 * xterm.c (x_draw_composite_glyph_string_foreground):
9159 Pay attention to s->face->overstrike.
9160
9161 * composite.c (composition_reseat_it): Don't check PT if STRING is
9162 non nil.
9163
9164 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9165
9166 * keyboard.c (read_char): Don't apply previous change when current
9167 buffer is unchanged by command execution.
9168
9169 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
9170
9171 * keyboard.c (read_char): Return after executing from special map.
9172
9173 2010-01-12 Glenn Morris <rgm@gnu.org>
9174
9175 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
9176 bug-gnu-emacs rather than emacs-pretest-bug.
9177
9178 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
9179
9180 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
9181 initializing the Lisp variables that depend on them.
9182
9183 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9184
9185 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
9186 Clear areas that will not be updated after change of menu bar lines.
9187 Clear the menu bar window's current matrix when the window gets empty.
9188
9189 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
9190
9191 * intervals.h, textprop.c (extend_property_ranges): Return value
9192 and args changed. Discard properties that begin at or after the
9193 new end (Bug#5306).
9194
9195 * editfns.c (Fformat): Caller changed.
9196
9197 * nsterm.m (ns_set_default_prefs): Delete function.
9198 (syms_of_nsterm): Initialize ns_command_modifier,
9199 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
9200 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
9201
9202 * xdisp.c (pos_visible_p): Check for invisible text at the correct
9203 position (Bug#4040).
9204
9205 2010-01-09 Eli Zaretskii <eliz@gnu.org>
9206
9207 * editfns.c (Ffloat_time): Doc fix.
9208
9209 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
9210
9211 * xfns.c (Fx_create_frame): Don't create frame larger than display
9212 by default bug#3643.
9213
9214 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9215
9216 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
9217 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
9218 windows above internal border.
9219
9220 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
9221 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
9222 windows above internal border.
9223
9224 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
9225 tool bar windows specially.
9226
9227 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
9228
9229 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
9230 specially.
9231 (XTflash): Take account of menu bar height.
9232
9233 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
9234 specially.
9235
9236 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
9237
9238 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
9239 also be true before we can return early (bug #5339).
9240
9241 2010-01-06 David Reitter <david.reitter@gmail.com>
9242
9243 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
9244 (Fns_display_usable_bounds): Rewrite, computing bounds properly
9245 (Bug#3233).
9246
9247 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
9248
9249 * font.c (font_open_entity): Enable chache and call cached_font_ok
9250 for the driver if defined.
9251 (QCuser_spec): New symbol.
9252 (font_spec_from_name): Save name as user-spec.
9253 (font_load_for_lface): Keep user-spec instead of name.
9254 (font_open_by_name): Save name as user-spec.
9255 (syms_of_font): Initialize QCuser_spec.
9256 (font_clear_prop): Clear name if it exists in font (bug#5157).
9257
9258 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
9259 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
9260 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
9261
9262 * font.h (struct font_driver): Add cached_font_ok.
9263
9264 * xterm.c (x_clear_frame): Queue draw for scroll bars.
9265
9266 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
9267
9268 * xterm.c (x_new_font): Move code for setting rows/cols before
9269 resizing ...
9270 (x_set_window_size): ... to here. Bug #2568.
9271
9272 * gtkutil.c (xg_clear_under_internal_border): New function.
9273 (xg_frame_resized, xg_frame_set_char_size):
9274 Call xg_clear_under_internal_border.
9275 (xg_update_scrollbar_pos): Clear under old scroll bar position.
9276
9277 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
9278
9279 * keyboard.c (read_key_sequence): Catch keyboard switch after
9280 making a new tty frame (Bug#5095).
9281
9282 2010-01-05 Kenichi Handa <handa@m17n.org>
9283
9284 * fontset.c (fontset_find_font): Fix getting the frame pointer.
9285
9286 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
9287
9288 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
9289 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
9290 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
9291
9292 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
9293
9294 * dbusbind.c (xd_add_watch): Improve debug message.
9295 (xd_remove_watch): Improve debug message. If DATA is the session
9296 bus, unset D-Bus session environment.
9297 (Fdbus_init_bus): Pass the bus as argument to
9298 dbus_connection_set_watch_functions. (Bug#5283)
9299
9300 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
9301
9302 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
9303
9304 * lread.c (syms_of_lread): Make it clearer that these are the
9305 names of loaded files (Bug#5068).
9306
9307 * eval.c (run_hook_with_args): Handle the case where the global
9308 value has the obsolete single-function form (Bug#5026).
9309
9310 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
9311
9312 * minibuf.c (Fall_completions): Minor optimization.
9313
9314 2009-12-26 Eli Zaretskii <eliz@gnu.org>
9315
9316 * .gdbinit (pgx): Fix display of composite glyphs.
9317 Display cmp.from and cmp.to as well.
9318 (pitx): Fix last change.
9319
9320 2009-12-25 Kenichi Handa <handa@m17n.org>
9321
9322 * composite.h (composition_adjust_point): Update prototype.
9323
9324 * composite.c (composition_reseat_it): Don't make a composition
9325 spanning over point.
9326 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
9327 composable characters.
9328 (composition_adjust_point): New arg NEW_PT. Callers changed.
9329
9330 * keyboard.c (command_loop_1): Force redisplay if the last point
9331 was within a composition.
9332 (adjust_point_for_property): Don't adjust point for automatic
9333 composition when called after buffer modification.
9334
9335 2009-12-19 Eli Zaretskii <eliz@gnu.org>
9336
9337 * .gdbinit (pitx): Don't use enum names, use their values.
9338 Remove reference to non-existing value GET_FROM_COMPOSITION.
9339 (pgx): Don't use enum names, use their values.
9340 (pitmethod): New helper command.
9341 (pitx): Use it to display iteration method.
9342 (pgrowit): New command.
9343
9344 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
9345
9346 Update dependencies in Makefile.in.
9347
9348 * Makefile.in (alloc.o): Depend on termhooks.h.
9349 (atimer.o): Depend on blockinput.h.
9350 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
9351 and frame.h.
9352 (callint.o): Depend on systime.h, coding.h, and composite.h.
9353 (callproc.o): Depend on buffer.h.
9354 (casefiddle.o): Don't depend on charset.h.
9355 (casetab.o): Depend on character.h.
9356 (ccl.o): Depend on composite.h.
9357 (chartab.o): Depend on ccl.h.
9358 (cm.o): Depend on dispextern.h.
9359 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
9360 (coding.o): Don't depend on $(INTERVALS_H).
9361 (composite.o): Don't depend on dispextern.h explicitly (it's in
9362 $(INTERVALS_H)). Depend on ccl.h.
9363 (data.o): Depend on systime.h, coding.h, composite.h,
9364 dispextern.h, font.h, and ccl.h.
9365 (dired.o): Depend on composite.h.
9366 (dispnew.o): Depend on coding.h. Don't depend explicitly on
9367 composite.h (it's in $(INTERVALS_H)).
9368 (doc.o): Depend on systime.h, coding.h, and composite.h.
9369 (editfns.o): Don't depend explicitly on dispextern.h.
9370 (emacs.o): Depend on frame.h and coding.h.
9371 (eval.o): Depend on coding.h, composite.h, and xterm.h.
9372 (fileio.o): Depend on frame.h and commands.h. Don't depend
9373 explicitly on dispextern.h.
9374 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
9375 composite.h.
9376 (fns.o): Don't depend on termhooks.h.
9377 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
9378 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
9379 coding.h, $(INTERVALS_H), window.h, xterm.h.
9380 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
9381 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
9382 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
9383 fontset.h, ccl.h, and ftfont.h.
9384 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9385 (gtkutil.o): Depend on dispextern.h and composite.h.
9386 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
9387 termhooks.h, and ccl.h.
9388 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
9389 (intervals.o): Depend on systime.h and coding.h.
9390 (keyboard.o): Depend on composite.h and coding.h.
9391 (keymap.o): Depend on coding.h and frame.h.
9392 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
9393 (macros.o): Depend on systime.h, coding.h, and composite.h.
9394 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
9395 and atimer.h.
9396 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
9397 dispextern.h explicitly.
9398 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
9399 Don't depend explicitly on dispextern.h and composite.h.
9400 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
9401 (regex.o): Don't depend on charset.h.
9402 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
9403 (search.o): Don't depend explicitly on composite.h.
9404 (sound.o): Depend on atimer.h and systime.h.
9405 (syntax.o): Don't depend explicitly on composite.h.
9406 (sysdep.o): Depend on coding.h and composite.h.
9407 (term.o): Depend on xterm.h and buffer.h.
9408 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
9409 (textprop.o): Don't depend on dispextern.h explicitly.
9410 (undo.o): Depend on dispextern.h.
9411 (window.o): Depend on coding.h and termhooks.h. Don't depend on
9412 dispextern.h and composite.h explicitly.
9413 (xdisp.o): Depend on ccl.h.
9414 (xfaces.o): Depend on coding.h and ccl.h.
9415 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
9416 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
9417 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
9418 ftfont.h.
9419 (xgselect.o): New dependency.
9420 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
9421 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
9422 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
9423 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
9424 (xsmfns.o): Depend on frame.h and dispextern.h.
9425 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
9426 sysselect.h.
9427
9428 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
9429
9430 * font.c (Fclear_font_cache): Pass correct cache argument to
9431 font_clear_cache.
9432
9433 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
9434
9435 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
9436 twice.
9437
9438 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
9439
9440 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
9441 calling file-remote-p. Reported by Jim Meyering.
9442
9443 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
9444
9445 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9446 avoid compiler warnings. (Bug #5217)
9447
9448 2009-12-14 Kenichi Handa <handa@m17n.org>
9449
9450 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
9451 in 8-bit encoding.
9452
9453 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
9454
9455 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
9456 tooltip windows.
9457
9458 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
9459
9460 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9461 Xatom_net_window_type.
9462
9463 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
9464 Xatom_net_window_type.
9465
9466 * xterm.c (my_log_handler): New function.
9467 (x_term_init): Set my_log_handler as log handler during gtk_init
9468 so we can filter out buggy messages. (Bug #5120).
9469
9470 * xterm.c (xg_scroll_callback): Parameter list changed,
9471 use parameter GtkScrollType to determine scroll/line/page.
9472 Only allow dragging if a button < 4 is grabbed (bug #5177).
9473 (xg_end_scroll_callback): New function.
9474 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
9475 xg_create_scroll_bar.
9476
9477 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
9478 (scroll_end_callback): Remove.
9479 (xg_create_scroll_bar): Add parameter end_callback, bind it to
9480 button-release-event. Replace value-changed event with change-value,
9481 bug #5177.
9482 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
9483 bug #5177.
9484
9485 * gtkutil.h (XG_LAST_SB_DATA): Remove.
9486 (xg_create_scroll_bar): Add GCallback end_callback.
9487
9488 * xftfont.c (QClcdfilter): New variable.
9489 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
9490 (syms_of_xftfont): Initialize QClcdfilter.
9491
9492 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9493
9494 * xsettings.c (struct xsettings): Add member seen.
9495 (parse_xft_settings): Update member seen with what we have read.
9496 Return non-zero if Xft-settings have been parsed, 0 otherwise.
9497 (apply_xft_settings): Only update Xft settings with what member seen
9498 indicates as new.
9499
9500 2009-12-12 Eli Zaretskii <eliz@gnu.org>
9501
9502 * dispextern.h (struct text_pos): Use EMACS_INT.
9503 (struct glyph): Use EMACS_INT for charpos.
9504 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
9505 region_beg_charpos, region_end_charpos,
9506 redisplay_end_trigger_charpos, and also for
9507 iterator_stack_entry.end_charpos and
9508 iterator_stack_entry.stop_charpos.
9509
9510 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
9511
9512 * gtkutil.c (scroll_end_callback): New function (bug #5177).
9513 (xg_create_scroll_bar): Call scroll_end_callback on button release
9514 event (bug #5177).
9515 (xg_event_is_for_scrollbar): != replaced with ==.
9516
9517 2009-12-12 Kenichi Handa <handa@m17n.org>
9518
9519 * ftfont.c (struct ftfont_info): New member matrix.
9520 (ftfont_open): Setup xftfont_info->matrix.
9521 (MFLTFontFT): New member matrix.
9522 (FLOOR, CEIL, ROUND): New macros.
9523 (ftfont_get_metrics): Handle matrix transformation.
9524 (ftfont_shape_by_flt): New arg matrix. Callers changed.
9525
9526 * xftfont.c (struct xftfont_info): New member matrix.
9527 (xftfont_open): Setup xftfont_info->matrix.
9528
9529 2009-12-10 Kenichi Handa <handa@m17n.org>
9530
9531 * xdisp.c (append_space_for_newline): Consider face-remapping.
9532
9533 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
9534
9535 * xsettings.c: Include "keyboard.h".
9536
9537 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
9538
9539 Fix implicit function declarations.
9540 * cmds.c: Include "frame.h".
9541 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
9542 * frame.h: Move declaration of delete_frame outside of
9543 HAVE_WINDOW_SYSTEM.
9544
9545 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
9546
9547 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
9548
9549 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
9550 GTK builds.
9551
9552 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
9553
9554 * unexelf.c (unexec): Don't search for .data twice.
9555
9556 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
9557
9558 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
9559 if push failed.
9560 (handle_line_prefix): Set avoid_cursor_p here. Check return value
9561 of push_display_prop (Bug#5000).
9562
9563 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
9564 value of font_list_entities (Bug#5085).
9565
9566 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
9567
9568 Fix `string-to-number' to deal consistently with integers and floats.
9569 * lread.c (isfloat_string): New argument ignore_trailing to accept all
9570 trailing characters, not just whitespace.
9571 (read1): Pass new arg 0 to keep old behavior.
9572 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
9573 trailing chars, as it is already done for integers. Doc fixes.
9574 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
9575
9576 2009-12-04 Eli Zaretskii <eliz@gnu.org>
9577
9578 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
9579 Delete unused enumeration value.
9580
9581 2009-12-03 Eli Zaretskii <eliz@gnu.org>
9582
9583 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
9584
9585 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
9586
9587 * process.c (Fmake_network_process): Fix up the tests for
9588 "connectionless socket", so they DTRT for seqpacket sockets as well.
9589
9590 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
9591
9592 * process.c (Qseqpacket): New symbol.
9593 (HAVE_SEQPACKET): New macro.
9594 (Fmake_network_process): Accept new :type `seqpacket'.
9595 (init_process): Add `seqpacket' feature when applicable.
9596 (syms_of_process): Initialize Qseqpacket.
9597
9598 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9599
9600 * font.c (font_load_for_lface, font_open_by_name): Don't store name
9601 if entity is Qnil.
9602
9603 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
9604
9605 * print.c (print_preprocess): Preprocess the key_and_value table of
9606 hashtables, even tho they're "hidden" (bug#5082).
9607
9608 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
9609
9610 * frame.c (frame_make_pointer_invisible)
9611 (frame_make_pointer_visible): Declare f before statements.
9612
9613 2009-11-28 Eli Zaretskii <eliz@gnu.org>
9614
9615 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
9616 omitted dependencies on lisp.h.
9617
9618 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
9619
9620 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
9621 is NULL.
9622
9623 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
9624
9625 * frame.c (frame_make_pointer_invisible)
9626 (frame_make_pointer_visible): Just return if there isn't any selected
9627 frame.
9628
9629 * search.c (simple_search): Remove warning by making *p const.
9630
9631 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
9632
9633 * xdisp.c (power_letter): Remove duplicate const.
9634
9635 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
9636
9637 * term.c (delete_tty): Remove check for last terminal (bug#4970).
9638
9639 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
9640 defaults (bug #5025).
9641
9642 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
9643
9644 * insdel.c (adjust_markers_for_delete): Move it in the
9645 right direction! (bug#4803)
9646
9647 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9648
9649 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
9650
9651 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
9652
9653 2009-11-24 Glenn Morris <rgm@gnu.org>
9654
9655 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
9656
9657 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
9658
9659 * Makefile.in: Must create deps for ecrt0.o in its rule.
9660
9661 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
9662 because that is what Gtk+ font dialog understands.
9663
9664 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9665 of Fcopy_sequence.
9666 (font_open_by_name): Put name given into QCname for font-object returned.
9667
9668 * frame.c (x_set_font): Save original font name as frame parameter
9669 font-parameter.
9670
9671 * xsettings.c (set_default_xft_settings): New function.
9672 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
9673 is found.
9674
9675 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
9676
9677 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
9678 searching backwards through multibyte buffer.
9679
9680 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
9681
9682 * xterm.c: #include xgselect.h.
9683 (x_initialize): Call xgselect_initialize.
9684
9685 * xsettings.c (something_changedCB): C++ comments => C comments.
9686 (init_gconf): Do not deal with any GLib file descriptors, xg_select
9687 does that now.
9688
9689 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
9690 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
9691 (scroll_bar_button_cb): Remove.
9692 (create_menus): C++ comments => C comments. Don't bind grab-notify
9693 event.
9694 (xg_create_scroll_bar): Don't bind button-press-event and
9695 button-release-event.
9696
9697 * process.c: Include xgselect.h if defined (USE_GTK) ||
9698 defined (HAVE_GCONF).
9699 (wait_reading_process_output): Call xg_select for the same condition.
9700
9701 * xgselect.c (xg_select): New function to better integrate with
9702 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
9703
9704 * xgselect.h: New file, declare xg_select, xgselect_initialize.
9705
9706 * Makefile.in (XOBJ): Add xgselect.o.
9707
9708 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
9709
9710 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
9711 Remove ignored second argument. All callers changed.
9712 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
9713 (RE_STRING_CHAR_AND_LENGTH): Likewise.
9714 * xdisp.c (string_char_and_length): Likewise.
9715
9716 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
9717
9718 * xterm.c (x_new_font):
9719 * print.c (print_object):
9720 * cmds.c (Fself_insert_command): Move declarations before statements.
9721
9722 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
9723
9724 * s/cygwin.h: Remove unneeded linker flags.
9725
9726 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
9727
9728 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
9729
9730 * xsettings.h: Declare xsettings_get_system_font.
9731
9732 * xsettings.c (xsettings_get_system_font): New function.
9733 (init_gconf): No use initiating gconf unless we have Xft also.
9734 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
9735 HAVE_GCONF.
9736
9737 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
9738 add a blank entry so it doesn't collapse into nothing.
9739
9740 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9741
9742 * lread.c (Funintern): Comment out last change.
9743
9744 2009-11-19 Richard Stallman <rms@gnu.org>
9745
9746 * lread.c (Funintern): Error if symbol is t or nil.
9747
9748 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9749
9750 * insdel.c (make_gap_larger): Don't make as many assumptions about the
9751 representation of Lisp integers.
9752 Reported by MJ Chan <mjchan.inbox@gmail.com>.
9753
9754 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9755
9756 * lisp.h: Remove declaration of Ffont_get_system_font.
9757 * xfns.c: Move include of "xsettings.h".
9758 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
9759
9760 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9761
9762 * xsettings.c (something_changedCB, Ffont_get_system_font):
9763 Check use_system_font.
9764 (syms_of_xsettings): DEFVAR font-use-system-font.
9765
9766 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
9767
9768 * xfns.c (x_default_font_parameter): Remove dead assignment.
9769
9770 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
9771
9772 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
9773
9774 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
9775 not have FC_LCD_*. #define them if not there.
9776
9777 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
9778
9779 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
9780
9781 * xterm.c (handle_one_xevent): Call xft_settings_event for
9782 ClientMessage, PropertyNotify and DestroyNotify.
9783 (x_term_init): If we have XFT, get DPI from Xft.dpi.
9784 Call xsettings_initialize.
9785
9786 * xftfont.c (xftfont_fix_match): New function.
9787 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
9788 Call xftfont_fix_match after XftFontMatch.
9789
9790 * xfont.c (xfont_driver): Initialize all members.
9791
9792 * xfns.c (x_default_font_parameter):
9793 Try font from Ffont_get_system_font.
9794 Do not get font from x_default_parameter if we got one from
9795 Ffont_get_system_font.
9796 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
9797
9798 * w32font.c (w32font_driver): Initialize all members.
9799
9800 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
9801
9802 * lisp.h: Declare syms_of_xsettings.
9803
9804 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9805 Handle CONFIG_CHANGED_EVENT.
9806
9807 * ftfont.c (ftfont_filter_properties): New function.
9808
9809 * frame.c (x_set_font): Remove unused variable lval.
9810
9811 * font.h (struct font_driver): Add filter_properties.
9812
9813 * font.c (font_put_extra): Don't return if val is nil, it means
9814 boolean option is off.
9815 (font_parse_fcname): Collect all extra properties in extra_props
9816 and call filter_properties for all drivers with extra_props and
9817 font as parameter.
9818 (font_open_entity): Do not use cache, it does not pick up new
9819 fontconfig settings like hinting.
9820 (font_load_for_lface): If spec had a name in it, store it in entity.
9821
9822 * emacs.c (main): Call syms_of_xsettings.
9823
9824 * config.in: HAVE_GCONF is new.
9825
9826 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9827 xsettings.o is new.
9828
9829 2009-11-17 Kenichi Handa <handa@m17n.org>
9830
9831 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9832 back to the default font in case that no suitable font is found.
9833
9834 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9835
9836 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9837 Suggested by Chad Brown <yandros@mit.edu>.
9838 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9839
9840 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
9841
9842 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9843
9844 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
9845
9846 * Makefile.in: Ignore errors from mkdir when creating deps directory.
9847
9848 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
9849
9850 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9851 has a parent.
9852
9853 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
9854 dependency files in deps/. Include those files into Makefile.
9855
9856 * config.in: Generated (AUTO_DEPEND).
9857
9858 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
9859
9860 * dbusbind.c (Vdbus_registered_objects_table): Rename from
9861 Vdbus_registered_functions_table, because it contains also
9862 properties. Fix docstring.
9863 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
9864
9865 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
9866
9867 * alloc.c (mark_object): Don't reprocess marked strings.
9868 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
9869 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9870
9871 2009-11-13 Kenichi Handa <handa@m17n.org>
9872
9873 * category.c (word_boundary_p): Adjust for the change of the
9874 semantics of Vword_combining_categories.
9875 (Vword_combining_categories): Describe the slight change of the
9876 semantics.
9877
9878 2009-11-13 Eli Zaretskii <eliz@gnu.org>
9879
9880 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9881
9882 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9883
9884 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
9885
9886 * xdisp.c (syms_of_xdisp): Fix typo in last change.
9887
9888 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
9889
9890 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9891
9892 2009-11-11 David Reitter <david.reitter@gmail.com>
9893
9894 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9895 variables to fix 2009-11-09 change.
9896
9897 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
9898
9899 * process.c (ifflag_def): Make flag_sym constant.
9900 (Fnetwork_interface_info): Use a constant pointer.
9901 (ifflag_table):
9902 * xfns.c (cursor_bits):
9903 * xdisp.c (power_letter):
9904 * termcap.c (speeds, esctab):
9905 * sysdep.c (baud_convert):
9906 * keyboard.c (lispy_accent_codes, modifier_names):
9907 * image.c (xbm_format, xpm_format, pbm_format, png_format)
9908 (jpeg_format, tiff_format, gif_format, svg_format)
9909 (interlace_start, interlace_increment, gs_format):
9910 * gtkutil.c (separator_names):
9911 * fringe.c (swap_nibble):
9912 * fns.c (base64_value_to_char, base64_char_to_value):
9913 * fileio.c (make_temp_name_tbl):
9914 * coding.c (suffixes): Make constant.
9915
9916 * frame.c (make_initial_frame):
9917 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9918 build_string.
9919 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9920
9921 * s/freebsd.h:
9922 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9923
9924 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
9925 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9926
9927 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9928 * xterm.c (syms_of_xterm):
9929 * xfaces.c (syms_of_xfaces):
9930 * xdisp.c (syms_of_xdisp):
9931 * lread.c (syms_of_lread):
9932 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9933 build_string.
9934
9935 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9936
9937 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9938
9939 * fns.c (Fplist_get): Merge the active and the commented out code.
9940
9941 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9942
9943 * keyboard.h: Declare timer_check.
9944
9945 * keyboard.c (timer_check_2): New function that does what the old
9946 timer_check did.
9947 (timer_check): Call timer_check_2 until -1 or a non-zero time is
9948 returned, i.e. don't return -1 with timers pending.
9949
9950 * process.c: Remove extern declaration of timer_check.
9951
9952 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9953 even if timer_check returned -1.
9954
9955 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9956 xg_dialog_data.
9957 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9958 the event loop.
9959 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9960 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9961 Destroy the dialog after xg_dialog_run.
9962
9963 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9964
9965 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9966
9967 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
9968
9969 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9970
9971 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
9972
9973 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9974
9975 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9978 w32menu.c, and nsmenu.m.
9979 Simplify the obsolete case where position is nil.
9980 (cleanup_popup_menu): New function, moved from nsmenu.m.
9981 (struct skp): Remove slot `notreal'.
9982 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9983 adjust callers.
9984 (single_menu_item): Adjust call to parse_menu_item.
9985 (syms_of_menu): Defsubr x-popup-menu.
9986 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9987 (keymap_panes): Don't export any more.
9988 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9989 (xmenu_show): Declare.
9990 * keyboard.c (parse_menu_item): Remove arg `notreal'.
9991 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9992 * keyboard.h (parse_menu_item): Update declaration.
9993 * xmenu.c (Fx_popup_menu): Remove.
9994 (syms_of_xmenu): Don't defsubr x-popup-menu.
9995 * w32menu.c (Fx_popup_menu): Remove.
9996 (syms_of_w32menu): Don't defsubr x-popup-menu.
9997 * nsmenu.m (cleanup_popup_menu): Remove.
9998 (ns_menu_show): Rename from ns_popup_menu and remove all the code
9999 moved to menu.c's Fx_popup_menu.
10000 (Fx_popup_menu): Remove.
10001 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
10002 menu_items (it's done in menu.c already).
10003
10004 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
10005
10006 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
10007 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
10008
10009 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
10010
10011 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
10012 xmenu_show. Hide any tooltip before opening a menu.
10013 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
10014 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
10015
10016 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 Let integers use up 2 tags to give them one extra bit and thus double
10019 their range.
10020 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
10021 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
10022 New macros.
10023 (enum Lisp_Type): Use them. Give explicit values.
10024 (Lisp_Type_Limit): Remove.
10025 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
10026 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
10027 Pay attention to USE_2_TAGS_FOR_INTS.
10028 (INTEGERP): Use LISP_INT_TAG_P.
10029 * fns.c (internal_equal): Simplify the default case.
10030 (sxhash): Use case_Lisp_Int.
10031 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
10032 any more.
10033 (Ftype_of): Use case_Lisp_Int.
10034 (store_symval_forwarding): Take into account the fact that Ints can
10035 now have more than one tag.
10036 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
10037 (buffer_slot_type_mismatch):
10038 * xfaces.c (face_attr_equal_p):
10039 * print.c (print_object):
10040 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
10041 Use case_Lisp_Int.
10042
10043 2009-11-06 Eli Zaretskii <eliz@gnu.org>
10044
10045 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
10046
10047 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
10048 warning.
10049
10050 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
10051
10052 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
10053
10054 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
10055
10056 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
10057 ButtonPressRelease and MotionNotify (bug#4870).
10058
10059 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
10060
10061 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
10062
10063 * xterm.c (syms_of_xterm):
10064 * xselect.c (syms_of_xselect):
10065 * xmenu.c (syms_of_xmenu):
10066 * xfns.c (syms_of_xfns):
10067 * xfaces.c (syms_of_xfaces):
10068 * xdisp.c (syms_of_xdisp):
10069 * window.c (syms_of_window):
10070 * w32fns.c (syms_of_w32fns):
10071 * undo.c (syms_of_undo):
10072 * textprop.c (syms_of_textprop):
10073 * terminal.c (syms_of_terminal):
10074 * syntax.c (syms_of_syntax):
10075 * sound.c (syms_of_sound):
10076 * search.c (syms_of_search):
10077 * print.c (syms_of_print):
10078 * minibuf.c (syms_of_minibuf):
10079 * macros.c (syms_of_macros):
10080 * keymap.c (syms_of_keymap, initial_define_key)
10081 (initial_define_lispy_key):
10082 * keyboard.c (syms_of_keyboard):
10083 * insdel.c (syms_of_insdel):
10084 * image.c (syms_of_image):
10085 * fringe.c (syms_of_fringe):
10086 * frame.c (syms_of_frame):
10087 * fontset.c (syms_of_fontset):
10088 * fns.c (syms_of_fns):
10089 * fns.c (syms_of_fns):
10090 * fileio.c (syms_of_fileio):
10091 * fileio.c (syms_of_fileio):
10092 * eval.c (syms_of_eval):
10093 * doc.c (syms_of_doc):
10094 * dispnew.c (syms_of_display):
10095 * dired.c (syms_of_dired):
10096 * dbusbind.c (syms_of_dbusbind):
10097 * data.c (syms_of_data):
10098 * composite.c (syms_of_composite):
10099 * coding.c (syms_of_coding):
10100 * cmds.c (syms_of_cmds):
10101 * charset.c (define_charset_internal, syms_of_character):
10102 * ccl.c (syms_of_ccl):
10103 * category.c (syms_of_category, init_category_once):
10104 * casetab.c (syms_of_casetab):
10105 * casefiddle.c (syms_of_casefiddle):
10106 * callint.c (syms_of_callint):
10107 * bytecode.c (syms_of_bytecode):
10108 * buffer.c (keys_of_buffer, syms_of_buffer):
10109 * alloc.c (syms_of_alloc):
10110 * process.c (syms_of_process, init_process):
10111 * lread.c (syms_of_lread, init_obarray):
10112 * font.c (build_style_table):
10113 * emacs.c (syms_of_emacs, main): Replace calls to intern with
10114 intern_c_string, calls to make_pure_string with
10115 make_pure_c_string. Use pure_cons instead of Fcons.
10116
10117 * process.c (socket_options): Make it const.
10118 (set_socket_option, init_process): Use a const pointer.
10119
10120 * lread.c (intern_c_string): New function.
10121 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10122 (defvar_int): Uset it. Make the name const char*.
10123
10124 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
10125 (defvar_int): Update prototypes.
10126 (DEFUN, EXFUN): Support for prototypes is now required.
10127 (intern_c_string): New prototype.
10128 (struct Lisp_Subr): Make symbol_name constant.
10129
10130 * font.c (struct table_entry): Remove unused member. Make NAMES
10131 constant.
10132 (weight_table, slant_table, width_table): Make constant.
10133
10134 * emacs.c (struct standard_args): Make name and longname constant.
10135
10136 * character.h (DEFSYM): Use intern_c_string.
10137
10138 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
10139
10140 * alloc.c (make_pure_c_string): New function.
10141
10142 * eval.c (Fautoload): Purecopy all arguments.
10143
10144 2009-11-05 Kenichi Handa <handa@m17n.org>
10145
10146 * fileio.c (Finsert_file_contents): Be sure set coding-system of
10147 the buffer in case of replace.
10148
10149 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
10150
10151 * puresize.h (BASE_PURESIZE): Increase to 1620000.
10152
10153 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
10154
10155 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
10156 when applicable (bug#4851).
10157
10158 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
10159 (P_): Support for prototypes is now required.
10160
10161 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
10162
10163 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
10164 (Bug#4827).
10165
10166 2009-10-30 Eli Zaretskii <eliz@gnu.org>
10167
10168 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
10169
10170 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
10171
10172 * puresize.h (BASE_PURESIZE): Increase to 1470000.
10173
10174 * lread.c (Fload): Purecopy the file name when building
10175 Vpreloaded_file_list.
10176
10177 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
10178
10179 * w32fns.c (syms_of_w32fns): Change default value of
10180 w32-scroll-lock-modifier to nil. (Bug#2827)
10181
10182 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10183
10184 * minibuf.c (Fall_completions): Fix typos in docstring.
10185
10186 2009-10-26 Andreas Schwab <schwab@redhat.com>
10187
10188 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
10189
10190 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
10191
10192 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
10193 For delta < 0, skip check that only makes sense when the mini-window
10194 is going to be enlarged. (Bug#4534)
10195
10196 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
10197
10198 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
10199 string in menu maps (Bug#4471).
10200
10201 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
10202
10203 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
10204 FRAME_NS_VIEW on terminal frames (Bug#4765).
10205
10206 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
10207
10208 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
10209 DBUS_TYPE_UINTnn separately to get proper sign extension.
10210
10211 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
10212 can properly handle unsigned types.
10213 (make_uid, make_gid): Remove.
10214
10215 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
10216 types again.
10217
10218 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10219 (system_process_attributes): Likewise.
10220
10221 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
10222
10223 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
10224
10225 * eval.c (Fautoload): Purecopy the filename. Simplify.
10226
10227 * category.c (Fdefine_category): Purecopy docstring.
10228
10229 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
10230
10231 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
10232
10233 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
10234
10235 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
10236
10237 * window.c (Fwindow_edges, Fwindow_pixel_edges)
10238 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
10239 (Bug#4775).
10240
10241 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10242
10243 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
10244 (init_fileio_once):
10245 * lisp.h (init_fileio_once): Remove.
10246 * emacs.c (main): Don't call init_fileio_once.
10247
10248 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
10249
10250 * puresize.h (BASE_PURESIZE): Increase to 1430000.
10251
10252 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
10253
10254 * doprnt.c (doprnt): Fix overflow check.
10255
10256 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
10257
10258 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
10259
10260 * xterm.h (x_wait_for_event): Declare it.
10261
10262 * xterm.c (pending_event_wait): New variable.
10263 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
10264 see pending_event_wait.eventtype.
10265 (handle_one_xevent): Don't change gravity when parent changes.
10266 (x_new_font): Call change_frame_size with new rows/columns before we
10267 try to resize the frame.
10268 (x_wait_for_event): New function.
10269 (x_set_window_size_1): Don't change gravity unless change_gravity
10270 is set.
10271 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
10272 don't change frame size, instead wait for the ConfigureNotify.
10273 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
10274 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
10275 (x_initialize): Initialize pending_event_wait.
10276
10277 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
10278 size.
10279
10280 * widget.c (EmacsFrameSetValues): Add comment.
10281 (EmacsFrameSetCharSize): Just call x_set_window_size.
10282
10283 * gtkutil.c (xg_frame_set_char_size): Flush events and call
10284 x_wait_for_event.
10285 (flush_and_sync): Remove again.
10286 (xg_get_font_name): Suggest monospace if no previous font is known.
10287
10288 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
10291 8th bit, since that only made sense in the ASCII world (bug#4751).
10292
10293 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10294
10295 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
10296 processing pending events when event is filtered for input method.
10297 (Bug#3681)
10298
10299 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
10300
10301 * fns.c: Add #endif accidentally removed in previous change.
10302
10303 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10304
10305 * fns.c: Remove code for unsupported system: MAC_OS.
10306 * image.c: Likewise. Include setjmp.h.
10307
10308 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
10309
10310 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
10311 pixel -1 (bug #4742).
10312
10313 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
10314
10315 * process.c (create_pty): Remove conditionals for no longer
10316 supported systems: UNIPLUS and RTU.
10317
10318 * xterm.c:
10319 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
10320
10321 * alloc.c: Do not define struct catchtag.
10322 * eval.c: Move struct catchtag definition ...
10323 * lisp.h: ... here.
10324
10325 * image.c: Move png.h #include earlier to avoid warnings.
10326
10327 * xterm.c:
10328 * xsmfns.c:
10329 * xselect.c:
10330 * xrdb.c:
10331 * xmenu.c:
10332 * xftfont.c:
10333 * xfont.c:
10334 * xfns.c:
10335 * xfaces.c:
10336 * xdisp.c:
10337 * window.c:
10338 * widget.c:
10339 * w32xfns.c:
10340 * w32uniscribe.c:
10341 * w32term.c:
10342 * w32select.c:
10343 * w32reg.c:
10344 * w32proc.c:
10345 * w32menu.c:
10346 * w32inevt.c:
10347 * w32heap.c:
10348 * w32font.c:
10349 * w32fns.c:
10350 * w32console.c:
10351 * w32.c:
10352 * w16select.c:
10353 * vm-limit.c:
10354 * unexsol.c:
10355 * unexec.c:
10356 * unexcw.c:
10357 * unexaix.c:
10358 * undo.c:
10359 * tparam.c:
10360 * textprop.c:
10361 * terminfo.c:
10362 * terminal.c:
10363 * termcap.c:
10364 * term.c:
10365 * syntax.c:
10366 * sound.c:
10367 * sheap.c:
10368 * search.c:
10369 * scroll.c:
10370 * region-cache.c:
10371 * regex.c:
10372 * ralloc.c:
10373 * process.c:
10374 * print.c:
10375 * nsterm.m:
10376 * nsselect.m:
10377 * nsmenu.m:
10378 * nsimage.m:
10379 * nsfont.m:
10380 * nsfns.m:
10381 * msdos.c:
10382 * minibuf.c:
10383 * menu.c:
10384 * marker.c:
10385 * macros.c:
10386 * keymap.c:
10387 * keyboard.c:
10388 * intervals.c:
10389 * insdel.c:
10390 * indent.c:
10391 * gtkutil.c:
10392 * ftxfont.c:
10393 * ftfont.c:
10394 * fringe.c:
10395 * frame.c:
10396 * fontset.c:
10397 * font.c:
10398 * fns.c:
10399 * floatfns.c:
10400 * filelock.c:
10401 * fileio.c:
10402 * emacs.c:
10403 * editfns.c:
10404 * dosfns.c:
10405 * doprnt.c:
10406 * doc.c:
10407 * dispnew.c:
10408 * dired.c:
10409 * dbusbind.c:
10410 * data.c:
10411 * composite.c:
10412 * coding.c:
10413 * cmds.c:
10414 * cm.c:
10415 * chartab.c:
10416 * charset.c:
10417 * character.c:
10418 * ccl.c:
10419 * category.c:
10420 * casetab.c:
10421 * casefiddle.c:
10422 * callproc.c:
10423 * callint.c:
10424 * bytecode.c:
10425 * buffer.c:
10426 * atimer.c: Include setjmp.h. (Bug#4643)
10427
10428 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10429
10430 Remove leftover table unibyte_to_multibyte_table.
10431 * character.c (unibyte_to_multibyte_table): Remove.
10432 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
10433 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
10434 * character.h (UNIBYTE_TO_CHAR): New macro.
10435 (MAKE_CHAR_MULTIBYTE): Use it.
10436 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
10437 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
10438 (message_dolog, set_message_1):
10439 * search.c (Freplace_match):
10440 * editfns.c (Fcompare_buffer_substrings):
10441 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
10442 (concat):
10443 * insdel.c (copy_text, count_size_as_multibyte):
10444 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
10445 * term.c (produce_glyphs):
10446 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
10447 * regex.c (RE_CHAR_TO_MULTIBYTE):
10448 * cmds.c (internal_self_insert):
10449 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
10450
10451 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
10452
10453 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
10454
10455 * puresize.h (BASE_PURESIZE): Increase to 1310000.
10456
10457 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
10458
10459 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
10460
10461 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10462
10463 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
10464 still needed under Tiger.
10465
10466 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
10467
10468 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
10469 __Apple__.
10470
10471 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
10472
10473 2009-10-15 Kenichi Handa <handa@m17n.org>
10474
10475 * print.c (print_object): Escape a symbol like "2E10" too.
10476
10477 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
10478
10479 Cleanups and changes for 64-bit compile under Snow Leopard.
10480 Based on suggestions by Erik Charlebois.
10481
10482 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
10483
10484 * nsfont.m (ns_char_width): Replace deprecated call.
10485 (ns_findfonts, nsfont_list_family): Use long format in printf, and
10486 cast argument.
10487 (nsfont_open): Use ns_char_width() everywhere.
10488 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
10489
10490 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
10491
10492 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
10493 where appropriate.
10494
10495 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
10496 where appropriate.
10497 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
10498 Use stringWithUTF8String.
10499 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
10500
10501 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
10502 Add formal protocol mention to inheritance.
10503 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
10504
10505 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
10506 Fix printf format.
10507 (ns_query_color): Use CGFloat where appropriate.
10508 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
10509 (EmacsScroller-mouseDown:): Use long format in printf, and cast
10510 argument.
10511
10512 * config.in (NS_HAVE_NSINTEGER): Drop.
10513
10514 * dbusbind.c (dbus-method-return-internal)
10515 (dbus-method-error-internal): Use long format in printf, and cast
10516 argument.
10517
10518 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
10519 in printf, and cast argument.
10520
10521 * process.c (list_processes_1): Use long format in printf, and
10522 cast argument.
10523
10524 2009-10-11 Glenn Morris <rgm@gnu.org>
10525
10526 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
10527
10528 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
10529
10530 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
10531 menu bar with a small width so it doesn't enlarge the frame.
10532
10533 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
10534
10535 * fontset.c (Fset_fontset_font): Fix typos in error messages.
10536
10537 2009-10-06 Glenn Morris <rgm@gnu.org>
10538
10539 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
10540 SOME_MACHINE_LISP (this enters indirectly via DOC).
10541
10542 2009-10-05 Eli Zaretskii <eliz@gnu.org>
10543
10544 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
10545
10546 2009-10-04 Eli Zaretskii <eliz@gnu.org>
10547
10548 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
10549 Doc fix.
10550
10551 2009-10-03 Martin Rudalics <rudalics@gmx.at>
10552
10553 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
10554
10555 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
10556
10557 * lisp.h (Qdelete_directory_internal): Remove, because it is not
10558 used anymore outside fileio.c.
10559
10560 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
10561
10562 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
10563
10564 * lisp.h (Qdelete_directory_internal):
10565 Declare, instead of Qdelete_directory.
10566
10567 * w32fns.c (Fsystem_move_file_to_trash): Use it.
10568
10569 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
10570
10571 * eval.c (Fcalled_interactively_p): Add `kind' argument.
10572
10573 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
10574
10575 * fileio.c (Fdelete_directory_internal): Rename from
10576 Fdelete_directory. It is not a command anymore. It has no file
10577 name handler.
10578
10579 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10580
10581 * xdisp.c (get_next_display_element): Use an enum in last change.
10582
10583 2009-09-28 Kenichi Handa <handa@m17n.org>
10584
10585 * xdisp.c (get_next_display_element): Pay attention to
10586 unibyte_display_via_language_environment in handling
10587 Vnobreak_char_display.
10588
10589 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10590
10591 * nsterm.h (ns_app_name): New extern variable.
10592
10593 * nsterm.m (ns_app_name): New variable.
10594 (ns_term_init): Set and use it.
10595 (ns_term_shutdown): Use it.
10596
10597 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
10598 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
10599
10600 * nsfns.m (ns_set_name_iconic, ns_set_name)
10601 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
10602 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
10603
10604 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
10605 Remove double-casting in client_data comparison.
10606
10607 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10608
10609 * keyboard.c (make_lispy_event): Remember last wheel direction.
10610 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
10611
10612 2009-09-26 Glenn Morris <rgm@gnu.org>
10613
10614 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
10615 internal.elc. Add term/pc-win.elc.
10616 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
10617 term/x-win.elc.
10618 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
10619 term/w32-win.elc.
10620 (NS_SUPPORT): New.
10621 (lisp): Add NS_SUPPORT.
10622 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
10623
10624 2009-09-25 David Reitter <david.reitter@gmail.com>
10625
10626 * nsmenu.m (EmacsMenu-clear): Recognize application menu
10627 on Mac OS X 10.6+ (bug#4513).
10628
10629 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10630
10631 * frame.c (xrdb_get_resource): Return nil for empty string resources;
10632 some parts of Emacs code (like font selection) don't grok them.
10633 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
10634
10635 2009-09-24 Andreas Schwab <schwab@redhat.com>
10636
10637 * coding.c (decode_coding_iso_2022): Fix operator precedence.
10638
10639 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
10640
10641 * dired.c (Fdirectory_files): Fix typo in docstring.
10642
10643 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10644
10645 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
10646 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
10647 (EmacsScroller-setPosition:portion:whole:): Remove -display call
10648 under GNUstep.
10649 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
10650
10651 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
10652 glyph advancement.
10653
10654 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10655
10656 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
10657 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
10658
10659 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
10660 deleted (bug #4492).
10661
10662 * nsfont.m (Vns_reg_to_script): New lisp variable.
10663 (syms_of_nsfont): Declare it.
10664 (ns_registry_to_script): New function.
10665 (ns_get_req_script): Call it.
10666 (ns_findfonts): Don't give up on non-unicode registry.
10667
10668 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
10669
10670 2009-09-20 Tom Tromey <tromey@redhat.com>
10671
10672 * eval.c (find_handler_clause): Make stack-trace-on-error work in
10673 batch mode (bug#4228).
10674
10675 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
10676
10677 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
10678 carefully. (Bug #4339)
10679
10680 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
10681
10682 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
10683
10684 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10685
10686 * emacs.c (inhibit_x_resources): Update doc string for NS.
10687 (main) [HAVE_NS]: Don't process --no-init-file option.
10688 Remove legacy code for -NXHost. Fix error printf in daemon case.
10689
10690 * nsterm.h (ns_no_defaults): Remove.
10691
10692 * nsterm.m (ns_no_defaults): Remove.
10693 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
10694 (ns_use_qd_smoothing): Remove legacy variable.
10695 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
10696 don't update the NSWindow itself.
10697 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
10698 Improve state detection and store user rect ourselves. (Bug #3581)
10699
10700 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
10701 ns_use_qd_smoothing.
10702
10703 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
10704 platform versions. Drop support for emacs-20-style face specs.
10705 (x-close-connection): Drop PSFlush() under OS X.
10706 (x-focus-frame): Activate the app first. (Bug #4180)
10707
10708 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
10709
10710 * emacs.c (inhibit_x_resources): New variable.
10711 (main) [HAVE_NS]: Don't process --quick command line option.
10712 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
10713
10714 * lisp.h (inhibit_x_resources): Declare it extern.
10715
10716 * w32reg.c (x_get_string_resource):
10717 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
10718
10719 2009-09-17 Eli Zaretskii <eliz@gnu.org>
10720
10721 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
10722 Add lisp/term/internal.elc.
10723
10724 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10725
10726 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
10727 (bug#4461).
10728
10729 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
10730
10731 * puresize.h (BASE_PURESIZE): Increase to 1290000.
10732
10733 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
10734 (OBJECTS_MACHINE): Remove, unused.
10735
10736 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * frame.c (x_get_resource_string): Remove unused.
10739
10740 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
10741
10742 * xterm.c (x_new_font): Call change_frame_size before calling
10743 x_set_window_size, in case frame size won't change.
10744
10745 * frame.c (x_set_font): Remove dead code.
10746
10747 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
10748
10749 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
10750
10751 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10752
10753 * lread.c (Fload): Don't output a message after loading an obsolete
10754 package any more (done in Lisp now).
10755
10756 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
10757
10758 * fns.c (syms_of_fns): Doc fix (Bug#4227).
10759
10760 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10761
10762 * keymap.c (Fwhere_is_internal): Use nconc2.
10763
10764 2009-09-11 Alan Mackenzie <acm@muc.de>
10765
10766 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
10767 batch mode.
10768
10769 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
10770
10771 * xdisp.c (display_mode_element): Detect cycles.
10772
10773 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * keymap.c (where_is_internal): Don't erroneously return nil right after
10776 filling the cache.
10777 (where_is_internal_1): Fix up typo.
10778
10779 2009-09-11 Glenn Morris <rgm@gnu.org>
10780
10781 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
10782 share a common doc-string.
10783
10784 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10785
10786 * keymap.c (get_keymap): Return the actual keymap symbol rather than
10787 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
10788
10789 * keymap.c (QCadvertised_binding): New constant.
10790 (syms_of_keymap): Initialize it.
10791 (Fwhere_is_internal): Try and use bindings from :advertised-binding
10792 if applicable.
10793
10794 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10795
10796 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
10797 (parse_menu_item): Streamline since bindings are recomputed all the
10798 time anyway. Don't bother checking Vdefine_key_rebound_commands any
10799 more and don't support lmenu's menu-alias any more either.
10800
10801 * keymap.c (where_is_internal_data): Make noindirect a boolean.
10802 (where_is_internal): Strip it down to only traverse the keymaps.
10803 Move the cache handling from Fwhere_is_internal to here.
10804 (Fwhere_is_internal): Move the handling of remapping and the choice of
10805 the best binding from where_is_internal to here.
10806 Unify the cached/noncached paths, so remapping is also handled
10807 correctly when the cache is used, and so the cache can be used to
10808 speed up remap-handling when applicable.
10809 Give preference to non-remapped bindings.
10810 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10811 non-remapped bindings.
10812 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10813 command remapping.
10814
10815 * xdisp.c (display_mode_element): Move list length limit from 50 to
10816 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10817
10818 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
10819
10820 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10821
10822 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
10823
10824 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10825 (Bug#4334)
10826
10827 * keymap.c (where_is_internal): Filter out shadowed remappings.
10828 Assume that where_is_internal returns unshadowed bindings to simplify
10829 the code and get rid of the gotos. Use ASIZE.
10830
10831 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
10832
10833 * xterm.c (x_focus_changed): If we get a focusout and pointer
10834 is invisible, make it visible.
10835
10836 * xterm.h: Remove condition for declaration of
10837 x_*_window_to_frame.
10838
10839 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10842 initial terminal as well.
10843
10844 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
10845
10846 * xterm.h: Rename x_non_menubar_window_to_frame to
10847 x_menubar_window_to_frame.
10848
10849 * xterm.c: Remove declarations also in xterm.h.
10850 (XTmouse_position): Do not return valid positions
10851 for clicks in the menubar and the toolbar for Gtk+.
10852
10853 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10854 if the widget for the event has the same top level as a frame,
10855 return the frame.
10856 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10857 internal windows, bug #4122.
10858 (x_non_menubar_window_to_frame): Remove.
10859
10860 2009-09-02 Glenn Morris <rgm@gnu.org>
10861
10862 * buffer.c (default-major-mode): Move most of the doc from here...
10863 (major-mode): ... to here.
10864
10865 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
10866
10867 * process.c (wait_reading_process_output): Keep the descriptor
10868 when pty is used by a non-child process, e.g., in I/O buffer of
10869 GDB this allows inferior to be restarted.
10870
10871 2009-08-29 Eli Zaretskii <eliz@gnu.org>
10872
10873 * xdisp.c (redisplay_internal): Remove redundant test and collapse
10874 both branches into one.
10875
10876 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10877
10878 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10879 (main): Use enable-multibyte-characters rather than
10880 default-enable-multibyte-characters. Output a warning message when
10881 running a unibyte session.
10882
10883 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10884
10885 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10886 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10887 (copy_data_segment): Also copy __program_vars section.
10888 (copy_dyld_info) [LC_DYLD_INFO]: New function.
10889 (dump_it) [LC_DYLD_INFO]: Use it.
10890
10891 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10892
10893 2009-08-28 Eli Zaretskii <eliz@gnu.org>
10894
10895 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10896 $(SRC)/buildobj.h.
10897 (buildobj.h): Rename from $(SRC)/buildobj.h.
10898 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10899 $(SRC)/buildobj.h.
10900 (clean): Add buildobj.h.
10901
10902 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
10903
10904 * print.c (print_object): Set escapeflag to 1 when printing
10905 hashtable keys and values.
10906
10907 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
10908
10909 * lread.c (read_integer): Use doubles (and potentially return a float
10910 number) as we do in string-to-number.
10911 (read1): Use strtol to read integers, signal errors on strtol's
10912 overflow and use floats if strtol's output is too large for
10913 Elisp integers.
10914
10915 2009-08-27 Eli Zaretskii <eliz@gnu.org>
10916
10917 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10918 (make-buildobj-SH): Fix last change.
10919 (SRC): Move to before where it's first used.
10920
10921 2009-08-27 Kenichi Handa <handa@m17n.org>
10922
10923 * process.c (send_process): Use encode_coding_object instead of
10924 encode_coding_string to perform eol-conversion even if the string
10925 is unibyte.
10926
10927 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10928 character.
10929
10930 * cmds.c (Fself_insert_command): Avoid unnecessay
10931 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
10932
10933 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
10934
10935 * callproc.c (Fcall_process): Remove always true #if.
10936
10937 * lisp.h: Replace #if 0 code for checking with text pointing to
10938 the --enable-checking configure flag.
10939
10940 * emacs.c (main): Mention the --enable-profiling configure flag
10941 instead of using CFLAGS.
10942
10943 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
10944
10945 * Makefile.in (buildobj.h): New target.
10946 (doc.o): Depend on it.
10947 (temacs${EXEEXT}): Don't generate buildobj.lst.
10948 (mostlyclean): Delete buildobj.h, not buildobj.lst.
10949 * makefile.w32-in ($(SRC)/buildobj.h): New target.
10950 ($(BLD)/doc.$(O)): Depend on it.
10951 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
10952 provided by Eli Zaretskii.)
10953 ($(TEMACS)): Don't generate buildobj.lst.
10954 * doc.c: Include buildobj.h.
10955 (buildobj): New static variable.
10956 (Fsnarf_documentation): Use it, instead of opening and reading
10957 buildobj.lst.
10958
10959 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
10960
10961 * dbusbind.c (Fdbus_call_method)
10962 (Fdbus_call_method_asynchronously): Use English numeric format for
10963 timeout values in doc string.
10964
10965 2009-08-25 Kenichi Handa <handa@m17n.org>
10966
10967 * alloc.c (mark_char_table): New function.
10968 (mark_object): Use mark_char_table for a char-table.
10969
10970 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10971 (CHAR_TABLE_REF): Use it.
10972
10973 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
10974
10975 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10976 before invoking the newly build emacs to check for load-path
10977 shadowing.
10978
10979 2009-08-22 Glenn Morris <rgm@gnu.org>
10980
10981 * Makefile.in (bootstrap_exe): New variable.
10982 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10983 Use ${bootstrap_exe}.
10984
10985 2009-08-22 Eli Zaretskii <eliz@gnu.org>
10986
10987 * coding.h (encode_coding_string): Don't encode unibyte strings.
10988 (Bug#4047)
10989
10990 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
10991
10992 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10993
10994 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
10995 intended as hotfix only.
10996 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10997
10998 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10999
11000 * nsterm.m (ns_get_color): Update documentation properly for last
11001 change, and clean up loose ends in the code left by it.
11002 Fix longstanding bug with 16-bit hex parsing, and add support for
11003 yet another X11 format (rgb:r/g/b) for compatibility.
11004 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
11005 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
11006
11007 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
11008
11009 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
11010
11011 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
11012
11013 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
11014 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
11015 (xd_initialize, xd_pending_messages): Check, whether
11016 $DBUS_SESSION_BUS_ADDRESS is set.
11017
11018 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11019
11020 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
11021
11022 * nsterm.m (ns_get_color): Remove incompatible color formats again.
11023
11024 2009-08-20 Glenn Morris <rgm@gnu.org>
11025
11026 * emacs.c (system-type): Doc fix.
11027
11028 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11029
11030 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
11031 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
11032
11033 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
11034
11035 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
11036 New functions.
11037 (xd_initialize): Revert change from 2009-08-16.
11038
11039 2009-08-18 Kenichi Handa <handa@m17n.org>
11040
11041 * fontset.c (Ffontset_font): If a nil element is found in a
11042 font-group vector, return nil.
11043
11044 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
11045
11046 * process.c (status_notify): Don't perform redisplay.
11047 (Fdelete_process, list_processes_1, process_send_signal):
11048 Expliticly perform redisplay.
11049 (wait_reading_process_output): Always check process status, but
11050 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
11051
11052 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
11053
11054 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
11055 (XFLOAT_INIT): New macro for storing a float value.
11056 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
11057 * fns.c (sxhash): Copy out the value of a float in order to
11058 examine its bytes.
11059 * dbusbind.c (xd_append_arg): Likewise.
11060
11061 * emacs.c (main): Don't call syms_of_data twice.
11062
11063 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
11064
11065 * dbusbind.c (xd_initialize): Add connection file descriptor to
11066 input_wait_mask, in order to let select() detect, whether a new
11067 message has been arrived.
11068 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
11069
11070 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
11071
11072 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
11073 New functions.
11074
11075 * lisp.h (xd_pending_messages): Declare.
11076
11077 * keyboard.c (readable_events): Call xd_pending_messages.
11078
11079 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
11080
11081 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
11082
11083 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
11084
11085 * buffer.c (set_buffer_internal_1)
11086 (swap_out_buffer_local_variables): Check for unbound local
11087 variables (Bug#4138).
11088
11089 2009-08-14 Eli Zaretskii <eliz@gnu.org>
11090
11091 * process.c (create_pty): Fix last change.
11092
11093 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
11094
11095 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
11096 (xbm_load_image): Caller changed.
11097 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
11098
11099 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
11100
11101 * process.c (create_pty): New function.
11102 (Fstart_process): Use it to allow Emacs to just associate a pty
11103 with the buffer. See associated change in gdb-mi.el.
11104 (list_processes_1): Deal with no program name.
11105 (start_process_unwind): Use pid == -2 to mean no process.
11106
11107 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
11108
11109 * cmds.c (nonundocount): New global variable.
11110 (keys_of_cmds): Initialize it.
11111 (Fself_insert_command): Use it to combine upto 20 sequential chars
11112 into a single undo entry, just like the Qself_insert_command code in
11113 keyboard.c does.
11114 Call frame_make_pointer_invisible, also like the Qself_insert_command
11115 code in keyboard.c does.
11116 * keyboard.c (command_loop_1): Use the new global nonundocount rather
11117 than its own local replacement for it.
11118
11119 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
11120
11121 * fns.c (concat): Don't re-set string length to its current value.
11122
11123 * coding.h (decode_coding_string, encode_coding_string):
11124 Use SBYTES macro.
11125
11126 * doprnt.c (doprnt_lisp): Delete unused function.
11127 (doprnt): Merge with doprnt1, discarding lispstrings code.
11128 * lisp.h (doprnt_lisp): Don't declare.
11129
11130 2009-08-07 Juri Linkov <juri@jurta.org>
11131
11132 * puresize.h (BASE_PURESIZE): Increase to 1270000.
11133
11134 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11135
11136 * print.c (syms_of_print): Undo previous change.
11137
11138 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
11139
11140 * lread.c (read1, syms_of_lread): Read hashtables back from the
11141 readable format.
11142
11143 * print.c (print_preprocess, print_object): Print hashtables fully
11144 and readably.
11145 (syms_of_print): Provide 'hashtable-print-readable.
11146
11147 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11148
11149 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
11150 no family set.
11151 (nsfont_open): Handle case when entity has no family.
11152
11153 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11154
11155 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
11156 element, not a list, for match case.
11157
11158 2009-07-28 Kenichi Handa <handa@m17n.org>
11159
11160 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
11161 rigidly.
11162
11163 * xfont.c (xfont_list_pattern): Don't ignore the return value of
11164 font_parse_xlfd. Check font properties more rigidly.
11165
11166 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11167
11168 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
11169 bsd-common.h.
11170
11171 2009-07-27 Kenichi Handa <handa@m17n.org>
11172
11173 * xfaces.c (face_with_height): Call font_clear_prop.
11174
11175 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
11176
11177 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
11178
11179 * xterm.c (x_term_init): Use Qx.
11180
11181 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
11182
11183 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
11184 (ns_get_color): Revert 2009-07-16 change.
11185
11186 2009-07-25 Eli Zaretskii <eliz@gnu.org>
11187
11188 * lread.c (syms_of_lread) <force_load_messages>: New variable.
11189 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
11190
11191 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
11192
11193 * coding.h (decode_coding_string, encode_coding_string):
11194 Use SCHARS macro.
11195
11196 * lread.c: Rewrite 2009-07-21 changes.
11197 (load_depth): Delete.
11198 (Qload_in_progress): New variable.
11199 (load_unwind): Don't reference load_depth or load_in_progress.
11200 (Fload): Likewise; specbind Qload_in_progress instead.
11201 (init_lread): Don't initialize load_depth.
11202 (syms_of_lread): Initialize and protect Qload_in_progress.
11203
11204 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11205
11206 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
11207
11208 2009-07-23 Yavor Doganov <yavor@gnu.org>
11209
11210 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
11211
11212 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11213
11214 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
11215 Bugs 3792, 3720, 2402.
11216 (ns_lookup_indexed_color): Check for bad index.
11217 (ns_index_color): Init unused slot to 0.
11218 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
11219 Bug 3714, possibly 3082.
11220
11221 2009-07-22 Jason Rumney <jasonr@gnu.org>
11222
11223 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
11224 Position IME window at cursor (Bug#2570).
11225 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
11226 (globals_of_w32fns): Dynamically load functions required above.
11227
11228 * w32term.c (w32_draw_window_cursor): Send message to reposition
11229 any IME window.
11230
11231 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11232
11233 * fileio.c: Revert 2009-07-16 changes.
11234 (Vauto_save_include_big_deletions): New variable.
11235 (Fdo_auto_save): Disable auto-save only if
11236 auto-save-include-big-deletions is nil.
11237
11238 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
11239
11240 * xdisp.c (move_it_to): For continued lines ending in a tab, take
11241 the overflowed pixels into account (Bug#3879).
11242
11243 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
11244
11245 * lread.c (load_depth): New variable.
11246 (Fload, load_unwind, init_lread): Set it to the load recursion
11247 depth; set load_in_progress as a simple boolean based on the
11248 current load_depth. (Bug#3892)
11249
11250 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11251
11252 * nsfont.m (ns_has_attribute): Remove.
11253 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
11254
11255 2009-07-18 Juri Linkov <juri@jurta.org>
11256
11257 * process.c (Fset_process_query_on_exit_flag): Mention killing
11258 a buffer in docstring.
11259
11260 2009-07-17 Kenichi Handa <handa@m17n.org>
11261
11262 * casetab.c (shuffle): Fix the logic of setting up the cycle.
11263
11264 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11265
11266 * nsfns.m (Fns_set_alpha): Remove function.
11267 (syms_of_nsfns): Don't defsubr it.
11268
11269 * nsterm.m (ns_get_color): Remove incompatible color formats.
11270 (ns_color_to_lisp): Generate #rrggbb color format string.
11271
11272 2009-07-16 Richard Stallman <rms@gnu.org>
11273
11274 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
11275 (Fset_buffer_auto_saved): Handle save_length = -2.
11276
11277 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
11278
11279 * xterm.c (Qx_gtk_map_stock): New var.
11280
11281 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
11282 of calling intern each time.
11283
11284 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11285
11286 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
11287 does tiling.
11288
11289 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
11290
11291 2009-07-14 Kenichi Handa <handa@m17n.org>
11292
11293 * font.c (font_vconcat_entity_vectors): New function.
11294 (struct font_sort_data): New member font_driver_preference.
11295 (font_compare): Check font_driver_preference.
11296 (font_sort_entities): The format of the first argument changed.
11297 (font_delete_unmatched): Likewise.
11298 (font_list_entities): The return type changed.
11299 (font_select_entity): The format of the second argument changed.
11300 (font_find_for_lface): Adjuste for the above changes.
11301 Don't suppress the checking of C even if the repertory supports it.
11302 (Flist_fonts): Adjust for the above changes.
11303
11304 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
11305 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
11306 Reject a font who has adstyle property that is different from a
11307 langname derived from registry property.
11308 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
11309
11310 2009-07-13 Eli Zaretskii <eliz@gnu.org>
11311
11312 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
11313 local copy of dirfilename.
11314
11315 2009-07-13 Kenichi Handa <handa@m17n.org>
11316
11317 * chartab.c (sub_char_table_ref_and_range): Fix the range check
11318 against max_char.
11319
11320 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
11321 calling XSYMBOL (sym).
11322
11323 2009-07-11 Eli Zaretskii <eliz@gnu.org>
11324
11325 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
11326 New function.
11327 (directory_files_internal) [WINDOWSNT]:
11328 Bind w32-get-true-file-attributes to either t or nil, depending whether
11329 the filesystem of the directory is fast or slow.
11330
11331 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11332 file name.
11333 (is_slow_fs): New function.
11334 (stat): Use it to determine whether to issue more system calls to
11335 get accurate file attributes, when w32-get-true-file-attributes is
11336 `local'.
11337
11338 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
11339
11340 * xfns.c (Fx_select_font): Remember last font selected in
11341 x_last_font_name and use that the next time. Also try the frame
11342 parameter font-parameter as default to the font dialog.
11343
11344 2009-07-10 Kenichi Handa <handa@m17n.org>
11345
11346 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
11347
11348 2009-07-09 Eli Zaretskii <eliz@gnu.org>
11349
11350 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11351
11352 * w32.c (stat): Treat UNC file names as residing on remote
11353 drives. (Bug#3542)
11354
11355 2009-07-09 Kenichi Handa <handa@m17n.org>
11356
11357 * fontset.c (fontset_find_font): Fix previous change.
11358
11359 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
11360
11361 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
11362 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
11363 error flag.
11364
11365 2009-07-08 Kenichi Handa <handa@m17n.org>
11366
11367 * fontset.c (fontset_find_font): Fix the logic of handling
11368 charset_matched.
11369 (font_for_char): Delete unused var.
11370 (generate_ascii_font_name): Delete it.
11371
11372 * coding.h (JIS_TO_SJIS2): Fix the code range check.
11373
11374 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
11375 (encode_coding_sjis): Fix the code range check.
11376
11377 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
11380 (Fexpand_file_name): Copy string data properly (Bug#3772).
11381
11382 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
11383
11384 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
11385 first MapNotify.
11386
11387 2009-07-07 Kenichi Handa <handa@m17n.org>
11388
11389 * character.h (unibyte_has_multibyte_table): Delete extern.
11390 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
11391
11392 * charset.c (Fset_charset_priority): Update charset_unibyte.
11393 (syms_of_charset): Initialize charset_unibyte.
11394
11395 * character.c (unibyte_has_multibyte_table): Delete it.
11396 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
11397 charset_unibyte.
11398 (multibyte_char_to_unibyte_safe): Likewise.
11399 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
11400
11401 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
11402 (x_produce_glyphs): Likewise.
11403
11404 * .gdbinit (xcharset): Fix the treating $arg0.
11405
11406 2009-07-04 Eli Zaretskii <eliz@gnu.org>
11407
11408 Emulation of `getloadavg' on MS-Windows.
11409 * w32.c: Include float.h.
11410 (g_b_init_get_native_system_info, g_b_init_get_system_times)
11411 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
11412 (get_native_system_info, get_system_times): New functions.
11413 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
11414 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
11415 (globals_of_w32): Initialize g_b_init_get_native_system_info,
11416 g_b_init_get_system_times, and num_of_processors.
11417
11418 2009-07-03 Jason Rumney <jasonr@gnu.org>
11419
11420 * w32term.c (w32_initialize): Use standard types.
11421
11422 2009-07-03 Eli Zaretskii <eliz@gnu.org>
11423
11424 * dired.c (Ffile_attributes): Decode user and group names by the
11425 locale's encoding. (Bug#3443)
11426
11427 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
11428
11429 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
11430 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
11431
11432 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
11433
11434 * term.c (init_tty): Remove spurious #ifdef.
11435
11436 * m/mips.h: Mention this file is also used for netbsd.
11437 * m/pmax.h: Remove file.
11438
11439 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
11440
11441 * xterm.h (struct x_display_info): Add invisible_cursor.
11442 (struct x_output): Add current_cursor.
11443
11444 * xterm.c (XTtoggle_invisible_pointer): New function.
11445 (x_define_frame_cursor): Don't define cursor if invisible or the
11446 same as before. Set current_cursor.
11447 (x_create_terminal): Set toggle_invisible_pointer_hook.
11448
11449 * xfns.c (make_invisible_cursor): New function.
11450 (x_set_mouse_color): Call make_invisible_cursor.
11451 Set current_cursor.
11452 (x_window): Set current_cursor.
11453
11454 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
11455
11456 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
11457 inserting a character.
11458 (read_avail_input): Call frame_make_pointer_visible.
11459
11460 * frame.c (Vmake_pointer_invisible): New variable.
11461 (frame_make_pointer_invisible, frame_make_pointer_visible):
11462 New functions.
11463 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
11464
11465 * frame.h: Declare frame_make_pointer_invisible and
11466 frame_make_pointer_visible.
11467 (struct frame): Add pointer_invisible.
11468
11469 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
11470
11471 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
11472 frame isn't visible.
11473 (xg_frame_resized): If width/height is -1, get size of window
11474 from X server.
11475
11476 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
11477 for MapNotify.
11478
11479 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
11480 here or call change_frame_size. Just call flush_and_sync.
11481 (flush_and_sync): Reintroduce.
11482
11483 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
11484
11485 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
11486
11487 * xterm.c (x_handle_net_wm_state): Also look for sticky.
11488 (x_term_init): Initialize Xatom_net_wm_state_sticky.
11489
11490 * frame.h: Declare Qsticky.
11491
11492 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
11493
11494 * nsfns.m (ns_frame_parm_handlers): Ditto.
11495
11496 * frame.c: Declare Qsticky.
11497 (frame_parms): Add sticky.
11498
11499 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11500
11501 * xterm.h: Declare x_set_sticky.
11502
11503 * xterm.c (x_set_sticky): New function.
11504
11505 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
11506 (xg_tool_bar_menu_proxy): Attach enter/leave events to
11507 xg_tool_bar_proxy_help_callback.
11508
11509 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
11510
11511 * frame.c: Qmaximized is new.
11512 (x_set_frame_parameters): Do not handle fullscreen specially.
11513 Only set width and height if explicitly set.
11514 (x_set_fullscreen): Handle Qmaximized.
11515 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
11516 (syms_of_frame): Initialize Qmaximized.
11517
11518 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
11519 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
11520
11521 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
11522 for Expose event. Add call to x_check_fullscreen for MapNotify event.
11523 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
11524 set gravity to NorthWestGravity when USE_GTK.
11525 (set_wm_state): New function.
11526 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
11527 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
11528 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
11529 or the case when no window manager is running. That means remove calls
11530 to x_real_positions and x_fullscreen_adjust.
11531
11532 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
11533 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
11534 flush_and_sync.
11535 (xg_height_changed): New function.
11536 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
11537 and gtk_window_set_policy. Set frame gravity after parsing the
11538 geometry string.
11539 (xg_update_frame_menubar, free_frame_menubar)
11540 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11541 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
11542 Remove calls to xg_frame_set_char_size.
11543
11544 2009-07-01 Kenichi Handa <handa@m17n.org>
11545
11546 * keyboard.c (decode_keyboard_code): New function.
11547 (tty_read_avail_input): Decode the input bytes if necessary.
11548
11549 * coding.c (setup_coding_system):
11550 Initialize coding->carryover_bytes to 0.
11551 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
11552 use Qno_conversion.
11553
11554 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11555
11556 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
11557
11558 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
11561
11562 2009-06-30 Jason Rumney <jasonr@gnu.org>
11563
11564 * w32term.c (w32_initialize): Use GetModuleHandle for library that
11565 is already loaded.
11566 Set user model ID if supported (bug#1849).
11567
11568 2009-06-29 Jim Meyering <meyering@redhat.com>
11569
11570 Remove useless if-before-xfree test.
11571 * nsfont.m (nsfont_close): Remove useless test.
11572 * term.c (delete_tty): Likewise.
11573 * w32.c (system_process_attributes): Likewise.
11574 * w32font.c (w32font_close): Likewise.
11575 * xfaces.c (x_free_gc): Likewise.
11576 * xselect.c (buffer): Likewise.
11577
11578 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
11579
11580 * process.c (send_process): Keep decoded string in a local
11581 variable and protect it from GC. (Bug#3521)
11582
11583 2009-06-28 Eli Zaretskii <eliz@gnu.org>
11584
11585 * term.c (create_tty_output) [MSDOS]: #ifdef away.
11586 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
11587
11588 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
11589
11590 * xdisp.c (start_display, handle_face_prop)
11591 (move_it_vertically_backward, cursor_row_fully_visible_p)
11592 (redisplay_window, try_window_id, produce_image_glyph):
11593 Delete some #ifdef-ed out code chunks that are now obsolete.
11594
11595 * xterm.c (x_update_window_begin, x_new_focus_frame)
11596 (x_scroll_bar_handle_click, handle_one_xevent)
11597 (handle_one_xevent, XTread_socket, x_focus_on_frame)
11598 (x_make_frame_visible, x_make_frame_invisible)
11599 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
11600 code chunks that are now obsolete.
11601
11602 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
11603
11604 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
11605 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
11606 for hours, when optimzation is enabled.
11607 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
11608 (xd_read_message): Make them static.
11609
11610 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
11611
11612 * term.c (turn_on_face): Allow simultaneously bold and dim
11613 terminal faces (Bug#3530).
11614
11615 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
11616
11617 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
11618
11619 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
11620 truncation glyphs (Bug#3686).
11621
11622 2009-06-27 Glenn Morris <rgm@gnu.org>
11623
11624 * m/pmax.h: Restore file, with only netbsd portions.
11625
11626 2009-06-26 David Reitter <david.reitter@gmail.com>
11627
11628 * nsterm.m (keydown): Avoid infinite loop.
11629
11630 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
11631
11632 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
11633 the arg FORCE_SYMBOL.
11634
11635 2009-06-25 Kenichi Handa <handa@m17n.org>
11636
11637 * fontset.c (fontset_find_font): When a usable rfont_def is found
11638 in a fallback font-group, make it the first element of the group.
11639
11640 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
11641
11642 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
11643
11644 2009-06-24 Kenichi Handa <handa@m17n.org>
11645
11646 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
11647 set for C.
11648 (fontset_font): Record the availability of a font for C both in
11649 the realized fontsets of the current one and the default one.
11650
11651 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
11652
11653 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
11654 conditional, it is always defined on AIX.
11655
11656 2009-06-23 Miles Bader <miles@gnu.org>
11657
11658 * window.c (Vrecenter_redisplay): New variable.
11659 (syms_of_window): Initialize it.
11660 (Qtty): New extern declaration.
11661 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
11662
11663 2009-06-23 Jim Meyering <meyering@redhat.com>
11664
11665 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
11666 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
11667 pointer dereferences are guaranteed to be valid.
11668
11669 2009-06-23 Kenichi Handa <handa@m17n.org>
11670
11671 * emacs.c (main): Call init_font ().
11672
11673 * font.h (Vfont_log): Extern it.
11674 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
11675
11676 * font.c (font_sort_entities, font_list_entities)
11677 (font_matching_entity, font_open_entity)
11678 (font_close_object): Change font_add_log to FONT_ADD_LOG.
11679 (Vfont_log): Delete static.
11680 (font_log_env_checked): Delete this variable.
11681 (font_add_log): Don't check font_log_env_checked.
11682 (font_deferred_log): Check Vfont_log.
11683 (init_font): New function.
11684
11685 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
11686
11687 * w32font.c: Change font_add_log to FONT_ADD_LOG.
11688
11689 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
11690
11691 * xfont.c: Change font_add_log to FONT_ADD_LOG.
11692
11693 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
11694 (face_for_char): Don't call font_deferred_log here.
11695 (font_for_char): Likewise.
11696
11697 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
11698
11699 * w32term.c (x_draw_glyph_string): Use the glyph string's width
11700 rather than its background_width for drawing the overline and
11701 underline (Bug#489).
11702
11703 * xterm.c (x_draw_glyph_string): Use the glyph string's width
11704 rather than its background_width for drawing the overline and
11705 underline (Bug#489).
11706 (xg_default_icon_file): New variable.
11707 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
11708 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
11709
11710 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
11711 (load_overlay_strings): Remove externs.
11712 (fast_find_position): Function deleted.
11713 (mouse_face_from_buffer_pos): New function, based on
11714 fast_find_position. Correctly handle before-strings,
11715 display-strings, and after-strings (Bug#1220).
11716 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
11717
11718 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11719
11720 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
11721 (move_it_in_display_line_to, move_it_in_display_line_to)
11722 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
11723
11724 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
11725
11726 * Branch for 23.1.
11727
11728 2009-06-21 Jason Rumney <jasonr@gnu.org>
11729
11730 * w32term.c (keyboard_codepage): New static variable.
11731 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
11732 (w32_read_socket) [WM_CHAR]: Use it to decode character
11733 input (bug#3237).
11734 (w32_initialize): Initialize it.
11735 (codepage_for_locale): New function.
11736
11737 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
11738
11739 * process.c (status_message): Pass Faset index argument as a lisp
11740 object, so as to work with USE_LISP_UNION_TYPE.
11741
11742 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11743
11744 * coding.c (Ffind_coding_systems_region_internal):
11745 Cache checked characters.
11746
11747 2009-06-18 Kenichi Handa <handa@m17n.org>
11748
11749 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
11750
11751 2009-06-18 Andreas Schwab <aschwab@redhat.com>
11752
11753 * xdisp.c (redisplay_internal): Check that the frame is still
11754 live after redisplay of its windows.
11755 (redisplay_windows): Check that the window is still live.
11756
11757 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
11758
11759 * coding.c (detect_coding_utf_16): Fix previous change.
11760
11761 2009-06-16 Kenichi Handa <handa@m17n.org>
11762
11763 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
11764 UTF-16 by checking the dispersion of Eth and Oth bytes.
11765
11766 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
11767
11768 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
11769
11770 2009-06-15 Kenichi Handa <handa@m17n.org>
11771
11772 * process.c (status_message): Fix previous change. Be sure to
11773 decode a localized string.
11774
11775 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11776
11777 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
11778 add comment explaining why.
11779
11780 2009-06-14 Sidney Markowitz <sidney@sidney.com>
11781
11782 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
11783
11784 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
11785
11786 * nsfont.m (ns_attribute_value): Remove.
11787 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
11788 (ns_has_attribute): Shrink the normal range.
11789 (ns_findfonts): Don't worry about requested spec in determining
11790 need for synthItal.
11791 (ns_get_covering_families): Retain scriptToFamilies.
11792
11793 2009-06-14 Seiji Zenitani <zenitani@mac.com>
11794
11795 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
11796
11797 2009-06-11 Kenichi Handa <handa@m17n.org>
11798
11799 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11800 overhang for the static composition case.
11801
11802 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11803
11804 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11805 overhang for the automatic composition case.
11806
11807 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11808 composition case.
11809
11810 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
11811
11812 * xdisp.c (get_next_display_element): When handling wrap-prefix
11813 and line-prefix, treat \n as a control character (bug#3502).
11814
11815 2009-06-10 Kenichi Handa <handa@m17n.org>
11816
11817 * font.c (font_parse_family_registry): Fix for one-char foundry.
11818 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11819
11820 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
11821
11822 * process.c (status_message): Fix handling of multibyte signal
11823 string (Bug#3499).
11824
11825 2009-06-09 Jim Meyering <meyering@redhat.com>
11826
11827 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11828 color name is missing.
11829
11830 2009-06-09 Kenichi Handa <handa@m17n.org>
11831
11832 * charset.c (Fmap_charset_chars): In docstring, state clearly that
11833 FROM-CODE and TO-CODE are codepoints of CHARSET.
11834
11835 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11836
11837 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11838
11839 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
11840
11841 Changes to support :script/:lang/:otf in NS font driver.
11842 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11843 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11844 indicate not part of font driver interface, and change callers.
11845 (ns_get_family): Remove pointless null check.
11846 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11847 ns_spec_to_descriptor, ns_descriptor_to_entity.
11848 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11849 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11850 (ns_spec_to_descriptor, ns_descriptor_to_entity)
11851 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11852 (ns_get_req_script, ns_accumulate_script_ranges)
11853 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11854 New functions.
11855 (nsfont_list, nsfont_match): Use ns_findfonts.
11856 (nsfont_open): Use font descriptor instead of traits.
11857 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11858 (dump_glyphstring): Rename to ns_dump_glyphstring.
11859
11860 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11861
11862 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11863
11864 * fontset.c (fontset_from_font): Remove NS-specific code.
11865
11866 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
11867
11868 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11869 nonactive windows.
11870
11871 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
11872
11873 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
11874
11875 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11876
11877 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11878
11879 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
11880
11881 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11882 account for the overflowing of newlines into the last glyph on the
11883 display line (Bug#3482).
11884
11885 2009-06-05 David Reitter <david.reitter@gmail.com>
11886
11887 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11888 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
11889 Fns_selection_exists_p, Fns_selection_owner_p.
11890
11891 2009-06-03 Jason Rumney <jasonr@gnu.org>
11892
11893 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11894 available. (Bug#3379)
11895
11896 2009-05-29 Kenichi Handa <handa@m17n.org>
11897
11898 * coding.c (get_translation_table):
11899 Check Venable_character_translation.
11900
11901 2009-05-26 David Reitter <david.reitter@gmail.com>
11902
11903 * nsterm.m (ns_raise_frame): Only raise frame if visible.
11904 (x_make_frame_visible): Move frame to front rather than calling
11905 ns_raise_frame().
11906 (keyDown:): Do not swallow events that aren't re-sent if frame
11907 isn't key window.
11908 (drawRect:): Do not set visibility/iconified flags because
11909 drawRect may be called by NSView even if the frame is hidden.
11910
11911 * nsfns.m (Fx_create_frame): Follow other ports in
11912 determining visibility; default to t. Ensure async_visible is set.
11913
11914 2009-05-23 Eli Zaretskii <eliz@gnu.org>
11915
11916 * dired.c (Ffile_attributes): Doc fix.
11917
11918 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
11919
11920 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11921
11922 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
11923
11924 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11925 and xfont_scratch_props.
11926 (syms_of_xfont): Do it here instead.
11927 (xfont_find_ccl_program): Delete, unused.
11928 (xfont_open): Delete unused var `i'.
11929
11930 2009-05-21 Kenichi Handa <handa@m17n.org>
11931
11932 * fontset.c (Qlatin): Don't make it static.
11933
11934 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11935 New functions.
11936 (xfont_scripts_cache, xfont_scratch_props): New variables.
11937 (Qlatin, Vscalable_fonts_allowed): Extern it.
11938 (xfont_list_pattern): Argument changed. Callers changed.
11939 Check Vscalable_fonts_allowed. Check the support of a script.
11940 (xfont_list): Don't reject a font spec with :script property.
11941 (xfont_has_char): Fix setting of encoding.
11942 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11943 xfont_scratch_props.
11944
11945 2009-05-19 Kenichi Handa <handa@m17n.org>
11946
11947 * font.c (font_sort_entities): Rename from font_sort_entites.
11948 Callers changed.
11949
11950 2009-05-18 Kenichi Handa <handa@m17n.org>
11951
11952 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11953
11954 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11955
11956 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11957 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11958
11959 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11960
11961 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11962 (x_delete_terminal): Dissociate resource database from display and
11963 then call XrmDestroyDatabase before closing display.
11964
11965 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11966
11967 * nsterm.m (ns_read_socket): Remove unused variable.
11968 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11969 whether selected frame is viable before raising it (based on patch
11970 by David Reitter), and improve commentary.
11971 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
11972
11973 2009-05-15 Kenichi Handa <handa@m17n.org>
11974
11975 * font.c (Ffont_spec): Check arguments.
11976
11977 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
11978
11979 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11980 weight when testing attributes (Bug#3282).
11981
11982 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11983
11984 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11985 what we expect to get in the next ConfigureNotify event.
11986
11987 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11988 before Xft one (Bug#1696).
11989
11990 2009-05-07 David Reitter <david.reitter@gmail.com>
11991
11992 * nsfns.m (Fx_display_planes): Compute bitplanes using
11993 NSBitsPerPixelFromDepth (Bug#3207).
11994
11995 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
11996
11997 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11998
11999 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
12000
12001 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
12002
12003 2009-05-07 David Reitter <david.reitter@gmail.com>
12004
12005 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
12006 Respect mouse face background.
12007
12008 2009-05-07 David Reitter <david.reitter@gmail.com>
12009
12010 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
12011 Mouse movement/highlight: bracket drawing operations
12012 in ns_update_begin and ns_update_end.
12013
12014 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12015
12016 * nsfns.m (ns_get_screen): Rewrite.
12017 Don't presume selected-frame is of type `ns'.
12018
12019 * font.c (font_update_drivers): Sanity fallback to avoid disabling
12020 all drivers.
12021
12022 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
12023
12024 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12025
12026 * keyboard.h (add_user_signal): Fix typo in extern.
12027
12028 * lisp.h (add_user_signal): Remove extern.
12029
12030 * unexelf.c (unexec): Consider a section to precede the .bss section
12031 if its addresses overlap that of .bss.
12032 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
12033 instead of dumping process.
12034
12035 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
12038
12039 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
12040
12041 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
12042
12043 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
12044
12045 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
12046 any statements.
12047
12048 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
12049
12050 * process.c (read_process_output): Make sure the current buffer is
12051 always restored.
12052
12053 * coding.c (record_conversion_result): Don't modify
12054 Vlast_code_conversion_error for successful result.
12055 (alloc_destination): Don't clobber conversion result. (Bug#1650)
12056
12057 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12058
12059 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
12060 (load_charset_map): Remove unnecessary code.
12061
12062 2009-04-30 David Reitter <david.reitter@gmail.com>
12063
12064 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
12065 through f24.
12066
12067 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
12068
12069 * xfaces.c (face_at_buffer_position): New arg base_face_id.
12070
12071 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
12072 face_at_buffer_position.
12073 (face_before_or_after_it_pos, get_next_display_element)
12074 (note_mouse_highlight): Update face_at_buffer_position call.
12075
12076 * term.c (term_mouse_highlight):
12077 * msdos.c (IT_note_mouse_highlight):
12078 * fontset.c (Finternal_char_font):
12079 * font.c (font_at, font_range): Update face_at_buffer_position call.
12080
12081 * dispextern.h (face_at_buffer_position): Update prototype.
12082
12083 2009-04-30 Kenichi Handa <handa@m17n.org>
12084
12085 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
12086
12087 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
12088
12089 * callproc.c (Fcall_process): Fix GC protection. Make sure
12090 current buffer is always restored.
12091
12092 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12093
12094 * atimer.c (init_atimer): Also clear stopped_atimers.
12095
12096 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
12097
12098 * process.c (create_process): Clean up merger residues of
12099 2008-07-17 change.
12100
12101 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
12102
12103 * lread.c (Vread_circle): New variable.
12104 (read1): Disable recursive read if Vread_circle is nil.
12105
12106 2009-04-29 Kenichi Handa <handa@m17n.org>
12107
12108 * fontset.h (set_default_ascii_font): Delete extern.
12109
12110 * fontset.c (set_default_ascii_font): Delete this unused function.
12111
12112 * frame.c (x_set_font): When ARG is a font-object, check if the
12113 font-object matches with the ASCII font-spec of the frame's
12114 fontset. If not, create a new fontset for the frame. (Bug #3075)
12115
12116 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
12117
12118 * fns.c (Flocale_info): Protect vector from GC during decoding.
12119
12120 * process.c (Fstart_process): Protect argv strings from GC during
12121 encoding.
12122
12123 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
12124
12125 * sysdep.c: Include <ctype.h>.
12126
12127 2009-04-27 David Reitter <david.reitter@gmail.com>
12128
12129 * nsfont.m (nsfont_open): Remove unused variable shrink.
12130 Remove commented-out code.
12131
12132 2009-04-26 Johan Bockgård <bojohan@gnu.org>
12133
12134 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12135
12136 2009-04-25 Jason Rumney <jasonr@gnu.org>
12137
12138 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
12139
12140 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12141
12142 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
12143 Swap bytes in short integer if fringe bitmap width > 8.
12144
12145 2009-04-23 Kenichi Handa <handa@m17n.org>
12146
12147 * xfaces.c (Fx_list_fonts): If a font size is specified in
12148 PATTERN, set it in returned scalable fonts.
12149
12150 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
12151
12152 * keyboard.c (Fset_input_meta_mode): Doc fix.
12153
12154 * dispnew.c (Fsend_string_to_terminal): Doc fix.
12155
12156 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
12157
12158 * coding.c (Fterminal_coding_system): Doc fix.
12159
12160 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
12161 (Fx_display_pixel_height, Fx_display_planes)
12162 (Fx_display_color_cells, Fx_server_max_request_size)
12163 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12164 (Fx_display_mm_height, Fx_display_mm_width)
12165 (Fx_display_backing_store, Fx_display_visual_class)
12166 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
12167 Doc fixes, replacing "terminal id" with "terminal object".
12168 (check_x_display_info): Handle terminal objects instead of
12169 terminal ids.
12170
12171 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
12172 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
12173 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
12174 Doc fixes, replacing "terminal id" with "terminal object".
12175
12176 2009-04-21 Kenichi Handa <handa@m17n.org>
12177
12178 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
12179 (font_score): Check AVGWIDTH too.
12180
12181 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
12182 worst case.
12183 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
12184 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
12185
12186 2009-04-19 Jason Rumney <jasonr@gnu.org>
12187
12188 The following changes fix Bug#3005 for wide glyphs on each platform,
12189 without reintroducing Bug#1258 for stretch glyphs.
12190
12191 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
12192 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
12193 get_phys_cursor_geometry.
12194
12195 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
12196 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
12197 using get_phys_cursor_geometry.
12198
12199 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
12200 correctly calculated.
12201
12202 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
12203
12204 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
12205 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
12206 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
12207 is deprecated.
12208
12209 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
12210
12211 * font.c (font_put_frame_data): Use xfree instead of free.
12212
12213 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
12214
12215 * w32font.c (Qja, Qko): Remove declarations.
12216 (syms_of_w32font): Don't DEFSYM them.
12217
12218 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
12219
12220 * font.c (Qja, Qko): Move definitions here from ftfont.c.
12221
12222 * font.h (Qja, Qko): Extern them.
12223
12224 * ftfont.c (Qja, Qko): Remove declarations.
12225
12226 * xfont.c (Qja, Qko): Remove declarations.
12227
12228 2009-04-17 Kenichi Handa <handa@m17n.org>
12229
12230 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
12231 string from a vector to handle Latin-1 characters correctly.
12232
12233 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
12234 entity even if the cache hits.
12235
12236 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
12237
12238 * search.c (boyer_moore): Use zero as marker value for a possible
12239 match instead of depending on overflow behavior. (Bug#2844)
12240
12241 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
12242 * lisp.h: Adjust prototypes.
12243
12244 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
12245
12246 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
12247 change (Bug#3003).
12248
12249 2009-04-16 Kenichi Handa <handa@m17n.org>
12250
12251 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
12252
12253 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
12254 adstyle.
12255
12256 * ftfont.c (Qja, Qko): Don't make them static.
12257 (enum ftfont_cache_for): New enum.
12258 (fc_charset_table): Undo the previous change.
12259 (ftfont_get_latin1_charset): Delete it.
12260 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
12261 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
12262 non-scarable font, try to get AVERAGE_WIDTH.
12263 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
12264 Change ft_face_cache from a list of a hash-table. Don't check
12265 `ja' and `ko' adstyle here.
12266 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
12267 FTFONT_CACHE_FOR_CHARET.
12268 (ftfont_get_charset): Undo the previous change.
12269 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
12270 (ftfont_close): Likewise.
12271 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
12272
12273 * font.c (font_sort_entites): Change the meaning of the arg
12274 BEST-ONLY. Don't optimize for VEC of lenght 1.
12275 (font_select_entity): Just return the value of font_sort_entites.
12276
12277 * xfaces.c (merge_face_vectors): Reflect font properties in
12278 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
12279 font_clear_prop if a face attribute doesn't change.
12280
12281 * charset.h (charset_ksc5601): Extern it.
12282
12283 * charset.c (charset_ksc5601): New variable.
12284 (Fdefine_charset_internal): Set charset_ksc5601.
12285 (init_charset_once): Initialize charset_ksc5601 to -1.
12286
12287 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
12288
12289 * fileio.c (history_delete_duplicates): Remove unused declaration.
12290
12291 * callint.c (history_delete_duplicates): New declaration.
12292 (Fcall_interactively): Remove command history duplicates when
12293 history_delete_duplicates is true.
12294
12295 2009-04-14 Eli Zaretskii <eliz@gnu.org>
12296
12297 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
12298
12299 2009-04-14 Kenichi Handa <handa@m17n.org>
12300
12301 * font.c (Ffont_info): Fix docstring. Fix the second element of
12302 the returned value (bug#2949).
12303
12304 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
12305
12306 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
12307
12308 2009-04-14 Kenichi Handa <handa@m17n.org>
12309
12310 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
12311 encoding charset is ascii_compatible.
12312
12313 * charset.c (Fdefine_charset_internal): Make charset
12314 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
12315 code_offset is 0, and covers all ASCII characters.
12316
12317 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12318
12319 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
12320 (ns_string_to_pasteboard_internal):
12321 * nsmenu.m (process_dialog):
12322 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
12323 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
12324 * lisp.h (Fx_load_color_file): Declare.
12325
12326 2009-04-13 Kenichi Handa <handa@m17n.org>
12327
12328 * font.c (font_delete_unmatched): Preserve the order of list elements.
12329 (font_select_entity): Suppress the code to optimize for the same
12330 kind of fonts.
12331 (font_load_for_lface): Get a font that supports at least ASCII
12332 characters.
12333
12334 * ftfont.c (Qja, Qko): New variables.
12335 (fc_charset_table): Delete uniquifier data for iso8859-1.
12336 (ftfont_get_latin1_charset): New function.
12337 (get_adstyle_property): New function.
12338 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
12339 bitmap fonts.
12340 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
12341 Delete iso-8859-1 range from the charset of fonts whose adstyle is
12342 `ko' or `ja'.
12343 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
12344 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
12345 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
12346 property.
12347 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
12348 (syms_of_ftfont): DEFSYM Qja and Qko.
12349
12350 2009-04-09 Kenichi Handa <handa@m17n.org>
12351
12352 * charset.c (map_charset_chars): For a charset of `superset'
12353 method, fix calculation of code range.
12354
12355 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
12356 from the list of extra properties.
12357 (font_clear_prop): Be sure to delete `:name' font property.
12358
12359 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12360
12361 * dispnew.c (redraw_overlapping_rows): Fix detection of
12362 overlapping for topmost and bottommost rows.
12363
12364 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
12365
12366 2009-04-06 Jason Rumney <jasonr@gnu.org>
12367
12368 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
12369
12370 2009-04-06 Kenichi Handa <handa@m17n.org>
12371
12372 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
12373
12374 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
12375
12376 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12377
12378 * ftfont.c (ftfont_open): Fix checking of the return value of
12379 FT_Load_Char. Fix setting font->underline_thickness.
12380
12381 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
12382
12383 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
12384 (Fterminal_parameters, Fterminal_parameter)
12385 (Fset_terminal_parameter): In doc string, refer to terminal
12386 objects rather than terminal ids.
12387
12388 2009-04-04 Eli Zaretskii <eliz@gnu.org>
12389
12390 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
12391 ret_lim_data. (Bug#2867)
12392
12393 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
12394
12395 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
12396 so they don't get wider than the window, matching 2006-01-23
12397 change to the partner function in xdisp.c (Bug#2800).
12398
12399 2009-04-03 Kenichi Handa <handa@m17n.org>
12400
12401 * print.c (print_object): Make each lowest sub_char_table start a
12402 new line (Bug#2866).
12403
12404 2009-04-02 Kenichi Handa <handa@m17n.org>
12405
12406 * fontset.c (fontset_font): Record no-font when a fontset
12407 explicitly tells not to try another font-specs.
12408
12409 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
12410
12411 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
12412
12413 2009-03-30 Kenichi Handa <handa@m17n.org>
12414
12415 * fontset.c (fontset_from_font): Specify only registry in a
12416 font-spec for all characters supported by that registry.
12417
12418 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
12419 even if HAVE_M17N_FLT is not defined.
12420
12421 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
12422
12423 * ftfont.c: Conditionalize prototyping and use of
12424 ftfont_variation_glyphs.
12425
12426 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12427
12428 * frame.c (delete_frame): Work around compiler bug.
12429
12430 * editfns.c (general_insert_function): Adjust to insdel.c changes.
12431 * insdel.c (prepare_to_modify_buffer, signal_before_change):
12432 Some more EMACS_INT.
12433 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
12434
12435 * xdisp.c (dump_glyph): Fix typo.
12436
12437 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
12438 (adjust_markers_gap_motion, adjust_markers_for_delete)
12439 (adjust_markers_for_insert, adjust_point)
12440 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
12441 (make_gap, copy_text, count_size_as_multibyte, insert)
12442 (insert_and_inherit, insert_before_markers)
12443 (insert_before_markers_and_inherit, insert_1)
12444 (count_combining_before, count_combining_after, insert_1_both)
12445 (insert_from_string, insert_from_string_before_markers)
12446 (insert_from_string_1, insert_from_gap, insert_from_buffer)
12447 (insert_from_buffer_1, adjust_after_replace)
12448 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
12449 (replace_range_2, del_range, del_range_1, del_range_byte)
12450 (del_range_both, del_range_2, modify_region)
12451 (prepare_to_modify_buffer, signal_before_change)
12452 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
12453 for buffer positions and sizes.
12454 * lisp.h: Adjust prototypes accordingly.
12455
12456 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
12457 (non_regular_inserted, non_regular_nbytes, read_non_regular)
12458 (Finsert_file_contents): Use EMACS_INT for buffer positions.
12459
12460 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
12461
12462 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
12463
12464 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
12465 lines and columns so we keep the same pixel height and width.
12466
12467 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
12468 the property _NET_WM_STATE has changed.
12469 (x_handle_net_wm_state): New function to update frame parameter
12470 fullscreen.
12471 (x_term_init): Initialize atoms for _NET_WM_STATE.
12472
12473 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
12474
12475 2009-03-27 Kevin Ryde <user42@zip.com.au>
12476
12477 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
12478 Gpm_GetEvent as an error that justifies closing the filedescriptor.
12479 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
12480 (Fgpm_mouse_stop): Pass that new parameter.
12481 * termhooks.h (close_gpm): Adjust prototype.
12482
12483 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12484
12485 * lisp.h (Fx_focus_frame): Declare.
12486
12487 * callint.c (Fcall_interactively): For '^' just delegate the work to
12488 handle-shift-selection.
12489 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
12490
12491 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
12492
12493 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
12494
12495 * data.c (Qinteractive_form): New variable.
12496 (Finteractive_form): Use it.
12497
12498 * eval.c (Fcommandp): Use Qinteractive_form.
12499
12500 2009-03-24 Jason Rumney <jasonr@gnu.org>
12501
12502 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
12503 Calculate total size precisely. Decode environment variables
12504 before substituting. (Bug#38)
12505
12506 2009-03-24 Kenichi Handa <handa@m17n.org>
12507
12508 * font.c (find_font_encoding): Return Qnil for unsupported
12509 encoding (Bug#2722).
12510
12511 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
12512
12513 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
12514 that gdpy is set.
12515
12516 2009-03-22 Alan Mackenzie <acm@muc.de>
12517
12518 * callint.c (Finteractive): Clarify the doc string - even
12519 promptless elements need \n separators.
12520
12521 2009-03-22 Jason Rumney <jasonr@gnu.org>
12522
12523 * w32term.c (syms_of_w32term): Doc fix for
12524 x-use-underline-position-properties.
12525
12526 2009-03-21 Eli Zaretskii <eliz@gnu.org>
12527
12528 * w32.c (getpwuid): Change argument type to unsigned.
12529 (struct w32_id): Change type of `rid' member to unsigned.
12530 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
12531 argument ID to unsigned. All callers changed.
12532 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
12533
12534 2009-03-20 Eli Zaretskii <eliz@gnu.org>
12535
12536 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
12537 negative, produce a float value.
12538
12539 * dired.c (make_uid, make_gid): New functions.
12540 (Ffile_attributes): Use them to avoid negative UID and GID.
12541
12542 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
12543
12544 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
12545 (syms_of_keyboard) <command-hook-internal, input-method-function>:
12546 Fix typos in docstrings.
12547
12548 2009-03-19 Kenichi Handa <handa@m17n.org>
12549
12550 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
12551 changed, use font_load_for_lface to get a new font object.
12552 Call free_realized_fontset after handling ASCII font change.
12553
12554 * frame.c (x_set_font): Handle the case that ARG is a cons.
12555
12556 2009-03-19 Glenn Morris <rgm@gnu.org>
12557
12558 * fileio.c (Fsubstitute_in_file_name): Doc fix.
12559
12560 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
12561
12562 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
12563
12564 2009-03-19 Kenichi Handa <handa@m17n.org>
12565
12566 * charset.c (load_charset_map_from_file): When a mapfile can't be
12567 loaded, signal an error.
12568
12569 2009-03-18 Eli Zaretskii <eliz@gnu.org>
12570
12571 * dired.c (Ffile_attributes): Make sure UID and GID are always
12572 positive, even if the value is too large for a positive EMACS_INT.
12573 Doc fix.
12574
12575 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
12576
12577 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12578
12579 * xmenu.c (xdialog_show): Move Fredisplay call ...
12580 (Fx_popup_dialog): ... here.
12581
12582 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
12583
12584 * dired.c (file_name_completion): Disable the first optimization just
12585 installed, since it is not implemented correctly.
12586
12587 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12588
12589 * dired.c (file_name_completion): Check completion-ignored-extensions
12590 only if the entry can affect bestmatch.
12591 Stop the search early, as Ftry_completion already does.
12592
12593 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
12594
12595 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
12596
12597 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
12598
12599 * keyboard.c (parse_menu_item): Don't display remappings as menu
12600 equivalent bindings (Bug#788).
12601
12602 2009-03-15 Jason Rumney <jasonr@gnu.org>
12603
12604 * w32term.h (WM_EMACS_PAINT): New message.
12605 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
12606 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
12607 before passing to lisp thread. (Bug#950)
12608
12609 2009-03-14 David Reitter <david.reitter@gmail.com>
12610
12611 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
12612 variable as it was never reset.
12613 (ns_term_init): Remove initialization of Lisp-settable defaults
12614 and ns_expand_space.
12615 (-setPanelFromDefaultValues): Remove ns_expand_space.
12616 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
12617 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
12618 i.e. no additional spacing, similar to Carbon port.
12619
12620 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
12621 * nsfns.m (ns-popup-prefs-panel): Remove.
12622
12623 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
12624
12625 * sound.c (alsa_configure): Remove call to deprecated
12626 snd_pcm_sw_params_set_xfer_align.
12627
12628 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
12629
12630 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
12631 after clicking in a detached tool bar.
12632 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
12633
12634 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
12637 int/Lisp_Object mixup).
12638
12639 2009-03-13 Kenichi Handa <handa@m17n.org>
12640
12641 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
12642 Handle NAME nil and t correctly. Callers changed.
12643 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
12644 (set_fontset_font): Change ARG to a vector. Handle range_list in
12645 ARG correctly.
12646 (Fset_fontset_font): Fix the case that TARGET is both a script
12647 name and charset name. Adjust the arg to set_fontset_font for
12648 the above change.
12649 (fontset_from_font): Fix previous change.
12650 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
12651 entry. If FONTSET is the default fontset, don't set the extra
12652 slot of the returning char-table.
12653
12654 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
12655
12656 * nsfns.m (Fx_close_connection): Doc fix.
12657 (Fns_do_applescript): Reflow docstring.
12658 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
12659 (Fx_display_pixel_width, Fx_display_pixel_height)
12660 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
12661 Fix typos in docstrings.
12662 (Fns_set_alpha): Fix typos in error messages.
12663
12664 2009-03-12 David Reitter <david.reitter@gmail.com>
12665
12666 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
12667 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
12668 were used for such events.
12669
12670 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
12671 (toggleToolbar, performDragOperation, runHelp): Use it.
12672
12673 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
12674 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
12675
12676 2009-03-11 Kenichi Handa <handa@m17n.org>
12677
12678 * font.h (font_open_by_spec): Extern it.
12679
12680 * font.c (font_open_by_spec): New function.
12681 (font_open_by_name): Use font_open_by_spec.
12682
12683 * frame.c (x_set_font): When ARG is a font-object, don't alter the
12684 fontset of the frame.
12685
12686 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
12687 modify the default font of frames that use this fontset.
12688 (num_auto_fontsets): New variable.
12689 (fontset_from_font): Use num_auto_fontsets to decide a fontset
12690 name. Be sure to set FONTSET_ASCII to the correct font name.
12691 (update_auto_fontset_alist): New function.
12692
12693 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
12694
12695 * makefile.w32-in: Update dependencies.
12696
12697 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12698
12699 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
12700
12701 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12702
12703 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
12704
12705 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
12706
12707 * lread.c (Feval_buffer): Doc fix.
12708
12709 2009-03-09 Kenichi Handa <handa@m17n.org>
12710
12711 * charset.c (Qfile_name_handler_alist): Extern it.
12712 (load_charset_map_from_file): Temporarily bind
12713 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
12714
12715 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
12716
12717 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
12718 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
12719
12720 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12721
12722 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
12723 (x_set_window_size): Change back to calculated method of setting
12724 toolbar height under Cocoa. (Bug#2546)
12725 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
12726 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
12727
12728 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
12729
12730 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
12731 accelerator in parens under GNUstep.
12732
12733 2009-03-06 Kenichi Handa <handa@m17n.org>
12734
12735 These changes are to detect incorrect composition sequence without
12736 looking ahead the source. (Bug#2370)
12737
12738 * coding.h: Include "composite.h".
12739 (enum compisition_state): New enum.
12740 (struct compisition_status): New struct.
12741 (struct iso_2022_spec): New member cmp_status.
12742 (struct emacs_mule_spec): New struct.
12743 (struct coding_system): New members ctext_extended_segment_len and
12744 embedded_utf_8. Change the union member
12745 spec.emacs_mule_full_support to spec.emacs_mule.
12746
12747 * coding.c (CODING_ISO_CMP_STATUS): New macro.
12748 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
12749 (MAX_ANNOTATION_LENGTH): Define to 5.
12750 (ADD_COMPOSITION_DATA): New arg nbytes.
12751 (emacs_mule_char): New arg cmp_status.
12752 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
12753 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
12754 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
12755 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
12756 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
12757 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
12758 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
12759 (EMACS_MULE_COMPOSITION_END): New macro.
12760 (emacs_mule_finish_composition): New function.
12761 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
12762 (decode_coding_emacs_mule): Avoid long looking ahead while
12763 handling composition.
12764 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
12765 (ENCODE_COMPOSITION_RULE): New macro.
12766 (finish_composition): New function.
12767 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
12768 (DECODE_COMPOSITION_START): New implementation.
12769 (DECODE_COMPOSITION_END): Likewise.
12770 (STORE_COMPOSITION_RULE): New macro.
12771 (decode_coding_iso_2022): Avoid long looking ahead while handling
12772 composition, CTEXT extended segment, and embedded UTF-8.
12773 (setup_coding_system): For a coding of type iso-2022, reset
12774 CODING_ISO_EXTSEGMENT_LEN (coding) and
12775 CODING_ISO_EMBEDDED_UTF_8 (coding).
12776 (get_translation): Delete arguments last_block, from_nchars,
12777 to_nchars. Callers changed.
12778 (produce_chars): Don't modify charbuf. Adjusted for the change of
12779 get_translation.
12780 (produce_composition): Adjust for the new annotation sequence.
12781 (handle_composition_annotation): Likewise.
12782 (consume_chars): Adjust for the change of get_translation.
12783
12784 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
12785
12786 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
12787
12788 2009-03-05 Kenichi Handa <handa@m17n.org>
12789
12790 * font.c (font_select_entity): New function.
12791 (font_find_for_lface): Use font_select_entity to select a font.
12792
12793 * fontset.c (fontset_find_font): If a font found without
12794 restricting to the characters C doesn't support C, try to find a
12795 font with C restriction.
12796
12797 2009-03-04 Nikolaj Schumacher <me@nschum.de>
12798
12799 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
12800
12801 2009-03-04 Jason Rumney <jasonr@gnu.org>
12802
12803 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12804 characters that have already been read. (Bug#2569)
12805
12806 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12807 Log an error message if check_image_size failed.
12808 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12809 (gs_load): Mention max-image-size in size error message. (Bug#2560)
12810
12811 2009-03-02 Eli Zaretskii <eliz@gnu.org>
12812
12813 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12814 when decoding process output.
12815
12816 2009-03-01 Richard M Stallman <rms@gnu.org>
12817
12818 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12819
12820 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12821
12822 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12823
12824 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12825 (decode_coding_emacs_mule, decode_coding_iso_2022)
12826 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12827 (decode_coding_raw_text, decode_coding_charset)
12828 (setup_coding_system, decode_eol, decode_coding, consume_chars):
12829 Honor inhibit-eol-conversion. (Bug #2186)
12830
12831 2009-02-28 Jason Rumney <jasonr@gnu.org>
12832
12833 * coding.c (detect_coding_charset): If not checking latin extra,
12834 fail on characters between 0x80 and 0xA0. (Bug#2354)
12835
12836 2009-02-28 Eli Zaretskii <eliz@gnu.org>
12837
12838 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
12839 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
12840
12841 2009-02-27 Glenn Morris <rgm@gnu.org>
12842
12843 * callint.c (Finteractive): Doc fix.
12844
12845 2009-02-27 Kenichi Handa <handa@m17n.org>
12846
12847 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12848
12849 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
12850
12851 * font.c (font_style_to_value): Set value for unknown symbols to
12852 100 instead of 255.
12853 (weight_table, slant_table, width_table): Treat "unspecified" as
12854 the default value.
12855
12856 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
12857
12858 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12859
12860 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
12861
12862 * lread.c (Fload): Stop checking Vloads_in_progress and signal
12863 error as soon as a recursive load is detected.
12864
12865 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12866
12867 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12868 before caching.
12869
12870 2009-02-24 Kenichi Handa <handa@m17n.org>
12871
12872 * fontset.c (fontset_find_font): Fix the condition for checking
12873 unavailable font.
12874
12875 2009-02-24 Glenn Morris <rgm@gnu.org>
12876
12877 * xfaces.c (Finternal_set_font_selection_order): Remove leading
12878 whitespace that confuses documentation.
12879
12880 2009-02-23 Miles Bader <miles@gnu.org>
12881
12882 * process.c (Flist_system_processes, Fprocess_attributes)
12883 (syms_of_process): Rename `system-process-attributes' to
12884 `process-attributes'.
12885
12886 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
12887
12888 * coding.h (struct coding_system): Make safe_charsets a pointer to
12889 unsigned char.
12890 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12891 being 255.
12892 (SAFE_CHARSET_P): Likewise.
12893 (setup_iso_safe_charsets): Properly setup safe_charsets.
12894 (Fdefine_coding_system_internal): Likewise.
12895 (setup_coding_system): Likewise. Remove unneeded casts.
12896 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
12897 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12898 Remove unneeded casts.
12899
12900 * insdel.c (del_range_2): Don't modify gap contents when called
12901 from decode_coding_object. (Bug#1809)
12902
12903 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
12904
12905 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12906 Qfont_object.
12907 (Ftype_of): Recognize font objects.
12908
12909 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12910
12911 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12912 Definitions moved to data.c.
12913
12914 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12915
12916 * nsterm.m (x_make_frame_invisible): Unset async_visible,
12917 async_iconified. Based on a patch by Christian Lynbech
12918 <christian.lynbech@tieto.com>.
12919 (EmacsView-windowDidMiniaturize:): Unset async_visible.
12920
12921 2009-02-20 Glenn Morris <rgm@gnu.org>
12922
12923 * syntax.c (Fskip_chars_forward): Fix doc typo.
12924
12925 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
12926
12927 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12928
12929 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
12930
12931 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12932
12933 2009-02-19 Kenichi Handa <handa@m17n.org>
12934
12935 * coding.c (detect_coding): Preserve coding->mode.
12936 Don't overflow coding->carryover. (Bug#2370)
12937
12938 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
12939
12940 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12941
12942 2009-02-18 Kenichi Handa <handa@m17n.org>
12943
12944 * font.c (font_check_otf_features): Fix handling of `nil' element.
12945 (Ffont_spec): Describe :lang and :otf in the docstring.
12946
12947 2009-02-16 Andreas Schwab <schwab@suse.de>
12948
12949 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12950 string.
12951
12952 2009-02-16 Kenichi Handa <handa@m17n.org>
12953
12954 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
12955 (Bug#1723)
12956
12957 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
12958
12959 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
12960
12961 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12962 (handle_line_prefix): Suppress wrapping of wrap prefixes.
12963
12964 2009-02-14 Eli Zaretskii <eliz@gnu.org>
12965
12966 * msdos.c (MAX_SCREEN_BUF): New macro.
12967 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12968 Encode the entire run of glyphs sharing the same face, instead of
12969 doing that one glyph at a time (fixes a bug with displaying
12970 double-size characters).
12971
12972 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
12973
12974 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12975
12976 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12977 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
12978 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
12979
12980 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
12981 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
12982
12983 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12984
12985 * keyboard.c (adjust_point_for_property): Allow stopping between two
12986 invisible areas.
12987
12988 2009-02-12 Jason Rumney <jasonr@gnu.org>
12989
12990 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
12991 (add_font_entity_to_list): Call check_face_name even when family
12992 is unspecified.
12993
12994 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12995 Release DC when finished. Use NULL window to refer to desktop.
12996 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
12997
12998 * w32font.c (add_font_entity_to_list): Fix check for substituted
12999 raster fonts. (Bug#2219)
13000
13001 2009-02-12 Kenichi Handa <handa@m17n.org>
13002
13003 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
13004 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
13005 (autocmp_chars): Use fast_looking_at. Don't compose more
13006 characters than MAX_COMPOSITION_COMPONENTS.
13007 (find_automatic_composition): While looking forward and backward,
13008 check static composition. Fix where to stop looking forward.
13009 (composition_adjust_point): Fix checking of static composition.
13010 (Fcomposition_get_gstring): Pay attention to
13011 MAX_COMPOSITION_COMPONENTS.
13012
13013 * lisp.h (fast_looking_at): Extern it.
13014
13015 * search.c (fast_looking_at): New function.
13016
13017 * term.c (encode_terminal_code): Adjust for the change of
13018 <struct glyph>.u.cmp.to.
13019 (append_composite_glyph): Likewise.
13020
13021 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
13022 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
13023 composition.
13024 (append_composite_glyph): Adjust for the change of
13025 <strcut glyph>.u.cmp.to.
13026
13027 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
13028
13029 * casetab.c (init_casetab_once):
13030 * coding.c (ALLOC_CONVERSION_WORK_AREA):
13031 * font.c (font_update_lface):
13032 * fontset.c (Fnew_fontset):
13033 * ftfont.c (ftfont_drive_otf):
13034 * xfont.c (xfont_open):
13035 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
13036
13037 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * fileio.c (Fwrite_region): !NILP -> CONSP.
13040
13041 2009-02-10 Andreas Schwab <schwab@suse.de>
13042
13043 * process.c (send_process): Properly relocate pointer into data
13044 when using encoded data. (Bug#2272)
13045
13046 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
13047
13048 * coding.c (detect_coding_charset): Fix previous change.
13049
13050 2009-02-08 Jason Rumney <jasonr@gnu.org>
13051
13052 * w32fns.c (w32_hide_hourglass): Handle case where frame
13053 disappeared while hourglass was displayed. (Bug #2193)
13054
13055 2009-02-07 Andreas Schwab <schwab@suse.de>
13056
13057 * unexelf.c (unexec): Fix error message.
13058
13059 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
13060
13061 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
13062 when modal window is active. (Bug #2152)
13063 (applicationShouldTerminate:): Remove now-unneeded while loop
13064 around NSRunAlertPanel.
13065
13066 * nsmenu.m (popupSession): New file-global variable.
13067 (pop_down_menu): End the popupSession before closing dialog.
13068 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
13069 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
13070 don't query NSApp for events (just sleep instead).
13071
13072 2009-02-07 Eli Zaretskii <eliz@gnu.org>
13073
13074 * coding.c (syms_of_coding) <translation-table-for-input>:
13075 Modify doc string to discourage use for character code unification.
13076
13077 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13078
13079 * atimer.c (run_timers): Update pending_atimers.
13080
13081 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
13082
13083 * image.c (svg_load_image): Fix last change.
13084
13085 * xfns.c (Fx_create_frame): Signal an error if no font is
13086 found (Bug#2147).
13087
13088 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
13089
13090 * character.c (syms_of_character) <script-representative-chars>:
13091 Fix typo in docstring.
13092
13093 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13094
13095 * nsmenu.m (pop_down_menu): New function.
13096 (ns_popup_dialog): Call it on unwind.
13097 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
13098 call timer_check() (Bug#2154).
13099 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
13100 handling_signal is set.
13101 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
13102
13103 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
13104
13105 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
13106
13107 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
13108
13109 * keyboard.c (poll_for_input_1, handle_async_input):
13110 Set handling_signal under HAVE_NS.
13111
13112 2009-02-04 Glenn Morris <rgm@gnu.org>
13113
13114 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
13115
13116 2009-02-04 Kenichi Handa <handa@m17n.org>
13117
13118 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
13119
13120 * charset.c (Fchar_charset): New optional arg restriction.
13121
13122 * coding.h (coding_system_charset_list): Extern it.
13123
13124 * coding.c (coding_system_charset_list): New function.
13125
13126 * composite.c: Include coding.h and termhooks.h.
13127 (composition_gstring_p): Fix for the terminal case.
13128 (composition_gstring_width): Likewise.
13129 (fill_gstring_body): Likewise.
13130 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
13131 the frame.
13132 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
13133 is within a composition.
13134 (Fcomposition_get_gstring): Fix the terminal case.
13135
13136 * term.c (encode_terminal_code): Fix handling of composition.
13137 (produce_composite_glyph): For static composition, get pixel_width
13138 from struct composition.
13139
13140 2009-02-02 Andreas Schwab <schwab@suse.de>
13141
13142 * unexelf.c (unexec): Handle unaligned bss offset.
13143
13144 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13145
13146 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
13147 XT,w32read_socket changes to ns_read_socket.
13148
13149 * keyboard.c (handle_interrupt): Don't call
13150 quit_throw_to_read_char() under NS.
13151
13152 * blockinput.h: Remove NS-specific code.
13153
13154 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
13155
13156 * dispnew.c (window_change_signal): Don't try to get the size of a
13157 suspended tty frame.
13158 * term.c (Fresume_tty): Resize if the size has changed while the
13159 tty was suspended.
13160
13161 * alloc.c (mark_stack): Properly conditionalize previous change.
13162
13163 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13164
13165 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
13166 * w32term.c (w32_read_socket) [SYNC_INPUT]:
13167 Remove; this code is not used on Windows.
13168
13169 2009-01-30 Eli Zaretskii <eliz@gnu.org>
13170
13171 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
13172 EOLs that also has stray ^M characters.
13173
13174 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
13175
13176 * atimer.c (run_timers, alarm_signal_handler):
13177 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
13178 * w32inevt.c (w32_console_read_socket):
13179 * w32term.c (w32_read_socket):
13180 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
13181
13182 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
13183
13184 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
13185 Initialize it as a relative filename pattern.
13186 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
13187 (Fcall_process_region): Simplify temp file creation using
13188 temporary-file-directory.
13189
13190 2009-01-29 Eli Zaretskii <eliz@gnu.org>
13191
13192 * msdos.c: Rename pending_signals to msdos_pending_signals.
13193 (sig_suspender, sigprocmask): Adjust.
13194
13195 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
13196
13197 * keyboard.c (pending_signals): New var.
13198 (poll_for_input, input_available_signal, init_keyboard): Set it.
13199 (process_pending_signals): New function.
13200
13201 * lisp.h (QUIT): Check pending_signals instead of
13202 interrupt_input_pending. Use process_pending_signals.
13203
13204 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
13205
13206 * process.c (wait_reading_process_output): Use process_pending_signals.
13207
13208 * sysdep.c (emacs_write): Use process_pending_signals.
13209
13210 * xterm.c (XTread_socket): Update pending_signals.
13211
13212 * w32term.c (w32_read_socket): Update pending_signals.
13213
13214 * w32inevt.c (w32_console_read_socket): Update pending_signals.
13215
13216 2009-01-29 Kenichi Handa <handa@m17n.org>
13217
13218 * xftfont.c (xftfont_has_char): New function.
13219 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
13220
13221 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13222
13223 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
13224 under GNUstep.
13225 (ns_query_color): New declaration.
13226
13227 * nsterm.m (ns_confirm_quit): New variable.
13228 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
13229 (EmacsApp-applicationShouldTerminate:): Use it.
13230 (EmacsPrefsController): Let user set it.
13231 (ns_query_color): New function.
13232 (ns_defined_color): Use it.
13233 (ns_initialize): Drop.
13234 (ns_term_init): Add two lines from ns_initialize(), and set
13235 input_interrupt_mode to nil.
13236
13237 * image.c (svg_load_image): Don't right-shift background RGB when
13238 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
13239
13240 2009-01-28 Kenichi Handa <handa@m17n.org>
13241
13242 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13243 (fontset_get_font_group): Remember that no font-group is specified
13244 for C.
13245
13246 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
13247
13248 * fns.c (concat): Check for string overflow (bug#1787).
13249
13250 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
13251 Quadruple undo limits (bug#1501).
13252
13253 2009-01-27 Kenichi Handa <handa@m17n.org>
13254
13255 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
13256 directly use GT_Get_Char_index.
13257
13258 * xftfont.c (struct xftfont_info): New member `index'.
13259
13260 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
13261 (Ffontset_font): Adjust for the change of fontset entry.
13262
13263 2009-01-26 Kenichi Handa <handa@m17n.org>
13264
13265 * fontset.c (fontset_find_font): Fix handling of non-cons return
13266 value of fontset_get_font_group.
13267 (fontset_font): Revert last change.
13268
13269 2009-01-26 Jason Rumney <jasonr@gnu.org>
13270
13271 * w32font.c (w32font_list_internal): Return quickly if registry is
13272 unknown. Simplify final return.
13273 (add_font_entity_to_list): Break complex logic down into more
13274 manageable chunks. Move unknown registry check to
13275 w32font_list_internal.
13276
13277 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
13278
13279 Changes to remove Feval calls from GUI under NS.
13280
13281 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
13282 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
13283 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
13284
13285 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
13286 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
13287 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
13288 instead of NON_ASCII_KEYSTROKE_EVENT.
13289 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
13290 (EmacsApp-applicationShouldTerminate:): Query user.
13291 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
13292 instead of Feval.
13293
13294 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
13295
13296 * keyboard.c (kbd_buffer_get_event): Check for it.
13297 (keys_of_keyboard): Define lispy keys for
13298 ns-put/unput-working-text.
13299
13300 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
13301 versions.
13302 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
13303
13304 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
13305
13306 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
13307 setting current_buffer directly. (Bug#2044)
13308
13309 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
13310
13311 * fontset.c (fontset_font): If we know there is no font, don't do
13312 any work. (Bug#1952, bug#1990).
13313
13314 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
13315
13316 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13317
13318 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
13319 (ns_no_defaults): New declaration.
13320 (main): Use it.
13321
13322 * nsterm.h (ns_no_defaults): New declaration.
13323
13324 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
13325
13326 * nsterm.m (ns_no_defaults): New variable.
13327 (ns_initialize): Don't read defaults when ns_no_defaults.
13328 (EmacsView-readSelectionFromPasteboard:)
13329 (writeSelectionToPasteboard:types:): New stubbed-out methods for
13330 NSServicesRequests protocol. (Bug#1435)
13331 (ns_dumpglyphs_stretch): New function.
13332 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
13333 of 2008-11-15 to other terms. (Bug#615)
13334
13335 * nsimage.m (setPixmapData:): Set to ignore image DPI.
13336
13337 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
13338
13339 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
13340 call for Sparc64.
13341
13342 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13343
13344 * nsfns.m:
13345 * nsgui.h:
13346 * nsmenu.m:
13347 * nsselect.m:
13348 * nsterm.h:
13349 * nsterm.m: Remove '23' comments that indicated code added during
13350 update from emacs-20 -> emacs-23.
13351
13352 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13353
13354 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
13355 ns_alternate_modifier. (Bug#1217)
13356
13357 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
13358 Display all shortcuts, including those w/o super modifier.
13359
13360 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
13361
13362 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
13363
13364 * fileio.c (Vwrite_region_post_annotation_function)
13365 (Vwrite_region_annotation_buffers): New vars.
13366 (build_annotations_unwind): Just reset
13367 Vwrite_region_annotation_buffers.
13368 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
13369 Call write-region-post-annotation-function.
13370 (build_annotations): Add to Vwrite_region_annotation_buffers if
13371 buffer changes.
13372
13373 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13374
13375 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
13376 Tiger.
13377 * nsfns.m (ns_do_applescript):
13378 Conditionalize typeUTF16ExternalRepresentation on Tiger.
13379
13380 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
13381
13382 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
13383
13384 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13385
13386 * nsmenu.m (NSMENUPROFILE): Change #if style.
13387
13388 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
13389
13390 * nsterm.m (x_set_frame_alpha): Add prototype.
13391 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
13392 handle Ctrl-tab. (Bug#1841)
13393 (ns_get_color): Use unsigned long long for scanned hex string value.
13394 (ns_term_shutdown): Abort on non SIGTERM signals.
13395 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
13396 (EmacsPrefsController-setPanelFromDefaultValues): New function.
13397 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
13398 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
13399 (ns_defined_color): Fix settings of the XColor variable fields:
13400 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
13401
13402 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
13403 DPI. (Bug#1316)
13404 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
13405 values in onTiger section.
13406
13407 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
13408
13409 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
13410 Check return value of font_spec_from_name.
13411 (Fx_list_fonts): Doc fix. (Bug#1951)
13412
13413 * font.c (font_spec_from_name): Return Qnil if font name could not
13414 be parsed.
13415 (font_parse_name): Treat a `?' character as part of an XLFD.
13416
13417 * fns.c (Fsubstring): Doc fix.
13418
13419 2009-01-19 Kenichi Handa <handa@m17n.org>
13420
13421 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
13422 (ftfont_list): Likewise.
13423
13424 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
13425
13426 * dbusbind.c (Fdbus_register_signal):
13427 * process.c (conv_sockaddr_to_lisp):
13428 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
13429
13430 * callproc.c (Fgetenv_internal): Doc fix.
13431
13432 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
13433
13434 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
13435 it is not even used.
13436
13437 2009-01-16 Glenn Morris <rgm@gnu.org>
13438
13439 * font.c (Ffont_variation_glyphs): Silence compiler.
13440
13441 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
13442
13443 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
13444 Reported by David Robinow <drobinow@gmail.com>.
13445
13446 2009-01-15 Kenichi Handa <handa@m17n.org>
13447
13448 * coding.c (detect_coding_system): Fix handling of null_byte_found.
13449
13450 2009-01-14 Jason Rumney <jasonr@gnu.org>
13451
13452 * frame.c (x_set_font): Always store a font to the font parameter,
13453 never a fontset. (Bug#1562)
13454
13455 2009-01-14 Kenichi Handa <handa@m17n.org>
13456
13457 * coding.c (TWO_MORE_BYTES): New macro.
13458 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
13459
13460 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
13461
13462 * font.c (font_clear_prop): If clearing the family, clear the font
13463 width index too.
13464
13465 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
13466
13467 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
13468
13469 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
13470 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
13471 functions, use sizeof.
13472
13473 2009-01-12 Martin Rudalics <rudalics@gmx.at>
13474
13475 * keyboard.c (read_char): Fix case where last_nonmenu_event
13476 returned a bad value with submenus. (Bug#447)
13477
13478 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
13479
13480 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
13481 family, clear the font width index too.
13482
13483 2009-01-11 Jason Rumney <jasonr@gnu.org>
13484
13485 * keyboard.c (cmd_error_internal): Exit when errors occur before
13486 frame creation and not in daemon mode. (Bug#1836)
13487
13488 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
13489
13490 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
13491 of a display vector, backtrack.
13492 (try_window_reusing_current_matrix): Check glyph type before
13493 referencing charpos member.
13494
13495 2009-01-10 Eli Zaretskii <eliz@gnu.org>
13496
13497 Fix Bug #876:
13498
13499 * coding.c (inhibit_null_byte_detection): New variable.
13500 (detect_coding, detect_coding_system): Don't pay attention to null
13501 bytes if inhibit_null_byte_detection is non-zero.
13502 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
13503 <inhibit-iso-escape-detection>: Doc fix.
13504
13505 2009-01-09 Jason Rumney <jasonr@gnu.org>
13506
13507 * w32font.c (add_font_entity_to_list): Don't report unknown
13508 Windows charset as any unrecognized registry. (Bug#1548)
13509 Only report Unicode Plane 2 fonts as unicode-sip.
13510
13511 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
13512
13513 * xfaces.c (Fx_font_family_list): Delete function.
13514 Move compatibility version to faces.el.
13515
13516 * font.c (Ffont_family_list): Return a list of strings, not symbols.
13517
13518 2009-01-09 Martin Rudalics <rudalics@gmx.at>
13519
13520 * frame.c (x_set_frame_parameters): Remember requested value for
13521 fullscreen before it's reset by the parameter handler.
13522
13523 2009-01-09 Glenn Morris <rgm@gnu.org>
13524
13525 * keyboard.c (last_command_char): For clarity, rename to...
13526 (last_command_event): ... and update all users.
13527 (last_input_char): For clarity, rename to...
13528 (last_input_event): ... and update all users.
13529 (last-command-char, last-input-char): Move to subr.el as aliases.
13530 * cmds.c, commands.h: Update for last_command_char rename.
13531
13532 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
13533
13534 * font.c (font_open_for_lface): Handle unspecified height attribute.
13535
13536 2009-01-08 Jason Rumney <jasonr@gnu.org>
13537
13538 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
13539 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
13540 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
13541 Don't declare.
13542 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
13543 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
13544
13545 2009-01-07 Kenichi Handa <handa@m17n.org>
13546
13547 * fileio.c (Finsert_file_contents): In the case of replace,
13548 remember the coding system used for decoding in
13549 coding_system (Bug#1039).
13550
13551 * coding.c (decode_coding_utf_8): Check byte_after_cr before
13552 breaking the loop. (Bug#870)
13553 (decode_coding_utf_16, decode_coding_emacs_mule)
13554 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13555 (decode_coding_charset): Likewise.
13556
13557 2009-01-05 Martin Rudalics <rudalics@gmx.at>
13558
13559 * frame.c (x_set_frame_parameters): Make sure height (width) get
13560 applied when fullwidth (fullheight) is set. (Bug#1522)
13561
13562 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
13563
13564 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
13565 (utc_base): Declare as ULONGLONG, not long double.
13566 (convert_time_raw): Delete.
13567 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
13568 (initialize_utc_base): New function.
13569 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
13570 (convert_from_time_t): Use initialize_utc_base; compute result with
13571 64-bit arithmetic.
13572 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
13573
13574 2009-01-03 Eli Zaretskii <eliz@gnu.org>
13575
13576 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
13577 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
13578 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
13579 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
13580 [!subprocesses]: Define.
13581 (syms_of_process) [!subprocesses]: Intern and staticpro them.
13582 (Flist_system_processes, Fsystem_process_attributes)
13583 [!subprocesses]: Call list_system_processes and
13584 system_process_attributes instead of returning Qnil.
13585
13586 * dosfns.c (system_process_attributes, list_system_processes):
13587 New functions.
13588
13589 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
13590
13591 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
13592 Don't use the default (no-op) implementation.
13593
13594 2009-01-03 Jason Rumney <jasonr@gnu.org>
13595
13596 * keyboard.c (parse_modifiers_uncached): Wheel events are
13597 clicks (bug#687).
13598
13599 * w32term.c (x_query_colors, x_query_color): New functions.
13600
13601 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
13602 (svg_load_image): Cast returned pointers from dynamically loaded
13603 functions. Eliminate W32 specific code.
13604
13605 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
13606
13607 * nsfns.m (x_set_foreground_color, x_set_background_color)
13608 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
13609 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
13610 x_ prefix instead of ns_. Update references.
13611 (syms_of_nsfns): Add a FIXME comment.
13612
13613 * nsterm.m (x_set_cursor_type): New prototype.
13614 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
13615
13616 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
13617 for Solaris instead of incorrectly providing Qutime and Qcutime.
13618
13619 2009-01-02 Eli Zaretskii <eliz@gnu.org>
13620
13621 * w32.c (process_times): Compute sum of utime and stime.
13622 (system_process_attributes): Add Qtime to the alist.
13623
13624 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
13625 and add them to the alist.
13626
13627 * process.c (top level) <Qtime, Qctime>: New variables.
13628 (syms_of_process): staticpro them.
13629 (Fsystem_process_attributes): Add their documentation to the doc
13630 string.
13631
13632 * process.h: Declare Qtime and Qctime.
13633
13634 2009-01-02 Jason Rumney <jasonr@gnu.org>
13635
13636 * image.c (Qgobject): New symbol.
13637 (syms_of_image): Initialize it.
13638 (init_svg_functions): Load some functions from gobject library.
13639
13640 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
13641
13642 * frame.c (make_terminal_frame): Remove redundant code and useless
13643 block.
13644
13645 2009-01-01 Andreas Schwab <schwab@suse.de>
13646
13647 * process.c (conv_sockaddr_to_lisp): Add workaround for
13648 getsockname bug on BSD.
13649
13650 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
13651
13652 * xfns.c (x_create_tip_frame): Set border width of the X window.
13653
13654 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
13655
13656 2009-01-01 Jason Rumney <jasonr@gnu.org>
13657
13658 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
13659 Don't block input, as per earlier xterm.c changes.
13660
13661 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
13662
13663 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
13664 (ns_appkit_version_int): New function.
13665 (x-server-version): Use ns_appkit_version_int and follow 21+
13666 convention of returning 3 integers.
13667
13668 2008-12-30 Kenichi Handa <handa@m17n.org>
13669
13670 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
13671 (CHAR_SURROGATE_PAIR_P): New macro.
13672
13673 * font.h (struct font_driver): New member get_variation_glyphs.
13674
13675 * font.c (font_range): Don't require a font for a variation selector.
13676 (Ffont_variation_glyphs): New function.
13677 (syms_of_font): Defsubr it.
13678
13679 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
13680 ftfont_variation_glyphs.
13681 (setup_otf_gstring): New function.
13682 (ftfont_drive_otf): Use it.
13683 (ftfont_shape_by_flt): Handle variation selector.
13684 (ftfont_variation_glyphs): New function.
13685
13686 2008-12-30 Martin Rudalics <rudalics@gmx.at>
13687
13688 * frame.c (Vemacs_iconified): Remove.
13689
13690 2008-12-30 Jason Rumney <jasonr@gnu.org>
13691
13692 * frame.c (store_frame_param, x_get_arg): Enable newer code on
13693 WINDOWSNT too, as related changes have already been synced. (Bug#117)
13694
13695 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
13696
13697 * indent.c (Fvertical_motion): Don't advance iterator if we have
13698 reseated to the desired position.
13699
13700 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
13701 checking for pos match.
13702
13703 2008-12-30 Kenichi Handa <handa@m17n.org>
13704
13705 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
13706 just get the low 8-bit of the code.
13707
13708 * font.c (font_intern_prop): Validate str as multibyte.
13709
13710 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13711
13712 * dispextern.h (struct face): Move lface and hash from the middle
13713 of bitfields.
13714
13715 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
13716
13717 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
13718
13719 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
13720 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
13721 instead of intervals.h.
13722
13723 2008-12-26 Andreas Schwab <schwab@suse.de>
13724
13725 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
13726 cons.
13727
13728 2008-12-26 Martin Rudalics <rudalics@gmx.at>
13729
13730 * textprop.c (Qminibuffer_prompt): New variable.
13731 (syms_of_textprop): Initialize it.
13732 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
13733 in minibuffer-prompt face. (Bug#1662)
13734
13735 2008-12-25 Jason Rumney <jasonr@gnu.org>
13736
13737 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
13738
13739 2008-12-24 Jason Rumney <jasonr@gnu.org>
13740
13741 * ralloc.c (r_alloc_reset_variable): New function.
13742
13743 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
13744 record of what points where. (Bug#716)
13745
13746 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
13747
13748 * minibuf.c (read_minibuf): Follow the non-interactive case when
13749 running as a daemon, before detaching.
13750
13751 2008-12-22 Andreas Schwab <schwab@suse.de>
13752
13753 * buffer.c (init_buffer): Use realloc instead of xrealloc.
13754 * gtkutil.c (free_widget_value): Use xfree instead of free.
13755
13756 2008-12-22 Martin Rudalics <rudalics@gmx.at>
13757
13758 * frame.c (delete_frame): New function derived from
13759 Fdelete_frame to handle Qnoelisp value for FORCE argument.
13760 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
13761 (Fdelete_frame): Call delete_frame. Remove line from doc-string
13762 saying that FORCE non-nil doesn't run `delete-frame-functions'.
13763 * frame.h: Extern delete_frame.
13764 * window.c (window_loop):
13765 * terminal.c (delete_terminal):
13766 * xterm.c (x_connection_closed):
13767 * xfns.c (Fx_hide_tip):
13768 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
13769
13770 2008-12-21 Jason Rumney <jasonr@gnu.org>
13771
13772 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
13773 when character maps to .notdef character.
13774
13775 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
13776
13777 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
13778
13779 2008-12-20 Jason Rumney <jasonr@gnu.org>
13780
13781 * frame.c (Fmake_terminal_frame): Raise an error when called from
13782 a graphical frame on Windows. (Bug#1325)
13783
13784 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
13785
13786 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
13787
13788 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
13789
13790 * minibuf.c (Fread_buffer): Doc fix.
13791
13792 2008-12-20 Jason Rumney <jasonr@gnu.org>
13793
13794 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
13795 server name in UNC paths. (Bug#719)
13796
13797 * coding.c (decode_coding): Clear chars_at_source flag when using
13798 charbuf. (Bug#1035)
13799
13800 2008-12-19 Daniel Engeler <engeler@gmail.com>
13801
13802 * sysdep.c (serial_configure): Fix typo.
13803
13804 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13805
13806 * sysdep.c: Include alloca.h.
13807 (system_process_attributes): Add implementation for Solaris.
13808
13809 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13810
13811 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
13812
13813 Reorganize implementation of Flist_system_processes and
13814 Fsystem_process_attributes. No functional changes.
13815 * process.c: Don't #include pwd.h, grp.h and limits.h.
13816 (Flist_system_processes): Just call list_system_processes.
13817 (Fsystem_process_attributes): Just call system_process_attributes.
13818 (procfs_list_system_processes, time_from_jiffies)
13819 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13820 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13821
13822 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
13823 (list_system_processes): Rename from
13824 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
13825 Provide a do nothing implementation.
13826 (system_process_attributes): Rename from
13827 procfs_list_system_processes.
13828 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13829 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13830
13831 * w32.c (list_system_processes): Rename from
13832 w32_list_system_processes.
13833 (system_process_attributes): Rename from
13834 w32_system_process_attributes.
13835
13836 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13837
13838 * process.h (w32_list_system_processes)
13839 (w32_system_process_attributes): Remove.
13840 (list_system_processes, system_process_attributes):
13841 New prototypes.
13842
13843 2008-12-19 Kenichi Handa <handa@m17n.org>
13844
13845 * xfont.c (xfont_decode_coding_xlfd): New function.
13846 (xfont_encode_coding_xlfd): New function.
13847 (xfont_list_pattern): Decode XLFD by iso-8859-1.
13848 (xfont_list): Decode and encode XLFD by iso-8859-1.
13849 (xfont_match): Likewise.
13850 (xfont_list_family): Likewise.
13851 (xfont_open): Likewise.
13852
13853 * ftfont.c (ftfont_open): Generate a multibyte string if given
13854 names are utf-8.
13855
13856 * xftfont.c (xftfont_open): Generate a multibyte string if given
13857 names are utf-8.
13858
13859 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
13860
13861 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13862 changed.
13863 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13864 clicked on a detached tool bar button.
13865
13866 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
13867
13868 * emacs.c (main): Print and error and exit when no data is read
13869 from the pipe.
13870
13871 2008-12-17 Jason Rumney <jasonr@gnu.org>
13872
13873 * w32font.c (w32font_has_char): Always return -1.
13874
13875 2008-12-16 Kenichi Handa <handa@m17n.org>
13876
13877 * font.c (font_open_entity): Fix previous change.
13878
13879 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
13880
13881 * process.c: Include <limits.h>.
13882
13883 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
13884
13885 * font.c (font_update_drivers): Fix mistake in reconstructing the
13886 driver list.
13887
13888 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
13889
13890 * font.c (font_clear_cache): Fix format of font cache data.
13891
13892 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
13893
13894 * xftfont.c (xftfont_open): Free Xft font pattern if
13895 XftFontOpenPattern fails.
13896
13897 * xterm.c (x_free_frame_resources): Remove extraneous call to
13898 free_frame_faces.
13899
13900 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13901
13902 * xterm.c (x_delete_display): Move xim_close_dpy call to
13903 x_delete_terminal.
13904 (x_delete_terminal): Call xim_close_dpy.
13905
13906 2008-12-13 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32font.c (intern_font_name): New function.
13909 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13910 (w32font_open_internal, Fx_select_font): Decode font name.
13911 (fill_in_logfont, list_all_matching_fonts): Encode font name.
13912
13913 * w32font.h (intern_font_name): Declare new function.
13914
13915 * w32uniscribe.c (add_opentype_font_name_to_list):
13916 Use intern_font_name.
13917
13918 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13919
13920 * frame.c (Fdelete_frame): Call free_font_driver_list.
13921
13922 * font.c (free_font_driver_list): Implement missing function.
13923
13924 * w32term.c (w32_term_init): Don't initialize the image cache
13925 here; it will be done in init_frame_faces.
13926
13927 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
13928 (struct x_display_info): Remove unused member null_pixel.
13929 New member xim_callback_data.
13930
13931 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13932 (xim_initialize): Save pointer to callback function data.
13933 (xim_close_dpy): Free callback function data. Call XCloseIM,
13934 reverting 2008-11-04 change by David Smith.
13935 (x_term_init): Don't initialize the image cache here; it will be
13936 done in init_frame_faces. Remove ancient "null_pixel" cruft.
13937 (x_delete_display): Free x_dnd_atoms member.
13938
13939 2008-12-13 Kenichi Handa <handa@m17n.org>
13940
13941 * font.c (font_rescale_ratio): Move from xfaces.c.
13942 Argument type changed. Handle a font-spec too.
13943 (font_score): Check Vface_font_rescale_alist.
13944 (font_open_entity): Likewise. (Bug#1547)
13945
13946 * xfaces.c (font_rescale_ratio): Move to font.c.
13947
13948 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
13949
13950 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13951
13952 2008-12-12 Jason Rumney <jasonr@gnu.org>
13953
13954 * w32fns.c (x_display_info_for_name, Fx_open_connection):
13955 Set Vwindow_system_version to the real w32 major version.
13956
13957 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
13958
13959 * term.c (init_tty): Move setting the terminal name before the
13960 potential user: maybe_fatal.
13961
13962 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
13963
13964 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
13965 all callers changed. Call free_frame_faces to free the face cache.
13966
13967 2008-12-11 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32font.c (fill_in_logfont): Don't assume symbol script means
13970 SYMBOL_CHARSET. (Bug#547)
13971
13972 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
13973 size for surrogates. (Bug#1096, bug#872)
13974
13975 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13976
13977 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13978
13979 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13980
13981 * process.c (Fsystem_process_attributes, syms_of_process):
13982 Fix typo in name of Ssystem_process_attributes.
13983 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13984
13985 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
13986
13987 * syntax.c (Fmodify_syntax_entry): Doc fix.
13988
13989 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
13990
13991 * font.c (Ffont_spec): Move usage to end of docstring.
13992
13993 2008-12-10 Jason Rumney <jasonr@gnu.org>
13994
13995 * w32font.c (Qcham): New symbol.
13996 (font_supported_scripts): Add cham, and comments for other new
13997 scripts in bitfield from OpenType spec.
13998 (add_font_entity_to_list): Limit unicode-sip fonts to those that
13999 contain characters beyond the bmp.
14000
14001 2008-12-10 Kenichi Handa <handa@m17n.org>
14002
14003 * ftfont.c (fc_charset_table): Add "unicode-sip".
14004 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
14005 Qunicode_sip.
14006
14007 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
14008
14009 * coding.c (QCdefault_char): Rename from QCdefalut_char.
14010 (Fcoding_system_put): Use QCdefault_char.
14011 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
14012
14013 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
14014
14015 * xftfont.c (syms_of_xftfont): Fix typo.
14016
14017 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
14018
14019 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
14020
14021 * emacs.c (main): Close daemon_pipe on exec.
14022
14023 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
14024
14025 * termchar.h (struct tty): New members termcap_term_buffer and
14026 termcap_strings_buffer.
14027
14028 * term.c (encode_terminal_code): Free any previous memory blocks
14029 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
14030 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
14031 All callers changed.
14032 (init_tty): Store termcap data and string buffers in new struct
14033 tty members termcap_term_buffer and termcap_strings_buffer.
14034 (delete_tty): Free them.
14035 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
14036
14037 2008-12-07 Seiji Zenitani <zenitani@mac.com>
14038
14039 * nsfns.m (ns_set_background_color): Remove code duplication.
14040 It was a substitute for face-transparency on OS X 10.3.
14041
14042 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
14043
14044 * coding.c (make_conversion_work_buffer): Disable buffer
14045 modification hooks in the work buffer.
14046
14047 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14048
14049 * process.c (procfs_system_process_attributes): If `nread' has a
14050 negative value, assign zero to it.
14051
14052 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
14053
14054 * eval.c (Vdebug_on_error): Doc fix.
14055
14056 2008-12-05 Kenichi Handa <handa@m17n.org>
14057
14058 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
14059 second character is a combining character.
14060
14061 2008-12-05 Eli Zaretskii <eliz@gnu.org>
14062
14063 * process.c (procfs_system_process_attributes): Don't use cmd,
14064 cmdsize, and q without initializing them first.
14065
14066 2008-12-04 Jason Rumney <jasonr@gnu.org>
14067
14068 * w32font.c (w32font_draw): Initialize orig_clip before getting
14069 it, and delete it when finished.
14070
14071 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
14072
14073 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
14074 case when running as a daemon before detaching.
14075
14076 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
14077
14078 * w32.c (init_environment): Don't unload library shell32.dll.
14079
14080 2008-12-03 Kenichi Handa <handa@m17n.org>
14081
14082 * font.c (font_at): Set `multibyte' at first.
14083
14084 * coding.c (decode_coding_charset): Check type of an element of
14085 vector VALIDS.
14086 (encode_coding_emacs_mule): Be sure to set `code'.
14087
14088 * fontset.c (face_for_char): Handle invalid charset property correctly.
14089 (font_for_char): Likewise.
14090
14091 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
14092
14093 * font.c (Fopen_font): Compute pixel size correctly.
14094 (font_update_lface): Handle fonts with corrupted size specs,
14095 i.e. non-int and non-float.
14096
14097 * ftfont.c (ftfont_match): Initialize entity variable.
14098 (ftfont_resolve_generic_family): Avoid using uninitialized var.
14099 (ftfont_list_family): Initialize list var earlier.
14100
14101 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
14102
14103 * xterm.c (x_draw_glyph_string): Fall back on
14104 underline_minimum_offset for underline position.
14105
14106 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
14107
14108 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
14109
14110 * character.c (c_string_width): Specify the type for LEN.
14111
14112 2008-12-03 Kenichi Handa <handa@m17n.org>
14113
14114 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
14115 (decode_coding_utf_8): Likewise.
14116 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
14117 (produce_chars): Initialize consumed_chars to 0.
14118
14119 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14120
14121 * keyboard.c (make_lispy_position): Only use PT if the selected
14122 window is current.
14123
14124 2008-12-02 Andreas Schwab <schwab@suse.de>
14125
14126 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
14127
14128 * doprnt.c (doprnt1): Fix size of charbuf.
14129
14130 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
14131
14132 * keyboard.c (timer_check): Revert last change.
14133
14134 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
14135
14136 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
14137
14138 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
14139
14140 * makefile.w32-in: Update dependencies.
14141 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
14142
14143 2008-12-01 Andreas Schwab <schwab@suse.de>
14144
14145 * font.c (register_font_driver): Use xmalloc.
14146 (font_put_frame_data): Likewise.
14147
14148 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
14149
14150 * xfaces.c (realize_x_face): Make abort condition clearer.
14151
14152 * gtkutil.c (update_frame_tool_bar): Initialize variable.
14153
14154 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
14155
14156 * keyboard.c (timer_check): After a timer runs, ensure that the
14157 selected window's buffer is current.
14158
14159 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
14160
14161 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
14162 It was accidentally restored by the Unicode merge.
14163
14164 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
14165
14166 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
14167
14168 * w32proc.c: Include "coding.h".
14169 (Fw32_short_file_name): Encode filename passed to Windows API.
14170 (Fw32_long_file_name): Encode filename passed to Windows API and
14171 decode back the result. (Bug#1433)
14172
14173 2008-11-29 Kenichi Handa <handa@m17n.org>
14174
14175 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
14176 not before accessing it.
14177
14178 * charset.c (Fdefine_charset_internal): After calculating
14179 min_char, max_char, and fastmap, copy the charset structure again.
14180 (encode_char): Fix the previous change.
14181
14182 2008-11-28 Seiji Zenitani <zenitani@mac.com>
14183
14184 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
14185
14186 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
14187
14188 * nsterm.m (x_set_frame_alpha): New function.
14189
14190 2008-11-27 Eli Zaretskii <eliz@gnu.org>
14191
14192 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
14193
14194 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
14195
14196 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
14197 pointer to check_face_name.
14198
14199 2008-11-27 Kenichi Handa <handa@m17n.org>
14200
14201 * category.h (SET_CATEGORY_SET): Call set_category_set.
14202 (set_category_set): Extern it.
14203
14204 * category.c (hash_get_category_set): New function.
14205 (Fmodify_category_entry): Adjust for the change of
14206 char_table_ref_and_range. Call hash_get_category_set to get a
14207 category set to store in the table.
14208
14209 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
14210 Funify_charset.
14211
14212 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
14213 (DECODE_CHAR): Check if the decoder vector is ready.
14214 (ENCODE_CHAR): Check if the encoder char-table is ready.
14215 (maybe_unify_char): Extern it.
14216
14217 * charset.c (Vchar_unified_charset_table): Delete it.
14218 (inhibit_load_charset_map): New variable.
14219 (temp_charset_work): New variable.
14220 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
14221 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
14222 New macros.
14223 (load_charset_map): Meaning of control_flag changed.
14224 If inhibit_load_charset_map is nonzero, setup a table in
14225 temp_charset_work.
14226 (load_charset): New argument control_flag.
14227 (map_charset_for_dump): New function.
14228 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
14229 map_charset_for_dump.
14230 (Fdefine_charset_internal): If the charset method is MAP, load
14231 mapping tables by calling load_charset.
14232 (Funify_charset): Don't load a mapping table but directly set
14233 Vchar_unify_table.
14234 (maybe_unify_char): New function.
14235 (decode_char): Don't handle the deleted method MAP_DEFERRED.
14236 Handle the case of inhibit_load_charset_map being nonzero.
14237 (encode_char): Don't handle the deleted method MAP_DEFERRED.
14238 Handle the case of inhibit_load_charset_map being nonzero.
14239 (Fclear_charset_maps): Just free temp_charset_work.
14240 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
14241 variable.
14242
14243 * chartab.c (sub_char_table_ref_and_range): Adjust for the
14244 change of char_table_ref_and_range.
14245 (char_table_ref_and_range): Change the meaning of argument FROM
14246 and TO. Now the caller must provide initial values for *FROM
14247 and *TO.
14248
14249 * fontset.c (fontset_add): Adjust for the change of
14250 char_table_ref_and_range.
14251 (fontset_get_font_group): Likewise.
14252 (Ffontset_info): Likewise.
14253
14254 * keymap.c (describe_vector): Adjust for the change of
14255 char_table_ref_and_range. For char-table, put boundary between
14256 non-ASCII and 8-bit characters.
14257
14258 * print.c (print_object): For bool-vector, delete unnecessary
14259 check of ASCII_BYTE_P.
14260
14261 2008-11-26 Jason Rumney <jasonr@gnu.org>
14262
14263 * w32font.c (w32font_open_internal): Don't include external
14264 leading in font height. (Bug#879)
14265
14266 2008-11-26 Glenn Morris <rgm@gnu.org>
14267
14268 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
14269 redefinition with ifdef. (Bug#1383)
14270
14271 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14272
14273 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
14274
14275 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
14276
14277 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
14278 New EmacsView methods.
14279 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
14280 Fixes bug #1048,1357,1414.
14281
14282 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14283
14284 Fix bug #1362.
14285 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
14286 is not an indexed color.
14287 * nsterm.m (free_indexed_color): Add argument checking.
14288 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
14289
14290 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
14291
14292 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
14293 Document confirm-after-completion value for
14294 minibuffer-completion-confirm.
14295
14296 2008-11-24 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
14299 warning.
14300
14301 2008-11-23 Jason Rumney <jasonr@gnu.org>
14302
14303 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
14304 restored before returning.
14305
14306 * w32font.c (check_face_name): New function.
14307 (add_font_entity_to_list): Use it to filter out common substituted
14308 fonts. (Bug#642)
14309
14310 2008-11-22 Martin Rudalics <rudalics@gmx.at>
14311
14312 * buffer.c (Fswitch_to_buffer): Reword and mention new option
14313 confirm-nonexistent-file-or-buffer in doc-string.
14314
14315 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14316
14317 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
14318 Fix copy/paste typo. Add checks.
14319
14320 2008-11-21 Kenichi Handa <handa@m17n.org>
14321
14322 * coding.c (detect_coding_iso_2022): Reject invalid composition
14323 sequence.
14324 (DECODE_COMPOSITION_START): If the current source is the last
14325 block, and the current composition doesn't end, regard this
14326 sequence as invalid.
14327 (decode_coding_iso_2022): Handle invalid composition sequence.
14328
14329 2008-11-20 Martin Rudalics <rudalics@gmx.at>
14330
14331 * window.c (coordinates_in_window): Don't return
14332 ON_VERTICAL_BORDER for the rightmost position of a mode/header
14333 line when the window is not the rightmost one. (Bug#1372)
14334
14335 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
14336
14337 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
14338
14339 2008-11-15 Eli Zaretskii <eliz@gnu.org>
14340
14341 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
14342 and bright_bg if noninteractive is non-zero.
14343
14344 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14345
14346 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
14347 x_draw_glyph_string_background.
14348
14349 * w32term.c (x_draw_glyph_string): Likewise.
14350
14351 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
14352
14353 * xterm.c (x_draw_glyph_string): Stop drawing the background of
14354 the next glyph string once past the overhang width.
14355
14356 * nsterm.m (ns_draw_glyph_string): Likewise.
14357
14358 * w32term.c (x_draw_glyph_string): Likewise.
14359
14360 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
14361
14362 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
14363 double file close.
14364
14365 2008-11-14 Martin Rudalics <rudalics@gmx.at>
14366
14367 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
14368 dedicated status of window before attempting to display another
14369 buffer in it.
14370
14371 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
14372
14373 * msdos.c (Fmsdos_long_file_names):
14374 (syms_of_msdos) <dos-unsupported-char-glyph>:
14375 * dosfns.c (Fint86): Fix typos in docstrings.
14376
14377 2008-11-14 Eli Zaretskii <eliz@gnu.org>
14378
14379 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
14380
14381 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
14382
14383 * puresize.h (BASE_PURESIZE): Increase to 1260000.
14384
14385 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
14386
14387 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
14388
14389 * frame.h: Negative alpha means "don't touch".
14390
14391 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
14392
14393 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
14394
14395 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
14396
14397 * hftctl.c:
14398 * chpdef.h:
14399 * acldef.h: Remove files used only for systems no longer supported.
14400
14401 * Makefile.in: Fix .o alphabetical ordering.
14402 (hftctl.o): Remove dependency, file removed.
14403 (keymap.o, print.o): Depend on charset.h.
14404
14405 2008-11-10 Kenichi Handa <handa@m17n.org>
14406
14407 * character.c (Fget_byte): Fix and make it faster for unibyte target.
14408
14409 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
14410
14411 * dired.c (file_name_completion): If completion_ignore_case is
14412 enabled, ignore case when checking completion-regexp-list.
14413
14414 2008-11-08 Eli Zaretskii <eliz@gnu.org>
14415
14416 * vm-limit.c (get_lim_data): Fix last change.
14417
14418 2008-11-08 Kenichi Handa <handa@m17n.org>
14419
14420 * character.c (Fget_byte): New function.
14421 (syms_of_character): Defsubr Fget_byte.
14422
14423 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
14424
14425 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
14426 cursor position is valid after scrolling.
14427
14428 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
14429
14430 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
14431
14432 2008-11-06 Glenn Morris <rgm@gnu.org>
14433
14434 * xterm.c (handle_one_xevent): Don't let popup menus cause
14435 mouse-autoselect-window related window switching. (Bug#1261)
14436
14437 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
14438
14439 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
14440
14441 2008-11-04 Andreas Schwab <schwab@suse.de>
14442
14443 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
14444
14445 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
14446
14447 * xfns.c (Fx_wm_set_size_hint): New function.
14448
14449 2008-11-03 Martin Rudalics <rudalics@gmx.at>
14450
14451 * textprop.c (Fprevious_single_char_property_change): Return 0
14452 when there's no change in a string. (Bug#1301)
14453
14454 2008-11-02 Martin Rudalics <rudalics@gmx.at>
14455
14456 * frame.c (do_switch_frame): New argument NORECORD passed to
14457 Fselect_window.
14458 (Fselect_frame): New argument NORECORD passed to
14459 do_switch_frame.
14460 (Fset_frame_selected_window): New argument NORECORD passed to
14461 Fselect_frame.
14462 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
14463 in call of do_switch_frame.
14464 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
14465 Handle NORECORD argument in call of Fselect_frame.
14466 * lisp.h (do_switch_frame, Fselect_frame)
14467 (Fset_frame_selected_window): Adjust declarations.
14468 * window.c (select_frame_norecord): New function.
14469 (run_window_configuration_change_hook): Use it and call
14470 Fselect_frame with NORECORD set.
14471 (Fselect_window): Pass NORECORD to Fselect_frame.
14472 (Fset_window_configuration): Handle NORECORD argument in call of
14473 do_switch_frame.
14474 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
14475 Fset_frame_selected_window.
14476 * keyboard.c (command_loop_1): Handle NORECORD in call of
14477 Fselect_frame (currently ifdefd).
14478
14479 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
14480
14481 * emacs.c (USAGE2): Untabify.
14482
14483 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
14484
14485 * composite.c (fill_gstring_header): Fix copy/paste typo.
14486
14487 2008-10-31 Martin Rudalics <rudalics@gmx.at>
14488
14489 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
14490 (Fother_window): Rename argument and rewrite doc-string.
14491 (select_window_norecord): Fix return value. (Bug#1276)
14492
14493 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
14494
14495 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
14496 new frames overriding foreground for tooltips. Based on similar patch
14497 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
14498
14499 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
14500
14501 * emacs.c (Fdaemon_initialized): Initialize nfd.
14502
14503 2008-10-29 Martin Rudalics <rudalics@gmx.at>
14504
14505 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
14506 (Fwindow_text_height): Clarify doc-strings.
14507 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
14508 doc-string of window-scroll-functions.
14509
14510 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
14511
14512 * category.c (syms_of_category): Fix typo in docstring.
14513
14514 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
14515
14516 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
14517 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
14518 Fix typos in docstrings.
14519
14520 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
14521
14522 * emacs.c (daemon_pipe): Make non-static.
14523 (IS_DAEMON): Move definition ...
14524 * lisp.h (IS_DAEMON): ... here.
14525 (daemon_pipe): Declare.
14526 (is_daemon): Remove.
14527 * dispnew.c (init_display): Use IS_DAEMON.
14528
14529 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14530
14531 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
14532 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
14533
14534 * emacs.c (is_daemon): Remove.
14535 (main): Don't set is_daemon.
14536 (IS_DAEMON): New macro.
14537 (Fdaemonp, Fdaemon_initialized): Use it.
14538 (Fdaemon_initialized): Write a char into the pipe to make sure the
14539 parent exits.
14540 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
14541
14542 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
14543
14544 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
14545 over-sized glyph, draw it with the default glyph width.
14546
14547 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14548 glyph, draw it with the default glyph width.
14549
14550 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
14551 glyph, draw it with the default glyph width.
14552
14553 * xdisp.c (try_scrolling): When computing the distance from the
14554 scroll margin to PT, try moving some distance past the window
14555 bottom before giving up.
14556
14557 2008-10-27 Martin Rudalics <rudalics@gmx.at>
14558
14559 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
14560 (Fset_window_buffer): Explain in doc-string that a window can be
14561 "strongly" dedicated to its buffer.
14562
14563 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
14564
14565 * emacs.c (daemon_name): New variable.
14566 (main): Deal with --daemon=SERVER_NAME.
14567 (Fdaemonp): Return a name if one was passed to --daemon.
14568
14569 2008-10-26 Romain Francoise <romain@orebokech.com>
14570
14571 * emacs.c (daemon_pipe): New variable.
14572 (main): Create a pipe before forking, make the parent exit only after
14573 the child has closed its end of the pipe. Move closing the
14574 descriptors ...
14575 (Fdaemon_initialized): ... here. New function.
14576
14577 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
14578
14579 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
14580 the previous unoptimized table.
14581
14582 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
14583 the distinction between non-nil and non-t value of `dedicated'.
14584
14585 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
14586
14587 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
14588 read_char_minibuf_menu_text is large enough to hold the menu string.
14589
14590 2008-10-25 Martin Rudalics <rudalics@gmx.at>
14591
14592 * window.c (Fget_buffer_window, Fdelete_windows_on)
14593 (Freplace_buffer_in_windows): Make buffer argument optional and
14594 rename to buffer_or_name.
14595
14596 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
14597
14598 * xdisp.c (handle_single_display_spec, handle_display_prop):
14599 Undo 2005-05-16 change.
14600 (handle_stop): Pop iterator if it's loaded with an empty string.
14601 (get_overlay_strings_1): Don't save iterator if it's loaded with
14602 an empty string (bug#1201).
14603
14604 2008-10-24 Kenichi Handa <handa@m17n.org>
14605
14606 * ftfont.c (ftfont_otf_features): Fix previous change.
14607 (ftfont_otf_capability): Check FeatureList.FeatureCount before
14608 calling ftfont_otf_features.
14609
14610 2008-10-24 Kenichi Handa <handa@m17n.org>
14611
14612 * font.c (font_match_p): Fix for the case that a vector of
14613 characters is in script-representative-chars.
14614
14615 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
14616
14617 * dbusbind.c (xd_in_read_queued_messages): New variable.
14618 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
14619 (xd_read_queued_messages): Catch Qdbus_error from the macros.
14620 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
14621 macro. (Bug#1186)
14622
14623 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
14624
14625 * s/sol2-10.h: New file.
14626
14627 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14628
14629 * xdisp.c (fill_glyph_string): Fix typo in source (though the
14630 poor beast has survived 9+ years and the jump from xterm.c!).
14631
14632 2008-10-23 Martin Rudalics <rudalics@gmx.at>
14633
14634 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
14635 Reword doc-string.
14636 (Fbury_buffer): In doc-string say what happens to the buffer's window.
14637
14638 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
14639
14640 * character.c (syms_of_character) <script-representative-chars>:
14641 <unicode-category-table>: Doc fixes.
14642
14643 2008-10-23 Noah Friedman <friedman@splode.com>
14644
14645 * coding.c (make_conversion_work_buffer): Check that
14646 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
14647 Fget_buffer_create.
14648
14649 2008-10-23 Kenichi Handa <handa@m17n.org>
14650
14651 * font.c (font_add_log): Check the values of extra properties.
14652
14653 2008-10-22 Martin Rudalics <rudalics@gmx.at>
14654
14655 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14656 Reword doc-string.
14657 (Fset_window_parameter): Use NILP.
14658 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
14659 (Frecenter): Use "selected" instead of "current" window in doc-strings.
14660
14661 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14662
14663 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
14664
14665 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14666
14667 * nsfns.m (ns_appkit_version): New function.
14668 (x-server-version): Use it.
14669 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
14670 (x-server-vendor): Don't check_ns().
14671
14672 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
14673
14674 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
14675
14676 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
14677 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
14678
14679 2008-10-22 Kenichi Handa <handa@m17n.org>
14680
14681 * syntax.c (scan_words): Call word_boundary_p instead of comparing
14682 scripts.
14683
14684 * category.c (word_boundary_p): Check scripts instead of charset.
14685 Handle nil value in word-separating-categories and
14686 word-combining-categories.
14687 (syms_of_category): Fix docstrings of word-separating-categories
14688 and word-combining-categories.
14689
14690 2008-10-21 Eli Zaretskii <eliz@gnu.org>
14691
14692 * coding.c (Fencode_coding_region, Fdecode_coding_region)
14693 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
14694
14695 2008-10-21 Martin Rudalics <rudalics@gmx.at>
14696
14697 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
14698 Rename arg "buffer" to "buffer_or_name".
14699 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
14700 it optional.
14701 (no_switch_window): Remove since the return value is not used.
14702 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
14703 Consider window as dedicated when Fwindow_dedicated_p returns a
14704 non-nil value.
14705 * lisp.h: Remove prototype for no_switch_window.
14706
14707 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
14708
14709 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
14710 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
14711
14712 2008-10-21 Kenichi Handa <handa@m17n.org>
14713
14714 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
14715 check Vlatin_extra_code_table.
14716
14717 2008-10-20 Eli Zaretskii <eliz@gnu.org>
14718
14719 * fileio.c (Fset_file_modes): Doc fix.
14720
14721 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
14722
14723 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
14724 in arrays.
14725
14726 2008-10-19 Martin Rudalics <rudalics@gmx.at>
14727
14728 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
14729 Mention kill-buffer in doc-string.
14730 (Fset_window_buffer): Reinsert tem check removed in last commit.
14731 (Fenlarge_window, Fshrink_window): Have argument names and
14732 doc-string follow Elisp manual more closely.
14733
14734 2008-10-18 Eli Zaretskii <eliz@gnu.org>
14735
14736 * fileio.c (Fset_file_modes): Doc fix.
14737
14738 2008-10-18 Martin Rudalics <rudalics@gmx.at>
14739
14740 * window.c (Fwindow_width, Fset_window_start)
14741 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
14742 (Fdelete_windows_on, Freplace_buffer_in_windows):
14743 Make doc-strings follow code and Elisp manual more closely.
14744 (Fwindow_dedicated_p): Make window argument optional.
14745 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
14746 (Fset_window_buffer): Respect any non-nil dedicated value for
14747 window. Rename "buffer" argument to "buffer_or_name".
14748
14749 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
14750
14751 * m/sh3.h: New file, machine description for SuperH.
14752
14753 2008-10-17 Martin Rudalics <rudalics@gmx.at>
14754
14755 * window.c (Fsplit_window): Rename arg horflag to horizontal.
14756
14757 2008-10-17 Kenichi Handa <handa@m17n.org>
14758
14759 * ftfont.c (ftfont_otf_features): Fix indexing
14760 gsub_gpos->FeatureList.Feature. Check the validity of indices.
14761
14762 2008-10-16 Magnus Henoch <mange@freemail.hu>
14763
14764 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
14765 (Fdbus_call_method_asynchronously): Ditto.
14766 This change makes C-h f display the argument list.
14767
14768 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
14769
14770 * fileio.c (Fexpand_file_name): Doc fix.
14771
14772 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
14773 of :foreground and :background equivalent to unspecified (20.x
14774 compatibility).
14775
14776 2008-10-15 Eli Zaretskii <eliz@gnu.org>
14777
14778 * buffer.c (syms_of_buffer): Doc fix.
14779
14780 2008-10-14 Kenichi Handa <handa@m17n.org>
14781
14782 * font.c (font_clear_prop): When clearing font width, clear the
14783 average width field too.
14784
14785 2008-10-12 Andreas Schwab <schwab@suse.de>
14786
14787 * ftfont.c (ftfont_shape_by_flt): Make static.
14788 * ftfont.h (ftfont_shape_by_flt): Don't declare.
14789
14790 * font.c: Don't include <m17n-flt.h>.
14791
14792 2008-10-10 Eli Zaretskii <eliz@gnu.org>
14793
14794 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
14795
14796 2008-10-09 Eli Zaretskii <eliz@gnu.org>
14797
14798 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
14799 away code.
14800
14801 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
14802
14803 * dispnew.c (update_text_area): Avoid looping due to large glyph
14804 overhangs (bug#1070).
14805
14806 2008-10-09 Kenichi Handa <handa@m17n.org>
14807
14808 * fontset.c (face_for_char): If face->fontset is negative, just
14809 return ascii_face.
14810
14811 * font.c (font_delete_unmatched): Fix previous change.
14812 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14813
14814 2008-10-09 Martin Rudalics <rudalics@gmx.at>
14815
14816 * frame.c (Fraise_frame): On text-only terminals select frame in
14817 order to make it visible. (Bug#1061)
14818
14819 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
14820
14821 * fontset.c (fontset_find_font): Check frame validity.
14822
14823 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
14824
14825 * gtkutil.c (xg_display_open): Reset default display if none exists.
14826 (xg_display_close): Allow Emacs to close all displays (bug#985).
14827
14828 2008-10-06 Andreas Schwab <schwab@suse.de>
14829
14830 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14831
14832 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
14833
14834 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
14835
14836 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
14837
14838 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14839 during initialization.
14840
14841 2008-10-04 Eli Zaretskii <eliz@gnu.org>
14842
14843 * xdisp.c (redisplay_internal): If frame switched, redisplay the
14844 whole thing on MSDOS frames as well as on a TTY.
14845
14846 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14847 well as for TTY.
14848 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14849 well as on a TTY.
14850
14851 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14852 as well as for TTY.
14853
14854 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14855
14856 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14857 MSDOS frames as well.
14858
14859 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14860
14861 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14862 correct arguments.
14863 * menu.c (find_and_return_menu_selection): Add cast.
14864
14865 2008-10-03 Glenn Morris <rgm@gnu.org>
14866
14867 * emacs.c (USAGE1): Add --daemon.
14868
14869 2008-10-02 Eli Zaretskii <eliz@gnu.org>
14870
14871 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14872 100, so it's in percents as advertised.
14873
14874 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
14875
14876 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14877 (ns_output.current_cursor, ns_output.desired_cursor)
14878 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14879 (FRAME_NEW_CURSOR_COLOR): Remove.
14880
14881 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
14882 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
14883 enumeration (HOLLOW_BOX_CURSOR, etc.).
14884
14885 * nsterm.m (ns_frame_rehighlight): Remove commented code.
14886 (draw_window_cursor): Simplify code.
14887 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14888 Don't change cursor type. In latter, call rehighlight instead of doing
14889 updates manually.
14890 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14891 Use core Emacs cursor types.
14892
14893 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
14894
14895 2008-10-02 Martin Rudalics <rudalics@gmx.at>
14896
14897 * process.c (Faccept_process_output): Fix doc-string.
14898
14899 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
14900
14901 * gmalloc.c (__sbrk): Also define for uClibc.
14902
14903 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14904 for uClibc.
14905
14906 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14907
14908 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14909 styles.
14910 (nsfont_open): Reenable the cache.
14911
14912 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14913
14914 * font.c (font_matching_entity): Reflect ATTRS in font selection.
14915 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14916
14917 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
14918
14919 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14920 a suspended terminal.
14921
14922 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
14923
14924 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14925
14926 2008-09-30 Eli Zaretskii <eliz@gnu.org>
14927
14928 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14929
14930 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
14931
14932 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14933 in a continued line coincides with a line beginning.
14934
14935 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14936
14937 * nsfont.m (nsfont_trait_distance): Fix bug.
14938 (nsfont_list): Return a list rather than a vector (syncs with Handa
14939 changes of 2008-05-14).
14940 (nsfont_open): Improve logging.
14941
14942 2008-09-29 Andreas Schwab <schwab@suse.de>
14943
14944 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14945
14946 2008-09-28 Martin Rudalics <rudalics@gmx.at>
14947
14948 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14949 name as char-resolve-modifiers.
14950 Reported by: Markus Triska <markus.triska@gmx.at>
14951
14952 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14953
14954 * dispnew.c (init_display): Return earlier when running as a daemon.
14955
14956 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14957
14958 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14959
14960 2008-09-27 Eli Zaretskii <eliz@gnu.org>
14961
14962 * composite.c (Fcomposition_get_gstring)
14963 (Fcompose_region_internal, Fcompose_string_internal)
14964 (Ffind_composition_internal): Doc fix.
14965 (syms_of_composite) <compose-chars-after-function>: Doc fix.
14966 (syms_of_composite) <auto-composition-function>: Doc fix.
14967 (syms_of_composite) <composition-function-table>: Doc fix.
14968
14969 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
14970
14971 * search.c (wordify): New argument for lax word-ends.
14972 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14973
14974 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
14975
14976 * lisp.h (is_daemon): Declare.
14977 * dispnew.c (init_display): Do not try to initialize the terminal
14978 when running as a daemon.
14979
14980 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
14981
14982 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14983 x_display_pixel_height.
14984
14985 2008-09-22 Martin Rudalics <rudalics@gmx.at>
14986
14987 * undo.c (record_point): Don't call Fundo_boundary for first
14988 change. (Bug#731)
14989
14990 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
14991
14992 * emacs.c (Fdaemonp): Doc fix.
14993
14994 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
14995
14996 * emacs.c (main): Place #ifdef in the proper place.
14997
14998 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14999
15000 * emacs.c (standard_args): Add --daemon.
15001 (main): Disconnect from the terminal when --daemon is passed.
15002 (is_daemon): New variable.
15003 (Fdaemonp): New function.
15004 (syms_of_emacs): Defsubr it.
15005
15006 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
15007
15008 * xdisp.c (get_next_display_element): Handle string display
15009 correctly when checking for the end of a box run.
15010
15011 2008-09-20 Glenn Morris <rgm@gnu.org>
15012
15013 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
15014 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
15015 (Frename_file): Avoid copying to trash if a rename involves
15016 a delete. (Bug#964).
15017
15018 2008-09-20 Eli Zaretskii <eliz@gnu.org>
15019
15020 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
15021 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
15022 frames as well as termcap frames.
15023 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
15024 get_named_tty.
15025
15026 2008-09-19 Eli Zaretskii <eliz@gnu.org>
15027
15028 * process.c (procfs_system_process_attributes): Fix cmdline in
15029 case /proc/PID/cmdline is empty.
15030
15031 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
15032 x_display_pixel_height.
15033
15034 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
15035
15036 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
15037
15038 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15039 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
15040
15041 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
15042
15043 * dispextern.h (struct it): Move line_wrap away from the middle of
15044 bitfields. Move voffset in struct iterator_stack_entry after the
15045 bitfields. Move tab_width near after another short.
15046
15047 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
15048
15049 * frame.h (struct frame): Move alpha from the middle of bitfields.
15050
15051 * window.h (struct window): Move frozen_window_start_p after the
15052 rest of the bitfields to reduce padding.
15053
15054 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
15055
15056 * xterm.h (x_display_info): Remove `height' and `width' members.
15057
15058 * nsterm.h (ns_display_info): Remove `height' and `width' members.
15059
15060 * w32term.h (w32_display_info): Remove `height', `width',
15061 `height_in', and `width_in' members.
15062
15063 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15064 New functions.
15065 (x_calc_absolute_position): Use them.
15066 (x_term_init): Omit removed `height' and `width' members.
15067
15068 * w32term.c (x_display_pixel_height, x_display_pixel_width):
15069 New functions.
15070 (w32_read_socket, x_calc_absolute_position): Use them.
15071 (w32_initialize_display_info, w32_term_init): Omit removed members
15072 of w32_display_info.
15073
15074 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
15075 New functions.
15076 (ns_initialize_display_info): Omit removed members of ns_display_info.
15077
15078 * xterm.c (x_display_pixel_height, x_display_pixel_width):
15079 New functions.
15080 (x_calc_absolute_position): Use them.
15081 (x_term_init): Omit removed `height' and `width' members.
15082
15083 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
15084 (compute_tip_xy):
15085 * frame.c (x_fullscreen_adjust):
15086 * xmenu.c (menu_position_func): Use x_display_pixel_height and
15087 x_display_pixel_width.
15088
15089 2008-09-18 Kenichi Handa <handa@m17n.org>
15090
15091 * composite.c (fill_gstring_header): Don't check FROM and TO here.
15092 (composition_compute_stop_pos): Fix handling of static composition.
15093 (Fcomposition_get_gstring): Check FROM and TO at first.
15094
15095 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
15096
15097 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
15098 mixup (YAILOM).
15099
15100 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
15101
15102 * indent.c (Fvertical_motion): Use position reported by iterator
15103 instead of PT for determining screen motion (bug#943).
15104
15105 2008-09-17 Romain Francoise <romain@orebokech.com>
15106
15107 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
15108
15109 2008-09-17 Kenichi Handa <handa@m17n.org>
15110
15111 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
15112
15113 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
15114 if necessary.
15115
15116 2008-09-16 Kenichi Handa <handa@m17n.org>
15117
15118 * coding.c (make_conversion_work_buffer): Avoid calling
15119 Fget_buffer_create if it is not necessary.
15120
15121 2008-09-15 Martin Rudalics <rudalics@gmx.at>
15122
15123 * window.c (Fselect_window): Don't update window_select_count and
15124 use_time when norecord is not nil.
15125
15126 2008-09-14 Kenichi Handa <handa@m17n.org>
15127
15128 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
15129 specpdl_ptr.
15130
15131 2008-09-12 Kenichi Handa <handa@m17n.org>
15132
15133 * indent.c (scan_for_column): Don't handle automatic composition
15134 if the current buffer is not associated with a window.
15135
15136 * composite.c (composition_reseat_it): If the current buffer is
15137 not associated with a window, ignore the automatic composition.
15138 (find_automatic_composition): Likewise.
15139
15140 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15141
15142 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
15143 (Fgpm_mouse_stop): Use it.
15144 * termhooks.h (close_gpm): Declare.
15145 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
15146 connection if Gpm_GetEvent fails.
15147
15148 * window.c (set_window_buffer): Always preserve current-buffer.
15149
15150 2008-09-12 Glenn Morris <rgm@gnu.org>
15151
15152 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
15153
15154 2008-09-11 Glenn Morris <rgm@gnu.org>
15155
15156 * charset.c (charset-map-path): Doc fix.
15157
15158 2008-09-10 Kenichi Handa <handa@m17n.org>
15159
15160 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
15161
15162 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
15163 compose a grapheme cluster with the preceding base glyph.
15164
15165 * composite.c (composition_compute_stop_pos): Fix previous change.
15166 Reset cmp_it->id to -1 at first.
15167
15168 2008-09-10 Glenn Morris <rgm@gnu.org>
15169
15170 * Makefile.in (character.o, chartab.o): Fix config.h typo.
15171
15172 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
15173
15174 * keyboard.c (read_key_sequence): Reapply translation maps when
15175 switching keyboards.
15176
15177 2008-09-09 Kenichi Handa <handa@m17n.org>
15178
15179 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
15180 characters.
15181
15182 * composite.c (FORWARD_CHAR): Fix calculation
15183 of (POSITION).pos_byte.
15184 (composition_compute_stop_pos): Limit the search of composition to
15185 at most 500 characters ahead. If we reach the limit or find a
15186 newline, set cmp_it->ch to -2 and return 0.
15187 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
15188
15189 2008-09-08 Kenichi Handa <handa@m17n.org>
15190
15191 * indent.c (Fvertical_motion): Be sure to set
15192 it_overshoot_expected if it.cmp_it.id is non-negative.
15193
15194 2008-09-07 Andreas Schwab <schwab@suse.de>
15195
15196 * callproc.c (Fcall_process): Don't hold references to string data
15197 across garbage collection. Move initialisation of new_argv down
15198 to avoid compiler bug.
15199
15200 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15201
15202 * process.c (Fsystem_process_attributes): Doc fix.
15203
15204 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
15205
15206 * callproc.c (Fcall_process): Canonicalize current directory name.
15207
15208 * xdisp.c (move_it_to): When moving by vpos, ensure that the
15209 iterator advances to the next line if the current line ends in a
15210 continued tab.
15211
15212 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
15213
15214 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
15215 member to point to cmp_from.
15216
15217 * xdisp.c: Doc fix for references to gidx data member.
15218
15219 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15220
15221 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
15222
15223 2008-09-07 Kenichi Handa <handa@m17n.org>
15224
15225 * composite.c (FORWARD_CHAR): Check STOP after
15226 incrementing (POSITION).pos.
15227
15228 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
15229
15230 * process.c (Fsystem_process_attributes): Doc fix.
15231
15232 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
15233
15234 * keyboard.c (Ftop_level): Doc fix.
15235
15236 2008-09-06 Eli Zaretskii <eliz@gnu.org>
15237
15238 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
15239 minibuffer, don't let lower part of menu invade the echo area.
15240
15241 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
15242 "char *q" to access menu text and advance through it. Revert the
15243 change that displayed ">" instead of ASCII character 0x10.
15244
15245 2008-09-05 Eli Zaretskii <eliz@gnu.org>
15246
15247 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
15248 toggle boxes and radio buttons on MS-DOS as well.
15249
15250 2008-09-05 Kenichi Handa <handa@m17n.org>
15251
15252 * composite.c (autocmp_chars): Check lookback count.
15253 (composition_compute_stop_pos): Set cmp_it->lookback.
15254 (composition_reseat_it): Check lookback count.
15255 (struct position_record): New struct.
15256 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
15257 (find_automatic_composition): New function.
15258 (composition_adjust_point): Use find_automatic_composition.
15259
15260 * dispextern.h (struct composition_it): New member lookback.
15261
15262 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
15263
15264 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
15265 if moving by a single line.
15266
15267 2008-09-02 Andreas Schwab <schwab@suse.de>
15268
15269 * xterm.c (x_delete_display): Fix merge error.
15270
15271 * fileio.c (Fexpand_file_name): Remove unused variables.
15272
15273 2008-09-02 Eli Zaretskii <eliz@gnu.org>
15274
15275 * fileio.c (Fexpand_file_name): Copy argument `name' into local
15276 storage on all platforms, not just on DOS_NT.
15277
15278 2008-09-02 Jason Rumney <jasonr@gnu.org>
15279
15280 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
15281 Ensure mouse is not grabbed after menu is finished.
15282
15283 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
15284
15285 * xfaces.c (Finternal_set_alternative_font_family_alist)
15286 (Finternal_set_alternative_font_registry_alist): Properly copy
15287 entire alist structure.
15288
15289 2008-09-01 Kenichi Handa <handa@m17n.org>
15290
15291 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
15292 representative chars of the script is a vector.
15293 (ftfont_list): Handle the case where the representative chars of
15294 the script is a vector.
15295
15296 * character.c (syms_of_character): Docstring of
15297 script-representative-chars fixed.
15298
15299 2008-08-31 Eli Zaretskii <eliz@gnu.org>
15300
15301 * msdos.c (BUILD_CHAR_GLYPH): New macro.
15302 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
15303 the menu. Allocate larger buffer for `text', to account for
15304 possible ^C characters.
15305
15306 2008-08-31 Martin Rudalics <rudalics@gmx.at>
15307
15308 * xdisp.c (prepare_menu_bars): Don't call
15309 Vwindow_size_change_functions with arg Qt.
15310
15311 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15312
15313 * font.h (font_range):
15314 * fileio.c (report_file_error):
15315 * composite.c (composition_update_it): Yet another int/Lisp_Object
15316 mixup (YAILOM).
15317
15318 2008-08-30 Glenn Morris <rgm@gnu.org>
15319
15320 * data.c (Fmake_variable_frame_local): Doc fix.
15321
15322 * frame.c (Fmodify_frame_parameters): Doc fix.
15323
15324 2008-08-30 Eli Zaretskii <eliz@gnu.org>
15325
15326 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
15327 needed by GetTokenInformation.
15328 (w32_system_process_attributes): Check return values of all system
15329 APIs.
15330
15331 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
15332 only when the state changes.
15333 (IT_update_begin, IT_update_end): Add termscript trace.
15334
15335 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
15336 clipboard is unavailable. Set dst to NULL if it doesn't point to
15337 malloc'ed data.
15338 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
15339 passing random values to xfree.
15340
15341 * dispnew.c (init_display): Set `tty's association in frame's
15342 parameters alist to the name of the terminal device, if that is known.
15343
15344 2008-08-29 Jason Rumney <jasonr@gnu.org>
15345
15346 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
15347
15348 2008-08-29 Eli Zaretskii <eliz@gnu.org>
15349
15350 * composite.c (fill_gstring_body): Avoid compiler warnings.
15351
15352 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
15353 LGLYPH_SET_CODE to avoid compiler warnings.
15354
15355 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
15356
15357 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
15358
15359 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
15360 LGLYPH_SET_CODE.
15361
15362 2008-08-29 Kenichi Handa <handa@m17n.org>
15363
15364 * fileio.c (report_file_error): Don't downcase the first character
15365 of errstring if it is still unibyte.
15366
15367 2008-08-29 Kenichi Handa <handa@m17n.org>
15368
15369 These changes are to re-implement the automatic composition so
15370 that it doesn't use text properties.
15371
15372 * Makefile.in (ftfont.o): Depend on composite.h.
15373 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
15374
15375 * character.h (Vunicode_category_table): Extern it.
15376
15377 * character.c (Vunicode_category_table): New variable.
15378 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
15379
15380 * chartab.c (optimize_sub_char_table): Perform more greedy
15381 optimization.
15382
15383 * composite.h (enum composition_method):
15384 Delete COMPOSITION_WITH_GLYPH_STRING.
15385 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
15386 (Vcomposition_function_table): Extern it.
15387 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
15388 (composition_gstring_put_cache, composition_gstring_from_id)
15389 (composition_gstring_p, composition_gstring_width)
15390 (composition_compute_stop_pos, composition_reseat_it)
15391 (composition_update_it, composition_adjust_point): Extern them.
15392 (Fcomposition_get_gstring): EXFUN it.
15393
15394 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
15395 (Vcomposition_function_table)
15396 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
15397 (gstring_hash_table, gstring_work, gstring_work_headers):
15398 New variables.
15399 (gstring_lookup_cache, composition_gstring_put_cache)
15400 (composition_gstring_from_id, composition_gstring_p)
15401 (composition_gstring_width, fill_gstring_header)
15402 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
15403 (composition_reseat_it, composition_update_it)
15404 (composition_adjust_point, Fcomposition_get_gstring): New functions.
15405 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
15406 and gstring_work_headers. DEFVAR_LISP composition-function-table.
15407 Defsubr composition_get_gstring.
15408
15409 * dispextern.h (struct glyph): New union u.cmp. Delete the member
15410 cmp_id.
15411 (struct glyph_string): Delete the member gidx. New members
15412 cmp_id, cmp_from, and cmp_to.
15413 (enum it_method): Delete GET_FROM_COMPOSITION.
15414 (struct composition_it): New struct.
15415 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
15416 Delete c, len, cmp_id, cmp_len in u.comp.
15417
15418 * font.h (enum lgstring_indices): Delete it.
15419 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
15420 (enum lglyph_indices): Likewise.
15421 (font_range): Adjust extern.
15422 (font_fill_lglyph_metrics): Extern it.
15423
15424 * font.c (QCf): New variable.
15425 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15426 (font_prepare_composition): Delete this function.
15427 (font_range): Type and arguments changed.
15428 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
15429 (font_fill_lglyph_metrics): New function.
15430 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
15431 (syms_of_font): DEFSYM QCf. Delete defsubr for
15432 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
15433 Defsubr Sfont_shape_gstring.
15434
15435 * fontset.h (font_for_char): Extern it.
15436
15437 * fontset.c (font_for_char): New function.
15438
15439 * ftfont.c: Include composite.h.
15440 (ftfont_resolve_generic_family): Add langset "en" to pattern.
15441 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15442
15443 * indent.c: Include composite.h and dispextern.h.
15444 (check_composition): Delete this function.
15445 (scan_for_column): Handle composition by
15446 composition_compute_stop_pos, composition_reseat_it, and
15447 composition_update_it.
15448 (compute_motion): Likewise.
15449 (Fvertical_motion): Fix checking of composition.
15450
15451 * keyboard.c (adjust_point_for_property): Check composition by
15452 composition_adjust_point.
15453
15454 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
15455 struct glyph_string.
15456
15457 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
15458 (append_composite_glyph): Adjust for the change of struct it and
15459 struct glyph.
15460 (produce_composite_glyph): Likewise.
15461
15462 * w32term.c (x_draw_composite_glyph_string_foreground):
15463 Adjust for the change of struct glyph_string.
15464 (x_draw_glyph_string): Likewise.
15465
15466 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
15467 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
15468
15469 * xdisp.c: Include font.h.
15470 (it_props): Delete the entry for Qauto_composed.
15471 (init_iterator): Initialize it->cmp_it.id to -1.
15472 (compute_stop_pos): Call composition_compute_stop_pos.
15473 (face_before_or_after_it_pos): Adjust for the change of struct it.
15474 (handle_auto_composed_prop): Delete it.
15475 (handle_composition_prop): Handle only static composition.
15476 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
15477 from xassert. Initialize it->cmp_it.stop_pos.
15478 (push_it): Adjust for the change of struct it.
15479 (pop_it): Likewise.
15480 (get_next_element): Delete next_element_from_composition.
15481 (CHAR_COMPOSED_P): New macro.
15482 (get_next_display_element): For automatic composition, get a face
15483 from the font in the glyph-string.
15484 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
15485 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
15486 (next_element_from_string): Check if the character at the current
15487 position is composed by CHAR_COMPOSED_P.
15488 (next_element_from_buffer): Likewise.
15489 (next_element_from_composition): Adjust for the change of struct it.
15490 Update it->cmp_it.
15491 (dump_glyph): Adjust for the change of struct glyph.
15492 (fill_composite_glyph_string): Adjust for the change of struct
15493 it and struct glyph. Don't handle automatic composition here.
15494 (fill_gstring_glyph_string): New function.
15495 (x_get_glyph_overhangs): Handle automatic composition.
15496 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
15497 (BUILD_GSTRING_GLYPH_STRING): New macro.
15498 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
15499 automatic composition.
15500 (append_composite_glyph): Adjust for the change of struct it and
15501 struct glyph.
15502 (x_produce_glyphs): Adjust for the change of struct it.
15503
15504 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15505 the change of struct glyph_string.
15506 (x_draw_glyph_string): Likewise.
15507
15508 2008-08-29 Glenn Morris <rgm@gnu.org>
15509
15510 * buffer.c (word-wrap): Doc fix.
15511 * xdisp.c (truncate-partial-width-windows): Doc fix.
15512 Increase default to 50.
15513
15514 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
15515
15516 * xdisp.c (update_tool_bar_unwind): New function.
15517 (update_tool_bar): Temporarily set selected frame before building
15518 tool-bar items.
15519
15520 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
15521
15522 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
15523 snprintf, respectively.
15524 (xd_append_arg): Convert strings with Fstring_make_unibyte.
15525
15526 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
15527
15528 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
15529 LDFLAGS to GNUstep CC invocation.
15530
15531 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
15532
15533 * indent.c (Fvertical_motion): Revert last change. Handle the
15534 general case where we are moving forward, and PT spans multiple
15535 screen lines.
15536
15537 * eval.c (find_handler_clause): Temporarily increase
15538 max-lisp-eval-depth while printing the backtrace buffer, to
15539 guarantee that help-mode code can run.
15540
15541 2008-08-27 Eli Zaretskii <eliz@gnu.org>
15542
15543 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
15544 colors under -rv.
15545 (IT_set_frame_parameters): Don't swap foreground and background
15546 colors if `(reverse . t)' is present in the frame properties.
15547 (internal_terminal_init): Call init_frame_faces only for the
15548 initial frame.
15549
15550 2008-08-27 Andreas Schwab <schwab@suse.de>
15551
15552 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
15553
15554 2008-08-27 Andreas Schwab <schwab@suse.de>
15555
15556 * search.c (search_buffer): Set char_base to zero only at the end.
15557
15558 2008-08-27 Kenichi Handa <handa@m17n.org>
15559
15560 * fileio.c (report_file_error): Fix handling of multibyte error string.
15561
15562 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
15563
15564 * xterm.c (x_term_init): Temporarily hide the partially
15565 initialized terminal while calling vendor-specific-keysyms.
15566
15567 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15568
15569 * msdos.c (internal_terminal_init): Most initializations done only
15570 once, especially initial_screen_colors[] and termscript open.
15571
15572 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15573
15574 * eval.c (Fcondition_case): Doc fix.
15575
15576 * widgetprv.h (EmacsFramePart): Change font member to the new font
15577 struct.
15578
15579 * widget.c: Include character.h and font.h for XSETFONT.
15580 (setup_frame_gcs): Compute X font id from font struct, just once.
15581
15582 2008-08-26 Eli Zaretskii <eliz@gnu.org>
15583
15584 * term.c (get_named_tty): Fix last change.
15585
15586 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
15587
15588 * indent.c (Fvertical_motion): If moving forward starting from a
15589 multi-line string, move the iterator to the last line of that string.
15590
15591 2008-08-25 Eli Zaretskii <eliz@gnu.org>
15592
15593 * frame.c (do_switch_frame): Mark previously displayed frame as
15594 obscured for FRAME_MSDOS_P frames as well.
15595
15596 2008-08-24 Eli Zaretskii <eliz@gnu.org>
15597
15598 * frame.c (make_terminal_frame): Initialize f->terminal,
15599 f->terminal->reference_count, and scroll bars on MS-DOS as well.
15600 Set the top frame to newly created frame.
15601 (Fmake_terminal_frame): Reuse the_only_display_info.
15602
15603 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
15604 estimating available memory.
15605
15606 2008-08-23 David Reitter <david.reitter@gmail.com>
15607
15608 * nsterm.m (ns_draw_window_cursor): Don't call
15609 NSDisableScreenUpdates and NSEnableScreenUpdates on
15610 non-NS_IMPL_COCOA systems.
15611
15612 2008-08-23 Andreas Schwab <schwab@suse.de>
15613
15614 * process.c (procfs_system_process_attributes): Fix use of
15615 uninitialized variables.
15616
15617 2008-08-23 Eli Zaretskii <eliz@gnu.org>
15618
15619 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
15620
15621 * dispnew.c (init_display): Remove MS-DOS specific conditions for
15622 calling tty-set-up-initial-frame-faces.
15623
15624 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
15625 Allow MSDOS frames along with X frames.
15626
15627 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
15628 addition to output_termcap.
15629
15630 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
15631
15632 * termchar.h (FRAME_TTY): Support output_msdos_raw.
15633 (struct tty_display_info) [MSDOS]: Add fields related to mouse
15634 highlight.
15635
15636 * process.c [!subprocesses]: Define QCname.
15637 (syms_of_process): Intern and staticpro it.
15638
15639 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
15640 Adjust for changes in encoding/decoding routines.
15641 Use encode_coding_object and decode_coding_object instead of
15642 encode_coding and decode_coding.
15643
15644 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
15645
15646 * dosfns.c: Include frame.h before termhooks.h.
15647 (dos_cleanup): Use CURTTY ()->termscript instead of a global
15648 variable termscript.
15649
15650 * s/msdos.h (USER_FULL_NAME): Define.
15651 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
15652
15653 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
15654 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
15655 pw->pw_gecos.
15656
15657 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
15658 SELECTED_FRAME as additional (1st) argument.
15659 (tty_read_avail_input): Handle output_msdos_raw in
15660 addition to output_termcap.
15661
15662 * msdos.c: Include frame.h before termhooks.h.
15663 (mouse_on, mouse_off, mouse_moveto, mouse_init)
15664 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
15665 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
15666 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
15667 (IT_set_terminal_modes, IT_reset_terminal_modes)
15668 (IT_set_frame_parameters): Use tty->termscript instead of a global
15669 variable termscript.
15670 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
15671 global variable terminal_coding. Don't refer to
15672 Vnonascii_translation_table.
15673 (internal_terminal_init): Set Vwindow_system in current_kboard.
15674 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
15675 Announce date and time of session start, if termscript is open.
15676 Don't zero out the_only_display_info (it is done in
15677 term.c:init_tty). Open termscript only of not already open.
15678 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
15679 here instead of dos_ttraw. Don't initialize display if this is an
15680 initial tty. Don't set FRAME_FONT.
15681 (Vwindow_system_version): Bump to 23.
15682 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
15683 is available, set up mouse_position_hook.
15684 (dos_ttraw, IT_set_terminal_modes): If called with initial
15685 terminal, do nothing.
15686 (IT_set_frame_parameters): Handle the Qtty_type frame
15687 parameter by calling internal_terminal_init.
15688 (dos_set_window_size, show_mouse_face)
15689 (clear_mouse_face, IT_note_mode_line_highlight)
15690 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
15691 (dos_rawgetc): Use tty_display_info instead of x_display_info.
15692 (initialize_msdos_display): New function.
15693 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
15694 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
15695 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
15696 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
15697 Accept additional argument: a pointer to a frame. Update all callers.
15698 (request_sigio, unrequest_sigio): Don't define, now defined on
15699 sysdep.c.
15700 (IT_write_glyphs): Rewrite to use encode_terminal_code.
15701
15702 * term.c [MSDOS]: Include msdos.h.
15703 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
15704 conditional to DOS_NT. Allow only one call to this function in a
15705 session. Don't allocate a new struct tty_display_info; instead,
15706 reuse the_only_display_info. Call get_tty_size to get screen
15707 dimensions. Call init_baud_rate to set bad_rate.
15708 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
15709 (Fsuspend_tty) [MSDOS]: Don't close input and output.
15710 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
15711 (get_tty_terminal, get_named_tty, Ftty_type)
15712 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
15713 output_termcap.
15714 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
15715 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
15716 only when subprocesses are supported.
15717
15718 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
15719 f->output_data.x.
15720 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
15721 terminal devices.
15722
15723 * msdos.h: Remove definition of struct x_display_info and struct
15724 x_output.
15725 (FRAME_FONT): Use output_data.tty.
15726 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
15727 (struct x_display_info): Rename from display_info. Update all users in
15728 msdos.c.
15729 (struct x_output): Remove background_pixel and foreground_pixel.
15730 (the_only_display_info): Rename from the_only_x_display.
15731 (dos_ttraw): Update prototype.
15732
15733 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
15734 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
15735
15736 2008-08-23 Jason Rumney <jasonr@gnu.org>
15737
15738 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
15739 (fn_TIFFSetDirectory): New library function used.
15740 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
15741 (tiff_load): Use :index to select among multiple images. Set count
15742 property when multiple images exist.
15743 (gif_format): Use :index, not :image.
15744
15745 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
15746
15747 * xdisp.c (try_scrolling): Check INT_MAX instead of
15748 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
15749 to obtain INT_MAX.
15750
15751 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
15752
15753 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
15754
15755 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
15756
15757 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
15758 GNUstep library location.
15759
15760 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
15761
15762 * xfaces.c (x_update_menu_appearance): Check validity of menu font
15763 before using it.
15764
15765 * puresize.h (BASE_PURESIZE): Increase to 1250000.
15766
15767 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15768
15769 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
15770 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
15771 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
15772 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
15773 (EmacsApp-cursor_blink_handler): Remove declaration.
15774 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
15775 match 01 Feb 2008 changes in xterm.c.
15776 (ns_read_socket): Add cast to avoid warning.
15777 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
15778 GNUstep.
15779
15780 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
15781
15782 * xselect.c (x_get_foreign_selection): Return nil if desired
15783 selection could not be obtained, instead of signalling an error.
15784
15785 2008-08-20 David Reitter <david.reitter@gmail.com>
15786
15787 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
15788 * nsterm.m: Remove ns-specific code for cursor blinking.
15789 (ns_draw_window_cursor): Clear cursor properly rather than
15790 redrawing the area. Respect width of bar cursors.
15791 These changes enable the use of generic blink-cursor-mode and
15792 generic cursor types in NS and support smooth cursor movements (do
15793 not blink off after command).
15794 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
15795 Nextstep, too.
15796
15797 2008-08-19 Kenichi Handa <handa@m17n.org>
15798
15799 * font.c (Vfont_log_deferred): New variable.
15800 (font_add_log): Check Vfont_log_deferred.
15801 (font_deferred_log): New function.
15802
15803 * font.h (font_deferred_log): Extern it.
15804
15805 * fontset.c (reorder_font_vector): Use encoding charset of fonts
15806 for sorting.
15807 (face_for_char): Use deferred log.
15808
15809 2008-08-18 Kenichi Handa <handa@m17n.org>
15810
15811 * fontset.c (face_for_char): Add font log.
15812
15813 * font.c (font_add_log): Add the font properties :script, :lang,
15814 and :otf in the log.
15815
15816 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
15817
15818 * xdisp.c: Remove dead code.
15819 (handle_invisible_prop, next_overlay_string): Defer call to
15820 setup_for_ellipsis.
15821 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15822
15823 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
15824
15825 * xfaces.c (lookup_derived_face): Properly handle possible zero
15826 return value of get_lface_attributes.
15827 (merge_faces): Don't tell lookup_derived_face to signal an error
15828 if face is not found.
15829
15830 * dired.c (Fdirectory_files): Doc fix.
15831
15832 * process.c (make_process): Initialize kill_without_query struct
15833 member.
15834
15835 2008-08-15 Eli Zaretskii <eliz@gnu.org>
15836
15837 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15838 Alternative calculation of totphys for Visual Studio 6.
15839
15840 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15841
15842 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15843 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15844 All users changed.
15845 (stat): Only root directory passed to GetDriveType. Allow RAM
15846 disk as well as local fixed disk when w32-get-true-file-attributes
15847 is set to `local'.
15848 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15849 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15850 (w32_cached_id, w32_add_to_cache): New functions.
15851 (get_name_and_id): Look account names in the cache before calling
15852 lookup_account_sid.
15853 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15854 New initialization flags.
15855 (globals_of_w32): Initialize them to zero.
15856 (w32_system_process_attributes): Use w32_cached_id and
15857 w32_add_to_cache.
15858
15859 2008-08-14 Lawrence Mitchell <wence@gmx.li>
15860
15861 * lread.c (Fread_char, Fread_char_exclusive): If no character
15862 event is read before timeout is reached, return nil, rather than
15863 converting to a number.
15864
15865 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
15866
15867 * fns.c (use_dialog_box): Doc fix.
15868
15869 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15870 on OS X.
15871
15872 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
15873
15874 * frame.c (Qns_parse_geometry): New var.
15875 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15876
15877 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
15878
15879 * xdisp.c (x_produce_glyphs): Handle the case when font has no
15880 space character in calculating tabs.
15881
15882 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
15883
15884 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15885
15886 2008-08-10 Glenn Morris <rgm@gnu.org>
15887
15888 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15889 silence gcc "limited range of data type" warnings in some
15890 make_fixnum_or_float calls.
15891
15892 2008-08-09 Eli Zaretskii <eliz@gnu.org>
15893
15894 * w32.c (w32_system_process_attributes): If the process does not
15895 exist, return nil.
15896
15897 * w32.c: Include thelp32.h, psapi.h and coding.h.
15898 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15899 declarations.
15900 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15901 (Process32Next_Proc): New typedefs.
15902 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15903 (g_b_init_process32_next, g_b_init_open_thread_token)
15904 (g_b_init_impersonate_self, g_b_init_revert_to_self)
15905 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15906 (g_b_init_get_process_working_set_size)
15907 (g_b_init_global_memory_status_ex): New static variables.
15908 (globals_of_w32): Initialize them.
15909 (create_toolhelp32_snapshot, process32_first, process32_next)
15910 (open_thread_token, impersonate_self, revert_to_self)
15911 (get_process_memory_info, get_process_working_set_size)
15912 (global_memory_status, global_memory_status_ex): New wrapper
15913 functions.
15914 (w32_list_system_processes, w32_system_process_attributes)
15915 (enable_privilege, restore_privilege, ltime, process_times):
15916 New functions.
15917 (convert_time_raw): New function.
15918 (convert_time): Remove conversion of FILETIME into time in 100
15919 nsec units, call convert_time_raw instead.
15920
15921 * process.h (w32_list_system_processes, w32_system_process_attributes):
15922 Add prototypes.
15923 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15924 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15925 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15926 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15927
15928 * process.c (Fsystem_process_attributes): Doc fix.
15929
15930 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
15931
15932 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15933 a continued multi-char glyph; if so, advance to the actual glyph.
15934
15935 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
15936
15937 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15938
15939 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15940 (.m.o): Use it.
15941 * config.in: Regenerate.
15942
15943 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
15944
15945 * xdisp.c (redisplay_window): Revert last change.
15946 (try_window): Check bottom scroll margin too.
15947
15948 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15949
15950 * config.in: Regenerate.
15951
15952 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15953 -list-load-path-shadows'.
15954 (nsgui.h): Reduce number of things depending on it.
15955
15956 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
15957
15958 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15959 instead of window-end which does the wrong thing at eob.
15960 (try_cursor_movement): Minor optimization.
15961 (redisplay_window): If scroll margin is defined, don't assume
15962 window doesn't need scrolling.
15963
15964 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
15965
15966 * config.in: Regenerate.
15967
15968 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15969 (mostlyclean): Don't delete *.d under NS.
15970
15971 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15972
15973 2008-08-06 Kenichi Handa <handa@m17n.org>
15974
15975 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15976
15977 2008-08-06 Andreas Schwab <schwab@suse.de>
15978
15979 * config.in: Regenerate.
15980
15981 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
15982
15983 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15984 forcing a window start.
15985
15986 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15987 (auto_save_1): Update modtime when auto-save-list-file-name is on.
15988
15989 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
15990
15991 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15992 argument.
15993
15994 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
15995
15996 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15997 <scroll-down-aggressively, before-change-functions>:
15998 <after-change-functions>: Reflow docstrings.
15999
16000 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16001 Ken Raeburn <raeburn@gnu.org>
16002
16003 Dock menu customization, based on a patch by Ken Raeburn, plus some
16004 other fixes.
16005 * nsmenu.m (dockMenu): New variable.
16006 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
16007
16008 * nsterm.h (dockMenu): Declare.
16009
16010 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
16011 (ns_term_init): Initialize dockMenu.
16012 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
16013 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
16014 left.
16015
16016 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
16017
16018 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16019
16020 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
16021
16022 * config.in: Regenerate.
16023
16024 2008-08-04 Seiji Zenitani <zenitani@mac.com>
16025
16026 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
16027
16028 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
16029
16030 * nsterm.h (find_and_call_menu_selection): Fix prototype.
16031
16032 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
16033
16034 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
16035
16036 * keyboard.h: Comment an #endif.
16037
16038 * lisp.h (have_menus_p): Adjust comment.
16039
16040 * menu.c (find_and_return_menu_selection): Fix comparison with
16041 client_data.
16042
16043 * nsmenu.m (popup_activated_flag): New variable.
16044 (popup_activated): New function.
16045 (menu-or-popup-active-p): New exported lisp definition.
16046 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
16047 when popup done.
16048 (ns_popup_dialog): Set popup_activated_flag.
16049
16050 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
16051 version for GNUstep (handled by conditional typedef in nsterm.m).
16052 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
16053 in rgb.txt).
16054
16055 * process.c (init_process): Use DARWIN_OS, not DARWIN.
16056
16057 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
16058
16059 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
16060
16061 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
16062 shortcircuit if popup_activated like GTK and X toolkit.
16063
16064 * m/inter386.h: Change DARWIN to DARWIN_OS.
16065
16066 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
16067 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
16068 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
16069 Expand comment on NO_SOCK_SIGIO.
16070
16071 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
16072
16073 * nsterm.m (windowDidResize): Remove stopModal call.
16074
16075 2008-08-03 Andreas Schwab <schwab@suse.de>
16076
16077 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
16078 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
16079
16080 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
16081
16082 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
16083 Don't use uninitialized pointer variable when using getrlimit.
16084
16085 2008-08-02 Jason Rumney <jasonr@gnu.org>
16086
16087 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
16088
16089 2008-08-02 Eli Zaretskii <eliz@gnu.org>
16090
16091 * alloc.c (NSTATICS): Bump to 0x640.
16092
16093 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
16094
16095 * lisp.h: Add prototype for directory_files_internal.
16096
16097 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
16098 New functions.
16099 (syms_of_process): Defsubr them. Add initializations for various
16100 Q* symbols used in procfs_system_process_attributes.
16101 (procfs_list_system_processes, procfs_system_process_attributes)
16102 [HAVE_PROCFS]: New functions.
16103 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
16104 (procfs_get_total_memory): New functions.
16105
16106 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16107
16108 * xfaces.c (Fx_load_color_file): Fix previous change;
16109 it is #ifdef WINDOWSNT, not WINDOWS_NT.
16110
16111 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
16112
16113 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
16114
16115 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16116
16117 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
16118
16119 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
16120
16121 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
16122
16123 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
16124 define NSApplicationDelegateReplySuccess.
16125 (EmacsView -converstationIdentifier): Use long instead of
16126 NSInteger for GNUstep, since it doesn't have NSInteger.
16127
16128 * xmenu.c: Revert last change.
16129
16130 * keyboard.h: Fix last change.
16131
16132 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
16133
16134 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
16135 on Windows.
16136
16137 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16138
16139 Warning clearing and clean-up in NS port.
16140 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
16141 Add prototypes.
16142 * nsgui.h (FACE_DEFAULT): Remove, unused.
16143 (XGCValues): Change colors to unsigned long.
16144 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
16145 nsterm.m.
16146 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
16147 (ns_list_fonts): Remove, unused.
16148 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
16149 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
16150 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
16151 (nsfont_draw): Compare face colors to 0, not nil.
16152 * nsmenu.m (struct widget_value): Drop unneeded declaration.
16153 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
16154 (-addSubmenuWithTitle:): Use NSMenuItem class.
16155 (ns_popup_menu): Use NO, not NULL, for enabled setting.
16156 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
16157 (ns_clip_to_row): Make gc arg a BOOL.
16158 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
16159 ns_clip_to_row() call.
16160 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
16161 used). Cast FRAME_FONT assignments.
16162 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
16163 (ns_string_to_lispmod): Change arg to const char.
16164 (ns_term_init): Use NSMenuItem class.
16165 (EmacsApp -openFile:): Move to different section of file.
16166 (EmacsApp -application:openFiles:): Don't return a value, call
16167 -replyToOpenOrPrint:.
16168 (EmacsView -keyDown:): Fix up cast.
16169 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
16170 (EmacsView -menuDown:): Cast tag in call to
16171 find_and_call_menu_selection().
16172 (ns_list_fonts): Remove, unused.
16173 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
16174 (ns_fontname_to_xlfd): Make static.
16175 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
16176 Remove prototypes (now in keyboard.h).
16177 (next_menubar_widget_id): Remove, unused.
16178 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
16179 Remove prototypes (now in keyboard.h).
16180 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
16181
16182 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
16183
16184 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
16185 (floatfns.o): Depend on syssignal.h.
16186 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
16187
16188 * systty.h: Fix previous change that removed BSD_TERMIOS.
16189 Add comments to #ifdefs.
16190
16191 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16192
16193 * w32fns.c (w32-load-color-file): Remove.
16194 (x-open-connection): Use renamed Fx_load_color_file.
16195 * xfaces.c (x-load-color-file): Add.
16196 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
16197 Emacs.clr.
16198 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
16199
16200 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
16201
16202 * dbusbind.c (Fdbus_call_method_asynchronously)
16203 (Fdbus_method_error_internal): New defuns.
16204 (xd_read_message): Handle also reply messages.
16205 (Vdbus_registered_functions_table): Extend docstring.
16206
16207 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
16208
16209 * keyboard.c (gobble_input): Fix previous change.
16210
16211 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16212
16213 * bitmaps/README:
16214 * xfns.c:
16215 * termcap.c:
16216 * term.c:
16217 * syswait.h:
16218 * systty.h:
16219 * systime.h:
16220 * syssignal.h:
16221 * sysdep.c:
16222 * process.h:
16223 * process.c:
16224 * print.c:
16225 * ndir.h:
16226 * lread.c:
16227 * keyboard.c:
16228 * getpagesize.h:
16229 * floatfns.c:
16230 * fileio.c:
16231 * emacs.c:
16232 * doc.c:
16233 * dispnew.c:
16234 * dired.c:
16235 * data.c:
16236 * callproc.c:
16237 * buffer.c:
16238 * README:
16239 * Makefile.in:
16240 * s/template.h:
16241 * s/msdos.h:
16242 * m/vax.h: Remove VMS support.
16243 * s/vms.h:
16244 * vlimit.h:
16245 * uaf.h:
16246 * temacs.opt:
16247 * param.h:
16248 * ioctl.h: Remove file.
16249
16250 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
16251
16252 * s/ms-w32.h (MULTI_KBOARD): Remove.
16253 * xterm.c:
16254 * xselect.c:
16255 * xfns.c:
16256 * window.c:
16257 * w32term.c:
16258 * w32fns.c:
16259 * terminal.c:
16260 * termhooks.h:
16261 * term.c:
16262 * sysdep.c:
16263 * keyboard.h:
16264 * keyboard.c:
16265 * frame.h:
16266 * frame.c:
16267 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
16268 * config.in: Regenerate.
16269
16270 2008-07-30 Jason Rumney <jasonr@gnu.org>
16271
16272 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
16273
16274 * w32font.c (w32font_encode_char): Leave as unicode if in range.
16275 (w32font_open_internal): Get unicode version of textmetrics.
16276 Don't enable or disable glyph indices here.
16277 (w32font_open): Disable use of glyph indices.
16278
16279 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
16280
16281 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
16282
16283 * minibuf.c (Vread_buffer_function): Doc fix.
16284
16285 2008-07-30 John Paul Wallington <jpw@pobox.com>
16286
16287 * minibuf.c (read_buffer_completion_ignore_case): New var.
16288 (Fread_buffer): Use it.
16289
16290 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
16291
16292 * systty.h (sensemode): Remove empty #if. Remove reference to
16293 BSD_TERMIOS, unused.
16294
16295 * sysdep.c: Remove reference to DGUX.
16296 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
16297
16298 * config.in: Regenerate.
16299
16300 2008-07-30 Jason Rumney <jasonr@gnu.org>
16301
16302 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
16303
16304 2008-07-29 Jason Rumney <jasonr@gnu.org>
16305
16306 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
16307 is populated.
16308 (uniscribe_encode_char): Always use uniscribe.
16309 Avoid using context if cache is populated.
16310
16311 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
16312
16313 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
16314 open menu.
16315
16316 * gtkutil.c (menu_nav_ended): Remove.
16317 (create_menus): Remove signal connect for menu_nav_ended.
16318
16319 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
16320
16321 * xdisp.c (redisplay_window): Check return value of
16322 compute_window_start_on_continuation_line before forcing a window
16323 start.
16324
16325 2008-07-28 Jason Rumney <jasonr@gnu.org>
16326
16327 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
16328
16329 * w32term.c (w32_enable_unicode_output, cleartype_active):
16330 Remove obsolete display options.
16331 (x_draw_glyph_string_background): Don't use old cleartype_active
16332 workaround.
16333 (w32_initialize): Remove cleartype_active initialization.
16334 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
16335
16336 2008-07-28 Andreas Schwab <schwab@suse.de>
16337
16338 * lisp.h (init_weak_hash_tables, syms_of_font)
16339 (xd_read_queued_messages, syms_of_dbusbind): Declare.
16340 (remove_hash_entry): Don't declare.
16341 * eval.c (maybe_call_debugger): Make static and move before use.
16342 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
16343 * xdisp.c: Include "gtkutil.h" if USE_GTK.
16344 * xterm.h (x_set_frame_alpha): Declare.
16345
16346 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
16347
16348 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
16349 (create_menus): Connect selection-done to menu_nav_ended.
16350
16351 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16352
16353 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
16354 Set Vx_resource_name to a fallback. Replace read of 'buffered'
16355 parameter with read of 'alpha' one.
16356 (Qns_frame_parameter): Remove.
16357 * nsselect.m (selection-coding-system)
16358 (next-selection-coding-system, Vselection_coding_system)
16359 (Vnext_selection_coding_system): Drop.
16360
16361 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16362
16363 * nsfns.m (do-applescript, do_applescript): Rename to
16364 ns-do-applescript, ns_do_applescript, and move within file.
16365
16366 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
16367
16368 Remove support for Mac Carbon.
16369 * mactoolbox.c:
16370 * macterm.h:
16371 * macterm.c:
16372 * macselect.c:
16373 * macmenu.c:
16374 * macgui.h:
16375 * macfns.c:
16376 * mac.c: Remove file.
16377 * s/darwin.h:
16378 * m/intel386.h:
16379 * xfaces.c:
16380 * xdisp.c:
16381 * window.c:
16382 * tparam.c:
16383 * termhooks.h:
16384 * termcap.c:
16385 * term.c:
16386 * syssignal.h:
16387 * sysselect.h:
16388 * sysdep.c:
16389 * process.c:
16390 * lread.c:
16391 * lisp.h:
16392 * keyboard.c:
16393 * image.c:
16394 * fringe.c:
16395 * frame.h:
16396 * frame.c:
16397 * fontset.c:
16398 * font.h:
16399 * font.c:
16400 * fns.c:
16401 * fileio.c:
16402 * emacs.c:
16403 * dispnew.c:
16404 * dispextern.h:
16405 * config.in:
16406 * atimer.c:
16407 * Makefile.in: Remove code for Carbon.
16408
16409 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16410
16411 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
16412
16413 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16414
16415 * macterm.h (kCGBitmapByteOrder32Host): New define for
16416 non-universal SDKs.
16417
16418 * image.c (mac_create_cg_image_from_image, image_load_image_io)
16419 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16420
16421 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
16422 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
16423
16424 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
16425
16426 * w32inevt.c: Include dispextern.h.
16427
16428 2008-07-26 Andreas Schwab <schwab@suse.de>
16429
16430 * print.c (print_object): Fix off-by-one in last change.
16431
16432 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
16433
16434 * term.c (syms_of_term): Don't initialize default_orig_pair,
16435 default_set_foreground and default_set_background on Windows.
16436
16437 2008-07-25 Jason Rumney <jasonr@gnu.org>
16438
16439 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
16440 ScriptItemize. Clean up return value checking. Remove unused
16441 variables.
16442 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
16443 shaping engine.
16444
16445 * w32font.c (w32font_has_char): Handle the case where we can't
16446 determine the script for a character.
16447
16448 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16449
16450 * term.c (syms_of_term): Initialize default_orig_pair,
16451 default_set_foreground, and default_set_background.
16452
16453 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16454 clash (bug#86).
16455 (getloadavg): Callers changed.
16456
16457 * image.c (svg_load_image): Fix last change.
16458 (svg_load_image): Use rsvg_handle_get_dimensions to check that
16459 image size is valid. Use g_object_unref instead of deprecated
16460 rsvg_handle_free to free rsvg handle.
16461 (x_from_xcolors): Don't initialize pixmap (silence compiler).
16462
16463 2008-07-25 Jason Rumney <jasonr@gnu.org>
16464
16465 * w32font.c (w32font_encode_char): Encode characters outside BMP as
16466 surrogates before looking up glyph index.
16467 (w32font_text_extents): Encode as surrogates if falling back to
16468 functions that need UTF-16 wide chars.
16469
16470 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
16471 BMP as surrogates before looking up glyph index.
16472
16473 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
16474
16475 * image.c (svg_load_image): Check for failure in return value of
16476 rsvg_handle_get_pixbuf. Free rsvg handle when done.
16477
16478 2008-07-25 Jason Rumney <jasonr@gnu.org>
16479
16480 * w32font.c (Fx_select_font): Reverse sense of second arg.
16481
16482 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
16483
16484 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
16485 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
16486
16487 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
16488 (PURESIZE): Use it.
16489
16490 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
16491
16492 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
16493 * m/alpha.h (TEXT_END):
16494 * m/ibmrs6000.h (TEXT_END):
16495 * m/macppc.h (TEXT_END):
16496 * s/darwin.h (TEXT_END):
16497 * s/msdos.h (TEXT_END): Remove, unused.
16498 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
16499 * s/cygwin.h: Remove comment.
16500
16501 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
16502 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
16503 * m/intel386.h (DOT_GLOBAL_START):
16504 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
16505 (USG): Remove, file not used on USG platforms.
16506
16507 * Makefile.in (HAVE_X11): Remove empty #else.
16508
16509 2008-07-24 Andreas Schwab <schwab@suse.de>
16510
16511 * fileio.c (Finsert_file_contents): Properly adjust undo list
16512 after format conversion.
16513
16514 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
16515
16516 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
16517 (menu_nav_ended): Remove.
16518 (create_menus): Remove signal connect for menu_nav_ended.
16519 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
16520 create_menus.
16521 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
16522
16523 2008-07-23 Jason Rumney <jasonr@gnu.org>
16524
16525 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
16526 with opened font.
16527 (w32font_open): Set font type to gdi.
16528
16529 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
16530
16531 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
16532
16533 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
16534 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
16535 defines it.
16536 * unexec.c (ADDR_CORRECT): Define unconditionally.
16537
16538 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
16539
16540 * unexec.c: Remove code depending on !COFF and USG, the file is
16541 not used for such systems.
16542
16543 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
16544 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
16545 (LD_SWITCH_SYSTEM_1): Remove, update users.
16546
16547 * s/darwin.h (DATA_END):
16548 * m/intel386.h (DATA_END):
16549 * m/ibmrs6000.h (DATA_END):
16550 * m/alpha.h (DATA_END): Remove, unused.
16551
16552 * config.in: Regenerate.
16553 * s/ms-w32.h (subprocesses): Define unconditionally.
16554 * s/template.h (subprocesses): Update comment.
16555 * s/vms.h (subprocesses):
16556 * s/usg5-4.h (subprocesses):
16557 * s/hpux10-20.h (subprocesses):
16558 * s/gnu-linux.h (subprocesses):
16559 * s/cygwin.h (subprocesses):
16560 * s/bsd-common.h (subprocesses):
16561 * s/aix4-2.h (subprocesses):
16562 * s/darwin.h (subprocesses): Do not define, defined by default now.
16563
16564 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
16565 Remove all references.
16566 (temacs): Add GNUstep specific ld flags.
16567
16568 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
16569 similarly to what X does.
16570
16571 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16572
16573 * nsfns.m (x-list-fonts): Remove.
16574 (syms_of_nsfns): Drop the x-list-fonts declaration.
16575 * nsterm.m: Get rid of remaining "//" comments.
16576
16577 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
16578
16579 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
16580
16581 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
16582 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
16583 (Fns_own_selection_internal, Fx_disown_selection_internal)
16584 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
16585
16586 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
16587 ... */' style of docstrings. Doc fixes.
16588
16589 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16590
16591 * terminfo.c (UP, BC, PC): Undo previous change.
16592
16593 * nsfns.m: Rename ns prefixed functions/variables to the
16594 corresponding x versions. Update references.
16595
16596 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
16597
16598 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
16599
16600 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
16601
16602 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
16603 Remove forwarding functions.
16604 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
16605 non-static.
16606 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
16607 non-static.
16608 (ns_frame_parm_handlers): Use the new names.
16609 (syms_of_nsfns): Move to the end of file.
16610
16611 * nsterm.m (syms_of_nsterm): Move to the end of file.
16612
16613 * dispnew.c (init_display): Remove code for X10.
16614
16615 2008-07-22 Jason Rumney <jasonr@gnu.org>
16616
16617 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
16618 bare drive.
16619
16620 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
16621
16622 * nsterm.m (syms_of_nsterm): Remove debugging println.
16623
16624 2008-07-22 David Reitter <david.reitter@gmail.com>
16625
16626 * nsfns.m (do_applescript, F_do_applescript): NS version of the
16627 Carbon implementation of the same functionality: execute arbitrary
16628 AppleScript code.
16629
16630 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
16631
16632 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
16633 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
16634 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16635 (Fx_display_mm_height, Fx_display_mm_width)
16636 (Fx_display_backing_store, Fx_display_visual_class)
16637 (Fx_display_save_under, Fx_open_connection)
16638 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
16639 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
16640 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16641 (Fx_display_pixel_width, Fx_display_pixel_height)
16642 (Fx_display_usable_bounds, Fx_display_planes)
16643 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
16644 ... */' style of docstrings.
16645
16646 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
16647
16648 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
16649 on this platform.
16650 (mips):
16651 * m/iris4d.h (mips): Do not define.
16652 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
16653
16654 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
16655
16656 * image.c:
16657 * nsfns.m:
16658 * nsselect.m:
16659 * nsterm.h:
16660 * nsterm.m: Rename ns prefixed functions/variables to the
16661 corresponding x versions. Update references.
16662
16663 * m/ibms390x.h (NO_REMAP): Do not undefine.
16664
16665 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
16666
16667 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
16668
16669 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
16670 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
16671 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
16672 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
16673 (Fns_display_mm_height, Fns_display_mm_width)
16674 (Fns_display_backing_store, Fns_display_visual_class)
16675 (Fns_display_save_under, Fns_open_connection)
16676 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
16677 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
16678 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
16679 (Fns_display_pixel_width, Fns_display_pixel_height)
16680 (Fns_display_usable_bounds, Fx_display_planes)
16681 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
16682
16683 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
16684
16685 * print.c (print_object): Check print_depth before searching for
16686 circularities.
16687
16688 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
16689
16690 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
16691 only sprintf.
16692
16693 2008-07-21 Kenichi Handa <handa@m17n.org>
16694
16695 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
16696
16697 2008-07-20 Andreas Schwab <schwab@suse.de>
16698
16699 * syntax.c (find_start_pos, find_start_value)
16700 (find_start_value_byte, find_start_begv, find_defun_start)
16701 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
16702
16703 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16704
16705 * s/sol2-3.h: Insert contents of s/sol2.h.
16706 (LD_SWITCH_SYSTEM): Remove redundant definition.
16707 * s/sol2.h: Remove, unused.
16708
16709 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16710
16711 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
16712
16713 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
16714
16715 * Makefile.in (ns_appdir): Fix typo in find command.
16716
16717 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
16718
16719 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
16720
16721 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
16722 added not supported anymore.
16723
16724 * s/usg5-4-2.h (LIBS_SYSTEM):
16725 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
16726
16727 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16728 * s/lynxos.h (GETPGRP_NO_ARG):
16729 * s/hpux10-20.h (NO_SIOCTL_H):
16730 * s/gnu.h (GETPGRP_NO_ARG):
16731 * s/gnu-linux.h (NO_SIOCTL_H):
16732 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
16733 * s/cygwin.h (GETPGRP_NO_ARG):
16734 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
16735 (C_DEBUG_SWITCH): Remove duplicate definition.
16736
16737 * m/ibms390.h: Remove boilerplate comments.
16738
16739 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
16740
16741 * process.c (HAVE_SERIAL): Consolidate ifdefs.
16742 (wait_reading_process_output): Remove code for SunOS, platform not
16743 supported anymore. Use SOLARIS2 instead of sun.
16744
16745 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16746
16747 * font.c (font_open_by_name): Under NS, default lface height to zero.
16748 (font_open_for_lface): Under NS, set size based on frame fontsize.
16749 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
16750 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
16751
16752 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16753
16754 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
16755 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
16756 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
16757 YES/NO.
16758 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
16759 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
16760 * Makefile.in (clean): Clear out build destination dir.
16761
16762 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16763
16764 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
16765 xterm, xselect.
16766 * lisp.h: Remove declaration of hash_remove.
16767 * nsgui.h: Remove redefinitions of hash_remove.
16768 * fns.c (hash_remove): Rename to hash_remove_from_table.
16769
16770 2008-07-19 Seiji Zenitani <zenitani@mac.com>
16771
16772 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
16773 strdup() the family UTF8String before modifying it.
16774
16775 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
16776
16777 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
16778 NS_FACE_BACKGROUND with 0 instead of nil.
16779 * nsfont.m (nsfont_draw): Same.
16780
16781 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
16782
16783 * nsfns.m (ns_set_background_color): Fix crash.
16784
16785 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
16786
16787 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
16788
16789 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
16790
16791 * puresize.h (BASE_PURESIZE): Increase to 1240000.
16792
16793 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16794
16795 * gtkutil.c: Include <config.h> instead of "config.h".
16796
16797 * lisp.h (Foverlay_buffer): Add EXFUN.
16798
16799 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
16800 child process to complete child_setup. Undo 2005-09-21 change.
16801
16802 * s/darwin.h: Mention setsid after vfork.
16803
16804 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16805
16806 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16807 Depend on macgui.h.
16808
16809 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16810 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16811
16812 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16813 and f19.
16814 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16815
16816 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16817 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16818 Remove enumerators.
16819
16820 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16821 Check if FACE_FROM_ID returns NULL.
16822
16823 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
16824
16825 * w32inevt.c (change_frame_size): Remove extern declaration.
16826 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16827 change_frame_size.
16828
16829 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16830
16831 * getloadavg.c: Revert last change (2008-07-15).
16832
16833 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
16834
16835 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
16836 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
16837 from configure.
16838
16839 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
16840
16841 * s/sol2.h:
16842 * s/sol2-4.h: Reorganize conditionals.
16843
16844 * ecrt0.c: Remove code depending on m68000, not used anymore.
16845
16846 * fns.c (hash_remove): Make static.
16847 * lisp.h (hash_remove): Don't prototype.
16848
16849 * m/ibmrs6000.h:
16850 * m/ibms390x.h:
16851 * m/macppc.h: Remove boilerplate comments.
16852
16853 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16854 Solaris, which does not need them.
16855
16856 * m/vax.h: Remove comments about unsupported systems.
16857
16858 * s/darwin.h: Reorganize ifdefs.
16859
16860 2008-07-17 Andreas Schwab <schwab@suse.de>
16861
16862 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16863
16864 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16865
16866 Use SDATA. Follow coding convention of placing operators at
16867 beginning of next line rather than end of previous line, and placing
16868 spaces around infix operators.
16869
16870 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16871 in case it was defined already.
16872 USE @GNUSTEP_MAKEFILES@ rather than envvars.
16873 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16874 ns_default.
16875 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16876 Lisp_Objects.
16877 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16878 (ns_defined_color, ns_color_to_lisp): Declare.
16879 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16880 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16881 it's accepted even with USE_LISP_UNION_TYPE.
16882 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16883 (update_frame_tool_bar): Remove apparently obsolete tests for
16884 non-integerness of f->tool_bar_lines.
16885 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16886 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16887 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16888 (nsfont_open): Don't confuse NULL for Qnil.
16889 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16890 * menu.h (find_and_call_menu_selection):
16891 * menu.c (find_and_call_menu_selection): Use just int for vector size.
16892 (find_and_return_menu_selection): Always return something.
16893 * frame.h: Include dispextern.h for Display_Info.
16894 (display_x_get_resource): Declare.
16895
16896 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
16897
16898 * syntax.c: Remove stdio.h include accidentally introduced in
16899 Emacs.app commit.
16900 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16901 NS_IMPL_COCOA.
16902 * keyboard.c (handle_async_input, input_available_signal): Remove
16903 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16904
16905 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16906
16907 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16908 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16909 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16910 Use SDATA.
16911
16912 * keymap.c: Remove all NS-specific code.
16913 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16914 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16915 where_is_preferred_modifier, return a different value depending on how
16916 preferred is the binding.
16917 (where_is_internal): Adjust accordingly.
16918 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16919 Adjust to new preferred_sequence_p.
16920 (syms_of_keymap): Declare `where-is-preferred-modifier'.
16921 * keyboard.c (parse_solitary_modifier): Not static any more.
16922 * keyboard.h (parse_solitary_modifier): Declare.
16923
16924 2008-07-16 Andreas Schwab <schwab@suse.de>
16925
16926 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16927 of easymenu.
16928
16929 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
16930
16931 * xdisp.c (move_it_in_display_line): Account for word wrap, so
16932 that we don't move off the line.
16933
16934 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
16935
16936 * keyboard.c (Qsuper): Remove.
16937 (parse_menu_item): Don't call where_is_internal specially for NS.
16938
16939 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16940
16941 * s/gnu-linux.h: Remove boilerplate comments.
16942
16943 * m/alpha.h (__ELF__): Consolidate conditions.
16944
16945 * m/m68k.h (linux): Use GNU_LINUX instead.
16946 Remove boilerplate comments.
16947
16948 * m/intel386.h: Undo refactoring from previous change.
16949 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16950 too, remove dead code.
16951 (linux): Use GNU_LINUX instead.
16952
16953 2008-07-16 Jason Rumney <jasonr@gnu.org>
16954
16955 * w32gui.h: Repeat 26 June changes lost by last change.
16956
16957 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
16958
16959 * systty.h: Remove code for Aix on 386, unsupported platform.
16960
16961 * s/ms-w32.h: Remove boilerplate comments.
16962 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16963
16964 * s/gnu-linux.h (TERM): Remove support.
16965 (HAVE_SYSVIPC): Remove, unused.
16966 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16967 for this system.
16968
16969 * process.c: Remove support for IRIS, unused.
16970 Remove support for TERM, not relevant anymore.
16971
16972 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16973 used with the definition.
16974
16975 * s/aix4-2.h (static): Do not undef.
16976
16977 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16978 only used on Aix.
16979 (HAVE_SYSVIPC): Remove, unused.
16980
16981 * m/hp800.h (CANNOT_DUMP): Do not undef.
16982
16983 * m/alpha.h: Fix comment.
16984
16985 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16986 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16987 used by this configuration.
16988 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16989 * unexec.c: Remove code depending on HPUX and
16990 USG_SHARED_LIBRARIES, not used with this file. Remove code
16991 depending on IRIS, unused. Remove if 0-ed code.
16992
16993 * s/template.h: Remove comments about static.
16994
16995 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16996 Remove if 0-ed code.
16997 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16998 were the same as the default.
16999 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
17000 Remove boilerplate comments.
17001 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
17002 (HAVE_SYSVIPC): Remove, unused.
17003 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
17004
17005 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17006 Remove boilerplate comments.
17007 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17008 Remove boilerplate comments.
17009 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
17010 Remove boilerplate comments.
17011 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
17012
17013 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
17014 USG systems which do not use DATA_SEG_BITS.
17015 Refactor code. Remove boilerplate comments.
17016
17017 * m/ibms390.h:
17018 * m/m68k.h:
17019 * s/bsd-common.h:
17020 * s/cygwin.h:
17021 * s/darwin.h:
17022 * s/freebsd.h:
17023 * s/gnu.h:
17024 * s/msdos.h: Remove boilerplate comments.
17025
17026 * m/iris4d.h: Remove boilerplate comments and code for systems that
17027 do not use this file.
17028 (IRIS_4D): Remove, unused.
17029
17030 * m/mips.h: Remove boilerplate comments and code for systems that
17031 do not use this file.
17032 (SIGN_EXTEND_CHAR):
17033 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
17034 * unexmips.c: Remove file, unused.
17035
17036 * editfns.c (Fuser_full_name): Replace the only use of
17037 USER_FULL_NAME with its value.
17038 * config.in: Regenerate.
17039
17040 2008-07-16 David Reitter <david.reitter@gmail.com>
17041
17042 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
17043 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
17044
17045 2008-07-16 Glenn Morris <rgm@gnu.org>
17046
17047 * emacs.c (system-type): Doc fix.
17048
17049 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
17050
17051 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
17052 If the cache doesn't work, let's fix it, rather than work around it.
17053
17054 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17055
17056 * Makefile.in: Correct additions for nsfont.o in last commit.
17057 * nsfont.m: New file (forgot last commit).
17058
17059 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17060
17061 * callproc.c (set_initial_environment):
17062 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
17063 batch-compiling for bootstrap).
17064
17065 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
17066 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17067
17068 * frame.c (make_initial_frame): Call init_frame_faces(f) in
17069 CANNOT_DUMP case -- fix crash due to different init order.
17070
17071 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17072
17073 Changes and additions for NeXTstep windowing system (Cocoa and
17074 GNUstep) support.
17075
17076 * Makefile.in:
17077 * config.in: Support defines and build commands for NS port.
17078 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
17079 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
17080 * dispextern.h: Include nsgui.h and add needed typedefs under NS
17081 windowing.
17082 (struct face): Add synth_ital field.
17083 * dispnew.c: Include nsterm.h when compiling under NS windowing.
17084 (init_display): Initialize Vinitial_window_system to "ns" when so
17085 compiled.
17086 * emacs.c: Include GSConfig.h when compiling under GNUstep.
17087 (display_arg): Use under NS.
17088 (main): Under NS, allocate autorelease pool and handle command line
17089 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
17090 (standard_args): Add NS-specific args.
17091 (shut_down_emacs): Shut down NS terminal if compiled under NS.
17092 * font.c (DEFAULT_ENCODING): New variable.
17093 (font_find_for_lface): Use it.
17094 (syms_of_font): Load syms_of_nsfont under NS.
17095 * font.h: Declare nsfont_driver when compiled under NS.
17096 * fontset.c: When compiling under NS, include nsterm.h.
17097 (fontset_from_font): Autoconstruct fontset under NS.
17098 * frame.c (various): Under NS, include nsterm.h, add Qns window system
17099 symbol, document and use it.
17100 (do_switch_frame): When for_deletion under Cocoa, add
17101 Fraise_frame(Qnil).
17102 (x_set_frame_parameters): Ensure font attribute changes are picked up.
17103 (x_get_arg): Allow "yes" and "no" as boolean values.
17104 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
17105 Qright under Cocoa.
17106 (focus-follows-mouse): Default to 0 under NS.
17107 * frame.h (enum output_method): Add output_ns.
17108 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
17109 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
17110 (FRAME_WINDOW_P): NS-specific definition.
17111 * fringe.c (max_used_fringe_bitmap): Make public.
17112 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
17113 (getloadavg): Use NeXT code under descendant OS's.
17114 * image.c (includes and header section, x_create_bitmap_from_data)
17115 (x_create_bitmap_from_file, free_bitmap_record, image_background)
17116 (image_background_transparent, x_clear_image_1)
17117 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
17118 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
17119 (x_to_xcolors, x_from_xcolors, x_disable_image)
17120 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
17121 other GUIs, including XPM support using code originally written for
17122 Carbon GUI.
17123 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
17124 using NS API.
17125 (image_ascent): Use font metrics macros instead of direct struct field
17126 access.
17127 * keyboard.c (includes): Add nsterm.h when compiling under NS.
17128 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
17129 Also, handle NS as GTK for menu bar purposes.
17130 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
17131 toolkit where they differ.
17132 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
17133 use cachelist, still needed under NS.
17134 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
17135 (struct widget_value): Define it here for menu.c.
17136 * keymap.c (includes): Include modifier internals.
17137 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
17138 NS.
17139 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
17140 support for preferring sequences using certain modifiers, specified by
17141 the FIRSTONLY argument.
17142 * lisp.h (hash_remove): Rename to avoid name clash when compiling
17143 under NS GNUstep implementation.
17144 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
17145 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
17146 * menu.c: Include nsterm.h under NS.
17147 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
17148 (free_menubar_widget_tree_value, update_submenu_strings)
17149 (find_and_call_menu_selection): Treat NS as X and NT.
17150 (find_and_return_menu_selection): New function, used for popup menus.
17151 * nsgui.h:
17152 * nsterm.h:
17153 * nsfns.m:
17154 * nsimage.m:
17155 * nsmenu.m:
17156 * nsselect.m:
17157 * nsterm.m: New files.
17158 * process.c (wait_reading_process_output): Under NS, call ns_select()
17159 instead of plain select().
17160 * syntax.c (char_quoted): Under NS, avoid a crash when called near
17161 beginning of buffer.
17162 * sysselect.h (init_process): Rename when compiling under Cocoa to
17163 avoid name conflict.
17164 * termhooks.h (display_info): Add ns_display_info to union.
17165 * terminal.c (Fterminal_live_p): Add ns to terminal types.
17166 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
17167 COCOA environment.
17168 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
17169 unexec() signature. (Note, this will dump, but the resulting file
17170 crashes; unexosx is used instead; keeping around for reference and
17171 possible aid in getting dump working under GNUstep.)
17172 * w32gui.h (button_type, widget_value): Remove definitions (now in
17173 keyboard.h).
17174 * window.c: Include nsterm.h when compiling under NS.
17175 * xdisp.c (includes): Include nsterm.h when compiling under NS.
17176 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
17177 other GUI windowing systems.
17178 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
17179 GTK.
17180 (x_consider_frame_title): Under NS, set icon type and frame
17181 modified-state indicator; use ns_set_name_as_filename() when using
17182 formatted title.
17183 (update_window_cursor): Make public when compiling under NS.
17184 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
17185 (hourglass_atimer, Vhourglass_delay
17186 * xfaces.c (header section, init_frame_faces, clear_font_table)
17187 (defined_color, unload_color, x_face_list_fonts)
17188 (prepare_face_for_display): Add NS support parallel to other GUIs.
17189 Emulate GCs like other non-X GUIs.
17190 (split_font_name): Don't lowercase font name under NS.
17191 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
17192 under NS.
17193 * s/darwin.h: Add support for compilation under NS.
17194
17195 2008-07-15 Jason Rumney <jasonr@gnu.org>
17196
17197 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
17198 (w32_show_hourglass): Rename from show_hourglass.
17199 (w32_hide_hourglass): Rename from hide_hourglass.
17200 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
17201 (Vhourglass_delay): Declare extern.
17202 (hourglass_started): Remove.
17203
17204 * xdisp.c (Vhourglass_delay): Remove static.
17205 (hourglass_started, start_hourglass, cancel_hourglass):
17206 Don't include these versions on WINDOWSNT.
17207
17208 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
17209
17210 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
17211 variables (formerly in xfns.c).
17212 (show_hourglass, hide_hourglass): New prototypes (same).
17213 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
17214 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
17215 in xfns.c).
17216 (syms_of_xdisp): Declare/initialize display-hourglass,
17217 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
17218 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
17219 formerly in xfns.c.
17220 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17221 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17222 (start_hourglass, cancel_hourglass): Remove.
17223 (show_hourglass, hide_hourglass): Remove prototypes and static
17224 modifiers.
17225 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
17226 hourglass_atimer, hourglass_shown_p declaration/initialization.
17227 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
17228 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
17229 (start_hourglass, cancel_hourglass): Remove.
17230 (show_hourglass, hide_hourglass): Remove prototypes and static
17231 modifiers.
17232 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
17233 hourglass_atimer, hourglass_shown_p declaration/initialization.
17234 * w32fns.c (display_hourglass_p, Vhourglass_delay)
17235 (DEFAULT_HOURGLASS_DELAY): Remove.
17236 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
17237 hourglass_shown_p declaration/initialization.
17238
17239 2008-07-14 Jason Rumney <jasonr@gnu.org>
17240
17241 * w32fns.c (w32_get_arg): Remove wrapper function.
17242 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
17243 directly.
17244 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
17245
17246 2008-07-14 Kenichi Handa <handa@m17n.org>
17247
17248 * xfont.c (xfont_open): Add workaround for X's bug.
17249
17250 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
17251
17252 * fontset.c: Include <stdio.h> unconditionally.
17253
17254 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
17255
17256 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
17257 for filtering.
17258
17259 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
17260
17261 * s/vms.h: Use __GNUC__ instead of _GNUC_.
17262
17263 * m/macppc.h:
17264 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
17265
17266 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
17267 (SPECIAL_EMACS_INT):
17268 * m/ia64.h (SPECIAL_EMACS_INT):
17269 * m/amdx86-64.h (SPECIAL_EMACS_INT):
17270 * s/gnu.h (NLIST_STRUCT):
17271 * s/aix4-2.h (X11R5_INHIBIT_I18N):
17272 * s/gnu-linux.h (LINUX):
17273 * s/msdos.h (HAVE_FACES):
17274 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
17275
17276 * systty.h:
17277 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
17278 anymore.
17279
17280 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
17281
17282 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
17283 always defined as int.
17284
17285 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
17286 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
17287 * s/gnu-linux.h (HAVE_WAIT_HEADER):
17288 * s/freebsd.h (HAVE_WAIT_HEADER):
17289 * s/bsd-common.h (HAVE_UNION_WAIT):
17290 * s/aix4-2.h (HAVE_WAIT_HEADER):
17291 * m/mips.h (HAVE_UNION_WAIT):
17292 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
17293 (COFF, static): Do not define, they are undefined later in the file.
17294
17295 * process.c (update_status): Don't use a union.
17296 (status_convert):
17297 (sigchld_handler): Use int instead of WAITTYPE.
17298
17299 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
17300
17301 * indent.c (Fvertical_motion): Restore hscroll before moving to
17302 goal column.
17303
17304 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17305
17306 * lisp.h: Remove left over code.
17307
17308 2008-07-11 Andreas Schwab <schwab@suse.de>
17309
17310 * lisp.h: Fix logic in last change.
17311
17312 * menu.h: New file.
17313 * menu.c: Include it.
17314 * xmenu.c: Likewise.
17315 * Makefile.in: Update dependencies.
17316
17317 2008-07-11 Kenichi Handa <handa@m17n.org>
17318
17319 * fontset.c (fontset_from_font): Cancel the previous change.
17320
17321 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
17322
17323 * lisp.h:
17324 * w32heap.c:
17325 * emacs.c:
17326 * alloc.c: Replace all references of NO_UNION_TYPE with
17327 USE_LISP_UNION_TYPE.
17328
17329 * m/xtensa.h (NO_UNION_TYPE):
17330 * m/vax.h (NO_UNION_TYPE):
17331 * m/template.h (NO_UNION_TYPE):
17332 * m/sparc.h (NO_UNION_TYPE):
17333 * m/mips.h (NO_UNION_TYPE):
17334 * m/macppc.h (NO_UNION_TYPE):
17335 * m/m68k.h (NO_UNION_TYPE):
17336 * m/iris4d.h (NO_UNION_TYPE):
17337 * m/intel386.h (NO_UNION_TYPE):
17338 * m/ibms390x.h (NO_UNION_TYPE):
17339 * m/ibms390.h (NO_UNION_TYPE):
17340 * m/ibmrs6000.h (NO_UNION_TYPE):
17341 * m/ia64.h (NO_UNION_TYPE):
17342 * m/hp800.h (NO_UNION_TYPE):
17343 * m/arm.h (NO_UNION_TYPE):
17344 * m/amdx86-64.h (NO_UNION_TYPE):
17345 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
17346 defining it the same.
17347
17348 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
17349
17350 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
17351
17352 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17353
17354 * fileio.c:
17355 * sysdep.c:
17356 * systty.h:
17357 * m/ibmrs6000.h:
17358 * m/iris4d.h:
17359 * s/aix4-2.h:
17360 * s/freebsd.h:
17361 * s/gnu-linux.h:
17362 * s/hpux10-20.h:
17363 * s/hpux11.h:
17364 * s/netbsd.h:
17365 * s/sol2-3.h:
17366 * s/sol2-4.h:
17367 * s/sol2.h:
17368 * s/usg5-4.h:
17369 * s/vms.h: Remove references to unused variables.
17370
17371 2008-07-10 Andreas Schwab <schwab@suse.de>
17372
17373 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
17374 pattern before matching the generic family.
17375
17376 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
17377
17378 * unexec.c:
17379 * s/vms.h:
17380 * s/usg5-4-2.h:
17381 * s/sol2-5.h:
17382 * s/freebsd.h:
17383 * s/darwin.h: Remove dead code.
17384
17385 * m/template.h:
17386 * m/sparc.h:
17387 * m/mips.h:
17388 * m/m68k.h:
17389 * m/iris4d.h:
17390 * m/intel386.h:
17391 * m/ibms390x.h:
17392 * m/ibms390.h:
17393 * m/ia64.h:
17394 * m/hp800.h:
17395 * m/arm.h:
17396 * m/amdx86-64.h: Remove dead code and references to unused
17397 and compiler defined symbols.
17398
17399 * unexmips.c:
17400 * unexelf.c: Remove references to desupported systems.
17401
17402 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
17403
17404 * m/powermac.h: Remove boilerplate comments.
17405 (NO_REMAP): Remove unused definition.
17406
17407 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
17408 define them.
17409
17410 2008-07-10 Kenichi Handa <handa@m17n.org>
17411
17412 * xfont.c (xfont_open): Log the reason of failure.
17413
17414 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
17415
17416 * fontset.c (fontset_get_font_group):
17417 * font.c (font_check_otf): Specify argument types.
17418
17419 2008-07-09 Kenichi Handa <handa@m17n.org>
17420
17421 * coding.c (detect_coding_utf_8): Set detect_info->found only when
17422 non-ASCII char is found.
17423
17424 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
17425 (reorder_font_vector): Change the arg preferred_family to font.
17426 Prefer the spec matching with font.
17427 (fontset_get_font_group): New function.
17428 (fontset_find_font): Change the format of an element of a realized
17429 fontset. Use fontset_get_font_group.
17430 (fontset_font): Try the current fontset, the default fontset, the
17431 fallbacks of the current fontset, and the fallbacks of the default
17432 fontset in this order.
17433 (face_for_char): Delete the shortcut to use the current font.
17434 (fontset_from_font): Don't set fonts for Latin in the fontset.
17435
17436 * font.h (font_make_object, font_match_p): Adjust prototypes.
17437
17438 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
17439
17440 * font.c (font_make_object): New arg entity and pixelsize.
17441 (font_check_otf_features, font_check_otf): New functions.
17442 (font_match_p): Check :lang, :script, and :otf properties.
17443
17444 * xfont.c (xfont_open): Adjust it for the change of
17445 font_make_object.
17446 (xfont_text_extents): Fix initial setting of metrics.
17447
17448 * ftfont.c (struct ftfont_info): New member index, delete member
17449 fc_charset_idx. Make the member order compatible with struct
17450 xftfont_info.
17451 (fc_charset_table): Change charset names to registry names.
17452 (ftfont_pattern_entity): Delete the args registry and
17453 fc_charset_idx. Change the value of :font-entity property
17454 to (FONTNAME . INDEX). Always set :registry property to
17455 `iso10646-1'.
17456 (struct ftfont_cache_data): New struct.
17457 (ftfont_lookup_cache): New arg for_face.
17458 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
17459 (ftfont_driver): Set the member otf_capability.
17460 (ftfont_get_charset): Adjust it for the change of
17461 fc_charset_table.
17462 (OTF_TAG_SYM): New macro.
17463 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
17464 for the change of fc_charset_table.
17465 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
17466 ftfont_pattern_entity. Add FC_INDEX to objset.
17467 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
17468 and ftfont_pattern_entity.
17469 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
17470 font_make_object, struct ftfont_info.
17471 (ftfont_has_char): Use ftfont_get_fc_charset.
17472 (ftfont_otf_features, ftfont_otf_capability): New functions.
17473 (ftfont_shape): Use ftfont_get_otf.
17474 (ftfont_text_extents): Fix initial setting of metrics.
17475
17476 * xftfont.c (struct xftfont_info): New member ft_size. Make the
17477 member order compatible with struct ftfont_info.
17478 (xftfont_open): Add FC_CHARSET to the pattern.
17479 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
17480 properties if appropriate.
17481 (xftfont_close): Unlock the face.
17482 (xftfont_anchor_point, xftfont_shape): Deleted.
17483 (syms_of_xftfont): Don't set members anchor_point and shape of
17484 xftfont_driver.
17485
17486 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
17487 font_make_object.
17488
17489 * w32font.c (w32font_open): Adjust it for the change of
17490 font_make_object.
17491 (w32font_open_internal): Don't set properties of font_object here.
17492
17493 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
17494
17495 * macfns.c (x_create_tip_frame):
17496 * w32fns.c (x_create_tip_frame):
17497 * xfns.c (x_create_tip_frame): Pass parameter argument to
17498 face-set-after-frame-default.
17499
17500 * xfaces.c (Finternal_merge_in_global_face): Save merged
17501 attributes for the default face back into the face vector.
17502
17503 2008-07-08 Andreas Schwab <schwab@suse.de>
17504
17505 * fontset.h: Declare fontset_from_font. Don't declare
17506 new_fontset_from_font and fontset_from_font_name.
17507 * xterm.c: Include "fontset.h".
17508 * Makefile.in (xterm.o): Update dependencies.
17509
17510 2008-07-08 Glenn Morris <rgm@gnu.org>
17511
17512 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
17513 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
17514
17515 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
17516
17517 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
17518 (x_set_frame_parameters): Don't bind it.
17519
17520 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
17521
17522 * w32fns.c (map_w32_filename): Declare extern.
17523
17524 2008-07-07 Jason Rumney <jasonr@gnu.org>
17525
17526 * w32term.c (WS_EX_LAYERED): Define if not already.
17527
17528 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
17529
17530 * xfaces.c (set_font_frame_param): Don't try to set the font
17531 parameter if it is still unspecified in the lface.
17532
17533 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17534
17535 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
17536 face if it didn't already exist.
17537
17538 * xdisp.c (try_window_id): Give up if word-wrapping is on.
17539
17540 2008-07-05 Andreas Schwab <schwab@suse.de>
17541
17542 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
17543
17544 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
17545
17546 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
17547 word-wrapping.
17548 (IT_DISPLAYING_WHITESPACE): New macro.
17549 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
17550 when word-wrapping. Simplify word-wrapping logic. Use correct
17551 pixel positions when saving copies of the iterator.
17552 (display_line): Use proper wrap point if the last character on a
17553 line was preceded by whitespace.
17554
17555 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
17556
17557 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
17558
17559 2008-07-04 Kenichi Handa <handa@m17n.org>
17560
17561 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
17562
17563 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
17564
17565 2008-07-02 Jason Rumney <jasonr@gnu.org>
17566
17567 * xfns.c (syms_of_xfns): Only define x-select-font when both
17568 HAVE_FREETYPE and USE_GTK.
17569
17570 * xdisp.c (next_element_from_display_vector): Move assignment out
17571 of if statement.
17572
17573 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
17574
17575 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
17576
17577 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
17578 (syms_of_fileio): Initialize and export them.
17579 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
17580
17581 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
17582 (Fsystem_move_file_to_trash): New function.
17583 (syms_of_w32fns): Export it to lisp.
17584
17585 2008-07-01 Jason Rumney <jasonr@gnu.org>
17586
17587 * w32font.c (w32font_text_extents): Don't count overhang as part
17588 of width.
17589
17590 2008-06-30 Miles Bader <miles@gnu.org>
17591
17592 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
17593 Add `avoid_cursor_p' field.
17594
17595 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
17596 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
17597 (append_glyph, append_composite_glyph, produce_image_glyph)
17598 (append_stretch_glyph): Initialize avoid_cursor_p.
17599 (get_it_property): Rename from `get_line_height_property'.
17600 (x_produce_glyphs): Use get_it_property.
17601 (handle_line_prefix, push_display_prop): New functions.
17602 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
17603 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
17604 New variables.
17605 (syms_of_xdisp): Initialize them.
17606
17607 2008-06-30 Kenichi Handa <handa@m17n.org>
17608
17609 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
17610 XftDefaultSubstitute (they are called in XftFontMatch).
17611 (xftfont_open): Fix args to ftfont_font_format.
17612
17613 * ftfont.c (fc_charset_table): New member lang.
17614 (ftfont_resolve_generic_family): New arg pattern.
17615 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
17616 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
17617 (ftfont_open): Fix args to ftfont_font_format.
17618 (ftfont_font_format): New arg filename.
17619
17620 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
17621
17622 * xfaces.c (Finternal_merge_in_global_face): If default face was
17623 modified, realize it again. Update the font face attribute.
17624
17625 2008-06-29 Jason Rumney <jasonr@gnu.org>
17626
17627 * w32term.c (x_set_frame_alpha): Fix logic.
17628
17629 2008-06-29 Kenichi Handa <handa@m17n.org>
17630
17631 * fontset.c (Finternal_char_font): Return font-object instead of
17632 font-name.
17633
17634 * composite.c (get_composition_id): Fix the width calculation for TAB.
17635
17636 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
17637
17638 * indent.c (Fvertical_motion): Properly handle float column arg.
17639
17640 2008-06-28 Jason Rumney <jasonr@gnu.org>
17641
17642 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
17643 (pfnSetLayeredWindowAttributes): New function pointer.
17644 (w32_initialize): Initialize it when supported.
17645 (x_set_frame_alpha): New function.
17646
17647 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
17648 (w32_frame_parm_handlers): Set alpha handler.
17649
17650 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
17651
17652 2008-06-27 Jason Rumney <jasonr@gnu.org>
17653
17654 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
17655 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
17656 (w32_to_x_charset, x_to_w32_charset)
17657 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17658 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17659 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17660 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17661 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17662 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17663 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
17664 (Qw32_charset_unicode): Remove.
17665 (syms_of_w32fns): Update for above changes.
17666
17667 * w32font.c (w32_to_x_charset, x_to_w32_charset)
17668 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
17669 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
17670 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
17671 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
17672 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
17673 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
17674 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
17675 (syms_of_w32font): Update for above changes.
17676
17677 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
17678
17679 * s/usg5-4.h: Fix previous change: keep the correct branch of a
17680 removed #if.
17681 (USG_SHARED_LIBRARIES): Remove duplicate definition.
17682
17683 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17684 Eli Zaretskii <eliz@gnu.org>
17685
17686 * makefile.w32-in (LOCAL_FLAGS):
17687 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
17688
17689 * sysdep.c (_spawnlp, _getpid):
17690 Declare with explicit _cdecl instead of _CRTAPI1.
17691
17692 * editfns.c (Fget_internal_run_time):
17693 Check for WINDOWSNT with #ifdef, not #if.
17694
17695 2008-06-26 Jason Rumney <jasonr@gnu.org>
17696
17697 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
17698
17699 * w32term.c (x_draw_glyph_string_foreground)
17700 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
17701 Use FONT_HANDLE macro.
17702 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
17703
17704 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17705 (uniscribe_encode_char): Use FONT_HANDLE macro.
17706
17707 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
17708 (w32font_text_extents): Use precast w32_font.
17709 (w32font_close): Free cached metrics.
17710 (w32font_open_internal): Allocate space for name on stack.
17711
17712 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
17713
17714 * xdisp.c (extend_face_to_end_of_line): Fix last change.
17715
17716 2008-06-26 Jason Rumney <jasonr@gnu.org>
17717
17718 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
17719 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
17720
17721 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
17722
17723 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
17724
17725 2008-06-26 Jason Rumney <jasonr@gnu.org>
17726
17727 * w32bdf.c, w32bdf.h: Remove obsolete files.
17728
17729 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
17730
17731 * w32gui.h: Don't include w32bdf.h.
17732 (XCharStruct, enum w32_char_font_type, W32FontStruct):
17733 Remove obsolete font support.
17734
17735 * w32font.h (struct w32font_info): Remove compat_w32_font.
17736 Add hfont member.
17737 (FONT_COMPAT): Remove obsolete macro.
17738
17739 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
17740 (w32font_encode_char, w32font_text_extents): Use new hfont member.
17741 (w32font_open_internal): Remove compat code. Set new hfont member.
17742 (Fx_select_font): Use new hfont member.
17743
17744 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
17745 (uniscribe_encode_char): Use new hfont member.
17746
17747 * w32term.c (x_draw_glyph_string_foreground)
17748 (x_draw_composite_glyph_string_foreground): Use new hfont member.
17749 (x_draw_glyph_string): Use metrics in w32font_info.
17750
17751 2008-06-26 Kenichi Handa <handa@m17n.org>
17752
17753 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
17754
17755 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
17756
17757 * unexnext.c:
17758 * m/ews4800.h:
17759 * m/hp9000s300.h:
17760 * m/ibm370aix.h:
17761 * m/mips-siemens.h:
17762 * m/ncr386.h:
17763 * m/next.h:
17764 * m/pmax.h:
17765 * m/powerpcle.h:
17766 * m/tandem-s2.h:
17767 * s/386bsd.h:
17768 * s/bsd386.h:
17769 * s/bsd4-1.h:
17770 * s/bsd4-2.h:
17771 * s/bsdos2-1.h:
17772 * s/bsdos2.h:
17773 * s/bsdos3.h:
17774 * s/bsdos4.h:
17775 * s/nextstep.h:
17776 * s/ultrix4-3.h:
17777 * s/usg5-0.h:
17778 * s/usg5-2-2.h:
17779 * s/usg5-2.h:
17780 * s/usg5-4-3.h:
17781 * s/ux4800.h:
17782 * s/uxpds.h:
17783 * s/uxpv.h: Remove support for obsolete systems.
17784 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
17785 Remove, insert contents in s/hpux10-20.h.
17786 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
17787 Remove, insert contents in s/aix4-2.h.
17788 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
17789 * s/bsd4-3.h: Rename to ...
17790 * s/bsd-common.h: ... this.
17791 * data.c:
17792 * doc.c:
17793 * ecrt0.c:
17794 * emacs.c:
17795 * fileio.c:
17796 * floatfns.c:
17797 * keyboard.c:
17798 * mem-limits.h:
17799 * print.c:
17800 * process.c:
17801 * sysdep.c:
17802 * syssignal.h:
17803 * systty.h:
17804 * syswait.h:
17805 * term.c:
17806 * unexec.c:
17807 * unexelf.c:
17808 * unexhp9k800.c:
17809 * m/hp800.h:
17810 * m/ibmrs6000.h:
17811 * m/mips.h:
17812 * m/vax.h:
17813 * s/darwin.h:
17814 * s/freebsd.h:
17815 * s/gnu.h:
17816 * s/ms-w32.h:
17817 * s/msdos.h:
17818 * s/netbsd.h:
17819 * s/template.h: Remove references to obsolete variables.
17820
17821 * Makefile.in: Add dependencies for all unexec files.
17822 (admindir): Remove unused variable.
17823 (UNEXEC_SRC): Remove references.
17824
17825 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
17826
17827 * xfns.c (x_default_font_parameter): If Xft is available, first
17828 try Monospace-12 for the default font.
17829
17830 2008-06-25 Jason Rumney <jasonr@gnu.org>
17831
17832 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17833
17834 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
17835
17836 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17837
17838 * buffer.c (syms_of_buffer): Remove default-word-wrap.
17839
17840 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
17841
17842 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17843 <scroll-conservatively>: Fix typo in docstring.
17844
17845 * xselect.c (Fx_send_client_event): Doc fix.
17846
17847 2008-06-25 Kenichi Handa <handa@m17n.org>
17848
17849 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17850
17851 * font.c (font_parse_fcname): Remove unused variables.
17852 (font_sort_entites): Delete the arg SPEC. Caller changed.
17853 Fix for the case of ! best_only.
17854 (font_delete_unmatched): Check DPI and AVGWIDTH too.
17855
17856 * lisp.h (Fstring_to_unibyte): EXFUN it.
17857
17858 * character.h (str_to_unibyte): Extern it.
17859
17860 * character.c (str_to_unibyte): New function.
17861
17862 * fns.c (Fstring_to_unibyte): New function.
17863 (syms_of_fns): Defsubr it.
17864
17865 2008-06-24 Kenichi Handa <handa@m17n.org>
17866
17867 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17868 DPI too.
17869 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17870
17871 2008-06-24 Andreas Schwab <schwab@suse.de>
17872
17873 * Makefile.in (${lispsource}loaddefs.el): Rename from
17874 ../lisp/loaddefs.el.
17875 (bootstrap-clean): Do what distclean does but don't remove
17876 Makefile.
17877 (distclean): Depend on bootstrap-clean and remove Makefile.
17878
17879 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
17880
17881 * buffer.h (struct buffer): New member word_wrap.
17882
17883 * buffer.c (syms_of_buffer): New variables default-word-wrap and
17884 word-wrap.
17885 (init_buffer_once): Initialize them.
17886
17887 * dispextern.h (struct it): Replace bool truncate_lines_p with a
17888 line_wrap enum possessing three possible values.
17889
17890 * termopts.h: Replace truncate_partial_width_windows with
17891 Vtruncate_partial_width_windows.
17892
17893 * dispnew.c (direct_output_for_insert): Avoid direct output when
17894 inserting a space with word wrap on.
17895
17896 * indent.c (compute_motion): Obey integer values of
17897 truncate-partial-width-windows.
17898
17899 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17900 replacing truncate_partial_width_windows.
17901 (init_iterator): If Vtruncate_partial_width_windows is an integer,
17902 truncate only if the window width is below that integer.
17903 (start_display, resize_mini_window, produce_stretch_glyph)
17904 (display_string, move_it_in_display_line_to): Use line_wrap.
17905 (back_to_previous_visible_line_start, reseat_1):
17906 Reset string_from_display_prop_p.
17907 (display_line): Extend default face to end of line when wrapping.
17908
17909 2008-06-24 Kim F. Storm <storm@cua.dk>
17910
17911 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17912 to wrap continued lines at word boundaries.
17913
17914 2008-06-24 Jason Rumney <jasonr@gnu.org>
17915
17916 * font.c (Ffont_face_attributes): Multiply pixel size before point
17917 conversion to avoid multiplying rounding error.
17918
17919 2008-06-23 Jason Rumney <jasonr@gnu.org>
17920
17921 * w32term.c (x_draw_glyph_string_background)
17922 (x_draw_glyph_string): Remove old bdf font code.
17923
17924 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17925
17926 2008-06-22 Kenichi Handa <handa@m17n.org>
17927
17928 * font.c (font_find_for_lface): Try the adstyle specified in
17929 the property of LFACE_FONT of LFACE (if any).
17930
17931 2008-06-21 Seiji Zenitani <zenitani@mac.com>
17932 Ryo Yoshitake <ryo@shiftmode.net>
17933
17934 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17935
17936 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
17937
17938 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17939 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17940 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17941 (witness-emacs): Remove.
17942 (lisp, shortlisp): Move loaddefs.el earlier.
17943 (mostlyclean): Forget about witness-emacs.
17944
17945 2008-06-22 Glenn Morris <rgm@gnu.org>
17946
17947 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17948 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17949
17950 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17951
17952 * Makefile.in (PRECOMP): Remove.
17953 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17954 (witness-emacs): Run `compile-first'.
17955 (.el.elc): Use the new compile-onefile target.
17956
17957 2008-06-21 Kenichi Handa <handa@m17n.org>
17958
17959 * xftfont.c (xftfont_open): Handle QCembolden only when
17960 FC_EMBOLDEN is defined.
17961
17962 2008-06-21 Andreas Schwab <schwab@suse.de>
17963
17964 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17965 (.el.elc): Likewise.
17966
17967 2008-06-21 Miles Bader <miles@gnu.org>
17968
17969 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17970 build dir, not the lisp source dir.
17971
17972 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
17973
17974 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17975 (bootstrapclean): Remove.
17976 (.el.elc): New rule.
17977 (PRECOMP): New var.
17978 (../lisp/subdirs.el): Remove.
17979 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17980 (witness-emacs): New target.
17981 (mostlyclean): Remove witness-emacs as well.
17982 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17983 Add witness-emacs dependency.
17984
17985 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
17986
17987 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17988 defined by the font.
17989
17990 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17993 (bootstrap-clean): New target that keeps TAGS around.
17994 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17995 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17996
17997 2008-06-20 Jason Rumney <jasonr@gnu.org>
17998
17999 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
18000 Remove obsolete font code.
18001
18002 * w32font.c (font_matches_spec): Use csb bitfield from font signature
18003 to determine language support.
18004
18005 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18006
18007 * sysdep.c (cfsetspeed): New fun extracted from the code.
18008 (cfmakeraw): Move before first use.
18009
18010 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
18011
18012 * sysdep.c (cfmakeraw): Provide fallback implementation.
18013 (serial_configure): Provide fallback implementation of cfsetspeed.
18014
18015 2008-06-20 Kenichi Handa <handa@m17n.org>
18016
18017 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
18018 the pattern.
18019
18020 * fontset.c (fontset_from_font): Copy font_spec before changing
18021 the elements.
18022
18023 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
18024
18025 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
18026
18027 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
18028 for explicit `font' parameters.
18029
18030 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
18031
18032 2008-06-19 Kenichi Handa <handa@m17n.org>
18033
18034 * frame.c: Include <ctype.h>.
18035 (x_set_font_backend): Allow spacing characters in the X resource
18036 for FontBackend.
18037
18038 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
18039
18040 * w32fns.c, xfns.c (Qfont_param): New var.
18041 (syms_of_w32fns): Initialize it.
18042 (x_default_font_parameter): Record explicit `font' into
18043 `font-parameter'.
18044
18045 2008-06-18 Kenichi Handa <handa@m17n.org>
18046
18047 * font.c (font_parse_xlfd): Fix previous change.
18048 (font_parse_fcname): Don't use :fc-unknown-spec.
18049 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
18050 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
18051 (font_add_log): Prepend the driver name to the resulting fonts.
18052
18053 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
18054 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
18055 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
18056
18057 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
18058 (QCembolden): New variables.
18059 (syms_of_xftfont): DEFSYM them.
18060 (xftfont_open): Call XftFontMatch. Don't trust the result of
18061 XftTextExtents8 if the pixel_size is less than 5.
18062
18063 2008-06-18 Andreas Schwab <schwab@suse.de>
18064
18065 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
18066 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
18067
18068 2008-06-18 Jason Rumney <jasonr@gnu.org>
18069
18070 * w32font.c (w32font_list, w32font_match): Add logging.
18071
18072 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
18073
18074 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
18075
18076 * font.c (font_parse_fcname): Store divider characters for
18077 unknown-spec list. For known key symbols, intern using correct
18078 symbol name.
18079
18080 2008-06-17 Kenichi Handa <handa@m17n.org>
18081
18082 * xfaces.c (realize_default_face): If the frame is not on window
18083 system, set the fontset of face to nil.
18084
18085 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18086
18087 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
18088
18089 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18090
18091 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
18092 (build_font_name_from_vector): Delete externs.
18093
18094 * xfaces.c (struct font_name): Don't declare.
18095
18096 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
18097
18098 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
18099
18100 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18101
18102 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
18103
18104 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
18105
18106 * font.c (Ffont_spec): Fix usage in docstring.
18107 (Ffont_face_attributes): Doc fix.
18108
18109 2008-06-16 Andreas Schwab <schwab@suse.de>
18110
18111 * font.c (Ffont_face_attributes): Fix definition.
18112
18113 2008-06-16 Jason Rumney <jasonr@gnu.org>
18114
18115 * font.h (font_style_symbolic_from_value): Remove.
18116
18117 * font.c (font_style_symbolic_from_value): Remove.
18118 (font_style_symbolic): Revert to pre 2008-06-13 version.
18119
18120 * w32font.c (w32_to_fc_weight): New function.
18121 (w32font_full_name, logfont_to_fcname): Use it.
18122
18123 2008-06-16 Kenichi Handa <handa@m17n.org>
18124
18125 * font.c (font_check_object): Delete it.
18126 (font_clear_cache): Check if a font-object is alive.
18127 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
18128 font-object to nil.
18129 (font_close_object): Don't check FONT_CLOSE_OBJECT.
18130 (font_at): Don't call font_check_object.
18131 (Ffont_get): Return a symbol for :weight, :slant, and :width.
18132
18133 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
18134
18135 * puresize.h (BASE_PURESIZE): Increase to 1230000.
18136
18137 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
18138
18139 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
18140
18141 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
18142
18143 * font.c (font_parse_fcname): Only one decimal point.
18144 (font_unparse_fcname): Handle data in family and foundry indices
18145 as symbols, not strings.
18146 (font_unparse_gtkname, Ffont_face_attributes): New functions.
18147
18148 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
18149
18150 * font.h (font_unparse_gtkname): Add prototype.
18151
18152 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
18153
18154 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
18155
18156 2008-06-15 Andreas Schwab <schwab@suse.de>
18157
18158 * font.c (font_update_drivers): Fix crash when no drivers match.
18159
18160 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
18161
18162 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
18163 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
18164
18165 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
18166
18167 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
18168
18169 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
18170
18171 * process.c (Fserial_process_configure, Fprocess_send_eof):
18172 Use EQ to compare Lisp_Objects.
18173
18174 2008-06-13 Jason Rumney <jasonr@gnu.org>
18175
18176 * w32fns.c (Fw32_select_font): Remove old font API function.
18177
18178 * w32font.c (logfont_to_fcname): New function.
18179 (Fx_select_font): New font dialog function compatible with
18180 GTK/fontconfig version.
18181
18182 * font.c (font_style_symbolic_from_value): New function.
18183 (font_style_symbolic): Use it.
18184
18185 * font.h (font_style_symbolic_from_value): Declare new function.
18186
18187 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
18188
18189 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
18190 <font-width-table>: Fix typos in docstrings.
18191
18192 2008-06-13 Daniel Engeler <engeler@gmail.com>
18193
18194 These changes add serial port access.
18195 * process.c: Add HAVE_SERIAL.
18196 (Fdelete_process, Fprocess_status, Fset_process_buffer)
18197 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
18198 (list_processes_1, select_wrapper, Fstop_process)
18199 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
18200 (status_notify): Modify to handle serial processes.
18201 [HAVE_SERIAL] (Fserial_process_configure)
18202 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
18203 New functions.
18204 * process.h (struct Lisp_Process): Add `type'.
18205 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
18206 New functions.
18207 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
18208 serial ports.
18209 (serial_open, serial_configure): New functions.
18210 * w32.h: Add FILE_SERIAL.
18211 (struct _child_process): Add ovl_read, ovl_write.
18212
18213 2008-06-13 Kenichi Handa <handa@m17n.org>
18214
18215 * dispextern.h (enum lface_attribute_index): New member
18216 LFACE_FOUNDRY_INDEX.
18217
18218 * font.c (font_score): Delete arg alternate_families. Check only
18219 weight, slant, width, and size. Ignore the difference of alias
18220 style symbols.
18221 (font_sort_entites): Adjust for the above change. Reflect the
18222 order of font-driver to scores.
18223 (font_list_entities): Don't check alternate_familes here.
18224 (font_clear_prop): Handle foundry.
18225 (font_update_lface): Don't parse "foundry-family" form here.
18226 Handle FONT_FOUNDRY_INDEX.
18227 (font_find_for_lface): Likewise. Handle alternate families here.
18228 If registry is nil, try iso8859-1 and ascii-0.
18229 (font_open_for_lface): Pay attention to size in ENTITY.
18230 (font_open_by_name): Simplify by calling font_load_for_lface.
18231 (free_font_driver_list): Delete it.
18232 (font_update_drivers): Preserve the order of backends.
18233 (syms_of_font): Setting of sort_shift_bits adjusted for the change
18234 of font_score and font_sort_entites.
18235 (font_update_sort_order): Likewise.
18236
18237 * xfaces.c (LFACE_FOUNDRY): New macro.
18238 (check_lface_attrs): Check foundry.
18239 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
18240 (merge_face_vectors): Check foundry.
18241 (merge_face_ref): Likewise.
18242 (Finternal_set_lisp_face_attribute): Likewise.
18243 (x_update_menu_appearance): Likewise.
18244 (Finternal_get_lisp_face_attribute): Likewise.
18245 (lface_hash): Likewise.
18246 (lface_same_font_attributes_p): Likewise.
18247 (x_supports_face_attributes_p): Likewise.
18248 (tty_supports_face_attributes_p): Likewise.
18249 (Finternal_set_alternative_font_family_alist): Intern strings.
18250 (Finternal_set_alternative_font_registry_alist): Downcase strings.
18251 (realize_default_face): Set LFACE_FOUNDRY (lface).
18252
18253 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
18254 font-driver at first.
18255
18256 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
18257
18258 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18259
18260 * lread.c (Fload): Use xfree, not free on saved_doc_string.
18261
18262 2008-06-12 Jim Meyering <meyering@redhat.com>
18263
18264 Make unexec_free handle NULL the same way free does.
18265 * unexmacosx.c (unexec_free): Ignore a NULL argument.
18266
18267 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18268
18269 * character.h (CHAR_TO_BYTE_SAFE): New macro.
18270 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
18271 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
18272 (WEAK_ALIAS): Simplify.
18273 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
18274 when searching a unibyte buffer.
18275
18276 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
18277
18278 * xfns.c (Fx_select_font): Rename from x-font-dialog.
18279
18280 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
18281
18282 * w32font.c: Include ctype.h.
18283
18284 2008-06-11 Jason Rumney <jasonr@gnu.org>
18285
18286 * w32font.c (w32font_encode_char): Detect missing glyphs that are
18287 misreported as space.
18288 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
18289 as aliases for registry iso10646-1.
18290
18291 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18292
18293 * buffer.c (clone_per_buffer_values): Skip `name'.
18294
18295 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
18296
18297 * font.c (font_parse_fcname): Fix last change; accept decimal
18298 points in font size.
18299
18300 2008-06-10 Jason Rumney <jasonr@gnu.org>
18301
18302 * w32uniscribe.c (add_opentype_font_name_to_list):
18303 Skip non unicode fonts.
18304
18305 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18306
18307 * xfns.c (Fx_font_dialog): New function.
18308
18309 * gtkutil.c (xg_dialog_response_cb): Rename from
18310 xg_file_response_callback.
18311 (pop_down_dialog): Rename from pop_down_file_dialog.
18312 (xg_get_file_name): Callers changed.
18313 (xg_get_font_name): New function.
18314
18315 * gtkutil.h (xg_get_font_name): Insert prototype.
18316
18317 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18318
18319 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
18320 x_underline_minimum_display_offset.
18321 (syms_of_xdisp): Declare it here rather than in xterm.c.
18322 * dispextern.h (underline_minimum_offset): Declare it.
18323 * w32term.c (x_draw_glyph_string): Use it.
18324 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
18325 (syms_of_xterm): Don't declare it any more.
18326 (x_draw_glyph_string): Adjust to the new name.
18327
18328 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
18329
18330 * xterm.c (x_underline_minimum_display_offset): New var.
18331 (x_draw_glyph_string): Use it.
18332 (syms_of_xterm): Declare it.
18333
18334 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
18335
18336 * font.c (font_parse_fcname): Accept GTK-style font names too.
18337
18338 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
18339
18340 * dired.c (file_name_completion): Don't return t if the match is exact
18341 but with different capitalization.
18342 * minibuf.c (Ftry_completion): Simplify.
18343
18344 * window.c (Vwindow_point_insertion_type): New var.
18345 (set_window_buffer): Use it.
18346 (syms_of_window): Init and export it to Lisp.
18347
18348 2008-06-10 Kenichi Handa <handa@m17n.org>
18349
18350 * font.h (font_intern_prop): Prototype adjusted.
18351
18352 * font.c (font_intern_prop): New arg force_symbol.
18353 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
18354 Adjust for the change of font_intern_prop.
18355
18356 * ftfont.c (ftfont_pattern_entity):
18357 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
18358 (w32_registry):
18359 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
18360 the change of font_intern_prop.
18361
18362 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
18363
18364 * w32menu.c (digest_single_submenu): Declare extern.
18365
18366 2008-06-09 Jason Rumney <jasonr@gnu.org>
18367
18368 * w32term.c (x_make_frame_visible): Use alternate restore flags.
18369
18370 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
18371 (parse_single_submenu): Remove.
18372 (digest_single_submenu): Remove.
18373 (syms_of_w32menu): Don't initialise variables that have moved
18374 to menu.c.
18375 (set_frame_menubar): Sync with version in xmenu.c.
18376 (w32_menu_show): Sync with xmenu_show in xmenu.c.
18377
18378 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
18379 Make static again.
18380
18381 2008-06-09 Jason Rumney <jasonr@gnu.org>
18382
18383 Changes to w32 files related to the move of common menu code
18384 to menu.c on 2008-06-08 by Chong Yidong.
18385
18386 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
18387 defs to w32gui.h.
18388 (single_keymap_panes, push_menu_item, push_menu_pane):
18389 Make globally visible.
18390
18391 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
18392 (local_free, malloc_widget_value, free_widget_value)
18393 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
18394 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
18395 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
18396 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
18397 (menu_items, menu_items_allocated, menu_items_used)
18398 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
18399 (init_menu_items, finish_menu_items, discard_menu_items)
18400 (grow_menu_items, push_submenu_start, push_submenu_end)
18401 (push_left_right_boundary, push_menu_pane, push_menu_item)
18402 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
18403 (free_menubar_widget_tree_value, parse_single_submenu)
18404 (update_submenu_strings): Remove functions.
18405 (xmalloc_widget_value): Remove and declare extern.
18406
18407 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
18408 (OBJ1): Build it.
18409
18410 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
18411 (local_heap, local_alloc, local_free, malloc_widget_value)
18412 (free_widget_value): Define here.
18413
18414 2008-06-09 Kenichi Handa <handa@m17n.org>
18415
18416 * font.h (Qascii_0): Extern it.
18417
18418 * font.c (Qascii_0): New variable.
18419 (syms_of_font): DEFSYM it.
18420 (font_open_by_name): If the registry "iso8859-1" fails, try also
18421 "ascii-0".
18422
18423 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
18424
18425 2008-06-08 Kenichi Handa <handa@m17n.org>
18426
18427 * .gdbinit (xfont): New command.
18428
18429 2008-06-08 Andreas Schwab <schwab@suse.de>
18430
18431 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
18432 * Makefile.in (menu.o): Update dependencies.
18433
18434 * Makefile.in (obj): Always add menu.o.
18435 * emacs.c (main): Always call syms_of_menu.
18436 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
18437
18438 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
18439
18440 * Makefile.in: Compile menu.c.
18441
18442 * lisp.h: Declare syms_of_menu.
18443
18444 * emacs.c (main): Call syms_of_menu.
18445
18446 * keyboard.h: Relocate platform-independent menu definitions from
18447 xmenu.c.
18448
18449 * menu.c: New file. Relocate platform-independent menu
18450 definitions from xmenu.c. Suggested by Adrian Robert.
18451
18452 * xmenu.c: Remove platform-independent menu definitions.
18453 (menu_items, menu_items_inuse, menu_items_allocated)
18454 (menu_items_used, menu_items_n_panes)
18455 (menu_items_submenu_depth): Move to keyboard.h.
18456 (init_menu_items, finish_menu_items, unuse_menu_items)
18457 (discard_menu_items, restore_menu_items, save_menu_items)
18458 (grow_menu_items, push_submenu_start, push_submenu_end)
18459 (push_left_right_boundary, push_menu_pane, push_menu_item)
18460 (keymap_panes, single_keymap_panes, single_menu_item)
18461 (list_of_panes, list_of_items, find_and_call_menu_selection)
18462 (xmalloc_widget_value, free_menubar_widget_value_tree)
18463 (parse_single_submenu, digest_single_submenu)
18464 (update_submenu_strings): Move to menu.c.
18465
18466 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
18467
18468 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
18469
18470 2008-06-06 Miles Bader <miles@gnu.org>
18471
18472 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
18473 face, not frame default.
18474
18475 2008-06-05 Martin Rudalics <rudalics@gmx.at>
18476
18477 * window.c (pop_up_windows, pop_up_frames)
18478 (display_buffer_reuse_frames, Vpop_up_frame_function)
18479 (Vdisplay_buffer_function, Veven_window_heights)
18480 (Vspecial_display_buffer_names, Vspecial_display_regexps)
18481 (Vspecial_display_function, Vsame_window_buffer_names)
18482 (Vsame_window_regexps, split_height_threshold)
18483 (Vsplit_window_preferred_function): Move those vars to window.el.
18484 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
18485 (Fdisplay_buffer): Move those functions to window.el.
18486 (syms_of_window): Remove corresponding declarations.
18487 (display_buffer): New function.
18488 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
18489 * dispnew.c (Flast_nonminibuf_frame): New function.
18490 * buffer.c (Fpop_to_buffer): Move to window.el.
18491
18492 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18493
18494 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
18495
18496 2008-06-05 Kenichi Handa <handa@m17n.org>
18497
18498 * coding.c (detect_coding): Fix previous change.
18499 (detect_coding_system): Likewise.
18500
18501 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18502
18503 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
18504
18505 * keymap.c (Vminibuffer_local_filename_must_match_map):
18506 Rename from Vminibuffer_local_must_match_filename_map.
18507 (syms_of_keymap):
18508 * minibuf.c (Fcompleting_read): Adjust accordingly.
18509 * commands.h: Rename declaration as well.
18510
18511 2008-06-05 Kenichi Handa <handa@m17n.org>
18512
18513 * font.c (Ffont_spec): Don't use font_parse_family_registry for
18514 family name.
18515 (Ffont_put): Likewise.
18516
18517 * fontset.c (fontset_find_font): Call font_open_for_lface with the
18518 current font-spec.
18519
18520 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
18521 is unspecified.
18522
18523 * xfaces.c (realize_x_face): If the font-related face attributes
18524 are the same as those of default face, realize a new fontset from
18525 default->fontset.
18526 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
18527
18528 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
18529
18530 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
18531 (move_it_in_display_line): New wrapper.
18532
18533 * window.c (window_scroll_pixel_based_preserve_x)
18534 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
18535 (window_scroll_pixel_based, window_scroll_line_based):
18536 Use them to preserve column positions.
18537 (syms_of_window): Initialize them.
18538
18539 * indent.c (Fvertical_motion): Extend first arg to allow passing an
18540 (HPOS . VPOS) pair.
18541
18542 * dispextern.h (move_it_in_display_line): Declare.
18543
18544 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
18545
18546 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
18547 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
18548 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
18549
18550 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
18551
18552 * window.c (Fset_window_parameter): Doc fix.
18553 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
18554
18555 2008-06-04 Joakim Verona <joakim@verona.se>
18556
18557 * window.h (struct window): Add new member window_parameters.
18558
18559 * window.c (Fwindow_parameters, Fwindow_parameter)
18560 (Fset_window_parameter): New defuns.
18561 (syms_of_window): Defsubr the new defuns.
18562 (make_window): Initialize window_parameters to nil.
18563
18564 2008-06-04 John Paul Wallington <jpw@pobox.com>
18565
18566 * eval.c (Fdefmacro): Doc fix.
18567
18568 2008-06-04 Kenichi Handa <handa@m17n.org>
18569
18570 * coding.c (detect_coding): Fix handling of coding->head_ascii.
18571 Be sure to call setup_coding_system when we find a proper coding system.
18572 (detect_coding_system): Fix handling of coding->head_ascii.
18573
18574 2008-06-03 Andreas Schwab <schwab@suse.de>
18575
18576 * font.c (font_prop_validate_spacing): Fix last change.
18577
18578 2008-06-03 Kenichi Handa <handa@m17n.org>
18579
18580 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
18581 (font_parse_fcname): Fix handling of unknown key.
18582
18583 * xfont.c (xfont_list): Try an alias.
18584
18585 * charset.c (char_charset): Return NULL if the arg charset_list is
18586 specified and C doesn't belong to any of them.
18587
18588 2008-06-02 Chip Coldwell <coldwell@redhat.com>
18589
18590 * font.c (font_pixel_size): Don't take cdr of an integer.
18591
18592 2008-06-02 Jim Meyering <meyering@redhat.com>
18593
18594 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
18595 * alloc.c (xfree): Return right away for a NULL arg.
18596 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
18597 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
18598 * mac.c (create_apple_event_from_event_ref): Likewise.
18599 (create_apple_event_from_drag_ref, cfstring_create_normalized):
18600 Likewise.
18601 * doprnt.c (doprnt1): Likewise.
18602 * frame.c (frame): Likewise.
18603 * keyboard.c (wipe_kboard): Likewise.
18604 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
18605 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
18606 * term.c (tty_default_color_capabilities, maybe_fatal)
18607 (delete_tty): Likewise.
18608 * w16select.c (string): Likewise.
18609 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
18610 * w32bdf.c (w32_free_bdf_font): Likewise.
18611 * w32fns.c (w32_unload_font): Likewise.
18612 * w32font.c (w32font_close): Likewise.
18613 * window.c (size_window): Likewise.
18614 * xselect.c (receive_incremental_selection): Likewise.
18615 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
18616 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
18617 * w32.c (stat): Likewise.
18618
18619 Remove useless if-before-free tests.
18620 * editfns.c (Fset_time_zone_rule): Likewise.
18621 * lread.c (nosuffix): Likewise.
18622 * ralloc.c (get_bloc): Likewise.
18623 * regex.c (reg_free): Likewise.
18624 * xftfont.c (xftfont_open, xftfont_close): Likewise.
18625 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
18626 * xsmfns.c (smc_save_yourself_CB): Likewise.
18627
18628 2008-06-02 Kenichi Handa <handa@m17n.org>
18629
18630 * font.c (font_find_for_lface): Handle float font size.
18631 (font_open_for_lface): Likewise.
18632
18633 * xfaces.c (x_supports_face_attributes_p): Check face->font before
18634 comparing the properties.
18635
18636 2008-06-01 Jason Rumney <jasonr@gnu.org>
18637
18638 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
18639 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
18640 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
18641 Don't add empty script list.
18642 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
18643
18644 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
18645
18646 * Makefile.in (dot, dotdot): Remove, update users.
18647 ".." has been used elsewhere in the file for a long time.
18648 (LIBXT_STATIC): Remove conditional based on unused variable.
18649
18650 2008-06-01 Miles Bader <miles@gnu.org>
18651
18652 * xfaces.c (Vface_remapping_alist): New variable.
18653 (syms_of_xfaces): Initialize it.
18654 (enum named_merge_point_kind): New type.
18655 (struct named_merge_point): Add `named_merge_point_kind' field.
18656 (push_named_merge_point): Make cycle detection respect different
18657 named-merge-point kinds.
18658 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
18659 Remove face-name alias resolution.
18660 (lface_from_face_name): New definition using
18661 `lface_from_face_name_no_resolve'.
18662 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
18663 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
18664 (get_lface_attributes): New definition that layers face-remapping on
18665 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
18666 (lookup_basic_face): New function.
18667 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
18668 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
18669 `get_lface_attributes'.
18670 (face_at_buffer_position): Use `lookup_basic_face' to lookup
18671 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
18672 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
18673
18674 * xdisp.c (init_iterator): Pass base_face_id through
18675 `lookup_basic_face' when we actually use it as a face-id.
18676 (handle_single_display_prop): Use `lookup_basic_face' to lookup
18677 DEFAULT_FACE_ID.
18678
18679 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
18680 lookup the initial face-id.
18681
18682 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
18683
18684 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
18685
18686 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
18687 (Fremove_text_properties): Fix typos in docstrings.
18688
18689 2008-05-31 Kenichi Handa <handa@m17n.org>
18690
18691 * font.c (font_list_entities): Fix the car part of data to be
18692 stored in the cache.
18693
18694 * ftfont.c (ftfont_font_format): Don't use strcasestr.
18695
18696 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18697
18698 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
18699 Add a `test' argument so another predicate than `equal' can be used.
18700 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
18701 (map_char_table): Remove unused vars `c' and `i'.
18702 * lisp.h (Foptimize_char_table): Adjust declaration.
18703 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
18704
18705 2008-05-30 Kenichi Handa <handa@m17n.org>
18706
18707 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
18708 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
18709 defined.
18710
18711 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
18712
18713 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18714 (Fmake_variable_frame_local): Disallow mixing buffer-local and
18715 frame-local settings for the same variable.
18716
18717 2008-05-30 Kenichi Handa <handa@m17n.org>
18718
18719 * fontset.c (Ffont_info): Move to font.c.
18720 (syms_of_fontset): Delete defsubr of Sfont_info.
18721
18722 * font.c (font_style_to_value, font_score): Delete casting of the
18723 args to xstcasecmp.
18724 (register_font_driver): Increment num_font_drivers only when
18725 registering the driver globally.
18726 (Ffont_info): Move from fontset.c. Handle a font object too.
18727 (syms_of_font): Defsubr Sfont_info.
18728
18729 2008-05-29 Kenichi Handa <handa@m17n.org>
18730
18731 * coding.h (enum define_coding_utf8_arg_index): New enum.
18732 (enum coding_attr_index): Change coding_attr_utf_16_bom to
18733 coding_attr_utf_bom.
18734 (enum utf_bom_type): Rename from utf_16_bom_type.
18735 (struct utf_16_spec): Adjust for the above change.
18736 (struct coding_system): Add utf_8_bom in `spec' union.
18737
18738 * coding.c (CODING_UTF_8_BOM): New macro.
18739 (enum coding_category): Delete coding_category_utf_8, add
18740 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
18741 coding_category_utf_8_sig.
18742 (CATEGORY_MASK_UTF_8): Delete it.
18743 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
18744 (CATEGORY_MASK_UTF_8_SIG): New macros.
18745 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
18746 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
18747 CATEGORY_MASK_UTF_8_SIG.
18748 (CATEGORY_MASK_UTF_8): New macro.
18749 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
18750 (detect_coding_utf_8): Check BOM.
18751 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
18752 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
18753 (encode_coding_utf_16): Likewise.
18754 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
18755 (detect_coding, detect_coding_system): Handle utf-8-auto.
18756 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
18757 (syms_of_coding): Fix setting up of Vcoding_category_table.
18758
18759 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
18760
18761 * process.c (Faccept_process_output): If `millisec' is non-nil,
18762 `seconds' default to 0.
18763 (wait_reading_process_output): Also return non-nil if we read output
18764 from a non-running process.
18765
18766 2008-05-29 Jason Rumney <jasonr@gnu.org>
18767
18768 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
18769 `raster' specified.
18770 (add_font_entity_to_list): Allow non-opentype truetype fonts back
18771 in the uniscribe backend, but disallow any font that has no
18772 unicode subrange support.
18773
18774 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
18775
18776 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
18777 Fix typos in docstrings.
18778
18779 2008-05-29 Kenichi Handa <handa@m17n.org>
18780
18781 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
18782 (Fx_family_fonts): Set frame correctly.
18783
18784 2008-05-28 Jason Rumney <jasonr@gnu.org>
18785
18786 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
18787
18788 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
18789
18790 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
18791 calling build_annotations.
18792
18793 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
18794
18795 * coding.c (Fdecode_coding_region, Fencode_coding_region)
18796 (Fencode_coding_string):
18797 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
18798 <latin-extra-code-table>: Fix typos in docstrings.
18799 (syms_of_coding) <coding-system-alist>: Doc fix.
18800 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
18801
18802 2008-05-28 Kenichi Handa <handa@m17n.org>
18803
18804 * fontset.c (Ffont_info): Don't call font_close_object.
18805
18806 * font.c (font_parse_family_registry): Use Ffont_put to validate
18807 foundry and family.
18808 (font_delete_unmatched): Don't check spacing.
18809 (font_list_entities): Add spacing to the spec to list fonts.
18810
18811 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18812 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
18813
18814 * coding.c (encode_coding_raw_text): Fix previous change.
18815 (encode_coding_object): When the dst_object is a buffer and is
18816 different from src_object, move gap to PT.
18817
18818 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18819
18820 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18821
18822 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18823
18824 * coding.c (encode_coding_raw_text): Set coding->produced_char for
18825 all branches. Compute it differently.
18826
18827 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18828
18829 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
18830
18831 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18832 into "else if () ... else ...".
18833
18834 2008-05-27 Jason Rumney <jasonr@gnu.org>
18835
18836 * w32font.c (w32font_open_internal): Determine if glyph indices
18837 are likely to work here.
18838
18839 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
18840
18841 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18842 draw overlap glyphs with appropriate highlighting.
18843
18844 2008-05-27 Kenichi Handa <handa@m17n.org>
18845
18846 * xfont.c (xfont_open): Fix calculation of font->average_width.
18847
18848 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
18849
18850 * casefiddle.c (casify_object): Try to guess better whether the
18851 argument is a byte or a char.
18852
18853 2008-05-26 Andreas Schwab <schwab@suse.de>
18854
18855 * xselect.c (x_reply_selection_request): Properly handle format == 32.
18856 Always send multiples of format size.
18857
18858 * xterm.c (x_set_frame_alpha): Fix type mismatch.
18859
18860 2008-05-26 Jason Rumney <jasonr@gnu.org>
18861
18862 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18863 (compute_metrics): Don't set failure if we just cleared the cache.
18864 (w32_weight_table): Remove unused variable.
18865 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18866 backwards compatibility.
18867
18868 2008-05-25 Kenichi Handa <handa@m17n.org>
18869
18870 * w32term.c (x_draw_glyph_string):
18871 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18872
18873 * xfaces.c: Delete unused function prototypes.
18874 (xstrlwr, font_frame): Delete them.
18875 (clear_face_cache): Delete unused variable.
18876
18877 * xftfont.c (xftfont_open): Delete unused variable.
18878 If underline_thickness is not 1, adjust underline_position.
18879
18880 * ftxfont.c (ftxfont_open): Delete unused variable.
18881
18882 * fontset.c (face_for_char): Optimize for the case of no charset
18883 property.
18884
18885 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18886 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18887 (otf_open, font_otf_capability, generate_otf_features)
18888 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18889 Comment out by surrounding "#if 0" and "#endif" for the moment.
18890 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18891 (syms_of_font): Codes for accessing above commented out.
18892
18893 2008-05-24 Eli Zaretskii <eliz@gnu.org>
18894
18895 * w32proc.c: Include dispextern.h.
18896
18897 * w32.c: Include dispextern.h.
18898
18899 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
18900
18901 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18902 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18903 Fix typos in docstrings.
18904
18905 2008-05-23 Jason Rumney <jasonr@gnu.org>
18906
18907 * xsmfns.c: Remove includes that are already included by config.h.
18908
18909 2008-05-23 Kenichi Handa <handa@m17n.org>
18910
18911 * charset.c (Qemacs, charset_emacs): New variables.
18912 (char_charset): Fix for non-Unicode characters.
18913 (syms_of_charset): Define charset_emacs.
18914
18915 * w32term.c (x_draw_glyph_string): Be sure to update
18916 s->underline_thickness and s->underline_position. Be sure to draw
18917 underline within the current line area.
18918
18919 * xterm.c (x_draw_glyph_string): Be sure to update
18920 s->underline_thickness and s->underline_position. Be sure to draw
18921 underline within the current line area.
18922
18923 * fontset.c: Delete unused variables and add casting for char *
18924 throughout the file.
18925 (fontset_font): Try the fallback fonts of the current fontset
18926 before consulting the default fontset.
18927
18928 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18929
18930 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18931
18932 2008-05-22 Jason Rumney <jasonr@gnu.org>
18933
18934 * font.c: Don't include strings.h.
18935
18936 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18937
18938 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18939 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18940 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18941 to call xstrcasecmp.
18942
18943 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18944
18945 * fontset.c (fs_query_fontset): Use xstrcasecmp.
18946
18947 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18948
18949 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18950
18951 2008-05-22 Kenichi Handa <handa@m17n.org>
18952
18953 * puresize.h (BASE_PURESIZE): Increase to 1220000.
18954
18955 * font.c (font_prop_validate_style): Adjust for the format
18956 change of font_style_table.
18957
18958 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18959 two args.
18960
18961 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18962 two args.
18963
18964 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
18965
18966 * minibuf.c (keys_of_minibuf): Delete.
18967 * lisp.h (keys_of_minibuf): Delete.
18968 * emacs.c (main): Don't call keys_of_minibuf.
18969
18970 2008-05-22 Kenichi Handa <handa@m17n.org>
18971
18972 * ftfont.c (ftfont_resolve_generic_family): Rename from
18973 ftfont_list_generic_family. Return a single family for each
18974 generic family.
18975 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18976 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18977 Call font_add_log.
18978 (ftfont_match): Call font_add_log.
18979
18980 * font.h (Ffont_xlfd_name): EXFUN adjusted.
18981 (FONT_DEBUG): Define it.
18982 (font_add_log): Extern it.
18983 (font_assert): Rename from xassert.
18984
18985 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18986 (xfont_list_family): Call font_add_log.
18987 (xfont_match): Likewise.
18988 (memq_no_quit): Delete.
18989
18990 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18991 call of Ffont_xlfd_name.
18992
18993 * xfaces.c (struct table_entry, slant_table, weight_table)
18994 (swidth_table): Move to font.c.
18995
18996 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
18997 xassert are changed to font_assert. Delete many unused variables.
18998 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18999 New variables.
19000 (struct table_entry): Move from xfaces.c and modified.
19001 (weight_table, slant_table, width_table): Move from xfaces.c and
19002 contents adjusted for the change of struct table_entry.
19003 (font_style_to_value, font_style_symbolic): Adjust for the
19004 format change of font_style_table.
19005 (font_parse_family_registry): Don't overwrite existing foundry and
19006 family of font_spec.
19007 (font_score): Fix calculation of diff for sizes.
19008 (font_sort_entites): Call font_add_log.
19009 (font_delete_unmatched): Return a newly created list.
19010 (font_list_entities): Fix previous change. Call font_add_log.
19011 (font_matching_entity, font_open_entity, font_close_entity):
19012 Call font_add_log.
19013 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
19014 (Finternal_set_font_style_table): Delete.
19015 (BUILD_STYLE_TABLE): New macro.
19016 (build_style_table): New function.
19017 (Vfont_log, font_log_env_checked): New variables.
19018 (font_add_log): New function.
19019 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
19020 Declare Lisp variables "font-weight-table", "font-slant-table",
19021 "font-width-table", and "font-log". Initialize font_style_table.
19022
19023 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
19024
19025 * xterm.c (x_set_frame_alpha): Move declarations before statements.
19026
19027 2008-05-21 Seiji Zenitani <zenitani@mac.com>
19028 Ryo Yoshitake <ryo@shiftmode.net>
19029
19030 * frame.c (Qalpha): Add a new frame parameter `alpha'.
19031 (Vframe_alpha_lower_limit): New variable.
19032 (x_set_alpha): New function.
19033
19034 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
19035
19036 * xfns.c (x-create-frame, Qalpha):
19037 Initialize the frame parameter `alpha'.
19038 * xterm.c (OPAQUE, OPACITY): New.
19039 (x_set_frame_alpha): New function.
19040 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
19041
19042 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
19043 * w32fns.c (w32_frame_parm_handlers): Likewise.
19044
19045 2008-05-20 Jason Rumney <jasonr@gnu.org>
19046
19047 * w32font.c (add_font_entity_to_list): Don't add non-opentype
19048 truetype fonts to opentype list.
19049
19050 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
19051
19052 * fontset.c (Ffontset_info): Doc fix.
19053 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
19054 <ignore-relative-composition>: Fix typos in docstrings.
19055
19056 * font.c (syms-of-font) <font-encoding-alist>:
19057 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
19058 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
19059 (Ffont_otf_alternates): Doc fixes.
19060
19061 2008-05-20 Kenichi Handa <handa@m17n.org>
19062
19063 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
19064 font.h through out the file.
19065 (FONT_DRIVERS): Rename from FONTOBJ.
19066 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
19067 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
19068
19069 * emacs.c (main): Call syms_of_font unconditionally.
19070
19071 * font.h (find_font_encoding): Extern it.
19072
19073 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
19074 fontset.c.
19075 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
19076 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
19077 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
19078 only when HAVE_WINDOW_SYSTEM is defined.
19079 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
19080 when HAVE_WINDOW_SYSTEM is defined.
19081
19082 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
19083 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
19084
19085 * xfaces.c: Include font.h unconditionally.
19086 (merge_face_ref, merge_face_vectors)
19087 (Finternal_set_lisp_face_attribute): Cancel the previous change.
19088
19089 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
19092 indirect_variable.
19093 * eval.c (lisp_indirect_variable): New fun.
19094 (Fuser_variable_p): Use it.
19095
19096 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19097
19098 * lisp.h (indirect_variable):
19099 * data.c (indirect_variable, let_shadows_buffer_binding_p):
19100 Use Lisp_Symbol pointers rather than Lisp_Object.
19101 Adjust callers.
19102 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
19103 To this end, change calling-convention.
19104
19105 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
19106 if some non-hidden buffers are selected by string&pred.
19107
19108 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
19109
19110 * process.c (wait_reading_process_output): Always check status
19111 when in batch mode.
19112
19113 2008-05-19 Kenichi Handa <handa@m17n.org>
19114
19115 * font.c (font_list_entities): Fix handling of cache.
19116 (font_matching_entity): Likewise.
19117
19118 * ftfont.c (cs_iso8859_1): Delete.
19119 (ft_face_cache): New variable.
19120 (struct ftfont_info): New member fc_charset_idx.
19121 (ftfont_build_basic_charsets): Delete.
19122 (fc_charset_table): New variable.
19123 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
19124 . FC_CHARSET_IDX) as :font-entity property in the font entity.
19125 Callers changed.
19126 (ftfont_lookup_cache, ftfont_get_charset): New functions.
19127 (ftfont_spec_pattern): New argument fc_charset_idx.
19128 Check registry more rigidly. Change callers.
19129 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
19130 change of :font-entity property of the font.
19131
19132 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
19133 property of the font.
19134
19135 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
19136
19137 * coding.c (Fcoding_system_p): Rename argument to match docstring.
19138 (Funencodable_char_position, Fcheck_coding_systems_region)
19139 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
19140 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
19141 (Ffind_operation_coding_system, Fset_coding_system_priority)
19142 (Fcoding_system_eol_type): Doc fixes.
19143
19144 2008-05-17 Glenn Morris <rgm@gnu.org>
19145
19146 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
19147
19148 2008-05-16 Eli Zaretskii <eliz@gnu.org>
19149
19150 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
19151 and st_gid.
19152
19153 * frame.c (Fdelete_frame): Don't call font_update_drivers if
19154 HAVE_WINDOW_SYSTEM is not defined.
19155
19156 * xfaces.c (merge_face_ref, merge_face_vectors)
19157 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
19158 HAVE_WINDOW_SYSTEM is defined.
19159 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
19160
19161 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19162
19163 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
19164
19165 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19166
19167 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
19168
19169 2008-05-15 Kenichi Handa <handa@m17n.org>
19170
19171 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
19172 preference.
19173
19174 2008-05-15 Glenn Morris <rgm@gnu.org>
19175
19176 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
19177
19178 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
19179
19180 * fns.c (init_fns): Don't initialize weak_hash_tables here.
19181 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
19182
19183 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
19184
19185 2008-05-15 Kenichi Handa <handa@m17n.org>
19186
19187 * ftfont.c (ftfont_list): Downcase family name to check generic
19188 families.
19189
19190 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
19191 font-spec for QCfont value.
19192
19193 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
19194 buffer. Check the return value of it.
19195
19196 2008-05-14 Jason Rumney <jasonr@gnu.org>
19197
19198 * w32term.c (w32_get_glyph_overhangs): Remove.
19199 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
19200
19201 2008-05-14 Kenichi Handa <handa@m17n.org>
19202
19203 * font.c (font_prop_validate): Make nil a valid value.
19204 (font_clear_cache): Check if the cached vector of entities is nil
19205 or not.
19206
19207 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19208
19209 * emacs.c (main_thread): Conditionalize on
19210 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19211 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
19212
19213 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
19214 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
19215 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
19216
19217 2008-05-14 Kenichi Handa <handa@m17n.org>
19218
19219 * coding.c (detect_coding_iso_2022): Ignore a coding category that
19220 has no corresponding coding system.
19221
19222 2008-05-14 Jason Rumney <jasonr@gnu.org>
19223
19224 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
19225
19226 * w32font.h (w32font_open_internal): Update declaration.
19227
19228 * w32font.c (w32font_open_internal): Change last argument from
19229 w32font_info struct to font object. Fill in font object from
19230 font_entity. Get Outline metrics if possible. Use them to
19231 calculate underline position and thickness. Use xlfd name as name
19232 property. Don't set codepage.
19233 (w32font_open): Pass font_object to w32font_open_internal. Don't
19234 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
19235 (w32font_draw): Use s->font.
19236 (clear_cached_metrics): Don't clear non-existent blocks.
19237
19238 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
19239 font was not found.
19240 (x_draw_glyph_string): Use underline position and thickness from font.
19241
19242 * w32uniscribe.c (uniscribe_open): Pass font_object to
19243 w32font_open_internal.
19244
19245 2008-05-14 Kenichi Handa <handa@m17n.org>
19246
19247 These changes are to delete all legacy font-handling codes, and
19248 make Emacs use only font-backends.
19249
19250 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
19251 (frame.o, image.o, print.o): Depend on $(FONTSRC).
19252
19253 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
19254
19255 * charset.h (Vcharset_non_preferred_head)
19256 (Vcurrent_iso639_language): Extern them.
19257
19258 * charset.c (Vcharset_non_preferred_head): New variable.
19259 (Vcurrent_iso639_language): New variable.
19260 (syms_of_charset): Declare it as a Lisp variable.
19261 (char_charset): Don't check non preferred charsets. As a last
19262 resort, return charset_unicode.
19263 (Fset_charset_priority): Update Vcharset_non_preferred_head.
19264
19265 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
19266 conditionals. Don't check enable_font_backend. Delete all codes
19267 used only when USE_FONT_BACKEND is not defined.
19268
19269 * dispextern.h (struct glyph_string): Change type of `font' to
19270 `struct font *'.
19271 (struct glyph_string): New member underline_position and
19272 underline_thickness.
19273 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
19274 (struct face): Change type of `font' to `struct font *'.
19275 Remove members `font_name', `font_info_id'.
19276 (per_char_metric, encode_char): Delete externs.
19277 (calc_pixel_width_or_height): Adjust the prototype.
19278
19279 * emacs.c (enable_font_backend): Delete extern.
19280 (main): Don't set enable_font_backend. Don't check the command
19281 line argument "-disable-font-backend".
19282
19283 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
19284 (enum font_property_index): New members FONT_DPI_INDEX,
19285 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
19286 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
19287 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
19288 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
19289 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
19290 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
19291 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
19292 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
19293 (struct font_spec, struct font_entity): New structs.
19294 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
19295 (struct font): Many members from old "struct font_info" moved to
19296 here. Members font and entity deleted.
19297 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
19298 the new font-related objects.
19299 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
19300 (CHECK_FONT_GET_OBJECT): Likewise.
19301 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
19302 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
19303 (struct font_driver): New members case_sensitive anc check.
19304 Type of the member list and open changed.
19305 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
19306 (font_symbolic_width, font_find_object, font_get_spec)
19307 (font_set_lface_from_name): Delete extern.
19308 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
19309
19310 * font.c: Include <strings.h>.
19311 (enable_font_backend): Delete it.
19312 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
19313 (CHECK_VALIDATE_FONT_SPEC): Delete it.
19314 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
19315 (null_string): Delete it.
19316 (null_vector): Make it static.
19317 (font_family_alist): Delete it.
19318 (Qnormal): Extern it.
19319 (QCextra, QClanguage): Delete it.
19320 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
19321 (font_make_spec, font_make_entity, font_make_object)
19322 (font_intern_prop): Rename from intern_downcase. Don't downcase
19323 the string. Callers changed.
19324 (font_pixel_size): Adjust for the format change of font-related
19325 objects.
19326 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
19327 (font_style_to_value, font_style_symbolic): New function.
19328 (build_font_family_alist): Delete it.
19329 (font_registry_charsets): Use Fassoc_string instead of
19330 assq_no_quit.
19331 (font_prop_validate_symbol): Don't return null_string.
19332 (font_prop_validate_style): Adjust for the change of
19333 style-related values in a font vector.
19334 (font_property_table): Delete entries for QClanguage and
19335 QCantialias, add entries for QCavgwidth.
19336 (get_font_prop_index): Delete the 2nd argument FROM.
19337 (font_prop_validate): Arguments changed.
19338 (font_put_extra): Adjust for the change of font-related objects.
19339 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
19340 (font_parse_fcname, font_unparse_fcname)
19341 (font_prepare_composition): Likewise.
19342 (font_parse_family_registry): Rename from font_merge_old_spec.
19343 (otf_open): Delete the 1st arg entity.
19344 (font_otf_capability): Adjust for the above change.
19345 (font_score): New arg alternate_families. Adjusted for the change
19346 of font-related objects.
19347 (font_sort_entites): New arg best_only.
19348 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
19349 Delete them.
19350 (font_match_p): Check alternate families.
19351 (font_find_object): Delete it.
19352 (font_check_object): New function.
19353 (font_clear_cache): Adjust for the change of font-related objects.
19354 (font_delete_unmatched): New arg.
19355 (font_list_entities): Call font_driver->list with a spec that
19356 doesn't specify style-related properties.
19357 (font_matching_entity): Arguments changed. Caller changed.
19358 (font_open_entity): Adjust for the change of font-related objects.
19359 (font_close_object, font_has_char, font_encode_char)
19360 (font_get_name, font_get_spec): Likewise.
19361 (font_spec_from_name, font_clear_prop, font_update_lface):
19362 New functions.
19363 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
19364 (font_prepare_for_face, font_done_for_face, font_open_by_name)
19365 (font_at): Adjust for the change of font-related objects.
19366 (font_range): New function.
19367 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
19368 (Ffont_xlfd_name): Adjust for the change of font-related objects.
19369 (Fcopy_font_spec, Fmerge_font_spec): New function.
19370 (Ffont_family_list): Rename from list-families.
19371 (Finternal_set_font_style_table): Arguments changed.
19372 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
19373 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
19374 change of font-related objects.
19375 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
19376
19377 * fontset.h (struct font_info): Delete it. Most members go to
19378 struct font.
19379 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
19380 (enum FONT_SPEC_INDEX): Delete it.
19381 (font_info, list_fonts_func, load_font_func, query_font_func)
19382 (set_frame_fontset_func, find_ccl_program_func)
19383 (get_font_repertory_func, new_fontset_from_font_name):
19384 Delete externs.
19385 (fontset_from_font_name): Extern it.
19386 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
19387 (FONT_INFO_FROM_FACE): Deleted.
19388 (face_for_font): Adjust prototype.
19389
19390 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
19391 conditionals. Don't check enable_font_backend. Delete all codes
19392 used only when USE_FONT_BACKEND is not defined.
19393 (get_font_info_func, list_font_func, load_font_func)
19394 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
19395 (get_font_repertory_func): Delete them.
19396 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
19397 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
19398 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
19399 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
19400 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
19401 (fontset_compare_rfontdef): New function.
19402 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
19403 rfont-defs by qsort. Adjusted for the change of font-group vector.
19404 (load_font_get_repertory): Deleted.
19405 (fontset_find_font): Use new macros to ref/set elements of
19406 font-def and rfont-def.
19407 (fontset_font): Fix the timing of remembering that no font for C.
19408 (free_face_fontset): Do nothing if the face has no fontset.
19409 (face_suitable_for_char_p): Use new macros to ref/set elements of
19410 rfont-def.
19411 (face_for_char): Likewise. Call face_for_char with font_object.
19412 (fs_load_font): Delete. Delete #pragma surrounding it.
19413 (fs_query_fontset): Use strcasecmp instead of strcmp.
19414 (generate_ascii_font_name): Adjust for the format change of
19415 font-spec.
19416 (Fset_fontset_font): Likewise. Use new macros to set elements of
19417 font-def.
19418 (Fnew_fontset): Use font_unparse_xlfd to generate
19419 FONTSET_ASCII (fontset).
19420 (new_fontset_from_font_name): Deleted.
19421 (fontset_from_font): Rename from new_fontset_from_font. Check if
19422 a fontset is already created for the font. FIx updating of
19423 Vfontset_alias_alist.
19424 (fontset_ascii_font): Deleted.
19425 (Ffont_info): Adjust for the format change of font-spec.
19426 (Finternal_char_font): Likewise.
19427 (Ffontset_info): Likewise.
19428 (syms_of_fontset): Don't check load_font_func.
19429
19430 * fns.c (internal_equal): Handle PREV_FONT.
19431
19432 * frame.h: Delete USE_FONT_BACKEND conditional.
19433
19434 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
19435 conditionals. Don't check enable_font_backend. Delete all codes
19436 used only when USE_FONT_BACKEND is not defined.
19437 (x_set_font): Call x_new_font, not x_new_fontset2.
19438 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
19439 already set for the frame.
19440
19441 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
19442 Make a font-entity by font_make_entity. Use font_intern_prop instead
19443 of intern_downcase. Use FONT_SET_STYLE to set a style-related
19444 font property. If a font is scalable, set avgwidth property to 0.
19445 Set font-entity property by font_put_extra.
19446 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
19447 (ffont_driver): Adjust for the change of struct font_driver.
19448 (ftfont_spec_pattern): New function.
19449 (ftfont_list): Return a list, not vector.
19450 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
19451 (ftfont_list_family): Don't downcase names.
19452 (ftfont_free_entity): Deleted.
19453 (ftfont_open): Return a font-object. Adjusted for the change of
19454 struct font. Get underline_thickness and underline_position from
19455 font property. Don't update dpyinfo->smallest_font_height and
19456 dpyinfo->smallest_char_width.
19457 (ftfont_close): Don't free `struct font'.
19458 (ftfont_has_char): Adjust for the format change of font-entity.
19459 (ftfont_encode_char, ftfont_text_extents): Likewise.
19460
19461 * ftxfont.c (ftxfont_list): Return a list, not vector.
19462 (ftxfont_open): Return a font-object. Adjusted for the change of
19463 struct font. Get underline_thickness and underline_position from
19464 font property. Don't update dpyinfo->smallest_font_height and
19465 dpyinfo->smallest_char_width.
19466 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
19467 (ftxfont_draw): Adjust for the change of struct font.
19468
19469 * image.c (image_ascent): Don't include "charset.h".
19470 Include "character.h" and "font.h".
19471
19472 * lisp.h (enum pvec_type): New member PREV_FONT.
19473 (Fassoc_string): EXFUN it.
19474
19475 * print.c: Include font.h.
19476 (print_object): Handle font-related objects.
19477
19478 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
19479 conditionals. Don't check enable_font_backend. Delete all codes
19480 used only when USE_FONT_BACKEND is not defined.
19481 (handle_auto_composed_prop): Do nothing if it->f is not on a
19482 window system. Check how many following characters can be
19483 displayed by the same font.
19484 (calc_pixel_width_or_height): Type of the 4th arg is changed to
19485 'struct font *'.
19486 (get_char_face_and_encoding): Assign the whole encoding task to
19487 the `encode-char' method of a font driver.
19488 (fill_composite_glyph_string): Adjust for the change of `struct
19489 face' and `struct glyph_string'.
19490 (fill_glyph_string): Likewise.
19491 (get_per_char_metric): Arguments changed.
19492 (x_get_glyph_overhangs): Adjust for the change of `struct face'
19493 and `struct glyph_string'.
19494 (produce_stretch_glyph, calc_line_height_property)
19495 (x_produce_glyphs): Likewise.
19496
19497 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
19498 conditionals. Don't check enable_font_backend. Delete all codes
19499 used only when USE_FONT_BACKEND is not defined.
19500 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
19501 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
19502 (Qp): Extern them.
19503 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
19504 Deleted.
19505 (struct font_name): Deleted.
19506 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
19507 (compare_fonts_by_sort_order): New function.
19508 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
19509 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
19510 Deleted.
19511 (Fx_family_fonts): Use font_list_entities, and sort fonts by
19512 compare_fonts_by_sort_order.
19513 (Fx_font_family_list): Call Ffont_family_list.
19514 (face_numeric_value, face_numeric_weight, face_numeric_slant)
19515 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
19516 (face_symbolic_slant, face_symbolic_swidth)
19517 (split_font_name_into_vector, build_font_name_from_vector)
19518 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
19519 (font_rescale_ratio, split_font_name, build_font_name)
19520 (free_font_names, sort_fonts, x_face_list_fonts)
19521 (face_font_available_p, sorted_font_list, cmp_font_names)
19522 (font_list_1, concat_font_list, font_list, remove_duplicates):
19523 Deleted.
19524 (Fx_list_fonts): Use Ffont_list.
19525 (LFACE_AVGWIDTH): Deleted.
19526 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
19527 by FONTP.
19528 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
19529 (set_lface_from_font_name): Delete it.
19530 (set_lface_from_font): Rename from
19531 set_lface_from_font_and_fontset. Caller changed. Don't set
19532 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
19533 for face.
19534 (merge_face_vectors): Copy font-spec if necessary.
19535 Clear properties of the font-spec if necessary.
19536 (merge_face_ref): Clear properties of the font-spec if necessary.
19537 (Finternal_set_lisp_face_attribute): Likewise.
19538 (set_font_frame_param): Use font_load_for_lface to load a
19539 font-object, and call Fmodify_frame_parameters with it.
19540 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
19541 font name by Ffont_xlfd_name.
19542 (Finternal_lisp_face_attribute_values): Don't check QCweight,
19543 QCslant, and QCwidth.
19544 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
19545 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
19546 Compare fonts by EQ.
19547 (lookup_non_ascii_face): Deleted.
19548 (face_for_font): The 2nd argument changed.
19549 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
19550 Check atomic font properties by case insensitive.
19551 (realize_non_ascii_face): Set face->overstrike correctly.
19552 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
19553 (dump_realized_face): Get font name from
19554 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
19555
19556 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
19557 conditionals. Don't check enable_font_backend. Delete all codes
19558 used only when USE_FONT_BACKEND is not defined.
19559 (xic_create_xfontset): Original code deleted and renamed from
19560 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
19561 (x_make_gc): Don't set GCFont in GCs.
19562 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
19563 opened by "fixed".
19564 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
19565 find_ccl_program_func, query_font_func, set_frame_fontset_func,
19566 get_font_repertory_func.
19567
19568 * xfont.c: Include <stdlib.h> and "ccl.h".
19569 (struct xfont_info): New structure.
19570 (xfont_query_font): Deleted.
19571 (xfont_find_ccl_program): Rename from x_find_ccl_program and
19572 moved from xterm.c.
19573 (xfont_driver): Adjust for the change of struct font_driver.
19574 (compare_font_names): New function.
19575 (xfont_list_pattern): Sort font names case insensitively.
19576 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
19577 (xfont_list): Return a list, not vector.
19578 (xfont_match): If the font doesn't have QCname property, generate
19579 a name from the other font properties.
19580 (xfont_open): Return a font-object. Adjusted for the change of
19581 struct font. Get underline_thickness and underline_position from
19582 font property. Don't update dpyinfo->smallest_font_height and
19583 dpyinfo->smallest_char_width.
19584 (xfont_close): Don't free struct font.
19585 (xfont_prepare_face): Adjust for the change of struct font.
19586 (xfont_done_face): Deleted.
19587 (xfont_has_char): Adjust for the change of struct font.
19588 (xfont_encode_char, xfont_draw): Likewise.
19589 (xfont_check): New function.
19590
19591 * xftfont.c (xftfont_list): Adjust for the change of `list'
19592 callback function.
19593 (xftfont_match): Adjust for the format change of font-entity.
19594 (xftfont_open): Adjust for the format change of font-entity and
19595 font-object. Adjusted for the change of struct font. Return a
19596 font-object. Don't update dpyinfo->smallest_font_height and
19597 dpyinfo->smallest_char_width.
19598 (xftfont_close): Block input while calling XftFontClose.
19599 (xftfont_prepare_face): Don't block input while calling
19600 xftfont_get_colors. Adjusted for the change of struct font.
19601 (xftfont_shape): Return value of error case fixed.
19602
19603 * xrdb.c (x_load_resources): Don't setup a fontset resource.
19604
19605 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
19606 conditionals.
19607 (FONT_WIDTH): Return (f)->max_width.
19608 (struct x_display_info): Delete member `font'.
19609 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
19610 (x_find_ccl_program, x_get_font_repertory): Delete externs.
19611 (struct x_output): Change type of `font' to `struct font *'.
19612
19613 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
19614 conditionals. Don't check enable_font_backend. Delete all codes
19615 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
19616 (x_per_char_metric, x_encode_char): Deleted.
19617 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
19618 (x_compute_glyph_string_overhangs): Adjust for the change of
19619 `struct face'.
19620 (x_draw_glyph_string_foreground)
19621 (x_draw_composite_glyph_string_foreground): Likewise.
19622 (x_draw_glyph_string): Likewise. Use font->underline_position and
19623 font->underline_thickness.
19624 (x_new_font): Rename from x_new_fontset2.
19625 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
19626 (x_check_font): Call `check' method of a font driver.
19627 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
19628 (x_query_font, x_get_font_repertory): Deleted.
19629 (x_find_ccl_program): Rename and moved to xfont.c.
19630 (x_redisplay_interface): Adjust for the change of `struct
19631 redisplay_interface'.
19632
19633 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
19634 conditionals. Don't check enable_font_backend. Delete all codes
19635 used only when USE_FONT_BACKEND is not defined. Surround non-used
19636 code by "#ifdef OLD_FONT" and "endif".
19637 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
19638
19639 * w32font.h (struct w32font_info): New member.
19640 (FONT_COMPAT): New macro.
19641 (w32font_open_internal): Prototype adjusted.
19642
19643 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
19644 OLD_FONT" and "endif".
19645
19646 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
19647 conditionals. Don't check enable_font_backend. Delete all codes
19648 used only when USE_FONT_BACKEND is not defined.
19649 (w32font_open): Return a font-object. Make a font-object by
19650 font_make_object. Adjusted for the change of struct w32font_info.
19651 (w32font_close): Don't free struct font. Adjusted for the change
19652 of struct w32font_info.
19653 (w32font_encode_char, w32font_text_extents, w32font_draw):
19654 Adjust for the change of struct w32font_info.
19655 (w32font_draw): Likewise.
19656 (w32font_list_internal): Return a list, not vector.
19657 (w32font_open_internal): Change the 4th arg to font-object.
19658 Adjusted for the change of struct w32font_info and font-object format.
19659 (add_font_name_to_list): Don't downcase names.
19660 (w32_enumfont_pattern_entity): Make a font-entity by
19661 font_make_entity. Adjusted for the format change of font-entity.
19662 Use FONT_SET_STYLE to set a style-related font property. If a
19663 font is scalable, set avgwidth property to 0. Set font-entity
19664 property by font_put_extra.
19665 (font_matches_spec): Adjust for the format change of font-entity.
19666 (w32_weight_table, w32_decode_weight): New variables.
19667 (w32_encode_weight): New function.
19668 (fill_in_logfont): Adjust for the format change of font-spec.
19669 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
19670 weight value.
19671 (w32font_driver): Adjust for the change of struct font_driver.
19672
19673 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
19674 conditionals. Don't check enable_font_backend. Surround non-used
19675 code by "#ifdef OLD_FONT" and "endif".
19676 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
19677 (FONT_AVG_WIDTH): Adjust for the change of struct font.
19678
19679 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
19680 conditionals. Don't check enable_font_backend. Delete all codes
19681 used only when USE_FONT_BACKEND is not defined. Surround non-used
19682 code by "#ifdef OLD_FONT" and "endif".
19683
19684 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
19685 (uniscribe_open): Return value changed to font-object.
19686 Adjusted for the format change of font-object.
19687 (uniscribe_otf_capability): Adjust for the change of struct font.
19688 (add_opentype_font_name_to_list): Don't downcase names.
19689 (uniscribe_font_driver): Adjust for the change of struct
19690 font_driver.
19691
19692 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
19693
19694 * dispnew.c (update_frame_1): Check if tty output is still valid
19695 before flushing it.
19696
19697 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
19698
19699 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
19700 to Gtk+ menus.
19701
19702 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
19703
19704 * dired.c (file_name_completion): Tweak the code so as to always do it
19705 in a single pass. Tighten the scope of some variables.
19706
19707 * dired.c (Qdefault_directory): New var.
19708 (file_name_completion): Use it instead of Fexpand_file_name.
19709 (syms_of_dired): Initialize it.
19710
19711 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
19712
19713 * fileio.c (double_dollars): Remove dead code.
19714
19715 2008-05-10 Eli Zaretskii <eliz@gnu.org>
19716
19717 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
19718 Mention w32-get-true-file-attributes in doc string.
19719
19720 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
19721
19722 2008-05-09 Glenn Morris <rgm@gnu.org>
19723
19724 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
19725 2008-04-23.
19726
19727 2008-05-09 Eli Zaretskii <eliz@gnu.org>
19728
19729 Support for reporting owner and group of each file on MS-Windows:
19730 * dired.c (stat_uname, stat_gname): New functions, with special
19731 implementation for w32.
19732 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
19733
19734 * w32.c: Rename the_passwd_* to dflt_passwd_*.
19735 (dflt_group_name): New static variable.
19736 (dflt_group): Rename from the_group.
19737 (init_user_info): Init dflt_group fields. Get user's group name
19738 from LookupAccountSid.
19739 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
19740 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
19741 New initialization states.
19742 (globals_of_w32): Initialize them to zero. Initialize the default
19743 group name to "None".
19744 (GetFileSecurity_Name): New global var, the name of the function
19745 to call for GetFileSecurity.
19746 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
19747 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
19748 (get_file_security, get_security_descriptor_owner)
19749 (get_security_descriptor_group, is_valid_sid)
19750 (get_file_security_desc, get_rid, get_name_and_id)
19751 (get_file_owner_and_group): New functions.
19752 (stat): Use get_file_security_desc and get_file_owner_and_group to
19753 report the owner and primary group of each file. Don't ignore the
19754 high 32 bits of file's size, now that st_size is 64-bit wide.
19755 Fix test when to get true file attributes.
19756 (init_user_info): Use get_rid instead of equivalent inline code.
19757 (fstat): Don't ignore the high 32 bits of file's size.
19758
19759 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
19760
19761 * image.c (png_load): Use correct bit-depth for setting background
19762 color.
19763
19764 2008-05-08 Eli Zaretskii <eliz@gnu.org>
19765
19766 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
19767 epa-hook.elc.
19768
19769 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
19770
19771 * font.c (Ffont_match_p): Don't use `iff' in docstring.
19772
19773 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
19774
19775 * macfns.c (Fx_create_frame): Make a copy of frame parameters
19776 because the original parameters are in pure storage now.
19777 (mac_window): Remove unused params. Update callers.
19778
19779 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
19780
19781 * lread.c (substitute_object_recurse): Use lower-level primitives.
19782 Don't signal errors when traversing sub-char-tables.
19783 Don't loop over all the possible characters when traversing char-tables.
19784
19785 * print.c (print_preprocess): Add sub-char-tables to the print-table,
19786 just like we do in print.c.
19787
19788 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
19789
19790 * minibuf.c (Ftry_completion): Remove code left over from when we used
19791 scmp instead of Fcompare_strings.
19792
19793 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
19794
19795 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
19796
19797 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19798
19799 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
19800 Create bitmap context in native byte order.
19801
19802 * macterm.c (XDrawLine)
19803 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19804 context in native byte order.
19805
19806 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19807
19808 * config.in: Regenerate.
19809
19810 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19811 New definitions for Image I/O support.
19812 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19813 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19814 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19815 (mac_data_provider_release_data, image_load_image_io)
19816 [USE_MAC_IMAGE_IO]: New functions.
19817 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19818 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19819 (init_image_func_pointer) [MAC_OSX]: Remove function.
19820 (image_load_quartz2d) [MAC_OSX]: Check availability of
19821 CGImageCreateWithPNGDataProvider at compile time.
19822 Use lowercase `false' for boolean constant.
19823 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19824 Use image_load_image_io.
19825 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19826 Don't check MyCGImageCreateWithPNGDataProvider.
19827 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19828 Don't call init_image_func_pointer.
19829
19830 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19831
19832 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19833 Make variable non-static.
19834 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19835 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19836
19837 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19838 (RED_FROM_ULONG): Mask off higher bits.
19839 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19840
19841 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19842 Include AvailabilityMacros.h.
19843 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19844 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19845
19846 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
19847
19848 * chartab.c (Fset_char_table_range): If range is t, really set all
19849 chars to that value.
19850
19851 2008-05-03 Eli Zaretskii <eliz@gnu.org>
19852
19853 * dired.c (Ffile_attributes): Don't allow the device number become
19854 negative.
19855
19856 2008-05-02 Daiki Ueno <ueno@unixuser.org>
19857
19858 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19859
19860 2008-05-02 Juri Linkov <juri@jurta.org>
19861
19862 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19863 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19864 DEFAULT argument as a list of default values in docstrings.
19865
19866 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
19867
19868 * puresize.h (BASE_PURESIZE): Increase to 1210000.
19869
19870 2008-05-01 Martin Rudalics <rudalics@gmx.at>
19871
19872 * dispnew.c (change_frame_size_1): Preserve small windows when
19873 shrinking frames by calling set_window_height|width with third
19874 arg 2.
19875
19876 * window.h (struct window): Replace field too_small_ok by field
19877 resize_proportionally.
19878
19879 * window.c (make_window): Initialize resize_proportionally.
19880 (enlarge_window): Temporarily set resize_proportionally to make
19881 sure that shrink_windows does scale the window proportionally.
19882 (shrink_windows): When window has resize_proportionally set try
19883 to shrink it proportionally by stealing from other windows.
19884 (struct saved_window, Fset_window_configuration)
19885 (compare_window_configurations): Handle resize_proportionally.
19886 (WINDOW_TOTAL_SIZE): New macro.
19887 (window_min_size, shrink_windows, size_window): Use it.
19888 (check_min_window_sizes): Remove. Invalid values of
19889 window-min-height|width are handled by window_min_size_2 now.
19890 (size_window, Fsplit_window, enlarge_window)
19891 (adjust_window_trailing_edge, grow_mini_window): Don't call
19892 check_min_window_sizes.
19893 (window_min_size_2, window_min_size_1, window_min_size):
19894 New argument safe_p for retrieving "safe" minimum sizes.
19895 (Fdisplay_buffer, Fsplit_window, enlarge_window)
19896 (adjust_window_trailing_edge, grow_mini_window):
19897 Adjust arguments of window_min_size... functions.
19898 (shrink_windows): Argument min_size removed. New argument
19899 safe_p allows shrinking windows to their safe minimum sizes.
19900 Calculate minimum size and decide whether a window shall be
19901 deleted for each window individually.
19902 (size_window): When nodelete_p equals 2, tell shrink_windows to
19903 delete windows only if their new minimum size is no more safe.
19904 (shrink_window_lowest_first): Call window_min_size_1 to make
19905 sure to preserve modeline of bottom-most window when resizing
19906 the minibuffer.
19907 (Fset_window_configuration, Fcurrent_window_configuration)
19908 (compare_window_configurations): Do not handle
19909 window-min-height|width any more.
19910 (syms_of_window): Clarify window-min-height|width doc-strings.
19911
19912 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
19913
19914 * dired.c (file_name_completion): Fix up the encoding/decoding issue
19915 some more. Copy some of the code from Ftry_completions.
19916 Remove special case code that dates back to initial revision when the
19917 slash was only added when necessary and that can't trigger nowadays.
19918
19919 2008-04-27 Kenichi Handa <handa@m17n.org>
19920
19921 * font.c (font_prop_validate): Signal `error' instead of `font'.
19922
19923 2008-04-29 Jason Rumney <jasonr@gnu.org>
19924
19925 * w32fns.c (Fw32_battery_status): New defun.
19926 (syms_of_w32fns): Defsubr it.
19927
19928 2008-04-28 Andreas Schwab <schwab@suse.de>
19929
19930 * dired.c (file_name_completion): Fix another mixing of encoded
19931 and decoded names.
19932
19933 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
19934
19935 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19936
19937 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
19938
19939 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19940
19941 2008-04-27 Andreas Schwab <schwab@suse.de>
19942
19943 * dired.c (file_name_completion): Fix inappropriate mixing of
19944 encoded and decoded names.
19945
19946 * xterm.c (XTread_socket): Fix use of uninitialized variable.
19947
19948 * puresize.h (BASE_PURESIZE): Increase to 1200000.
19949
19950 2008-04-26 Eli Zaretskii <eliz@gnu.org>
19951
19952 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19953 2008-03-31, it's not needed anymore with `struct stat' definition
19954 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
19955 for the same reasons.
19956
19957 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
19958
19959 * m/sparc.h: Additional redefinitions for GNU/Linux.
19960
19961 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19962
19963 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19964 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19965 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19966 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19967 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19968 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19969 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19970 Likewise.
19971
19972 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19973 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19974 (mac_ax_number_of_characters): Add externs.
19975 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19976 [USE_MAC_TSM]: Likewise.
19977 (mac_handle_text_input_event) [MAC_OSX]:
19978 Handle kEventTextInputOffsetToPos for no active input area case.
19979 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19980 (mac_handle_document_access_event)
19981 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19982 (install_application_handler) [MAC_OSX]: Register handlers for
19983 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19984 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19985 Register mac_handle_document_access_event.
19986
19987 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19988 Make functions non-static.
19989
19990 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
19991
19992 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19993 (read_file_name_completion_ignore_case, insert_default_directory)
19994 (Qdefault_directory): Move to minibuffer.el.
19995 (Fread_file_name): Call the new `read-file-name' instead.
19996
19997 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19998
19999 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
20000 Make function non-static.
20001 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
20002 Remove function.
20003 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20004 Move to mactoolbox.c.
20005 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
20006
20007 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
20008 (mac_rect_make): New macro.
20009
20010 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
20011 instead of float.
20012 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20013 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
20014 (XSetBackground) [USE_CG_DRAWING]: Likewise.
20015 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
20016 CGRectMake.
20017 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
20018 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
20019 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
20020 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20021 instead of WindowRef in argument type.
20022 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
20023 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
20024 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
20025 instead of DISPLAY. All uses changed.
20026 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
20027 (x_calc_absolute_position): Simplify so as not to use
20028 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
20029
20030 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
20031 instead of WindowRef in argument type.
20032 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
20033 [TARGET_API_MAC_CARBON]: Remove externs.
20034 (create_apple_event, mac_event_parameters_to_lisp)
20035 [TARGET_API_MAC_CARBON]: Add externs.
20036
20037 * mactoolbox.c (Vmac_ts_script_language_on_focus)
20038 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
20039 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
20040 is clicked.
20041 (x_activate_menubar): Remove extern for saved_menu_event_location.
20042 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
20043 Move from mac.c.
20044
20045 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20046
20047 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
20048 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
20049
20050 2008-04-23 Jason Rumney <jasonr@gnu.org>
20051
20052 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
20053 attributes only for local files.
20054
20055 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
20056 default to Qlocal.
20057
20058 2008-04-22 Juri Linkov <juri@jurta.org>
20059
20060 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
20061 read-buffer-to-switch instead of using the letter "B".
20062
20063 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
20064
20065 * fileio.c (Qdefault_directory): New variable.
20066 (Fread_file_name): Use it to pass `dir' to the completion functions.
20067
20068 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
20069
20070 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
20071
20072 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
20073
20074 * keyboard.c (Vpre_help_message): Remove.
20075 (show_help_echo): Remove default C code.
20076
20077 * dired.c (directory_files_internal, file_name_completion):
20078 Only call ENCODE_FILE if the string is indeed decoded.
20079
20080 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20081
20082 * Makefile.in (TOOLKIT_DEFINES): Remove.
20083 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
20084
20085 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20086
20087 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
20088 (mactoolbox.o): New target.
20089
20090 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
20091 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
20092
20093 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
20094 Use mac_set_frame_window_background instead of XSetWindowBackground.
20095 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
20096 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
20097 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
20098 instead of SetWindowTitleWithCFString.
20099 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
20100 Move function to mactoolbox.c.
20101 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
20102 Use mac_set_window_modified instead of SetWindowModified.
20103 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
20104 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
20105 (Fx_focus_frame): Use mac_front_non_floating_window instead of
20106 FrontNonFloatingWindow. Use mac_activate_window instead of
20107 ActivateWindow. Use mac_active_non_floating_window instead of
20108 ActiveNonFloatingWindow.
20109 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
20110 Use mac_show_hourglass and mac_hide_hourglass.
20111 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
20112 instead of GetGlobalMouse.
20113 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
20114 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
20115 Use mac_bring_window_to_front instead of BringToFront.
20116 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
20117 mactoolbox.c.
20118 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
20119 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
20120 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
20121 mactoolbox.c.
20122
20123 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
20124 (XtPointer): Move typedef from macmenu.c.
20125 (enum button_type): Move enum from macmenu.c.
20126 (widget_value): Move typedef from macmenu.c.
20127 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
20128 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20129 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20130 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20131 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20132 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20133 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20134 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
20135 (Selection): Move typedef from macselect.c.
20136 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
20137 macterm.c.
20138 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
20139 (mac_is_window_collapsed, mac_bring_window_to_front)
20140 (mac_send_window_behind, mac_hide_window, mac_show_window)
20141 (mac_collapse_window, mac_front_non_floating_window)
20142 (mac_active_non_floating_window, mac_activate_window)
20143 (mac_move_window_structure, mac_move_window, mac_size_window)
20144 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
20145
20146 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
20147 (enum mac_menu_kind): Move enum to mactoolbox.c.
20148 (min_menu_id): Move variable to mactoolbox.c.
20149 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
20150 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
20151 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20152 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20153 [TARGET_API_MAC_CARBON]: Likewise.
20154 (XtPointer): Move typedef to macgui.h.
20155 (enum button_type): Move enum to macgui.h.
20156 (widget_value): Move typedef to macgui.h.
20157 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
20158 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
20159 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
20160 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
20161 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
20162 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
20163 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
20164 (popup_activated_flag): Make variable non-static.
20165 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
20166 (add_menu_item, fill_menu, dispose_menus):
20167 Move functions to mactoolbox.c.
20168 (restore_show_help_function, menu_target_item_handler)
20169 (install_menu_target_item_handler, mac_handle_dialog_event)
20170 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
20171 [TARGET_API_MAC_CARBON]: Likewise.
20172 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
20173 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20174 (find_and_call_menu_selection, name_is_separator): Make function
20175 non-static.
20176 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
20177 to mactoolbox.c.
20178 (set_frame_menubar): Don't call install_menu_quit_handler.
20179 (menu_item_selection): New variable.
20180 (mac_menu_show): Use create_and_show_popup_menu.
20181 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
20182 selection but set variable menu_item_selection. All uses changed.
20183 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
20184 Call install_menu_quit_handler. Move to mactoolbox.c.
20185
20186 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
20187 (Selection): Move typedef to macgui.h.
20188 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
20189 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
20190 Make variables non-static.
20191 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20192 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
20193 Make functions non-static.
20194 (Vmac_service_selection) [MAC_OSX]: Likewise.
20195 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
20196 (mac_valid_selection_target_p, mac_clear_selection)
20197 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20198 (mac_put_selection_value, mac_selection_has_target_p)
20199 (mac_get_selection_value, mac_get_selection_target_list)
20200 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
20201 Move functions to mactoolbox.c.
20202 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
20203 Likewise.
20204 (copy_scrap_flavor_data, mac_handle_service_event)
20205 (install_service_handler) [MAC_OSX]: Likewise.
20206 (syms_of_macselect) <Vmac_dnd_known_types>:
20207 Use mac_dnd_default_known_types.
20208
20209 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
20210 Move to mactoolbox.c.
20211 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
20212 (Fx_selection_owner_p): Add EXFUN.
20213 (install_window_handler, remove_window_handler, XSetWindowBackground):
20214 Remove externs.
20215 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
20216 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
20217 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
20218 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
20219 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
20220 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
20221 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
20222 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
20223 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
20224 (create_and_show_popup_menu, mac_get_selection_from_symbol)
20225 (mac_valid_selection_target_p, mac_clear_selection)
20226 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20227 (mac_put_selection_value, mac_selection_has_target_p)
20228 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
20229 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
20230 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
20231 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
20232 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
20233 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
20234 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
20235 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20236 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
20237
20238 * mactoolbox.c: New file.
20239
20240 2008-04-18 Jason Rumney <jasonr@gnu.org>
20241
20242 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
20243
20244 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
20245
20246 * character.c (Fmultibyte_char_to_unibyte):
20247 Return latin1 chars unchanged.
20248
20249 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
20250 relocated if it points to `name'.
20251
20252 2008-04-17 Kenichi Handa <handa@m17n.org>
20253
20254 * data.c (Faset): Allow setting a multibyte character in an
20255 ASCII-only unibyte string.
20256
20257 * lisp.h (STRING_SET_MULTIBYTE): New macro.
20258
20259 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
20260
20261 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
20262 done in config.h.
20263
20264 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
20265
20266 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
20267 (Fchar_direction): Add usage in the docstring.
20268
20269 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
20270
20271 * keyboard.c (read_key_sequence): Remove always-true checks.
20272
20273 2008-04-14 Jason Rumney <jasonr@gnu.org>
20274
20275 * w32font.c (w32font_open_internal): Set max_bounds.descent in
20276 compatibility struct, for better underline positioning.
20277
20278 2008-04-13 David Hansen <david.hansen@gmx.net>
20279
20280 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
20281 string.
20282
20283 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
20284
20285 * m/hp800.h (XUINT, XSET): Remove.
20286
20287 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
20288
20289 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
20290 previous change.
20291
20292 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
20293
20294 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
20295 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
20296
20297 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20298
20299 * keymap.h (map_keymap_canonical): Declare.
20300 * xmenu.c (single_keymap_panes): Use it.
20301
20302 2008-04-11 Glenn Morris <rgm@gnu.org>
20303
20304 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
20305 set the target's value to that of the alias.
20306
20307 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
20308
20309 * term.c (set_tty_color_mode): Left over typo.
20310
20311 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
20312
20313 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
20314 only after check for file name handler functions. Signal, when
20315 native functionality is not supported.
20316 (syms_of_fileio): Declare it unconditionally.
20317
20318 2008-04-10 Jason Rumney <jasonr@gnu.org>
20319
20320 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
20321 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
20322
20323 * w32.c (logon_network_drive): Also logon to remote drives that
20324 are mapped to drive letters.
20325
20326 2008-04-10 Glenn Morris <rgm@gnu.org>
20327
20328 * xdisp.c (truncate-partial-width-windows): Doc fix.
20329
20330 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
20331
20332 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
20333 Move functions to minibuffer.el.
20334 (syms_of_fileio): Don't declare them.
20335
20336 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20337
20338 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
20339 (syms_of_minibuf): Remove its initialization.
20340
20341 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
20342
20343 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
20344
20345 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
20346
20347 2008-04-09 Jason Rumney <jasonr@gnu.org>
20348
20349 * makefile.w32-in (distclean): Delete makefile too.
20350 (maintainer-clean): New target.
20351
20352 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
20353
20354 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
20355 for new font backend and composite cases.
20356
20357 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
20358
20359 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
20360 Most of the code moved to run_timers.
20361 (do_pending_atimers): Call run_timers.
20362 (run_timers): New function.
20363
20364 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
20365 run atimers.
20366
20367 * process.c (wait_reading_process_output): The same as above.
20368
20369 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
20370
20371 * minibuf.c (last_exact_completion): Remove variable.
20372 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
20373 (complete_and_exit_1, complete_and_exit_2)
20374 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
20375 (Fdisplay_completion_list, display_completion_list_1)
20376 (Fminibuffer_completion_help, Fself_insert_and_exit)
20377 (Fexit_minibuffer, Fminibuffer_message): Move functions to
20378 minibuffer.el.
20379 (syms_of_minibuf): Remove corresponding initializations.
20380
20381 * keyboard.c (Qdeactivate_mark): New var.
20382 (command_loop_1): Use it to call `deactivate-mark'.
20383 (syms_of_keyboard): Initialize it.
20384
20385 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
20386 to another frame.
20387 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
20388 Don't call set_tty_color_mode.
20389 (store_frame_param): Reset previous_frame rather than call
20390 set_tty_color_mode.
20391 * term.c (set_tty_color_mode): Rewrite.
20392 * dispextern.h (set_tty_color_mode): New type.
20393 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
20394
20395 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
20396
20397 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
20398 for generic chars, which do not exist any more in emacs-unicode.
20399
20400 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
20401
20402 * coding.c (detect_coding_emacs_mule)
20403 (Ffind_operation_coding_system): Fix typo.
20404
20405 2008-04-08 Jason Rumney <jasonr@gnu.org>
20406
20407 * w32uniscribe.c (SNAME): Extract only symbol name.
20408
20409 * w32font.h (struct w32_metric_cache): New struct.
20410 (w32font_info): Use it.
20411 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
20412 (CACHE_BLOCKSIZE): New constants.
20413
20414 * w32font.c (Qja, Qko, Qzh): New symbols.
20415 (syms_of_w32font): Initialise them.
20416 (font_matches_spec): Use them to filter by language.
20417 (recompute_cached_metrics): Remove function.
20418 (compute_metrics, clear_cached_metrics): New functions.
20419 (w32font_encode_char): Use them to manage metric cache.
20420 (w32font_text_extents): Cache metrics for all glyphs on demand.
20421 Delay converting glyph indices to WORD until needed.
20422 (w32font_open_internal): Initialize metric cache to empty.
20423 (registry_to_w32_charset): Charset should always be a symbol.
20424 (fill_in_logfont, list_all_matching_fonts): Family should
20425 always be a symbol.
20426
20427 2008-04-06 Jason Rumney <jasonr@gnu.org>
20428
20429 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
20430 Give up if glyph indices not supported. Use uniscribe obtained
20431 ABC widths for individual metrics. Map glyph clusters back to
20432 characters using fClusterStart flag. Return number of glyphs
20433 produced, not chars processed.
20434 (uniscribe_shape): Map char at FROM to current glyph.
20435
20436 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20437
20438 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
20439 Use SetMenuItemHierarchicalMenu.
20440
20441 2008-04-05 Jason Rumney <jasonr@gnu.org>
20442
20443 * image.c (pbm_load): Allow color values up to 65535.
20444 Throw an error if max_color_idx is outside the supported range.
20445 Report an error when image size is invalid.
20446 Read two bytes at a time when raw images have max_color_idx above 255.
20447
20448 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
20449
20450 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
20451 append "CCL: Quitted" when the CCL program is quitted.
20452 (setup_ccl_program): Initialize ccl->quit_silently to zero.
20453
20454 * ccl.h (struct ccl_program): New member quit_silently.
20455
20456 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
20457
20458 * search.c (compile_pattern_1): Treat non-nil and non-string of
20459 search-spaces-regexp as nil.
20460
20461 * minibuf.c (Fassoc_string): Tweak docstring.
20462
20463 2008-04-05 Eli Zaretskii <eliz@gnu.org>
20464
20465 * dired.c (Ffile_attributes): Support inode numbers wider than 32
20466 bits. Remove ugly WINDOWSNT-specific kludge introduced on
20467 2008-03-14 to force inode be positive.
20468
20469 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
20470 _S_* ones, since we now use our own sys/stat.h.
20471 (stat, fstat): Don't mangle the inode number.
20472 (init_user_info): Don't restrict UID and GID to 0-60000 range.
20473
20474 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
20475
20476 * frame.h (struct frame): Give one more bit to `visible' since we use
20477 values larger than 1 to indicate obscured frames on ttys.
20478
20479 * keymap.c (Qkeymap_canonicalize): New var.
20480 (Fmap_keymap_internal): New fun.
20481 (describe_map): Use keymap-canonicalize.
20482
20483 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
20484 (Fundo_boundary): Set them.
20485 (syms_of_undo): Initialize them.
20486 (record_point): Use them instead of last_point_position*.
20487 (last_undo_buffer): Change type.
20488
20489 2008-04-04 Jason Rumney <jasonr@gnu.org>
20490
20491 * w32font.c (w32font_text_extents): Use font's ascent and descent.
20492 (recompute_cached_metrics): Don't set ascent and descent per char.
20493
20494 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
20495 (uniscribe_check_otf): Add GC protection before consing.
20496 Rearrange loop for counting features.
20497
20498 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
20499
20500 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
20501 buffer with byte-size of source buffer.
20502
20503 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
20504
20505 * callint.c (Fcall_interactively): Handle temporary region even
20506 when shift-select-mode is off.
20507
20508 2008-04-03 Jason Rumney <jasonr@gnu.org>
20509
20510 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
20511
20512 2008-04-03 Kenichi Handa <handa@m17n.org>
20513
20514 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
20515 (CATEGORY_MASK_UTF_16): Likewise.
20516 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
20517 binary file.
20518 (detect_coding): Add null-byte detection for a binary file.
20519 (detect_coding_system): Likewise.
20520
20521 2008-04-03 Jason Rumney <jasonr@gnu.org>
20522
20523 * w32uniscribe.c: New file.
20524
20525 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
20526
20527 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
20528
20529 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
20530 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
20531 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
20532 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
20533 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
20534 (Qphonetic): New symbols.
20535 (syms_of_w32font): Initialize them.
20536 (font_supported_scripts): Use them.
20537 (w32font_list_family): List all charsets.
20538 (w32font_text_extents, recompute_cached_metrics): Fix metric
20539 calculations.
20540 (w32_enumfont_pattern_entity): Make full_type a DWORD.
20541 Give opentype fonts their own format.
20542 (font_matches_spec): New arguments backend and logfont.
20543 Handle :otf spec for uniscribe backend.
20544 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
20545 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
20546
20547 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
20548 font backend.
20549 (globals_of_w32fns): Initialize uniscribe font backend.
20550
20551 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
20552 dependencies.
20553 (w32uniscribe.$(O)): New file to build.
20554 (FONT_OBJ): Include w32uniscribe.$(O).
20555 (LIBS): Add uniscribe libraries.
20556
20557 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
20558
20559 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
20560
20561 * callint.c (Vshift_select_mode): New var.
20562 (Finteractive): Document new ^ spec.
20563 (Fcall_interactively): Call handle-shift-selection if the ^ spec
20564 is present.
20565
20566 * keyboard.c (Vthis_command_keys_shift_translated): New var.
20567 (command_loop_1): Avoid running the direct display versions of
20568 forward-char and backward-char if shift-selection may occur.
20569 (read_key_sequence): Set Vthis_command_keys_shift_translated if
20570 shift-translation takes place.
20571
20572 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
20573 avoid clobbering by define-minor-mode.
20574
20575 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
20576 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
20577
20578 * syntax.c (Fforward_word): Add ^ interactive spec.
20579
20580 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
20581 (Fscroll_right): Add ^ interactive spec.
20582
20583 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
20584
20585 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
20586
20587 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
20588
20589 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
20590
20591 2008-03-31 Juri Linkov <juri@jurta.org>
20592
20593 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
20594
20595 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
20596
20597 * gtkutil.c (xg_set_geometry): Fix indentation.
20598 (xg_resize_outer_widget): Remove.
20599 (x_wm_size_hint_off): Fix indentation.
20600 (xg_frame_set_char_size): Call flush_and_sync after
20601 gtk_window_resize.
20602 (x_wm_set_size_hint): Pass NULL as geometry window to
20603 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
20604 Add menu bar and tool bar height to base height.
20605 (xg_update_frame_menubar, free_frame_menubar)
20606 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
20607 (update_frame_tool_bar, free_frame_tool_bar):
20608 Change xg_resize_outer_widget to xg_frame_set_char_size.
20609
20610 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
20611
20612 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
20613 (Fdbus_call_method): New parameter TIMEOUT.
20614 (dbus-send-signal): Optimize UNGCPRO call.
20615
20616 2008-03-29 Juri Linkov <juri@jurta.org>
20617
20618 * window.c (Fdisplay_buffer): Move call to
20619 Vsplit_window_preferred_function out of conditions that check
20620 if window is eligible for vertical splitting.
20621 When Vsplit_window_preferred_function is non-nil, call it and use
20622 its non-nil return value as window. Otherwise, continue doing
20623 vertical splitting using Fsplit_window with arg horflag=nil.
20624 (syms_of_window) <Vsplit_window_preferred_function>: Change the
20625 default value from `split-window' to nil.
20626
20627 2008-03-29 Juri Linkov <juri@jurta.org>
20628
20629 * callint.c (Fcall_interactively): Revert 2008-03-16 change
20630 for interactive code letters 'b' and 'B'.
20631
20632 2008-03-29 Eli Zaretskii <eliz@gnu.org>
20633
20634 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
20635 multibyte string.
20636
20637 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
20638
20639 * keyboard.c (pending_funcalls): New var.
20640 (timer_check): Run it.
20641 (syms_of_keyboard): Initialize it.
20642 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
20643 (Vdelete_terminal_functions): New vars.
20644 (syms_of_terminal): Initialize them.
20645 (Fdelete_terminal): Run delete-terminal-functions.
20646 * xdisp.c (safe_eval): Rewrite.
20647 (safe_call2): New fun.
20648 * frame.c (Qdelete_frame_functions): New var.
20649 (syms_of_frame): Initialize it.
20650 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
20651 * lisp.h (safe_call2, pending_funcalls): Declare.
20652
20653 2008-03-28 Andreas Schwab <schwab@suse.de>
20654
20655 * indent.c (Fmove_to_column): Move declaration before statements.
20656
20657 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
20658
20659 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
20660 (struct frame): Use bit fields for boolean vars.
20661
20662 * process.c (server_accept_connection): Simplify naming.
20663 (emacs_get_tty_pgrp): Use SDATA.
20664
20665 * coding.c (decode_coding_object): Fix last change.
20666
20667 2008-03-27 Jason Rumney <jasonr@gnu.org>
20668
20669 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
20670
20671 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
20672
20673 * charset.c (Fdefine_charset_internal): Change the way of
20674 registering charsets in Vcharset_order_list.
20675 (syms_of_charset): Make the charset `eight-bit' supplementary.
20676
20677 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
20678
20679 * regex.c (EXTEND_BUFFER): Change order of pointer addition
20680 operations, to avoid having the difference between pointers
20681 overflow.
20682
20683 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
20684
20685 * indent.c (check_display_width): New fun.
20686 (scan_for_column): Use it.
20687
20688 * data.c (syms_of_data): Mark most-positive-fixnum and
20689 most-negative-fixnum as constants.
20690
20691 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
20692
20693 * indent.c (scan_for_column): Extract from current_column_1.
20694 Merge with the same code from Fmove_to_column.
20695 (current_column_1, Fmove_to_column): Use it.
20696
20697 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20698
20699 * keymap.c (map_keymap_internal): New fun.
20700 (map_keymap): Use it.
20701 (Fmap_keymap_internal): New fun.
20702 (Fmap_keymap): Remove left-out test from before make_save_value.
20703
20704 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
20705
20706 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
20707 Use XCAR/XCDR.
20708
20709 * process.h (struct Lisp_Process): Remove filter_multibyte.
20710 * process.c (QCfilter_multibyte): Remove.
20711 (setup_process_coding_systems): Don't use filter_multibyte.
20712 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
20713 (read_process_output): Don't adjust multibyteness to filter_multibyte.
20714 (Fset_process_filter_multibyte): Change the coding-system to
20715 approximate the previous behavior.
20716 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
20717 coding-system.
20718
20719 * coding.c (decode_coding_object): When not decoding into a buffer,
20720 obey the coding system's preference of (uni|multi)byte.
20721
20722 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
20723
20724 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
20725 every char is changed and has a different byte-length.
20726 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
20727 Fix int -> EMACS_INT.
20728
20729 2008-03-23 David Hansen <david.hansen@gmx.net>
20730
20731 * dbusbind.c (xd_read_message): Remove extra copying of message
20732 strings. Check for NULL `interface' or `member'.
20733
20734 2008-03-22 Eli Zaretskii <eliz@gnu.org>
20735
20736 * w32.c (readdir): If FindFirstFile/FindNextFile return in
20737 cFileName a file name that includes `?' characters, use the 8+3
20738 alias in cAlternateFileName instead.
20739
20740 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
20741
20742 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
20743
20744 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20745
20746 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
20747 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
20748 work on current_buffer only instead (that was already the case
20749 for some of the code anyway).
20750 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
20751 (temp_set_point, temp_set_point_both): Use EMACS_INT.
20752 (SET_PT, SET_PT_BOTH): Adjust.
20753 * intervals.h (set_point, temp_set_point, set_point_both)
20754 (temp_set_point_both): Remove redundant declarations.
20755
20756 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
20757
20758 * fileio.c (Finsert_file_contents):
20759 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
20760 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
20761 when buffer != current_buffer anyway.
20762
20763 2008-03-20 Andreas Schwab <schwab@suse.de>
20764
20765 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
20766 as default.
20767
20768 2008-03-19 Jason Rumney <jasonr@gnu.org>
20769
20770 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
20771 (syms_of_w32fns): Initialize them.
20772 (HOURGLASS_ID): New constant.
20773 (x_window_to_frame): Don't check hourglass_window.
20774 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
20775 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
20776 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
20777 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
20778 Only change the cursor if hourglass is not active.
20779 (Fx_create_frame): Initialize frame's current_cursor.
20780 (hourglass_atimer): Remove.
20781 (hourglass_started): New function.
20782 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
20783 (show_hourglass): Adapt to w32, changing argument to frame.
20784
20785 * w32term.h (struct w32_output): Remove hourglass_window.
20786 Add current_cursor.
20787
20788 * eval.c (call_debugger, Fsignal):
20789 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
20790 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
20791 (Fexecute_extended_command, cancel_hourglass_unwind):
20792 * minibuf.c (read_minibuf):
20793 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
20794
20795 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
20796
20797 * window.c (run_funs): New fun.
20798 (run_window_configuration_change_hook): Use it to run the buffer-local
20799 and the global part of the hook.
20800
20801 * xdisp.c (format_mode_line_unwind_data): Add window argument.
20802 (unwind_format_mode_line): Restore selected window.
20803 (x_consider_frame_title, Fformat_mode_line): Set selected window.
20804
20805 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
20806
20807 * editfns.c (Fchar_equal): Check they are valid characters.
20808
20809 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20810
20811 2008-03-17 Andreas Schwab <schwab@suse.de>
20812
20813 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20814 against a charset.
20815
20816 * lisp.h (Fbuffer_list): Declare.
20817
20818 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
20819
20820 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20821 handlebox_widget is != 0.
20822
20823 2008-03-16 Juri Linkov <juri@jurta.org>
20824
20825 * callint.c (Fcall_interactively): For interactive code letters
20826 'b' and 'B' put the buffer list into the list of default "future"
20827 values of the minibuffer.
20828
20829 2008-03-16 Andreas Schwab <schwab@suse.de>
20830
20831 * keyboard.c (read_key_sequence): Fix downcasing of letters with
20832 modifiers.
20833
20834 * regex.c (re_match_2_internal): Correct matching of a charset
20835 against latin-1 characters.
20836
20837 2008-03-16 Kenichi Handa <handa@m17n.org>
20838
20839 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20840 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20841 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20842 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20843 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20844 CHAR_STRING_ADVANCE.
20845 (produce_chars): Fix for the case that the source and the
20846 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
20847 instead of CHAR_STRING_ADVANCE.
20848 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20849 STRING_CHAR_ADVANCE.
20850
20851 2008-03-15 Andreas Schwab <schwab@suse.de>
20852
20853 * regex.c (re_match_2_internal): Correct matching of eight bit
20854 characters in unibyte strings.
20855
20856 2008-03-15 Martin Rudalics <rudalics@gmx.at>
20857
20858 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20859 at end of range when it coincides with the end of the buffer.
20860
20861 2008-03-14 Eli Zaretskii <eliz@gnu.org>
20862
20863 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20864
20865 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20866
20867 2008-03-14 Jason Rumney <jasonr@gnu.org>
20868
20869 * editfns.c (initial_tz): New variable.
20870 (syms_of_editfns): Initialize it.
20871 (Fset_time_zone_rule): Set it when first called.
20872 Use it when TZSTRING is nil.
20873
20874 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20875 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20876 (monitor_from_point_fn, get_monitor_info_fn): New globals.
20877 (globals_of_w32fns): Initialize them.
20878 (compute_tip_xy): Use them to position tooltips.
20879
20880 2008-03-14 Glenn Morris <rgm@gnu.org>
20881
20882 * emacs.c (main): Revert previous change.
20883 (standard_args): Revert -internal-script back to -scriptload,
20884 and remove the long-option form.
20885
20886 2008-03-13 Glenn Morris <rgm@gnu.org>
20887
20888 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20889 Remove option -enable-font-backend.
20890
20891 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
20892
20893 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20894
20895 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
20896
20897 * xterm.c (x_connection_closed): For GTK: If this is the last
20898 terminal just exit without closing the display.
20899
20900 2008-03-11 Jason Rumney <jasonr@gnu.org>
20901
20902 * w32font.c (w32font_full_name): Use floor to round.
20903
20904 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20905
20906 * sound.c (alsa_configure): Declare vol at beginning of block.
20907
20908 * fontset.c (Ffontset_info): Remove extra semicolon.
20909
20910 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
20911
20912 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20913 size of resulting string.
20914
20915 2008-03-10 Jason Rumney <jasonr@gnu.org>
20916
20917 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20918
20919 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20920
20921 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20922 Don't pretend as if characters with display property haven't been
20923 consumed for string-replacing-string case.
20924
20925 2008-03-08 Kim F. Storm <storm@cua.dk>
20926
20927 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20928 (get_next_display_element, next_element_from_string)
20929 (next_element_from_ellipsis, next_element_from_buffer): Use it.
20930
20931 2008-03-08 Andreas Schwab <schwab@suse.de>
20932
20933 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20934
20935 2008-03-06 Jason Rumney <jasonr@gnu.org>
20936
20937 * w32font.c (w32_registry): Take font_type argument. Use ANSI
20938 when charset not specified. Only translate ANSI to unicode when
20939 font_type is truetype.
20940 (w32font_coverage_ok): New function.
20941 (add_font_entity_to_list): Use it to filter unsuitable fonts.
20942
20943 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
20944
20945 * lread.c (Fread_char): Resolve modifiers.
20946 (Fread_char_exclusive): Likewise.
20947
20948 * character.c (char_resolve_modifier_mask): New function.
20949 (char_string): Use char_resolve_modifier_mask.
20950 (Fchar_resolve_modifiers): New function.
20951 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20952 function.
20953
20954 2008-03-04 Jason Rumney <jasonr@gnu.org>
20955
20956 * makefile.w32-in: Always include w32font.c in the build.
20957 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20958
20959 2008-03-04 Andreas Schwab <schwab@suse.de>
20960
20961 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20962 (versionclean): Likewise.
20963
20964 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
20965
20966 * .cvsignore: Add oo.
20967
20968 2008-03-03 Andreas Schwab <schwab@suse.de>
20969
20970 * coding.c (decode_coding_object): Inhibit gap shrinking while
20971 decoding in place.
20972
20973 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
20974
20975 * w32term.c: Remove unused include "gnu.h".
20976 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20977
20978 * gnu.h: Rename to ...
20979 * emacs-icon.h: ... this.
20980 * xterm.c: Use emacs-icon.h instead of gnu.h.
20981 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20982
20983 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
20984
20985 * w32font.c: Include math.h.
20986
20987 2008-03-03 Jason Rumney <jasonr@gnu.org>
20988
20989 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20990 Compute options separately.
20991 (w32font_open_internal): Set glyph_idx before caching metrics.
20992
20993 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20994 Define if system headers don't.
20995 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
20996 (w32font_encode_char): Don't declare here.
20997
20998 * w32font.c (Quniscribe, QCformat): New symbols.
20999 (syms_of_w32font): Define them.
21000 (w32font_has_char): Indicate uncertainty.
21001 (w32font_encode_char): Encode as glyph point. Make static.
21002 (recompute_cached_metrics): New function.
21003 (w32font_open_internal): Use it. Set font to use glyph points
21004 initially. Set format based on type of font.
21005 (w32font_text_extents, w32font_draw): Optionally use glyph points.
21006 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
21007 on it. Set format based on information available here.
21008 (add_font_entity_to_list): Identify backend based on opentype_only.
21009
21010 2008-03-02 Andreas Schwab <schwab@suse.de>
21011
21012 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
21013
21014 * coding.c (decode_coding_big5, produce_chars):
21015 Fix typos in last change.
21016
21017 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
21018
21019 * gnu.h: New icon.
21020
21021 2008-03-02 Kenichi Handa <handa@m17n.org>
21022
21023 * coding.c (decode_coding_utf_8): When eol-type of CODING is
21024 `dos', don't decode '\r' if that is the last in the source.
21025 (decode_coding_utf_16, decode_coding_emacs_mule)
21026 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21027 (decode_coding_raw_text, decode_coding_charset): Likewise.
21028 (produce_chars): Don't decode EOL here. Use EMACS_INT.
21029
21030 2008-03-01 Jason Rumney <jasonr@gnu.org>
21031
21032 * w32font.c (w32font_full_name): Report point size for scalable fonts.
21033
21034 2008-03-01 Kim F. Storm <storm@cua.dk>
21035
21036 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
21037
21038 2008-03-01 Jason Rumney <jasonr@gnu.org>
21039
21040 * w32font.c (w32font_full_name): New function.
21041 (w32font_open_internal): Use it.
21042
21043 2008-03-01 Kim F. Storm <storm@cua.dk>
21044
21045 * dispnew.c (line_draw_cost): Fix invalid glyph check.
21046
21047 2008-03-01 Jason Rumney <jasonr@gnu.org>
21048
21049 * font.c (font_unparse_fcname): Increase len when style is a symbol.
21050
21051 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
21052
21053 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
21054 xg_frame_resized when the event is for the edit widget.
21055
21056 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
21057
21058 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
21059 set_char_size.
21060 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
21061 operations on widgets here. Just set frame size if needed.
21062 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
21063 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
21064 (x_wm_set_size_hint): Set size hints on the edit widget only, not
21065 the whole frame.
21066 (xg_create_tool_bar): Move attachment of the tool bar to
21067 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
21068 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
21069
21070 2008-03-01 Jason Rumney <jasonr@gnu.org>
21071
21072 * w32fns.c (w32_msg_pump): Disable debug code.
21073
21074 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21075
21076 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
21077
21078 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21079
21080 * xdisp.c (next_overlay_string): Don't set
21081 overlay_strings_at_end_processed_p if we're currently reading from
21082 a display string.
21083
21084 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
21085
21086 * xdisp.c (get_overlay_strings_1): Fix typo.
21087
21088 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
21089
21090 * xdisp.c (get_overlay_strings_1): Add missing argument type.
21091
21092 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
21093
21094 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
21095
21096 * xdisp.c (display_mode_element): Cancel the previous change.
21097 (decode_mode_spec): Likewise.
21098 (handle_auto_composed_prop): Don't make composition if it->string
21099 is a string.
21100
21101 2008-02-27 Kim F. Storm <storm@cua.dk>
21102
21103 * lisp.h (GLYPH): Change type from int to struct with separate char
21104 and face_id members.
21105 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
21106 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
21107 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
21108 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
21109 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
21110 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
21111 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
21112 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
21113 handle new Lisp glyph code encoding, either an integer or a cons.
21114
21115 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
21116 (GLYPH_ALIAS): Delete.
21117 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
21118 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
21119 (GLYPH_FROM_CHAR): Replace macro by ...
21120 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
21121
21122 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
21123 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
21124 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
21125 (GLYPH_INVALID_P): New macro.
21126 (spec_glyph_lookup_face): Update prototype.
21127
21128 * dispnew.c (line_draw_cost): Adapt to new glyph type.
21129 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
21130 new glyph code encoding.
21131 (spec_glyph_lookup_face): No return value; update passed glyph instead.
21132 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
21133
21134 * xdisp.c (get_next_display_element, next_element_from_display_vector):
21135 Adapt to new glyph type and new glyph code encoding.
21136
21137 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
21138
21139 * indent.c (current_column, current_column_1, Fmove_to_column)
21140 (compute_motion): Adapt to new glyph code encoding.
21141
21142 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
21143
21144 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
21145
21146 * process.c (wait_reading_process_output): Check for window
21147 changes caused by timers.
21148 Suggested by Johan Bockgård.
21149
21150 2008-02-27 Glenn Morris <rgm@gnu.org>
21151
21152 * emacs.c (USAGE1): Add `--disable-font-backend'.
21153
21154 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
21155
21156 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
21157 is made to the buffer.
21158
21159 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
21160
21161 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
21162 (face_at_string_position):
21163 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
21164 (face_at_string_position):
21165 * xdisp.c (display_string, next_overlay_change):
21166 * buffer.h (overlays_at):
21167 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
21168 Update callers.
21169
21170 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
21171
21172 * editfns.c (Fformat): Doc fix.
21173
21174 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
21175
21176 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
21177 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
21178 (Ffont_otf_alternates, Fquery_font): Doc fixes.
21179
21180 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21181
21182 * buffer.c (Fbuffer_swap_text): New function.
21183 (syms_of_buffer): Defsubr it.
21184
21185 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
21186
21187 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
21188
21189 2008-02-25 Jason Rumney <jasonr@gnu.org>
21190
21191 * w32font.c (w32font_draw): Draw one character at a time when padding.
21192
21193 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
21194
21195 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
21196 Handle a nil arg. Use run_window_configuration_change_hook.
21197 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
21198 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
21199 Use run_window_configuration_change_hook.
21200
21201 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21202
21203 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
21204 1-pixel width.
21205
21206 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
21207
21208 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
21209 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
21210 if the glyph in the font is zero pixel with.
21211
21212 * dispextern.h (struct glyph_string): New member padding_p.
21213
21214 * w32font.c (w32font_draw): Pay attention to s->padding_p.
21215
21216 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
21217
21218 * xfont.c (xfont_draw): Pay attention to s->padding_p.
21219
21220 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
21221
21222 * font.c: If the font driver doesn't have `shape' function, return Qnil.
21223
21224 2008-02-25 Jason Rumney <jasonr@gnu.org>
21225
21226 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
21227
21228 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
21229
21230 Allow fine-grained image-cache flushing.
21231 * dispextern.h (struct image): Add `dependencies' field.
21232 (clear_image_caches): Change arg to Lisp_Object.
21233 * image.c (make_image): Initialize `dependencies' field.
21234 (clear_image_cache): Change arg to allow fine-grained flushing.
21235 Perform the flush even if image-cache-eviction-delay is nil.
21236 (clear_image_caches): Change arg to Lisp_Object.
21237 (Fclear_image_cache): Expand meaning of the argument.
21238 (mark_image): Mark `dependencies' field.
21239 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
21240 (lface_hash): Use XHASH rather than XFASTINT.
21241 (face_at_buffer_position): Fix int -> EMACS_INT position.
21242 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
21243 (select_frame_for_redisplay): Remove code duplication.
21244 (redisplay_internal): Adapt arg to call to clear_image_caches.
21245
21246 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
21247
21248 * s/vms4-0.h:
21249 * s/vms4-2.h:
21250 * s/vms4-4.h:
21251 * s/vms5-5.h: Remove, unused.
21252
21253 * s/irix5-2.h:
21254 * s/irix6-0.h:
21255 * s/riscos5.h:
21256 * s/mach-bsd4-3.h:
21257 * m/mips4.h: Remove files for obsolete systems.
21258
21259 * Makefile.in:
21260 * filelock.c:
21261 * unexmips.c:
21262 * m/hp9000s300.h:
21263 * m/iris4d.h:
21264 * s/aix3-1.h:
21265 * s/hpux.h:
21266 * s/msdos.h:
21267 * s/usg5-0.h:
21268 * s/usg5-2-2.h:
21269 * s/usg5-2.h:
21270 * s/usg5-3.h: Remove references to obsolete variables.
21271
21272 * s/irix5-0.h: Remove, move all the contents ...
21273 * s/irix6-5.h: ... here. Simplify.
21274 * config.in: Regenerate.
21275
21276 2008-02-24 Jason Rumney <jasonr@gnu.org>
21277
21278 * w32term.c (x_draw_glyph_string_background): Clear the background
21279 manually when cleartype is in use.
21280 (x_draw_glyph_string_foreground): Draw text transparently when
21281 cleartype is in use.
21282
21283 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
21284 a font into it unless we have to.
21285
21286 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21287
21288 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
21289 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
21290
21291 2008-02-18 Jason Rumney <jasonr@gnu.org>
21292
21293 * w32fns.c (Fw32_shell_execute): Encode parameters.
21294
21295 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21296
21297 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
21298
21299 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
21300
21301 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
21302
21303 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
21304
21305 * xterm.c (x_set_offset): Don't change the gravity if
21306 CHANGE_GRAVITY is -1.
21307
21308 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
21309
21310 * fileio.c (auto_save_error_occurred): New var.
21311 (auto_save_error): Set it.
21312 (Fdo_auto_save): Don't overwrite the error message if an auto-save
21313 error occurred.
21314
21315 2008-02-23 Eli Zaretskii <eliz@gnu.org>
21316
21317 * w32.c (globals_of_w32): Add initializations for
21318 g_b_init_get_sid_sub_authority and
21319 g_b_init_get_sid_sub_authority_count.
21320
21321 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
21322
21323 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
21324 (font_parse_xlfd): Use them for sanity check.
21325 (Finternal_set_font_style_table): Make sure the table is bijective.
21326
21327 Consolidate the image_cache to the terminal struct.
21328 * termhooks.h (P_): Remove redundant def.
21329 (struct terminal): New field `image_cache'.
21330 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
21331 of FRAME_X_IMAGE_CACHE.
21332 * xterm.h (struct x_display_info): Remove image_cache field.
21333 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21334 * w32term.h (struct w32_display_info): Remove image_cache field.
21335 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21336 * macterm.h (struct mac_display_info): Remove image_cache field.
21337 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
21338 * xterm.c (x_term_init):
21339 * w32term.c (w32_term_init):
21340 * macterm.c (mac_term_init): Set the image_cache in the terminal.
21341 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
21342 Remove declarations.
21343 (clear_image_caches, mark_image_cache): New declarations.
21344 * xfaces.c (clear_face_cache):
21345 * xdisp.c (redisplay_internal): Use clear_image_caches.
21346 * image.c (clear_image_cache): Don't check that a frame is on
21347 a window-system before checking if it shares the same cache.
21348 (clear_image_caches): New function.
21349 (Fclear_image_cache): Use it.
21350 (mark_image): Move from allo.c.
21351 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
21352 * alloc.c (mark_image, mark_image_cache): Move to image.c.
21353 (mark_object): Don't call mark_image_cache for frames.
21354 (mark_terminals): Call mark_image_cache.
21355
21356 * lisp.h (Fdelete_terminal): Declare.
21357
21358 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
21359 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
21360 wrong_type_argument.
21361
21362 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
21363
21364 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
21365 malayalam.el, and tamil.el. Add sinhala.el.
21366
21367 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
21368
21369 * xterm.c (x_connection_closed): Consolidate identical tests.
21370 (x_delete_terminal): Don't crash if called via x_connection_closed.
21371
21372 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
21373
21374 * xdisp.c (decode_mode_spec): New arg string.
21375 (display_mode_element): Adjust for the above change.
21376
21377 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
21378
21379 * callint.c (Fcall_interactively): Use AREF.
21380
21381 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
21382
21383 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
21384
21385 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
21386
21387 * xfns.c (Fx_show_tip): Set string to " " if empty.
21388
21389 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
21390
21391 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
21392 with Qt.
21393
21394 2008-02-17 Kenichi Handa <handa@m17n.org>
21395
21396 * ftfont.c (ftfont_shape): Return Lispy number.
21397
21398 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
21399 for GCs.
21400 (Finternal_set_font_selection_order): Call font_update_sort_order
21401 only when enable_font_backend is set.
21402 (realize_x_face): Set face->font_info to that of default face only
21403 when enable_font_backend is set.
21404
21405 * xdisp.c (handle_composition_prop): Set it->c to the fist
21406 character of the composed region.
21407 (fill_composite_glyph_string): Set base_face->font_info to
21408 s->font_info. Get a face for ascii from base_face->ascii_face.
21409 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
21410 with a face already decided.
21411 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
21412 non-negative.
21413 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
21414 call font_prepare_composition unconditionally.
21415
21416 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
21417
21418 * xterm.h (struct x_display_info): New member font.
21419
21420 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
21421 (x_set_mouse_face_gc, x_new_font): Likewise.
21422 (x_term_init): Setup display_info->font.
21423 (x_delete_terminal): Free display_info->font.
21424
21425 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
21426
21427 * ftxfont.c (ftxfont_default_fid): Delete it.
21428 (ftxfont_open): Set xfont->fid to 0.
21429 (ftxfont_end_for_frame): Clear data specific to the frame and the
21430 font-driver.
21431
21432 * xftfont.c (xftfont_default_fid): Delete it.
21433 (xftfont_open): Set xfont->fid to 0.
21434
21435 * fontset.c (FONTSET_OBJLIST): New macro.
21436 (fontset_find_font): Update font-object list of the fontset.
21437 (free_realized_fontset): New function.
21438 (free_face_fontset): Call free_realized_fontset.
21439 (Ffont_info): Call font_close_object only when enable_font_backend
21440 is set.
21441
21442 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
21443 [HAVE_NTGUI]: Include w32term.h.
21444 [MAC_OS]: Include macterm.ch.
21445 (font_otf_ValueRecord): Use make_number.
21446 (font_finish_cache): Fix handling of reference count.
21447 (font_clear_cache): Update num_fonts.
21448 (font_open_entity): Update smallest_char_width and
21449 smallest_font_height of the frame.
21450 (font_close_object): Update num_fonts.
21451 (Fclear_font_cache): Fix finding the target cache data.
21452
21453 2008-02-16 Glenn Morris <rgm@gnu.org>
21454
21455 * fontset.c (Finternal_char_font): Fix compilation warning.
21456
21457 2008-02-16 Eli Zaretskii <eliz@gnu.org>
21458
21459 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
21460 instead of char arrays. Enlarge the size of array passed to
21461 get_token_information.
21462
21463 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
21464 warnings.
21465
21466 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
21467
21468 * .gdbinit: Don't set `args', it breaks gdb --args.
21469
21470 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
21471
21472 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
21473 within a narrowed buffer.
21474
21475 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
21476
21477 * coding.c (decode_coding_object, encode_coding_object):
21478 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
21479
21480 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
21481
21482 * coding.c (coding_set_destination): Use BEG_BYTE rather than
21483 hardcoding 1.
21484 (detect_coding_system):
21485 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
21486 (string_char_to_byte, string_byte_to_char, insert_from_gap):
21487 * insdel.c (insert_from_gap):
21488 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
21489 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
21490 (string_to_multibyte):
21491 * character.c (chars_in_text, multibyte_chars_in_text):
21492 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
21493
21494 * character.h (FETCH_STRING_CHAR_ADVANCE)
21495 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
21496 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
21497 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
21498
21499 * casefiddle.c (casify_region): Only call after-change and composition
21500 functions on the part of the region that was changed.
21501
21502 * keyboard.c (read_avail_input):
21503 * frame.c (Fdelete_frame): Call Fdelete_terminal.
21504
21505 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21506
21507 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
21508 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
21509
21510 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
21511
21512 * w32menu.c (push_submenu_start, push_submenu_end)
21513 (push_left_right_boundary, push_menu_pane, push_menu_item):
21514 * keyboard.c (read_key_sequence): Don't pass args with side effects
21515 to AREF, it fails when compiling with -DENABLE_CHECKING.
21516
21517 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
21518
21519 * Makefile.in (${lispsource}international/charprop.el):
21520 Delete this target.
21521
21522 * search.c (boyer_moore): Fix incorrect synching of the trunk and
21523 emacs-unicode-2.
21524
21525 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
21526
21527 * terminal.c (Fdelete_terminal): Clean up the `force' path.
21528
21529 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21530
21531 * frame.c (Qnoelisp): New symbol.
21532 (syms_of_frame): Initialize it.
21533 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
21534 harmless Elisp code, from a strong `force' from x_connection_closed.
21535 * frame.h (Qnoelisp): Declare.
21536 * xterm.c (x_connection_closed): Pass `noelisp'.
21537
21538 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
21539 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
21540 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
21541 rather than `int' for the type of `type'.
21542
21543 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
21544
21545 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
21546
21547 * Makefile.in (GNUC): Remove support for gcc-1.x.
21548
21549 2008-02-10 Richard Stallman <rms@gnu.org>
21550
21551 * lisp.h (ASET): Use AREF, not ASLOT.
21552
21553 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 * lisp.h (ASET): Check bounds.
21556
21557 2008-02-10 Glenn Morris <rgm@gnu.org>
21558
21559 * buffer.c (mode-name): Doc fix.
21560
21561 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21562
21563 * Makefile.in:
21564 * emacs.c:
21565 * gmalloc.c:
21566 * keyboard.c:
21567 * lisp.h:
21568 * m/ibm370aix.h:
21569 * process.c:
21570 * regex.c:
21571 * s/hpux.h:
21572 * sysdep.c:
21573 * sysselect.h:
21574 * systty.h:
21575 * unexec.c:
21576 * w32term.c:
21577 * xsmfns.c:
21578 * xterm.c: Remove code that deals with obsolete variables.
21579
21580 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
21581
21582 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
21583 nothing else needs it anymore.
21584
21585 2008-02-09 Eli Zaretskii <eliz@gnu.org>
21586
21587 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
21588 instead of unibyte_char_to_multibyte.
21589
21590 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
21591
21592 * s/gnu-linux.h: Remove commented out code.
21593
21594 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
21595
21596 * Makefile.in: Update what RMS says about using autoconf.
21597 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
21598 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
21599 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
21600 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
21601
21602 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
21603
21604 * keymap.c (Fkey_description): Move side effect outside of macro call.
21605
21606 * xfaces.c (Finternal_make_lisp_face):
21607 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
21608
21609 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
21610 (syms_of_fontset): Use ASET.
21611
21612 * fns.c (concat): Move side effect outside of macro call.
21613 (hash_clear): Use ASET.
21614
21615 2008-02-08 Richard Stallman <rms@gnu.org>
21616
21617 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
21618 If FORCE, and frame has a surrogate minibuffer for another frame,
21619 delete the other frame first.
21620
21621 2008-02-07 Timo Savola <timo.savola@iki.fi>
21622
21623 * xterm.c (x_detect_focus_change): Handle embed client message.
21624 (handle_one_xevent): Ditto.
21625 (handle_one_xevent): If embedded and we get a button press/release,
21626 request focus.
21627 (xembed_set_info, xembed_send_message): New functions.
21628 (x_make_frame_visible): Call xembed_set_info if embedded.
21629 (x_make_frame_invisible): Call xembed_set_info if embedded.
21630 (x_term_init): Initialize Xatom_XEMBED.
21631 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
21632 (x_iconify_frame): Ditto.
21633
21634 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
21635 (enum xembed_info, enum xembed_message, enum xembed_focus)
21636 (enum xembed_modifier, enum xembed_accelerator): New.
21637 (xembed_set_info, xembed_send_message): Declare.
21638 (FRAME_X_EMBEDDED_P): New.
21639
21640 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
21641 gtk_plug_new.
21642
21643 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
21644 window ID of a frame.
21645 (x_window): Reparent frame if embedded.
21646 (Fx_create_frame): Don't set border width if embedded.
21647
21648 * emacs.c (USAGE3): Add --parent-id.
21649 (standard_args): Ditto.
21650
21651 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
21652
21653 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
21654
21655 2008-02-07 Jim Meyering <meyering@redhat.com>
21656
21657 Use "do...while (0)", not "if (1)...else" in macro definitions.
21658 The latter provokes a warning from gcc about the empty else, when
21659 followed by ";". Also, without that trailing semicolon, it would
21660 silently swallow up any following statement.
21661 * syntax.h (SETUP_SYNTAX_TABLE)
21662 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
21663 * buffer.h (DECODE_POSITION): Likewise.
21664 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
21665 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
21666 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
21667 (FETCH_CHAR_ADVANCE): Likewise.
21668 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
21669
21670 2008-02-07 Jim Meyering <meyering@redhat.com>
21671
21672 * lread.c [lint]: Don't include <sys/inode.h>.
21673
21674 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
21675
21676 * xselect.c (x_handle_dnd_message):
21677 * xmenu.c (digest_single_submenu, xmenu_show):
21678 * xdisp.c (with_echo_area_buffer_unwind_data)
21679 (format_mode_line_unwind_data, unwind_format_mode_line)
21680 (display_menu_bar):
21681 * eval.c (Ffetch_bytecode):
21682 * doc.c (store_function_docstring):
21683 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
21684 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
21685 * buffer.c (add_overlay_mod_hooklist): Use ASET.
21686
21687 2008-02-07 Kenichi Handa <handa@m17n.org>
21688
21689 * ftxfont.c (ftxfont_open): Don't set
21690 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
21691
21692 * ftfont.c (ftfont_open): Fix previous change.
21693
21694 2008-02-06 Jason Rumney <jasonr@gnu.org>
21695
21696 * w32font.c (w32font_text_extents): Fill in lbearing metric.
21697 Use cached metrics for ASCII characters.
21698 (w32font_open_internal): Don't set font's owning_frame.
21699 Cache metrics for ASCII characters.
21700
21701 * w32font.h (struct w32font_info): Add ascii_metrics.
21702 Remove owning_frame.
21703
21704 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
21705
21706 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
21707 to negative value.
21708
21709 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
21710
21711 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
21712
21713 * charset.c (syms_of_charset): Set QCtest and Qeq.
21714
21715 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
21716
21717 * process.c (Fstart_process):
21718 * callproc.c (Fcall_process): Handle the case where
21719 Funhandled_file_name_directory returns nil.
21720
21721 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
21722 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
21723 * font.c (check_gstring): Use them and AREF to access the vector before
21724 we know it's really a gstring.
21725 (Ffont_shape_text): Fix typo.
21726 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
21727
21728 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
21729 Declare.
21730
21731 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
21732
21733 2008-02-05 Jason Rumney <jasonr@gnu.org>
21734
21735 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
21736 Set smallest_font_height and smallest_char_width in display info.
21737
21738 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
21739
21740 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
21741
21742 2008-02-05 Miles Bader <miles@gnu.org>
21743
21744 * xfaces.c (get_lface_attributes, merge_named_face)
21745 (lookup_named_face, lookup_derived_face, realize_named_face):
21746 Revert 2008-02-01 change by cyd@stupidchicken.com.
21747
21748 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
21749
21750 * fontset.c (Ffontset_info): Handle the case of inhibitting the
21751 fallback fonts.
21752 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
21753
21754 2008-02-04 Jason Rumney <jasonr@gnu.org>
21755
21756 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
21757 set full_name.
21758 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
21759
21760 2008-02-03 Jason Rumney <jasonr@gnu.org>
21761
21762 * makefile.w32-in (OBJ1): Include font.o here.
21763 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
21764
21765 2008-02-02 Jason Rumney <jasonr@gnu.org>
21766
21767 * makefile.w32-in (temacs): Bump EMHEAP to 21.
21768
21769 2008-02-01 Jason Rumney <jasonr@gnu.org>
21770
21771 * s/cygwin.h: Define VIRT_ADDR_VARIES.
21772
21773 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
21774
21775 2008-02-01 Andreas Schwab <schwab@suse.de>
21776
21777 * Makefile.in (shortlisp, lisp): Update for rename of
21778 ../lisp/language/myanmar.el.
21779
21780 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
21781
21782 * xfaces.c (get_lface_attributes): Delete function.
21783 (merge_named_face, lookup_named_face, lookup_derived_face)
21784 (realize_named_face): Call lface_from_face_name directly, and use
21785 the fact that merge_face_vectors does not alter its FROM argument.
21786
21787 2008-02-01 Jason Rumney <jasonr@gnu.org>
21788
21789 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
21790 input in the default locale. Handle non-Unicode multibyte input.
21791
21792 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21793
21794 * fontset.c (reorder_font_vector): Exclude nil elements from the
21795 font group. Don't try multiple fonts.
21796 (fontset_font): Adjust for the above change.
21797 (Finternal_char_font): Return nil if the found font doesn't
21798 contain the character ch.
21799
21800 * Makefile.in (lisp, shortlisp): Add cham.el.
21801
21802 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21803
21804 * font.h (FONTP): Make it return 1 also for a font-object.
21805
21806 * .gdbinit (xfontset): New function.
21807
21808 * font.c (font_find_for_lface): Check if the character C is
21809 supported or not only for the first font.
21810
21811 * fontset.c (reorder_font_vector): Fix typo.
21812 (fontset_find_font): Don't add a font-spec specifying a script.
21813 Use 0 (not Qt) for the indication of empty font-group. Change the
21814 format of RFONT-DEF. Return Qt if no font in the font-group
21815 support the character.
21816 (fontset_font): Adjust for the above change. If no font was
21817 found the character, remember that.
21818 (face_for_char): Adjust for the change of RFONT-DEF.
21819 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21820 no font for the target.
21821 (Finternal_char_font): Adjust for the change of RFONT-DEF.
21822
21823 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21824
21825 * font.c (font_load_for_face): Handle the case that the font in
21826 face->lface is a string.
21827
21828 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21829
21830 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21831
21832 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21833
21834 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21835 Fix previous change. If the frame is not on a window system,
21836 signal an error.
21837
21838 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21839
21840 * coding.c (decode_coding_object, encode_coding_object):
21841 Adjust marker positions after conversion.
21842
21843 * lisp.h (struct Lisp_Marker): New member need_adjustment.
21844
21845 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21846
21847 * font.c (font_find_for_lface): Fix the handling of the return
21848 value of font_has_char.
21849 (Ffont_shape_text): Fix previous change.
21850
21851 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21852 (fontset_ref_and_range): Delete it.
21853 (fontset_find_font): Call char_table_ref_and_range instead of
21854 FONTSET_REF_AND_RANGE.
21855 (make_fontset): Don't setup font groups of Latin here.
21856 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21857 (new_fontset_from_font): Make the specified font the default for
21858 all Latin characters.
21859
21860 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21861
21862 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21863 is on a window system before accessing the fontset of the frame.
21864
21865 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21866
21867 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21868
21869 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21870 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21871
21872 * font.c (Ffont_shape_text): If the font driver doesn't have a
21873 shaper function, make zero-width glyphs to have at least one-pixel
21874 width. Fix setting of `to' field of glyphs.
21875
21876 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21877
21878 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21879 glyphs.
21880
21881 * font.h (struct font_driver): Improve docstring of member `shape'.
21882
21883 2008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * composite.c (syms_of_composite): Fix docstring of
21886 auto-composition-function.
21887
21888 * font.h (LGLYPH_SIZE): New macro.
21889
21890 * font.c (Ffont_fill_gstring): Stop filling when a character not
21891 supported by the font is found.
21892 (Ffont_shape_text): When a shape callback function returns nil,
21893 try at most two more times with larger gstring.
21894 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
21895
21896 * xdisp.c (handle_auto_composed_prop): Change the argument to
21897 auto-composition-function.
21898
21899 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21900 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21901 Lispy glyph and store it in the lgstring.
21902
21903 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21904
21905 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21906
21907 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21908
21909 * font.c (Ffont_shape_text): Avoid unnecessary composition.
21910
21911 * fontset.c (Vfont_encoding_charset_alist): New variable.
21912 (syms_of_fontset): DEFVAR it.
21913 (reorder_font_vector, fontset_find_font): Optimize for the case of
21914 no need of reordering.
21915 (face_for_char): Map the charset property by
21916 Vfont_encoding_charset_alist.
21917
21918 2008-02-01 Jason Rumney <jasonr@gnu.org>
21919
21920 * w32font.c (logfonts_match): Don't check adstyle here.
21921 (font_matches_spec): Check here against physical font instead.
21922 (add_font_entity_to_list): Avoid some substitutions.
21923
21924 * font.c (font_parse_fcname): Default weight and slant to normal.
21925 (font_score): Prefer normal fonts if weight or slant unspecified.
21926 (font_score) [WINDOWSNT]: Scale weight difference down to closer
21927 match freetype scores.
21928
21929 2008-02-01 Jason Rumney <jasonr@gnu.org>
21930
21931 * w32font.c (w32font_text_extents): Don't use the frame stored in the
21932 font, as it may have been deleted.
21933 (w32_enumfont_pattern_entity): Map generic family to adstyle using
21934 most common hyphenless variation.
21935 (logfonts_match): Check generic family.
21936 (font_matches_spec): Don't check generic family here.
21937 (fill_in_logfont): Set generic family based on adstyle.
21938
21939 * w32font.h (w32font_get_cache): Update declaration.
21940
21941 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21942
21943 * ftfont.c (ftfont_get_cache): Adjust the argument type.
21944
21945 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21946 If none of the new drivers are available, call font_update_drivers
21947 with the old drivers.
21948
21949 * w32font.c (w32font_get_cache): Adjust the argument type.
21950
21951 * xfont.c (xfont_get_cache): Adjust the argument type.
21952
21953 * font.h (struct font_driver): Change argument type of get_cache.
21954
21955 * xftfont.c (xftfont_start_for_frame): Delete prototype.
21956
21957 * font.c (Ffont_get): Fix arguments to Fassoc.
21958 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21959 (font_clear_cache): New function.
21960 (font_list_entities, font_matching_entity): Use font_get_cache.
21961 (font_update_drivers): Call font_clear_cache when finishing a driver.
21962
21963 * fontset.c (fontset_find_font): Fix previous change.
21964
21965 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21966
21967 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21968 dpyinfo->font_table.
21969 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21970 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21971
21972 * font.c (font_at): Handle the case that the arg C is negative.
21973 Handle the unibyte case.
21974 (Ffont_at): Call font_at with the arg C -1.
21975
21976 * xdisp.c (handle_auto_composed_prop): Don't get a character at
21977 the position here, and call font_at with the arg C -1.
21978 Don't check the range of the existing composition at the point.
21979
21980 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21981
21982 * fontset.c (fontset_add): New args charset_id and family.
21983 Change caller.
21984 (load_font_get_repertory, fontset_find_font): Assume that
21985 font_spec is always a font-spec object.
21986 (Fset_fontset_font): Always store a font-spec object in a fontset.
21987
21988 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21989 instead of get_property_and_range.
21990
21991 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
21992
21993 * xftfont.c (struct xftfont_info): Delete the member ft_face.
21994 (xftfont_open): Don't keep locking face.
21995 (xftfont_close): Don't unlock face.
21996 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21997
21998 * fontset.c (fontset_find_font): Don't prefer a font of
21999 supplementary charset.
22000
22001 2008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
22004 script, langsys_tag to langsys, new member script.
22005 (OTF_TAG_STR): Terminate by '\0'.
22006 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
22007 listing to the script specified in that property. Fix arg to
22008 OTF_check_features.
22009
22010 2008-02-01 Jason Rumney <jasonr@gnu.org>
22011
22012 * w32font.h: New file.
22013
22014 * w32font.c: Include it.
22015 (struct w32font_info): Add owning_frame field. Move to w32font.h.
22016 (w32font_open): Set owning_frame.
22017 (w32font_text_extents): Use owning_frame.
22018 (struct font_callback_data): Add opentype_only field.
22019 (add_font_entity_to_list): Use it to filter fonts.
22020 Don't check against full name.
22021 (w32font_list_internal): New function.
22022 (w32font_list): Use it.
22023 (w32font_match_internal): New function.
22024 (w32font_match): Use it.
22025 (w32font_open_internal): New function.
22026 (w32font_open): Use it.
22027 (w32font_get_cache, w32font_close, w32font_has_char)
22028 (w32font_encode_char, w32font_text_extents, w32font_draw):
22029 Make non-static.
22030
22031 * makefile.w32-in (w32font.o): Depend on w32font.h.
22032
22033 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22034
22035 * charset.c (Fdefine_charset_internal): Record a supplementary
22036 charset at the tail of Vcharset_order_list.
22037
22038 * font.c (Ffont_shape_text): Fix the return value.
22039
22040 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
22041
22042 * xdisp.c (handle_auto_composed_prop): Fix previous change.
22043
22044 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22045
22046 * ftfont.c (struct OpenTypeSpec): New struct.
22047 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
22048 (ftfont_get_open_type_spec): New function.
22049 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
22050
22051 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
22052
22053 2008-02-01 Jason Rumney <jasonr@gnu.org>
22054
22055 * w32font.c (add_font_entity_to_list): Compare only the beginning
22056 of full name.
22057
22058 2008-02-01 Kenichi Handa <handa@m17n.org>
22059
22060 * xdisp.c (handle_auto_composed_prop): Simplify the code.
22061 Never return HANDLED_RECOMPUTE_PROPS.
22062
22063 2008-02-01 Kenichi Handa <handa@m17n.org>
22064
22065 * font.c (font_gstring_produce): Delete it.
22066
22067 * composite.h (COMPOSITION_METHOD):
22068 Handle COMPOSITION_WITH_GLYPH_STRING.
22069
22070 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22071
22072 * xfont.c (Qx): Delete.
22073 (syms_of_xfont): Don't initialize Qx.
22074
22075 * composite.h (enum composition_method):
22076 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
22077
22078 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22079
22080 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
22081 (choose_face_font): Accept new form of font-spec.
22082
22083 * frame.h (font_driver_list): Declare it unconditionally.
22084 (struct frame): Define members font_driver_list and font_data_list
22085 unconditionally.
22086
22087 * fontset.c: Include "font.h" unconditionally.
22088 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
22089 (Fset_fontset_font): Accept a font-spec object.
22090
22091 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
22092 PIXEL_SIZE part a wild card.
22093
22094 * dispextern.h (struct glyph_string): Define members clip and
22095 num_clips unconditionally.
22096 (struct face): Define members font_info and extra unconditionally.
22097
22098 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
22099 ftfont_info only when HAVE_LIBOTF is defined.
22100
22101 2008-02-01 Andreas Schwab <schwab@suse.de>
22102
22103 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
22104 and end.
22105
22106 2008-02-01 Jason Rumney <jasonr@gnu.org>
22107
22108 * w32font.c (w32font_driver): Add new fields.
22109
22110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22111
22112 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
22113 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
22114 (LIBES): Add @M17N_FLT_CFLAGS@.
22115
22116 * composite.c (compose_text): Don't treat the new style
22117 composition specially.
22118
22119 * emacs.c (main): Call syms_of_font unconditionally.
22120
22121 * font.h (FONT_ENTITY_NOT_LOADABLE)
22122 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
22123 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
22124 (struct font_driver): New member shape.
22125 (font_registry_charsets): Extern it.
22126 (font_find_for_lface, font_prepare_composition): Adjust prototype.
22127 (font_otf_capability, font_drive_otf): Delete their externs.
22128
22129 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
22130 (font_charset_alist, font_registry_charsets): Move from xfont.c
22131 and rename.
22132 (font_prop_validate_otf): New function.
22133 (font_property_table): Register it for QCotf.
22134 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
22135 (font_drive_otf): Delete.
22136 (font_prepare_composition): New arg F. Adjust for the change of
22137 lispy gstring.
22138 (font_find_for_lface): New arg C.
22139 (font_load_for_face): Adjust for the change of font_find_for_lface.
22140 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
22141 lispy gstring.
22142 (Ffont_shape_text): New function.
22143 (Fopen_font): If the font size is not given, use 12-pixel.
22144 (Ffont_at): New arg STRING.
22145 (syms_of_font): Initialize font_charset_alist.
22146 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
22147 conditionally.
22148
22149 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
22150 fonts of the same font-spec. Change the format of RFONT-DEF.
22151 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
22152 Adjust for the change of RFONT-DEF.
22153 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
22154
22155 * ftfont.h: New file.
22156
22157 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
22158 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22159 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22160 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
22161 font_otf_capability and font_drive_otf, set ftfont_shape.
22162 (ftfont_list): Adjust for the change of :otf property value.
22163 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
22164 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
22165 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
22166 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22167 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
22168 (otf_gstring, gstring, m17n_flt_initialized): New variables.
22169
22170 * w32term.c (x_draw_composite_glyph_string_foreground):
22171 Adjust for the change of lispy gstring.
22172
22173 * xdisp.c (handle_composition_prop): Adjust for the change of
22174 lispy gstring. Call a function for auto-composition with the
22175 third arg it->window.
22176 (fill_composite_glyph_string): Adjust for the change of lispy string.
22177 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
22178
22179 * xfaces.c (set_font_frame_param): Adjust for the change of
22180 font_find_for_lface.
22181
22182 * xfont.c (x_font_charset_alist): Move to font.c and rename.
22183 (xfont_registry_charsets): Likewise. Change caller.
22184 (syms_of_xfont): Don't handle x_font_charset_alist.
22185
22186 * xftfont.c: Include "ftfont.h".
22187 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
22188 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
22189 (xftfont_close) [HAVE_LIBOTF]: Close otf.
22190 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
22191 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
22192 Set xftfont_driver.shape to xftfont_shape.
22193
22194 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22195 the change of lispy gstring.
22196
22197 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22198
22199 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
22200
22201 2008-02-01 Jason Rumney <jasonr@gnu.org>
22202
22203 * w32font.c (w32font_draw): Fill background manually.
22204
22205 2008-02-01 Jason Rumney <jasonr@gnu.org>
22206
22207 * font.c (Qfontp): Remove unused symbol.
22208 (QCantialias): New symbol.
22209 (syms_of_font): Define it.
22210 (font_property_table): Set a validator for QCantialias.
22211
22212 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
22213 Define if not already.
22214 (QCfamily): Share with xfaces.c.
22215 (Qstandard, Qsubpixel, Qnatural): New symbols.
22216 (syms_of_w32font): Define them. Don't define QCfamily here.
22217 (w32_antialias_type, lispy_antialias_type): New functions.
22218 (w32_enumfont_pattern_entity): New arg requested_font.
22219 Set antialias parameter if non-default was requested.
22220 (fill_in_logfont): Fill in lfQuality if :antialias specified.
22221
22222 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22223
22224 * lread.c (read1): Undo the previous change.
22225
22226 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
22227
22228 * frame.c (Fdelete_frame): Call font_update_drivers only when
22229 USE_FONT_BACKEND is defined.
22230
22231 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22232
22233 * font.h (struct font_bitmap): New member bits_per_pixel.
22234 (struct font_driver): New members start_for_frame and end_for_frame.
22235 (struct font_data_list): New struct.
22236 (font_put_frame_data, font_get_frame_data): Extern them.
22237
22238 * frame.h (struct frame): New member font_data_list.
22239
22240 * font.c (font_update_drivers): Call driver->start_for_frame and
22241 driver->end_for_frame at proper timings.
22242 (font_put_frame_data, font_get_frame_data): New functions.
22243 (Ffont_spec): Add usage in the docstring.
22244
22245 * frame.c (make_frame): Initialize f->font_data_list to NULL.
22246 (Fdelete_frame): Call font_update_drivers.
22247
22248 * xftfont.c (struct xftface_info): Delete the member xft_draw.
22249 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
22250 (xftfont_get_xft_draw): New function.
22251 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
22252 (xftfont_end_for_frame): New function.
22253 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
22254
22255 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
22256 Change argument. Cache GCs in the per-frame data.
22257 (struct ftxfont_frame_data): New struct.
22258 (ftxfont_draw_bitmap): New arg gc_fore and flush.
22259 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
22260 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
22261 (ftxfont_end_for_frame): New function.
22262 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
22263
22264 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
22265
22266 2008-02-01 Kenichi Handa <handa@m17n.org>
22267
22268 * xselect.c (Vselection_coding_system)
22269 (Vnext_selection_coding_system): Delete them.
22270 (syms_of_xselect): Don't declare selection-coding-system and
22271 next-selection-coding-system. They are declared in select.el.
22272
22273 2008-02-01 Jason Rumney <jasonr@gnu.org>
22274
22275 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
22276
22277 * w32fns.c: Include imm.h.
22278 (get_composition_string_fn, get_ime_context_fn): New optional
22279 system functions.
22280 (globals_of_w32fns): Load them from imm32.dll.
22281 (ignore_ime_char): New flag.
22282 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
22283 WM_IME_ENDCOMPOSITION messages.
22284
22285 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
22286 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
22287
22288 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22289
22290 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
22291 (READCHAR_REPORT_MULTIBYTE): New macro.
22292 (readchar): New 2nd arg MULTIBYTE.
22293 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
22294 Make symbol's name multibyte according to the multibyteness of the
22295 source.
22296
22297 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22298
22299 * xfaces.c (face_for_overlay_string): Call lookup_face with
22300 correct arguments (fix of synching with the trunk).
22301
22302 2008-02-01 Kenichi Handa <handa@m17n.org>
22303
22304 * font.c (font_prop_validate_symbol, font_prop_validate_style)
22305 (font_prop_validate_non_neg, font_prop_validate_spacing):
22306 Delete argument prop_index.
22307 (font_property_table): Change arguments to validater. Change Callers.
22308 (font_lispy_object): Delete.
22309 (font_at): Use font_find_object instead fo font_lispy_object.
22310
22311 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22312
22313 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
22314 and file names.
22315
22316 2008-02-01 Jason Rumney <jasonr@gnu.org>
22317
22318 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
22319 (font_matches_spec): Remove debug output.
22320 (add_font_entity_to_list): Avoid using substituted fonts.
22321
22322 2008-02-01 Jason Rumney <jasonr@gnu.org>
22323
22324 * doc.c (Fsnarf_documentation):
22325 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
22326
22327 2008-02-01 Miles Bader <miles@gnu.org>
22328
22329 * dispextern.h (struct glyph_row): Only define "clip" field if
22330 HAVE_WINDOW_SYSTEM is defined.
22331
22332 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22333
22334 Fix up multi-tty merge.
22335
22336 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
22337 and indentation.
22338
22339 * xfaces.c (free_realized_face, clear_face_gcs):
22340 Include font_done_for_face in the input_blocked section, just in case.
22341
22342 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
22343 (get_char_face_and_encoding): Undo last change and remove the *other*
22344 duplicate definition (i.e. keep the one that's better scoped and that
22345 includes code for the font-backend).
22346
22347 * terminal.c (create_terminal): Default keyboard_coding to
22348 `no-conversion' and terminal_coding to `undecided'.
22349
22350 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
22351
22352 * fontset.c (free_realized_fontsets): Check that the table entry does
22353 contain a fontset before trying to compare it to `base'.
22354
22355 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
22356 syms_of_charset, and syms_of_coding earlier because init_window_once
22357 now needs Vcoding_system_hash_table to be setup.
22358
22359 * coding.h (default_buffer_file_coding): Remove.
22360
22361 * coding.c (default_buffer_file_coding): Remove.
22362 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
22363 than ->symbol, and use the terminal-local coding system.
22364 (syms_of_coding): Don't setup the coding-systems that are not
22365 terminal-local.
22366 (Fdefine_coding_system_internal): Use XCAR/XCDR.
22367
22368 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
22369 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
22370
22371 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
22372 in chartab.c and were re-added here by mistake.
22373 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
22374
22375 * doc.c (Fsnarf_documentation):
22376 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
22377 src to etc.
22378
22379 * ChangeLog.10: Add mistakenly removed entry.
22380
22381 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
22382
22383 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
22384
22385 2008-02-01 Miles Bader <miles@gnu.org>
22386
22387 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
22388 Add extra args to FACE_FOR_CHAR.
22389
22390 2008-02-01 Kenichi Handa <handa@m17n.org>
22391
22392 * keymap.c (where_is_internal_1): If key is a cons, store the copy
22393 in sequence.
22394
22395 * chartab.c (map_sub_char_table, map_char_table): If the range
22396 contains just one character, call the function with that character
22397 even if the depth is not 3.
22398
22399 2008-02-01 Jason Rumney <jasonr@gnu.org>
22400
22401 * w32font.c (w32font_text_extents): Calculate metrics for the
22402 whole string.
22403
22404 2008-02-01 Jason Rumney <jasonr@gnu.org>
22405
22406 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
22407
22408 2008-02-01 Jason Rumney <jasonr@gnu.org>
22409
22410 * w32term.c (x_set_glyph_string_clipping):
22411 Use get_glyph_string_clip_rects.
22412 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22413 Adjust for the change of struct glyph_string.
22414
22415 * w32font.c (w32font_draw): Do clipping here.
22416
22417 2008-02-01 Kenichi Handa <handa@m17n.org>
22418
22419 * xftfont.c (xftfont_draw): Adjust for the change of struct
22420 glyph_string.
22421
22422 * xterm.c (x_set_glyph_string_clipping):
22423 Use get_glyph_string_clip_rects.
22424 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
22425 Adjust for the change of struct glyph_string.
22426
22427 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
22428 the resulting clip(s}.
22429 (expose_overlaps): Add arg r. Change callers. Set it to
22430 row->clip temporarily.
22431 (expose_window): Redraw rows overlapping the exposed area.
22432
22433 * dispextern.h (struct glyph_row): New member clip.
22434 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
22435 clip_height, new member clip, and num_clips.
22436
22437 2008-02-01 Kenichi Handa <handa@m17n.org>
22438
22439 * data.c (Fchar_or_string_p): Fix docstring.
22440
22441 2008-02-01 Kenichi Handa <handa@m17n.org>
22442
22443 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
22444 create a temporary XftDraw object.
22445
22446 2008-02-01 Kenichi Handa <handa@m17n.org>
22447
22448 * font.c (Ffontp): Fix docstring.
22449
22450 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
22451 strong evidence of ISO-2022.
22452
22453 2008-02-01 Kenichi Handa <handa@m17n.org>
22454
22455 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
22456 SYNTAX_ENTRY_FOLLOW_PARENT.
22457
22458 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22459
22460 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
22461 its type.
22462 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22463 Update to the new type of weak_hash_tables and next_weak.
22464
22465 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
22466 a plain C pointer to Lisp_Hash_Table.
22467
22468 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
22469 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
22470 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
22471 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
22472 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
22473 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
22474 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
22475 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
22476 (GC_EQ): Remove since they've been identical to their non-GC_
22477 alter-egos ever since the markbit was eradicated.
22478
22479 * alloc.c:
22480 * buffer.c:
22481 * buffer.h:
22482 * data.c:
22483 * fileio.c:
22484 * filelock.c:
22485 * fns.c:
22486 * frame.h:
22487 * lisp.h:
22488 * macterm.c:
22489 * print.c:
22490 * process.c:
22491 * w32fns.c:
22492 * w32menu.c:
22493 * w32term.c:
22494 * xfns.c:
22495 * xmenu.c:
22496 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
22497
22498 2008-02-01 Kenichi Handa <handa@m17n.org>
22499
22500 * chartab.c (map_sub_char_table): Make it work for the top-level
22501 char-table. Fix handling of parent char-table.
22502 (map_char_table): Adjust for the above change.
22503
22504 2008-02-01 Jason Rumney <jasonr@gnu.org>
22505
22506 * w32font.c (Qgdi): Rename from Qw32.
22507
22508 2008-02-01 Jason Rumney <jasonr@gnu.org>
22509
22510 * w32bdf.c (get_quoted_string): Make function static.
22511
22512 2008-02-01 Kenichi Handa <handa@m17n.org>
22513
22514 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
22515 bigger ascent and descent than those of the font, use them as
22516 font's ascent and descent.
22517
22518 2008-02-01 Kenichi Handa <handa@m17n.org>
22519
22520 * Makefile.in (${lispsource}international/charprop.el): Move this
22521 target within "#ifdef HAVE_UNIDATA" and "#endif".
22522
22523 2008-02-01 Kenichi Handa <handa@m17n.org>
22524
22525 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
22526 (shortlisp): Add ../lisp/language/tai-viet.el.
22527
22528 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
22529
22530 * Makefile.in (${lispsource}international/charprop.el): Depend on
22531 temacs${EXEEXT}.
22532
22533 2008-02-01 Jason Rumney <jasonr@gnu.org>
22534
22535 * w32font.c (w32font_close): Delete the GDI font object.
22536
22537 * w32menu.c: Include character.h.
22538
22539 * w32proc.c: Likewise.
22540
22541 * w32select.c: Likewise.
22542
22543 * makefile.w32-in (w32proc.o): Depend on character.h.
22544
22545 2008-02-01 Jason Rumney <jasonr@gnu.org>
22546
22547 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
22548
22549 * w32menu.c (syms_of_w32menu): Likewise.
22550
22551 * w32proc.c (syms_of_ntproc): Likewise.
22552
22553 * w32select.c (syms_of_w32select): Likewise.
22554
22555 * w32term.c (syms_of_w32term): Likewise.
22556
22557 2008-02-01 Jason Rumney <jasonr@gnu.org>
22558
22559 * w32font.c (w32font_draw): Delete brush after using it.
22560
22561 2008-02-01 Jason Rumney <jasonr@gnu.org>
22562
22563 * w32font.c (w32font_open): Don't set font_idx.
22564 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
22565 to font settings.
22566 (w32font_draw): Fill background explicitly.
22567
22568 2008-02-01 Jason Rumney <jasonr@gnu.org>
22569
22570 * w32term.c (w32_initialize): Don't call w32font_initialize.
22571
22572 * w32font.c (w32font_info): Remove subranges.
22573 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
22574 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
22575 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
22576 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
22577 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
22578 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
22579 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
22580 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
22581 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
22582 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
22583 New symbols.
22584 (font_callback_data): New struct.
22585 (w32font_list, w32font_match): Use it.
22586 (w32font_open): Don't populate subranges.
22587 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
22588 (w32font_encode_char): Always return unicode code-point as-is.
22589 (w32font_text_extents): Supply a transformation matrix to
22590 GetGlyphOutline. Never look up by glyph index. Avoid looping
22591 twice. Use unicode version of GetTexExtentPoint32 instead of
22592 glyph index version.
22593 (set_fonts_frame): Remove.
22594 (w32_enumfont_pattern_entity): Add frame parameter, use it to
22595 set frame parameter. Use backward compatible fake foundries.
22596 Save generic family in extra slot under QCfamily. Make width slot
22597 constant. Save QCspacing value. Save list of scripts instead of
22598 binary subranges.
22599 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
22600 (add_font_entity_to_list): Use font_callback_data struct.
22601 Filter unwanted fonts.
22602 (add_one_font_entity_to_list): Use font_callback_data struct.
22603 (w32_registry): Default to iso10646_1.
22604 (fill_in_logfont): Use dpi from extra slot. Don't bother with
22605 string font registries. Don't fill in font name if it is a generic
22606 family name, fill family instead. Use spacing, family and script
22607 extra info to fill pitch, family and charset fields.
22608 (list_all_matching_fonts): Use font_callback_data struct.
22609 (unicode_range_for_char): Remove.
22610 (font_supported_scripts): New function.
22611 (w32font_initialize): Remove.
22612 (syms_of_w32font): Update which symbols are defined.
22613
22614 2008-02-01 Jason Rumney <jasonr@gnu.org>
22615
22616 * font.c (font_pixel_size): Reverse assq_no_quit args.
22617
22618 * w32term.h (FONT_WIDTH): Report max width, not average.
22619 (FONT_MAX_WIDTH): Remove.
22620 (FONT_AVG_WIDTH): New macro.
22621
22622 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
22623 redefinition of FONT_WIDTH.
22624
22625 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
22626 (w32_cache_char_metrics): Use FONT_WIDTH.
22627
22628 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
22629
22630 2008-02-01 Jason Rumney <jasonr@gnu.org>
22631
22632 * w32font.c (w32font_open): Make lfHeight negative.
22633
22634 * w32fns.c (x_default_font_parameter): Use new style font name.
22635 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
22636
22637 2008-02-01 Jason Rumney <jasonr@gnu.org>
22638
22639 * w32font.c (QCsubranges): New symbol.
22640 (w32font_open, w32font_has_char): Get subranges from subproperty
22641 of extra.
22642 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
22643 (syms_of_w32font): Define :subranges symbol.
22644
22645 * font.c (font_put_extra): Expose externally.
22646
22647 * font.h (font_put_extra): Move declaration from font.c.
22648
22649 * font.c (Ffont_get): Use font driver to determine otf capability.
22650 (adjust_anchor): Check if driver defines anchor_point before using.
22651
22652 * w32font.c (w32font_open): Handle size, height and pixel_size better.
22653 (w32font_draw): Use options.
22654 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
22655 Fix detection of truetype fonts.
22656 (registry_to_w32_charset): Handle charsets other than iso8859-1
22657 expressed as lisp symbols.
22658 (w32_registry): Express charset as lisp symbol.
22659 (fill_in_logfont): Reverse pixel and point height logic.
22660 Don't set width here. Set quality to default.
22661
22662 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
22663 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
22664
22665 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22666 Remove redundant loop and allocation.
22667
22668 * makefile.w32-in (font.o, w32font.o): New objects.
22669 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
22670 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
22671
22672 * xdisp.c (fill_composite_glyph_string): Make the first arg to
22673 STORE_XCHARB a valid l-value.
22674
22675 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
22676 calculations for non-Truetype fonts.
22677 (x_draw_glyph_string): Sync with xterm.c.
22678 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
22679 Remove redundant code.
22680 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
22681
22682 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
22683 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
22684
22685 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
22686 (x_to_w32_charset, w32_to_x_charset): Expose externally.
22687
22688 * w32font.c: New file for w32 font backend.
22689
22690 2008-02-01 Kenichi Handa <handa@m17n.org>
22691
22692 * term.c: Don't include "buffer.h" twice.
22693
22694 2008-02-01 Kenichi Handa <handa@m17n.org>
22695
22696 * character.c (Funibyte_string): New function.
22697 (syms_of_character): Defsubr it.
22698
22699 2008-02-01 Jason Rumney <jasonr@gnu.org>
22700
22701 * w32term.c [USE_FONT_BACKEND]:
22702 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
22703 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
22704 (x_draw_glyph_string, x_draw_glyph_string_foreground)
22705 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
22706 (x_free_frame_resources): Sync with xterm.c.
22707
22708 2008-02-01 Andreas Schwab <schwab@suse.de>
22709
22710 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
22711 char-table size.
22712
22713 2008-02-01 Kenichi Handa <handa@m17n.org>
22714
22715 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
22716
22717 2008-02-01 Kenichi Handa <handa@m17n.org>
22718
22719 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
22720 font_otf_gpos, add font_drive_otf.
22721
22722 * fontset.c (fontset_find_font): Pay attention to font size
22723 specified for a font.
22724 (reorder_font_vector): Check contents of font_def.
22725
22726 * font.c (struct otf_list): Delete it.
22727 (otf_list): Make it a lisp variable.
22728 (otf_open): Use lispy otf_list.
22729 (generate_otf_features): Rename from parse_gsub_gpos_spec.
22730 (check_otf_features): New function.
22731 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
22732 New functions.
22733 (font_drive_otf): New function merging font_otf_gsub and
22734 font_otf_gpos.
22735 (font_open_for_lface): New arg spec. Change argument order.
22736 (font_load_for_face): Adjust for the change of font_open_for_lface.
22737 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
22738 Ffont_otf_gpos.
22739 (syms_of_font): Staticpro otf_list. Delete defsubr of
22740 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
22741
22742 * xfaces.c (set_font_frame_param): Adjust for the change of
22743 font_open_for_lface.
22744
22745 * font.h (font_open_for_lface): Adjust prototype.
22746 (struct font_driver): Delete members otf_gsub and otf_gpos, add
22747 member otf_drive.
22748 (font_otf_gsub, font_otf_gpos): Delete externs.
22749 (font_drive_otf): Extern it.
22750
22751 2008-02-01 Kenichi Handa <handa@m17n.org>
22752
22753 * font.c (font_at): If the window W is not on a window system,
22754 return Qnil.
22755
22756 * coding.c (produce_chars, encode_coding): Don't call
22757 insert_from_gap if no characters to produce.
22758
22759 2008-02-01 Kenichi Handa <handa@m17n.org>
22760
22761 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
22762 Fclear_face_cache.
22763
22764 * xfaces.c (face_for_font): Check also face->font==font->font.font.
22765
22766 2008-02-01 Miles Bader <miles@gnu.org>
22767
22768 * emacs.c (main): Change default value of `enable_font_backend' to 1.
22769 Parse "--disable-font-backend" option.
22770 (standard_args): Add "--disable-font-backend" option.
22771
22772 2008-02-01 Kenichi Handa <handa@m17n.org>
22773
22774 * fontset.c (fontset_find_font): New function.
22775 (fontset_font): Use fontset_find_font.
22776 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
22777 Register the specified font for all Latin characters.
22778 (new_fontset_from_font): Register the specified font for all Latin
22779 characters.
22780 (dump_fontset): For a realized fontset, include the base fontset
22781 name in the returned vector.
22782
22783 2008-02-01 Kenichi Handa <handa@m17n.org>
22784
22785 * character.h (CHAR_STRING): Cast C to unsigned on calling
22786 char_string.
22787
22788 * character.c (char_string): Type of arg C changed to unsigned.
22789 Signal an error if C is an invalid character code.
22790
22791 * editfns.c (general_insert_function, Fchar_to_string):
22792 Use CHARACTERP, not INTEGERP.
22793
22794 2008-02-01 Kenichi Handa <handa@m17n.org>
22795
22796 * character.h (MIN_MULTIBYTE_LEADING_CODE)
22797 (MAX_MULTIBYTE_LEADING_CODE): New macros.
22798
22799 * regex.c (analyse_first): Fix for multibyte characters in "case
22800 charset:" and "case categoryspec:".
22801
22802 2008-02-01 Andreas Schwab <schwab@suse.de>
22803
22804 * Makefile.in (LIBES): Move standard libraries to the end.
22805
22806 2008-02-01 Kenichi Handa <handa@m17n.org>
22807
22808 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22809 nonzero, don't shrink the buffer nextb.
22810
22811 * buffer.h (struct buffer_text): New member inhibit_shrinking.
22812
22813 * coding.c (coding_alloc_by_making_gap): New arg offset.
22814 (alloc_destination): Call coding_alloc_by_making_gap with the arg
22815 offset.
22816 (decode_coding_iso_2022): Update coding->safe_charsets.
22817 (decode_coding_gap): Temporarily set
22818 current_buffer->text->inhibit_shrinking to 1.
22819
22820 2008-02-01 Kenichi Handa <handa@m17n.org>
22821
22822 * xterm.c (x_draw_composite_glyph_string_foreground):
22823 Fix indexing into elements of s->cmp and s->char2b.
22824
22825 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
22826
22827 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22828
22829 2008-02-01 Kenichi Handa <handa@m17n.org>
22830
22831 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22832 target_multibyte instead of multibyte.
22833 (re_match_2_internal): Call bcmp_translate with target_multibyte.
22834 (bcmp_translate): Change the argument name from multibyte to
22835 target_multibyte.
22836
22837 2008-02-01 Kenichi Handa <handa@m17n.org>
22838
22839 These changes are to compile a regexp into a pattern that can be
22840 used both for multibyte and unibyte targets.
22841
22842 * Makefile.in (search.o): Depend on charset.h.
22843
22844 * character.c (multibyte_char_to_unibyte_safe): New function.
22845
22846 * search.c: Include "charset.h".
22847 (compile_pattern_1): Delete argument multibyte. Don't set
22848 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
22849 (compile_pattern): Don't compare cp->buf.target_multibyte.
22850 Compare cp->buf.charset_unibyte.
22851 (compile_pattern): Set cp->buf.target_multibyte.
22852
22853 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22854
22855 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22856
22857 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22858 multibyte. Change callers.
22859 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22860 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
22861 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22862 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22863 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22864 (regex_compile): Make the compiled pattern usable both for
22865 multibyte and unibyte targets.
22866 (analyse_first): Make the fastmap usable both for multibyte and
22867 unibyte targets.
22868 (TRANSLATE_VIA_MULTIBYTE): Delete.
22869 (re_match_2_internal): Pay attention to the case that the
22870 multibyteness of bufp and target may be different.
22871
22872 2008-02-01 Kenichi Handa <handa@m17n.org>
22873
22874 * xdisp.c (x_produce_glyphs): When a font is not found, make the
22875 empty box occupy at least one column width.
22876
22877 2008-02-01 Miles Bader <miles@gnu.org>
22878
22879 * Makefile.in: Remove redundant HAVE_XFT clause.
22880
22881 2008-02-01 Kenichi Handa <handa@m17n.org>
22882
22883 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22884
22885 2008-02-01 Kenichi Handa <handa@m17n.org>
22886
22887 * fontset.c (Finternal_char_font): Fix for the case of POSITION
22888 being nil.
22889
22890 2008-02-01 Kenichi Handa <handa@m17n.org>
22891
22892 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22893
22894 2008-02-01 Kenichi Handa <handa@m17n.org>
22895
22896 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22897
22898 2008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * search.c (simple_search): Fix previous change.
22901
22902 2008-02-01 Kenichi Handa <handa@m17n.org>
22903
22904 * xftfont.c (ftfont_font_format): Extern declaration.
22905
22906 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22907
22908 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22909 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22910
22911 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22912 (ftfont_font_format): Fix previous change.
22913
22914 * font.h (Ffont_xlfd_name): EXFUN it.
22915
22916 * font.c (font_parse_xlfd): Fix the array size of `f'.
22917 (register_font_driver): Use EQ to compare driver->type.
22918
22919 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22920 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22921 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22922
22923 2008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22926 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22927
22928 2008-02-01 Kenichi Handa <handa@m17n.org>
22929
22930 * xfont.c (xfont_open): Set font->format.
22931
22932 * xftfont.c (xftfont_open): Set font->format.
22933
22934 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22935 (ftfont_list): Include FC_FONTFORMAT in FcObject.
22936 (ftfont_open): Set font->format.
22937 (ftfont_font_format): New function.
22938
22939 * font.h (struct font): New member format.
22940
22941 * font.c (Qopentype): New variable.
22942 (syms_of_font): Defsym it.
22943 (Fquery_font): Change the format of the last element of the return
22944 value.
22945
22946 2008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * xfns.c (xic_create_xfontset): Try the default fontset name as a
22949 last resort.
22950
22951 2008-02-01 Kenichi Handa <handa@m17n.org>
22952
22953 * coding.c (detect_coding_charset): Fix detection of multi-byte
22954 charset.
22955
22956 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
22957
22958 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22959
22960 2008-02-01 Kenichi Handa <handa@m17n.org>
22961
22962 * xdisp.c (get_next_display_element): Set it->face_id for the
22963 first component of a composition.
22964 (x_produce_glyphs): Check if the font is changed or not for composition.
22965
22966 2008-02-01 Kenichi Handa <handa@m17n.org>
22967
22968 * fontset.c (Qlatin): New variable.
22969 (syms_of_fontset): Define it as a lisp symbol.
22970 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22971
22972 2008-02-01 Kenichi Handa <handa@m17n.org>
22973
22974 * font.c (font_unparse_fcname): Pay attention to the case that
22975 some of font property is a null string.
22976
22977 2008-02-01 Kenichi Handa <handa@m17n.org>
22978
22979 * term.c: Include "composite.h".
22980 (encode_terminal_code): Output all components of composition.
22981 Check the size of encode_terminal_src.
22982 (produce_glyphs): For composition, call produce_composite_glyph.
22983 (append_composite_glyph, produce_composite_glyph): New functions.
22984
22985 * xdisp.c (x_produce_glyphs): In handling composition, if a font
22986 is not found, get font_info from the current ascii face.
22987
22988 2008-02-01 Kenichi Handa <handa@m17n.org>
22989
22990 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22991 buffer-file-name to Qnil before calling insert_from_buffer.
22992
22993 * font.c (font_unparse_fcname): Pay attention to the case that
22994 foundry is a null string.
22995
22996 2008-02-01 Kenichi Handa <handa@m17n.org>
22997
22998 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22999
23000 * font.c (Qunicode_sip): New variable.
23001 (syms_of_font): Declare it as a Lisp symbol.
23002
23003 * font.h (Qunicode_sip): Extern it.
23004
23005 2008-02-01 Kenichi Handa <handa@m17n.org>
23006
23007 * composite.c (get_composition_id): Pay attention to TAB component.
23008
23009 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
23010 TAB. Adjust for the change of s->char2b which always points to
23011 the first element of allocated memory.
23012
23013 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
23014
23015 * xdisp.c (handle_composition_prop): Set it->c to the first
23016 non-TAB component.
23017 (fill_composite_glyph_string): Change argument.
23018 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
23019 (x_produce_glyphs): Fix handling of left/right padding.
23020
23021 2008-02-01 Kenichi Handa <handa@m17n.org>
23022
23023 * coding.c (detect_coding_system): Fix for handling off
23024 inhibit_iso_escape_detection. Fix for the case that no coding
23025 system is defined for a specific coding category.
23026
23027 2008-02-01 Kenichi Handa <handa@m17n.org>
23028
23029 * font.c (font_matching_entity): Delete unused local var.
23030
23031 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
23032 opening a font.
23033
23034 * fileio.c (Finsert_file_contents): On recovering a file, assume
23035 Unix-like eol.
23036 (choose_write_coding_system): On auto-saving a file, force
23037 Unix-like eol.
23038
23039 * coding.c (setup_coding_system): Fix setting of
23040 coding->common_flags based on eol_type.
23041 (coding_inherit_eol_type): If PARENT is not nil, be sure to
23042 inherit from it.
23043
23044 2008-02-01 Kenichi Handa <handa@m17n.org>
23045
23046 * alloc.c (NSTATICS): Increas to 0x600.
23047
23048 2008-02-01 Kenichi Handa <handa@m17n.org>
23049
23050 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
23051 (ftfont_list): Don't check :name property.
23052 (ftfont_match): New function.
23053 (ftfont_pattern_entity): If the pattern doesn't contain
23054 FC_SPACING, don't assume FC_MONO.
23055
23056 * font.h (struct font_driver): New member `match'.
23057 (font_update_drivers): Adjust prototype.
23058
23059 * font.c (font_parse_fcname, font_parse_name): Don't change :name
23060 property of FONT.
23061 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
23062 Define them unconditionally.
23063 (font_matching_entity): New function.
23064 (font_open_by_name): Try font_matching_entity if exact match is
23065 not found.
23066 (font_update_drivers): Delete the arg FONT. Return a list of
23067 actually used backends. Don't free faces, font caches here.
23068 Don't store data in frame parameters. Don't call x_set_font.
23069 (Ffont_spec): Store :name property as is.
23070 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
23071 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
23072 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
23073 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
23074 Call font->driver->otf_gsub instead of font_otf_gsub.
23075
23076 * frame.c (x_set_font_backend): Do more works that were done in
23077 font_update_drivers before.
23078
23079 * xfont.c (xfont_match): New function.
23080 (xfont_driver): Set xfont_driver.match to xfont_match.
23081 (xfont_draw): Set font in GC if necessary.
23082
23083 * ftxfont.c (ftxfont_match): New function.
23084 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
23085
23086 * xftfont.c (xftfont_match): New function.
23087 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
23088
23089 2008-02-01 Kenichi Handa <handa@m17n.org>
23090
23091 * font.h (struct font): New member scalable.
23092 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
23093 (font_otf_gsub): Adjust prototype.
23094
23095 * font.c (font_otf_capability): Fix handling of the default langsys.
23096 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
23097 Check the contents of SPEC.
23098 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
23099 (check_gstring): New function.
23100 (REPLACEMENT_CHARACTER): New macro.
23101 (font_otf_gsub): New arg alternate_subst. Be sure to set all
23102 glyph codes of GSTRING.
23103 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
23104 (font_prepare_composition): Set cmp->glyph_len.
23105 (font_open_entity): Set font->scalable.
23106 (Ffont_get): Handle :otf property.
23107 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
23108 New functions.
23109 (Fquery_font): Use font->font.full_name.
23110 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
23111 Sfont_otf_alternates.
23112
23113 * ftfont.c (ftfont_open): Set font->font.full_name and
23114 font->font.name properly. Fix calculation of font->font.height
23115 and font->min_width.
23116
23117 * ftxfont.c (ftxfont_create_gcs): New function.
23118 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
23119 (ftxfont_draw_backgrond): Fix filling region.
23120 (ftxfont_default_fid): New function.
23121 (ftxfont_open): Set xfont->fid to the return value of
23122 ftxfont_default_fid.
23123 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
23124 (ftxfont_done_face): Free only GCs that are created by
23125 ftxfont_create_gcs.
23126 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
23127
23128 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
23129 Clip to src->width, etc (not src->clip_XXX).
23130
23131 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
23132 FontBackend frame parameter.
23133
23134 2008-02-01 Kenichi Handa <handa@m17n.org>
23135
23136 * font.h (struct font_driver_list): New member `on'.
23137 (Fclear_font_cache): EXFUN it.
23138 (font_update_drivers): Extern it.
23139
23140 * font.c (font_unparse_fcname): Fix typo (swidth->width).
23141 (font_list_entities): Check driver_list->on.
23142 (register_font_driver): Initialize `on' member to 0.
23143 (font_update_drivers): New function.
23144 (Fclear_font_cache): Check driver_list->on.
23145
23146 * frame.h (Qfont_backend): Extern it.
23147 (x_set_font_backend): Extern it.
23148
23149 * frame.c (Qfont_backend): New variable.
23150 (frame_parms): New element for font-backend.
23151 (x_set_font_backend): New function.
23152
23153 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
23154 FontBackend frame parameter.
23155 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
23156 x_set_font_backend.
23157
23158 * xfont.c (xfont_list): Don't try listing by :name property if the
23159 name is not for XLFD.
23160
23161 2008-02-01 Kenichi Handa <handa@m17n.org>
23162
23163 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
23164 (LGLYPH_SET_TO): New macros.
23165 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
23166 element of G is vector or not.
23167 (font_at): Extern it.
23168
23169 * font.c: Include window.h.
23170 (font_lispy_object): New function.
23171 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
23172 end of valid glyph.
23173 (font_close_object): Fix getting (struct font *).
23174 (font_at): New function.
23175 (Ffont_get): If FONT is a font-object, get entity from it.
23176 (Ffont_make_gstring): Initialize elements of glyphs with nil.
23177 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
23178 Fix range check.
23179 (Ffont_at): New function.
23180 (syms_of_font): Defsubr Sfont_at.
23181
23182 * xdisp.c (it_props): Move the entry for Qauto_composed to just
23183 before the entry for Qcomposition.
23184 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
23185 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
23186 the font in gstring.
23187 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
23188 LGLYPH_FORM (g) to detect the end of valid glyph.
23189 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
23190 we are composing with gstring.
23191
23192 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
23193 Check if adjustment is vector or not.
23194
23195 * Makefile.in (font.o): Make it depends on window.h.
23196
23197 2008-02-01 Kenichi Handa <handa@m17n.org>
23198
23199 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
23200 adjustment is vector or not.
23201
23202 2008-02-01 Miles Bader <miles@gnu.org>
23203
23204 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
23205
23206 2008-02-01 Kenichi Handa <handa@m17n.org>
23207
23208 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
23209 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
23210 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
23211
23212 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
23213 (DEVICE_DELTA): Fix typo.
23214 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
23215 LGLYPH format.
23216
23217 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23218 the change of LGLYPH format.
23219
23220 2008-02-01 Kenichi Handa <handa@m17n.org>
23221
23222 * ftfont.c (ftfont_list): Fix typo.
23223 (ftfont_build_basic_charsets): Don't include letters with diacritics.
23224
23225 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23226
23227 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
23228
23229 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
23230 xftface_info is non-NULL.
23231
23232 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23233
23234 * ftfont.c (ftfont_list): Move misplaced #endif.
23235
23236 2008-02-01 Kenichi Handa <handa@m17n.org>
23237
23238 * ftfont.c (ftfont_list): Pay attention to the case that
23239 FC_CAPABILITY is not defined.
23240
23241 2008-02-01 Kenichi Handa <handa@m17n.org>
23242
23243 * xftfont.c (xftfont_open): Set charset related members to -1.
23244
23245 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
23246 QCname.
23247 (ftfont_open): Set charset related members to -1.
23248
23249 * fontset.c (Votf_script_alist): New variable.
23250 (syms_of_fontset): Initialize it.
23251 (fontset_font): Delete unused variable.
23252
23253 * fontset.h (Votf_script_alist): Extern it.
23254
23255 * font.c (font_find_for_lface): Optimize code.
23256
23257 * font.h (font_close_object, font_merge_old_spec): Extern them.
23258
23259 2008-02-01 Kenichi Handa <handa@m17n.org>
23260
23261 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
23262 (syms_of_font): Initialize them.
23263 (font_pixel_size): Allow float value in dpi.
23264 (font_prop_validate_type): Delete.
23265 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
23266 Change caller.
23267 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
23268 (font_prop_validate_extra): Delete.
23269 (font_prop_validate_spacing): New function.
23270 (font_property_table): Add elements for all known properties.
23271 (get_font_prop_index): Rename from check_font_prop_name.
23272 New argument FROM. Change caller.
23273 (font_prop_validate): Validate all known properties.
23274 (font_put_extra): Delete argument force. Change caller.
23275 (font_expand_wildcards): Make it static. Fix the way of shrinking
23276 the possible range.
23277 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
23278 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
23279 Change caller.
23280 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
23281 (font_parse_fcname): Delete argument merge. Fix parsing of point
23282 size. Don't validate properties values here. Change caller.
23283 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
23284 (font_open_by_name): Delete unused variable.
23285 (Ffont_spec): Likewise. Validate property values.
23286 (Ffont_match_p): New function.
23287
23288 * font.h (QCscalable): Extern it.
23289 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
23290
23291 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
23292
23293 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
23294 (xfont_list_pattern): New function.
23295 (xfont_list): Use xfont_list_pattern.
23296
23297 2008-02-01 Kenichi Handa <handa@m17n.org>
23298
23299 * font.h (Flist_fonts): EXFUN it.
23300
23301 2008-02-01 Jason Rumney <jasonr@gnu.org>
23302
23303 * w32term.c (w32_initialize): Add back smoothing_type and
23304 smoothing_enabled definitions.
23305
23306 2008-02-01 Kenichi Handa <handa@m17n.org>
23307
23308 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
23309 s->face->font on determining underline position.
23310
23311 2008-02-01 Kenichi Handa <handa@m17n.org>
23312
23313 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
23314 (font_has_char): Accept font-object too.
23315 (font_find_for_lface): Try at first with a size specified in face.
23316
23317 2008-02-01 Kenichi Handa <handa@m17n.org>
23318
23319 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
23320 font_open_by_name.
23321
23322 2008-02-01 Kenichi Handa <handa@m17n.org>
23323
23324 * font.h (QCspacing, QCdpi): Extern them.
23325 (enum font_spacing): New enum.
23326 (FONT_PIXEL_SIZE_QUANTUM): New macro.
23327
23328 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
23329 (QCspacing, QCdpi): New variables.
23330 (syms_of_font): Initialize them.
23331 (font_pixel_size): New function.
23332 (font_put_extra): New function.
23333 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
23334 in FONT_EXTRA.
23335 (font_parse_fcname): Handle enumerated values (e.g. bold).
23336 Fix handling font size. Add QCname property that contains only
23337 unknown properties.
23338 (font_score): Change argument. Change caller. Pay attention to
23339 FONT_PIXEL_SIZE_QUANTUM.
23340 (font_sort_entites, font_list_entities, font_find_for_lface)
23341 (font_open_for_lface, font_open_by_name): Fix handling of font size.
23342 (Ffont_spec): Add QCname property that contains only unknown properties.
23343
23344 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
23345 Don't include weight in listing pattern, instead check weight of each
23346 listed font. Don't include scalable in pattern. Pay attention to
23347 FONT_PIXEL_SIZE_QUANTUM.
23348
23349 2008-02-01 Kenichi Handa <handa@m17n.org>
23350
23351 * font.c (font_parse_fcname): Fix parsing of point-size.
23352 (font_unparse_fcname): Produce symbolic names for style properties.
23353 (font_list_entities): Handle float size correctly.
23354 (font_open_by_name): Prefer `normal' property values if the name
23355 doesn't specify them.
23356
23357 * fontset.c (Finternal_char_font): Use font_get_name, not
23358 Ffont_xlfd_name.
23359
23360 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
23361 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
23362 pattern. Don't force scalable.
23363
23364 * xftfont.c (xftfont_open): For generating a name, start from
23365 96-byte buffer.
23366
23367 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
23368
23369 * frame.h (x_new_fontset2): Fix prototype.
23370
23371 2008-02-01 Kenichi Handa <handa@m17n.org>
23372
23373 * font.h (struct font_driver): Delete member parse_name.
23374 (font_match_p, font_get_spec, font_parse_fcname)
23375 (font_unparse_fcname): Extern them.
23376 (font_get_name): Adjust prototype.
23377
23378 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
23379 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
23380 (font_expand_wildcards): Fix handling ENCODING field.
23381 Avoid unnecessary checks for weight, slant, and swidth.
23382 (font_parse_fcname): New function.
23383 (font_unparse_fcname): New function.
23384 (font_parse_name): New function.
23385 (font_match_p): New function.
23386 (font_get_name): Change return value to Lisp string.
23387 (font_get_spec): New function.
23388 (Qunspecified, Qignore_defface): Don't extern them.
23389 (font_find_for_lface): Assume that LFACE is fully specified.
23390 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
23391 object, use it for FACE.
23392 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
23393 driver->parse_name.
23394 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
23395
23396 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
23397 prototype.
23398
23399 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
23400 argument F. Don't call Fnew_fontset. Instead, directly call
23401 make_fontset.
23402
23403 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
23404
23405 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
23406 of x_new_fontset2.
23407
23408 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
23409 (Qsans__serif): New variables.
23410 (ftfont_generic_family_list): New variable.
23411 (syms_of_ftfont): Initialize the above variables.
23412 (ftfont_pattern_entity): Delete argument NAME.
23413 (ftfont_list_generic_family): New function.
23414 (ftfont_parse_name): Delete this function.
23415 (ftfont_list): Try generic family only when FcFontList found no font.
23416 (ftfont_list_family): Fix args to FcObjectSetBuild.
23417
23418 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
23419 object in attrs[LFACE_FONT_INDEX].
23420 (set_lface_from_font_name): Cancel all changes for font-backend.
23421 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
23422 function.
23423 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
23424 font object in QCfont attribute.
23425 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
23426 (realize_default_face) [USE_FONT_BACKEND]: Call
23427 set_lface_from_font_and_fontset.
23428
23429 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
23430 "fixed", and signal error here if no suitable font was found.
23431
23432 * xfont.c (xfont_parse_name): Delete this function.
23433
23434 * xftfont.c (xftfont_open): Change coding style of error
23435 handling. Generate fontconfig's fontname pattern.
23436
23437 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
23438 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
23439
23440 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
23441 Both args FONTSET and FONT_OBJECT must be existing ones.
23442
23443 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23444
23445 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
23446
23447 2008-02-01 Kenichi Handa <handa@m17n.org>
23448
23449 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
23450
23451 * font.h (struct font): Fix typo.
23452
23453 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
23454 XLFD_XXX_INDEX.
23455 (enum xlfd_field_mask): New enum.
23456 (intern_font_field): Change argument. Change caller. If digits
23457 are followed by non-digits, return a symbol.
23458 (font_expand_wildcards): New function.
23459 (font_parse_xlfd): Fix wildcard handling.
23460 (Ffont_spec): If :name is specified, reflect the info in the other
23461 properties.
23462
23463 * ftfont.c (ftfont_pattern_entity): Fix typo.
23464 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
23465 locale.
23466
23467 2008-02-01 Kenichi Handa <handa@m17n.org>
23468
23469 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
23470
23471 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
23472 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
23473 registry doesn't specify encoding part.
23474 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
23475 (font_open_by_name): At first try parsing the name.
23476 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
23477 as Lisp symbols.
23478
23479 * fontset.c (reorder_font_vector): Pay attention to the case that
23480 the 3rd element of font_def is nil.
23481 (fontset_font): For the default fontset, append one more fontset
23482 elements for a script-based font specification. Don't add script
23483 attribute on finding a font.
23484 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
23485 font name.
23486 (fontset_ascii_font): If a font can't be opened, return nil.
23487
23488 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
23489 (ftfont_pattern_entity): New function.
23490 (ftfont_get_cache): Assume that freetype_font_cache is already
23491 initialized.
23492 (ftfont_list): Handle the case that a file is specified in font
23493 name. Use ftfont_pattern_entity to generate entities.
23494 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
23495 (syms_of_ftfont): Initialize freetype_font_cache.
23496
23497 * xftfont.c (xftfont_open): Make the font name fontconfig's
23498 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
23499 (xftfont_close): Free font->font.name if not NULL.
23500
23501 * xfont.c (xfont_list): If script is specified for a font, return
23502 null_vector.
23503 (xfont_list_family): Declare argument type.
23504
23505 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
23506 name, set LFACE_FONT (lface) to nil.
23507
23508 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
23509 return Qnil.
23510
23511 2008-02-01 Kenichi Handa <handa@m17n.org>
23512
23513 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
23514 (standard_args): Add "-enable-font-backend".
23515
23516 2008-02-01 Kenichi Handa <handa@m17n.org>
23517
23518 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
23519 (struct xftdraw_list, xftdraw_list): Delete them.
23520 (register_xftdraw, check_xftdraw): Delete them.
23521 (xftfont_prepare_face): Don't call register_xftdraw.
23522 (xftfont_done_face): Don't call check_xftdraw.
23523 (xftfont_draw): Get background color only when with_background is
23524 nonzero.
23525
23526 * xfont.c (xfont_encode_char): Fix calculation of char2b.
23527
23528 2008-02-01 Kenichi Handa <handa@m17n.org>
23529
23530 These changes are for the new font handling codes.
23531
23532 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
23533 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
23534 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
23535 (FONTSRC, FONTOBJ): New variables.
23536 (obj): Add $(FONTOBJ).
23537 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
23538 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
23539 @LIBOTF_LIBS@.
23540 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
23541 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
23542
23543 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
23544
23545 * character.h (Vscript_representative_chars): Extern it.
23546
23547 * character.c (Vscript_representative_chars): New variable.
23548 (syms_of_character): Declare it as a Lisp variable.
23549
23550 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
23551 enable_font_backend is nonzero, accept the composition method
23552 COMPOSITION_WITH_GLYPH_STRING.
23553
23554 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
23555 enumeration COMPOSITION_WITH_GLYPH_STRING.
23556
23557 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
23558 members clip_x, clip_y, clip_width, and clip_height.
23559 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
23560
23561 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
23562 --enable-font-backend. Call syms_of_font.
23563
23564 * fns.c (assoc_no_quit): New function.
23565
23566 * fontset.h (FONT_INFO_FROM_FACE): New macro.
23567 (face_for_font, new_fontset_from_font)
23568 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
23569
23570 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
23571 (fontset_font, fontset_ascii, face_for_char)
23572 (make_fontset_for_ascii_face, Ffont_info)
23573 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
23574 is nonzero, use font-backend mechanism.
23575 (find_font_encoding): Make it non-static.
23576 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
23577 New functions.
23578
23579 * frame.h (struct frame): New members resx and resy.
23580 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
23581 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
23582
23583 * frame.c [USE_FONT_BACKEND]: Include "font.h".
23584 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
23585
23586 * lisp.h (assoc_no_quit): Extern it.
23587
23588 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
23589 Through out the file, use FONT_INFO_FROM_FACE instead of
23590 FONT_INFO_FROM_ID, use get_per_char_metric instead of
23591 rif->per_char_metric.
23592 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
23593 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
23594 (get_glyph_face_and_encoding, fill_composite_glyph_string)
23595 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23596 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
23597 nonzero, use font-backend mechanism.
23598 (get_per_char_metric): New function.
23599
23600 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
23601 (set_lface_from_font_name)
23602 (set_font_frame_param, free_realized_face)
23603 (prepare_face_for_display, clear_face_gcs)
23604 (Finternal_set_font_selection_order, realize_x_face)
23605 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
23606 font-backend mechanism.
23607 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
23608 (load_face_font) [USE_FONT_BACKEND]: Abort.
23609 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
23610 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
23611
23612 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
23613 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
23614 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
23615 nonzero, register all available font drivers.
23616 Call x_default_font_parameter for deciding a font.
23617 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
23618
23619 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
23620 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
23621 (x_set_glyph_string_clipping_exactly)
23622 (x_compute_glyph_string_overhangs)
23623 (x_draw_glyph_string_foreground)
23624 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
23625 (x_free_frame_resources) [USE_FONT_BACKEND]: If
23626 enable_font_backend is nonzero, use font-backend mechanism.
23627 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
23628
23629 2008-02-01 Kenichi Handa <handa@m17n.org>
23630
23631 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
23632 system_eol_type.
23633 (syms_of_coding): Initialize system_eol_type.
23634
23635 * process.c (Fset_process_coding_system): Inherit system's eol
23636 format if necessary.
23637
23638 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23639
23640 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
23641
23642 2008-02-01 Kenichi Handa <handa@m17n.org>
23643
23644 * coding.c (decode_eol): Pay attention to buffer relocation in
23645 del_range_2.
23646 (decode_coding): Call decode_eol before restoring undo_list.
23647
23648 2008-02-01 Kenichi Handa <handa@m17n.org>
23649
23650 * charset.c (Fdefine_charset_internal): Fix setting of
23651 emacs_mule_bytes.
23652
23653 2008-02-01 Kenichi Handa <handa@m17n.org>
23654
23655 * keyboard.c (read_char): Check if C is a character or not before
23656 looking up Vkeyboard_translate_table.
23657
23658 2008-02-01 Kenichi Handa <handa@m17n.org>
23659
23660 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
23661 Fix condition to terminate the loop.
23662
23663 2008-02-01 Kenichi Handa <handa@m17n.org>
23664
23665 * coding.c (produce_composition): Compare charbuf[i] instead of
23666 args[i] against 0.
23667 (Fterminal_coding_system): Use EQ to compare Lisp objects.
23668
23669 2008-02-01 Kenichi Handa <handa@m17n.org>
23670
23671 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
23672 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
23673 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
23674 detect_coding.
23675 (emacs_mule_char): Handle old style (Emacs 20) component character
23676 of a composition.
23677 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
23678 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
23679 composition rule.
23680 (decode_coding_emacs_mule): Handle invalid bytes correctly.
23681
23682 2008-02-01 Kenichi Handa <handa@m17n.org>
23683
23684 * coding.c (encode_coding_ccl): Allocate destination dynamically
23685 when necessary.
23686
23687 2008-02-01 Kenichi Handa <handa@m17n.org>
23688
23689 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
23690 the loop. When quitted, show a proper error message.
23691
23692 2008-02-01 Kenichi Handa <handa@m17n.org>
23693
23694 * xterm.c (x_set_glyph_string_clipping_exactly):
23695 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
23696
23697 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
23698 character sequence.
23699 (Fccl_execute_on_string): Use ASET, not XSET.
23700
23701 2008-02-01 Kenichi Handa <handa@m17n.org>
23702
23703 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
23704
23705 2008-02-01 Kenichi Handa <handa@m17n.org>
23706
23707 * coding.c (decode_coding): Fix the condition of terminating the
23708 decoding loop.
23709
23710 2008-02-01 Kenichi Handa <handa@m17n.org>
23711
23712 * data.c (Faset): On setting a character bigger than 255 in a
23713 unibyte string, signal an error instead of make the string multibyte.
23714
23715 2008-02-01 Kenichi Handa <handa@m17n.org>
23716
23717 * charset.c (map_charset_chars): Fix for ascii-compatible charset
23718 made by a mapping table.
23719
23720 2008-02-01 Kenichi Handa <handa@m17n.org>
23721
23722 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
23723 not.
23724 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
23725 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
23726
23727 * xterm.c (x_draw_composite_glyph_string_foreground):
23728 Check s->face is NULL or not.
23729
23730 2008-02-01 Kenichi Handa <handa@m17n.org>
23731
23732 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
23733 (x_draw_glyph_string): Fix drawing of right_overhang and
23734 left_overhang around/on cursor.
23735
23736 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
23737
23738 2008-02-01 Kenichi Handa <handa@m17n.org>
23739
23740 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
23741
23742 2008-02-01 Kenichi Handa <handa@m17n.org>
23743
23744 * coding.c (Fdefine_coding_system_internal)
23745 (Fdefine_coding_system_alias): Avoid a duplicated element in
23746 Vcoding_system_alist.
23747
23748 2008-02-01 Kenichi Handa <handa@m17n.org>
23749
23750 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
23751
23752 * coding.c (Qcoding_system_define_form): New variable.
23753 (syms_of_coding): Intern and staticpro it.
23754 (Fcoding_system_p): Check Qcoding_system_define_form.
23755 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
23756
23757 * coding.h (CODING_SYSTEM_P): If ID is not available, call
23758 Fcoding_system_p.
23759 (CHECK_CODING_SYSTEM): If ID is not available, call
23760 Fcheck_coding_system.
23761 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
23762 Try also Fcheck_coding_system.
23763
23764 2008-02-01 Kenichi Handa <handa@m17n.org>
23765
23766 * coding.c (code_conversion_restore): GCPRO arg.
23767
23768 2008-02-01 Kenichi Handa <handa@m17n.org>
23769
23770 * character.c (lisp_string_width): Check multibyteness of STRING.
23771
23772 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23773
23774 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
23775 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
23776 (decode_mac_font_name): Use decode_coding_c_string instead of
23777 decode_coding.
23778 (x_load_font): Initialize fontp->fontset to -1.
23779 Set fontp->encoding_type.
23780
23781 2008-02-01 Kenichi Handa <handa@m17n.org>
23782
23783 * search.c (search_buffer): Give up BM search on case-fold-search
23784 if one of a target character has a case-equivalence of different
23785 byte length even if that target character is an ASCII.
23786 (simple_search): Fix calculation of byte length of matched text.
23787 (boyer_moore): Fix handling of case-equivalent multibyte characters.
23788
23789 2008-02-01 Kenichi Handa <handa@m17n.org>
23790
23791 * coding.c (decode_coding): Fix handling of invalid bytes.
23792
23793 2008-02-01 Kenichi Handa <handa@m17n.org>
23794
23795 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
23796 Unicode characters.
23797
23798 2008-02-01 Kenichi Handa <handa@m17n.org>
23799
23800 * coding.c (encode_coding_object): If a pre-write-conversion
23801 function makes a new buffer, kill it.
23802
23803 2008-02-01 Kenichi Handa <handa@m17n.org>
23804
23805 * coding.c (QCascii_compatible_p): New variable.
23806 (syms_of_coding): Initialize it.
23807 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23808 calling string_char.
23809 (record_conversion_result): Add `default:' case.
23810 (coding_charset_list): Delete unused variable `coding_type'.
23811 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23812 property in the plist of the coding system.
23813 (Fcoding_system_put): Check QCascii_compatible_p.
23814
23815 2008-02-01 Miles Bader <miles@gnu.org>
23816
23817 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23818 removed calculation of frame `f', as it's now used.
23819
23820 2008-02-01 Kenichi Handa <handa@m17n.org>
23821
23822 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23823 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23824 (UNIDATA): New variable.
23825 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23826 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23827 Run $(RUN_TEMACS) unconditionally.
23828
23829 2008-02-01 Kenichi Handa <handa@m17n.org>
23830
23831 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23832 (admindir): New variable.
23833 ($(lispsource)international/charprop.el): New target.
23834
23835 2008-02-01 Miles Bader <miles@gnu.org>
23836
23837 * character.c (chars-in-region): Remove obsolete function.
23838 (syms_of_character): Remove its initialization.
23839
23840 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
23841
23842 * w32select.c (validate_coding_system)
23843 (setup_windows_coding_system): New functions.
23844 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23845 Use setup_windows_coding_system.
23846 (setup_config, Fw32_get_clipboard_data):
23847 Use validate_coding_system.
23848 (Fx_selection_exists): Move call to setup_config to a place
23849 where signals are allowed.
23850
23851 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23852 (Fcheck_coding_system): Add declarations.
23853
23854 2008-02-01 Kenichi Handa <handa@m17n.org>
23855
23856 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23857
23858 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23859
23860 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23861 string as the second argument for x_new_fontset.
23862
23863 2008-02-01 Kenichi Handa <handa@m17n.org>
23864
23865 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23866 (encode_coding_object): Use safe_call instead of call2.
23867
23868 2008-02-01 Kenichi Handa <handa@m17n.org>
23869
23870 * fontset.c (Fset_fontset_font): Check family element of a given vector.
23871
23872 * Makefile.in (lisp): Include charprop.el.
23873
23874 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23875
23876 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23877 Not sure if it's unnecessary.
23878
23879 2008-02-01 Steven Tamm <steventamm@mac.com>
23880
23881 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23882 some possibly unnecessary fontset checking code that crashed
23883 when creating a new frame.
23884
23885 2008-02-01 Kenichi Handa <handa@m17n.org>
23886
23887 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23888 lookup_face.
23889
23890 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23891
23892 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23893
23894 2008-02-01 Kenichi Handa <handa@m17n.org>
23895
23896 * coding.c: Cancel the change done in HEAD on 2008-02-01.
23897 (coding_charset_list): New function.
23898
23899 * coding.h (coding_charset_list): Extern it.
23900
23901 2008-02-01 Kenichi Handa <handa@m17n.org>
23902
23903 * fontset.c (Fset_fontset_font): Call find_font_encoding with
23904 concatenation of family and registry.
23905
23906 2008-02-01 Kenichi Handa <handa@m17n.org>
23907
23908 * character.h (BYTE8_STRING): Fix typo.
23909
23910 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23911 string to multibyte (sync to HEAD).
23912
23913 * casefiddle.c (casify_region): Handle changes in byte-length
23914 using replace_range_2 (sync to HEAD).
23915
23916 2008-02-01 Andreas Schwab <schwab@suse.de>
23917
23918 * chartab.c (map_char_table): GCPRO table and arg.
23919
23920 2008-02-01 Kenichi Handa <handa@m17n.org>
23921
23922 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23923 already at limit.
23924
23925 2008-02-01 Kenichi Handa <handa@m17n.org>
23926
23927 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23928 instead of fast_c_string_match_ignore_case.
23929 (find_font_encoding): Change argument to Lisp_Object.
23930 Use fast_string_match_ignore_case instead of
23931 fast_c_string_match_ignore_case. Change caller.
23932
23933 2008-02-01 Kenichi Handa <handa@m17n.org>
23934
23935 * xdisp.c (get_next_display_element): In unibyte case, decide to
23936 display in octal form by checking a character by
23937 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23938
23939 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23940
23941 * character.c (unibyte_has_multibyte_table): New variable.
23942
23943 * character.h (unibyte_has_multibyte_table): Extern it.
23944 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23945
23946 2008-02-01 Kenichi Handa <handa@m17n.org>
23947
23948 * coding.c (encode_coding_iso_2022): Fix handling of charset
23949 annotation.
23950
23951 2008-02-01 Kenichi Handa <handa@m17n.org>
23952
23953 * coding.c (setup_coding_system): If coding_system is nil, use
23954 Qundecided.
23955 (Fterminal_coding_system): Return nil if terminal coding system is
23956 `undecided'.
23957 (syms_of_coding): Define coding-system `undecided' here.
23958 Setup terminal_coding as `undecided'.
23959
23960 2008-02-01 Kenichi Handa <handa@m17n.org>
23961
23962 * xdisp.c (message_dolog, set_message_1):
23963 Call unibyte_char_to_multibyte with arg type int.
23964
23965 * lread.c (read1): Fix reading of a char-table.
23966
23967 * print.c (print_object): Include sub char-table in circularities
23968 detection.
23969
23970 2008-02-01 Kenichi Handa <handa@m17n.org>
23971
23972 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23973 Append the found sequences in car of ARGS instead of prepending.
23974
23975 2008-02-01 Kenichi Handa <handa@m17n.org>
23976
23977 * fileio.c (report_file_error): Make a unibyte string from
23978 strerror (errorno).
23979 (Fsubstitute_in_file_name): Fix the arg to
23980 unibyte_char_to_multibyte. It is evaluated twice.
23981
23982 2008-02-01 Kenichi Handa <handa@m17n.org>
23983
23984 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23985
23986 2008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23989 BOM is not found.
23990 (detect_coding, detect_coding_system): Optimization for ISO-2022
23991 when no 8-bit data is found.
23992
23993 2008-02-01 Jason Rumney <jasonr@gnu.org>
23994
23995 * w32fns.c (x_to_w32_font): Update to use new coding struct.
23996
23997 2008-02-01 Kenichi Handa <handa@m17n.org>
23998
23999 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
24000 CHARS.
24001
24002 2008-02-01 Steven Tamm <steventamm@mac.com>
24003
24004 * macterm.c (mac_encode_char): Add charset argument and update
24005 to use encoding_type.
24006 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
24007 switch to pure fontset.
24008 (decode_mac_font_name): Temporarily remove decoding.
24009 (x_font_name_to_mac_font_name): Temporarily remove encoding.
24010 (x_load_font): Temporarily remove encoding.
24011
24012 2008-02-01 Kenichi Handa <handa@m17n.org>
24013
24014 * xfaces.c (Fface_font): If frame is not on a window system,
24015 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
24016 refer to face->font.
24017 (split_font_name_into_vector, build_font_name_from_vector)
24018 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
24019 when HAVE_WINDOW_SYSTEM is defined.
24020
24021 2008-02-01 Kenichi Handa <handa@m17n.org>
24022
24023 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
24024 (x_produce_glyphs): Fix setting of members of cmp in case
24025 cmp->glyph_len is zero.
24026
24027 * fontset.c (Fset_fontset_font): Fix docstring.
24028 (Ffontset_info): Make it backward compatible. New arg ALL.
24029
24030 2008-02-01 Kim F. Storm <storm@cua.dk>
24031
24032 * process.c (read_process_output): Grow decoding_buf when needed;
24033 this could cause a crash in allocate_string and compact_small_strings.
24034
24035 2008-02-01 Kenichi Handa <handa@m17n.org>
24036
24037 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
24038
24039 2008-02-01 Kenichi Handa <handa@m17n.org>
24040
24041 * coding.c (setup_coding_system): Set coding->common_flags
24042 correctly for raw-text.
24043 (consume_chars): On encoding unibyte text by raw-text, don't check
24044 multibyte form.
24045 (encode_coding): On encoding by raw-text, never use translation tables.
24046
24047 * fileio.c (e_write): Short cut for the case of no encoding.
24048
24049 2008-02-01 Kenichi Handa <handa@m17n.org>
24050
24051 * coding.c (detect_coding, detect_coding_system): Delete unused
24052 variables.
24053
24054 2008-02-01 Kenichi Handa <handa@m17n.org>
24055
24056 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
24057 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
24058
24059 2008-02-01 Kenichi Handa <handa@m17n.org>
24060
24061 * coding.c (Ffind_coding_systems_region_internal):
24062 Include raw-text and no-conversion in the result.
24063
24064 2008-02-01 Kenichi Handa <handa@m17n.org>
24065
24066 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
24067 (load_font_get_repertory): Delete unnecessary check of ENCODING of
24068 FONT_DEF.
24069 (font_def_arg, add_arg, from_arg, to_arg): New args.
24070 (set_fontset_font): Change argument.
24071 (Fset_fontset_font): Fix for the case that TARGET is a script
24072 name and charset name.
24073 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
24074
24075 2008-02-01 Kenichi Handa <handa@m17n.org>
24076
24077 * fontset.c (fontset_font): Rename from fontset_face. Change return
24078 value.
24079 (face_suitable_for_char_p, face_for_char): Adjust for the change
24080 of fontset_font.
24081 (make_fontset_for_ascii_face): Fix setting of the fontset element
24082 for ASCII.
24083 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
24084 to get a font name.
24085 (Ffontset_info): Adjust for the change of fontset_font.
24086
24087 * coding.c (emacs_mule_char): Check invalid code more rigidly.
24088
24089 * character.h (LEADING_CODE_LATIN_1_MIN)
24090 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
24091
24092 2008-02-01 Kenichi Handa <handa@m17n.org>
24093
24094 * editfns.c (check_translation): New function.
24095 (Ftranslate_region_internal): Handle M:N mapping.
24096
24097 2008-02-01 Kenichi Handa <handa@m17n.org>
24098
24099 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
24100
24101 2008-02-01 Kenichi Handa <handa@m17n.org>
24102
24103 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
24104 goto invalid_code.
24105 (decode_coding_iso_2022): Fix handling of invalid designation.
24106
24107 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
24108 after calling code_conversion_save.
24109
24110 2008-02-01 Kenichi Handa <handa@m17n.org>
24111
24112 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
24113
24114 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
24115
24116 * fontset.c: Include "intervals.h".
24117 (fontset_face): Fix comparing of Lisp_Objects.
24118 (free_face_fontset, new_fontset_from_font_name):
24119 Fix Lisp_Object/int mixup.
24120
24121 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
24122
24123 * coding.c: Add many prototypes for static functions.
24124 (get_translation_table): Allow max_lookup to be NULL.
24125 (decode_coding, Ffind_coding_systems_region_internal)
24126 (Funencodable_char_position, Fcheck_coding_systems_region):
24127 Call get_translation_table with max_lookup NULL.
24128
24129 2008-02-01 Kenichi Handa <handa@m17n.org>
24130
24131 * coding.c (get_translation_table): Declare it as Lisp_Object.
24132 (LOOKUP_TRANSLATION_TABLE): New macro.
24133 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
24134 instead of CHAR_TABLE_REF.
24135
24136 2008-02-01 Kenichi Handa <handa@m17n.org>
24137
24138 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
24139 annotation data format.
24140 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
24141 Change arguments FROM and TO to single argument NCHARS. Change caller.
24142 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
24143 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24144 (decode_coding_ccl, decode_coding_charset): Pay attention to
24145 coding->charbuf_used.
24146 (get_translation): New function.
24147 (produce_chars): New arguments translation_table and last_block.
24148 Translate characters here. Return number of carryover chars.
24149 Change caller.
24150 (produce_composition): New argument pos. Change caller.
24151 Adjust for the change of annotation data format.
24152 (produce_charset, produce_annotation): Likewise.
24153 (decode_coding, encode_coding): Don't call translate_chars.
24154 (consume_chars): New arg translation_table. Change caller.
24155 (translate_chars): Delete.
24156 (syms_of_coding): Make translation-table's number of extra slots 2.
24157
24158 2008-02-01 Kenichi Handa <handa@m17n.org>
24159
24160 * search.c (simple_search): Fix setting this_pos_byte in backward
24161 search.
24162
24163 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
24164 byte sequence.
24165 (detect_coding_ccl): Fix setting of the variable valids.
24166
24167 2008-02-01 Kenichi Handa <handa@m17n.org>
24168
24169 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
24170
24171 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
24172
24173 * editfns.c (Ftranslate_region_internal): Rename from
24174 Ftranslate_region. Accept a char-table in TABLE.
24175 (syms_of_editfns): Defsubr Stranslate_region_internal.
24176
24177 * xfaces.c (set_lface_from_font_name): If a font is specified for
24178 a frame, generate a fontset from the font.
24179 (build_scalable_font_name): If the scalable font is requested for
24180 a specific size, don't change that size.
24181 (try_font_list): Try a scalable font also in the case that a
24182 pattern string is specified.
24183
24184 2008-02-01 Kenichi Handa <handa@m17n.org>
24185
24186 * xfaces.c (Fface_font): New optional arg CHARACTER.
24187
24188 2008-02-01 Kenichi Handa <handa@m17n.org>
24189
24190 * charset.h (CHARSET_OFFSET): New macro.
24191
24192 2008-02-01 Kenichi Handa <handa@m17n.org>
24193
24194 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
24195
24196 * fontset.c (fontset_face): Handle the case that repertory is a
24197 char-table.
24198 (find_font_encoding): Return nil for unknown encoding.
24199 (Fset_fontset_font): Ignore a font of unknown encoding.
24200
24201 2008-02-01 Kenichi Handa <handa@m17n.org>
24202
24203 * keymap.c (describe_vector): Handle default value of a char table.
24204
24205 * fontset.c (fontset_face): Handle fallback fonts correctly.
24206 (Ffontset_info): Return infomation about fallback fonts.
24207
24208 2008-02-01 Kenichi Handa <handa@m17n.org>
24209
24210 * fontset.c (FONTSET_DEFAULT): New macro.
24211 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
24212 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
24213 the case that it is nil.
24214 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
24215 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
24216
24217 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
24218 subset or superset.
24219
24220 2008-02-01 Kenichi Handa <handa@m17n.org>
24221
24222 * emacs.c (main): Call init_charset after syms_of_XXX.
24223
24224 * charset.c (Vcharset_map_directory): Delete.
24225 (Vcharset_map_path): New variable.
24226 (load_charset_map_from_file): Use Vcharset_map_path instead.
24227 (init_charset): Initialize Vcharset_map_path.
24228 (syms_of_charset): Delete declaration of "charset-map-directory",
24229 add declaration of "charset-map-path".
24230
24231 2008-02-01 Kenichi Handa <handa@m17n.org>
24232
24233 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
24234 ASCII only string.
24235
24236 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
24237
24238 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
24239 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
24240
24241 2008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
24244
24245 * coding.c (QCmnemonic, QCdefalut_char)
24246 (QCdecode_translation_table, QCencode_translation_table)
24247 (QCpost_read_conversion, QCpre_write_conversion): New variables.
24248 (get_translation_table): Return a list of translation tables if
24249 necessary.
24250 (decode_coding): Call get_translation_table with ENCODEP 0.
24251 (char_encodable_p): If translation_table is non-nil, always call
24252 translate_char.
24253 (Fdefine_coding_system_internal): Accept list of translation
24254 tables as :encode-translation-table and :decode-translation-table.
24255 (Fcoding_system_put): New function.
24256 (syms_of_coding): Declare new symbols.
24257 Defsubr Scoding_system_put.
24258 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
24259 typically JISX0212.
24260
24261 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
24262 when the charset is superset type.
24263
24264 * character.c (translate_char): Accept list of translation tables.
24265
24266 2008-02-01 Kenichi Handa <handa@m17n.org>
24267
24268 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
24269 (CODING_ATTR_TRANS_TBL): New macro.
24270
24271 * coding.c (get_translation_table): New function.
24272 (translate_chars): Fix the bug of skipping annotation data.
24273 (decode_coding, encode_coding): Utilize get_translation_table.
24274 (char_encodable_p, Funencodable_char_position): Translate char if
24275 necessary.
24276 (Ffind_coding_systems_region_internal)
24277 (Fcheck_coding_systems_region): Setup translation table for encode
24278 in a coding system attribute vector in advance.
24279 (Fdefine_coding_system_internal): Allow a symbol as translation
24280 table. For shift-jis type coding system, allow 4th charset.
24281
24282 2008-02-01 Kenichi Handa <handa@m17n.org>
24283
24284 * coding.c (decode_coding_sjis): Check the first byte rigidly.
24285
24286 * xdisp.c (get_next_display_element): Pass -1 as POS to
24287 FACE_FOR_CHAR if displaying a C-string.
24288
24289 2008-02-01 Kenichi Handa <handa@m17n.org>
24290
24291 * composite.c (get_composition_id): Handle xoff and yoff in a
24292 composition rule.
24293
24294 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
24295 (struct composition): New member lbearing and rbearing.
24296
24297 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
24298 (x_get_glyph_overhangs): Handle a composition glyph.
24299 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
24300
24301 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
24302 composition glyph.
24303
24304 2008-02-01 Kenichi Handa <handa@m17n.org>
24305
24306 * print.c: Include charset.h.
24307 (Vprint_charset_text_property): New variable.
24308 (Qdefault): Extern it.
24309 (PRINT_STRING_NON_CHARSET_FOUND)
24310 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
24311 (print_check_string_result): New variable.
24312 (print_check_string_charset_prop): New function.
24313 (print_prune_charset_plist): New variable.
24314 (print_prune_string_charset): New function.
24315 (print_object): Call print_prune_string_charset if
24316 Vprint_charset_text_property is not t.
24317 (print_interval): Print nothing if interval->plist is nil.
24318 (syms_of_print): Declare Vprint_charset_text_property as a lisp
24319 variable. Init and staticpro print_prune_charset_plist.
24320
24321 2008-02-01 Kenichi Handa <handa@m17n.org>
24322
24323 * fontset.c (new_fontset_from_font_name): Use the specified font
24324 for all characters in the new fontset.
24325
24326 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24327 OBJECT args.
24328
24329 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
24330 OBJECT args for composition too.
24331
24332 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
24333 OBJECT args.
24334
24335 2008-02-01 Kenichi Handa <handa@m17n.org>
24336
24337 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
24338
24339 * fontset.c (reorder_font_vector): Adjust for the change of
24340 FONT_DEF format.
24341 (fontset_face): New arg id. Change caller.
24342 (face_for_char): New args pos and object.
24343 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
24344 (fs_query_fontset): Check NAME by Fassoc too.
24345 (Fset_fontset_font): Allow non-XLFD font name.
24346 (Ffontset_info): Adjust for the change of FONT_DEF format.
24347
24348 * fontset.h (face_for_char): Adjust prototype.
24349
24350 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
24351 (append_space, extend_face_to_end_of_line)
24352 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
24353 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
24354
24355 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
24356 POS and OBJECT args.
24357
24358 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
24359 POS and OBJECT args.
24360
24361 2008-02-01 Jason Rumney <jasonr@gnu.org>
24362
24363 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
24364 of GlobalAlloc'ed memory.
24365
24366 2008-02-01 Kenichi Handa <handa@m17n.org>
24367
24368 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
24369
24370 * charset.h (charset_table_used): Delete extern.
24371
24372 * charset.c (charset_table_used): Make it static.
24373 (map_charset_chars): Fix args to c_function with.
24374
24375 * chartab.c (map_sub_char_table_for_charset): Fix args to
24376 c_function with.
24377
24378 * coding.h (enum coding_result_code):
24379 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
24380
24381 * coding.c (Qinsufficient_source, Qinconsistent_eol)
24382 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
24383 (Vlast_code_conversion_error): New variables.
24384 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
24385 (ONE_MORE_BYTE): Record error if any instead of signaling an
24386 error. If non-ASCII multibyte char is found, return the negative
24387 value of the code. All callers changed to check it.
24388 (ONE_MORE_BYTE_NO_CHECK): Likewise.
24389 (record_conversion_result): New function. Change all codes setting
24390 coding->result to call this function.
24391 (detect_coding_utf_8, decode_coding_utf_8)
24392 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
24393 Don't use the local variable incomplete.
24394 (emacs_mule_char): Change the second arg to `const'.
24395 (decode_coding): Fix of flushing out unprocessed data.
24396 (make_conversion_work_buffer): Fix making of a work buffer.
24397 (decode_coding_object): Return coding->dst_object.
24398
24399 * fontset.c (set_fontset_font): Fix args.
24400
24401 * lisp.h (CHARACTERBITS): Define as 22.
24402
24403 * process.c (send_process): Be sure to set coding->src_multibyte.
24404
24405 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
24406
24407 2008-02-01 Kenichi Handa <handa@m17n.org>
24408
24409 * xdisp.c (handle_auto_composed_prop): Give limit to
24410 Fnext_single_char_property_change.
24411
24412 2008-02-01 Kenichi Handa <handa@m17n.org>
24413
24414 * composite.c (syms_of_composite): Don't make the composition hash
24415 table weak.
24416
24417 * fontset.c (Fset_fontset_font): Fix docstring.
24418
24419 * lisp.h (detect_coding_system): Adjust prototype.
24420
24421 * fileio.c (kill_workbuf_unwind): Delete this function.
24422 (Finsert_file_contents): Adjust the call of detect_coding_system.
24423 Get conversion_buffer by code_conversion_save. Use the macro
24424 CODING_MAY_REQUIRE_DECODING. After decoding, update
24425 coding_system.
24426
24427 * coding.h (make_conversion_work_buffer): Delete extern.
24428 (code_conversion_save): Extern it.
24429
24430 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
24431 (CODING_GET_INFO): Delete argument eol_type. Change callers.
24432 (decode_coding_utf_8): Don't do eol converion.
24433 (detect_coding_utf_16): Check coding->src_chars, not
24434 coding->src_bytes. Add heuristics for those that have no signature.
24435 (decode_coding_emacs_mule, decode_coding_iso_2022)
24436 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24437 Don't do eol converion.
24438 (adjust_coding_eol_type): Return a new coding system.
24439 (detect_coding): Don't detect eol. Fix for utf-16 detection.
24440 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
24441 each change.
24442 (decode_coding): Pay attention to undo_list. Do eol conversion for
24443 all types of coding-systems (if necessary).
24444 (Vcode_conversion_work_buf_list): Delete it.
24445 (Vcode_conversion_reused_workbuf): Rename from
24446 Vcode_conversion_reused_work_buf.
24447 (Vcode_conversion_workbuf_name): New variable.
24448 (reused_workbuf_in_use): New variable.
24449 (make_conversion_work_buffer): Delete the arg DEPTH.
24450 (code_conversion_restore): Change argument to cons.
24451 (code_conversion_save): Delete the argument BUFFER. Change callers.
24452 (detect_coding_system): New argument src_chars. Change callers.
24453 Fix for utf-16 detection.
24454 (init_coding_once): Don't use ISO_carriage_return.
24455 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
24456 reused_workbuf_in_use.
24457
24458 2008-02-01 Kenichi Handa <handa@m17n.org>
24459
24460 * keymap.c (store_in_keymap): Pay attention to the case that idx
24461 is a cons specifying a character range.
24462
24463 2008-02-01 Kenichi Handa <handa@m17n.org>
24464
24465 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
24466 HANDLED_RECOMPUTE_PROPS.
24467
24468 * coding.c (Fdefine_coding_system_internal): Fix checking of
24469 ascii compatibility.
24470
24471 2008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * charset.c (find_charsets_in_text): Delete unused locale variable.
24474 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
24475
24476 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
24477 Resync charset_list to Vemacs_mule_charset_list.
24478
24479 * keymap.c (store_in_keymap): Pay attention to the case that idx
24480 is a cons specifying a character range.
24481
24482 2008-02-01 Kenichi Handa <handa@m17n.org>
24483
24484 * composite.c (update_compositions): Bind inhibit-read-only, etc
24485 to t before calling remove-list-of-text-properties.
24486
24487 * print.c (print_object): Always print ASCII chars as is.
24488
24489 2008-02-01 Kenichi Handa <handa@m17n.org>
24490
24491 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
24492
24493 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
24494 is a char table.
24495
24496 2008-02-01 Kenichi Handa <handa@m17n.org>
24497
24498 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
24499
24500 2008-02-01 Kenichi Handa <handa@m17n.org>
24501
24502 * xfaces.c (set_lface_from_font_name): Fix for the case that
24503 FONTNAME is not fontset name.
24504
24505 2008-02-01 Kenichi Handa <handa@m17n.org>
24506
24507 * fns.c (base64_encode_1): Fix previous change.
24508
24509 2008-02-01 Kenichi Handa <handa@m17n.org>
24510
24511 * fontset.c (set_fontset_font): New function.
24512 (Fset_fontset_font): If a font is specified for a charset, use
24513 map_charset_chars to store the font spec in a fontset.
24514
24515 2008-02-01 Kenichi Handa <handa@m17n.org>
24516
24517 * fontset.c (fontset_face): Create a fallback fontset on demand.
24518 (make_fontset): Don't create a fallback fontset here.
24519 (free_face_fontset): Free a fallback fontset (if any) too.
24520 (n_auto_fontsets): Delete this variable.
24521 (auto_fontset_alist): New variable.
24522 (new_fontset_from_font_name): Check auto_fontset_alist.
24523 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
24524 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
24525 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
24526 Defsubr Sfontset_list_all.
24527
24528 2008-02-01 Kenichi Handa <handa@m17n.org>
24529
24530 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
24531
24532 2008-02-01 Kenichi Handa <handa@m17n.org>
24533
24534 * fontset.c (Fnew_fontset): Check NAME more rigidly.
24535
24536 2008-02-01 Kenichi Handa <handa@m17n.org>
24537
24538 * editfns.c (Fgoto_char): Fix docstring.
24539
24540 2008-02-01 Kenichi Handa <handa@m17n.org>
24541
24542 * insdel.c (insert_from_gap): Adjust intervals correctly.
24543
24544 2008-02-01 Jason Rumney <jasonr@gnu.org>
24545
24546 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
24547 (pfnGetFontUnicodeRanges): New dynamically loaded function.
24548 (w32_initialize): Try to load it.
24549 (x_get_font_repertory): Use it if available.
24550 (w32_encode_char): Add shortcut for unicode output.
24551
24552 * w32fns.c (w32_load_system_font): Default charset to -1.
24553 (x_to_w32_charset): Match all fonts for unicode.
24554 (w32_to_x_charset): New parameter matching. Don't return partial
24555 or wildcard charsets.
24556 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
24557 (w32_codepage_for_font): Return CP_UNICODE for unicode.
24558 (w32_to_x_font): Match charset to real charset.
24559 (enum_font_cb2): Always list unicode versions.
24560
24561 * makefile.w32-in (temacs): Increase EMHEAP.
24562
24563 2008-02-01 Jason Rumney <jasonr@gnu.org>
24564
24565 * w32term.c (w32_encode_char): New charset parameter.
24566 font_info.encoding becomes encoding_type.
24567 (x_get_font_repertory): New function. Warning: stub only!
24568 (x_new_font): Return quickly if font already set.
24569 (x_new_fontset): fontsetname parameter is Lisp_Object.
24570 Use new fs_query_fontset. Try new_fontset_from_font_name.
24571 Use fontset_name for return value.
24572
24573 * w32term.h: Declare x_get_font_repertory.
24574
24575 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
24576 place of find_charset_in_text. Use encode_coding_object in place
24577 of encode_coding.
24578 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
24579 decode_coding.
24580
24581 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
24582 of x_new_fontset.
24583 (w32_load_system_font): Initialize charset as unicode.
24584 font_info.encoding becomes encoding_type.
24585 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
24586 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
24587 (syms_of_w32fns): Set get_font_repertory_func.
24588
24589 * w32console.c: Include character.h. Use terminal_encode_buffer
24590 from term.c.
24591 (write_glyphs): Use new version of encode_terminal_code.
24592 Use encode_coding_object in place of encode_coding.
24593
24594 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
24595 encoding becomes encoding_type.
24596
24597 * term.c (terminal_encode_buffer): Make externally visible.
24598
24599 * makefile.w32-in: Add character.h dependancies.
24600 (character.o, chartab.o): New targets.
24601
24602 2008-02-01 Kenichi Handa <handa@m17n.org>
24603
24604 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
24605 CODING_ID_EOL_TYPE.
24606
24607 2008-02-01 Andreas Schwab <schwab@suse.de>
24608
24609 * coding.c (produce_chars): Revert last change.
24610
24611 2008-02-01 Kenichi Handa <handa@m17n.org>
24612
24613 * charset.h (charset_unicode): Extern it.
24614
24615 * charset.c (string_xstring_p): Check by (C >= 0x100).
24616 (find_charsets_in_text): Change format of the arc CHARSETS.
24617 New arg MULTIBYTE.
24618 (Ffind_charset_region, Ffind_charset_string): Adjust for the
24619 change of find_charsets_in_text.
24620 (Fsplit_char): Fix doc. Never return unknown.
24621
24622 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
24623
24624 * coding.c (Fdefine_coding_system_alias):
24625 Update Vcoding_system_list.
24626
24627 * fontset.c (load_font_get_repertory): Pay attention to the case
24628 that ENCODING of a font is specified by a char-table.
24629
24630 * xterm.c (x_get_font_repertory): Handle the case that the
24631 encoding of font is other than Unicode.
24632
24633 2008-02-01 Kenichi Handa <handa@m17n.org>
24634
24635 * term.c (encode_terminal_code): Don't handle glyph-table.
24636 Check if a character is encodable by the terminal coding system.
24637 If not, produces proper number of `?'s. Update
24638 terminal_encode_buffer and terminal_encode_buf_size if necessary.
24639 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
24640
24641 2008-02-01 Kenichi Handa <handa@m17n.org>
24642
24643 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
24644 New variables.
24645 (encode_terminal_code): Change argument. Encode multiple
24646 characters at once. Store the result of encoding in
24647 terminal_encode_buffer.
24648 (write_glyphs, insert_glyphs): Adjust for the change of
24649 encode_terminal_code.
24650 (term_init): Initialize terminal_encode_buffer and
24651 terminal_encode_buf_size.
24652
24653 * coding.c (consume_chars): If coding->src_object is nil, don't
24654 check annotation.
24655
24656 2008-02-01 Kenichi Handa <handa@m17n.org>
24657
24658 * character.c (char_string): Use ASCII_CHAR_P instead of
24659 SINGLE_BYTE_CHAR_P.
24660
24661 2008-02-01 Kenichi Handa <handa@m17n.org>
24662
24663 * xdisp.c (handle_auto_composed_prop): Check if the last
24664 characters of auto-composed region is newly composed with the
24665 following characters.
24666 (handle_composition_prop): Fix checking of point being inside
24667 composition.
24668
24669 2008-02-01 Kenichi Handa <handa@m17n.org>
24670
24671 * fns.c (concat): Don't change multibyteness of the result by
24672 concatenating an 8-bit character.
24673
24674 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
24675 multibyteness of the result when newelt is an 8-bit character.
24676
24677 2008-02-01 Dave Love <fx@gnu.org>
24678
24679 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
24680 EMACS_INT.
24681
24682 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
24683
24684 * xfaces.c (face_numeric_value): Declare dim size_t.
24685 (Finternal_lisp_face_equal_p): Remove unused f.
24686
24687 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
24688 (MATRIX_ROW): Remove unused vars.
24689 (draw_glyphs, x_insert_glyphs, fast_find_position)
24690 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
24691 byte/char counts.
24692
24693 * regex.c (regex_compile): Remove unused var.
24694
24695 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24696
24697 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
24698 (Faccessible_keymaps, where_is_internal): Remove unused vars.
24699
24700 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
24701
24702 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
24703
24704 * fileio.c (Fwrite_region): Remove unused var.
24705
24706 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
24707 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
24708
24709 * composite.c (Fremove_list_of_text_properties): Declare.
24710
24711 * coding.c (inhibit_pre_post_conversion): Remove (unused).
24712 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
24713 (coding_inherit_eol_type): Remove unused attrs.
24714 (detect_coding): Cast arg of detect_eol.
24715
24716 * charset.c (syms_of_charset): Remove unused var p.
24717 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
24718 byte/char counts.
24719
24720 * casetab.c (set_case_table): Remove unused var.
24721
24722 * window.c (Fdisplay_buffer, Fframe_selected_window):
24723 Remove unused vars.
24724
24725 2008-02-01 Dave Love <fx@gnu.org>
24726
24727 * xterm.c (x_bitmap_mask): Declare.
24728
24729 2008-02-01 Dave Love <fx@gnu.org>
24730
24731 * xterm.c (x_term_init): Fix type error.
24732
24733 * lisp.h: Add Funibyte_char_to_multibyte.
24734
24735 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
24736 (Fset_coding_system_priority): Doc fix.
24737
24738 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
24739
24740 * indent.c (check_composition): Make start and end EMACS_INT.
24741
24742 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
24743
24744 * xdisp.c (handle_composition_prop, check_point_in_composition):
24745 Make buffer positions EMACS_INT.
24746
24747 * composite.c (find_composition, run_composition_function)
24748 (update_compositions, Ffind_composition_internal): Make buffer
24749 positions EMACS_INT.
24750
24751 * composite.h (find_composition, update_compositions):
24752 Make position args EMACS_INT.
24753
24754 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
24755
24756 * intervals.c (get_property_and_range):
24757 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
24758
24759 * unexalpha.c: Don't include varargs.h.
24760
24761 2008-02-01 Dave Love <fx@gnu.org>
24762
24763 * coding.h (ENCODE_UTF_8): New.
24764
24765 * Makefile.in (gtkutil.o): Depend on coding.h.
24766
24767 * coding.c (Fset_coding_system_priority): Doc fix.
24768
24769 2008-02-01 Kenichi Handa <handa@m17n.org>
24770
24771 * fileio.c (Finsert_file_contents): Call setup_coding_system in
24772 the case of auto saving.
24773
24774 2008-02-01 Andreas Schwab <schwab@suse.de>
24775
24776 * chartab.c (map_char_table, map_char_table_for_charset):
24777 Protect `range' from GC.
24778
24779 2008-02-01 Kenichi Handa <handa@m17n.org>
24780
24781 * coding.c (decode_coding_sjis): Check bytes more rigidly.
24782
24783 2008-02-01 Kenichi Handa <handa@m17n.org>
24784
24785 * fileio.c (choose_write_coding_system): Return a decided coding system.
24786 (Fwrite_region): Set Vlast_coding_system_used to the return value
24787 of choose_write_coding_system.
24788
24789 2008-02-01 Kenichi Handa <handa@m17n.org>
24790
24791 * charset.c (Fset_charset_priority): Pay attention to duplicated
24792 arguments.
24793
24794 * coding.c (QCcategory): New variable.
24795 (syms_of_coding): Defsym it. Set all elements of
24796 Vcoding_category_table and their symbol values.
24797 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
24798 coding-category-XXX, and coding-category-list.
24799 (Fdefine_coding_system_internal): Add category in the plist.
24800
24801 2008-02-01 Kenichi Handa <handa@m17n.org>
24802
24803 * callproc.c (Fcall_process): Handle carryover correctly.
24804
24805 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24806 (raw_text_coding_system): Check NILP (coding_system).
24807 (coding_inherit_eol_type): Check NILP (coding_system) and
24808 NILP (parent).
24809 (consume_chars): Fix for the case of raw-text.
24810
24811 * process.c (read_process_output): Handle carryover correctly.
24812
24813 2008-02-01 Dave Love <fx@gnu.org>
24814
24815 * regex.c (re_search_2): Fix last change.
24816
24817 2008-02-01 Kenichi Handa <handa@m17n.org>
24818
24819 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24820 target_multibyte. Even in a unibyte case, return a converted
24821 multibyte char.
24822 (GET_CHAR_AFTER): New macro.
24823 (PATFETCH): Translate via multibyte char.
24824 (HANDLE_UNIBYTE_RANGE): Delete this macro.
24825 (SETUP_MULTIBYTE_RANGE): New macro.
24826 (regex_compile): Setup compiled code so that its multibyteness
24827 matches that of a target. Fix the handling of "[X-YZ]" using
24828 SETUP_MULTIBYTE_RANGE.
24829 (analyse_first) <charset>: For filling fastmap for all multibyte
24830 characters, don't check by BASE_LEADING_CODE_P.
24831 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
24832 the same as RE_MULTIBYTE_P (bufp) now.
24833 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24834 (TARGET_CHAR_AND_LENGTH): Delete this macro.
24835 (TRANSLATE_VIA_MULTIBYTE): New macro.
24836 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24837 It is the same as RE_MULTIBYTE_P (bufp) now.
24838 <exactn>: Translate via multibyte.
24839 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24840 Don't translate it.
24841 <charset, charset_not>: Fetch a character by
24842 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
24843 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24844 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24845 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24846 by GET_CHAR_AFTER.
24847 (bcmp_translate): Likewise.
24848
24849 * search.c (compile_pattern): Check the member target_multibyte,
24850 not the member multibyte of buf.
24851
24852 * lread.c (read1): While reading a string, set force_singlebyte
24853 and force_multibyte correctly.
24854
24855 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24856 up of unibyte_to_multibyte_table.
24857
24858 2008-02-01 Kenichi Handa <handa@m17n.org>
24859
24860 * coding.c (setup_coding_system): If coding has
24861 post-read-conversion or pre-write-conversion, set
24862 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24863 respectively.
24864 (decode_coding_gap): Run post-read-conversion if any.
24865
24866 * fileio.c (Finsert_file_contents): Even if we read into a
24867 unibyte buffer, check if we must decode the result or not.
24868
24869 2008-02-01 Kenichi Handa <handa@m17n.org>
24870
24871 * coding.c (make_conversion_work_buffer): Change the work buffer
24872 name to the same one as that of Emacs 21.
24873
24874 2008-02-01 Kenichi Handa <handa@m17n.org>
24875
24876 * coding.h (make_conversion_work_buffer): Adjust prototype.
24877 (code_conversion_restore): Don't extern it.
24878
24879 * coding.c (detected_mask): Delete unused variable.
24880 (decode_coding_iso_2022): Pay attention to the byte sequence of
24881 CTEXT extended segment, and retain those bytes as is.
24882 (decode_coding_ccl): Delete unused variable `valids'.
24883 (setup_coding_system): Delete unused variable `category'.
24884 (consume_chars): Delete unused variable `category'. Make it work
24885 for non-multibyte case.
24886 (make_conversion_work_buffer): Change argument.
24887 (saved_coding): Delete unused variable.
24888 (code_conversion_restore): Don't check saved_coding->destination.
24889 (code_conversion_save): New function.
24890 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24891 instead of record_unwind_protect.
24892 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
24893 (detect_coding_system): Delete unused variable `mask'.
24894 (Fdefine_coding_system_internal): Delete unused variable id.
24895
24896 * fileio.c (kill_workbuf_unwind): New function.
24897 (Finsert_file_contents): On replacing, call
24898 make_conversion_work_buffer with correct args, and call
24899 record_unwind_protect with the first arg kill_workbuf_unwind.
24900
24901 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24902
24903 2008-02-01 Kenichi Handa <handa@m17n.org>
24904
24905 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24906 (fontset_add): Fix for the case that TO is less than TO1.
24907 (Ffontset_info): Don't use fallback fontset on checking the
24908 default fontset.
24909 (dump_fontset): New function for debugging.
24910
24911 * coding.c (Fdefine_coding_system_internal): Fix for the case that
24912 coding_type is Qcharset.
24913
24914 2008-02-01 Kenichi Handa <handa@m17n.org>
24915
24916 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24917 (map_char_table): Don't inherit the value from the parent on
24918 initializing VAL. Adjust for the above change.
24919
24920 2008-02-01 Kenichi Handa <handa@m17n.org>
24921
24922 * coding.c (Qsignature, Qendian): Delete these variables.
24923 (syms_of_coding): Don't initialize them.
24924 (CATEGORY_MASK_UTF_16_AUTO): New macro.
24925 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24926 detect_info->found.
24927 (decode_coding_utf_16): Don't detect BOM here.
24928 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24929 is NOT utf_16_without_bom.
24930 (setup_coding_system): For a coding system of type utf-16, check
24931 if the attribute :endian is Qbig or not (not nil or not), and set
24932 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24933 (detect_coding): If coding type is utf-16 and BOM detection is
24934 required, detect it.
24935 (Fdefine_coding_system_internal): For a coding system of type
24936 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24937
24938 2008-02-01 Kenichi Handa <handa@m17n.org>
24939
24940 * coding.c (coding_set_source): Fix for the case that the current
24941 buffer is different from coding->src_object.
24942 (decode_coding_object): Don't use the conversion work buffer if
24943 DST_OBJECT is a buffer.
24944
24945 2008-02-01 Dave Love <fx@gnu.org>
24946
24947 * lread.c (read_emacs_mule_char) [len==2]: Index
24948 emacs_mule_charset correctly.
24949
24950 2008-02-01 Dave Love <fx@gnu.org>
24951
24952 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24953 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24954 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
24955 treated specially.)
24956 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24957 (detected_mask): Remove Big5 bits.
24958
24959 2008-02-01 Kenichi Handa <handa@m17n.org>
24960
24961 The following changes are to make the font rescaling facility
24962 compatible with Emacs 21.
24963
24964 * xfaces.c (Vface_font_rescale_alist): Rename from
24965 Vface_resizing_fonts.
24966 (struct font_name): Rename member resizing_ratio to rescale_ratio.
24967 (font_rescale_ratio): Rename from font_resizing_ratio.
24968 (split_font_name): Set font->rescale_ratio.
24969 (better_font_p): Pay attention to font->rescale_ratio.
24970 (build_scalable_font_name): Likewise. Change RESX, and RESY
24971 fields.
24972 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24973
24974 2008-02-01 Kenichi Handa <handa@m17n.org>
24975
24976 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24977 (Qutf_16_le): Remove these variables.
24978 (syms_of_coding): Don't DEFSYM them.
24979 (decode_coding_utf_16): Fix handling of BOM.
24980 (encode_coding_utf_16): Fix handling of BOM.
24981
24982 2008-02-01 Kenichi Handa <handa@m17n.org>
24983
24984 * fileio.c (Finsert_file_contents): On replacing, before decoding
24985 the file into the work buffer, set point of the work buffer to the end.
24986
24987 2008-02-01 Dave Love <fx@gnu.org>
24988
24989 * coding.c (Fcheck_coding_systems_region): Fix type errors.
24990
24991 2008-02-01 Dave Love <fx@gnu.org>
24992
24993 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24994 and fix C types.
24995
24996 2008-02-01 Kenichi Handa <handa@m17n.org>
24997
24998 * xdisp.c (SKIP_GLYPHS): New macro.
24999 (set_cursor_from_row): Pay attention to string display properties.
25000
25001 * category.c (copy_category_entry): Fix for the case that RANGE
25002 is an integer.
25003
25004 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
25005
25006 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
25007
25008 2008-02-01 Kenichi Handa <handa@m17n.org>
25009
25010 * charset.c (Fcharset_id_internal): New function.
25011 (syms_of_charset): Defsubr it.
25012
25013 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
25014 with the last arg charset_list acquired from coding.
25015 (Fdefine_coding_system_internal): For ccl-based coding system, fix
25016 the attribute coding_attr_ccl_valids.
25017
25018 * coding.h (enum define_coding_ccl_arg_index): Set the first
25019 member coding_arg_ccl_decoder to coding_arg_max.
25020
25021 * ccl.h (ccl_driver): Adjust prototype.
25022
25023 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
25024 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
25025 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
25026 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
25027 last arg Qnil.
25028
25029 2008-02-01 Kenichi Handa <handa@m17n.org>
25030
25031 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
25032 call encode_char.
25033
25034 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
25035
25036 2008-02-01 Dave Love <fx@gnu.org>
25037
25038 * composite.c (syms_of_composite): Make composition_hash_table weak.
25039
25040 2008-02-01 Kenichi Handa <handa@m17n.org>
25041
25042 * dispextern.h (check_face_attributes, generate_ascii_font_name)
25043 (font_name_registry): Don't extern them.
25044 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
25045
25046 * fontset.h (Qfontset): Don't extern it.
25047 (new_fontset_from_font_name): Extern it.
25048
25049 * fontset.c: Give 8 extra slots to fontset objects.
25050 (Qfontset_info): New variable.
25051 (syms_of_fontset): Defsym it.
25052 (FONTSET_FALLBACK): New macro.
25053 (fontset_face): Try also the default fontset.
25054 (make_fontset): Realize a fallback fontset from the default fontset.
25055 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
25056 using split_font_name_into_vector and build_font_name_from_vector.
25057 (Fset_fontset_font): Access the elements of font_spec by enum
25058 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
25059 name by using split_font_name_into_vector.
25060 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
25061 generate a proper font name from the fontset name.
25062 Update Vfontset_alias_alist.
25063 (n_auto_fontsets): New variable.
25064 (new_fontset_from_font_name): New function.
25065 (Ffont_info): Store the information about fonts generated from the
25066 default fontset in the first extra slot of the returned char-table.
25067
25068 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
25069 (font_name_registry): Delete function.
25070 (split_font_name_into_vector): New function.
25071 (build_font_name_from_vector): New function.
25072 (font_list): The argument REGISTRY is now a list of registry names.
25073 (choose_face_font): If we are choosing an ASCII font, and ATTRS
25074 specifies an explicit font name, return the name as is. Make a
25075 list of registy names.
25076
25077 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
25078 of x_new_fontset.
25079 (Fx_create_frame): Don't call x_new_fontset here. Just use
25080 x_list_fonts to check the existence of fonts.
25081
25082 * xterm.h (x_new_fontset): Adjust prototype.
25083
25084 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
25085 string. Use new_fontset_from_font_name to create a fontset from a
25086 font name.
25087
25088 2008-02-01 Kenichi Handa <handa@m17n.org>
25089
25090 * syntax.c (Vfind_word_boundary_function_table): New name for
25091 Vnext_word_boundary_function_table.
25092 (find-word-boundary-function-table): New name for
25093 next-word-boundary-function-table.
25094
25095 2008-02-01 Dave Love <fx@gnu.org>
25096
25097 * Makefile.in: Fix some dependencies.
25098
25099 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
25100 set it to nil before returning.
25101
25102 * composite.c (update_compositions): Fix type error.
25103
25104 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
25105
25106 2008-02-01 Kenichi Handa <handa@m17n.org>
25107
25108 * xterm.c (x_new_font): Optimize for the case that the font is
25109 already set for the frame.
25110
25111 2008-02-01 Kenichi Handa <handa@m17n.org>
25112
25113 * chartab.c (char_table_ascii): Check if the char table contents
25114 is sub-char-table or not.
25115 (char_table_set, char_table_set_range): Fix argument to
25116 char_table_ascii.
25117
25118 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
25119 (detect_coding_utf_8, detect_coding_utf_16)
25120 (detect_coding_emacs_mule, detect_coding_iso_2022)
25121 (detect_coding_sjis, detect_coding_big5)
25122 (detect_coding_ccl, detect_coding_charset): Change argument MASK
25123 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
25124 sequence is valid in this coding system. Change callers.
25125 (MAX_ANNOTATION_LENGTH): New macro.
25126 (ADD_ANNOTATION_DATA): New macro.
25127 (ADD_COMPOSITION_DATA): Change argument. Change callers.
25128 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
25129 (ADD_CHARSET_DATA): New macro.
25130 (emacs_mule_char): New argument ID. Change callers.
25131 (decode_coding_emacs_mule, decode_coding_iso_2022)
25132 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
25133 Produce charset annotation data in coding->charbuf.
25134 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
25135 to charset annotation data in coding->charbuf.
25136 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
25137 coding->common_flags if the coding system is iso-2022 based and
25138 uses designation.
25139 (produce_composition): Adjust for the new annotation data format.
25140 (produce_charset): New function.
25141 (produce_annotation): Handle charset annotation.
25142 (handle_composition_annotation, handle_charset_annotation):
25143 New functions.
25144 (consume_chars): Handle charset annotation. Utilize the above two
25145 functions.
25146 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
25147 buffer, get the deleted text as a string and set
25148 coding->src_object to that string.
25149 (detect_coding, detect_coding_system): Use the new struct
25150 coding_detection_info.
25151
25152 * coding.h (struct coding_detection_info): New structure.
25153 (struct coding_system): Adjust prototype of the member `detector'.
25154 (CODING_ANNOTATE_CHARSET_MASK): New macro.
25155
25156 2008-02-01 Kenichi Handa <handa@m17n.org>
25157
25158 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
25159
25160 2008-02-01 Dave Love <fx@gnu.org>
25161
25162 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
25163 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
25164 to new local and nullify apropos_accumulate before returning.
25165 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
25166
25167 2008-02-01 Kenichi Handa <handa@m17n.org>
25168
25169 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
25170 correctly.
25171
25172 2008-02-01 Dave Love <fx@gnu.org>
25173
25174 * fns.c (Flanginfo): Call synchronize_system_time_locale.
25175
25176 2008-02-01 Kenichi Handa <handa@m17n.org>
25177
25178 The following changes are to make character composition happen
25179 automatically on displaying.
25180
25181 * Makefile.in (lisp, shortlisp): Add composite.elc.
25182
25183 * composite.h (Qauto_composed, Vauto_composition_function)
25184 (Qauto_composition_function): Extern them.
25185
25186 * composite.c (Vcomposition_function_table)
25187 (Qcomposition_function_table): Delete variables.
25188 (Qauto_composed, Vauto_composition_function)
25189 (Qauto_composition_function): New variables.
25190 (run_composition_function): Don't call
25191 compose-chars-after-function.
25192 (update_compositions): Clear `auto-composed' text property.
25193 (compose_chars_in_text): Delete this function.
25194 (syms_of_composite): Staticpro Qauto_composed and
25195 Qauto_composition_function. Declare Vauto_composition_function as
25196 a Lisp variable.
25197
25198 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
25199
25200 * xdisp.c (it_props): Add an entry for Qauto_composed.
25201 (handle_auto_composed_prop): New function.
25202
25203 * xselect.c (selection_data_to_lisp_data): Don't call
25204 compose_chars_in_text.
25205
25206 2008-02-01 Dave Love <fx@gnu.org>
25207
25208 * keyboard.c (read_char): Modify checking around use of
25209 Vkeyboard_translate_table.
25210
25211 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
25212 and fix C types.
25213
25214 2008-02-01 Kenichi Handa <handa@m17n.org>
25215
25216 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
25217 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25218 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
25219 the case that the last byte is '\r' correctly.
25220 (decode_coding): Flush out the unprocessed data correctly.
25221 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
25222
25223 2008-02-01 Dave Love <fx@gnu.org>
25224
25225 * xterm.c (XTread_socket): Fix changes for defined keysyms.
25226 Add XK_ISO... case.
25227 (xaw_scroll_callback): Revert last change.
25228
25229 2008-02-01 Kenichi Handa <handa@m17n.org>
25230
25231 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
25232
25233 2008-02-01 Kenichi Handa <handa@m17n.org>
25234
25235 * xfaces.c (Vface_resizing_fonts): New variable.
25236 (struct font_name): New member `resizing_ratio'.
25237 (font_resizing_ratio): New function.
25238 (split_font_name): Set font->resizing_ratio.
25239 (better_font_p): Pay attention to font->resizing_ratio.
25240 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
25241 RESX, and RESY fields.
25242 (try_alternative_families): Try scalable fonts if
25243 Vscalable_fonts_allowed is not Qt.
25244 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
25245
25246 2008-02-01 Dave Love <fx@gnu.org>
25247
25248 * xterm.c (xaw_scroll_callback): Cast correctly.
25249
25250 2008-02-01 Dave Love <fx@gnu.org>
25251
25252 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
25253 (lispy_kana_keys): Comment out.
25254 (make_lispy_event) [XK_kana_A]: Comment out.
25255
25256 * xterm.c (xaw_scroll_callback): Cast call_data.
25257 (XTread_socket): Deal with ASCII keysyms.
25258 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
25259
25260 2008-02-01 Dave Love <fx@gnu.org>
25261
25262 * xterm.c (Vx_keysym_table): New.
25263 (syms_of_xterm): Initialize it.
25264 (XTread_socket): Use it.
25265 From head: Eliminate incorrect optimization that tried to avoid
25266 decoding the output of X*LookupString.
25267 (x_get_font_repertory): Delete charset declaration.
25268
25269 2008-02-01 Kenichi Handa <handa@m17n.org>
25270
25271 * coding.c (detect_coding_charset): If only ASCII bytes are found,
25272 return 0.
25273 (Fdefine_coding_system_internal):
25274 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
25275
25276 2008-02-01 Dave Love <fx@gnu.org>
25277
25278 * coding.c (Fcheck_coding_system): Doc fix.
25279
25280 * editfns.c (Finsert_byte): Return a proper value.
25281
25282 2008-02-01 Kenichi Handa <handa@m17n.org>
25283
25284 * coding.c (decode_coding): Fix args to translate_chars.
25285 Pay attention to Vstandard_translation_table_for_decode.
25286 (encode_coding): Fix args to translate_chars. Pay attention to
25287 Vstandard_translation_table_for_encode.
25288
25289 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
25290 SINGLE_BYTE_CHAR_P.
25291
25292 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
25293 not by SINGLE_BYTE_CHAR_P.
25294
25295 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
25296 SINGLE_BYTE_CHAR_P.
25297
25298 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
25299 SINGLE_BYTE_CHAR_P.
25300
25301 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
25302 by SINGLE_BYTE_CHAR_P.
25303
25304 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
25305 SINGLE_BYTE_CHAR_P.
25306
25307 2008-02-01 Dave Love <fx@gnu.org>
25308
25309 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
25310
25311 2008-02-01 Dave Love <fx@gnu.org>
25312
25313 * fns.c (Flanginfo): Fix typo.
25314
25315 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
25316
25317 2008-02-01 Kenichi Handa <handa@m17n.org>
25318
25319 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
25320 (detect_coding_emacs_mule, detect_coding_iso_2022)
25321 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
25322 incomplete byte sequence. Don't update *mask when correctly detected.
25323 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
25324 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
25325 (detect_coding, detect_coding_system): Adjust for the changes above.
25326
25327 2008-02-01 Kenichi Handa <handa@m17n.org>
25328
25329 * character.c (char_string): Rename from
25330 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
25331 (string_char): Rename from string_char.
25332
25333 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
25334 if C is greater than MAX_3_BYTE_CHAR.
25335 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
25336 Call string_char instead of string_char_with_unification.
25337
25338 2008-02-01 Dave Love <fx@gnu.org>
25339
25340 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
25341
25342 2008-02-01 Kenichi Handa <handa@m17n.org>
25343
25344 * keymap.c (push_key_description): Pay attention to force_multibyte.
25345
25346 * regex.c (re_search_2): Fix for the case of unibyte buffer.
25347
25348 2008-02-01 Dave Love <fx@gnu.org>
25349
25350 * charset.c (define_charset_internal): Rename `supprementary'.
25351
25352 * Makefile.in (lisp, shortlisp): Remove latin-N.
25353
25354 2008-02-01 Dave Love <fx@gnu.org>
25355
25356 * xfns.c (x_window, x_window): Use use_xim.
25357
25358 * xterm.c (use_xim): Initialize.
25359 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
25360 (x_term_init): Maybe set use_xim.
25361
25362 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
25363
25364 2008-02-01 Kenichi Handa <handa@m17n.org>
25365
25366 * search.c (search_buffer): Fix case-fold-search of multibyte
25367 characters.
25368 (boyer_moore): Rename the last argument to char_high_bits.
25369
25370 2008-02-01 Kenichi Handa <handa@m17n.org>
25371
25372 * xdisp.c (display_string): Fix for the case of zero width glyph.
25373
25374 * xfns.c (x_set_font): Change the error message of the case that
25375 x_new_fontset returns Qt.
25376
25377 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
25378 (Finternal_set_lisp_face_attribute): Use signal_error for the
25379 error of invalid fontset.
25380
25381 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
25382 fontset, return Qt.
25383
25384 2008-02-01 Dave Love <fx@gnu.org>
25385
25386 * unexelf.c (unexec): Make .got handling not SGI-specific.
25387
25388 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
25389
25390 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
25391
25392 * keyboard.c (read_key_sequence): Fix type error.
25393
25394 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
25395 Fix type error.
25396
25397 * fontset.c (fontset_add): Return Lisp_Object.
25398
25399 2008-02-01 Dave Love <fx@gnu.org>
25400
25401 * charset.h (charset_ordered_list_tick): Declare extern.
25402
25403 2008-02-01 Kenichi Handa <handa@m17n.org>
25404
25405 The following changes (and some of 2008-02-01 changes of mine) are
25406 for handling syntax, category, and case conversion for unibyte
25407 characters by converting them to multibyte on the fly. With these
25408 changes, we don't have to setup syntax and case tables for unibyte
25409 characters in each language environment.
25410
25411 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
25412 multibyte if necessary.
25413
25414 * bytecode.c (Fbyte_code): Likewise.
25415
25416 * character.h (LEADING_CODE_LATIN_1_MIN)
25417 (LEADING_CODE_LATIN_1_MAX): New macros.
25418 (unibyte_to_multibyte_table): Extern it.
25419 (unibyte_char_to_multibyte): New macro.
25420 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
25421 (CHAR_LEADING_CODE): New macro.
25422 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
25423
25424 * character.c (unibyte_to_multibyte_table): New variable.
25425 (unibyte_char_to_multibyte): Move to character.h and define as macro.
25426 (multibyte_char_to_unibyte): If C is an eight-bit character,
25427 convert it to the corresponding byte value.
25428
25429 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
25430 not 1, signals an error. Update the elements of
25431 unibyte_to_multibyte_table.
25432 (init_charset_once): Initialize unibyte_to_multibyte_table.
25433 (syms_of_charset): Define the charset `iso-8859-1'.
25434
25435 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
25436 as is without converting it to unibyte. In a unibyte buffer,
25437 convert C to multibyte before checking the syntax.
25438
25439 * lisp.h (unibyte_char_to_multibyte): Delete extern.
25440
25441 * minibuf.c (Fminibuffer_complete_word): Use the macro
25442 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
25443
25444 * regex.h (struct re_pattern_buffer): New member target_multibyte.
25445
25446 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
25447 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
25448 If that is zero, convert an eight-bit char to multibyte.
25449 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
25450 non-emacs case.
25451 (PATFETCH): Convert an eight-bit char to multibyte.
25452 (HANDLE_UNIBYTE_RANGE): New macro.
25453 (regex_compile): Setup the compiled pattern for multibyte chars
25454 even if the given regex string is unibyte. Use PATFETCH_RAW
25455 instead of PATFETCH in many places. To handle `charset'
25456 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
25457 only for ASCII chars.
25458 (analyse_first) <exactn>: Simplify because the compiled pattern
25459 is multibyte.
25460 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
25461 <charset>: Use CHAR_LEADING_CODE to get leading codes.
25462 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
25463 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
25464 multibyte always 1.
25465 (re_search_2): In emacs, set the locale variable multibyte to 1,
25466 otherwise to 0. New local variable target_multibyte. Check it
25467 to decide the multibyteness of STR1 and STR2.
25468 If target_multibyte is zero, convert unibyte chars to multibyte
25469 before translating and checking fastmap.
25470 (TARGET_CHAR_AND_LENGTH): New macro.
25471 (re_match_2_internal): In emacs, set the locale variable multibyte
25472 to 1, otherwise to 0. New local variable target_multibyte.
25473 Check it to decide the multibyteness of STR1 and STR2.
25474 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
25475 <charset, charset_not>: If multibyte is nonzero, check fastmap
25476 only for ASCII chars. Call bcmp_translate with
25477 target_multibyte, not with multibyte.
25478 <begline>: Declare the local variable C as `unsigned'.
25479 (bcmp_translate): Change the last arg name to target_multibyte.
25480
25481 * search.c (compile_pattern_1): Don't adjust the multibyteness of
25482 the regexp pattern and the matching target. Set cp->buf.multibyte
25483 to the multibyteness of the regexp pattern. Set
25484 cp->but.target_multibyte to the multibyteness of the matching target.
25485 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
25486 FETCH_STRING_CHAR_ADVANCE.
25487 (Freplace_match): Convert unibyte chars to multibyte.
25488
25489 * syntax.c (char_quoted, back_comment, scan_words)
25490 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
25491 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
25492 unibyte chars to multibyte.
25493 (skip_chars): Delete the arg syntaxp, and move the code for
25494 handling syntaxes to skip_syntaxes. Change callers.
25495 Fix the case that the multibyteness of STRING and the current
25496 buffer doesn't match.
25497 (skip_syntaxes): New function.
25498 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
25499 SINGLE_BYTE_CHAR_P.
25500
25501 2008-02-01 Kenichi Handa <handa@m17n.org>
25502
25503 * xfaces.c (QCfontset): New variable.
25504 (LFACE_FONTSET): New macro.
25505 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
25506 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
25507 (Finternal_set_lisp_face_attribute)
25508 (Finternal_get_lisp_face_attribute): Handle QCfontset.
25509 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
25510 check also LFACE_FONTSET_INDEX.
25511 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
25512 attrs[LFACE_FONT_INDEX].
25513 (syms_of_xfaces): Intern and staticpro QCfontset.
25514
25515 * dispextern.h (enum lface_attribute_index): New member
25516 LFACE_FONTSET_INDEX.
25517
25518 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
25519
25520 2008-02-01 Kenichi Handa <handa@m17n.org>
25521
25522 * coding.c (coding_set_destination): Fix coding->destination for
25523 the case converting a region.
25524 (encode_coding_utf_8): Encode eight-bit chars as single byte.
25525 (encode_coding_object): Fix coding->dst_pos and
25526 coding->dst_pos_byte for the case converting a region.
25527
25528 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
25529
25530 * character.h (BYTE8_STRING): New macro.
25531
25532 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
25533
25534 2008-02-01 Kenichi Handa <handa@m17n.org>
25535
25536 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
25537 characters by octal form.
25538
25539 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
25540
25541 * buffer.h (_fetch_multibyte_char_len): Delete extern.
25542 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
25543 _fetch_multibyte_char_len.
25544 (FETCH_CHAR_AS_MULTIBYTE): New macro.
25545
25546 * casetab.c (set_canon, set_identity, shuffle): Simplify.
25547
25548 * casefiddle.c (casify_object): Simplify. Handle the case that
25549 the case conversion change the byte length.
25550 (casify_region): Likewise.
25551
25552 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
25553
25554 * character.c (_fetch_multibyte_char_len): Delete this variable.
25555 (syms_of_character): Setup Vprintable_chars.
25556
25557 * editfns.c (Fchar_equal): Fix for the unibyte case.
25558 (Finsert_byte): New function.
25559 (syms_of_editfns): Defsubr it.
25560
25561 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
25562 of direct code 0x3ffff.
25563
25564 * search.c (Freplace_match): Fix for the unibyte case.
25565
25566 2008-02-01 Kenichi Handa <handa@m17n.org>
25567
25568 * lread.c (safe_to_load_p): Fix the logic.
25569
25570 * syntax.c (scan_words): Don't treat characters belonging to
25571 different scripts as constituting a word.
25572
25573 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25574
25575 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
25576
25577 * emacs.c (main): In the case of --unibyte, instead of aborting on
25578 finding non-empty buffer, make it unibyte.
25579
25580 2008-02-01 Kenichi Handa <handa@m17n.org>
25581
25582 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
25583 to create a fontset.
25584
25585 2008-02-01 Dave Love <fx@gnu.org>
25586
25587 * character.c (Funibyte_char_to_multibyte): Doc fix.
25588
25589 * xfns.c [HAVE_STDLIB_H]: Fix last change.
25590
25591 2008-02-01 Kenichi Handa <handa@m17n.org>
25592
25593 * fontset.c (fontset_add): Make the type `int'.
25594 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
25595
25596 * character.c (unibyte_char_to_multibyte)
25597 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
25598 charset_unibyte, not charset_primary.
25599
25600 * charset.h (charset_unibyte): Extern it instead of charset_primary.
25601
25602 * charset.c (charset_unibyte): Rename from charset_primary.
25603 (Funibyte_charset): Rename from Fprimary_charset.
25604 (Fset_unibyte_charset): Rename from Fset_primary_charset.
25605 (syms_of_charset): Adjust for the above changes.
25606
25607 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25608 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25609 it->multibyte_p is zero.
25610
25611 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
25612 Delete extern.
25613
25614 2008-02-01 Kenichi Handa <handa@m17n.org>
25615
25616 * coding.c (Fdefine_coding_system_internal): Fix category setting
25617 for a coding system of type iso-2022.
25618
25619 2008-02-01 Kenichi Handa <handa@m17n.org>
25620
25621 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
25622
25623 2008-02-01 Kenichi Handa <handa@m17n.org>
25624
25625 * syntax.c (Vnext_word_boundary_function_table): New variable.
25626 (next-word-boundary-function-table): Declare it as a Lisp variable
25627 in syms_of_syntax.
25628 (scan_words): Call functions in Vnext_word_boundary_function_table
25629 if any.
25630
25631 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
25632
25633 * fontset.c (fs_load_font): If fontp->charset is not negative,
25634 return fontp without setting its members.
25635
25636 2008-02-01 Dave Love <fx@gnu.org>
25637
25638 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
25639
25640 * m/sparc.h (HAVE_ALLOCA): Delete.
25641
25642 * s/irix6-5.h: Don't include strings.h.
25643 (bcopy, bzero, bcmp): Don't undef.
25644
25645 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
25646
25647 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
25648 (TIOCSIGSEND): Don't test IRIX6.
25649 (bcopy, bzero, bcmp): Define conditionally.
25650
25651 2008-02-01 Kenichi Handa <handa@m17n.org>
25652
25653 * buffer.c (Qas, Qmake, Qto): New variables.
25654 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
25655 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
25656
25657 * callproc.c (Fcall_process): Don't call insert_1_both directly if
25658 we are inserting a process output into a multibyte buffer.
25659
25660 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
25661 multibyte_char_to_unibyte.
25662
25663 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
25664 by the primary charset, make it eight-bit char.
25665 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
25666
25667 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
25668 (charset_8_bit__control, charset_8_bit_graphic)
25669 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
25670 (define_charset_internal): New function.
25671 (syms_of_charset): Call define_charset_internal for pre-defined
25672 charsets.
25673
25674 * charset.h (charset_8_bit): Extern it.
25675
25676 * coding.c (make_conversion_work_buffer): Adjust for the change
25677 of Fset_buffer_multibyte.
25678 (encode_coding_raw_text): Increment p0 in the loop.
25679
25680 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
25681
25682 * xdisp.c (setup_echo_area_for_printing, set_message_1):
25683 Adjust for the change of Fset_buffer_multibyte.
25684
25685 * fns.c (Fstring_to_multibyte): New function.
25686 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
25687
25688 2008-02-01 Dave Love <fx@gnu.org>
25689
25690 * xfns.c (x_put_x_image): Declare args.
25691
25692 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
25693 (try_font_list): Declare an arg.
25694
25695 * xdisp.c (message2_nolog, set_message): Declare an arg.
25696
25697 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
25698
25699 * syntax.c (scan_sexps_forward): Declare an arg.
25700
25701 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
25702 Declare an arg.
25703
25704 * lisp.h (Fnew_fontset): Declare.
25705
25706 * keymap.c (push_key_description): Call CHARACTERP correctly.
25707
25708 * fontset.c (fontset_add): Declare args. Call make_number correctly.
25709 (face_for_char): Delete unused vars.
25710 (Fset_fontset_font): Doc fix. Delete unused vars.
25711
25712 * doc.c (Fsubstitute_command_keys): Delete unused vars.
25713
25714 * composite.c (update_compositions): Declare arg.
25715
25716 * cm.c (calccost, cmgoto): Declare args.
25717
25718 * charset.c: Remove `emacs' conditional. Doc fixes.
25719 (map_char_table_for_charset): Declare.
25720
25721 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
25722
25723 * ccl.c: Remove `emacs' conditional.
25724
25725 2008-02-01 Kenichi Handa <handa@m17n.org>
25726
25727 The following changes are to allow specifying multiple font
25728 patterns for a character range (specified by script or charset).
25729
25730 * Makefile.in (abbrev.o): Depend on syntax.h.
25731 (xfaces.o): Depend on charset.h.
25732
25733 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
25734 SINGLE_BYTE_CHAR_P.
25735
25736 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
25737
25738 * character.h (Vchar_script_table): Extern it.
25739
25740 * character.c (Vscript_alist): Delete.
25741 (Vchar_script_table, Qchar_script_table): New variable.
25742 (syms_of_character): Declare Vchar_script_table as a lisp variable
25743 and initialize it.
25744
25745 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
25746 have property char-table-extra-slots, make no extra slot.
25747
25748 * dispextern.h (struct face): Delete member `charset'.
25749 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
25750 SINGLE_BYTE_CHAR_P.
25751 (choose_face_font, lookup_non_ascii_face, font_name_registry):
25752 Add prototypes.
25753 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
25754 (generate_ascii_font_name): Rename from generate_ascii_font.
25755
25756 * fontset.h (get_font_repertory_func): New prototype.
25757 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
25758 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
25759
25760 * fontset.c (Qprepend, Qappend): New variables.
25761 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
25762 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
25763 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
25764 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
25765 (fontset_ref_and_range, fontset_add, reorder_font_vector)
25766 (load_font_get_repertory): New functions.
25767 (fontset_set): Delete.
25768 (fontset_face): New arg FACE. Return face ID, not face.
25769 Complete re-write to handle new fontset structure. Change caller.
25770 (free_face_fontset): Use ASET istead of AREF (X) = Y.
25771 (face_for_char): Don't call lookup_face.
25772 (make_fontset_for_ascii_face): New arg FACE.
25773 (fs_load_font): New arg CHARSET_ID. Don't check
25774 Vfont_encoding_alist here.
25775 (find_font_encoding): New function.
25776 (list_fontsets): Use STRINGP, not ! NILP.
25777 (accumulate_script_ranges): New function.
25778 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
25779 Completely re-written to handle new fontset structure.
25780 (Ffontset_font): Return a copy of element.
25781 (syms_of_fontset): Define symbols Qprepend and Qappend.
25782 Fix docstring of font-encoding-alist.
25783
25784 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
25785 (Fset_fotset_font): Fix arguments to 5.
25786
25787 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
25788
25789 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
25790 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25791 (highlight_trailing_whitespace): Adjust for the change of
25792 lookup_named_face.
25793
25794 * xfaces.c: Include charset.h.
25795 (load_face_font): Delete argument C. Change caller.
25796 (generate_ascii_font_name): Rename from generate_ascii_font.
25797 (font_name_registry): New function.
25798 (cache_face): Store ascii faces before non-ascii faces in buckets.
25799 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
25800 Lookup only ascii faces.
25801 (lookup_non_ascii_face): New function.
25802 (lookup_named_face): Delete argument C. Change caller.
25803 (lookup_derived_face): Delete argument C. Change caller.
25804 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
25805 a string, just call font_list with it.
25806 (choose_face_font): Delete arguments FACE and C. New arg
25807 FONT_SPEC. Change caller.
25808 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25809 Change caller.
25810 (realize_non_ascii_face): New function.
25811 (realize_x_face): Call load_face_font here.
25812 (realize_tty_face): Delete argument C. Change caller.
25813 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25814 get a face ID.
25815 (dump_realized_face): Don't print charset of FACE.
25816
25817 * xfns.c (x_set_font): Always call x_new_fontset and
25818 store_frame_parameter.
25819 (Fx_create_frame): Call x_new_fontset, not x_new_font.
25820 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25821
25822 * xterm.h (x_get_font_repertory): Extern it.
25823
25824 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25825 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
25826 it->multibyte_p is zero.
25827 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25828 (x_new_fontset): If FONTSETNAME doesn't match any existing
25829 fontsets, create a new one.
25830 (x_get_font_repertory): New function.
25831
25832 2008-02-01 Kenichi Handa <handa@m17n.org>
25833
25834 * coding.c (Ffind_coding_systems_region_internal): Detect an
25835 ASCII only string correctly.
25836
25837 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25838 version is 0.
25839
25840 2008-02-01 Kenichi Handa <handa@m17n.org>
25841
25842 * lread.c: Include "coding.h".
25843 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25844 (load_each_byte, unread_char): New variables.
25845 (readchar_backlog): Delete.
25846 (readchar): Return a character unless load_each_byte is nonzero.
25847 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25848 cons. If unread_char is not -1, simply return it.
25849 (unreadchar): Handle the case that readcharfun is
25850 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
25851 (read_multibyte): Delete.
25852 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25853 (read_emacs_mule_char): New functions.
25854 (Fload): Even if the file doesn't have the extension ".elc", if
25855 safe_to_load_p returns a positive version number, assume that the
25856 file contains bytecompiled code. If the version is less than 22,
25857 load the file while decoding multibyte sequences by emacs-mule.
25858 (readevalloop): Don't use readchar_backlog.
25859 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
25860 (Fread_from_string): Pay attention to the case that STREAM is a cons.
25861 (read_escape): Delete the arg BYTEREP.
25862 (read1): Set load_each_byte to 1 temporarily while handling
25863 #@NUMBER. Don't call read_multibyte.
25864 (read_vector): Call Fread with a cons. If readcharfun is
25865 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25866 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25867 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25868 and Qload_force_doc_strings.
25869
25870 2008-02-01 Kenichi Handa <handa@m17n.org>
25871
25872 * xdisp.c (face_before_or_after_it_pos):
25873 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
25874
25875 2008-02-01 Kenichi Handa <handa@m17n.org>
25876
25877 * character.h (TRAILING_CODE_P): New macro.
25878 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25879 (string_char_with_unification): Fix prototype.
25880 (Vscript_alist): Extern it.
25881
25882 * character.c (Vscript_alist): New variable.
25883 (string_char_with_unification, str_as_unibyte)
25884 (string_escape_byte8): Add `const' to local variables.
25885 (syms_of_character): Declare script-alist as a Lisp variable.
25886
25887 * charset.h (Vcharset_ordered_list): Extern it.
25888 (charset_ordered_list_tick): Extern it.
25889 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25890 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25891 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25892 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25893 (Funify_charset): Adjust for the change of Funify_charset.
25894
25895 * charset.c (charset_ordered_list_tick): New variable.
25896 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25897 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
25898 deunify instead of unify a charset.
25899 (string_xstring_p): Add `const' to local variables.
25900 (find_charsets_in_text): Add `const' to arguments and local variables.
25901 (encode_char): Adjust for the change of Funify_charset.
25902 Fix detecting of invalid code.
25903 (Fset_charset_priority): Increment charset_ordered_list_tick.
25904 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25905 and TO_CODE.
25906
25907 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25908 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25909 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25910 (decode_coding_ccl, consume_chars)
25911 (Ffind_coding_systems_region_internal)
25912 (Fcheck_coding_systems_region): Add `const' to local variables.
25913
25914 * print.c (print_object): Use octal form for printing the
25915 contents of a bool vector.
25916
25917 2008-02-01 Dave Love <fx@gnu.org>
25918
25919 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25920 <version == 20>: Refuse to load.
25921
25922 2008-02-01 Dave Love <fx@gnu.org>
25923
25924 * fns.c: Move coding.h.
25925 (Qcodeset, Qdays, Qmonths): New.
25926 (concat): Use CHARACTERP instead of INTEGERP.
25927 (Flocale_codeset): Delete.
25928 (Flanginfo): New function.
25929 (syms_of_fns): Change accordingly.
25930
25931 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25932
25933 2008-02-01 Dave Love <fx@gnu.org>
25934
25935 * casetab.c (init_casetab_once, init_casetab_once):
25936 Fix CHAR_TABLE_SET call.
25937
25938 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25939
25940 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25941
25942 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
25943 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25944 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25945
25946 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25947
25948 * coding.c (ENCODE_DESIGNATION, decode_eol)
25949 (make_conversion_work_buffer, code_conversion_restore)
25950 (Fdefine_coding_system_internal): Convert Lisp types.
25951 (code_conversion_restore): Use EQ, not ==.
25952 (Fencode_coding_string): Fix code_convert_string call.
25953
25954 * coding.h (code_convert_region): Fix prototype.
25955
25956 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25957
25958 * fontset.c (fontset_ref, fontset_set, fs_load_font)
25959 (Ffontset_info): Convert Lisp types.
25960
25961 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25962
25963 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25964
25965 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25966
25967 * chartab.c: Include "...h", not <...h> in some cases.
25968
25969 * callproc.c (Fcall_process): Remove unused variables.
25970
25971 2008-02-01 Dave Love <fx@gnu.org>
25972
25973 * coding.c (Fset_coding_system_priority): Allow null arg list.
25974
25975 2008-02-01 Dave Love <fx@gnu.org>
25976
25977 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25978 (Fself_insert_and_exit): Use CHARACTERP.
25979
25980 * callproc.c (Fcall_process): Remove unused vars.
25981
25982 * xterm.c (XTread_socket): Add extra dead keysyms.
25983
25984 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25985
25986 * dispextern.h: Remove prototypes for redraw_frame,
25987 redraw_garbaged_frames.
25988
25989 * cmds.c (Fself_insert_command): Use CHARACTERP.
25990
25991 * chartab.c (make_sub_char_table): Remove unused var.
25992 (Fset_char_table_default, Fmap_char_table): Doc fix.
25993
25994 * keymap.c (access_keymap): Remove generic char code.
25995 (push_key_description): Use CHARACTERP.
25996
25997 2008-02-01 Dave Love <fx@gnu.org>
25998
25999 * charset.c: Doc fixes.
26000 (Funify_charset): Extra checking.
26001
26002 2008-02-01 Dave Love <fx@gnu.org>
26003
26004 * lread.c: Remove some unused variables.
26005 (safe_to_load_p): If safe, return the magic number version byte.
26006 (Fload): Maybe use load-with-code-conversion.
26007
26008 2008-02-01 Kenichi Handa <handa@m17n.org>
26009
26010 * category.c (Fmodify_category_entry): Don't modify the contents
26011 of category_set for characters out of the range.
26012 Avoid unnecessary modification.
26013
26014 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
26015 Vchar_unify_table. The default value of the table is now nil.
26016
26017 * character.c (syms_of_character): Setup Vchar_width_table for
26018 eight-bit-control and raw-byte chars.
26019
26020 * charset.h (enum define_charset_arg_index):
26021 Delete charset_arg_parents and add charset_arg_subset and
26022 charset_arg_superset.
26023 (enum charset_attr_index): Delete charset_parents and add
26024 charset_subset and charset_superset.
26025 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
26026 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
26027 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
26028 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
26029 (CHARSET_SUPERSET): New macros.
26030 (charset_work): Extern it.
26031 (ENCODE_CHAR): Use charset_work.
26032 (CHAR_CHARSET_P): Adjust for the change of encoder format.
26033 (map_charset_chars): Extern it.
26034
26035 * charset.c (load_charset_map): Set the default value of encoder
26036 and deunifier char-tables to nil.
26037 (map_charset_chars): Change argument. Change callers.
26038 Use map_char_table_for_charset instead of map_char_table.
26039 (Fmap_charset_chars): New optional args from_code and to_code.
26040 (Fdefine_charset_internal): Adjust for the change of
26041 `define-charset' (:parents -> :subset or :superset).
26042 (charset_work): New variable.
26043 (encode_char, syms_of_charset): Adjust for the change of
26044 Fdefine_charset_internal.
26045 (Ffind_charset_string): Setup the vector `charsets' correctly.
26046
26047 * chartab.c (sub_char_table_ref_and_range): New arg default.
26048 Fix the previous change.
26049 (char_table_ref_and_range): Adjust for the above change.
26050 (map_sub_char_table_for_charset): New function.
26051 (map_char_table_for_charset): New function.
26052
26053 * keymap.c (describe_vector): Handle a char-table directly here.
26054 (describe_char_table): Delete.
26055
26056 * lisp.h (map_charset_chars): Delete.
26057
26058 2008-02-01 Dave Love <fx@gnu.org>
26059
26060 * fns.c (count_combining): Comment out (unused).
26061 (Flocale_codeset): New.
26062 (syms_of_fns): Defsubr it.
26063
26064 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
26065 (size_t): Remove.
26066
26067 2008-02-01 Dave Love <fx@gnu.org>
26068
26069 * Makefile.in (chartab.o): Depend on charset.h.
26070
26071 2008-02-01 Kenichi Handa <handa@m17n.org>
26072
26073 * character.c (syms_of_character): Set the default value of
26074 Vprintable_chars to Qnil.
26075
26076 2008-02-01 Dave Love <fx@gnu.org>
26077
26078 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
26079
26080 2008-02-01 Kenichi Handa <handa@m17n.org>
26081
26082 * charset.c (load_charset_map): Handle the case that from < to
26083 correctly.
26084
26085 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
26086 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
26087 Pay attention to raw-8-bit chars.
26088
26089 2008-02-01 Kenichi Handa <handa@m17n.org>
26090
26091 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
26092 It is not bytecompiled now.
26093
26094 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
26095 (charset_jisx0208): New variables.
26096 (Fdefine_charset_internal): Setup them if appropriate.
26097 (init_charset_once): Initialize them to -1.
26098
26099 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
26100 (charset_jisx0208): Extern them.
26101
26102 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
26103 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26104 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
26105 (setup_iso_safe_charsets): Fix arguments to Fassq.
26106 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
26107 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
26108 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
26109 (encode_coding_iso_2022): Change the 1st arg to
26110 ENCODE_ISO_CHARACTER to a variable.
26111
26112 2008-02-01 Kenichi Handa <handa@m17n.org>
26113
26114 * charset.h (enum define_charset_arg_index): New enums
26115 charset_arg_min_code and charset_arg_max_code.
26116 (struct charset): New member char_index_offset.
26117
26118 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
26119 Take charset->char_index_offset into account.
26120 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
26121 args[charset_arg_max_code]. Setup charset.char_index_offset.
26122 (syms_of_charset): Fix args to Fdefine_charset_internal.
26123
26124 2008-02-01 Dave Love <fx@gnu.org>
26125
26126 * coding.c (decode_coding_utf_8): Reject overlong sequences.
26127
26128 2008-02-01 Dave Love <fx@gnu.org>
26129
26130 * coding.c: Doc fixes.
26131 (Fcoding_system_aliases): Fix return value.
26132 (Qmac): Remove (duplicated) definition.
26133
26134 2008-02-01 Dave Love <fx@gnu.org>
26135
26136 * charset.c (Fcharset_priority_list, Fset_charset_priority):
26137 New functions.
26138
26139 * character.c (Fstring): Doc fix.
26140
26141 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
26142
26143 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
26144 (font-encoding-alist): Doc fix.
26145
26146 2008-02-01 Dave Love <fx@gnu.org>
26147
26148 * term.c (costs_set): Declare static, non-initialized for pcc.
26149 (encode_terminal_code): Remove unused var.
26150
26151 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
26152 for K&R.
26153
26154 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
26155
26156 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
26157 (suffixes): Move out of make_subsidiaries for K&R.
26158
26159 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
26160
26161 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
26162
26163 2008-02-01 Dave Love <fx@gnu.org>
26164
26165 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
26166
26167 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
26168
26169 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26170
26171 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
26172
26173 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
26174
26175 2008-02-01 Kenichi Handa <handa@m17n.org>
26176
26177 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
26178 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
26179
26180 2008-02-01 Kenichi Handa <handa@m17n.org>
26181
26182 * coding.c (decode_coding_charset): Adjust for the change of
26183 Fdefine_coding_system_internal.
26184 (Fdefine_coding_system_internal): For a coding system of
26185 `charset' type, store a list of charset IDs in
26186 `charset_attr_charset_valids' element of coding attributes.
26187
26188 2008-02-01 Kenichi Handa <handa@m17n.org>
26189
26190 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
26191 (emacs_mule_char): New arg src. Delete arg `composition'.
26192 Change caller. Handle 2-byte and 3-byte charsets correctly.
26193 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
26194 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
26195 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
26196 (DECODE_EMACS_MULE_21_COMPOSITION):
26197 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
26198 sequence.
26199 (decode_coding_emacs_mule): Handle composition correctly. Rewind
26200 `src' and `consumed_chars' correctly before calling emacs_mule_char.
26201 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
26202 and alt&rule composition.
26203 (decode_coding_iso_2022): Handle composition correctly.
26204 (init_coding_once): Setup emacs_mule_bytes for private charsets.
26205
26206 * charset.c (Fdefine_charset_internal): Fix bug for the case of
26207 re-defining a charset. If the charset has :emacs-mule-id, setup
26208 emacs_mule_bytes.
26209 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
26210
26211 2008-02-01 Kenichi Handa <handa@m17n.org>
26212
26213 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
26214 (encode_coding_big5, encode_coding_charset): If coding requires safe
26215 encoding, produce a character specified by
26216 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
26217
26218 2008-02-01 Dave Love <fx@gnu.org>
26219
26220 * xterm.c (XSetIMValues): Declare.
26221
26222 * process.c: Conditionally include sys/wait.h, pty.h.
26223
26224 * print.c (print_object): Fix print format for 64-bit systems.
26225
26226 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
26227
26228 * buffer.c (emacs_strerror): Declare.
26229
26230 * fontset.c (Fclear_face_cache): Declare.
26231 (accumulate_font_info): Comment-out (unused).
26232 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
26233 variables.
26234
26235 * character.h (string_escape_byte8): Declare.
26236
26237 * charset.c (load_charset_map, load_charset_map_from_file):
26238 Remove unused vars.
26239 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
26240 (Fmap_charset_chars): Doc fix.
26241
26242 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
26243 (Fset_coding_system_priority, Fset_coding_system_priority)
26244 (Fdefine_coding_system_internal): Doc fix.
26245
26246 2008-02-01 Dave Love <fx@gnu.org>
26247
26248 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
26249
26250 2008-02-01 Kenichi Handa <handa@m17n.org>
26251
26252 * character.c (string_escape_byte8): Make multibyte string with
26253 correct size.
26254
26255 * charset.c (Fmake_char): Delete unnecessary code.
26256
26257 2008-02-01 Kenichi Handa <handa@m17n.org>
26258
26259 * xfns.c (x_encode_text): Allocate coding.destination here, and
26260 call encode_coding_object with dst_object Qnil.
26261
26262 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
26263 multibyte form correctly.
26264
26265 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
26266 against Vfont_encoding_alist.
26267
26268 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
26269 handling of charset list.
26270 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
26271 (decode_coding_object): Move point to coding->dst_pos before
26272 calling post-read-conversion function.
26273 (encode_coding_object): Give correct arguments to
26274 pre-write-conversion. Ignore the return value of
26275 pre-write-conversion function. Pay attention to the case that
26276 pre-write-conversion changes the current buffer. If dst_object is
26277 Qt, even if coding->src_bytes is zero, allocate at least one byte
26278 to coding->destination.
26279
26280 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
26281
26282 * charset.c (Fmake_char): Make it more backward compatible.
26283 (Fmap_charset_chars): Fix docstring.
26284
26285 2008-02-01 Dave Love <fx@gnu.org>
26286
26287 * coding.c: Doc fixes.
26288 (Fdefine_coding_system_alias): Use names, not symbols, in
26289 coding-system-alist.
26290
26291 2008-02-01 Kenichi Handa <handa@m17n.org>
26292
26293 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
26294 of calling free_realized_face.
26295
26296 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
26297
26298 * charset.c (read_hex): Don't treat SPC as a comment starter.
26299 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
26300 (Fdecode_char): Fix typo.
26301
26302 2008-02-01 Kenichi Handa <handa@m17n.org>
26303
26304 * charset.h (struct charset): New member `code_space_mask'.
26305
26306 * coding.c (coding_set_source): Delete the local variable beg_byte.
26307 (encode_coding_charset, Fdefine_coding_system_internal):
26308 Delete the local variable charset.
26309 (Fdefine_coding_system_internal):
26310 Setup attrs[coding_attr_charset_valids] correctly.
26311
26312 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
26313 member to check if CODE is valid or not.
26314 (Fdefine_charset_internal): Initialize `code_space_mask' member.
26315 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
26316 is within the range of charset->min_code and carset->max_code.
26317
26318 2008-02-01 Dave Love <fx@gnu.org>
26319
26320 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
26321
26322 * dispextern.h (generate_ascii_font): Fix return type.
26323
26324 * xfaces.c (generate_ascii_font): Fix arg declaration.
26325
26326 * coding.c (coding_inherit_eol_type)
26327 (Fset_terminal_coding_system_internal)
26328 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
26329
26330 2008-02-01 Kenichi Handa <handa@m17n.org>
26331
26332 * coding.c (decode_coding_charset, encode_coding_charset):
26333 Handle multiple charsets correctly.
26334
26335 2008-02-01 Kenichi Handa <handa@m17n.org>
26336
26337 * search.c (boyer_moore): Fix handling of multibyte character
26338 translation.
26339
26340 * xdisp.c (display_mode_element): When the variable `elt' is
26341 changed, update `this' and `lisp_string'.
26342
26343 2008-02-01 Kenichi Handa <handa@m17n.org>
26344
26345 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
26346
26347 * callproc.c (Fcall_process): Be sure to give the current buffer
26348 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
26349
26350 * charset.c (struct charset_map_entries): New struct.
26351 (load_charset_map): Rename from parse_charset_map. New args
26352 entries and n_entries. Change caller.
26353 (load_charset_map_from_file): Rename from load_charset_map.
26354 Change caller. New arg control_flag. Call load_charset_map at
26355 the tail.
26356 (load_charset_map_from_vector): New function.
26357 (Fdefine_charset_internal): Setup charset.compact_codes_p.
26358 (encode_char): If the charset is compact, change a character index
26359 to a code point.
26360
26361 * coding.c (coding_alloc_by_making_gap): Check the case that the
26362 source and destination are the same correctly.
26363 (decode_coding_raw_text): Set coding->consumed_char and
26364 coding->consumed to 0.
26365 (produce_chars): If coding->chars_at_source is nonzero, update
26366 coding->consumed_char and coding->consumed before calling
26367 alloc_destination.
26368 (Fdefine_coding_system_alias): Register ALIAS in
26369 Vcoding_system_alist.
26370 (syms_of_coding): Define `no-conversion' coding system at the tail.
26371
26372 * fileio.c (Finsert_file_contents): Set coding_system instead of
26373 val. If the current buffer is multibyte, always call
26374 decode_coding_gap.
26375
26376 * xfaces.c (try_font_list): Give higher priority to fontset's
26377 family than face's family.
26378
26379 2008-02-01 Kenichi Handa <handa@m17n.org>
26380
26381 * callproc.c (Fcall_process): Be sure to give the current buffer
26382 to decode_coding_c_string.
26383
26384 * xfaces.c (try_font_list): Give a family specified in a fontset
26385 higher priority than a family specified in a face.
26386
26387 2008-02-01 Kenichi Handa <handa@m17n.org>
26388
26389 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
26390 Fix arguments to insert_from_buffer.
26391
26392 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
26393
26394 2008-02-01 Kenichi Handa <handa@m17n.org>
26395
26396 * coding.c (produce_chars): Set the variable `multibytep' correctly.
26397 (decode_coding_gap): Set coding->dst_multibyte correctly.
26398
26399 2008-02-01 Kenichi Handa <handa@m17n.org>
26400
26401 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
26402 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
26403 (encode_coding_utf_16): Substitute coding->default_char for
26404 non-Unicode characters.
26405 (decode_coding): Don't call record_insert here.
26406 (setup_coding_system): Initialize `surrogate' of
26407 coding->spec.utf_16 to 0.
26408 (EMIT_ONE_BYTE): Fix for multibyte case.
26409
26410 * insdel.c (insert_from_gap): Call record_insert.
26411
26412 2008-02-01 Kenichi Handa <handa@m17n.org>
26413
26414 * casefiddle.c (casify_region): Fix multibyte case.
26415
26416 * character.c (c_string_width): Add return type `int'.
26417 (char_string_with_unification): Delete arg ADVANCED.
26418
26419 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
26420 (CHAR_STRING): Adjust for the change of char_string_with_unification.
26421 (CHAR_STRING_ADVANCE): Make it do-while statement.
26422
26423 * chartab.c (sub_char_table_set_range): Optimize for the case
26424 DEPTH == 3. Add workaround code for a GCC optimization bug.
26425
26426 * charset.c (parse_charset_map): Remove an unused variable.
26427
26428 * coding.c: Delete unused variables.
26429
26430 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
26431 earlier. If inserted is zero and the coding system doesn't
26432 require flushing, don't call decode_coding_gap.
26433
26434 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
26435
26436 2008-02-01 Kenichi Handa <handa@m17n.org>
26437
26438 The following changes are for using Unicode as an internal
26439 character model, and use UTF-8 format for buffer/string
26440 representation.
26441
26442 * .gdbinit (xchartable): Adjust for the change of char table structure.
26443 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
26444
26445 * Makefile.in (obj): Add character.o and chartab.o.
26446 (lisp, shortlisp): Remove utf-8.elc.
26447 (*.o): For many files, change dependency on charset.h to
26448 character.h, and add dependency on character.h.
26449 (character.o, chartab.o): New targets.
26450
26451 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
26452 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
26453 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
26454 of "charset.h".
26455
26456 * dired.c, filelock.c: Include "character.h".
26457
26458 * alloc.c: Include "character.h" instead of "charset.h".
26459 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
26460 (syms_of_alloc): Remove defsubr for Smake_char_table.
26461
26462 * buffer.c: Include "character.h" instead of "charset.h", don't
26463 include "coding.h".
26464 (Fset_buffer_multibyte): Adjust for UTF-8.
26465
26466 * buffer.h: EXFUN Fbuffer_live_p.
26467
26468 * callproc.c: Include "character.h" instead of "charset.h".
26469 (Fcall_process): Big change for the new code-conversion APIs.
26470
26471 * casetab.c: Include "character.h" instead of "charset.h".
26472 (set_canon, set_identity, shuffle): Adjust for the new
26473 map_char_table spec.
26474 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
26475 accessing the char table structure.
26476
26477 * chartab.c: New file that implements char table.
26478
26479 * category.c: Include "character.h".
26480 (copy_category_entry): New function.
26481 (copy_category_table): Call map_char_table and copy_category_entry.
26482 (Fmake_category_table): Initialize all top-level slots.
26483 (char_category_set): New function.
26484 (modify_lower_category_set): Delete.
26485 (Fmodify_category_entry): Call char_table_ref_and_range.
26486
26487 * category.h (CATEGORY_SET): Just call char_category_set.
26488
26489 * ccl.c: Include "character.h".
26490 (Qccl, Qcclp): New variables.
26491 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
26492 it's less than 256.
26493 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
26494 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
26495 and DST type.
26496 (ccl_driver): Change types of argument, adjust code accordingly.
26497 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
26498 ccl_driver.
26499 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
26500
26501 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
26502 New members src_multibyte, dst_multibyte, consumed, and produced.
26503 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
26504 (CODING_SPEC_CCL_PROGRAM): New macro.
26505 (ccl_driver): Update prototype.
26506 (Qccl, Qcclp, Fccl_program_p): Extern them.
26507 (CHECK_CCL_PROGRAM): New macro.
26508
26509 * character.c, character.h, chartab.c: New files.
26510
26511 * charset.c: Mostly re-written. Move character and multibyte sequence
26512 handling codes to character.c.
26513
26514 * charset.h: Mostly re-written. Move character and multibyte sequence
26515 handling codes to character.h.
26516
26517 * coding.c, coding.h: Mostly re-written.
26518
26519 * composite.c: Include "character.h" instead of "charset.h".
26520 (CHAR_WIDTH): Move to character.h.
26521 (HASH_KEY, HASH_VALUE): Delete.
26522
26523 * composite.h (enum composition_method): Change order of enumeration
26524 symbols.
26525
26526 * data.c: Include "character.h" instead of "charset.h".
26527 (Faref): Call CHAR_TABLE_REF for a char table.
26528 (Faset): Call CHAR_TABLE_SET for a char table.
26529
26530 * dispextern.h (free_realized_face, check_face_attribytes)
26531 (generate_ascii_font): Extern them.
26532 (free_realized_multibyte_face): Delete extern.
26533
26534 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
26535 table structure.
26536
26537 * editfns.c: Include "character.h" instead of "charset.h".
26538 (Fchar_to_string): Always call CHAR_STRING.
26539
26540 * emacs.c (main): Call init_charset_once, init_charset,
26541 syms_of_chartab, and syms_of_character.
26542
26543 * fileio.c: Include "character.h" instead of "charset.h".
26544 (Finsert_file_contents): Big change for the new code-conversion API.
26545 (choose_write_coding_system, Fwrite_region): Likewise.
26546 (build_annotations_2): Delete.
26547 (e_write): Big change for the new code-conversion API.
26548
26549 * fns.c: Include "character.h" instead of "charset.h".
26550 (copy_sub_char_table): Move to chartab.c.
26551 (Fcopy_sequence): Call copy_char_table for a char table.
26552 (concat): Delete codes calling count_multibyte.
26553 (string_char_to_byte, string_byte_to_char): Adjust for the new
26554 multibyte form.
26555 (internal_equal): Adjust for the change of char table structure.
26556 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
26557 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
26558 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
26559 (char_table_translate, optimize_sub_char_table)
26560 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
26561 chartab.c.
26562 (char_table_ref_and_index): Delete.
26563 (HASH_KEY, HASH_VALUE): Move to lisp.h.
26564 (Fmd5): Call preferred_coding_system instead of accessing
26565 Vcoding_category_list. Adjust for the new code-conversion API.
26566 (syms_of_fns): Move defsubr for char table related functions to
26567 chartab.c.
26568
26569 * fontset.c: Mostly re-written.
26570
26571 * fontset.h (struct font_info): Change type of the member encoding_type.
26572 (enum FONT_SPEC_INDEX): New enum.
26573 (fontset_font_pattern, fs_load_font): Update prototype.
26574 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
26575
26576 * indent.c: Include "character.h" instead of "charset.h".
26577 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
26578
26579 * insdel.c: Include "character.h" instead of "charset.h".
26580 (copy_text): Don't refer to Vnonascii_translation_table.
26581 (insert_from_gap): New function.
26582
26583 * keyboard.c: Include "character.h" instead of "charset.h".
26584 (command_loop_1): Never call direct_output_forward_char before
26585 a non-ASCII character.
26586 (read_char): If Vkeyboard_translate_table is a char table, always
26587 translate a character.
26588
26589 * keymap.c: Include "character.h".
26590 (store_in_keymap): Handle the case that IDX is a cons.
26591 (Fdefine_key): Handle the case that KEY is a cons and the car part
26592 is also a cons (range).
26593 (push_key_description): Adjust for the new character code.
26594 (describe_vector): Call describe_char_table for a char table.
26595 (describe_char_table): New function.
26596
26597 * keymap.h (describe_char_table): Extern it.
26598
26599 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
26600 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
26601 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
26602 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
26603 Delete.
26604 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
26605 structure.
26606 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
26607 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
26608 (CHARTAB_SIZE_BITS_3): New macros.
26609 (chartab_size): Extern it.
26610 (struct Lisp_Char_Table): Re-design.
26611 (struct Lisp_Sub_Char_Table): New structure.
26612 (HASH_KEY, HASH_VALUE): Move from fns.c.
26613 (CHARACTERBITS): Define as 22.
26614 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
26615 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
26616 (GC_SUB_CHAR_TABLE_P): New macro.
26617 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
26618 (code_convert_string_norecord): Delete extern.
26619 (init_character_once, syms_of_character, init_charset)
26620 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
26621
26622 * lread.c: Include "character.h".
26623 (read_multibyte): New arg NBYTES.
26624 (read_escape): Change the meaning of returned *BYTEREP.
26625 (to_multibyte): Delete.
26626 (read1): Adjust the handling of char table and string.
26627
26628 * print.c: Include "character.h" instead of "charset.h".
26629 (print_string): Convert 8-bit raw bytes to octal form by
26630 string_escape_byte8.
26631 (print_object): Adjust for the new multibyte form. Print 8-bit
26632 raw bytes always in octal form. Handle sub char table correctly.
26633
26634 * process.c: Include "character.h" instead of "charset.h".
26635 (read_process_output, send_process): Adjust for the new
26636 code-conversion API.
26637
26638 * puresize.h (BASE_PURESIZE): Increase.
26639
26640 * regex.c: Include "character.h" instead of "charset.h".
26641 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
26642 (regex_compile): Accept a range whose starting and ending
26643 character have different leading bytes.
26644 (analyse_first): Adjust for the above change.
26645
26646 * search.c: Include "character.h" instead of "charset.h".
26647 (search_buffer, boyer_moore): Adjust for the new multibyte form.
26648 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
26649
26650 * syntax.c: Include "character.h" instead of "charset.h".
26651 (syntax_parent_lookup): Delete.
26652 (Fmodify_syntax_entry): Accept a cons as CHAR.
26653 (skip_chars): Adjust for the new multibyte form.
26654 (init_syntax_once): Call char_table_set_range instead of directly
26655 accessing the structure of a char table.
26656
26657 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
26658 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
26659 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
26660 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
26661
26662 * term.c: Include "buffer.h" and "character.h".
26663 (encode_terminal_code, write_glyphs): Adjust for the new
26664 code-conversion API.
26665 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
26666
26667 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
26668
26669 * xdisp.c: Include "character.h".
26670 (get_next_display_element): Adjust for the new multibyte form.
26671 (disp_char_vector): Adjust for the new char table structure.
26672 (decode_mode_spec_coding): Adjust for the new structure of
26673 coding system.
26674 (decode_mode_spec): Adjust for the new code-conversion API.
26675
26676 * xfaces.c: Include "character.h" instead of "charset.h".
26677 (load_face_font): Adjust for the change of choose_face_font and
26678 FS_LOAD_FONT.
26679 (generate_ascii_font): New function.
26680 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
26681 (set_font_frame_param): Adjust for the change of choose_face_font.
26682 (free_realized_face): Make it public.
26683 (free_realized_faces_for_fontset): Rename from
26684 free_realized_multibyte_face. Free also faces realized for ASCII.
26685 (choose_face_font): Change arguments. Adjust for the change of
26686 fontset_font_pattern and FS_LOAD_FONT.
26687
26688 * xfns.c: Include "character.h".
26689 (x_encode_text): Adjust for the new code-conversion API.
26690
26691 * xselect.c: Don't include "charset.h".
26692 (selection_data_to_lisp_data): Adjust for the new code conversion API.
26693
26694 * xterm.c: Include "character.h".
26695 (x_encode_char): New argument CHARSET. Change caller.
26696 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
26697 Call ENCODE_CHAR instead of SPLIT_CHAR.
26698 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
26699 CHAR_WIDTH instead of CHARSET_WIDTH.
26700 (XTread_socket): Adjust for the new code-conversion API.
26701 (x_new_font): Adjust for the change of FS_LOAD_FONT.
26702 (x_load_font): Adjust for the change of struct font.
26703
26704 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
26705
26706 * xfaces.c (face_at_buffer_position): Remove unused vars.
26707
26708 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26709
26710 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
26711 Fix overflow checking.
26712
26713 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
26714
26715 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
26716 Cancel previous change.
26717
26718 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26719
26720 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
26721 ccl->eight_bit_control. Fix check for buffer overflow.
26722 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
26723 (ccl_driver): Initialize extra_bytes to 0.
26724
26725 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
26726
26727 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
26728 return it ORed with ctrl_modifier.
26729
26730 2008-01-29 Miles Bader <miles@gnu.org>
26731
26732 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
26733
26734 2008-01-28 Jason Rumney <jasonr@gnu.org>
26735
26736 * w32.c (stat): Don't double check for networked drive.
26737
26738 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
26739
26740 * window.c (run_window_configuration_change_hook): New function.
26741 Code extracted from set_window_buffer. Set the selected frame.
26742 (set_window_buffer): Use it.
26743 * window.h (run_window_configuration_change_hook): Declare.
26744 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
26745
26746 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
26747
26748 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
26749
26750 * Makefile.in: Remove references to unused macros.
26751
26752 2008-01-26 Eli Zaretskii <eliz@gnu.org>
26753
26754 * w32.c (g_b_init_get_sid_sub_authority)
26755 (g_b_init_get_sid_sub_authority_count): New static variables.
26756 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
26757 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
26758 (init_user_info): Use them to retrieve uid and gid.
26759 Use 500/513, the Windows defaults, as Administrator's uid/gid.
26760 (fstat): Use pw_uid and pw_gid from the_passwd structure for
26761 st_uid and st_gid of the file.
26762
26763 2008-01-26 Jason Rumney <jasonr@gnu.org>
26764
26765 * w32.c (logon_network_drive): New function.
26766 (stat): Use it.
26767
26768 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
26769
26770 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
26771 invisible text covered with an ellipsis.
26772
26773 2008-01-25 Richard Stallman <rms@gnu.org>
26774
26775 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
26776 jump back to beginning. Move some other initializations after that.
26777 (Qwindow_text_change_functions, Vwindow_text_change_functions):
26778 New variables.
26779 (syms_of_xdisp): Init them.
26780
26781 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
26782
26783 * buffer.c (reset_buffer_local_variables):
26784 Implement `permanent-local-hook'.
26785 (Qpermanent_local_hook): New variable.
26786 (syms_of_buffer): Init and staticpro it.
26787
26788 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
26789
26790 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
26791
26792 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
26793
26794 * fns.c (Fclrhash): Return TABLE.
26795
26796 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26797
26798 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
26799 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
26800 is set even without positional changes.
26801 (x_scroll_bar_clear): Set bar->redraw_needed_p.
26802
26803 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26804
26805 2008-01-23 Jason Rumney <jasonr@gnu.org>
26806
26807 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26808
26809 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26810 the unicode range available in MULE by locale-coding-system.
26811 Improve dbcs lead byte detection. Set event timestamp and modifiers
26812 earlier.
26813
26814 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26815
26816 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26817 [MAC_OSX] (init_mac_osx_environment): Initialize it.
26818 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26819 when used on child processes.
26820
26821 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
26822
26823 * dbusbind.c (Fdbus_method_return_internal): Rename from
26824 Fdbus_method_return.
26825 (Fdbus_unregister_object): Move to dbus.el.
26826 (Fdbus_call_method, Fdbus_method_return_internal)
26827 (Fdbus_send_signal): Improve debug messages.
26828
26829 2008-01-20 Martin Rudalics <rudalics@gmx.at>
26830
26831 * undo.c (undo_inhibit_record_point): New variable.
26832 (syms_of_undo): Initialize it.
26833 (record_point): Don't record point when undo_inhibit_record_point
26834 is set.
26835
26836 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
26837
26838 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26839
26840 * xdisp.c (Qauto_hscroll_mode): New var.
26841 (syms_of_xdisp): Initialize it.
26842 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26843 window's buffer.
26844 (hscroll_windows): Don't check automatic_hscrolling_p here.
26845
26846 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26847 vscroll if we're setting window-buffer to the value it already has.
26848
26849 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
26850
26851 * m/intel386.h: Remove references to XENIX.
26852
26853 2008-01-17 Andreas Schwab <schwab@suse.de>
26854
26855 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26856 instead of HAVE_X86_64_LIB64_DIR.
26857 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26858
26859 2008-01-17 Glenn Morris <rgm@gnu.org>
26860
26861 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26862 to HAVE_X86_64_LIB64_DIR.
26863
26864 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
26865
26866 * s/irix3-3.h:
26867 * s/irix4-0.h:
26868 * s/386-ix.h:
26869 * s/domain.h:
26870 * s/hpux9-x11r4.h:
26871 * s/hpux9shxr4.h: Remove files for systems no longer supported.
26872
26873 * sysdep.c: Remove code containing references to symbols defined
26874 by unsupported systems.
26875
26876 2008-01-16 Glenn Morris <rgm@gnu.org>
26877
26878 * coding.c (select-safe-coding-system-function): Doc fix.
26879
26880 2008-01-15 Glenn Morris <rgm@gnu.org>
26881
26882 * config.in: Revert 2008-01-13 change: this is a generated file.
26883
26884 2008-01-13 Tom Tromey <tromey@redhat.com>
26885
26886 * lisp.h: Fix typo.
26887
26888 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26889
26890 * m/sequent-ptx.h:
26891 * m/sequent.h:
26892 * s/ptx.h:
26893 * s/ptx4-2.h:
26894 * s/ptx4.h: Remove files for systems no longer supported.
26895
26896 * callproc.c (Fcall_process): Fix previous change.
26897
26898 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
26899
26900 * unexsunos4.c: Remove file, system not supported anymore.
26901
26902 * m/mips.h:
26903 * m/intel386.h:
26904 * callproc.c:
26905 * config.in:
26906 * ecrt0.c:
26907 * emacs.c:
26908 * fileio.c:
26909 * frame.c:
26910 * getpagesize.h:
26911 * keyboard.c:
26912 * lread.c:
26913 * process.c:
26914 * puresize.h:
26915 * sysdep.c:
26916 * systty.h:
26917 * syswait.h:
26918 * unexec.c:
26919 * xdisp.c:
26920 * alloc.c: Remove code containing references to symbols defined by
26921 unsupported systems.
26922
26923 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
26924
26925 * coding.c (detect_coding_mask): Fix previous change.
26926
26927 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
26928
26929 * coding.c (detect_coding_iso2022): New arg
26930 latin_extra_code_state. Allow Latin extra codes only
26931 when *latin_extra_code_state is nonzero.
26932 (detect_coding_mask): If there is a NULL byte, detect the encoding
26933 as UTF-16 or binary. If Latin extra codes exist, detect the
26934 encoding as ISO-2022 only when there's no other proper encoding is
26935 found.
26936
26937 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26938
26939 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26940 #ifdef MAC_OS.
26941
26942 2008-01-08 Richard Stallman <rms@gnu.org>
26943
26944 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26945
26946 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
26947
26948 * keyboard.c (parse_menu_item): Don't enclose key bindings on
26949 menu bar in parentheses.
26950
26951 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
26952
26953 * m/7300.h:
26954 * m/acorn.h:
26955 * m/alliant-2800.h:
26956 * m/alliant.h:
26957 * m/alliant1.h:
26958 * m/alliant4.h:
26959 * m/altos.h:
26960 * m/amdahl.h:
26961 * m/apollo.h:
26962 * m/att3b.h:
26963 * m/aviion-intel.h:
26964 * m/aviion.h:
26965 * m/celerity.h:
26966 * m/clipper.h:
26967 * m/cnvrgnt.h:
26968 * m/convex.h:
26969 * m/cydra5.h:
26970 * m/delta88k.h:
26971 * m/dpx2.h:
26972 * m/dual.h:
26973 * m/elxsi.h:
26974 * m/f301.h:
26975 * m/gould-np1.h:
26976 * m/gould.h:
26977 * m/i860.h:
26978 * m/ibmps2-aix.h:
26979 * m/ibmrt-aix.h:
26980 * m/ibmrt.h:
26981 * m/irist.h:
26982 * m/is386.h:
26983 * m/isi-ov.h:
26984 * m/mega68.h:
26985 * m/mg1.h:
26986 * m/news-r6.h:
26987 * m/news-risc.h:
26988 * m/news.h:
26989 * m/nh3000.h:
26990 * m/nh4000.h:
26991 * m/ns16000.h:
26992 * m/ns32000.h:
26993 * m/nu.h:
26994 * m/orion.h:
26995 * m/orion105.h:
26996 * m/paragon.h:
26997 * m/pfa50.h:
26998 * m/plexus.h:
26999 * m/pyramid.h:
27000 * m/pyrmips.h:
27001 * m/sh3el.h:
27002 * m/sps7.h:
27003 * m/sr2k.h:
27004 * m/stride.h:
27005 * m/sun1.h:
27006 * m/sun2.h:
27007 * m/sun3-68881.h:
27008 * m/sun3-fpa.h:
27009 * m/sun3-soft.h:
27010 * m/sun3.h:
27011 * m/sun386.h:
27012 * m/symmetry.h:
27013 * m/tad68k.h:
27014 * m/tahoe.h:
27015 * m/targon31.h:
27016 * m/tek4300.h:
27017 * m/tekxd88.h:
27018 * m/tower32.h:
27019 * m/tower32v3.h:
27020 * m/ustation.h:
27021 * m/wicat.h:
27022 * m/xps100.h:
27023 * s/cxux.h:
27024 * s/cxux7.h:
27025 * s/dgux.h:
27026 * s/dgux4.h:
27027 * s/dgux5-4-3.h:
27028 * s/dgux5-4r2.h:
27029 * s/esix.h:
27030 * s/esix5r4.h:
27031 * s/hiuxmpp.h:
27032 * s/hiuxwe2.h:
27033 * s/iris3-5.h:
27034 * s/iris3-6.h:
27035 * s/isc2-2.h:
27036 * s/isc3-0.h:
27037 * s/isc4-0.h:
27038 * s/isc4-1.h:
27039 * s/newsos5.h:
27040 * s/newsos6.h:
27041 * s/osf1.h:
27042 * s/osf5-0.h:
27043 * s/riscix1-1.h:
27044 * s/riscix12.h:
27045 * s/sco4.h:
27046 * s/sco5.h:
27047 * s/sunos4-0.h:
27048 * s/sunos4-1.h:
27049 * s/sunos413.h:
27050 * s/sunos4shr.h:
27051 * s/umax.h:
27052 * s/unipl5-2.h:
27053 * s/xenix.h:
27054 * cxux-crt0.s:
27055 * unexapollo.c:
27056 * unexconvex.c:
27057 * unexenix.c:
27058 * unexsni.c: Remove files for systems no longer supported.
27059
27060 * m/intel386.h: Remove references to unsupported systems.
27061
27062 * w32.c (get_emacs_configuration): Remove reference to i860.
27063
27064 * sysdep.c: Remove dead code.
27065
27066 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
27067
27068 * s/rtu.h:
27069 * m/masscomp.h: Remove files. Platform is obsolete.
27070
27071 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
27072
27073 * dbusbind.c (Fdbus_method_return): New function.
27074 (xd_read_message): Add the serial number to the event.
27075 (Fdbus_register_method): Activate the function.
27076
27077 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
27078
27079 * keyboard.c (read_key_sequence): Fix typo.
27080
27081 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
27082
27083 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
27084 (xd_signature, xd_append_arg): Handle element type detection for
27085 empty arrays.
27086 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
27087 SDATA () calls; this must be solved more general.
27088 (Fdbus_register_signal): Use SBYTES instead of strlen.
27089
27090 2008-01-03 Magnus Henoch <magnus@zemdatav>
27091
27092 * dbusbind.c (xd_append_arg): Use unsigned char instead of
27093 unsigned int for byte values (necessary for big-endian platform).
27094 (Fdbus_call_method): Handle the case of no returned arguments.
27095
27096 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
27097
27098 * dbusbind.c (xd_read_message): Use non-static input_event struct.
27099
27100 2007-12-31 Magnus Henoch <mange@freemail.hu>
27101
27102 * dbusbind.c (xd_signature): Signature of variant is just "v".
27103
27104 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
27105
27106 * dbusbind.c: Fix several errors and compiler warnings.
27107 Reported by Tom Tromey <tromey@redhat.com>.
27108 (XD_ERROR, XD_DEBUG_MESSAGE)
27109 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
27110 (xd_append_arg): Part for basic D-Bus types rewritten.
27111 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
27112 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
27113 appropriate.
27114 (xd_read_message): Return Qnil. Don't signal an error; it is not
27115 useful during event reading.
27116 (Fdbus_register_signal): Signal an error if the check for
27117 FUNCTIONP fails.
27118 (Fdbus_register_method): New function. The implementation is not
27119 complete, the call of the function signals an error therefore.
27120 (Fdbus_unregister_object): New function, renamed from
27121 Fdbus_unregister_signal. The initial check signals an error, if
27122 the object is not well formed.
27123
27124 2007-12-30 Richard Stallman <rms@gnu.org>
27125
27126 * textprop.c (get_char_property_and_overlay):
27127 Signal error if POSITION is out of range in a buffer.
27128
27129 2007-12-29 Martin Rudalics <rudalics@gmx.at>
27130
27131 * w32fns.c (Fx_create_frame): Make copy of frame parameters
27132 because the original parameters are in pure storage now.
27133
27134 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27135
27136 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
27137
27138 2007-12-22 Eli Zaretskii <eliz@gnu.org>
27139
27140 * callint.c (syms_of_callint) <command-history>: Add reference to
27141 history-length in the doc string.
27142
27143 2007-12-17 Jason Rumney <jasonr@gnu.org>
27144
27145 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
27146 before passing as wParam.
27147
27148 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
27149
27150 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
27151 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
27152 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
27153 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
27154 as number.
27155 (Fdbus_call_method): Fix docstring.
27156
27157 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
27158
27159 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
27160 New macros.
27161 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
27162 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
27163 Simplify.
27164 (xd_signature): New function.
27165 (xd_append_arg): Compute also signatures. Major rewrite.
27166 (xd_retrieve_arg): Make debug messages friendly.
27167 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
27168 Check for signatures of arguments.
27169
27170 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
27171
27172 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
27173 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
27174 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
27175 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
27176 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
27177 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
27178 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
27179 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
27180 (xd_retrieve_value): Remove. Functionality included in ...
27181 (xd_append_arg): New function.
27182 (Fdbus_call_method, Fdbus_send_signal): Apply it.
27183
27184 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
27185
27186 * dbusbind.c (top): Include <stdio.h>.
27187 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
27188 dbus_message_new_method_call and dbus_message_new_signal.
27189 (Fdbus_register_signal): Rename unique_name to uname.
27190 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
27191 non-existing unique name. Fix typos in matching rule. Return an
27192 object which is useful in Fdbus_unregister_signal.
27193 (Fdbus_unregister_signal): Reimplementation, in order to remove
27194 only the corresponding entry.
27195 (Vdbus_registered_functions_table): Change the order of entries.
27196 Apply these changes in xd_read_message and Fdbus_register_signal.
27197
27198 2007-12-16 Andreas Schwab <schwab@suse.de>
27199
27200 * fileio.c (Finsert_file_contents): Fix overflow check to not
27201 depend on undefined integer overflow.
27202
27203 2007-12-14 Jason Rumney <jasonr@gnu.org>
27204
27205 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
27206 for characters above 127.
27207
27208 2007-12-13 Jason Rumney <jasonr@gnu.org>
27209
27210 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
27211 before dereferencing array.
27212 (lookup_vk_code): Remove zero comparison.
27213
27214 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
27215
27216 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
27217 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
27218 Use `unsigned int' instead of `uint'.
27219 (xd_read_message, Fdbus_register_signal): Split expressions into
27220 multiple lines before operators "&&" and "||", according to the
27221 GNU Coding Standards.
27222
27223 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27224
27225 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
27226
27227 2007-12-12 Juri Linkov <juri@jurta.org>
27228
27229 * buffer.c (Frename_buffer): In interactive spec replace
27230 `read-buffer' with `read-string' that uses `buffer-name-history'
27231 as history, and the current buffer's name as default.
27232
27233 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
27234
27235 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
27236 manipulating the backtrace manually.
27237 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
27238 (struct backtrace, backtrace_list): Remove.
27239 (command_loop_1): Remove dead var `no_direct'.
27240
27241 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
27242 preserve non-built-in buffer-local variables.
27243 (Fkill_all_local_variables): Don't re-create&re-set permanent
27244 buffer-local variables.
27245
27246 2007-12-09 Juri Linkov <juri@jurta.org>
27247
27248 * buffer.c (Frename_buffer): Change interactive spec from "s" to
27249 Lisp code that uses `read-buffer' with current buffer as default.
27250
27251 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
27252
27253 * dbusbind.c (xd_read_message): Generate an event for every
27254 registered handler. There might be several handlers registered
27255 for the same signal.
27256 (Fdbus_register_signal): Don't overwrite a registration for the
27257 same signal. Add a new registration if handlers are different.
27258 (Vdbus_registered_functions_table): Rework doc string.
27259
27260 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
27261
27262 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
27263 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
27264 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
27265 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
27266 Unify argument lists.
27267 (xd_read_message, Fdbus_register_signal): Reorder and extend event
27268 arguments and hash table keys. Use unique name for service.
27269 (Fdbus_unregister_signal): Remove checks.
27270 (Vdbus_registered_functions_table): Fix doc string.
27271
27272 2007-12-05 Magnus Henoch <mange@freemail.hu>
27273
27274 * process.c (make_process): Initialize pty_flag to 0.
27275
27276 2007-12-05 Jason Rumney <jasonr@gnu.org>
27277
27278 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
27279 specified XBMs.
27280
27281 2007-12-05 Richard Stallman <rms@gnu.org>
27282
27283 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
27284
27285 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27286
27287 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
27288 New variable.
27289 (mac_try_close_socket) [MAC_OSX]: New function.
27290 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
27291 Update cfsockets_for_select. Replace invalid CFRunLoop source.
27292
27293 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
27294 Use mac_try_close_socket.
27295
27296 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27297
27298 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
27299 reloc_base.
27300 (copy_dysymtab): Compute relocation base here.
27301 (rebase_reloc_address) [__ppc64__]: New function.
27302 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
27303 changed.
27304
27305 2007-12-05 Jason Rumney <jasonr@gnu.org>
27306
27307 * w32proc.c (sys_spawnve): Quote args with wildcards.
27308
27309 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27310
27311 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
27312 __objc_* sections.
27313 (unrelocate) [_LP64]: Set relocation base to address of data segment.
27314
27315 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
27316
27317 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
27318 Move check for Vdbus_registered_functions_table to
27319 xd_read_queued_messages.
27320 (xd_read_queued_messages): Protect xd_read_message calls by
27321 internal_condition_case_1.
27322
27323 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
27324
27325 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
27326 Qdbus_system_bus and Qdbus_session_bus, respectively.
27327 (Vdbus_intern_symbols): Remove.
27328 (Vdbus_registered_functions_table): New hash table.
27329 (XD_SYMBOL_INTERN_SYMBOL): Remove.
27330 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
27331 Rewrite in order to manage registered functions by hash table
27332 Vdbus_registered_functions_table.
27333
27334 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
27335
27336 * xterm.c: Update URL to Window Manager Specification in comment.
27337
27338 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
27339
27340 * config.in (HAVE_DBUS): Add.
27341
27342 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
27343 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
27344 (obj): Add $(DBUS_OBJ).
27345 (LIBES): Add $(DBUS_LIBS).
27346 (dbusbind.o): New target.
27347
27348 * dbusbind.c: New file.
27349
27350 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
27351
27352 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
27353 (Qdbus_event): New Lisp symbol.
27354 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
27355 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
27356 (keys_of_keyboard): Define dbus-event.
27357
27358 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
27359
27360 2007-12-01 Richard Stallman <rms@gnu.org>
27361
27362 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
27363
27364 2007-11-30 Jason Rumney <jasonr@gnu.org>
27365
27366 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
27367 (w32con_reset_terminal_modes): Clear screen buffer.
27368 (w32_face_attributes): Don't use color indexes that are out of range.
27369 Only reverse the default colors.
27370
27371 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
27372 WINDOWSNT.
27373
27374 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
27375
27376 2007-11-29 Jason Rumney <jasonr@gnu.org>
27377
27378 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
27379 (w32_face_attributes): Use Vtty_defined_color_alist to determine
27380 if the terminal colors are initialized.
27381 (unspecified_fg, unspecified_bg): Remove unused declarations.
27382
27383 2007-11-29 Andreas Schwab <schwab@suse.de>
27384
27385 * keyboard.c (apply_modifiers): Fix typo.
27386
27387 2007-11-29 Richard Stallman <rms@gnu.org>
27388
27389 * keymap.c (Fcurrent_local_map): Doc fix.
27390
27391 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
27392
27393 * s/gnu-kfreebsd.h: New file.
27394
27395 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
27396
27397 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
27398 Don't cast redundantly.
27399
27400 * keyboard.c (KEY_TO_CHAR): New macro.
27401 (parse_modifiers, apply_modifiers): Accept integer arguments.
27402 (read_key_sequence): Use them to unify the "shift->unshift" mapping
27403 for chars and symbol keys.
27404 After doing such remapping, apply function-key-map again.
27405
27406 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
27407
27408 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
27409 compiled anymore.
27410
27411 2007-11-26 Andreas Schwab <schwab@suse.de>
27412
27413 * process.c (list_processes_1): Fix indentation level of the
27414 command column.
27415
27416 2007-11-23 Andreas Schwab <schwab@suse.de>
27417
27418 * editfns.c (Fformat): Handle %c specially since it requires the
27419 argument to be of type int.
27420
27421 2007-11-23 Markus Triska <markus.triska@gmx.at>
27422
27423 * emacs.c (main): Call init_editfns before init_process, since
27424 init_process sets Vprocess_connection_type depending on OS release.
27425
27426 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
27427
27428 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
27429 (find_symbol_value): Use do_symval_forwarding.
27430
27431 * data.c (set_internal): Set the value in the `cons-cell' (for
27432 Buffer_Local_values) not only for frame-local variables.
27433
27434 2007-11-22 Andreas Schwab <schwab@suse.de>
27435
27436 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
27437 values to sprintf.
27438 * keymap.c (Fsingle_key_description): Likewise.
27439 * print.c (print_object): Likewise.
27440
27441 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
27442
27443 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
27444 file for image is nil.
27445
27446 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
27447
27448 * term.c: Include stdarg.h.
27449 (fatal): Implement using varargs.
27450 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
27451
27452 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27453
27454 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
27455 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
27456 Update call to buffer_slot_type_mismatch.
27457 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
27458 (buffer_slot_type_mismatch): Update.
27459 * buffer.c (buffer_local_types): Remove.
27460 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
27461 (defvar_per_buffer): Set the type in the buffer_objfwd.
27462
27463 2007-11-21 Jason Rumney <jasonr@gnu.org>
27464
27465 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
27466 CreateFileMapping returns NULL on failure.
27467
27468 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
27469
27470 * search.c (Fset_match_data): Remove the `evaporate' feature.
27471 (unwind_set_match_data): Don't use the `evaporate' feature.
27472
27473 2007-11-21 Jason Rumney <jasonr@gnu.org>
27474
27475 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
27476
27477 * w32console.c (w32con_write_glyphs): Remove unused variables.
27478
27479 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
27480
27481 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
27482
27483 * s/darwin.h (MULTI_KBOARD): Remove.
27484
27485 * macfns.c (x_create_tip_frame, Fx_create_frame)
27486 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
27487
27488 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
27489
27490 * buffer.c (Fbuffer_local_value): Remove redundant test.
27491 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
27492 than in `current-buffer' to match the comment.
27493 Do the swap using swap_in_global_binding.
27494
27495 * data.c (store_symval_forwarding, set_internal):
27496 * eval.c (specbind): Remove dead code.
27497
27498 * coding.c (detect_coding, Fupdate_coding_systems_internal):
27499 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
27500 Since we do not want to see internal Lisp_*fwd objects here.
27501
27502 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
27503
27504 * sysdep.c (init_system_name): Use getaddrinfo if available.
27505
27506 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
27507 (x_scroll_bar_note_movement): start, end, with, height in struct
27508 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
27509
27510 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
27511
27512 * puresize.h (BASE_PURESIZE): Increase to 1190000.
27513
27514 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
27515
27516 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
27517 This undoes Richard's change of 14-Oct-2002.
27518
27519 * alloc.c (allocate_other_vector):
27520 * lisp.h (allocate_other_vector): Remove.
27521
27522 * window.c (struct save_window_data): Move non-lisp data to the end
27523 and make it `int' rather than Lisp_Object.
27524 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
27525 Done wrap/unwrap integer values.
27526 (Fset_window_configuration, compare_window_configurations):
27527 Update use of fields to their new types.
27528
27529 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
27530 Turn integer fields into `int'. Merge x_window_low and x_window_high.
27531 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
27532 (SET_SCROLL_BAR_X_WINDOW): Remove.
27533 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
27534 Access the new x_window field directly.
27535 * xterm.c (x_scroll_bar_create): Use a pseudovector.
27536 Don't wrap/unwrap integers into Lisp_Objects.
27537 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
27538 (x_scroll_bar_report_motion):
27539 Don't wrap/unwrap integers into Lisp_Objects.
27540 (x_term_init): Use SDATA.
27541 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
27542 (x_scroll_bar_set_handle, x_scroll_bar_remove)
27543 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
27544 (x_scroll_bar_report_motion, x_scroll_bar_clear):
27545 * xfns.c (x_set_background_color):
27546 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
27547 Access the new x_window field directly.
27548
27549 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
27550 (allocate_pseudovector): Make non-static.
27551
27552 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
27553 (allocate_pseudovector): Declare.
27554 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
27555
27556 2007-11-15 Andreas Schwab <schwab@suse.de>
27557
27558 * editfns.c (Fformat): Correctly format EMACS_INT values.
27559 Also take precision into account when formatting an integer.
27560
27561 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
27562
27563 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
27564
27565 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
27566 (syms_of_keyboard): Defsubr it.
27567
27568 * data.c (swap_in_global_binding): Fix longstanding bug where
27569 store_symval_forwarding was not called with the right second argument,
27570 thus causing objfwd-ing from being dropped.
27571
27572 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27573
27574 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
27575 (Fx_display_pixel_height, Fx_display_planes)
27576 (Fx_display_color_cells, Fx_server_max_request_size)
27577 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27578 (Fx_display_visual_class, Fx_display_save_under):
27579 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
27580 (Fx_display_pixel_height, Fx_display_planes)
27581 (Fx_display_color_cells, Fx_server_max_request_size)
27582 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
27583 (Fx_display_mm_height, Fx_display_mm_width)
27584 (Fx_display_backing_store, Fx_display_visual_class)
27585 (Fw32_select_font, Fx_display_save_under):
27586 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
27587 (Fx_display_pixel_height, Fx_display_planes)
27588 (Fx_display_color_cells, Fx_server_max_request_size)
27589 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
27590 (Fx_display_save_under): Fix typos in docstrings.
27591
27592 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
27593
27594 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
27595 corresponding to deleted entries; they are an implementation detail.
27596 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
27597 Remove variables.
27598 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
27599 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
27600 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
27601 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
27602 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
27603 (Fw32_define_rgb_color, Fw32_load_color_file)
27604 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
27605 Fix typos in docstrings.
27606 (Fx_server_version): Reflow docstring.
27607 (Fw32_shell_execute): Doc fixes.
27608
27609 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
27610
27611 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
27612 if w32_parse_hot_key returned nil.
27613
27614 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
27615
27616 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
27617
27618 2007-11-09 Jason Rumney <jasonr@gnu.org>
27619
27620 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
27621
27622 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
27623
27624 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
27625 Remove W32_SCROLL_BAR_CLICK_EVENT.
27626
27627 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
27628 Add MULTIMEDIA_KEY_EVENT.
27629
27630 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
27631 (lispy_multimedia_keys) [WINDOWSNT]: New array.
27632 (make_lispy_event) [WINDOWSNT]: Use it to translate
27633 MULTIMEDIA_KEY_EVENT.
27634
27635 * w32term.h (WM_APPCOMMAND): Define if not already.
27636 (GET_APPCOMMAND_LPARAM): Likewise.
27637
27638 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
27639 WM_APPCOMMAND.
27640
27641 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
27642 (syms_of_w32fns): Export and initialize it.
27643 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
27644
27645 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
27646
27647 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
27648 twice.
27649
27650 * xdisp.c (handle_face_prop): Fix last change.
27651
27652 2007-11-09 Richard Stallman <rms@gnu.org>
27653
27654 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
27655 not just for after-strings and before-strings.
27656 Call face_for_overlay_string and pass the overlay to it.
27657 (handle_display_prop): Determine whether property came from an overlay.
27658 Pass OVERLAY arg to handle_single_display_spec.
27659 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
27660 (load_overlay_strings): Fill in it->string_overlays.
27661 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
27662
27663 * xfaces.c (face_for_overlay_string): Function renamed from
27664 face_at_buffer_position_no_overlays, and add arg OVERLAY.
27665
27666 * dispextern.h (struct it): New elt string_overlays.
27667 New elt from_overlay, also in stack.
27668 Rearrange a few elements.
27669 (face_for_overlay_string): Decl renamed from
27670 face_at_buffer_position_no_overlays, and add argument.
27671
27672 2007-11-09 Richard Stallman <rms@gnu.org>
27673
27674 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
27675 to get the base face for an overlay string.
27676
27677 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
27678
27679 * xfaces.c (face_at_buffer_position_no_overlays): New function.
27680
27681 * xdisp.c (handle_stop): Move some code out of loop.
27682
27683 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27684
27685 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
27686 Fix conversion from Lisp object to ATSUFontID.
27687
27688 2007-11-09 Jason Rumney <jasonr@gnu.org>
27689
27690 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
27691
27692 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27693
27694 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
27695 Don't assume regions are aligned to page boundary.
27696 (print_load_command_name): Add LC_UUID if defined.
27697
27698 2007-11-09 Richard Stallman <rms@gnu.org>
27699
27700 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
27701
27702 2007-11-07 Jason Rumney <jasonr@gnu.org>
27703
27704 * s/windows95.h: Remove.
27705
27706 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
27707
27708 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
27709 abort with a message on unhandled store_type values.
27710
27711 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
27712
27713 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
27714 Remove HAVE_X11R5 and HAVE_X11R4.
27715
27716 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27717
27718 * Makefile.in: Remove references to sunfns.c and sunfns.o.
27719
27720 2007-11-01 Johan Bockgård <bojohan@gnu.org>
27721
27722 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
27723 Don't set s->stippled_p here, since it has already been set by
27724 x_set_glyph_string_gc from x_draw_glyph_string.
27725
27726 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
27727
27728 * sunfns.c: Remove file.
27729
27730 * m/sun386.h:
27731 * m/sun2.h:
27732 * m/sparc.h: Remove Sun windows code.
27733
27734 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
27735
27736 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
27737 (init_keyboard): Set current_kboard's window-system to nil.
27738 (tty_read_avail_input): Typo.
27739 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
27740
27741 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
27742
27743 * s/usg5-4.h:
27744 * s/usg5-3.h:
27745 * s/ptx.h:
27746 * m/is386.h:
27747 * m/ibmps2-aix.h:
27748 * Makefile.in: Remove all mentions of X10.
27749
27750 * dispnew.c (syms_of_display): Don't mention version 10.
27751
27752 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
27753
27754 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
27755 ($(BLD)/abbrev.$(O)): Remove.
27756
27757 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
27758
27759 Rewrite abbrev.c in Elisp.
27760 * image.c (Qcount): Don't declare as extern.
27761 (syms_of_image): Initialize and staticpro `Qcount'.
27762 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
27763 * emacs.c (main): Don't call syms_of_abbrev.
27764 * Makefile.in (obj): Remove abbrev.o.
27765 (abbrev.o): Remove.
27766 * abbrev.c: Remove.
27767
27768 2007-10-26 Martin Rudalics <rudalics@gmx.at>
27769
27770 * window.c (window_min_size_2): Don't count header-line.
27771
27772 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
27773
27774 * frame.h (struct frame): Move all bit fields after the first bit
27775 field to take advantage of the available space. Group all the
27776 chars together to reduce wasted space due to padding.
27777
27778 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
27779
27780 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
27781
27782 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
27783 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
27784 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
27785 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
27786 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
27787 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
27788 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
27789 (last_marked, mark_object_loop_halt): Make static.
27790
27791 * frame.c (syms_of_frame) <delete-frame-functions>:
27792 Fix typo in docstring.
27793
27794 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
27795
27796 * w32.c (init_environment): Fix tiny memory leak.
27797 (w32_get_resource): Remove unused variable `ok'.
27798
27799 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
27800
27801 Make `window-system' into a keyboard-local variable (rather than
27802 frame-local as done originally by multi-tty).
27803
27804 * keyboard.h (struct kboard): Add Vwindow_system.
27805 * keyboard.c (init_kboard): Set a default for Vwindow_system.
27806 (mark_kboards): Mark Vwindow_system.
27807
27808 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27809 (init_display): Don't set the obsolete `window-system' frame-param.
27810
27811 * xterm.c (x_term_init):
27812 * w32term.c (w32_create_terminal):
27813 * term.c (init_tty): Set Vwindow_system.
27814 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27815 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
27816
27817 * xfns.c (Fx_create_frame, x_create_tip_frame):
27818 * w32fns.c (Fx_create_frame, x_create_tip_frame):
27819 * macfns.c (Fx_create_frame):
27820 Don't set the obsolete `window-system' frame-param.
27821
27822 * frame.h (Qwindow_system): Remove.
27823 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
27824 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27825
27826 2007-10-24 Richard Stallman <rms@gnu.org>
27827
27828 * frame.c (x_figure_window_size): For fullscreen case,
27829 set USPosition | PPosition without clobbering rest of window_prompting.
27830
27831 * keyboard.c (Fcurrent_idle_time): Doc fix.
27832
27833 * print.c (Fwith_output_to_temp_buffer): Doc fix.
27834
27835 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
27836
27837 * process.c (unwind_request_sigio): Only define if __ultrix__.
27838
27839 * callproc.c (child_setup): Remove spurious *.
27840
27841 * lisp.h (Fget_text_property): Declare.
27842 (have_menus_p): Declare it here rather than in sys-dep header files.
27843 * macterm.h (have_menus_p):
27844 * msdos.h (have_menus_p):
27845 * xterm.h (have_menus_p): Remove.
27846
27847 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27848 (Fmake_variable_frame_local): Just check the variable's const-ness
27849 rather than checking nil or t.
27850
27851 2007-10-22 Jason Rumney <jasonr@gnu.org>
27852
27853 * w32fns.c: Include math.h.
27854 (w32_abort): Declaration moved to nt/config.nt.
27855
27856 * s/ms-w32.h (HAVE_STDLIB_H): Define.
27857 (abort): Redefinition moved to nt/config.nt.
27858
27859 * m/windowsnt.h: Remove.
27860
27861 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
27862
27863 * emacs.c (Fdump_emacs): Fix typo in message.
27864 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27865 <installation-directory>: Reflow docstring.
27866
27867 2007-10-22 Juri Linkov <juri@jurta.org>
27868
27869 * minibuf.c: Allow minibuffer default to be a list of default values.
27870 With empty input use the first element of this list as returned default.
27871 (string_to_object)
27872 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27873 (read_minibuf): If defalt is cons, set histstring to its car.
27874 (Fread_string): If default_value is cons, set val to its car.
27875 (Fread_buffer): If def is cons, use its car.
27876 (Fcompleting_read): If defalt is cons, set val to its car.
27877
27878 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
27879
27880 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27881
27882 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
27883
27884 * doc.c (Fdocumentation): Check for advice in all cases.
27885
27886 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
27887
27888 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27889
27890 2007-10-19 Richard Stallman <rms@gnu.org>
27891
27892 * doc.c (Fdocumentation): Check for and handle an advised function.
27893
27894 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
27895
27896 * process.c (Fset_process_filter): Doc fix.
27897
27898 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
27899
27900 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27901 which caused key-translation-map to applied repeatedly (thus breaking
27902 double-mode).
27903
27904 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27905
27906 * xselect.c (x_own_selection, x_handle_selection_clear)
27907 (x_clear_frame_selections):
27908 * w32menu.c (list_of_panes, list_of_items):
27909 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27910 * textprop.c (validate_plist, interval_has_all_properties)
27911 (interval_has_some_properties, interval_has_some_properties_list)
27912 (add_properties, text_property_list):
27913 * process.c (Fget_buffer_process, list_processes_1, status_notify):
27914 * minibuf.c (Fassoc_string):
27915 * macselect.c (x_own_selection, x_clear_frame_selections)
27916 (Fx_disown_selection_internal):
27917 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27918 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27919
27920 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
27921
27922 * process.c: Link to libs for calling res_init() if available.
27923 (Fmake_network_process): Call res_init() before getaddrinfo or
27924 gethostbyname, if possible.
27925
27926 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
27927
27928 * lread.c (read1): Set pvectype for char_tables.
27929
27930 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27931 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27932 Add type checks.
27933 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27934
27935 * alloc.c (free_misc): Use XMISCTYPE.
27936 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27937
27938 2007-10-17 Glenn Morris <rgm@gnu.org>
27939
27940 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27941 (syms_of_minibuf): Add Qcompletion_ignore_case.
27942 * dired.c (Qcompletion_ignore_case): Change to external.
27943 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27944 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27945 (Fread_file_name): Use it rather than intern'ing.
27946
27947 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27948 (Fread_coding_system): Ignore case of user input.
27949
27950 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27951
27952 * xdisp.c (handle_display_prop): Ignore display specs after
27953 replacing one when string text is being replaced.
27954 (handle_single_display_spec): Pretend as if characters with display
27955 property haven't been consumed only when buffer text is being replaced.
27956
27957 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
27958
27959 * xfns.c (Fx_create_frame, Fx_display_list):
27960 * window.c (window_fixed_size_p, enlarge_window)
27961 (shrink_window_lowest_first):
27962 * macterm.c (init_font_name_table):
27963 * macfns.c (Fx_create_frame, Fx_display_list):
27964 * lread.c (close_load_descs):
27965 * keyboard.c (read_char_x_menu_prompt):
27966 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27967 * coding.c (code_convert_region_unwind): Test the type of an object
27968 rather than just !NILP before extracting data from it.
27969
27970 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27971
27972 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27973 (XMISCANY): New macro.
27974 (XMISCTYPE): Use it.
27975 (struct Lisp_Misc_Any): New type.
27976 (union Lisp_Misc): Use it.
27977 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27978 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27979 (find_symbol_value, set_internal, default_value, Fset_default)
27980 (Fmake_variable_buffer_local, Fmake_local_variable)
27981 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27982 (Flocal_variable_if_set_p, Fvariable_binding_locus):
27983 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27984 * alloc.c (allocate_buffer): Set the size and tag.
27985 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27986 Use XMISCANY.
27987 (die): Follow the GNU convention for error messages.
27988 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27989 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27990 tag any more.
27991 (set_buffer_internal_1):
27992 * frame.c (store_frame_param):
27993 * eval.c (specbind):
27994 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27995
27996 * doc.c (Fsnarf_documentation): Simplify.
27997
27998 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
27999
28000 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
28001 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
28002
28003 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
28004
28005 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
28006
28007 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
28008
28009 * eval.c (do_autoload): Don't save autoloads.
28010
28011 * data.c (Ffset): Save autoload of the function being set.
28012
28013 2007-10-07 John Paul Wallington <jpw@pobox.com>
28014
28015 * xfns.c (x_create_tip_frame): Set the `display-type' frame
28016 parameter before setting up faces.
28017
28018 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28019
28020 * ccl.c (Fregister_code_conversion_map):
28021 * keyboard.c (append_tool_bar_item): Reformat last change.
28022
28023 * lisp.h (eabs): Rename from `abs'. All callers changed.
28024
28025 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
28026
28027 * buffer.c (add_overlay_mod_hooklist):
28028 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
28029 * fontset.c (make_fontset):
28030 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
28031 (append_tool_bar_item):
28032 * macmenu.c (grow_menu_items):
28033 * w32menu.c (grow_menu_items):
28034 * xmenu.c (grow_menu_items): Use larger_vector.
28035
28036 2007-10-13 Eli Zaretskii <eliz@gnu.org>
28037
28038 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
28039 selected frame'' on MSDOS).
28040
28041 2007-10-12 Martin Rudalics <rudalics@gmx.at>
28042
28043 * frame.c (Qexplicit_name): New variable.
28044 (x_report_frame_params): Report it in parameter alist.
28045 (syms_of_frame): Intern and staticpro it.
28046
28047 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
28048
28049 * macfns.c (x_create_tip_frame): Set terminal for frame.
28050
28051 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
28052
28053 * frame.c (Qenvironment): Remove.
28054 (syms_of_frame) <Qenvironment>: Don't initialize.
28055 (Fdelete_frame): Don't treat the `environment' param specially.
28056 * frame.h (Qenvironment): Don't declare.
28057 * callproc.c (set_initial_environment): Don't set unused frame param.
28058
28059 * frame.c (Fframe_with_environment): Remove.
28060 (syms_of_frame) <Sframe_with_environment>: Don't declare.
28061
28062 * lisp.h (Fframe_with_environment): Don't declare.
28063
28064 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
28065
28066 * indent.c (indent_tabs_mode, last_known_column)
28067 (last_known_column_modified): Make static.
28068 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
28069
28070 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
28071
28072 * puresize.h (BASE_PURESIZE): Increase to 1170000.
28073
28074 2007-10-09 Jason Rumney <jasonr@gnu.org>
28075
28076 * w32term.c (x_set_window_size): Disable code that attempts to tell
28077 Lisp code about a size change before it actually happens.
28078
28079 2007-10-09 Richard Stallman <rms@gnu.org>
28080
28081 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
28082 return HANDLED_RETURN.
28083
28084 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28085
28086 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
28087 when there's an unread command event.
28088
28089 * frame.c (focus_follows_mouse): Move here from frame.el to allow
28090 window autoselection act appropriately when leaving selected frame.
28091 (syms_of_frame): Initialize focus_follows_mouse.
28092 * frame.h (focus_follows_mouse): Extern it.
28093 * macterm.c (XTread_socket): When focus_follows_mouse is nil
28094 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
28095 * msdos.c (dos_rawgetc): Likewise.
28096 * w32term.c (w32_read_socket): Likewise.
28097 * xterm.c (handle_one_xevent): Likewise.
28098 * xdisp.c (syms_of_xdisp): In doc-string of
28099 mouse-autoselect-window mention focus-follows-mouse.
28100
28101 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28102
28103 * macterm.c (mac_load_query_font): Fix missing return value.
28104 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
28105 Add BLOCK_INPUT.
28106
28107 2007-10-08 Richard Stallman <rms@gnu.org>
28108
28109 * xdisp.c (get_window_cursor_type): Implement documented behavior
28110 for cursor-in-non-selected-windows = t.
28111
28112 2007-10-08 Jason Rumney <jasonr@gnu.org>
28113
28114 * w32.c (w32_get_resource): Always close registry keys.
28115
28116 2007-10-08 Jason Rumney <jasonr@gnu.org>
28117
28118 * makefile.w32-in (LIBS): Add COMCTL32.
28119
28120 * w32fns.c (globals_of_w32fns): Init common controls.
28121
28122 2007-10-08 Richard Stallman <rms@gnu.org>
28123
28124 * image.c (our_memory_buffer): Rename from omfib_buffer.
28125
28126 2007-10-08 Richard Stallman <rms@gnu.org>
28127
28128 * buffer.c (Foverlays_at): Doc fix.
28129
28130 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
28131
28132 * fns.c (Fplist_put): Preserve uneven tail data.
28133
28134 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
28135
28136 * termhooks.h (enum event_kind): Remove trailing comma.
28137
28138 * frame.h (enum): Remove trailing comma.
28139
28140 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
28141
28142 * w32proc.c (delete_child): Don't terminate threads of zombies.
28143
28144 2007-10-08 Martin Rudalics <rudalics@gmx.at>
28145
28146 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
28147
28148 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
28149 last-repeatable-command.
28150 (init_kboard): Initialize Vlast_repeatable_command.
28151 (command_loop_1): Set it to real_this_command unless that was
28152 bound to an input event.
28153 (mark_kboards): Mark it.
28154
28155 2007-10-08 Richard Stallman <rms@gnu.org>
28156
28157 * eval.c (condition-case): Doc fix.
28158
28159 2007-10-08 Masatake YAMATO <jet@gyve.org>
28160
28161 * xfaces.c (tty_supports_face_attributes_p): Fix code
28162 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
28163 was copied and not edited.
28164
28165 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
28166
28167 Add new `input-decode-map' keymap and use it for terminal
28168 escape sequences.
28169 * keyboard.h (struct kboard): Add Vinput_decode_map.
28170 Remove Vlocal_key_translation_map.
28171 * keyboard.c (read_key_sequence): Add support for input-decode-map.
28172 (init_kboard): Init input-decode-map.
28173 Replace local-key-translation-map back with key-translation-map.
28174 (syms_of_keyboard): Declare input-decode-map.
28175 Remove local-key-translation-map. Update docstrings.
28176 (mark_kboards): Mark Vinput_decode_map.
28177 Don't mark Vlocal_key_translation_map.
28178 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
28179 Replace local-key-translation-map back with key-translation-map.
28180 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
28181 Bind in input-decode-map rather than function-key-map.
28182
28183 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
28184 This was made redundant by the previous introduction of XSETPVECTYPE.
28185
28186 2007-10-09 Richard Stallman <rms@gnu.org>
28187
28188 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
28189
28190 2007-09-29 Richard Stallman <rms@gnu.org>
28191
28192 * eval.c (internal_condition_case_2, internal_condition_case_1)
28193 (internal_condition_case): Reenable abort if x_catching_errors ()
28194 to see if that really happens and why.
28195
28196 2007-10-06 Andreas Schwab <schwab@suse.de>
28197
28198 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
28199
28200 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
28201
28202 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
28203
28204 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
28205
28206 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
28207
28208 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
28209
28210 * window.h (struct window):
28211 * window.c (struct save_window_data, struct saved_window):
28212 * termhooks.h (struct terminal):
28213 * process.h (struct Lisp_Process):
28214 * frame.h (struct frame):
28215 * buffer.h (struct buffer):
28216 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
28217 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
28218 The size field of (pseudo)vectors is now unsigned.
28219 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
28220
28221 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
28222 Turn `count' into an integer.
28223
28224 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
28225 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
28226 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
28227 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
28228 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
28229
28230 * alloc.c (allocate_pseudovector): New fun.
28231 (ALLOCATE_PSEUDOVECTOR): New macro.
28232 (allocate_window, allocate_terminal, allocate_frame)
28233 (allocate_process): Use it.
28234 (mark_vectorlike): New function.
28235 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
28236 (mark_terminals): Use it.
28237 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
28238 (Fmake_byte_code): Use XSETPVECTYPE.
28239
28240 * frame.c (Fframe_parameters): Minor simplification.
28241
28242 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
28243
28244 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
28245
28246 * buffer.c (Fget_buffer_create, init_buffer_once):
28247 * lread.c (defsubr):
28248 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
28249
28250 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
28251 defined differently in the m/*.h files.
28252 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
28253 (XSETPVECTYPE): New macro.
28254 (XSETPSEUDOVECTOR): Use it.
28255
28256 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
28257 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
28258
28259 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
28260 * lread.c (defvar_per_buffer):
28261 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
28262
28263 * window.c (candidate_window_p): Only consider as visible frames that
28264 are on the same terminal.
28265
28266 * m/ibms390x.h (MARKBIT): Remove unused macro.
28267
28268 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
28269
28270 * lread.c (Fload): Fix typo in docstring.
28271
28272 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
28273
28274 * floatfns.c (Fexpt): Manually check for overflows, so that a power
28275 of a non-zero value can't yield zero.
28276
28277 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
28278
28279 * term.c (term_clear_mouse_face, term_mouse_highlight)
28280 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
28281
28282 * print.c (safe_debug_print): Use XHASH.
28283
28284 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
28285 Lisp elements such as tags.
28286 (XHASH): New macro.
28287 (EQ): Use it.
28288 (SREF, SSET, STRING_COPYIN): Use SDATA.
28289 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
28290
28291 * alloc.c (mark_terminal): Remove left-over declaration.
28292 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
28293 (allocate_vectorlike): Remove type argument. Adjust callers.
28294 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
28295 Only handle the one remaining MEM_TYPE_VECTORLIKE.
28296
28297 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
28298 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
28299 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
28300 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
28301 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
28302 Use them.
28303
28304 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
28305 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
28306 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
28307
28308 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
28309
28310 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
28311 loaded by default.
28312
28313 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
28314
28315 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
28316 on this tty.
28317 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
28318
28319 * term.c (mouse_face_window): Rename from Qmouse_face_window.
28320 Update all users.
28321 (handle_one_term_event): Use Gpm_DrawPointer.
28322 (Fgpm_mouse_start): Rename from Fterm_open_connection.
28323 Signal errors instead of returning nil. Always return nil.
28324 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
28325 Make it a noop if gpm-mouse was not activated.
28326 (syms_of_term): Update names.
28327
28328 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
28329
28330 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
28331 (init_sys_modes): Check that gpm_tty is the current tty.
28332
28333 * alloc.c (allocate_terminal): Set the vector size to only count the
28334 lisp fields. Initialize those to nil.
28335 (mark_object): Don't treat terminals specially.
28336 (mark_terminal): Remove.
28337 (mark_terminals): Use mark_object instead.
28338
28339 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
28340 the GC to the beginning.
28341
28342 * indent.h:
28343 * indent.c: Use EMACS_INT for ints coming from Elisp data.
28344
28345 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
28346
28347 2007-09-25 Jason Rumney <jasonr@gnu.org>
28348
28349 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
28350
28351 * w32console.c (create_w32cons_output): Remove.
28352
28353 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28354
28355 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
28356 (reset_sys_modes): Use reset_terminal_modes_hook.
28357
28358 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
28359
28360 * eval.c (do_autoload): Don't output any message.
28361
28362 2007-09-24 Juri Linkov <juri@jurta.org>
28363
28364 * emacs.c (standard_args): Change priority of "--no-splash"
28365 from 40 to 3. Add "--no-desktop" with the same priority.
28366
28367 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
28368
28369 * alloc.c (gc_sweep): Check cons cell mark bits word by word
28370 and optimize the case where they are all 1.
28371
28372 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
28373
28374 * lisp.h (abs): Define if not defined.
28375 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
28376 Don't define `abs', since it's defined in lisp.h.
28377
28378 2007-09-22 Eli Zaretskii <eliz@gnu.org>
28379
28380 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
28381 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
28382 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
28383 (init_tty): Use DEV_TTY instead of "/dev/tty".
28384 [WINDOWSNT]: No need to protect from NAME arg being null.
28385
28386 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
28387
28388 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
28389 up the tty state.
28390
28391 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28392
28393 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
28394 (gpm_tty): Change its type.
28395 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
28396 (gpm_tty): Change its type and initialize it.
28397 (Fterm_open_connection): Check the frame is indeed a tty.
28398 Use the new gpm_tty.
28399 (Fterm_close_connection): Use the new gpm_tty.
28400 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
28401 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
28402
28403 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
28404
28405 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
28406 underline_color, to draw strike-through.
28407
28408 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
28409
28410 * lisp.h (allocate_terminal): Declare.
28411
28412 * window.c (candidate_window_p): Consider frames that are being placed
28413 by the user as somewhere between visible and iconified.
28414 (window_loop): Prefer windows on the current frame.
28415 (Fselect_window): Move the use of select-frame to the beginning so we
28416 can just delegate all the work (it'll call us back anyway).
28417
28418 * frame.c (Qdisplay_environment_variable):
28419 * frame.h (Qdisplay_environment_variable): Delete.
28420
28421 * .gdbinit (xbacktrace): Print the arg's address rather than the value
28422 of the first arg, since that value may be a union.
28423
28424 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
28425 parameter rather than Qdisplay_environment_variable. If all else
28426 fails, look for DISPLAY in initial-environment.
28427
28428 2007-09-21 Glenn Morris <rgm@gnu.org>
28429
28430 * Makefile.in (emacstool): Remove target.
28431 (lisp, shortlisp): Remove termdev.elc.
28432
28433 2007-09-21 Markus Triska <markus.triska@gmx.at>
28434
28435 * xterm.c (x_delete_display): Compile session management conditionally.
28436
28437 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
28438
28439 * callproc.c (getenv_internal_1): New function.
28440 (getenv_internal): Use it.
28441 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
28442
28443 * terminal.c (get_terminal): Don't accept ints to represent terminals.
28444 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
28445 (Fset_terminal_parameter): Work with dead terminals as well.
28446 (Fmodify_terminal_parameters): Remove.
28447
28448 * terminal.c (get_terminal): Handle terminals.
28449 Make sure the terminal returned is live.
28450 (create_terminal): Use allocate_terminal.
28451 (mark_terminals): Move to alloc.c.
28452 (delete_terminal): Use terminal->name as liveness status.
28453 NULL out fields after freeing their contents.
28454 Don't deallocate the object.
28455 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
28456 rather than an int.
28457 (Fterminal_live_p): Accept non-integer arguments.
28458 (Fterminal_list): Return terminal objects rather than an ints.
28459
28460 * alloc.c (enum mem_type): New member for `terminal' objects.
28461 (allocate_terminal): New function.
28462 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
28463 Handle terminals.
28464 (mark_terminal): New fun.
28465 (mark_terminals): Move from terminal.c.
28466
28467 * term.c (get_tty_terminal): Don't treat output_initial specially.
28468 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
28469 (delete_tty): Use terminal->name as liveness status.
28470
28471 * termhooks.h (struct terminal): Make it into a pseudovector.
28472 Remove `deleted' replaced by checking `name's nullness.
28473
28474 * print.c (print_object): Handle terminals.
28475
28476 * lisp.h (enum pvec_type): New `terminal' pseudovector.
28477 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
28478
28479 * frame.c (make_terminal_frame):
28480 * keyboard.c (tty_read_avail_input):
28481 * w32term.c (x_delete_terminal):
28482 * xfns.c (Fx_create_frame, x_create_tip_frame):
28483 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
28484
28485 2007-09-20 Glenn Morris <rgm@gnu.org>
28486
28487 * process.c (Fmake_network_process): Doc fix.
28488
28489 2007-09-19 Jason Rumney <jasonr@gnu.org>
28490
28491 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
28492
28493 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
28494
28495 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
28496 Fix a C warning regarding variable constness.
28497
28498 * xterm.c (handle_one_xevent): Fix a C warning.
28499
28500 2007-09-18 Jason Rumney <jasonr@gnu.org>
28501
28502 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
28503
28504 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
28505
28506 * gtkutil.c (gdpy_def): New variable.
28507 (xg_initialize): Initialize gdpy_def.
28508 (xg_display_close): If no other display exists, set gdpy_def to a
28509 new connection.
28510
28511 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
28512
28513 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
28514 when we have no file name for the icon.
28515 (xg_tool_bar_expose_callback): Remove.
28516 (xg_create_tool_bar): Don't connect expose signal to
28517 xg_tool_bar_expose_callback.
28518 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
28519
28520 2007-09-16 Andreas Schwab <schwab@suse.de>
28521
28522 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
28523 values instead of zapping them.
28524
28525 2007-09-14 Glenn Morris <rgm@gnu.org>
28526
28527 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
28528 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
28529 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
28530 scope and rename to omfib_buffer for clarity.
28531 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
28532
28533 2007-09-14 Kenichi Handa <handa@m17n.org>
28534
28535 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
28536
28537 2007-09-13 Jason Rumney <jasonr@gnu.org>
28538
28539 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
28540
28541 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
28542
28543 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
28544 (mac_term_init): Call here instead, passing rif.
28545
28546 2007-09-13 Glenn Morris <rgm@gnu.org>
28547
28548 * s/hpux.h: No longer define `static' as nothing.
28549
28550 2007-09-13 Johan Bockgård <bojohan@gnu.org>
28551
28552 * callint.c (Fcall_interactively): Remove unused var `fun'.
28553
28554 2007-09-12 Romain Francoise <romain@orebokech.com>
28555
28556 * window.c (prefer_window_split_horizontally, display_buffer):
28557 Revert 2007-09-08 change.
28558
28559 2007-09-12 Glenn Morris <rgm@gnu.org>
28560
28561 * alloca.c: Remove file.
28562 * Makefile.in (alloca): Do not undef.
28563 (allocaobj, alloca.o): Remove.
28564 (otherobj): Remove allocaobj.
28565 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
28566 * regex.c (C_ALLOCA): Remove all references and code that was only
28567 used when this was defined.
28568 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
28569 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
28570 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
28571
28572 * Makefile.in (SOURCES, unlock, relock): Delete.
28573
28574 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
28575 (menu_grab_callback): All uses changed.
28576
28577 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
28578 (x_reply_selection_request): All uses changed.
28579
28580 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
28581
28582 * lread.c (load_warn_old_style_backquotes): Change message to look
28583 better when it appears in the middle of byte-compiler messages.
28584
28585 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
28586
28587 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
28588
28589 * xterm.c (x_create_terminal): Add comment.
28590
28591 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
28592
28593 2007-09-10 Richard Stallman <rms@gnu.org>
28594
28595 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
28596
28597 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
28598
28599 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
28600 (DEFUN): Document `intspec', use it instead of `prompt'.
28601
28602 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
28603
28604 * data.c (Finteractive_form): If the interactive specification starts
28605 with a `(', use it as a Lisp form.
28606
28607 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
28608 name and file modes.
28609
28610 * callint.c (Fcall_interactively): Comment fixes.
28611
28612 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
28613
28614 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
28615 and compiled functions.
28616
28617 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
28618
28619 * window.c (prefer_window_split_horizontally): New variable.
28620 (display_buffer): Consider splitting window horizontally depending
28621 on prefer_window_split_horizontally.
28622
28623 2007-09-08 Eli Zaretskii <eliz@gnu.org>
28624
28625 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
28626
28627 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28628
28629 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
28630
28631 * frame.c (x_set_frame_parameters): Check number is positive before
28632 using XFASTINT.
28633
28634 * window.c (freeze_window_start): Don't presume selected_window holds
28635 a window object.
28636 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
28637
28638 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
28639
28640 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
28641
28642 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
28643
28644 * window.c (Vsplit_window_preferred_function): New var.
28645 (Fdisplay_buffer): Use it.
28646 (syms_of_window): Export, and initialize it.
28647
28648 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
28649
28650 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
28651
28652 2007-09-06 Glenn Morris <rgm@gnu.org>
28653
28654 * gtkutil.c (menu_grab_callback) <cnt>:
28655 * xselect.c (x_reply_selection_request) <cnt>: Move static
28656 variable to file scope.
28657
28658 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
28659
28660 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
28661 consistent values of selected_frame and selected_window.
28662
28663 2007-09-04 Jason Rumney <jasonr@gnu.org>
28664
28665 * w32console.c (initialize_w32_display): Zero unused hooks.
28666
28667 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28668
28669 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
28670 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
28671
28672 2007-09-04 Jason Rumney <jasonr@gnu.org>
28673
28674 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
28675 in w32console.c. Set up input. Remove XXX comments that have been
28676 confirmed as correct.
28677
28678 * s/ms-w32.h (MULTI_KBOARD): Define.
28679
28680 * w32console.c (one_and_only_w32cons): Remove.
28681 (initialize_w32_display): Take terminal argument.
28682
28683 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
28684 initialize_w32_display.
28685 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
28686
28687 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
28688
28689 * keyboard.c (discard_mouse_events): Discard it.
28690 (make_lispy_event): Translate it to a lisp event.
28691 (lispy_wheel_names): Add wheel-left and right events.
28692 (syms_of_keyboard): Enlarge wheel_syms.
28693
28694 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
28695 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
28696
28697 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
28698
28699 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
28700 from WM_MOUSEHWHEEL.
28701 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
28702
28703 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
28704 terminal.
28705
28706 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
28707 keyboard for the terminal.
28708
28709 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
28710
28711 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
28712 (Vresume_tty_hook): Rename from Vresume_tty_functions.
28713 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
28714 and resume-tty-function to resume-tty-hook.
28715 (Fsuspend_tty, Fresume_tty): Use new names.
28716
28717 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
28718
28719 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
28720 if it starts with "n:".
28721
28722 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
28723
28724 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
28725
28726 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
28727
28728 * frame.h:
28729 * frame.c (Qterm_environment_variable): Remove.
28730 (syms_of_frame): Don't init and staticpro it.
28731
28732 * callproc.c (getenv_internal): Remove special case for $TERM.
28733
28734 * callproc.c (Vinitial_environment): New variable.
28735 (set_initial_environment): Initialize it.
28736 (syms_of_callproc): Declare it.
28737 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
28738 TERM under which a process runs is never related to the TERM in which
28739 Emacs is running.
28740
28741 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28742
28743 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
28744 * s/darwin.h: ... do it here.
28745
28746 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
28747
28748 * lisp.h (set_initial_environment): Rename from set_global_environment.
28749
28750 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
28751 removed by mistake on the multi-tty branch.
28752
28753 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
28754 (Fmodify_frame_parameters): Return a value.
28755
28756 * image.c (png_load): Comment-out var only used in commented-out code.
28757
28758 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
28759 before passing it to mark_object.
28760
28761 * xfaces.c (internal_resolve_face_name): Return a value.
28762 (internal_resolve_face_name, resolve_face_name_error): Comment out.
28763
28764 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
28765 (x_icon): Comment-out var only used in commented-out code.
28766
28767 2007-08-29 Romain Francoise <romain@orebokech.com>
28768
28769 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
28770 QUIT hasn't been provided.
28771
28772 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
28773
28774 * callproc.c (child_setup, getenv_internal): Use the
28775 display-environment-variable and term-environment-variable frame params.
28776 (set_initial_environment): Initialise Vprocess_environment.
28777
28778 * config.in: Disable multi-keyboard support on a mac.
28779
28780 * frame.c (Qterm_environment_variable)
28781 (Qdisplay_environment_variable): New variables.
28782 (syms_of_frame): Intern and staticpro them.
28783 (Fmake_terminal_frame): Disable output method test.
28784
28785 * frame.h: Declare them here.
28786
28787 * macfns.c (x_set_mouse_color): Get rif from the frame.
28788 (x_set_tool_bar_lines): Don't use updating_frame.
28789 (mac_window): Add 2 new parameters for consistency with other systems.
28790 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
28791 frame parameters following what is done in X11 and w32. Don't use
28792 FRAME_MAC_DISPLAY_INFO.
28793 (Fx_open_connection, start_hourglass): Remove window-system check.
28794 (x_create_tip_frame): Get the keyboard from the terminal.
28795
28796 * macmenu.c: Reorder includes.
28797 (Fx_popup_menu): Use terminal specific mouse_position_hook.
28798
28799 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
28800 terminal parameter.
28801 (x_clear_frame): Add a frame parameter.
28802 (note_mouse_movement): Get rif from the frame.
28803 (mac_term_init): Initialize the terminal.
28804 (mac_initialize): Make static and move terminal initialization ...
28805 (mac_create_terminal): ... to this new function.
28806
28807 * macterm.h (struct mac_display_info): Add terminal.
28808 (mac_initialize): Delete declaration.
28809
28810 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28811
28812 * sysdep.c: Comment out text after #endif.
28813
28814 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28815 is defined. Better initialize ttys in windows. Use terminal
28816 specific mouse_position_hook.
28817
28818 * termhooks.h (union display_info): Add mac_display_info.
28819
28820 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28821 Set the default minibuffer frame, window_system and the rest of the
28822 frame parameters following what is done in X11.
28823
28824 * w32term.c (w32_initialize): Make static.
28825
28826 * xselect.c (x_handle_selection_clear): Only access
28827 terminal->kboard when MULTI_KBOARD is defined.
28828
28829 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28830 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28831
28832 2007-08-29 Jason Rumney <jasonr@gnu.org>
28833
28834 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28835 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28836
28837 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28838 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28839
28840 * keyboard.c (restore_kboard_configuration): Only define when
28841 MULTI_KBOARD defined.
28842
28843 * makefile.w32-in: Update dependancies from Makefile.in.
28844 (OBJ1): Add terminal.$(O)
28845
28846 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28847 Don't define function body.
28848 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28849
28850 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28851
28852 * w32.c (request_sigio, unrequest_sigio): Remove.
28853
28854 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28855 (w32con_clear_frame, w32con_clear_end_of_line)
28856 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28857 (w32con_delete_glyphs, w32con_set_terminal_window)
28858 (scroll_line, w32_sys_ring_bell): Add frame arg.
28859 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28860 Add terminal arg.
28861 (PICK_FRAME): Remove.
28862 (w32con_write_glyphs): Use frame specific terminal coding.
28863 (one_and_only_w32cons): New global variable.
28864 (initialize_w32_display): Use it for storing hooks.
28865 (create_w32cons_output): New function.
28866
28867 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28868 arg a frame.
28869
28870 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28871 Set window_system.
28872 (x_set_tool_bar_lines): Don't use updating_frame.
28873 (Fx_create_frame): Set terminal and ref count.
28874 (Fx_open_connection): Remove window-system check.
28875
28876 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28877
28878 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28879 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28880 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28881 Add frame arg.
28882 (x_delete_terminal, w32_create_terminal): New functions.
28883 (w32_term_init): Create a terminal.
28884 (w32_initialize): Move terminal specific initialization to
28885 w32_create_terminal.
28886
28887 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28888 (w32_clear_rect, w32_clear_area): Use background from frame.
28889 (w32_display_info): Add terminal.
28890 (w32_sys_ring_bell, x_delete_display): Declare here.
28891
28892 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28893
28894 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28895
28896 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
28897
28898 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28899 Fix get_named_tty calls for the controlling tty.
28900
28901 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
28902
28903 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
28904
28905 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
28906
28907 * term.c (tty_insert_glyphs): Add missing first parameter.
28908
28909 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
28910
28911 * buffer.c (Fbuffer_list, Fbury_buffer):
28912 Take frame->buried_buffer_list into account.
28913
28914 * cm.c (current_tty): New variable, for cmputc().
28915 (cmputc): Use it.
28916 (cmcheckmagic): Add tty parameter, look up terminal streams there.
28917 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
28918 (cmgoto): Add tty parameter. Pass it on to calccost().
28919 Use emacs_tputs() instead of tputs().
28920
28921 * cm.h (emacs_tputs): New macro to set current_tty, and then call
28922 tputs().
28923 (current_tty): New variable, for cmputc().
28924 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28925
28926 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28927 (internal_condition_case, internal_condition_case_1)
28928 (internal_condition_case_2): Don't abort when x_catching_errors.
28929
28930 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28931 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
28932 prevent crashes caused by bogus longjmps in read_char.
28933
28934 * keymap.h (Fset_keymap_parent): Add EXFUN.
28935
28936 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28937 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28938 Remove redundant definition.
28939
28940 * macfns.c (x_set_mouse_color, x_make_gc):
28941 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28942
28943 * w32term.c (x_free_frame_resources):
28944 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28945 (w32_initialize): Use the accessor macros for terminal characteristics.
28946
28947 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28948 Use the accessor macros for terminal characteristics.
28949 * msdos.c (internal_terminal_init): Use the accessor macros for
28950 terminal characteristics.
28951 (ScreenVisualBell, internal_terminal_init):
28952 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28953
28954 * termopts.h (no_redraw_on_reenter): Declare.
28955
28956 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28957 (mark_terminals, mark_ttys): Declare.
28958 (Fgarbage_collect): Call them.
28959 (mark_object): Mark buried_buffer_list.
28960
28961 * prefix-args.c: Include stdlib.h for exit.
28962
28963 * syssignal.h: Add comment.
28964
28965 * indent.c: Include stdio.h.
28966
28967 * window.h (Vinitial_window_system): Declare.
28968 (Vwindow_system): Delete declaration.
28969
28970 * fontset.c (Finternal_char_font): Use FRAME_RIF.
28971
28972 * image.c (lookup_image): Don't initialize `c' until the xasserts
28973 have been run.
28974
28975 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28976 FRAME_FOREGROUND_PIXEL.
28977
28978 * print.c (print_preprocess): Don't lose print_depth levels while
28979 iterating.
28980
28981 * widget.c (update_from_various_frame_slots):
28982 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28983
28984 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28985 frames.
28986 (window_internal_height): Remove bogus make_number call.
28987 (init_window_once): Call make_terminal_frame with two zero parameters.
28988
28989 * fileio.c (Fread_file_name): Update comment.
28990
28991 * callint.c (Fcall_interactively):
28992 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28993 Make sure it is correctly unwound.
28994
28995 * xsmfns.c (x_session_close): New function.
28996
28997 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28998 Delete declarations.
28999
29000 * xterm.h: Remove declaration for x_fully_uncatch_errors.
29001 (x_output): Remove background_pixel and foreground_pixel fields.
29002 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
29003 (x_delete_device, x_session_close): Declare.
29004
29005 * lread.c: Include setjmp.h. Update declaration of `read_char'.
29006 (read_filtered_event): Call `read_char' with a local
29007 `wrong_kboard_jmpbuf'.
29008
29009 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
29010 Don't call single_kboard_state. Use FRAME_RIF.
29011
29012 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
29013 systems.
29014
29015 * lisp.h (set_process_environment): Rename to `set_global_environment'.
29016 (Fframe_with_environment, Fset_input_meta_mode)
29017 (Fset_quit_char): EXFUN.
29018 (x_create_device, tty_output, terminal, tty_display_info): Declare.
29019 (init_sys_modes, reset_sys_modes): Update prototypes.
29020 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
29021
29022 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
29023 Vlocal_key_translation_map, and Vkeyboard_translate_table.
29024 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
29025 Delete declarations.
29026 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
29027 (temporarily_switch_to_single_kboard, tty_read_avail_input):
29028 New declarations.
29029
29030 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
29031 already does that during init_display(). Call syms_of_keymap
29032 before syms_of_keyboard. Call `syms_of_terminal'.
29033 Call set_initial_environment, not set_process_environment.
29034 (shut_down_emacs): Call reset_all_sys_modes() instead of
29035 reset_sys_modes().
29036
29037 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
29038 (internal_resolve_face_name, resolve_face_name_error): New functions.
29039 (resolve_face_name): Protect against loops and errors thrown by Fget.
29040 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
29041 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
29042
29043 * scroll.c: Replace CURTTY() with local variables throughout the
29044 file (where applicable).
29045 (calculate_scrolling, calculate_direct_scrolling)
29046 (scrolling_1, scroll_cost): Use the accessor macros for terminal
29047 characteristics.
29048
29049 * keymap.c (Vfunction_key_map): Remove.
29050 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
29051 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
29052 (Vkey_translation_map): Remove.
29053 (syms_of_keymap): Remove DEFVAR for key-translation-map.
29054 (Fdescribe_buffer_bindings)
29055 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
29056 Update for terminal-local key-translation-map.
29057
29058 * Makefile.in (callproc.o): Update dependencies.
29059 (lisp, shortlisp): Add termdev.elc.
29060 (obj): Add terminal.o.
29061 (terminal.o): Add dependencies.
29062 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
29063 (data.o, fns.o): Add termhooks.h dependency.
29064 (SOME_MACHINE_LISP): Add dnd.elc.
29065 (minibuf.o): Fix typo.
29066 Update dependencies.
29067
29068 * data.c (do_symval_forwarding, store_symval_forwarding)
29069 (find_symbol_value): Use the selected frame's keyboard, not
29070 current_kboard.
29071
29072 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
29073 Vwindow_system.
29074
29075 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
29076 Fmenu_bar_open.
29077 (syms_of_xmenu): Update defsubr.
29078 (mouse_position_for_popup, Fx_popup_menu)
29079 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
29080 (set_frame_menubar, free_frame_menubar)
29081 (create_and_show_popup_menu, xmenu_show)
29082 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
29083 an X frame.
29084
29085 * xselect.c (x_own_selection): Abort if not an X frame.
29086 (some_frame_on_display): Check if it is an X frame.
29087 (x_handle_selection_clear): Deal with MULTI_KBOARD.
29088
29089 * coding.c: Include frame.h and termhooks.h.
29090 (terminal_coding, keyboard_coding): Delete.
29091 (Fset_terminal_coding_system_internal)
29092 (Fset_keyboard_coding_system_internal)
29093 (Fkeyboard_coding_system)
29094 (Fterminal_coding_system): Add a terminal parameter.
29095 Get terminal_coding from the terminal.
29096 (init_coding_once): Don't call setup_coding_system here.
29097
29098 * dispextern.h (set_scroll_region, turn_off_insert)
29099 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
29100 (tty_clear_end_of_line, tty_setup_colors)
29101 (delete_tty, updating_frame)
29102 (produce_special_glyphs, produce_glyphs, write_glyphs)
29103 (insert_glyphs): Remove.
29104 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
29105 (tty_turn_off_highlight, get_tty_size): Add declaration.
29106 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
29107
29108 * frame.h (enum output_method): Add output_initial.
29109 (struct x_output): Delete.
29110 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
29111 Access foreground_pixel and background_pixel directly from the frame.
29112 (tty_display): Delete.
29113 (struct frame): Add buried_buffer_list, foreground_pixel,
29114 background_pixel and terminal. Delete kboard.
29115 (union output_data): Add tty.
29116 (FRAME_KBOARD): Get the kboard from the terminal.
29117 (FRAME_INITIAL_P): New macro.
29118 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
29119 (Qterm_environment_variable, Qdisplay_environment_variable)
29120 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
29121 New declarations.
29122
29123 * termchar.h (tty_output, tty_display_info): New structures.
29124 (tty_list): Declare.
29125 (FRAME_TTY, CURTTY): New macros.
29126 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
29127 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
29128 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
29129 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
29130
29131 * callproc.c: Include frame.h and termhooks.h, for terminal
29132 parameters.
29133 (add_env): New function.
29134 (child_setup): Use it.
29135 (child_setup, getenv_internal): Handle the new Vprocess_environment.
29136 (getenv_internal): Fix get_terminal_param call.
29137 (Fgetenv_internal, egetenv): Update doc.
29138 (syms_of_callproc): Initialize Vprocess_environment to nil.
29139 Register and initialize them. Remove obsolete defvars. Update doc
29140 strings.
29141 (child_setup): Handle Vlocal_environment_variables.
29142 (getenv_internal): Add terminal parameter.
29143 Handle Vlocal_environment_variables.
29144 (Fgetenv_internal): Add terminal parameter.
29145 (child_setup, getenv_internal, Fgetenv_internal): Store the local
29146 environment in a frame (not terminal) parameter. Update doc strings.
29147 (set_initial_environment): Rename from set_global_environment.
29148 Store Emacs environment in initial frame parameter.
29149
29150 * xdisp.c (redisplay_internal): Update references to
29151 `previous_terminal_frame'.
29152 (display_mode_line, Fformat_mode_line): Replace calls to
29153 `push_frame_kboard' with `push_kboard'.
29154 (get_glyph_string_clip_rects): Add extra parentheses and
29155 braces to prevent compiler warnings.
29156 (calc_pixel_width_or_height): Add xassert to check that the
29157 frame is alive. Don't call `lookup_image' on a termcap frame.
29158 (message2_nolog, message3_nolog, redisplay_internal)
29159 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
29160 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
29161 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
29162 (Fx_display_pixel_width, Fx_display_pixel_height)
29163 (Fx_display_planes, Fx_display_color_cells)
29164 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
29165 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
29166 (Fx_display_backing_store, Fx_display_visual_class)
29167 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
29168 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
29169
29170 * xfns.c (x_set_foreground_color x_set_background_color)
29171 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
29172 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29173 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
29174 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
29175 terminal that is being deleted.
29176 (Fx_create_frame): Use `store_frame_param' to set `window-system'
29177 frame parameter, and make sure it overrides any user-supplied setting.
29178 (Fx_close_connection, Fx_synchronize): Unify argument names with
29179 the rest of the DEFUNs.
29180
29181 * dispnew.c (Fsend_string_to_terminal): Update call to
29182 `get_tty_terminal'.
29183 (Fredraw_frame, Fsend_string_to_terminal)
29184 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
29185 FRAME_TERMCAP_P and FRAME_TTY.
29186 (window_change_signal): Don't believe width/height values that are
29187 impossibly small.
29188 (Vinitial_window_system): Rename from Vwindow_system.
29189 (termscript, Wcm, rif): Delete.
29190
29191 * termhooks.h (struct terminal): New struct containing the
29192 previously global text display hooks and new members NAME,
29193 DELETED and PARAM_ALIST.
29194 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
29195 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
29196 (FRAME_RIF): New macros.
29197 (get_terminal_param, get_device): New declarations.
29198 (termscript): Delete declaration.
29199
29200 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
29201 (XTflash, x_free_frame_resources, x_scroll_bar_create)
29202 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
29203 FRAME_FOREGROUND_PIXEL.
29204 (x_fully_uncatch_errors): Disable definition.
29205 (x_scroll_bar_expose): Fix reference to foreground pixel.
29206 (XTread_socket): Disable loop on all X displays.
29207 (x_delete_terminal): Don't set terminal->deleted and let
29208 delete_terminal delete the frames on the terminal.
29209 (x_delete_display): Doc update to reflect changes in
29210 delete_terminal.
29211 (x_display_info) <terminal>: Move member earlier in the struct.
29212 (deleting_tty): Remove old variable.
29213 (Fsuspend_tty): Call clear_tty_hooks.
29214 (Fresume_tty, init_tty): Call set_tty_hooks.
29215 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
29216 errors on X frames.
29217 (x_catch_errors_unwind): Abort if x_error_message is NULL.
29218 (handle_one_xevent): Initialize `f' to NULL.
29219 (x_delete_terminal, x_create_terminal): New functions.
29220 (XTset_terminal_modes, XTreset_terminal_modes)
29221 (XTread_socket, x_connection_closed, x_term_init)
29222 (x_term_init, x_delete_display): Add terminal parameter.
29223 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
29224 X connections.
29225
29226 * frame.c: Include termchar.h.
29227 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
29228 (Qwindow_system, Qenvironment, Qterm_environment_variable)
29229 (Qdisplay_environment_variable): New vars.
29230 (Fframep): Deal with output_initial.
29231 (Fframe-live-p): Doc fix.
29232 (Fwindow-system): New function.
29233 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
29234 (make_terminal_frame): Don't create frames on a terminal that is
29235 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
29236 (store_frame_param): Check for found_for_frame before calling XFRAME.
29237 (Fmake_terminal_frame): Handle NULL tty names correctly.
29238 (syms_of_frame): Enhance doc string of `default-frame-alist'.
29239 (Fdelete_frame): Remove unused variable `count'. Don't allow other
29240 frames to refer to a deleted frame in their 'environment parameter.
29241 (Fframe_with_environment): New function.
29242 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
29243 (get_future_frame_param): New function.
29244 (Fmake_terminal_frame): Use it.
29245 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
29246
29247 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
29248 * sysdep.c (reset_sys_modes): Update for renames.
29249
29250 * keyboard.c (tty_read_avail_input): New function.
29251 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
29252 (syms_of_keyboard): Defsubr them.
29253 (Fset_input_meta_mode, Fset_quit_char): New functions.
29254 (Fset_input_mode): Split to above functions.
29255 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
29256 parameter. Use it in call to `read_char'.
29257 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
29258 Set wrong_kboard_jmpbuf correctly in recursive calls.
29259 Use current_kboard to access Vkeyboard_translate_table.
29260 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
29261 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
29262 Update longjmp invocations. Remember the original current_kboard,
29263 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
29264 changes it. Comment out unnecessary calls to
29265 `record_single_kboard_state' and `any_kboard_state'.
29266 Update recursive calls.
29267 (wrong_kboard_jmpbuf): Remove global variable.
29268 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
29269 Handle deleted interrupted_kboards correctly; that is a legal
29270 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
29271 and read_char calls. Abort if interrupted_kboard died in read_char.
29272 (any_kboard_state, single_kboard_state)
29273 (push_frame_kboard): Remove function.
29274 (pop_kboard): Switch out of single_kboard mode if the kboard has
29275 been deleted. Remove unused variable. Help debugging by not
29276 changing current_kboard unnecessarily. Set current_kboard to the
29277 kboard of the selected frame when the stored kboard object has
29278 been deleted before pop_kboard.
29279 (temporarily_switch_to_single_kboard): Change first parameter to a
29280 frame pointer. Throw an error when caller wants to change kboards
29281 while in single_kboard mode. Don't push_kboard if we weren't in
29282 single kboard state. Don't pop_kboard if we popped into any
29283 kboard state.
29284 (restore_kboard_configuration): Abort if pop_kboard changed the
29285 kboard in single_kboard mode. Call pop_kboard only after setting
29286 up single_kboard mode.
29287 (Frecursive_edit): Switch to single_kboard mode only in nested
29288 command loops.
29289 (cmd_error, command_loop, command_loop_1, timer_check):
29290 Comment out unnecessary call to `any_kboard_state' and
29291 `record_single_kboard_state'.
29292 (delete_kboard): Exit single_kboard mode if we have just deleted
29293 that kboard. Use FRAME_KBOARD.
29294 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
29295 `fatal_error_signal'.
29296 (record_single_kboard_state): Don't push_kboard if we weren't in
29297 single kboard state. Don't pop_kboard if we popped into any
29298 kboard state.
29299 (push_frame_kboard): Rename to push_kboard.
29300 (kbd_buffer_get_event): Use FRAME_TERMINAL.
29301 (read_avail_input): Read input from all terminals.
29302 (mark_kboards): Also mark Vkeyboard_translate_table.
29303 (kbd_buffer_store_event_hold): Simplify condition.
29304 (read_key_sequence): Reinitialize fkey and keytran at each replay.
29305 (Vkeyboard_translate_table): Move to struct kboard.
29306 (init_kboard): Initialize Vkeyboard_translate_table.
29307 (syms_of_keyboard): Use DEFVAR_KBOARD to define
29308 Vkeyboard_translate_table. Update doc strings. Update docs of
29309 local-function-key-map and function-key-map.
29310
29311 * terminal.c: New file.
29312
29313 * term.c: Include errno.h.
29314 (Vring_bell_function, device_list, initial_device)
29315 (next_device_id, ring_bell, update_begin, update_end)
29316 (set_terminal_window, cursor_to, raw_cursor_to)
29317 (clear_to_end, clear_frame, clear_end_of_line)
29318 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
29319 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
29320 (syms_of_term): Move their initialization to terminal.c.
29321 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
29322 (Ftty_display_color_cells)
29323 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
29324 (clear_tty_hooks, set_tty_hooks)
29325 (init_tty, maybe_fatal): New functions.
29326 (Ftty_type): Return nil if terminal is not on a tty instead of
29327 throwing an error. Doc update.
29328 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
29329 Doc update. Initialize new subrs and variables.
29330 (delete_tty): Use terminal->deleted.
29331 (tty_set_terminal_modes): Rename from set_terminal_modes.
29332 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
29333 (set_scroll_region): Rename to `tty_set_scroll_region'.
29334 (turn_on_insert): Rename to `tty_turn_on_insert'.
29335 (turn_off_insert): Rename to `tty_turn_off_insert'.
29336 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
29337 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
29338 (toggle_highligh): Rename to `tty_toggle_highlight'.
29339 (background_highlight): Rename to `tty_background_highlight'.
29340 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
29341 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
29342 (tty_set_scroll_region, tty_background_highlight)
29343 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
29344 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
29345 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
29346 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
29347 Add static modifier.
29348 (tty_reset_terminal_modes, tty_set_terminal_window)
29349 (tty_set_scroll_region, tty_background_highlight)
29350 (tty_highlight_if_desired, tty_cursor_to)
29351 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
29352 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
29353 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
29354 renames.
29355
29356 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
29357
29358 * keyboard.c: Qrtl is new.
29359 (parse_tool_bar_item): Handle :rtl keyword.
29360 (syms_of_keyboard): Intern :rtl keyword.
29361
29362 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
29363
29364 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
29365 so no Lisp code is executed.
29366 (file_for_image, find_rtl_image): New functions.
29367 (xg_get_image_for_pixmap): Use file_for_image.
29368 (update_frame_tool_bar): If direction is RTL, use RTL image if
29369 defined. Use Gtk stock images if defined.
29370
29371 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29372
29373 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
29374 for nonexistent or zero-width glyph in composition glyph.
29375
29376 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
29377
29378 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
29379
29380 * xdisp.c (Finvisible_p): New function.
29381 (syms_of_xdisp): defsubr it.
29382
29383 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
29384
29385 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
29386 Doc fixes.
29387
29388 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29389
29390 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
29391
29392 2007-08-24 Martin Rudalics <rudalics@gmx.at>
29393
29394 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
29395 whether decoding has modified buffer contents.
29396
29397 2007-08-24 Jason Rumney <jasonr@gnu.org>
29398
29399 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
29400 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
29401 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
29402 (init_svg_functions) [HAVE_NTGUI]: New function.
29403 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
29404 (svg_load_image): Use them.
29405 (svg_load_image) [HAVE_NTGUI]: Implement background.
29406
29407 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29408
29409 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
29410 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
29411 (LIBX): Remove @RSVG_LIBS@.
29412 (LIBES): Add $(RSVG_LIBS).
29413
29414 * image.c (svg_load_image): Blend with specified background if exists.
29415 Use IMAGE_BACKGROUND. Add Mac OS Support.
29416
29417 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
29418 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
29419 Remove macros.
29420 [MAC_OSX] (socket_callback): Do nothing.
29421 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
29422 ReceiveNextEvent.
29423 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
29424 socket_callback.
29425 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
29426
29427 2007-08-22 Glenn Morris <rgm@gnu.org>
29428
29429 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
29430
29431 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
29432
29433 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
29434
29435 * image.c: Add support for SVG images. Some additional comments
29436 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
29437 (svg_image_p): New function to test for SVG image.
29438 (svg_load): New function to load SVG image.
29439 (svg_load_image): New function, helper for svg_load.
29440 (Qsvg): New Lisp_object.
29441 (svg_keyword_index): New enum.
29442 (svg_format): New static `image_keyword' struct.
29443 (svg_type): New static `image_type' struct.
29444 (librsvg/rsvg.h): Include it.
29445
29446 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
29447
29448 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
29449
29450 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
29451
29452 * lread.c (Qold_style_backquotes): New var.
29453 (syms_of_lread): Init and staticpro it.
29454 (load_warn_old_style_backquotes): New fun.
29455 (Fload): Use them to warn about old style backquotes.
29456 (end_of_file_error, Fload): Remove unused vars.
29457
29458 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
29459
29460 * lread.c (Vold_style_backquotes): New var.
29461 (syms_of_lread): Init and export it to Elisp.
29462 (read1): Set it when we find an old-style (back)quote.
29463
29464 2007-08-22 Jason Rumney <jasonr@gnu.org>
29465
29466 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
29467
29468 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
29469
29470 * puresize.h (BASE_PURESIZE): Increase to 1140000.
29471
29472 2007-08-19 Richard Stallman <rms@gnu.org>
29473
29474 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
29475
29476 2007-08-19 Andreas Schwab <schwab@suse.de>
29477
29478 * alloc.c (pure): Round PURESIZE up.
29479
29480 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
29481
29482 * xterm.c (handle_one_xevent): Remove check that mouse click is in
29483 active frame.
29484
29485 2007-08-16 Richard Stallman <rms@gnu.org>
29486
29487 * eval.c (Fcommandp): Add parens to clarify.
29488
29489 * minibuf.c (Fall_completions): Use enum for type of table.
29490
29491 * emacs.c (USAGE2): Improve text.
29492
29493 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
29494
29495 * term.c (tty_default_color_capabilities): Declare static
29496 variables in file scope, to avoid HPUX compiler problem.
29497
29498 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
29499
29500 * gtkutil.c (update_frame_tool_bar): Use -1 as index
29501 to gtk_toolbar_insert.
29502
29503 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
29504
29505 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
29506
29507 * insdel.c (reset_var_on_error): New fun.
29508 (signal_before_change, signal_after_change):
29509 Use it to reset (after|before)-change-functions to nil in case of error.
29510 Bind inhibit-modification-hooks to t.
29511 Don't bind (after|before)-change-functions to nil while they run.
29512
29513 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29514
29515 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
29516 filling pixmap with stippled background.
29517
29518 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29519
29520 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
29521 Don't use invisible frame as parent window for repositioning.
29522
29523 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
29524
29525 * print.c (new_backquote_output): Rename from old_backquote_output.
29526 (print): Inverse its logic (according to its name) so as to match the
29527 behavior of new_backquote_flag in lread.c.
29528
29529 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29530
29531 * gmalloc.c (posix_memalign): New function.
29532
29533 * macterm.c (frame_highlight, frame_unhighlight): Don't call
29534 ActivateControl/DeactivateControl here.
29535 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
29536 frame-notice-user-settings is non-nil.
29537 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
29538 for kEventParamFMFontStyle.
29539 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
29540 mac_pass_command_to_system and mac_pass_control_to_system here.
29541 (XTread_socket): Call ActivateControl/DeactivateControl here.
29542 (XTread_socket) [TARGET_API_MAC_CARBON]:
29543 Check mac_pass_command_to_system and mac_pass_control_to_system here.
29544 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
29545 for window repositioning.
29546
29547 2007-08-08 Glenn Morris <rgm@gnu.org>
29548
29549 * Replace `iff' in doc-strings and comments.
29550
29551 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
29552
29553 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
29554
29555 2007-08-07 Martin Rudalics <rudalics@gmx.at>
29556
29557 * fileio.c (Finsert_file_contents): Run format-decode and
29558 after_insert_file_functions on entire buffer when REPLACE is
29559 non-nil and inhibit modification_hooks and point_motion_hooks.
29560 For consistency, run after_insert_file_functions iff something
29561 got inserted. Move signal_after_change and update_compositions
29562 after code running after_insert_file_functions. Make sure that
29563 undo_list doesn't record intermediate steps of the decoding process.
29564
29565 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29566
29567 * emacs.c (main)
29568 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
29569 Call malloc_enable_thread on interactive startup.
29570
29571 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
29572 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
29573 [USE_PTHREAD]: Conditionalize with it.
29574 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
29575 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
29576 New functions.
29577
29578 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
29579
29580 * xdisp.c (redisplay_window): When restoring original buffer
29581 position, make sure it is still valid.
29582
29583 * image.c (png_load): Ignore png-supplied background color.
29584
29585 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29586
29587 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
29588 Use kCFAbsoluteTimeIntervalSince1970.
29589
29590 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
29591 New variable.
29592 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29593 event loop should be quit.
29594 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
29595 Quit dialog event loop if quit_dialog_event_loop is set.
29596
29597 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
29598 (Selection): New typedef. Use instead of ScrapRef.
29599 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
29600 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
29601 (mac_clear_selection): Rename from clear_scrap.
29602 (get_flavor_type_from_symbol): New argument SEL and subsume function of
29603 scrap_has_target_type. All uses changed.
29604 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
29605 (mac_selection_has_target_p): New functions.
29606 (mac_put_selection_value): Rename from put_scrap_string.
29607 (mac_get_selection_value): Rename from get_scrap_string.
29608 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
29609 (put_scrap_private_timestamp, scrap_has_target_type)
29610 (get_scrap_private_timestamp): Remove functions.
29611 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
29612 (x_own_selection, x_get_local_selection):
29613 Use mac_valid_selection_value_p.
29614 (x_own_selection): Don't use put_scrap_private_timestamp.
29615 Record OWNERSHIP-INFO into Vselection_alist instead.
29616 (x_get_local_selection): Don't check type if request is local.
29617 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
29618 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
29619
29620 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
29621
29622 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
29623 add comment explaining why.
29624
29625 2007-08-03 Richard Stallman <rms@gnu.org>
29626
29627 * fileio.c (Fvisited_file_modtime): Use make_time.
29628
29629 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
29630
29631 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
29632 build.
29633
29634 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
29635
29636 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
29637
29638 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
29639
29640 * puresize.h (BASE_PURESIZE): Increase to 1130000.
29641
29642 2007-07-30 Richard Stallman <rms@gnu.org>
29643
29644 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
29645
29646 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
29647
29648 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
29649
29650 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
29651
29652 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
29653 remote default-directory.
29654
29655 * buffer.c (mode-line-format): Update doc string.
29656
29657 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29658
29659 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
29660 scroll bar gap.
29661 (x_scroll_bar_create): Set bar->fringe_extended_p.
29662 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
29663 on frame edge. Check fringe background extension. Don't clear
29664 extended fringe background area.
29665
29666 * w32term.h (struct scroll_bar): New member fringe_extended_p.
29667 (w32_fill_area): Enclose multiple statements with do ... while (0).
29668
29669 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
29670 Extend fringe background to scroll bar gap.
29671 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
29672 Set bar->fringe_extended_p.
29673 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29674 Put leftmost/rightmost scroll bars on frame edge. Check fringe
29675 background extension. Don't clear extended fringe background area.
29676
29677 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
29678 New member fringe_extended_p.
29679
29680 2007-07-25 Glenn Morris <rgm@gnu.org>
29681
29682 * Relicense all FSF files to GPLv3 or later.
29683
29684 * COPYING: Switch to GPLv3.
29685
29686 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
29687
29688 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
29689
29690 * data.c (Finteractive_form): Check for the presence of an
29691 `interactive-form' symbol property more thoroughly.
29692
29693 * data.c (Finteractive_form): Use an `interactive-form' property if
29694 present, analogous to the function-documentation property.
29695
29696 2007-07-24 Jason Rumney <jasonr@gnu.org>
29697
29698 * w32fns.c (x_real_positions): Get real position from OS instead of
29699 calculating it.
29700
29701 2007-07-23 Jason Rumney <jasonr@gnu.org>
29702
29703 * filelock.c (current_lock_owner): Allow for @ sign in username.
29704
29705 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
29706
29707 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
29708 remote default-directory.
29709
29710 * buffer.c (mode-line-format): Describe above case in doc string.
29711
29712 2007-07-20 Eli Zaretskii <eliz@gnu.org>
29713
29714 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
29715 Define if not defined.
29716
29717 2007-07-18 Jason Rumney <jasonr@gnu.org>
29718
29719 * w32proc.c (w32_executable_type): Handle 64 bit executables.
29720
29721 2007-07-18 Richard Stallman <rms@gnu.org>
29722
29723 * data.c (Fsetq_default): Doc fix.
29724
29725 * eval.c (Fsetq): Doc fix.
29726
29727 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
29728
29729 * coding.c (Ffind_operation_coding_system):
29730 * eval.c (For, Fand): Doc fixes.
29731 Reported by Johan Bockgård.
29732
29733 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
29734
29735 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
29736
29737 * xterm.h: Declare x_ewmh_activate_frame.
29738
29739 * xterm.c (x_ewmh_activate_frame): New function.
29740 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
29741
29742 2007-07-17 Martin Rudalics <rudalics@gmx.at>
29743
29744 * window.c (Fdisplay_buffer): If largest or LRU window is the
29745 only window, split it even if it is not eligible for splitting.
29746 This restores the original behavior broken by the 2007-07-15
29747 change.
29748
29749 2007-07-17 Glenn Morris <rgm@gnu.org>
29750
29751 * abbrev.c (abbrev_check_chars): New function.
29752 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
29753 Call abbrev_check_chars to check abbrev characters are word
29754 constituents. Doc fix.
29755
29756 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
29757
29758 * process.c (Fstart_process, Fmake_network_process)
29759 (read_process_output): Fix up last changes.
29760
29761 2007-07-16 Eli Zaretskii <eliz@gnu.org>
29762
29763 * makefile.w32-in (clean): Don't delete *~.
29764
29765 2007-07-16 Andreas Schwab <schwab@suse.de>
29766
29767 * window.c (Fdisplay_buffer): Use NILP.
29768 (Fset_window_scroll_bars): Likewise.
29769
29770 2007-07-15 Martin Rudalics <rudalics@gmx.at>
29771
29772 * window.c (window_min_size_2): New function.
29773 (window_min_size_1, size_window, Fdisplay_buffer)
29774 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
29775 windows without mode- or header-lines when window-min-height is
29776 too small.
29777 (size_window): Reset nodelete_p after testing it, following an
29778 earlier note by Kim F. Storm.
29779 (display_buffer): Do not set split_height_threshold to twice the
29780 value of window_min_height to avoid changing the value of a
29781 customizable variable. Rather explicitly check whether the
29782 height of the window that shall be splitted is at least as large
29783 as split_height_threshold.
29784 (Fwindow_full_width_p): New defun.
29785 (syms_of_window): Defsubr it.
29786
29787 * window.h: Add EXFUN for Fwindow_full_width_p.
29788
29789 2007-07-14 Jason Rumney <jasonr@gnu.org>
29790
29791 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
29792
29793 2007-07-14 Richard Stallman <rms@gnu.org>
29794
29795 * eval.c (maybe_call_debugger): New function.
29796 (find_handler_clause): Use maybe_call_debugger.
29797 Call it when the handler says `debug'.
29798 Eliminate DEBUGGER_VALUE_PTR.
29799 (Fsignal): Eliminate debugger_value.
29800 (Qdebug): New variable.
29801 (syms_of_eval): Initialize it.
29802
29803 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
29804
29805 * eval.c (Fprogn):
29806 * keyboard.c (Ftrack_mouse):
29807 * print.c (Fwith_output_to_temp_buffer):
29808 * window.c (Fsave_window_excursion): Doc fix.
29809
29810 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
29811
29812 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29813
29814 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
29815
29816 * process.h (struct Lisp_Process): Turn slots infd, outfd,
29817 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29818 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29819 read_output_delay, and read_output_skip from Lisp_Objects to ints.
29820 Remove unused encoding_carryover.
29821 * process.c: Adjust all functions accordingly.
29822
29823 2007-07-12 Richard Stallman <rms@gnu.org>
29824
29825 * term.c: Include unistd.h only if HAVE_UNISTD_H.
29826
29827 2007-07-11 Jason Rumney <jasonr@gnu.org>
29828
29829 * makefile.w32-in (LIBS): Include OLE32.
29830
29831 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29832 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29833
29834 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
29835
29836 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29837 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29838 from a Lisp_Object into a bare pointer.
29839 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29840 Adjust the code correspondingly.
29841
29842 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29843
29844 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29845 (term_show_mouse_face): Remove unused var `j'.
29846 (handle_one_term_event): Remove unused vars `i' and `j'.
29847 Don't cast return value of ttyname since it's not necessary.
29848
29849 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
29850
29851 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29852 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29853
29854 * fns.c (map_char_table): Use an array of int for `indices' rather than
29855 an array of Lisp_Objects (which are only ever integers anyway).
29856 (Fmap_char_table): Update caller.
29857 * lisp.h: Update prototype.
29858 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29859 * fontset.c (Ffontset_info):
29860 * casetab.c (set_case_table): Update callers.
29861
29862 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29863
29864 * keymap.c (struct accessible_keymaps_data)
29865 (struct where_is_internal_data): New structures.
29866 (accessible_keymaps_1, where_is_internal_1): Use them to change
29867 interface to adhere to the one used by map_keymap.
29868 (Faccessible_keymaps, where_is_internal): Use map_keymap.
29869 (accessible_keymaps_char_table, where_is_internal_2): Remove.
29870
29871 * keymap.h (map_keymap_function_t): More informative prototype.
29872
29873 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
29874
29875 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29876 (looking_at_1): Don't change search_regs and last_thing_searched
29877 if `inhibit-changing-match-data' is non-nil.
29878 (string_match_1, search_buffer, set_search_regs): Likewise.
29879 (syms_of_search): Add Lisp level definition for
29880 `inhibit-changing-match-data' and set it to nil.
29881 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29882 start and end of the match, instead of using values in search_regs.
29883
29884 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
29885
29886 * minibuf.c (Fcompleting_read): New value `confirm-only'
29887 for `require-match'.
29888
29889 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
29890
29891 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29892 part of the 2007-06-27 change to syms_of_fileio.
29893
29894 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29895
29896 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29897 Check WINDOWP before using XWINDOW. Consolidate return statements.
29898
29899 2007-06-27 Richard Stallman <rms@gnu.org>
29900
29901 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29902
29903 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
29904
29905 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29906
29907 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29908
29909 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29910 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29911 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29912 (_free_internal, memalign): Use them.
29913 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29914 Initialize to PTHREAD_MUTEX_INITIALIZER.
29915 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29916 (morecore_nolock): Rename from morecore. All uses changed.
29917 Use only nolock versions of internal allocation functions.
29918 (_malloc_internal_nolock, _realloc_internal_nolock)
29919 (_free_internal_nolock): New functions created from
29920 _malloc_internal, _realloc_internal, and _free_internal.
29921 (_malloc_internal, _realloc_internal, _free_internal): Use them.
29922 Copy hook value to automatic variable before its use.
29923 (memalign): Copy hook value to automatic variable before its use.
29924
29925 2007-06-26 Kenichi Handa <handa@m17n.org>
29926
29927 * coding.c (Ffind_operation_coding_system): Docstring improved.
29928 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29929
29930 2007-06-25 David Kastrup <dak@gnu.org>
29931
29932 * keymap.c (Fcurrent_active_maps): Add `position' argument.
29933 (Fwhere_is_internal): Adjust call to `current-active-maps' to
29934 cater for additional parameter.
29935
29936 * keymap.h: Adjust number of parameters to `current-active-maps'.
29937
29938 * doc.c (Fsubstitute_command_keys): Adjust call of
29939 `current-active-maps'.
29940
29941 2007-06-25 David Kastrup <dak@gnu.org>
29942
29943 * callint.c (Fcall_interactively): Make the parsing of interactive
29944 specs somewhat more readable.
29945
29946 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29947
29948 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29949 to scroll bar gap also when bitmap fills fringe. Draw only foreground
29950 if extended background has already been filled.
29951
29952 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29953
29954 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29955 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29956
29957 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29958 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29959 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29960 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29961 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29962 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
29963 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29964 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29965 Run timers during dialog popup.
29966 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29967
29968 2007-06-21 Jason Rumney <jasonr@gnu.org>
29969
29970 * image.c (convert_mono_to_color_image): Swap fore and background.
29971
29972 2007-06-20 Jason Rumney <jasonr@gnu.org>
29973
29974 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29975 (w32_free_bdf_font): Unmap memory not handle.
29976
29977 2007-06-20 Sam Steingold <sds@gnu.org>
29978
29979 * gmalloc.c (__morecore): Fix the declaration to comply with the
29980 definition.
29981
29982 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
29983
29984 * w32term.c (w32_delete_display): Remove leftover declaration.
29985 (w32_define_cursor, w32_initialize): Make static.
29986
29987 * w32.c (_wsa_errlist): Fix typo in error message.
29988 (init_environment): Ignore any environment variable from the
29989 registry having a null value.
29990
29991 2007-06-20 Glenn Morris <rgm@gnu.org>
29992
29993 * Makefile.in (LIBGIF): Default to -lgif.
29994
29995 2007-06-17 Jason Rumney <jasonr@gnu.org>
29996
29997 * w32menu.c (add_menu_item): Don't use multibyte string functions on
29998 unicode strings.
29999
30000 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
30001
30002 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
30003 Fix typo in docstring.
30004
30005 2007-06-16 Eli Zaretskii <eliz@gnu.org>
30006
30007 * w32menu.c (add_menu_item): Escape `&' characters in menu items
30008 and their keybindings.
30009
30010 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
30011
30012 * composite.c (update_compositions): Fix last fix.
30013
30014 2007-06-14 Jason Rumney <jasonr@gnu.org>
30015
30016 * w32.c (get_process_times_fn): New function pointer.
30017 (globals_of_w32): Intialize it if present in kernel32.dll.
30018 (w32_get_internal_run_time): New function.
30019
30020 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
30021
30022 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
30023
30024 * composite.c (update_compositions): Check the validness of
30025 compositions.
30026
30027 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30028
30029 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
30030 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
30031
30032 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
30033 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
30034
30035 * macgui.h (USE_MAC_TOOLBAR): New define.
30036
30037 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30038 Return immediately unless popup is activated.
30039
30040 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
30041 background to scroll bar gap.
30042 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
30043 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
30044 scroll bars on frame edge. Check fringe background extension.
30045 Don't clear extended fringe background area.
30046 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
30047 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
30048 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
30049 [USE_MAC_TOOLBAR]: New macros.
30050 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
30051 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
30052 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
30053 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
30054 [USE_MAC_TOOLBAR]: New functions.
30055 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
30056 manually if previous repositioning has failed.
30057 (mac_handle_keyboard_event): Use precomputed event kind.
30058 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
30059 as tool bar item click. Handle mouse movement over tool bar items.
30060
30061 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
30062 toolbar_win_gravity.
30063 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
30064 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
30065 Add externs.
30066
30067 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
30068 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
30069
30070 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
30071
30072 * image.c (search_image_cache): Remove unused variable.
30073
30074 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
30075
30076 * xfns.c, xmenu.c: Link to xaw3d if available.
30077
30078 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30079
30080 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
30081 frame_foreground and frame_background.
30082
30083 * image.c (lookup_image): Save frame foreground and background colors.
30084 (search_image_cache): Check if saved and current frame colors match.
30085
30086 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
30087
30088 * regex.c (regex_compile): Remove the `regnum' counter.
30089 Use bufp->re_nsub instead. Add support for \(?N:RE\).
30090
30091 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
30092
30093 * term.c: Include intervals.h to declare Fget_text_property.
30094
30095 2007-06-10 Jason Rumney <jasonr@gnu.org>
30096
30097 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
30098
30099 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
30100
30101 * callint.c (Fcall_interactively):
30102 * editfns.c (Fdelete_and_extract_region):
30103 * fileio.c (Fread_file_name):
30104 * fns.c (Fmapconcat):
30105 * keyboard.c (cmd_error_internal):
30106 * keymap.c (Fkey_description):
30107 * lread.c (openp):
30108 * minibuf.c (read_minibuf):
30109 * search.c (wordify):
30110 * sunfns.c (sel_read):
30111 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
30112 * xfns.c (x_default_scroll_bar_color_parameter):
30113 * xmenu.c (menu_help_callback):
30114 * xselect.c (Fx_get_atom_name):
30115 * xterm.c (x_term_init): Use empty_unibyte_string.
30116
30117 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
30118
30119 * alloc.c (init_strings): Initialize canonical empty strings.
30120 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
30121 canonical empty string when the requested size is 0.
30122
30123 * emacs.c (empty_unibyte_string): Rename from empty_string.
30124 (empty_multibyte_string): New canonical empty string.
30125 (syms_of_emacs): Don't initialize empty_string.
30126
30127 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
30128 string, if appropriate.
30129 (empty_unibyte_string, empty_multibyte_string): New externs.
30130 (empty_string): Remove extern.
30131
30132 * lread.c (syms_of_lread): Use empty_unibyte_string.
30133
30134 2007-06-07 Jason Rumney <jasonr@gnu.org>
30135
30136 * s/ms-w32.h: Don't define HAVE_TZNAME.
30137
30138 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
30139
30140 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30141
30142 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
30143
30144 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
30145 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
30146
30147 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
30148 Don't call next handler.
30149 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
30150 Remove argument. Install handler to application.
30151 (set_frame_menubar): Don't change deep_p.
30152 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
30153 FRAME_OUTER_TO_INNER_DIFF_Y.
30154 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
30155 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
30156 [HAVE_DIALOGS]: New macros.
30157 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
30158 Use them.
30159 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
30160
30161 * macselect.c [MAC_OSX] (install_service_handler): Rename from
30162 init_service_handler. All callers changed. Return OSStatus value.
30163
30164 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
30165 All callers changed so as not to call SetPortWindowPort.
30166 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
30167 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
30168 mac_draw_string_common.
30169 (mac_draw_image_string_qd): Likewise.
30170 (mac_draw_string_common): Use them. Add INLINE.
30171 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
30172 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
30173 GetGlobalMouse.
30174 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
30175 and FRAME_OUTER_TO_INNER_DIFF_Y.
30176 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
30177 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
30178 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
30179 repositioning window to mac_handle_window_event.
30180 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
30181 saving window location to mac_handle_window_event
30182 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
30183 (install_menu_target_item_handler): Remove argument in extern.
30184 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
30185 Also accept command events.
30186 (do_keystroke): New function created from XTread_socket.
30187 (init_command_handler): Remove functions.
30188 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
30189 and save window location by kEventWindowShowing and kEventWindowHiding
30190 handlers here. Don't call next handler for window state change and
30191 focus events.
30192 (mac_handle_application_event, mac_handle_keyboard_event)
30193 [TARGET_API_MAC_CARBON]: New functions.
30194 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
30195 kEventWindowShowing and kEventWindowHiding events. Move installation
30196 of mouse, font, text input and menu target item handlers to
30197 install_application_handler.
30198 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
30199 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30200 New function.
30201 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
30202 Register it.
30203 (XTread_socket) [TARGET_API_MAC_CARBON]:
30204 Consolidate SendEventToEventTarget calls.
30205 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
30206 Move application activation handler to mac_handle_application_event.
30207 Move keyboard handler to mac_handle_keyboard_event.
30208 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
30209 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
30210 init_command_handler. Call install_application_handler.
30211
30212 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
30213 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
30214
30215 2007-06-07 Glenn Morris <rgm@gnu.org>
30216
30217 * emacs.c (main): Use `emacs-copyright' in --version output.
30218
30219 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
30220
30221 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
30222
30223 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30224
30225 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
30226
30227 * macgui.h: Replace WindowPtr with WindowRef.
30228
30229 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30230 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30231 Replace ControlHandle with ControlRef.
30232 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
30233
30234 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
30235 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
30236 Replace ControlHandle with ControlRef.
30237 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
30238 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
30239
30240 * macterm.h (struct scroll_bar): Rename member control_handle_low
30241 and control_handle_high to control_ref_low and control_ref_high.
30242 All uses changed.
30243 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
30244 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
30245 respectively. All uses changed.
30246 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
30247 (install_window_handler, remove_window_handler): Replace WindowPtr
30248 with WindowRef in externs.
30249
30250 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
30251
30252 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
30253
30254 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
30255
30256 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
30257
30258 * frame.c (Fmouse_position, Fmouse_pixel_position):
30259 Condition on HAVE_GPM too.
30260
30261 * term.c (term_mouse_highlight): Remove unused variables.
30262 (Fterm_open_connection): Set gpm_zerobased to 1.
30263 (term_mouse_movement, term_mouse_click, handle_one_term_event):
30264 Use zero based co-ordinates.
30265 (handle_one_term_event): Report a drag as mouse movement too.
30266
30267 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
30268
30269 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
30270
30271 * image.c (search_image_cache): New function. Require background
30272 color match if background color is unspecified in the image spec.
30273 (uncache_image, lookup_image): Use it.
30274
30275 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
30276
30277 * window.c (Fshrink_window): Reflow docstring.
30278
30279 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
30280
30281 * Version 22.1 released.
30282
30283 2007-06-01 Richard Stallman <rms@gnu.org>
30284
30285 * xfns.c (x_encode_text): Add GCPRO.
30286
30287 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30288
30289 * xfns.c (x_set_name_internal): Save encoded name before
30290 x_encode_text in case string data is relocated.
30291
30292 2007-05-31 Richard Stallman <rms@gnu.org>
30293
30294 * buffer.c (syms_of_buffer): Doc fix.
30295
30296 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
30297
30298 * sysdep.c (init_sys_modes): Add rather than replace with
30299 O_NONBLOCK.
30300
30301 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
30302 term_mouse_moveto.
30303
30304 * termhooks.h (term_mouse_moveto): New extern.
30305
30306 * term.c (mouse_face_window): Rename...
30307 (Qmouse_face_window): ...to this.
30308 (term_show_mouse_face, term_clear_mouse_face)
30309 (term_mouse_highlight): Use Qmouse_face_window.
30310 (term_mouse_moveto): New function.
30311 (term_mouse_position): Make it work.
30312 (syms_of_term): Uncomment assignment to mouse_position_hook.
30313 Staticpro Qmouse_face_window.
30314
30315 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30316
30317 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
30318 around current_column call.
30319
30320 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
30321
30322 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
30323 * xdisp.c (next_element_from_buffer):
30324 * window.c (delete_window):
30325 * term.c (term_mouse_highlight):
30326 * msdos.c (getdefdir):
30327 * macterm.c (mac_create_bitmap_from_bitmap_data)
30328 (init_font_name_table):
30329 * fns.c (Fsxhash):
30330 * data.c (Fmake_local_variable):
30331 * ccl.c (ccl_driver): Likewise.
30332
30333 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30334
30335 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
30336 Call mac_wakeup_from_rne on window size change.
30337
30338 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
30339
30340 * image.c (uncache_image): Fix typo.
30341
30342 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
30343
30344 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
30345
30346 2007-05-22 Richard Stallman <rms@gnu.org>
30347
30348 * xterm.c (x_connection_closed): Remove NO_RETURN.
30349
30350 2007-05-22 Martin Rudalics <rudalics@gmx.at>
30351
30352 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
30353
30354 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
30355
30356 * image.c (uncache_image): New function.
30357 (Fimage_refresh): New function.
30358
30359 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
30360
30361 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
30362
30363 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30364
30365 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
30366 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
30367
30368 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30369
30370 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
30371 conditional on [HAVE_GPM_H].
30372
30373 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
30374
30375 * syntax.c (skip_chars): Update syntax-table only after we checked that
30376 the new location is valid.
30377
30378 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30379
30380 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
30381 mac_get_window_bounds.
30382
30383 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
30384
30385 * Makefile.in (LIBGPM): Allow it to be set from configure.
30386 If set then link Emacs with it.
30387
30388 * config.in: Regenerate.
30389
30390 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
30391 New externs.
30392
30393 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
30394 Include gpm.h.
30395 (handle_one_term_event, term_gpm): New externs.
30396
30397 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
30398 and allow it to be interrupted by SIGIO.
30399
30400 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
30401 (wait_reading_process_output): Wait on gpm_fd too.
30402 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
30403 (add_gpm_wait_descriptor_called_flag): New variable.
30404 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
30405
30406 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
30407 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
30408 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
30409 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
30410 (make_lispy_event): Add case GPM_CLICK_EVENT.
30411 (read_avail_input): Handle mouse input.
30412
30413 * term.c (write_glyphs_with_face): New function.
30414 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
30415 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
30416 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
30417 (mouse_face_face_id, term_gpm, pos_x, pos_y)
30418 (last_mouse_x, last_mouse_y): New variables.
30419 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
30420 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
30421 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
30422 (Fterm_close_connection): New functions.
30423 (term_init): Initialise mouse_face_window.
30424
30425 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
30426
30427 * xdisp.c (redisplay_window): If first window line is a
30428 continuation line, recompute the new window start instead of
30429 recentering.
30430
30431 2007-05-18 Glenn Morris <rgm@gnu.org>
30432
30433 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
30434 Suggested by Alfred M. Szmidt <ams@gnu.org>.
30435
30436 2007-05-17 Glenn Morris <rgm@gnu.org>
30437
30438 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
30439
30440 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30441
30442 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
30443 dead key repeat and up events.
30444
30445 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
30446
30447 * image.c (pbm_load): Check image size for monochrome pbm.
30448
30449 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
30450
30451 * xterm.c (XTread_socket): Revert last change.
30452
30453 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
30454
30455 * image.c (pbm_load): Correctly check image size for greyscale pbm.
30456
30457 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
30458
30459 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30460
30461 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
30462 mixup (YAILOM).
30463
30464 2007-05-07 Andreas Schwab <schwab@suse.de>
30465
30466 * keymap.c (Flookup_key): Fix typo in last change.
30467
30468 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
30469
30470 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
30471 mapping for unibyte strings.
30472
30473 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30474
30475 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
30476 (Fx_popup_dialog) [MAC_OSX]: Likewise.
30477
30478 2007-04-29 Richard Stallman <rms@gnu.org>
30479
30480 * insdel.c (replace_range): For undo, record insertion first.
30481
30482 2007-04-29 Andreas Schwab <schwab@suse.de>
30483
30484 * lisp.h (VECSIZE): Use OFFSETOF.
30485
30486 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
30487
30488 * xdisp.c (try_window_reusing_current_matrix): Fix number of
30489 disabled lines.
30490
30491 2007-04-28 Richard Stallman <rms@gnu.org>
30492
30493 * lread.c (read_escape): In a string, \s is always space.
30494
30495 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
30496
30497 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
30498
30499 * gtkutil.c (xg_update_menubar, create_menus): Create empty
30500 submenu for menu bar items.
30501
30502 See ChangeLog.10 for earlier changes.
30503
30504 ;; Local Variables:
30505 ;; coding: utf-8
30506 ;; End:
30507
30508 Copyright (C) 2007-2011 Free Software Foundation, Inc.
30509
30510 This file is part of GNU Emacs.
30511
30512 GNU Emacs is free software: you can redistribute it and/or modify
30513 it under the terms of the GNU General Public License as published by
30514 the Free Software Foundation, either version 3 of the License, or
30515 (at your option) any later version.
30516
30517 GNU Emacs is distributed in the hope that it will be useful,
30518 but WITHOUT ANY WARRANTY; without even the implied warranty of
30519 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30520 GNU General Public License for more details.
30521
30522 You should have received a copy of the GNU General Public License
30523 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.