* src/s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
[bpt/emacs.git] / src / ChangeLog
1 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
4
5 * xrdb.c: Remove include guard. Remove
6 DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
7 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
8 realloc->xrealloc instead of using #defines.
9
10 2010-08-08 Eli Zaretskii <eliz@gnu.org>
11
12 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
13 * editfns.c (Fline_beginning_position, Fline_end_position): State
14 in the doc strings that start and end of line are in the logical
15 order.
16
17 * xdisp.c (display_line): Move the handling of overlay arrow after
18 the call to find_row_edges. (Bug#6699)
19
20 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
21
22 * keyboard.c (command_loop_1):
23 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
24
25 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
26
27 * insdel.c (prepare_to_modify_buffer): Save active region text to
28 Vsaved_region_selection.
29
30 * xselect.c (QPRIMARY): Move to keyboard.c.
31
32 * keyboard.c (Vselect_active_regions): Move from simple.el.
33 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
34 vars.
35 (command_loop_1): Set window selection prior to deactivating the
36 mark.
37
38 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
39
40 * alloc.c (lisp_malloc):
41 * buffer.c (set_buffer_internal, set_buffer_internal_1):
42 * charset.h (emacs_mule_charset):
43 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
44 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
45 (bitch_at_user):
46 * lisp.h (Fcheck_coding_system, Fget_text_property)
47 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
48 Remove duplicate declarations.
49
50 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
51
52 * process.c: Simplify include logic.
53
54 * keyboard.h (quit_char): Add declaration.
55 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
56 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add
57 declarations.
58 * sysdep.c:
59 * w32.c: Remove the above declarations.
60
61 Remove extern declarations in .c files, .h files have them.
62 * xterm.c:
63 * xdisp.c:
64 * msdos.c:
65 * image.c:
66 * gtkutil.c:
67 * fileio.c:
68 * eval.c: Remove declarations.
69
70 * frame.c (frame_params): Make const.
71
72 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
73
74 * emacs.c (emacs_copyright, emacs_version): Make static.
75 (Vinitial_window_system, Vauto_save_list_file_name)
76 (Vinhibit_redisplay): Remove declarations.
77 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
78 for AIX.
79
80 Use const for some arrays and functions.
81 * xterm.h (xg_set_icon_from_xpm_data):
82 * xfns.c (xg_set_icon_from_xpm_data):
83 * term.c (fkeys):
84 * keyboard.c (lispy_accent_keys, lispy_function_keys)
85 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
86 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
87 (frame.c frame_parms):
88 * emacs-icon.h (gnu_xpm_bits):
89 * callint.c (callint_argfuns): Use const.
90
91 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
92
93 * sysdep.c: Move include term.h last of includes (Bug#6812).
94
95 2010-08-06 Eli Zaretskii <eliz@gnu.org>
96
97 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
98
99 * msdos.c (IT_display_cursor): Log cursor position on termscript.
100
101 * .gdbinit (pgx): Display the avoid_cursor_p flag.
102
103 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
104
105 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
106
107 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
108
109 * xterm.h (x_get_focus_frame): Declare.
110
111 * keyboard.h (poll_for_input_1): Unconditionally declare.
112
113 * nsterm.h (x_set_menu_bar_lines): Declare.
114
115 * window.c: Don't include menu.h, it depends on lots of other .h-files.
116
117 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
118
119 * window.c: Include menu.h.
120
121 * unexmacosx.c (print_region_list, print_regions)
122 (build_region_list, find_emacs_zone_regions)
123 (unexec_regions_merge, read_load_commands, dump_it)
124 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
125
126 * term.c: Check HAVE_SYS_IOCTL_H.
127
128 * sysdep.c: Check HAVE_TERM_H.
129
130 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
131
132 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
133 (ns_ring_bell, ns_defined_color, hide_hourglass)
134 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
135 Convert to ANSI C prototypes.
136 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
137 before code.
138
139 * nsterm.h : Include sysselect.h.
140 (x_sync, x_get_focus_frame, x_set_mouse_position)
141 (x_set_mouse_pixel_position, x_make_frame_visible)
142 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
143 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
144 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
145 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
146 Declare.
147
148 * nsmenu.m (popup_activated, name_is_separator)
149 (syms_of_nsmenu): Convert to ANSI C prototypes.
150 (runMenuAt): Prototypes and move declarations before code.
151
152 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
153
154 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
155 prototypes.
156
157 * nsfns.m (have_menus_p, ns_display_info_for_name)
158 (x_set_cursor_type, ns_appkit_version_str)
159 (ns_appkit_version_int, ns_do_applescript)
160 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
161 (syms_of_nsfns): Convert to ANSI C prototypes.
162
163 * menu.h (x_set_menu_bar_line): Declare.
164 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
165
166 * lisp.h (fmod_float): Declare.
167
168 * image.c (xpm_scan, xpm_make_color_table_v)
169 (xpm_put_color_table_v, xpm_get_color_table_v)
170 (xpm_make_color_table_h, xpm_put_color_table_h)
171 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
172 (xpm_load): Convert to ANSI C prototypes.
173
174 * emacs.c: Include nsterm.h if HAVE_NS.
175
176 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
177
178 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
179
180 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
181 subprocesses, only MSDOS does not define HAVE_SOCKETS.
182 (socket_options): Use const char* for name.
183
184 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
185
186 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
187
188 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
189 Don't declare xmalloc_widget_value and digest_single_submenu.
190
191 * w32font.c (Qlatin): Remove declaration.
192
193 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
194
195 * dired.c (compile_pattern): Restore declaration.
196
197 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
198
199 Remove extern declarations in .c files, .h files have them.
200 * data.c:
201 * dired.c:
202 * editfns.c:
203 * filelock.c:
204 * fns.c:
205 * font.c:
206 * fontset.c:
207 * frame.c:
208 * fringe.c:
209 * ftfont.c:
210 * gtkutil.c:
211 * indent.c:
212 * keyboard.c:
213 * keymap.c:
214 * lread.c:
215 * menu.c:
216 * print.c:
217 * search.c:
218 * sound.c:
219 * window.c:
220 * xdisp.c:
221 * xfaces.c:
222 * xfns.c:
223 * xfont.c:
224 * xftfont.c:
225 * xmenu.c:
226 * xterm.c: Remove declarations.
227
228 Cleanup syssignal.h.
229 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
230 (main_thread): Move down to remove #ifdef.
231 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
232 Remove conditional definition following unconditional ones.
233
234 * lisp.h: Remove HAVE_SHM code, unused.
235 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
236 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
237 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
238 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
239 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
240 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
241 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
242 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
243 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
244 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
245 (Qwindow_scroll_functions, Vafter_load_alist)
246 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
247 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
248 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
249 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
250 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
251 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
252 (initial_argv, last_nonmenu_event, load_in_progress)
253 (noninteractive_need_newline, scroll_margin): Add declarations.
254
255 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
256 declarations, menu.h has them.
257 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
258 (Vinput_method_function, Qinput_method_function)
259 (Qevent_symbol_element_mask, last_event_timestamp):
260 * dispextern.h (Voverflow_newline_into_fringe):
261 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
262 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
263 (syms_of_w32font, syms_of_nsfont):
264 * fontset.h (find_font_encoding, Qlatin):
265 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
266 (Vtool_bar_mode, set_frame_menubar):
267 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
268 * xterm.h (Qx_gtk_map_stock):
269 * keymap.h (meta_prefix_char): Add declarations.
270
271 * term.c: Remove dead code.
272
273 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
274 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
275 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
276 which is what was there before BSD_PGRPS was removed.
277
278 2010-08-05 Eli Zaretskii <eliz@gnu.org>
279
280 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
281
282 * unexcoff.c: Renamed from unexec.c.
283
284 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
285
286 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
287
288 2010-08-03 Johan Bockgård <bojohan@gnu.org>
289
290 * data.c (Flocal_variable_p): Handle variable aliases correctly.
291 (Bug#6744)
292
293 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
294
295 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
296 to TRUE if depth of screen is < 16.
297
298 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
299 USE_GTK_TOOLTIP.
300 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
301 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
302 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
303 USE_GTK_TOOLTIP.
304 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
305
306 * xterm.h (USE_GTK_TOOLTIP): New define.
307 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
308
309 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
310 to Control-D (Bug#6771).
311
312 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
313
314 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
315 Wording by Drew Adams <drew.adams@oracle.com>.
316
317 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
318
319 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
320 ttip_lbl.
321
322 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
323 calling gtk_widget_queue_draw.
324 (x_free_frame_resources): Call xg_free_frame_widgets.
325
326 * xfns.c (x_gtk_use_system_tooltips): New variable.
327 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
328 new gtkutil tooltip functions to show the tooltip.
329 (Fx_hide_tip): Call xg_hide_tooltip.
330 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
331
332 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
333 (xg_show_tooltip, xg_hide_tooltip): Declare.
334
335 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
336 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
337 New functions.
338 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
339 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
340 Remove code that is commented out.
341
342 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
345
346 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
347
348 * xselect.c (x_own_selection): Use list4.
349
350 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
351
352 * buffer.c (Qwindow): Do not define, already defined in data.c.
353 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
354
355 2010-07-29 Chad Brown <yandros@mit.edu>
356
357 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
358 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
359 * config.in: Undef HAVE_DIRENT_H.
360 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
361 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
362
363 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
364
365 Rename s/usg5-4.h -> s/usg5-4-common.h.
366 * s/usg5-4.h: Rename file to ...
367 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
368 * s/unixware.h:
369 * s/sol2-6.h:
370 * s/irix6-5.h: Update includes accordingly.
371
372 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
373
374 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
375
376 * xterm.h (struct x_output): Add toolbar_top_height,
377 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
378 Remove toolbar_height.
379 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
380 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
381 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
382 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
383
384 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
385
386 * xfns.c (x_set_tool_bar_position): New function.
387 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
388 (x_frame_parm_handlers): Add x_set_tool_bar_position.
389 (syms_of_xfns): If USE_GTK, provide move-toolbar.
390
391 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
392 and FRAME_TOOLBAR_LEFT_WIDTH.
393
394 * gtkutil.h (xg_change_toolbar_position): Declare.
395
396 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
397 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
398 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
399 (xg_create_frame_widgets): Create a hobox for placing widgets
400 vertically. Use gtk_box_pack_start.
401 (xg_height_or_width_changed): Renamed from xg_height_changed.
402 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
403 (xg_update_frame_menubar, free_frame_menubar): Change to
404 xg_height_or_width_changed.
405 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
406 size correctly. Remove hardcoded 4, instead use handlebox size -
407 toolbar size.
408 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
409 size correctly. Use handlebox size + toolbar size as additional size.
410 (xg_pack_tool_bar): POS is a new parameter.
411 Set orientation of tool bar based on pos.
412 Only make handlebox_widget if NULL.
413 Check if tool bar goes to vbox or hbox depending on pos.
414 (xg_update_tool_bar_sizes): New function.
415 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
416 height, call xg_update_tool_bar_sizes instead.
417 (free_frame_tool_bar): Remove from hbox or vbox depending on
418 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
419 (xg_change_toolbar_position): New function.
420
421 * frame.h (struct frame): Add tool_bar_position.
422 (Qbottom): Declare.
423
424 * frame.c (Qtool_bar_position): New variable.
425 (make_frame): Set tool_bar_position to Qtop.
426 (frame_parms): Add tool-bar-position.
427 (x_report_frame_params): Store tool_bar_position.
428 (x_set_fringe_width): Reset wm size hint after fringe changes.
429
430 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
431
432 Make lisp_time_argument declaration work on all systems.
433 * lisp.h (lisp_time_argument): Move declaration ...
434 * systime.h (lisp_time_argument): ... here
435 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
436
437 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
438
439 * vm-limit.c (POINTER): Add typedef for it.
440 (start_of_data): Change return type from POINTER to char *.
441
442 * frame.h (Qtty_color_mode): Move declaration out of ifdef
443 HAVE_WINDOW_SYSTEM.
444
445 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
446
447 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
448 Remove reference to __osf__, unused.
449
450 * mem-limits.h: Remove duplicated includes.
451 (NULL): Remove definition, unused.
452 (POINTER): Remove definition.
453 (start_of_data): Use char* in prototype, as the function
454 definition does.
455
456 Remove extern declarations from .c files, and them to .h files.
457 * keyboard.h (Qhelp_echo, waiting_for_input)
458 (input_available_clear_time, ignore_mouse_drag_p)
459 (Vdouble_click_time, real_this_command, Vthis_original_command):
460 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
461 (Voverriding_local_map_menu_flag):
462 * lisp.h (Qinteractive_form, use_file_dialog)
463 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
464 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
465 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
466 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
467 (Qfunction, debug_on_next_call, Qfield)
468 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
469 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
470 (Qfile_directory_p, Qinsert_file_contents)
471 (Qcompletion_ignore_case, Qcompletion_ignore_case)
472 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
473 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
474 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
475 (Qminibuffer_prompt)
476 (Vtemporary_file_directory,char_ins_del_vector, Qface):
477 * xterm.h (gray_bitmap_width, gray_bitmap_height)
478 (gray_bitmap_bits, xic_create_fontsetname):
479 * coding.h (Vtranslation_table_for_input): Add extern declarations.
480
481 * xsmfns.c (Vuser_login_name):
482 * xrdb.c (Vdouble_click_time):
483 * xfaces.c (xic_create_fontsetname):
484 * w32select.c (waiting_for_input):
485 * print.c (minibuffer_auto_raise):
486 * msdos.c (Qhelp_echo):
487 * macros.c (real_this_command):
488 * keymap.c (Voverriding_local_map):
489 * xterm.c (poll_for_input_1, gray_bitmap_width)
490 (gray_bitmap_height, gray_bitmap_bits;
491 * xmenu.c ( Voverriding_local_map)
492 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
493 (use_file_dialog, Xt_app_con):
494 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
495 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
496 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
497 (Qtool_bar_lines, ignore_mouse_drag_p):
498 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
499 (Qrear_nonsticky, nconc2):
500 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
501 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
502 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
503 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
504 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
505 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
506 (gc_in_progress):
507 * doc.c (Voverriding_local_map, Qremap):
508 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
509 (Vcompletion_regexp_list):
510 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
511 (Qcompletion_ignore_case):
512 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
513 (Vhistory_length, Vthis_original_command, real_this_command)
514 (Qface, Qminibuffer_prompt, history_delete_duplicates):
515 * image.c (Qrisky_local_variable):
516 * fontset.c (QCname):
517 * fns.c (minibuffer_auto_raise, QCname):
518 * dispnew.c (char_ins_del_cost):
519 * composite.c (font_fill_lglyph_metrics):
520 * cmds.c (Qface, Vtranslation_table_for_input):
521 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
522 * ccl.c (charset_unicode):
523 * callproc.c (Vtemporary_file_directory):
524 * buffer.c (emacs_strerror): Remove extern declarations.
525
526 * data.c (Qwindow): Make non-static, used from other files too.
527 * frame.c (validate_x_resource_name): Remove shadow definition for i.
528
529 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
530 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
531 * s/usg5-4.h (COFF):
532 * s/template.h:
533 * s/msdos.h (COFF, NO_REMAP):
534 * s/ms-w32.h (NO_REMAP):
535 * s/hpux10-20.h (NO_REMAP):
536 * m/sparc.h (SEGMENT_MASK):
537 * m/m68k.h (NO_REMAP):
538 * m/intel386.h (SEGMENT_MASK):
539 * m/arm.h (NO_REMAP):
540 * m/alpha.h (COFF):
541 * m/template.h: Remove references to unused defines.
542
543 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
544
545 * xsettings.c (Ftool_bar_get_system_style): Also check for
546 Qtext_image_horiz.
547
548 * xdisp.c (Qtext_image_horiz): Define.
549 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
550 to documentation of tool-bar-style.
551
552 * lisp.h (Qtext_image_horiz): Declare.
553
554 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
555 style text_image_horiz.
556
557 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
558
559 * emacs.c (Fkill_emacs): Remove return statement.
560
561 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
562 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
563 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
564 local extern declarations.
565
566 * xmenu.c: Do not included lwlib.h, not needed.
567
568 * m/iris4d.h (XUINT, XSET): Remove, not needed.
569
570 * process.c: Move definitions earlier to minimize #ifdefs.
571
572 * xterm.h (x_get_customization_string, x_load_resources)
573 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
574 (x_check_errors, x_property_data_to_lisp, defined_color)
575 (xic_set_xfontset, x_defined_color): Use const.
576
577 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
578 (x_text_icon, x_check_errors, x_connection_closed): Use const.
579
580 * xselect.c (selection_data_to_lisp_data)
581 (x_property_data_to_lisp):
582 * xrdb.c (x_get_string_resource, file_p)
583 (x_get_customization_string, magic_file_p, search_magic_path)
584 (get_system_app, get_user_app, x_load_resources, x_get_resource)
585 (x_get_string_resource): Use const.
586
587 * xfns.c: Include xlwmenu.h when USE_LUCID.
588 (x_defined_color, xic_set_xfontset): Use const.
589 (Fx_hide_tip): Remove local extern declaration.
590
591 * xfaces.c (Qmouse_face): Remove declaration.
592 (face_color_gray_p, tty_defined_color, defined_color)
593 (face_color_gray_p, face_color_supported_p): Add const.
594
595 * xdisp.c (do_mouse_tracking): Remove declaration.
596 (add_to_log): Use const.
597
598 * minibuf.c (Qmouse_face): Remove declaration.
599
600 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
601
602 * keyboard.h (do_mouse_tracking): Add declaration.
603
604 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
605 (QCdata, QCtype, Qcenter): Remove declarations.
606
607 * frame.c (x_get_resource_string, x_get_string_resource)
608 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
609 (x_default_parameter): Use const.
610
611 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
612 (QCheight, QCsize, QCname): Remove declarations.
613
614 * emacs.c (main): Remove local extern declaration.
615
616 * editfns.c (region_limit, syms_of_editfns): Remove local extern
617 declarations.
618
619 * dispnew.c: Remove duplicate #include <unistd.h>.
620 (update_window, update_frame_1, init_display): Remove local extern
621 declarations.
622
623 * dispextern.h (add_to_log): Remove declaration.
624 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
625 (x_frame_get_and_record_arg, x_default_parameter): Add const.
626
627 * dired.c (scmp): Add const.
628 (directory_files_internal): Remove local extern declaration.
629
630 * data.c (Finteractive_form): Use const.
631
632 * composite.c (syms_of_composite): Remove local extern declarations.
633
634 * charset.c (add_to_log): Remove declaration.
635
636 * character.c (strwidth, parse_str_to_multibyte): Add const.
637
638 * character.h (strwidth, parse_str_to_multibyte): Likewise.
639
640 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
641
642 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
643 (Lisp_Subr): Make doc and intspec constant.
644 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
645 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
646 (QCheight, QCsize, QCname, QCwidth, QCforeground)
647 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
648 (display_arg): Add declarations.
649
650 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
651
652 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
653
654 * window.c (Fwindow_height): Doc fix (bug#6518).
655
656 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
657
658 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
659
660 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
661
662 * keyboard.c (Ftop_level, Fexit_recursive_edit)
663 (Fabort_recursive_edit): Remove return statements in NO_RETURN
664 functions.
665
666 * frame.h (Qtty_color_mode): Add declaration.
667
668 * lisp.h (Ftop_level, Fexit_recursive_edit)
669 (Fabort_recursive_edit): Mark as NO_RETURN.
670
671 2010-07-26 Kenichi Handa <handa@m17n.org>
672
673 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
674 number of glyphs gets smaller than the original length. (Bug#6621)
675
676 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
677
678 * lread.c (unreadpure, mapatoms_1): Make static.
679
680 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
681
682 * terminfo.c (tparam): Fix prototype of tparm.
683
684 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
685
686 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
687 find start of text segment.
688 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
689 is defined.
690
691 * callproc.c (set_initial_environment): Avoid unbalanced braces.
692
693 2010-07-25 Ken Brown <kbrown@cornell.edu>
694
695 * vm-limit.c (check_memory_limits): Fix previous change;
696 accidentally reverted an earlier change.
697
698 2010-07-25 Ken Brown <kbrown@cornell.edu>
699
700 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
701 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
702
703 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
704
705 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
706 * dired.c (opendir, readdir): Fix prototypes.
707 * editfns.c (w32_get_internal_run_time): Fix prototypes.
708 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
709 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
710 (telldir): Remove declaration.
711 * ralloc.c (real_morecore, __morecore): Fix prototypes.
712 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
713 * syssignal.h (strsignal): Fix prototype.
714 * term.c (tparam): Fix prototype.
715 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
716 (term_get_fkeys): Set inside "#ifndef DOS_NT".
717 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
718 and __morecore.
719 * w32gui.h (XParseGeometry): Fix prototype.
720 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
721 * w32term.c (my_set_focus): Declare inside #if 0.
722 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
723 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
724 (drain_message_queue, get_next_msg, post_msg, parse_button)
725 (ClipboardSequence_Proc): Fix prototypes.
726 (wait_for_sync): Remove declaration.
727
728 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
729
730 * w32fns.c (w32_to_x_color): Remove, unused.
731
732 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
733
734 * lisp.h: Remove leftover P_.
735
736 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
737
738 * ecrt0.c, unexalpha.c: Remove files, unused.
739
740 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
741
742 * cmds.c (internal_self_insert): Make static.
743 * lisp.h (internal_self_insert): Remove declaration.
744
745 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
746
747 * alloc.c (free_float):
748 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
749 * frame.c (delete_frame_handler):
750 * ralloc.c (reorder_bloc):
751 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
752 Remove unused static functions.
753
754 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
755 it is called only from NS code.
756
757 * w32term.c (my_set_focus): #ifdef away; it is called only from
758 "#ifdef 0" code.
759
760 * w32fns.c (x_edge_detection):
761 * xfaces.c (may_use_scalable_font_p):
762 Remove obsolete static declarations.
763
764 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
765
766 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
767 (emacs_blocked_realloc, uninterrupt_malloc):
768 * fringe.c (w32_reset_fringes):
769 * image.c (convert_mono_to_color_image, lookup_rgb_color)
770 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
771 * sound.c (be2hs, do_play_sound):
772 * vm-limit.c (get_lim_data, ret_lim_data):
773 * w32term.c (x_free_frame_resources):
774 * xfaces.c (x_create_gc, x_free_gc):
775 Convert definitions to standard C.
776
777 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
778
779 * eval.c (Feval, Ffuncall): Use the new names.
780
781 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
782 (DEFUN): Add braces around the union initialisation and use ## to
783 specify the right union alternative and avoid a cast.
784
785 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
786
787 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
788
789 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
790
791 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
792
793 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
794
795 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
796 is related to the menu bar (Bug#6499).
797 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
798
799 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
800
801 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
802
803 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
804
805 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
806 i.e. don't put back ButtonRelease (Bug#6608).
807
808 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
809 instead of Window. Call xg_event_is_for_menubar when
810 USE_GTK (Bug#6499).
811
812 * gtkutil.h (xg_event_is_for_menubar): Declare.
813
814 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
815
816 2010-07-16 Eli Zaretskii <eliz@gnu.org>
817
818 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
819 when it's the same as the old foreground. (Bug#6609)
820
821 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
822
823 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
824 widget is non-null (Bug#6645).
825
826 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
827
828 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
829 Convert old-style definition.
830
831 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
832 timestamp argument.
833
834 2010-07-15 Eli Zaretskii <eliz@gnu.org>
835
836 * fringe.c (update_window_fringes): Restore mistakenly reverted
837 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
838
839 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
840
841 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
842 (SET_SAVED_KEY_EVENT): Remove (not used).
843 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
844 remove size parameter.
845 (handle_one_xevent): Check popup_activated () for menu for Xt also.
846 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
847 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
848 ButtonRelease.
849 (x_set_window_size_1): scroll_bar_actual_width is always
850 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
851
852 * xdisp.c (pending_menu_activation): Remove extern declaration.
853 (prepare_menu_bars): Remove setting of pending_menu_activation.
854
855 * xmenu.c (pending_menu_activation): Remove.
856 (x_activate_menubar): Set popup_activated_flag for Xt also.
857 Remove setting of pending_menu_activation.
858 (set_frame_menubar): Remove check of pending_menu_activation.
859 Declare menubar_size before code. Correct spelling in comment.
860
861 2010-07-14 Kenichi Handa <handa@m17n.org>
862
863 * font.c (font_open_entity): Cancel previous change.
864 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
865
866 2010-07-13 Eli Zaretskii <eliz@gnu.org>
867
868 Remove subprocesses #ifdefs.
869 * process.c <inhibit_sentinels>: Move to the common part.
870 (Fwaiting_for_user_input_p): Move to the common part; return nil
871 if async subprocesses aren't supported.
872 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
873 MS-DOS. Remove "#ifdef subprocesses".
874 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
875 (gettimeofday): Remove "#ifdef subprocesses".
876 (wait_without_blocking): Remove function.
877 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
878 Remove "#ifdef subprocesses".
879 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
880 compiled on MS-DOS.
881 * callproc.c (Fcall_process) [!MSDOS]: Don't call
882 wait_for_termination on MS-DOS.
883 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
884 initialization of inhibit_sentinels.
885 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
886 subprocesses" conditional.
887 * callproc.c (Fcall_process) [!subprocesses]: Don't call
888 wait_for_termination, since `buffer' cannot be an integer when
889 async subprocesses are not supported
890 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
891 for ifdefing away the call to Fprocess_status.
892
893 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
894 away the entire body of the function.
895
896 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
897
898 Remove subprocesses #ifdefs from term.c.
899 * process.c (add_keyboard_wait_descriptor)
900 (delete_keyboard_wait_descriptor): Move to common section, do
901 nothing when subprocesses is not defined.
902 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
903 Remove subprocesses #ifdefs.
904
905 Convert maybe_fatal to standard C.
906 * lisp.h (verror): Declare.
907 * eval.c (verror): New function containing the code from ...
908 (error): ... this. Call verror.
909 * term.c (vfatal): New function containing the code from ...
910 (fatal): ... this. Call vfatal.
911 (maybe_fatal): Convert to standard C, use variable number of
912 arguments. Declare as non-return.
913 (init_tty): Fix maybe_fatal call.
914
915 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
916
917 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
918 (_scroll_bar_note_movement): Convert definitions to standard C.
919 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
920 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
921
922 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
923
924 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
925 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
926 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
927 (xaw_jump_callback, xaw_scroll_callback)
928 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
929 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
930 definitions to standard C.
931 * xmenu.c (menubar_id_to_frame, popup_get_selection)
932 (popup_activate_callback, popup_deactivate_callback)
933 (menu_highlight_callback, menubar_selection_callback)
934 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
935 (free_frame_menubar, popup_selection_callback, as)
936 (create_and_show_popup_menu, dialog_selection_callback)
937 (create_and_show_dialog):
938 * xfns.c (hack_wm_protocols, x_window):
939 * xfaces.c (x_update_menu_appearance):
940 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
941 (char_to_pixel_size, round_size_to_char, get_wm_shell)
942 (set_frame_size, update_wm_hints, setup_frame_gcs)
943 (update_various_frame_slots, update_from_various_frame_slots)
944 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
945 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
946 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
947
948 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
949
950 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
951
952 2010-07-12 Eli Zaretskii <eliz@gnu.org>
953
954 * process.c (setup_process_coding_systems): Move to the part
955 shared by non-subprocesses systems, and make its body empty when
956 subprocesses is not defined.
957 (close_process_descs): Move to the part shared by non-subprocesses
958 systems.
959 (wait_reading_process_output) [!subprocesses]: Convert arg list to
960 ANSI C.
961
962 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
963
964 * editfns.c (transpose_markers): Convert old-style definition.
965 * emacs.c (abort, shut_down_emacs, fixup_locale)
966 (synchronize_system_time_locale)
967 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
968 * floatfns.c (extract_float, matherr, init_floatfns)
969 (syms_of_floatfns): Likewise.
970 * fns.c (make_hash_table): Likewise.
971 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
972 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
973 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
974 (ftfont_variation_glyphs): Likewise.
975 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
976 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
977 * lread.c (read_filtered_event): Likewise.
978 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
979 * process.c (wait_reading_process_output): Likewise.
980 * scroll.c (do_line_insertion_deletion_costs): Likewise.
981 * search.c (search_buffer, boyer_moore): Likewise.
982 * syntax.c (scan_sexps_forward): Likewise.
983 * xdisp.c (try_scrolling): Likewise.
984 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
985 (face_at_string_position): Likewise.
986 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
987 * xselect.c (x_get_window_property, receive_incremental_selection)
988 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
989 Likewise.
990 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
991
992 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
993
994 * callproc.c (child_setup): Remove subprocesses conditional.
995 Remove code dealing with SET_EMACS_PRIORITY, unused.
996
997 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
998 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
999
1000 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1001 (__do_global_dtors, __main): Use void in definition.
1002 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1003 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1004 the only users from ...
1005 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1006 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1007 (HAVE_VOLATILE): Remove, unused.
1008
1009 Convert more function definitions to standard C.
1010 * xdisp.c (window_box_edges, handle_single_display_spec)
1011 (display_string): Convert definition to standard C.
1012 * scroll.c (do_direct_scrolling, scrolling_1):
1013 * dispnew.c (allocate_matrices_for_frame_redisplay)
1014 (mirrored_line_dance):
1015 * coding.c (code_convert_string):
1016 * charset.c (map_charset_chars):
1017 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1018 (Fregister_ccl_program, Fregister_code_conversion_map):
1019 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1020 (head_table): Make static and const.
1021
1022 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1023
1024 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1025 (PROFILING_LDFLAGS): Set from substitution.
1026 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1027 CFLAGS last.
1028
1029 2010-07-12 Kenichi Handa <handa@m17n.org>
1030
1031 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1032 (shortlisp): Likewise.
1033
1034 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1035
1036 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1037 of FONT_ENTITY_INDEX.
1038 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1039 property, get the property value dynamically.
1040 (Ffont_put): Accept font-entity and font-object too.
1041 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1042 return value changed.
1043 (syms_of_font): Adjusted for the above change.
1044
1045 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1046
1047 * blockinput.h: Remove obsolete comment.
1048
1049 * lisp.h: Include <stddef.h>.
1050 (OFFSETOF): Don't define.
1051 (VECSIZE): Use offsetof instead of OFFSETOF.
1052 (PSEUDOVECSIZE): Likewise.
1053 * process.c (conv_sockaddr_to_lisp): Likewise.
1054 * alloc.c: Don't include <stddef.h>.
1055 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1056
1057 * process.c: Remove obsolete comment.
1058
1059 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1060
1061 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1062
1063 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1064
1065 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1066 index, rindex.
1067 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1068 * editfns.c (Fuser_full_name, Fformat): Likewise.
1069 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1070 * fileio.c (Ffile_symlink_p): Likewise.
1071 * filelock.c (current_lock_owner): Likewise.
1072 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1073 * fontset.c (fontset_pattern_regexp): Likewise.
1074 * lread.c (read1): Likewise.
1075 * sysdep.c (init_system_name): Likewise.
1076 * xfns.c (select_visual): Likewise.
1077 * s/hpux10-20.h (index, rindex): Don't define.
1078 * s/ms-w32.h (index): Likewise.
1079 * s/usg5-4.h: Likewise.
1080
1081 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1082
1083 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1084 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1085 (egetenv): Likewise.
1086 * doprnt.c (doprnt): Likewise.
1087 * editfns.c (set_time_zone_rule, format2): Likewise.
1088 * emacs.c (decode_env_path): Likewise.
1089 * eval.c (signal_error, error): Likewise.
1090 * insdel.c (replace_range_2): Likewise.
1091 * keyboard.c (cmd_error_internal): Likewise.
1092 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1093 * print.c (write_string, write_string_1, print_error_message):
1094 Likewise.
1095 * vm-limit.c (warn_function, memory_warnings): Likewise.
1096 * xdisp.c (message1, message1_nolog, message_with_string)
1097 (vmessage, message, message_nolog): Likewise.
1098 * emacs.c: Remove duplicate declaration.
1099 * keyboard.h: Likewise.
1100 * lisp.h: Update prototypes.
1101
1102 * eval.c: Fix indentation problem.
1103
1104 * keyboard.c: Include "process.h"
1105
1106 * eval.c: Remove obsolete noinline declaration.
1107 * fns.c: Likewise.
1108
1109 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1110
1111 * doprnt.c (doprnt): Take a va_list argument instead of count and
1112 pointer.
1113 * eval.c (error): Change to a standard-C variadic function.
1114 * xdisp.c (vmessage): Renamed from message, made static, and
1115 changed to take a va_list argument.
1116 (message): New variadic wrapper.
1117 (message_nolog): Now a variadic function, calling vmessage.
1118 * lisp.h: Include stdarg.h for va_list.
1119 (doprnt, error, message, message_nolog): Decls updated.
1120
1121 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1122
1123 * process.c (syms_of_process) <delete-exited-processes>: Define
1124 even if !subprocesses.
1125 (delete_exited_processes): Ditto.
1126
1127 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1128 (delete_exited_processes): Don't define.
1129
1130 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1131
1132 * frame.c (make_frame): Initialize menu_bar_lines and
1133 tool_bar_lines members.
1134 (make_initial_frame, make_terminal_frame): Initialize
1135 menu_bar_lines using value of menu-bar-mode.
1136
1137 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1138
1139 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1140
1141 * process.c: Reshuffle #include's. Condition some of the global
1142 and static variables on `subprocesses'.
1143 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1144 Leave only one implementation.
1145 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1146 (kill_buffer_processes, Flist_system_processes)
1147 (Fprocess_attributes, init_process, syms_of_process): Unify the
1148 implementations for with subprocesses and without them.
1149
1150 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1151
1152 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1153 correct size for Motif.
1154 (free_frame_menubar): Call x_set_window_size to update frame size.
1155
1156 * xfns.c (x_window): Set borderWidth to 0 for pane and
1157 EmacsFrame. Frame size calculation is wrong otherwise.
1158
1159 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1160
1161 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1162 allows to suppress errors when polling in Emacs' main loop.
1163 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1164 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1165 (Fdbus_method_error_internal, Fdbus_send_signal)
1166 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1167 (Fdbus_register_method): Use it. (Bug#6579)
1168
1169 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1170
1171 * alloc.c: Convert DEFUNs to standard C.
1172 * buffer.c:
1173 * bytecode.c:
1174 * callint.c:
1175 * callproc.c:
1176 * casefiddle.c:
1177 * casetab.c:
1178 * category.c:
1179 * character.c:
1180 * charset.c:
1181 * chartab.c:
1182 * cmds.c:
1183 * coding.c:
1184 * composite.c:
1185 * data.c:
1186 * dbusbind.c:
1187 * dired.c:
1188 * dispnew.c:
1189 * doc.c:
1190 * dosfns.c:
1191 * editfns.c:
1192 * emacs.c:
1193 * eval.c:
1194 * fileio.c:
1195 * filelock.c:
1196 * floatfns.c:
1197 * fns.c:
1198 * font.c:
1199 * fontset.c:
1200 * frame.c:
1201 * fringe.c:
1202 * image.c:
1203 * indent.c:
1204 * insdel.c:
1205 * keyboard.c:
1206 * keymap.c:
1207 * lread.c:
1208 * macros.c:
1209 * marker.c:
1210 * menu.c:
1211 * minibuf.c:
1212 * msdos.c:
1213 * nsfns.m:
1214 * nsmenu.m:
1215 * nsselect.m:
1216 * print.c:
1217 * process.c:
1218 * search.c:
1219 * sound.c:
1220 * syntax.c:
1221 * term.c:
1222 * terminal.c:
1223 * textprop.c:
1224 * undo.c:
1225 * w16select.c:
1226 * w32console.c:
1227 * w32fns.c:
1228 * w32font.c:
1229 * w32menu.c:
1230 * w32proc.c:
1231 * w32select.c:
1232 * window.c:
1233 * xdisp.c:
1234 * xfaces.c:
1235 * xfns.c:
1236 * xmenu.c:
1237 * xselect.c:
1238 * xsettings.c:
1239 * xsmfns.c: Likewise.
1240
1241 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1242
1243 * process.c (kbd_is_on_hold, hold_keyboard_input)
1244 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1245
1246 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1247
1248 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1249 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1250 unless USE_LUCID.
1251
1252 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1253
1254 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1255 declaration.
1256
1257 Clean up include guards.
1258 * tparam.c: Remove include guards for config.h, string.h and code
1259 that assumes #ifndef emacs.
1260 * termcap.c:
1261 * unexalpha.c:
1262 * sysdep.c:
1263 * filemode.c:
1264 * filelock.c:
1265 * bidi.c: Likewise.
1266
1267 Remove prefix-args.c
1268 * prefix-args.c: Remove file.
1269 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1270 * Makefile.in (temacs${EXEEXT}): Remove references to
1271 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1272 (mostlyclean): Remove reference to prefix-args.
1273 (prefix-args): Remove.
1274
1275 Simplify cstart_of_data, start_of_code and related code.
1276 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1277 (start_of_data): Merge into start_of_data function.
1278 * sysdep.c (start_of_text): Remove. Move simplified versions of
1279 it in the only users: unexaix.c and unexec.c.
1280 (read_input_waiting): Remove local declaration of quit_char.
1281 (start, etext): Remove declarations.
1282 (start_of_data): Merge with the version in mem-limits.h and move
1283 to vm-limits.c.
1284 * vm-limit.c (start_of_data): Merged and simplified version of the
1285 code formerly in mem-limits.h and sysdep.c.
1286 * unexec.c (start): New declaration, moved from sysdep.c.
1287 (start_of_text): Simplified version of the code formerly in sysdep.c.
1288 * unexaix.c (start_of_text): Simplified version of the code
1289 formerly in sysdep.c.
1290 * m/alpha.h (HAVE_TEXT_START): Remove.
1291 (TEXT_START): Move ...
1292 * unexalpha.c (TEXT_START): ... here.
1293 * s/hpux10-20.h (TEXT_START): Remove.
1294 * s/darwin.h (TEXT_START):
1295 * m/mips.h (TEXT_START):
1296 * m/macppc.h (HAVE_TEXT_START):
1297 * m/m68k.h (TEXT_START):
1298 * m/iris4d.h (TEXT_START):
1299 * m/intel386.h (TEXT_START):
1300 * m/ibmrs6000.h (TEXT_START):
1301 * m/ia64.h (HAVE_TEXT_START):
1302 * s/msdos.h (TEXT_START): Likewise.
1303
1304 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1305
1306 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1307 (overrun_check_free, xstrdup, allocate_string)
1308 (allocate_string_data, compact_small_strings, Fmake_string)
1309 (make_unibyte_string, make_multibyte_string)
1310 (make_string_from_bytes, make_specified_string, make_float)
1311 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1312 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1313 memcpy, memmove, memset, memcmp.
1314 * atimer.c (start_atimer, set_alarm): Likewise.
1315 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1316 (mmap_realloc, init_buffer_once): Likewise.
1317 * callint.c (Fcall_interactively): Likewise.
1318 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1319 (getenv_internal_1): Likewise.
1320 * casefiddle.c (casify_object): Likewise.
1321 * ccl.c (ccl_driver): Likewise.
1322 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1323 * charset.c (load_charset_map_from_file)
1324 (load_charset_map_from_file, load_charset_map_from_vector)
1325 (Fdefine_charset_internal): Likewise.
1326 * cm.c (Wcm_clear): Likewise.
1327 * coding.c (decode_eol, decode_coding_object)
1328 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1329 * data.c (Faset): Likewise.
1330 * dired.c (directory_files_internal, file_name_completion_stat):
1331 Likewise.
1332 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1333 (clear_glyph_row, copy_row_except_pointers)
1334 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1335 (save_current_matrix, restore_current_matrix)
1336 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1337 (mirror_line_dance, scrolling_window): Likewise.
1338 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1339 Likewise.
1340 * doprnt.c (doprnt): Likewise.
1341 * editfns.c (Fuser_full_name, make_buffer_string_both)
1342 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1343 * emacs.c (sort_args): Likewise.
1344 * eval.c (Fapply, Ffuncall): Likewise.
1345 * fileio.c (Ffile_name_directory, make_temp_name)
1346 (Fexpand_file_name, search_embedded_absfilename)
1347 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1348 (auto_save_error): Likewise.
1349 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1350 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1351 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1352 (Fmake_hash_table): Likewise.
1353 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1354 * ftfont.c (ftfont_text_extents): Likewise.
1355 * getloadavg.c (getloadavg): Likewise.
1356 * image.c (define_image_type, make_image, make_image_cache)
1357 (x_create_x_image_and_pixmap, xbm_image_p)
1358 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1359 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1360 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1361 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1362 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1363 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1364 Likewise.
1365 * indent.c (scan_for_column, compute_motion): Likewise.
1366 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1367 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1368 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1369 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1370 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1371 (store_user_signal_events, menu_bar_items, tool_bar_items)
1372 (process_tool_bar_item, append_tool_bar_item)
1373 (read_char_minibuf_menu_prompt, read_key_sequence)
1374 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1375 Likewise.
1376 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1377 Likewise.
1378 * lisp.h (STRING_COPYIN): Likewise.
1379 * lread.c (Fload, read1, oblookup): Likewise.
1380 * msdos.c (Frecent_doskeys): Likewise.
1381 * nsfns.m (Fx_create_frame): Likewise.
1382 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1383 Likewise.
1384 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1385 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1386 Likewise.
1387 * nsmenu.m (ns_update_menubar): Likewise.
1388 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1389 * print.c (print_unwind, printchar, strout, print_string)
1390 (print_error_message): Likewise.
1391 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1392 (Fmake_network_process, Fnetwork_interface_list)
1393 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1394 (init_process): Likewise.
1395 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1396 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1397 Likewise.
1398 * scroll.c (do_scrolling, do_direct_scrolling)
1399 (scrolling_max_lines_saved): Likewise.
1400 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1401 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1402 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1403 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1404 (emacs_set_tty): Likewise.
1405 * term.c (encode_terminal_code, calculate_costs)
1406 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1407 Likewise.
1408 * termcap.c (tgetst1, gobble_line): Likewise.
1409 * termhooks.h (EVENT_INIT): Likewise.
1410 * tparam.c (tparam1): Likewise.
1411 * unexalpha.c (unexec): Likewise.
1412 * unexec.c (write_segment): Likewise.
1413 * unexmacosx.c (unexec_write_zero): Likewise.
1414 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1415 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1416 * w32font.c (w32font_list_family, w32font_text_extents)
1417 (w32font_list_internal, w32font_match_internal)
1418 (w32font_open_internal, compute_metrics, Fx_select_font):
1419 Likewise.
1420 * w32menu.c (set_frame_menubar, add_menu_item)
1421 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1422 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1423 * w32uniscribe.c (uniscribe_list_family): Likewise.
1424 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1425 * window.c (make_window, replace_window, set_window_buffer)
1426 (Fsplit_window): Likewise.
1427 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1428 (add_to_log, message3, x_consider_frame_title)
1429 (append_space_for_newline, extend_face_to_end_of_line)
1430 (decode_mode_spec_coding, init_glyph_string): Likewise.
1431 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1432 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1433 (face_attr_equal_p, make_realized_face, make_face_cache)
1434 (free_realized_faces, lookup_named_face, smaller_face)
1435 (face_with_height, lookup_derived_face)
1436 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1437 (Finternal_set_font_selection_order, realize_default_face)
1438 (compute_char_face, face_at_buffer_position)
1439 (face_for_overlay_string, face_at_string_position, merge_faces):
1440 Likewise.
1441 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1442 (Fx_window_property, x_create_tip_frame)
1443 (Fx_backspace_delete_keys_p): Likewise.
1444 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1445 (xfont_text_extents): Likewise.
1446 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1447 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1448 * xselect.c (x_queue_event, x_get_window_property)
1449 (receive_incremental_selection): Likewise.
1450 * xsmfns.c (x_session_check_input): Likewise.
1451 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1452 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1453 Likewise.
1454 * character.h (BCOPY_SHORT): Removed.
1455 * config.in: Regenerate.
1456 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1457 * emacs.c (main) [PROFILING]: Don't declare
1458 dump_opcode_frequencies.
1459 * lisp.h (safe_bcopy): Remove declaration.
1460 (memset) [!HAVE_MEMSET]: Declare.
1461 (memcpy) [!HAVE_MEMCPY]: Likewise.
1462 (memmove) [!HAVE_MEMMOVE]: Likewise.
1463 (memcmp) [!HAVE_MEMCMP]: Likewise.
1464 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1465 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1466 Don't define.
1467 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1468 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1469 (BCOPY_DOWNWARD_SAFE): Don't define.
1470 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1471 (memcpy) [!HAVE_MEMCPY]: Define.
1472 (memmove) [!HAVE_MEMMOVE]: Define.
1473 (memcmp) [!HAVE_MEMCMP]: Define.
1474
1475 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1476
1477 * process.c (kbd_is_on_hold): New variable.
1478 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1479 New functions.
1480 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1481 select on empty input mask.
1482 (init_process): Initialize kbd_is_on_hold to 0.
1483
1484 * process.h (hold_keyboard_input, unhold_keyboard_input)
1485 (kbd_on_hold_p): Declare.
1486
1487 * keyboard.c (input_available_signal): Declare.
1488 (kbd_buffer_nr_stored): New function.
1489 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1490 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1491 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1492 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1493 (tty_read_avail_input): If input is on hold, return.
1494 Don't read more that free slots in kbd_buffer (Bug#6571).
1495
1496 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1497
1498 * msdos.h:
1499 * msdos.c:
1500 * dosfns.c:
1501 * w16select.c: Convert function definitions to ANSI C.
1502
1503 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1504 Remove unused prototypes.
1505
1506 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1507
1508 * coding.c, sysdep.c: Convert some more functions to standard C.
1509
1510 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1511
1512 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1513 (encode_coding_object): Use SPECPDL_INDEX.
1514 (syms_of_coding): Use DOS_NT.
1515
1516 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1517
1518 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1519
1520 Make the function member of Lisp_Subr use standard C prototypes.
1521 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1522 (DECL_ALIGN): Add a cast for the function.
1523 * eval.c (Feval, Ffuncall): Use the proper type for each type
1524 function call.
1525
1526 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1527
1528 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1529 fringe face id, so face-remapping-alist works (Bug#6091).
1530
1531 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1532
1533 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1534 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1535 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1536
1537 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1538
1539 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1540 * lisp.h: Declare x_get_keysym_name.
1541 * keyboard.c (modify_event_symbol): Don't declare
1542 x_get_keysym_name here.
1543
1544 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1545
1546 * ecrt0.c: Revert conversion to standard C.
1547
1548 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1549
1550 * vm-limit.c (memory_warnings):
1551 * keyboard.c (modify_event_symbol):
1552 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1553 (round2, emacs_rint):
1554 * process.c (send_process, old_sigpipe): Convert function
1555 definitions and declarations to standard C.
1556
1557 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1558
1559 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1560 * xdisp.c: Convert function definitions to standard C.
1561
1562 * cm.c (cmputc): Arg C is now int, not char.
1563 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1564
1565 2010-07-05 James Cloos <cloos@jhcloos.com>
1566
1567 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1568
1569 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1570 _NET_WM_ICON_NAME atoms.
1571
1572 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1573 and _NET_WM_ICON_NAME properties, too, matching what is
1574 done in the Gtk+ case.
1575
1576 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1577
1578 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1579
1580 * xsmfns.c (SSDATA): New macro.
1581 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1582 passed to strlen/strcpy/strcat.
1583 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1584 7:th arg to XChangeProperty to (unsigned char *)
1585
1586 * xsettings.c (something_changedCB, parse_settings)
1587 (apply_xft_settings): Reformat prototype.
1588 (something_changedCB, init_gconf): Remove unused variable i.
1589 (read_settings): Remove unused variable long_len.
1590
1591 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1592 (xg_get_image_for_pixmap, create_dialog)
1593 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1594 (menuitem_highlight_callback, make_menu_item)
1595 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1596 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1597 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1598 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1599 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1600 (xg_tool_bar_item_expose_callback): Reformat prototype.
1601 (xg_update_menubar): GList *group => GSList *group.
1602 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1603 before use.
1604 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1605 to GTK_IMAGE (wimage).
1606
1607 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1608
1609 * atimer.c: Use "" instead of <> for local includes for
1610 consistency with the rest of the code.
1611
1612 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1613 * xrdb.c (get_system_name):
1614 * window.c (shrink_windows):
1615 * syntax.c (forw_comment):
1616 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1617 (ins_del_costs):
1618 * mem-limits.h (start_of_data):
1619 * lread.c (readevalloop):
1620 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1621 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1622 * frame.c (x_get_focus_frame):
1623 * floatfns.c (fmod_float):
1624 * fileio.c (choose_write_coding_system):
1625 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1626 (malloc_initialize_hook, sort_args, synchronize_locale):
1627 * doprnt.c (doprnt):
1628 * dired.c (compile_pattern):
1629 * data.c (fmod_float):
1630 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1631 (map_char_table_for_charset):
1632 * charset.c (define_charset_internal):
1633 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1634 to standard C.
1635
1636 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1637 Stefan Monnier <monnier@iro.umontreal.ca>
1638
1639 * lread.c (read1): Fix up last change to not mess up `c'.
1640
1641 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1642
1643 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1644
1645 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1646
1647 Fix prototypes.
1648
1649 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1650 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1651 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1652 arg, as required by internal_condition_case_1.
1653 * print.c (strout): Use const char* for arg PTR.
1654 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1655 (analyse_first): Fix "const const".
1656 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1657 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1658 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1659
1660 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1661
1662 * alloc.c: Convert function definitions to standard C.
1663 * atimer.c:
1664 * bidi.c:
1665 * bytecode.c:
1666 * callint.c:
1667 * callproc.c:
1668 * casefiddle.c:
1669 * casetab.c:
1670 * category.c:
1671 * ccl.c:
1672 * character.c:
1673 * charset.c:
1674 * chartab.c:
1675 * cmds.c:
1676 * coding.c:
1677 * composite.c:
1678 * data.c:
1679 * dbusbind.c:
1680 * dired.c:
1681 * dispnew.c:
1682 * doc.c:
1683 * doprnt.c:
1684 * ecrt0.c:
1685 * editfns.c:
1686 * fileio.c:
1687 * filelock.c:
1688 * filemode.c:
1689 * fns.c:
1690 * font.c:
1691 * fontset.c:
1692 * frame.c:
1693 * fringe.c:
1694 * ftfont.c:
1695 * ftxfont.c:
1696 * gtkutil.c:
1697 * indent.c:
1698 * insdel.c:
1699 * intervals.c:
1700 * keymap.c:
1701 * lread.c:
1702 * macros.c:
1703 * marker.c:
1704 * md5.c:
1705 * menu.c:
1706 * minibuf.c:
1707 * prefix-args.c:
1708 * print.c:
1709 * ralloc.c:
1710 * regex.c:
1711 * region-cache.c:
1712 * scroll.c:
1713 * search.c:
1714 * sound.c:
1715 * strftime.c:
1716 * syntax.c:
1717 * sysdep.c:
1718 * termcap.c:
1719 * terminal.c:
1720 * terminfo.c:
1721 * textprop.c:
1722 * tparam.c:
1723 * undo.c:
1724 * unexelf.c:
1725 * window.c:
1726 * xfaces.c:
1727 * xfns.c:
1728 * xfont.c:
1729 * xftfont.c:
1730 * xgselect.c:
1731 * xmenu.c:
1732 * xrdb.c:
1733 * xselect.c:
1734 * xsettings.c:
1735 * xsmfns.c:
1736 * xterm.c: Likewise.
1737
1738 2010-07-03 Eli Zaretskii <eliz@gnu.org>
1739
1740 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1741 frames other than the initial one. Fix reversal of colors when
1742 `reverse' is specified in the frame parameters. Call
1743 update_face_from_frame_parameter instead of
1744 internal-set-lisp-face-attribute. Initialize screen colors from
1745 initial_screen_colors[] when f->default_face_done_p is zero,
1746 instead of depending on being called with default-frame-alist as
1747 the alist argument.
1748
1749 * xfaces.c (update_face_from_frame_parameter): Move out of
1750 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1751 with HAVE_WINDOW_SYSTEM.
1752
1753 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1754 to menu-bar-mode, if not set in the frame parameters or in
1755 default-frame-alist.
1756
1757 * w32console.c (sys_tputs): Adjust argument list to prototype in
1758 term.c.
1759
1760 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1761
1762 * lisp.h (memory_warnings): Fix prototype.
1763
1764 * cm.h (evalcost): Fix prototype.
1765
1766 * cm.c (evalcost): Fix arg type.
1767
1768 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1769
1770 * term.c (term_clear_mouse_face, Fidentity):
1771 * syssignal.h (signal_handler_t):
1772 * lisp.h (memory_warnings):
1773 * coding.h (preferred_coding_system):
1774 * cm.h (evalcost):
1775 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1776
1777 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1778
1779 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1780 from prototypes.
1781
1782 * msdos.h (load_pixmap): Don't define away.
1783
1784 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1785
1786 * lisp.h:
1787 * atimer.h: Remove define for P_.
1788
1789 * alloc.c: Remove __P and P_ from .c and .m files.
1790 * atimer.c:
1791 * buffer.c:
1792 * callint.c:
1793 * category.c:
1794 * charset.c:
1795 * chartab.c:
1796 * cm.c:
1797 * coding.c:
1798 * composite.c:
1799 * data.c:
1800 * dired.c:
1801 * dispnew.c:
1802 * doc.c:
1803 * editfns.c:
1804 * emacs.c:
1805 * eval.c:
1806 * fileio.c:
1807 * filelock.c:
1808 * fns.c:
1809 * font.c:
1810 * fontset.c:
1811 * frame.c:
1812 * ftfont.c:
1813 * ftxfont.c:
1814 * gmalloc.c:
1815 * gtkutil.c:
1816 * image.c:
1817 * indent.c:
1818 * intervals.c:
1819 * keyboard.c:
1820 * keymap.c:
1821 * lread.c:
1822 * marker.c:
1823 * menu.c:
1824 * minibuf.c:
1825 * print.c:
1826 * process.c:
1827 * scroll.c:
1828 * search.c:
1829 * sound.c:
1830 * strftime.c:
1831 * syntax.c:
1832 * sysdep.c:
1833 * term.c:
1834 * terminal.c:
1835 * textprop.c:
1836 * unexalpha.c:
1837 * w32console.c:
1838 * w32fns.c:
1839 * w32font.c:
1840 * w32menu.c:
1841 * w32term.c:
1842 * w32uniscribe.c:
1843 * window.c:
1844 * xdisp.c:
1845 * xfaces.c:
1846 * xfns.c:
1847 * xfont.c:
1848 * xftfont.c:
1849 * xmenu.c:
1850 * xselect.c:
1851 * xterm.c: Likewise.
1852
1853 Remove P_ and __P macros.
1854 * atimer.h: Remove P_ and __P macros.
1855 * buffer.h:
1856 * category.h:
1857 * ccl.h:
1858 * character.h:
1859 * charset.h:
1860 * cm.h:
1861 * coding.h:
1862 * composite.h:
1863 * dispextern.h:
1864 * disptab.h:
1865 * dosfns.h:
1866 * font.h:
1867 * fontset.h:
1868 * frame.h:
1869 * gtkutil.h:
1870 * indent.h:
1871 * intervals.h:
1872 * keyboard.h:
1873 * keymap.h:
1874 * lisp.h:
1875 * macros.h:
1876 * md5.h:
1877 * menu.h:
1878 * msdos.h:
1879 * nsterm.h:
1880 * puresize.h:
1881 * region-cache.h:
1882 * syntax.h:
1883 * syssignal.h:
1884 * systime.h:
1885 * termhooks.h:
1886 * w32font.h:
1887 * w32term.h:
1888 * widget.h:
1889 * window.h:
1890 * xgselect.h:
1891 * xsettings.h:
1892 * xterm.h: Likewise.
1893
1894 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1895
1896 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1897
1898 Cleanup old code.
1899 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1900 * syssignal.h: Remove code for Lynx, not supported anymore.
1901 * vm-limit.c: Remove unused code the depends on emacs not being
1902 defined and NO_LIM_DATA being defined.
1903 * mem-limits.h: Remove dead code.
1904
1905 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1906
1907 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1908
1909 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1910 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1911
1912 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1913 parameters, they are already absolute.
1914
1915 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1916 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1917
1918 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1919
1920 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1921 Update FRAME_TOOLBAR_HEIGHT.
1922
1923 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1924 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1925
1926 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
1927
1928 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1929 check default-frame-alist.
1930
1931 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1932
1933 * process.c (create_process): Avoid using invalid file descriptors.
1934
1935 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1936
1937 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1938
1939 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1940 Improve documentation. Return font regardless of use_system_font.
1941 (syms_of_xsettings): Improve documentation for font-use-system-font.
1942
1943 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1944
1945 * xfaces.c (realize_face): Garbage the frame if a face is removed
1946 (Bug#6593).
1947
1948 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1949
1950 * keyboard.c: Remove duplicate <setjmp.h>.
1951 (read_key_sequence): Remove volatile qualifiers.
1952
1953 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1954
1955 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1956 (struct glyph_row): New members left_fringe_offset and
1957 right_fringe_offset.
1958
1959 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1960 specially.
1961 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1962 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1963
1964 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1965 Take account of bitmap offset.
1966 (draw_window_fringes): Take account of window vscroll.
1967 (update_window_fringes): Likewise. Extend top-aligned top indicator
1968 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1969 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1970 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1971
1972 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1973
1974 * w32fns.c (Qtooltip): Declare.
1975 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1976
1977 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1978
1979 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1980 grab on just Press (Bug#6499).
1981
1982 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
1983
1984 * frame.c (Qtooltip): New var.
1985 (delete_frame): Use it. Fix faulty if statement. Don't update
1986 mode line for tooltip frames. Suggested by Martin Rudalics.
1987
1988 * xfns.c (x_create_tip_frame):
1989 * w32fns.c (x_create_tip_frame): Use it.
1990
1991 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1992
1993 * xftfont.c (xftfont_open): Check font width one by one also when
1994 spacing is dual.
1995
1996 * ftfont.c (ftfont_open): Ditto.
1997
1998 2010-06-30 Glenn Morris <rgm@gnu.org>
1999
2000 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2001
2002 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2003
2004 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2005 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2006 * s/darwin.h (SYSTEM_MALLOC):
2007 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2008
2009 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2010
2011 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2012 (ns_get_screen): Don't assign integer to f.
2013 (Fx_display_color_cells): Declarations before statements.
2014
2015 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2016
2017 * xfns.c (x_default_font_parameter): Remove got_from_system
2018 (Bug#6526).
2019
2020 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2021 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2022 defines based on what configure finds.
2023
2024 * xterm.c (XTflash): Use gtk_widget_get_window.
2025 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2026 gtk_adjustment_get_page_size.
2027 (handle_one_xevent): Use gtk_widget_get_mapped.
2028 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2029 messages.
2030
2031 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2032
2033 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2034 HAVE_GTK_FILE_SELECTION_NEW.
2035
2036 * gtkutil.c (xg_display_open, xg_display_close): Remove
2037 HAVE_GTK_MULTIDISPLAY, it is always defined.
2038 (xg_display_open): Return type is void.
2039 (gtk_widget_set_has_window)
2040 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2041 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2042 (gtk_adjustment_set_page_increment)
2043 (gtk_adjustment_get_step_increment): #define these if not found
2044 by configure.
2045 (remove_submenu): New define based on Gtk+ version.
2046 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2047 gtk_widget_get_window.
2048 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2049 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2050 (create_dialog): Use gtk_dialog_get_action_area and
2051 gtk_dialog_get_content_area.
2052 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2053 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2054 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2055 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2056 g_object_ref and g_object_unref.
2057 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2058 gtk_widget_get_sensitive.
2059 (xg_update_submenu): Use remove_submenu.
2060 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2061 properties instead to get old x and y position.
2062 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2063 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2064 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2065 (xg_get_tool_bar_widgets): New function.
2066 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2067 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2068 (toolbar_set_orientation): New #define based on if configure
2069 finds gtk_orientable_set_orientation.
2070 (xg_create_tool_bar): Call toolbar_set_orientation.
2071 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2072 instead of gtk_box_pack_start_defaults.
2073
2074 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2075
2076 * cmds.c (Fdelete_backward_char): Move into Lisp.
2077
2078 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2079
2080 * s/freebsd.h (BSD4_2): Remove redundant definition.
2081 bsd-common.h defines it already.
2082
2083 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2084
2085 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2086 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2087 tool-bar-mode, which are now set using these X resources at
2088 startup, to determine the defaults (Bug#2249).
2089
2090 * w32fns.c (Fx_create_frame):
2091 * nsfns.m (Fx_create_frame): Likewise.
2092
2093 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2094
2095 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2096
2097 * gtkutil.c (xg_update_scrollbar_pos):
2098 Avoid C99 mid-block variable declaration.
2099
2100 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2101
2102 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2103
2104 * gtkutil.h (xg_show_scroll_bar): Remove.
2105
2106 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2107 if height is less than scroll bar min size.
2108 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2109
2110 * xfns.c (x_default_font_parameter): Try to open font from system
2111 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2112
2113 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2114
2115 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2116
2117 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2118
2119 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2120 most-positive-fixnum, be extra accurate when scrolling window
2121 start, to avoid missing the cursor line.
2122
2123 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2124
2125 * xdisp.c (try_scrolling): Compute the limit for searching point
2126 in forward scroll from scroll_max, instead of an arbitrary limit
2127 of 10 screen lines. See
2128 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2129 and
2130 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2131 for details.
2132
2133 2010-06-16 Glenn Morris <rgm@gnu.org>
2134
2135 * editfns.c (Fbyte_to_string): Pacify compiler.
2136
2137 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2138
2139 * lread.c (read1): Phase out old-style backquotes a bit more.
2140
2141 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2142
2143 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2144 bidimirror.h.
2145
2146 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2147
2148 * bidi.c (bidi_initialize): Remove explicit initialization of
2149 bidi_type_table; include biditype.h instead. Don't support
2150 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2151 (bidi_mirror_char): Use bidi_mirror_table.
2152
2153 * biditype.h: New file.
2154
2155 * bidimirror.h: New file.
2156
2157 * window.c (syms_of_window): Doc fix (bug#6409).
2158
2159 2010-06-12 Romain Francoise <romain@orebokech.com>
2160
2161 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2162 ediff-hook.
2163
2164 2010-06-10 Glenn Morris <rgm@gnu.org>
2165
2166 * editfns.c (Fbyte_to_string): Pacify compiler.
2167
2168 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2169
2170 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2171
2172 * alloc.c (Fmake_byte_code): Don't access undefined argument
2173 (Bug#6517).
2174
2175 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2176
2177 * xdisp.c (next_element_from_image): Ensure that after-strings are
2178 read the next time we hit handle_stop (Bug#1336).
2179
2180 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2181
2182 * lread.c (read1): Signal error if #s is not followed by paren.
2183
2184 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2185
2186 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2187
2188 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2189
2190 2010-06-15 Glenn Morris <rgm@gnu.org>
2191
2192 * editfns.c (Fbyte_to_string): Pacify compiler.
2193
2194 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2195
2196 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2197 Check `object's type before accessing its guts.
2198
2199 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2200
2201 * s/usg5-4.h: Fix previous change.
2202 Suggested by Lawrence Mitchell <wence@gmx.li>
2203
2204 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2205
2206 * minibuf.c (Fall_completions): Add more checks.
2207
2208 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2209
2210 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2211
2212 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2213
2214 * lread.c (X_OK): Remove, unused.
2215
2216 * dispnew.c: Remove obsolete comment.
2217
2218 Remove INCLUDED_FCNTL.
2219 * xterm.c (INCLUDED_FCNTL):
2220 * callproc.c (INCLUDED_FCNTL):
2221 * alloc.c (INCLUDED_FCNTL):
2222 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2223 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2224
2225 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2226
2227 * window.c (Fselect_window): Move `record_buffer' up to the
2228 beginning of this function, so the buffer gets recorded
2229 even if the selected window does not change.
2230 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2231
2232 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2233
2234 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2235 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2236
2237 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2238
2239 Remove BSTRING related code, all platforms define it.
2240 * s/usg5-4.h (BSTRING): Remove definition.
2241 * s/template.h (BSTRING):
2242 * s/msdos.h (BSTRING):
2243 * s/ms-w32.h (BSTRING):
2244 * s/hpux10-20.h (BSTRING):
2245 * s/gnu-linux.h (BSTRING):
2246 * s/darwin.h (BSTRING):
2247 * s/cygwin.h (BSTRING):
2248 * s/bsd-common.h (BSTRING):
2249 * s/aix4-2.h (BSTRING): Likewise.
2250 * sysdep.c: Remove code depending on BSTRING not being defined.
2251
2252 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2253
2254 Remove obsolete macro BASE_LEADING_CODE_P.
2255 * character.h (BASE_LEADING_CODE_P): Remove.
2256 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2257 * buffer.c (Fset_buffer_multibyte):
2258 * indent.c (scan_for_column, compute_motion):
2259 * insdel.c (count_combining_before, count_combining_after):
2260 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2261
2262 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2263
2264 Turn `directory-sep-char' into a noop.
2265
2266 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2267 (DIRECTORY_SEP): Define unconditionally.
2268
2269 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2270
2271 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2272 call dostounix_filename directly.
2273
2274 * fileio.c (CORRECT_DIR_SEPS): Remove.
2275 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2276 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2277 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2278 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2279
2280 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2281 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2282
2283 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2284
2285 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2286 (Bug#6346)
2287
2288 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2289
2290 * ccl.c (Fccl_program_p): Fix typo in docstring.
2291
2292 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2293
2294 Move UNEXEC definition to autoconf.
2295 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2296 * s/sol2-10.h (UNEXEC):
2297 * s/irix6-5.h (UNEXEC):
2298 * s/hpux10-20.h (UNEXEC):
2299 * s/gnu-linux.h (UNEXEC):
2300 * s/darwin.h (UNEXEC):
2301 * s/cygwin.h (UNEXEC):
2302 * s/bsd-common.h (UNEXEC):
2303 * s/aix4-2.h (UNEXEC):
2304 * m/alpha.h (UNEXEC): Likewise.
2305 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2306
2307 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2308
2309 Remove obsolete pre-unicode2 macros.
2310 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2311 * composite.c (composition_reseat_it):
2312 * data.c (Faset):
2313 * fns.c (Ffillarray):
2314 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2315 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2316
2317 2010-06-03 Juri Linkov <juri@jurta.org>
2318
2319 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2320 (Fswitch_to_buffer): Remove unused variable `err'.
2321
2322 2010-06-03 Glenn Morris <rgm@gnu.org>
2323
2324 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2325
2326 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2327 now that AH_BOTTOM does it.
2328
2329 * m/hp800.h (HAVE_ALLOCA):
2330 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2331
2332 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2333 Remove NOT_C_CODE tests, it is always true now.
2334
2335 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2336
2337 Fix config.h includes.
2338 * xsettings.c:
2339 * xgselect.c:
2340 * nsterm.m:
2341 * nsselect.m:
2342 * nsimage.m:
2343 * nsfont.m:
2344 * nsfns.m:
2345 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2346 other files do.
2347
2348 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2349
2350 * s/sol2-6.h: Remove obsolete comments.
2351
2352 Remove unnecessary alloca.h includes.
2353 * keymap.c: Do not include alloca.h, config.h does that.
2354 * sysdep.c: Likewise. Do not define fwrite, not used.
2355
2356 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2357
2358 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2359 the HAVE_TERMIO where it belongs (bug#6149).
2360
2361 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2362
2363 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2364 of bug#6305).
2365
2366 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2367
2368 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2369 state is always cached (bug#6306).
2370
2371 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2372
2373 Fix cursor motion in bidi-reordered continued lines.
2374 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2375 only after finding point's row. Fix the logic. Rewrite the loop
2376 over continuation lines in bidi-reordered buffers. Return
2377 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2378 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2379
2380 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2381
2382 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2383
2384 2010-05-28 Kenichi Handa <handa@m17n.org>
2385
2386 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2387 Don't sheck SPEC if it is nil.
2388 (font_list_entities): Call font_delete_unmatched if
2389 Vface_ignored_fonts is non-nil. (Bug#6287)
2390
2391 2010-05-28 Glenn Morris <rgm@gnu.org>
2392
2393 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2394
2395 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2396
2397 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2398 whether to trash.
2399 (internal_delete_file, Frename_file): Callers changed.
2400 (delete_by_moving_to_trash): Doc fix.
2401 (Fdelete_directory_internal): Don't move to trash.
2402
2403 * callproc.c (delete_temp_file):
2404 * buffer.c (Fkill_buffer): Callers changed.
2405
2406 * lisp.h: Update prototype.
2407
2408 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * xdisp.c (redisplay_window): After redisplay, check if point is
2411 still valid before setting it (Bug#6177).
2412
2413 2010-05-27 Glenn Morris <rgm@gnu.org>
2414
2415 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2416 Convert comments to Makefile format.
2417
2418 * Makefile.in (bootstrap-clean): No more Makefile.c.
2419
2420 2010-05-26 Glenn Morris <rgm@gnu.org>
2421
2422 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2423 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2424
2425 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2426 Remove.
2427 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2428
2429 2010-05-26 Kenichi Handa <handa@m17n.org>
2430
2431 * composite.c (composition_compute_stop_pos): Fix condition for
2432 backward scanning.
2433
2434 2010-05-25 Glenn Morris <rgm@gnu.org>
2435
2436 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2437 Move before TEMACS_LDFLAGS.
2438 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2439 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2440
2441 * Makefile.in (NOT_C_CODE): No longer define.
2442 (config.h): No longer include.
2443
2444 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2445 variables it may reference.
2446
2447 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2448 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2449
2450 2010-05-25 Kenichi Handa <handa@m17n.org>
2451
2452 * dispextern.h (struct composition_it): New members rule_idx and
2453 charpos.
2454
2455 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2456 that the character positions of IT point the last character of the
2457 current grapheme cluster.
2458 (next_element_from_composition): Don't change character positions
2459 of IT.
2460 (append_composite_glyph): Set glyph->charpos to
2461 it->cmp_it.charpos.
2462
2463 * composite.c (autocmp_chars): Change the first argument to RULE,
2464 and try composition with RULE only.
2465 (composition_compute_stop_pos): Record the index number of the
2466 composition rule in CMP_IT->rule_idx.
2467 (composition_reseat_it): Call autocmp_chars repeatedly until the
2468 correct rule of the composition is found.
2469 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2470 is at the last character of the current grapheme cluster when
2471 CMP_IT->reversed_p is nonzero.
2472
2473 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2474
2475 * editfns.c (Fbyte_to_string): New function.
2476
2477 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2478
2479 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2480 Suggested by Masatake YAMATO <yamato@redhat.com>.
2481
2482 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2483
2484 * dispextern.h (init_iterator): Sync prototype with changed definition.
2485
2486 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2487
2488 * s/netbsd.h: If terminfo is found, use it in preference to
2489 termcap. (Bug#6190) [Backport from trunk]
2490
2491 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2492
2493 Redesign and reimplement bidi-aware edge positions of glyph rows.
2494
2495 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2496 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2497 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2498 and maxpos members instead of start.pos and end.pos, respectively.
2499
2500 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2501 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2502 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2503 (try_window_reusing_current_matrix, try_window_id):
2504 Use ROW->minpos rather than ROW->start.pos.
2505 (init_from_display_pos, init_iterator): Use EMACS_INT for
2506 character and byte positions.
2507 (find_row_edges): Rename from find_row_end. Accept additional
2508 arguments for minimum and maximum buffer positions seen by
2509 display_line for this row. Don't use iterator to find the
2510 position following the maximum one; instead, increment the
2511 position found by display_line directly. Fix logic; eol_pos
2512 should be tested before the rest. Handle the case of characters
2513 delivered from display vector (bug#6036). Fix tests related to
2514 it->method. Handle the truncated_on_right_p rows.
2515 (RECORD_MAX_MIN_POS): New macro.
2516 (display_line): Use it to record the minimum and maximum buffer
2517 positions for glyphs in the row being assembled. Record the
2518 position of the newline that terminates the line. If word wrap is
2519 in effect, restore minimum and maximum positions seen up to the
2520 wrap point, when iterator returns to it.
2521 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2522 row and cursor not already at point. Restore original pre-bidi
2523 code for unidirectional buffers.
2524
2525 * dispnew.c (increment_row_positions, check_matrix_invariants):
2526 Increment and check row->start.pos and row->end.pos, in addition
2527 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2528
2529 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2530 Display truncated_on_left_p and truncated_on_right_p flags.
2531 Formatting fixes.
2532 (pmtxrows): Display the ordinal number of each row. Don't display
2533 rows beyond the last one.
2534
2535 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2536 it is not copied by bidi_copy_it.
2537
2538 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2539
2540 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2541 (Bug#6237)
2542
2543 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2544
2545 * image.c (Fimage_flush): Rename from image-refresh.
2546
2547 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2548
2549 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2550 just one window.
2551
2552 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2553 (clear_image_cache): If the number of cached images is unusually
2554 large, decrease the cache eviction delay (Bug#6230).
2555
2556 2010-05-21 Glenn Morris <rgm@gnu.org>
2557
2558 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2559 Move these rules to ns.mk.
2560 * ns.mk: New file.
2561
2562 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2563
2564 * Makefile.in (CANNOT_DUMP): New, set by configure.
2565 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2566
2567 2010-05-20 Juri Linkov <juri@jurta.org>
2568
2569 * fileio.c (Fdelete_file): Change interative spec to use
2570 `read-file-name' like in `find-file-read-args' where the default
2571 value is `default-directory' instead of `buffer-file-name'.
2572 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2573
2574 2010-05-20 Kevin Ryde <user42@zip.com.au>
2575
2576 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2577 (Voverriding_terminal_local_map, Vsystem_key_alist)
2578 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2579
2580 2010-05-20 Glenn Morris <rgm@gnu.org>
2581
2582 * Makefile.in (DEPDIR): New constant.
2583 (DEPFLAGS): Set with configure, not cpp.
2584 (MKDEPDIR): New, set by configure.
2585 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2586 (clean): Use $DEPDIR.
2587 (deps_frag): Include from configure.
2588 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2589 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2590
2591 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2592 reallocation of the cache. (Bug#6210)
2593
2594 2010-05-19 Glenn Morris <rgm@gnu.org>
2595
2596 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2597
2598 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2599 (GNULIB_VAR): Remove.
2600 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2601
2602 * m/ibms390x.h (LINKER):
2603 * m/macppc.h (LINKER) [GNU_LINUX]:
2604 * s/aix4-2.h (ORDINARY_LINK):
2605 * s/cygwin.h (LINKER):
2606 * s/darwin.h (ORDINARY_LINK):
2607 * s/gnu.h (ORDINARY_LINK):
2608 * s/netbsd.h (LINKER):
2609 * s/usg5-4.h (ORDINARY_LINK):
2610 Move to configure.
2611
2612 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2613
2614 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
2615
2616 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2617 prevent stack overflow if number of arguments is too large
2618 (Bug#6214).
2619
2620 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2621
2622 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2623
2624 2010-05-18 Glenn Morris <rgm@gnu.org>
2625
2626 * s/gnu-linux.h: Combine two conditionals.
2627
2628 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2629 $(POST_ALLOC_OBJ).
2630
2631 * Makefile.in (RALLOC_OBJ): New, set by configure.
2632 (rallocobj): Replace with the previous variable.
2633 (otherobj): Use $RALLOC_OBJ.
2634
2635 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2636 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2637
2638 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2639 (gmallocobj, vmlimitobj): Replace with previous two variables.
2640 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2641
2642 2010-05-17 Glenn Morris <rgm@gnu.org>
2643
2644 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2645 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2646
2647 2010-05-16 Glenn Morris <rgm@gnu.org>
2648
2649 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2650
2651 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2652
2653 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2654 trailing "/".
2655
2656 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2657 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2658
2659 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2660 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2661 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2662 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2663 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2664
2665 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2666 Remove ${STARTFLAGS}, nothing ever sets it.
2667
2668 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2669
2670 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2671
2672 2010-05-16 Glenn Morris <rgm@gnu.org>
2673
2674 * Makefile.in (LIBX_BASE): Always define.
2675
2676 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2677
2678 * Makefile.in (LIBXT): Always define.
2679
2680 2010-05-15 Glenn Morris <rgm@gnu.org>
2681
2682 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2683
2684 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2685 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2686
2687 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
2688
2689 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
2690 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2691
2692 * emacs.c (main): Initialize initial-environment and
2693 process-environment before generating from env, not after.
2694
2695 Handle --version reasonably in CANNOT_DUMP configuration.
2696 * emacs.c (emacs_version, emacs_copyright): New string variables.
2697 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2698 (syms_of_emacs): Defvar them, and initialize them from the C
2699 string variables.
2700 (main): If initialization hasn't been done, print initial version
2701 info from the C strings, instead of starting an interactive session.
2702
2703 2010-05-15 Eli Zaretskii <eliz@gnu.org>
2704
2705 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2706 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2707 (bidi_paragraph_init): Remove redundant assertion that we are at
2708 the beginning of a line after call to bidi_find_paragraph_start.
2709
2710 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2711 (syms_of_xdisp): Defsubr it.
2712
2713 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2714
2715 * Makefile.in: Fix MSDOS-related comments.
2716
2717 2010-05-15 Glenn Morris <rgm@gnu.org>
2718
2719 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2720 (really-lwlib, really-oldXMenu): Always define.
2721 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2722
2723 * Makefile.in: Simplify cpp conditional.
2724
2725 * Makefile.in (${ns_appdir}): Simplify using umask.
2726
2727 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2728
2729 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2730
2731 * eval.c (specbind): Remove left-over duplicate test.
2732 Disallow let-binding frame-local vars. Add comment.
2733
2734 2010-05-14 Eli Zaretskii <eliz@gnu.org>
2735
2736 Make the cache of bidi iterator states dynamically allocated.
2737 * bidi.c (bidi_cache_shrink): New function.
2738 (bidi_init_it): Call it.
2739 (bidi_cache_iterator_state): Enlarge the cache if needed.
2740
2741 * bidi.c (bidi_move_to_visually_next): Rename from
2742 bidi_get_next_char_visually. All callers changed.
2743
2744 2010-05-14 Kenichi Handa <handa@m17n.org>
2745
2746 * dispextern.h (struct composition_it): New member reversed_p.
2747
2748 * composite.c (composition_compute_stop_pos): Search backward if
2749 ENDPOS < CHARPOS.
2750 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2751 Set CMP_IT->reversed_p.
2752 (composition_update_it): Pay attention to CMP_IT->reversed_p.
2753
2754 * xdisp.c (set_iterator_to_next):
2755 Call composition_compute_stop_pos with negative ENDPOS if we are
2756 scanning backward. Call composition_compute_stop_pos if scan
2757 direction is changed.
2758 (next_element_from_buffer): Call composition_compute_stop_pos with
2759 negative ENDPOS if we are scanning backward.
2760 (next_element_from_composition): Pay attention to
2761 IT->cmp_it.reversed_p.
2762
2763 2010-05-14 Kenichi Handa <handa@m17n.org>
2764
2765 * font.c (font_range): Return the range for the font found at first.
2766
2767 2010-05-14 Glenn Morris <rgm@gnu.org>
2768
2769 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2770
2771 * Makefile.in (mktime, X11, register): Move undefs to configure.
2772
2773 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2774 (MSDOS_X_OBJ): New variable.
2775 (MSDOS_SUPPORT_REAL): New constant.
2776 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2777 (obj): Use MSDOS_X_OBJ.
2778 (lisp): Use MSDOS_SUPPORT as a variable.
2779
2780 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2781 (GPM_MOUSE_SUPPORT): Now it's a constant.
2782 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2783 not cpp.
2784
2785 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2786 (ns_appresdir): Remove, unused.
2787
2788 * Makefile.in (SHELL): Move outside cpp section.
2789
2790 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2791
2792 2010-05-13 Glenn Morris <rgm@gnu.org>
2793
2794 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2795 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2796
2797 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2798 HAVE_WINDOW_SYSTEM must be too.
2799
2800 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2801 (lisp): Remove WINNT_SUPPORT.
2802
2803 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2804 Let configure set these variables (to empty) in this case as well.
2805
2806 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2807 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2808
2809 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2810 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2811 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2812 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2813 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2814 the values output by configure.
2815 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2816
2817 2010-05-12 Glenn Morris <rgm@gnu.org>
2818
2819 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2820 (LINKER_WAS_SPECIFIED): Remove.
2821
2822 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2823 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2824 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2825 * s/cygwin.h (LIB_GCC):
2826 * s/freebsd.h (LIB_GCC):
2827 * s/gnu-linux.h (LIB_GCC):
2828 * s/msdos.h (LIB_GCC):
2829 * s/netbsd.h (LIB_GCC):
2830 Move to configure.
2831
2832 2010-05-11 Karel Klic <kklic@redhat.com>
2833
2834 * ftfont.c: Fix incorrect parentheses of #if condition for
2835 definining M17N_FLT_USE_NEW_FEATURE.
2836
2837 2010-05-11 Glenn Morris <rgm@gnu.org>
2838
2839 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2840 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2841
2842 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2843
2844 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2845 unibyte buffers. See
2846 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2847
2848 2010-05-10 Glenn Morris <rgm@gnu.org>
2849
2850 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2851 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2852 (LIBES): Use LIBS_SYSTEM as a variable.
2853 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2854 * s/aix4-2.h (LIBS_SYSTEM):
2855 * s/freebsd.h (LIBS_SYSTEM):
2856 * s/hpux10-20.h (LIBS_SYSTEM):
2857 * s/sol2-6.h (LIBS_SYSTEM):
2858 * s/unixware.h (LIBS_SYSTEM):
2859 Move to configure.
2860
2861 * s/aix4-2.h (MAIL_USE_LOCKF):
2862 * s/bsd-common.h (MAIL_USE_FLOCK):
2863 * s/darwin.h (MAIL_USE_FLOCK):
2864 * s/gnu-linux.h (MAIL_USE_FLOCK):
2865 * s/irix6-5.h (MAIL_USE_FLOCK):
2866 * s/template.h (MAIL_USE_FLOCK):
2867 Move to configure.
2868
2869 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2870
2871 * Version 23.2 released.
2872
2873 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2874
2875 * composite.c (autocmp_chars): Save point as marker before calling
2876 auto-composition-function (Bug#5984).
2877
2878 * lisp.h (restore_point_unwind): Add prototype.
2879
2880 * fileio.c (restore_point_unwind): Remove static attribute.
2881
2882 2010-05-08 Kenichi Handa <handa@m17n.org>
2883
2884 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2885 new feature of libotf and m17n-flt.
2886 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2887 Call OTF_check_features even if no specific feature is given.
2888 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2889 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2890 that OUT is NULL. Use OTF_drive_gsub_with_log and
2891 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2892 OTF_drive_gpos.
2893 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2894 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2895 Setup mflt_enable_new_feature and mflt_try_otf.
2896
2897 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2898
2899 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2900
2901 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2902 box and toolbar (Bug #6139).
2903 (xg_create_tool_bar): Remove comment (Bug #6139).
2904 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2905 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2906
2907 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
2908
2909 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2910 Update dependencies.
2911
2912 2010-05-08 Eli Zaretskii <eliz@gnu.org>
2913
2914 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2915 R2L lines.
2916
2917 2010-05-08 Glenn Morris <rgm@gnu.org>
2918
2919 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2920
2921 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2922 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2923 (termcapobj): Replace with TERMCAP_OBJ.
2924 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2925 (LIBES): Use LIBS_TERMCAP as a variable.
2926
2927 * s/freebsd.h (osreldate.h): No longer include, since this file
2928 does not use __FreeBSD_version any more.
2929
2930 * s/aix4-2.h (TERMINFO):
2931 * s/cygwin.h (TERMINFO):
2932 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2933 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2934 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2935 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2936 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2937 * s/irix6-5.h (TERMINFO):
2938 * s/netbsd.h (LIBS_TERMCAP):
2939 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2940 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2941 * s/usg5-4.h (TERMINFO):
2942 Move to configure.
2943
2944 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2945
2946 * eval.c (unbind_to): Don't unbind a local binding into the global
2947 binding when the local binding disappeared. Inversely, don't unbind
2948 a global binding into a newly created local binding.
2949 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2950 can specify the frame to use, when applicable. Adjust callers.
2951
2952 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
2953 Stefan Monnier <monnier@iro.umontreal.ca>
2954
2955 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2956
2957 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2958
2959 * w32fns.c: Include w32.h.
2960 (Fw32_shell_execute): Decode the error message before passing it
2961 to `error'. (Bug#6126)
2962
2963 * msdos.c (dos_set_window_size):
2964 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2965 instead of `XSYMBOL (foo)->value'.
2966
2967 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2968
2969 Fix the MS-DOS build, broken by autoconfiscation.
2970
2971 * Makefile.in: Don't use Make-style comments past the "start of
2972 cpp stuff" line.
2973 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2974
2975 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2976 edited directly by msdos/sed1v2.inp).
2977
2978 2010-05-07 Glenn Morris <rgm@gnu.org>
2979
2980 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2981 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2982 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2983 move out of cpp section.
2984 * s/freebsd.h (LD_SWITCH_SYSTEM):
2985 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2986 * s/netbsd.h (LD_SWITCH_SYSTEM):
2987 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2988
2989 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2990
2991 Define LIB_STANDARD and START_FILES using autoconf.
2992 * s/usg5-4.h (LIB_STANDARD):
2993 * s/netbsd.h (START_FILES):
2994 * s/irix6-5.h (LIB_STANDARD):
2995 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2996 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2997 * s/freebsd.h (START_FILES):
2998 * s/darwin.h (START_FILES):
2999 * s/cygwin.h (START_FILES):
3000 * s/aix4-2.h (LIB_STANDARD):
3001 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3002 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3003 autoconf, not cpp.
3004
3005 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3006
3007 Remove NEED_BSDTTY and NEED_UNISTD_H.
3008 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3009 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3010 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3011 <sys/ptyio.h> and <unistd.h>.
3012
3013 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3014
3015 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3016 * s/gnu.h (START_FILES): Remove empty definition.
3017
3018 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3019
3020 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3021
3022 2010-05-06 Glenn Morris <rgm@gnu.org>
3023
3024 * Makefile.in (CPP, LN_S): Remove unused variables.
3025
3026 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3027
3028 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3029
3030 2010-05-05 Lawrence Mitchell <wence@gmx.li>
3031
3032 * m/sparc.h: Fix typo in earlier change.
3033
3034 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3035
3036 Misc tweaks.
3037 * eval.c (Fdefvaralias): Remove unintended nested if.
3038 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3039
3040 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
3041
3042 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3043
3044 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3045
3046 Remove BSD_PGRPS.
3047 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3048 * s/gnu-linux.h (BSD_PGRPS): Remove.
3049 * term.c (dissociate_if_controlling_tty):
3050 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3051 (init_sys_modes, reset_sys_modes):
3052 * emacs.c (main):
3053 * callproc.c (Fcall_process, child_setup): Remove code depending
3054 on BSD_PGRPS.
3055
3056 Remove POSIX_SIGNALS.
3057 * s/usg5-4.h (POSIX_SIGNALS):
3058 * s/netbsd.h (POSIX_SIGNALS):
3059 * s/msdos.h (POSIX_SIGNALS):
3060 * s/ms-w32.h (POSIX_SIGNALS):
3061 * s/hpux11.h (POSIX_SIGNALS):
3062 * s/gnu.h (POSIX_SIGNALS):
3063 * s/gnu-linux.h (POSIX_SIGNALS):
3064 * s/freebsd.h (POSIX_SIGNALS):
3065 * s/darwin.h (POSIX_SIGNALS):
3066 * s/cygwin.h (POSIX_SIGNALS):
3067 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3068 * s/unixware.h:
3069 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3070 * process.c (create_process):
3071 * syssignal.h:
3072 * sysdep.c (wait_for_termination, init_signals):
3073 * process.c (create_process):
3074 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3075 remove all code that assumes the contrary.
3076
3077 2010-05-04 Glenn Morris <rgm@gnu.org>
3078
3079 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3080 variable.
3081 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3082 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3083 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3084 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3085 LD_SWITCH_SYSTEM_tmp.
3086 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3087 New variables, set by configure.
3088
3089 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3090 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3091 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3092 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3093 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3094
3095 * s/aix4-2.h (C_SWITCH_SYSTEM):
3096 * m/alpha.h (C_SWITCH_MACHINE):
3097 Move to configure.in.
3098 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3099 New variables, set by configure.
3100 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3101 $c_switch_machine and $c_switch_system.
3102
3103 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3104
3105 * s/hpux10-20.h (LIB_STANDARD): New definition.
3106 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3107 on it, not used anymore.
3108
3109 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3110
3111 * eval.c (internal_condition_case_n): Rename from
3112 internal_condition_case_2.
3113 (internal_condition_case_2): New function.
3114
3115 * xdisp.c (safe_call): Use internal_condition_case_n.
3116
3117 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3118 (internal_delete_file, Frename_file): Callers changed.
3119
3120 * buffer.c (Fkill_buffer):
3121 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3122
3123 * lisp.h: Update prototypes.
3124
3125 2010-05-03 Glenn Morris <rgm@gnu.org>
3126
3127 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3128 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3129 (LIBXT): Set with configure, not cpp.
3130 (LIBX): Remove.
3131 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3132
3133 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3134
3135 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3136 The FreeBSD is not needed, the default works, Solaris version is
3137 not needed, and the remaining case is not supported by configure.
3138
3139 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3140
3141 * xsmfns.c (CHDIR_OPT): New define.
3142 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3143 restarting emacs.
3144
3145 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3146 shut_down_emacs.
3147
3148 * emacs.c (USAGE1): Mention --chdir.
3149 (main): Handle --chdir.
3150 (standard_args): Add --chdir.
3151 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3152 #5552).
3153
3154 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3155
3156 Remove LD_SWITCH_MACHINE.
3157 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3158 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3159
3160 Clean up IRIX code.
3161 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3162 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3163
3164 Clean up AIX code.
3165 * m/ibmrs6000.inp: Remove file, unused.
3166 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3167 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3168 definition ...
3169 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3170
3171 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3172 unused.
3173
3174 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3175
3176 Emulate POSIX_SIGNALS on MS-Windows.
3177
3178 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3179 (SIG_SETMASK, SIG_UNBLOCK): Define.
3180
3181 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3182 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3183 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3184
3185 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3186 New stubs.
3187
3188 Miscellaneous fixes of bidi display.
3189
3190 * xdisp.c (find_row_end): New function, refactored from display_line.
3191 (display_line): Use it.
3192 (extend_face_to_end_of_line): In almost-filled rows, extend only
3193 if the row is R2L and not continued.
3194 (display_line): Fix prepending of truncation glyphs to R2L rows.
3195 Preserve overlay and string info in row->end.
3196 (insert_left_trunc_glyphs): Support addition of left truncation
3197 glyphs to R2L rows.
3198 (set_cursor_from_row): Don't place cursor on the vertical border
3199 glyph between adjacent windows. Fix a crash when a display string
3200 is continued to the next line. Don't return zero if cursor was
3201 found by `cursor' property of a display string.
3202 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3203 test for that explicitly.
3204
3205 2010-05-01 Glenn Morris <rgm@gnu.org>
3206
3207 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3208 for clarity.
3209 (OTHER_OBJ): Remove.
3210 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3211 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3212
3213 2010-05-01 Karel Klíč <kklic@redhat.com>
3214
3215 * fileio.c (Ffile_selinux_context): Context functions may return null.
3216
3217 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3218
3219 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3220
3221 2010-04-30 Glenn Morris <rgm@gnu.org>
3222
3223 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3224 (OTHER_OBJ): Define as a separate variable, for clarity.
3225
3226 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3227
3228 * xsettings.c: include limits.h and update file comment.
3229
3230 2010-04-30 Glenn Morris <rgm@gnu.org>
3231
3232 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3233 Set with configure, not cpp.
3234 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3235
3236 * Makefile.in (mallocobj): Remove.
3237 (otherobj): Simplify using @OTHER_OBJ@.
3238
3239 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3240 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3241 Don't bother making nsgui.h dependency platform-specific.
3242
3243 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3244
3245 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3246
3247 * process.c (read_process_output, exec_sentinel): Don't burp if the
3248 sentinel/filter kills the current buffer (bug#6060).
3249
3250 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3251 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3252 Remove unused var `args'.
3253 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3254 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3255 * doc.c (store_function_docstring): Use XSETCAR.
3256
3257 2010-04-28 Glenn Morris <rgm@gnu.org>
3258
3259 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3260 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3261
3262 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3263
3264 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3265 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3266
3267 * Makefile.in (FONT_OBJ): New, set by configure.
3268 (FONT_DRIVERS): Use $FONT_OBJ.
3269
3270 * Makefile.in (LIBXMU): Set with configure, not cpp.
3271 * s/aix4-2.h (LIBXMU):
3272 * s/hpux10-20.h (LIBXMU):
3273 Remove definition, now set in configure.
3274
3275 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3276
3277 * m/amdx86-64.h [i386]: Move this test to configure.in.
3278
3279 2010-04-27 Glenn Morris <rgm@gnu.org>
3280
3281 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3282 * s/unixware.h (NEED_LIBW): Remove definition.
3283
3284 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3285 (TOOLKIT_LIBW): New, set by configure.
3286 (@X_TOOLKIT_TYPE@): No longer define it.
3287
3288 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3289 (MOTIF_LIBW): Set with configure, not cpp.
3290 * s/aix4-2.h (LIB_MOTIF):
3291 * s/gnu-linux.h (LIB_MOTIF):
3292 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3293
3294 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3295
3296 Reduce CPP usage.
3297 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3298 (obj): Use autoconf for unexec instead of cpp.
3299 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3300 definitions and undefs. Inline definitions in the only user.
3301 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3302
3303 2010-04-27 Glenn Morris <rgm@gnu.org>
3304
3305 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3306 since the defaults (set by the system file) are fine in most cases.
3307 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3308 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3309 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3310 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3311 Remove definitions, since they are set correctly in s/gnu-linux.h.
3312 * s/freebsd.h (START_FILES, LIB_STANDARD):
3313 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3314 * s/hpux10-20.h (START_FILES):
3315 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3316 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3317
3318 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3319 (MOTIF_LIBW): Use $LIBXP.
3320 (otherobj): Use $WIDGET_OBJ.
3321
3322 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3323
3324 * Makefile.in (LIBS_MACHINE): Remove, unused.
3325
3326 Use autoconf instead of cpp for LIB_MATH.
3327 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3328 * s/cygwin.h (LIB_MATH): Likewise.
3329 * Makefile.in (LIB_MATH): Do not define with cpp.
3330 (LIBES): Use autoconf for LIB_MATH.
3331
3332 2010-04-26 Kenichi Handa <handa@m17n.org>
3333
3334 * composite.c (Ffind_composition_internal): Fix the return value
3335 for an automatic composition.
3336
3337 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3338
3339 Remove all NO_ARG_ARRAY uses.
3340 * fns.c (concat2, concat3, nconc2):
3341 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3342 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3343 * m/xtensa.h (NO_ARG_ARRAY):
3344 * m/template.h (NO_ARG_ARRAY):
3345 * m/sparc.h (NO_ARG_ARRAY):
3346 * m/sh3.h (NO_ARG_ARRAY):
3347 * m/mips.h (NO_ARG_ARRAY):
3348 * m/macppc.h (NO_ARG_ARRAY):
3349 * m/iris4d.h (NO_ARG_ARRAY):
3350 * m/intel386.h (NO_ARG_ARRAY):
3351 * m/ibms390x.h (NO_ARG_ARRAY):
3352 * m/ibms390.h (NO_ARG_ARRAY):
3353 * m/ibmrs6000.h (NO_ARG_ARRAY):
3354 * m/ia64.h (NO_ARG_ARRAY):
3355 * m/hp800.h (NO_ARG_ARRAY):
3356 * m/arm.h (NO_ARG_ARRAY):
3357 * m/amdx86-64.h (NO_ARG_ARRAY):
3358 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3359
3360 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3361
3362 * xdisp.c (display_line): Don't assume 2nd call to
3363 get_next_display_element cannot return zero. (Bug#6030)
3364 (iterate_out_of_display_property): New function, body from pop_it.
3365 (pop_it): Use it.
3366
3367 2010-04-24 Glenn Morris <rgm@gnu.org>
3368
3369 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3370 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3371 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3372 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3373
3374 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3375
3376 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3377 use `get_next_display_element' and `set_iterator_to_next' to
3378 advance to the next character, when looking for the character that
3379 begins the next row.
3380
3381 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3382 definition of "struct Lisp_Symbol".
3383
3384 2010-04-24 Glenn Morris <rgm@gnu.org>
3385
3386 * Makefile.in (CRT_DIR): New variable, set by configure.
3387 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3388 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3389
3390 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3391
3392 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3393
3394 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3395
3396 Remove redundant flags.
3397 * s/freebsd.h (C_SWITCH_SYSTEM):
3398 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3399 * s/netbsd.h (C_SWITCH_SYSTEM):
3400 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3401 of these.
3402
3403 Simplify m/intel386.h.
3404 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3405 user: ecrt0.c.
3406 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3407 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3408 the only user: s/unixware.h.
3409 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3410 from m/intel386.h.
3411 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3412 moved here from m/intel386.h.
3413
3414 * m/mips.h: Remove #if 0 code.
3415
3416 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3417
3418 Fix display of composed characters from L2R scripts in bidi buffers.
3419 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3420 After advancing IT past the composition, resync the bidi iterator
3421 with IT's position. (Bug#5977)
3422
3423 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3424
3425 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3426 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3427
3428 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3429
3430 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3431
3432 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3433
3434 Support `display' text properties and overlay strings in bidi buffers.
3435 * xdisp.c (pop_it): When the stack is popped after displaying
3436 from a string, bidi-iterate to exit from the text portion covered
3437 by the `display' property or overlay. (Bug#5988, bug#5920)
3438
3439 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3440
3441 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3442 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3443
3444 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3445 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3446
3447 Simplify STARTFILES definition.
3448 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3449 relying on Makefile.in to define it.
3450 * s/cygwin.h (START_FILES): Likewise.
3451 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3452
3453 Clean up Solaris code.
3454 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3455 (LIB_MOTIF): Remove, configure takes care of this.
3456 (NOT_USING_MOTIF): Remove, unused.
3457 * xrdb.c: Remove #if 0-ed #include.
3458 (SYSV): Remove conditional for old SysV.
3459 * sysdep.c (closedir): Remove conditional code for Solaris,
3460 Solaris has closedir.
3461
3462 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3463
3464 * xsettings.c (read_and_apply_settings): Check if current_font is
3465 NULL before strcmp (Bug#6001).
3466
3467 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3468
3469 Clean up HP-UX files.
3470 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3471 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3472 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3473 * s/hpux10-20.h: ... to the only user, here.
3474
3475 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3476
3477 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3478 use buffer-local values of paragraph-start and paragraph-separate.
3479 <paragraph_start_re, paragraph_separate_re>: Rename from
3480 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3481 (Bug#5992)
3482
3483 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3484
3485 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3486 current_tool_bar_style are new.
3487 (store_config_changed_event): Rename from store_font_changed_event.
3488 (XSETTINGS_TOOL_BAR_STYLE): New define.
3489 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3490 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3491 HAVE_XFT.
3492 (something_changedCB): store_font_changed_event is now
3493 store_config_changed_event.
3494 (parse_settings): Rename from parse_xft_settings. Read
3495 non-xft xsettings outside #ifdef HAVE_XFT.
3496 (read_settings): Renamed from read_xft_settings.
3497 (apply_xft_settings): Take current settings as parameter. Do not
3498 call read_(xft)_settings.
3499 (read_and_apply_settings): New function.
3500 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3501 read_and_apply_settings if there are settings to be read.
3502 (init_xsettings): Renamed from init_xfd_settings.
3503 Call read_and_apply_settings unconditionally.
3504 (xsettings_initialize): Call init_xsettings.
3505 (Ftool_bar_get_system_style): New function.
3506 (syms_of_xsettings): Define Qmonospace_font_name and
3507 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3508 defsubr Stool_bar_get_system_style. Fprovide on
3509 dynamic-setting.
3510 Move misplaced HAVE_GCONF
3511
3512 * xsettings.h (Ftool_bar_get_system_style): Declare.
3513
3514 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3515 Qtext, Qboth, Qboth_horiz are new.
3516 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3517 Vtool_bar_style, tool_bar_max_label_size.
3518
3519 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3520
3521 * keyboard.c: QClabel is new.
3522 (parse_tool_bar_item): Take out QClabel from tool bar items.
3523 Try to construct a label if ther is no QClabel.
3524 (syms_of_keyboard): Intern :label as QClabel.
3525
3526 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3527 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3528 New.
3529
3530 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3531 dynamic-setting.el.
3532
3533 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3534 (xg_make_tool_item, xg_show_toolbar_item): New function.
3535 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3536 Call xg_make_tool_item to make a tool bar item.
3537 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3538
3539 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3540 into account for toolbars.
3541
3542 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3543
3544 * data.c (make_blv): Declarations before code (Bug#5993).
3545
3546 2010-04-21 Glenn Morris <rgm@gnu.org>
3547
3548 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3549 Define using autoconf, not cpp.
3550 (LIBXSM): New variable, set by autoconf.
3551 (LIBXT): Use $LIBXSM.
3552
3553 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3554
3555 Remove NOMULTIPLEJOBS, unused.
3556 * s/template.h (NOMULTIPLEJOBS):
3557 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3558
3559 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3560 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3561 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3562 detects -znocombreloc and passes it to the linker
3563 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3564
3565 2010-04-21 Glenn Morris <rgm@gnu.org>
3566
3567 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3568
3569 2010-04-21 Karel Klíč <kklic@redhat.com>
3570
3571 * Makefile.in (LIBSELINUX_LIBS): New.
3572 (LIBES): Add $LIBSELINUX_LIBS.
3573 * eval.c, lisp.h (call7): New function.
3574 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3575 (Ffile_selinux_context, Fset_file_selinux_context):
3576 New functions.
3577 (Fcopy_file): New parameter preserve-selinux-context.
3578 (Frename_file): Preserve selinux context when renaming by copy-file.
3579
3580 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3581 Eli Zaretskii <eliz@gnu.org>
3582
3583 Don't depend on cm.c or termcap.c on Windows, use stubs.
3584 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3585 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3586 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3587 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3588 (sys_tputs, sys_tgetstr): New stubs.
3589 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3590 (tputs, tgetstr): New; define to sys_*.
3591
3592 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3593
3594 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3595
3596 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3597
3598 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3599 Just signal a warning rather than an error when inside a let.
3600 (Fmake_variable_frame_local): Add the same test.
3601
3602 * font.c (syms_of_font): Make the style table vars read-only.
3603
3604 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3605 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3606
3607 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3608
3609 2010-04-20 Eli Zaretskii <eliz@gnu.org>
3610
3611 Fix R2L paragraph display on TTY.
3612
3613 * xdisp.c (unproduce_glyphs): New function.
3614 (display_line): Use it when produced glyphs are discarded from R2L
3615 glyph rows.
3616 (append_composite_glyph): In R2L rows, prepend the glyph rather
3617 than appending it.
3618
3619 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3620 rather than append it. Set up the resolved_level and bidi_type
3621 attributes of the appended glyph.
3622 (produce_special_glyphs): Mirror the backslash continuation
3623 character in R2L lines.
3624
3625 Implement display of R2L paragraphs in GUI sessions.
3626
3627 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3628 append_stretch_glyph.
3629 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3630 off-by-one error in computing x at end of text in the row.
3631 (append_stretch_glyph): In reversed row, prepend the glyph rather
3632 than append it. Set resolved_level and bidi_type of the glyph.
3633 (extend_face_to_end_of_line): If the row is reversed, prepend a
3634 stretch glyph whose width is such that the rightmost glyph will be
3635 drawn at the right margin of the window. Fix off-by-one error on
3636 TTY frames in testing whether a line needs face extension. Fix
3637 face extension at ZV. If this is the last glyph row, use
3638 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3639 region face.
3640 (set_cursor_from_row, display_line): Use
3641 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3642 row->continuation_lines_width.
3643 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3644 are at ZV. Fixes a crash when reseated to ZV by
3645 try_window_reusing_current_matrix.
3646 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3647 which happens with R2L glyph rows. Fixes a crash when inserting a
3648 character at end of an R2L line.
3649 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3650 treat them as having zero-width characters. Improve comments.
3651 Don't reverse pos_before and pos_after for reversed glyph rows.
3652 Set cursor.x to negative value when the cursor might be on the
3653 left fringe.
3654 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3655 left fringe, not the right one.
3656 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3657 (erase_phys_cursor): For reversed cursor_row, support cursor on
3658 the left fringe.
3659
3660 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3661 of continuation indicators on the fringes.
3662 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3663 left fringe.
3664
3665 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3666 draw cursor on the left fringe.
3667
3668 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3669 cursor on the left fringe.
3670
3671 * dispnew.c (update_text_area): Handle reversed desired rows when
3672 the cursor is on the left fringe.
3673 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3674 below, not by 0, for when the cursor is on the left fringe.
3675
3676 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3677
3678 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3679 widget is a scrollbar.
3680
3681 2010-04-20 Kenichi Handa <handa@m17n.org>
3682
3683 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3684 only when the arg CHARSET_LIST is nil.
3685
3686 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3687
3688 Make variable forwarding explicit rather the using special values.
3689 Basically, this makes the structure of buffer-local values and object
3690 forwarding explicit in the type of Lisp_Symbols rather than use
3691 special Lisp_Objects for that. This tends to lead to slightly more
3692 verbose code, but is more C-like, simpler, and makes it easier to make
3693 sure we handled all cases, among other things by letting the compiler
3694 help us check it.
3695 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3696 Removing forwarding objects.
3697 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3698 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3699 explicit rather than hiding them inside Lisp_Object "values".
3700 (XFWDTYPE): New macro.
3701 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3702 (XBUFFER_LOCAL_VALUE): Remove.
3703 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3704 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3705 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3706 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3707 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3708 Remove the Lisp_Misc_* header.
3709 (struct Lisp_Buffer_Local_Value): Redefine.
3710 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3711 (struct Lisp_Misc_Any): Add filler to get the right size.
3712 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3713 Lisp_Intfwd.
3714 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3715 (DEFVAR_KBOARD): Allocate a forwarding object.
3716 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3717 (let_shadows_global_binding_p): New function.
3718 (union Lisp_Val_Fwd): New type.
3719 (make_blv): New function.
3720 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3721 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3722 (swap_in_symval_forwarding, find_symbol_value, Fset)
3723 (let_shadows_buffer_binding_p, set_internal, default_value)
3724 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3725 (Fkill_local_variable, Fmake_variable_frame_local)
3726 (Flocal_variable_p, Flocal_variable_if_set_p)
3727 (Fvariable_binding_locus):
3728 * xdisp.c (select_frame_for_redisplay):
3729 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3730 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3731 * frame.c (store_frame_param):
3732 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3733 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3734 value structure.
3735 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3736 (clone_per_buffer_values): Only adjust markers into the current buffer.
3737 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3738 (Fbuffer_local_value, set_buffer_internal_1)
3739 (swap_out_buffer_local_variables):
3740 Adapt to the new symbol value structure.
3741 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3742 (defvar_per_buffer): Take a new arg for the fwd object.
3743 (buffer_lisp_local_variables): Return a proper alist (different fix
3744 for bug#4138).
3745 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3746 (Fgarbage_collect): Don't handle buffer_defaults specially.
3747 (mark_object): Handle new symbol value structure rather than the old
3748 special Lisp_Misc_* objects.
3749 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3750 * term.c (set_tty_color_mode):
3751 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3752 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3753 a buffer_local_flags.
3754 * print.c (print_object): Get rid of impossible forwarding objects.
3755
3756 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3757
3758 * bidi.c (bidi_get_type, bidi_get_category)
3759 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3760 (bidi_type_of_next_char, bidi_level_of_next_char):
3761 Declare static. Use `INLINE' rather than `inline'.
3762
3763 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3764
3765 * dired.c (Ffile_attributes): Fix typo in docstring.
3766
3767 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3768
3769 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3770 NSInteger (Bug#5811).
3771
3772 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3773
3774 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3775 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3776
3777 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3778
3779 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3780
3781 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
3782
3783 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3784 terminal frames (Bug#5837).
3785
3786 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3787
3788 * .gdbinit (xsubchartable): New command.
3789
3790 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3791
3792 * xdisp.c (display_line): Don't write beyond the last glyph row in
3793 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3794 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3795 and
3796 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3797
3798 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3799
3800 * alloc.c (Fpurecopy): Hash-cons if requested.
3801 (syms_of_alloc): Update purify-flag docstring.
3802
3803 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3804
3805 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3806 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3807
3808 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3809
3810 Fix a crash when an NSM character is inserted at BEGV.
3811
3812 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3813 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3814 NEUTRAL_B or UNKNOWN_BT.
3815
3816 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3817
3818 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3819 other rows with cursor unless they are different from this row and
3820 this row is part of a continued line. (Bug#5943)
3821
3822 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3823
3824 * s/freebsd.h: Restore osreldate.h include.
3825 Suggested by Naohiro Aota.
3826
3827 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3828
3829 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3830
3831 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3832
3833 * s/cygwin.h: Avoid linking against static libgcc.
3834
3835 2010-04-15 Juri Linkov <juri@jurta.org>
3836
3837 * window.c: Add Qscroll_command.
3838 Remove Vscroll_preserve_screen_position_commands.
3839 (window_scroll_pixel_based, window_scroll_line_based): Check the
3840 `scroll-command' property on the last command instead of searching
3841 the last command in Vscroll_preserve_screen_position_commands.
3842 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3843 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3844 (scroll-preserve-screen-position): Doc fix.
3845 (Vscroll_preserve_screen_position_commands): Remove variable.
3846
3847 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3848
3849 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3850
3851 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3852
3853 Reduce cpp use in Makefile.in.
3854 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3855 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3856 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3857 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3858 (CRT0_COMPILE): Remove, inline it in the only user.
3859
3860 2010-04-14 Juri Linkov <juri@jurta.org>
3861
3862 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3863 `scroll-up-command' and `M-v' from `scroll-down' to
3864 `scroll-down-command'.
3865
3866 2010-04-14 Juri Linkov <juri@jurta.org>
3867
3868 * window.c (Vscroll_preserve_screen_position_commands): New variable
3869 with the default value as the list of Qscroll_down and Qscroll_up.
3870 (window_scroll_pixel_based, window_scroll_line_based): Search the
3871 last command in the list Vscroll_preserve_screen_position_commands
3872 instead of comparing with Qscroll_up and Qscroll_down.
3873
3874 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3875
3876 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3877 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3878 does that.
3879
3880 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3881 to zero.
3882
3883 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3884
3885 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3886
3887 Try to solve the problem of spurious EOF chars in long lines of text
3888 sent to interactive subprocesses.
3889 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3890 (system_process_attributes): Remove unused var `ttotal'.
3891 * process.c (send_process): Don't bother breaking long line with EOF
3892 chars when talking to ttys any more.
3893 (wait_reading_process_output): Output a warning when called in such
3894 a way that it could block without being interruptible.
3895
3896 Try to detect file modification within the same second.
3897 * buffer.h (struct buffer): New field modtime_size.
3898 * buffer.c (reset_buffer): Initialize it.
3899 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3900 (Fverify_visited_file_modtime): Check it.
3901 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3902 (Fset_visited_file_modtime): Set (or clear) it.
3903
3904 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3905
3906 * process.c (status_notify): Remove unused var `ro'.
3907
3908 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3909
3910 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3911 more than one visual (Bug#5938).
3912
3913 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3914
3915 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3916 Undefine.
3917
3918 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3919
3920 Remove C_SWITCH_SYSTEM_TEMACS.
3921 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3922 (malloc, realloc, free): Use emacs, not temacs for conditional
3923 definition.
3924
3925 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3926 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3927
3928 Use autoconf, not cpp for some variables.
3929 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3930 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3931 (ALL_CFLAGS): Use them as make variables.
3932 (really-lwlib, really-oldXMenu): Do not pass them.
3933
3934 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3935
3936 * xmenu.c (apply_systemfont_to_dialog): New.
3937 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3938
3939 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3940
3941 * process.c (exec_sentinel): Preserve current-buffer.
3942
3943 * process.c (read_process_output): Move the save-current-buffer to
3944 apply to both the filter and the non-filter branches.
3945
3946 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3947
3948 * s/msdos.h (UNEXEC): New definition.
3949
3950 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3951
3952 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3953 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3954
3955 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3956 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3957 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3958 TRY_WINDOW_CHECK_MARGINS.
3959
3960 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
3961 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3962 width only when it is for padding.
3963
3964 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3965
3966 * xfns.c (Fx_show_tip): Call try_window in a loop until
3967 fonts_changed_p is zero (Bug#2423).
3968
3969 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3970
3971 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3972 the end of TEXT_AREA. (Bug#5856)
3973
3974 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3975
3976 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3977 HAVE_GCONF.
3978
3979 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3980
3981 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3982 prev.orig_type, for resolving type of NSM. (Bug#5858)
3983
3984 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3985
3986 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3987 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3988 in current_font.
3989 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3990 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3991 New functions.
3992 (syms_of_xsettings): Initialize current_font.
3993 defsubr Sfont_get_system_normal_font.
3994
3995 * xsettings.h (Ffont_get_system_normal_font)
3996 (xsettings_get_system_normal_font): Declare.
3997
3998 * xfns.c (extern xlwmenu_default_font): Remove.
3999 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4000 to xlwmenu.c.
4001
4002 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4003 menu items in UTF-8.
4004
4005 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4006 (apply_systemfont_to_menu): New function.
4007 (set_frame_menubar, create_and_show_popup_menu): Call
4008 apply_systemfont_to_menu.
4009
4010 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4011
4012 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4013 FRAME_LINE_TO_PIXEL_Y.
4014
4015 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4016 pixelwidth/height.
4017
4018 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4019
4020 Simplify code for HP machines.
4021 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4022 for GNU_LINUX, not needed.
4023 (UNEXEC, NEED_BSDTTY): Move definitions...
4024 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4025
4026 * m/iris4d.h (UNEXEC): Move definition ...
4027 * s/irix6-5.h (UNEXEC): ... here.
4028
4029 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4030
4031 * xfns.c (set_machine_and_pid_properties): New function.
4032 (Fx_create_frame): Call set_machine_and_pid_properties.
4033
4034 2010-04-03 Eli Zaretskii <eliz@gnu.org>
4035
4036 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4037 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4038 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4039
4040 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4041 in this function. (Bug#5703)
4042
4043 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
4044
4045 * nsterm.h: Fix last change.
4046
4047 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4048
4049 * m/intel386.h (NO_REMAP): Move definition ...
4050 * s/msdos.h (NO_REMAP): ... here.
4051
4052 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4053
4054 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4055 used on those platforms.
4056
4057 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4058
4059 Remove extern errno declarations.
4060 * xterm.c:
4061 * xrdb.c:
4062 * w32term.c:
4063 * unexec.c:
4064 * unexaix.c:
4065 * sysdep.c:
4066 * process.c:
4067 * lread.c:
4068 * keyboard.c:
4069 * floatfns.c:
4070 * filelock.c:
4071 * fileio.c:
4072 * emacs.c (main):
4073 * ecrt0.c:
4074 * dispnew.c:
4075 * callproc.c:
4076 * buffer.c: Remove errno extern declarations.
4077 * s/netbsd.h (NEED_ERRNO): Remove.
4078
4079 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4080
4081 Remove all uses of LIBX11_SYSTEM.
4082 * Makefile.in (LIBX11_SYSTEM): Remove.
4083 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4084 instead.
4085
4086 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4087
4088 Remove support for DJGPP v1.x (bug#5813).
4089
4090 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4091 * s/msdos.h:
4092 * unexec.c (make_hdr, copy_text_and_data):
4093 * sysdep.c (wait_for_termination, sys_subshell):
4094 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4095 (IT_set_terminal_modes, __write, _rename, gethostname)
4096 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4097 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4098 the value of __DJGPP__.
4099 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4100 compatibility code.
4101 * lread.c:
4102 * gmalloc.c (memalign):
4103 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4104 * emacs.c (main):
4105 * dosfns.c (init_dosfns):
4106 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4107
4108 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4109
4110 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4111 string with `cursor' property comes from an `after-string'
4112 overlay. (Bug#5816)
4113
4114 2010-04-01 Glenn Morris <rgm@gnu.org>
4115
4116 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4117 Define as Makefile variables.
4118 (LIBX): Use above variables rather than directly using autoconf.
4119
4120 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4121
4122 Clean up BSD_SYSTEM use.
4123 * xterm.c:
4124 * process.c:
4125 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4126 for including <sys/ioctl.h>.
4127 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4128 code is only used for MSDOS.
4129
4130 2010-03-31 Juri Linkov <juri@jurta.org>
4131
4132 * image.c: Add `Qextension_data'.
4133 (syms_of_image): Initialize and staticpro `Qextension_data'.
4134 (Fimage_metadata): Rename from `Fimage_extension_data'.
4135 (gif_load): Put GIF extension data to the property
4136 `Qextension_data'.
4137
4138 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4139
4140 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4141 * nsterm.h: Fix prototype.
4142
4143 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4144
4145 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4146 trailing whitespace in right-to-left rows.
4147
4148 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4149
4150 Get rid of the direct_output optimizations.
4151 * keyboard.c (nonundocount): Remove extern declaration.
4152 (command_loop_1): Remove brittle optimisation for cheap and
4153 common operations.
4154 * xdisp.c (redisplay_internal): Don't bother checking
4155 redisplay_performed_directly_p any more.
4156 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4157 any more.
4158 * dispnew.c (redisplay_performed_directly_p)
4159 (direct_output_for_insert, direct_output_forward_char):
4160 * dispextern.h (redisplay_performed_directly_p)
4161 (direct_output_for_insert, direct_output_forward_char): Remove.
4162 * cmds.c (nonundocount): Make it static.
4163
4164 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4165
4166 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4167
4168 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4169
4170 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4171 invisible (Bug#5766).
4172
4173 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4174
4175 * xdisp.c (x_consider_frame_title, update_window_cursor):
4176 Remove HAVE_NS conditionals.
4177 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4178
4179 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4180 filename for the title.
4181 (ns_set_doc_edited): Do nothing if the selected window is a
4182 minibuffer window.
4183
4184 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4185 ns_set_doc_edited.
4186
4187 * nsterm.m: Remove unneeded prototype.
4188
4189 2010-03-31 Glenn Morris <rgm@gnu.org>
4190
4191 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4192 in the DOC file. (Bug#5336)
4193
4194 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4195
4196 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4197
4198 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * window.c (keys_of_window): Remove redundant/overridden bindings.
4201
4202 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4203
4204 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4205 Restore original behavior when the iterator is not bidi_p.
4206
4207 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4208
4209 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4210
4211 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4212
4213 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4214 are outside the range of cached character positions.
4215
4216 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4217
4218 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4219
4220 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4221
4222 Initial support for bidirectional editing.
4223
4224 * Makefile.in (obj): Include bidi.o.
4225 (bidi.o): New target.
4226
4227 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4228 ($(BLD)/bidi.$(O)): New target.
4229
4230 * bidi.c: New file.
4231
4232 * buffer.h (struct buffer): New members bidi_display_reordering
4233 and bidi_paragraph_direction.
4234
4235 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4236 and bidi_paragraph_direction.
4237 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4238 and bidi-paragraph-direction.
4239 (Fbuffer_swap_text): Swap the values of
4240 bidi_display_reordering and bidi_paragraph_direction.
4241
4242 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4243 (bidi_type_t, bidi_dir_t): New types.
4244 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4245 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4246 prev_stop, base_level_stop, and eol_pos.
4247 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4248 (IT_STACK_SIZE): Enlarge to 5.
4249 (struct glyph_row): New member reversed_p.
4250 <string_buffer_position>: Update prototype.
4251 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4252 glyph_row if bidi_it.paragraph_dir == R2L.
4253 (struct glyph): New members resolved_level and bidi_type.
4254
4255 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4256 processing or buffer's direction is right-to-left.
4257 (prepare_desired_row): Preserve the reversed_p flag.
4258 (row_equal_p): Compare the reversed_p attributes as well.
4259
4260 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4261 bidi_init_it and set it->paragraph_embedding from the current
4262 buffer's value of bidi_paragraph_direction.
4263 (reseat_1): Initialize bidi_it.first_elt.
4264 (set_iterator_to_next, next_element_from_buffer): Use the value of
4265 paragraph_embedding to determine the paragraph direction.
4266 (set_iterator_to_next): Under bidi reordering, call
4267 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4268 new_paragraph flag is set in the bidi iterator.
4269 (next_element_from_buffer): If bidi_it.first_elt is set,
4270 initialize paragraph direction and find the first character to
4271 display in the visual order. If reseated to a middle of a line,
4272 prime the bidi iterator starting at the line's beginning. Handle
4273 the situation where we overstepped stop_charpos due to
4274 non-linearity of the bidi iteration. Likewise for when we back up
4275 beyond the previous stop_charpos. When moving across stop_charpos,
4276 record it in prev_stop.
4277 (display_line): Set row->end and it->start for the next row to the
4278 next character in logical order. Always extend reversed_p rows to
4279 the end of line, even if they end at ZV. Copy the reversed_p flag
4280 to the next glyph row. Keep calling set_cursor_from_row for
4281 bidi-reordered rows even if we already have a possible candidate
4282 for cursor position. Set row_end after all the row's glyphs have
4283 been produced, by looping over the glyphs. Record the position
4284 after EOL in it->eol_pos, and use it to set end_pos of the last
4285 row produced for a continued line.
4286 <Qright_to_left, Qleft_to_right>: New variables.
4287 (syms_of_xdisp): Initialize and staticpro them.
4288 (string_buffer_position_lim): New function.
4289 (string_buffer_position): Most of code moved to
4290 string_buffer_position_lim. Last argument and return value are
4291 now EMACS_INT; all callers changed.
4292 (set_cursor_from_row): Rewritten to support bidirectional text and
4293 reversed glyph rows.
4294 (text_outside_line_unchanged_p, try_window_id): Disable
4295 optimizations if we are reordering bidirectional text and the
4296 paragraph direction can be affected by the change.
4297 (append_glyph, append_composite_glyph)
4298 (produce_image_glyph, append_stretch_glyph): Set the
4299 resolved_level and bidi_type members of each glyph.
4300 (append_glyph): If the glyph row is reversed, prepend the glyph
4301 rather than appending it.
4302 (handle_stop_backwards): New function.
4303 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4304 (reseat): call handle_stop_backwards to recompute prev_stop and
4305 base_level_stop for the new position.
4306 (handle_invisible_prop): Under bidi iteration, skip invisible text
4307 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4308 paragraph direction. Update IT->prev_stop after skipping
4309 invisible text.
4310 (move_it_in_display_line_to): New variables prev_method
4311 and prev_pos. Compare for strict equality in
4312 BUFFER_POS_REACHED_P.
4313 (try_cursor_movement): Examine all the candidate rows that occlude
4314 point, to return the best match. If rows are bidi-reordered
4315 and point moved backwards, back up to the row that is not a
4316 continuation line, and start looking for a suitable row from
4317 there.
4318
4319 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4320 rather than appending, if the glyph_row's reversed_p flag is set.
4321 Set the resolved_level and bidi_type members of each glyph.
4322
4323 * .gdbinit (pbiditype): New command.
4324 (pgx): Use it to display bidi level and type of the glyph.
4325 (pitx): Display some bidi information about the iterator.
4326 (prowlims, pmtxrows): New commands.
4327
4328 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4329
4330 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4331 * s/usg5-4.h (LIBS_DEBUG):
4332 * s/irix6-5.h (C_DEBUG_SWITCH):
4333 * s/gnu-linux.h (LIBS_DEBUG):
4334 * s/darwin.h (LIBS_DEBUG):
4335 * s/bsd-common.h (LIBS_DEBUG):
4336 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4337 * m/iris4d.h (LIBS_DEBUG):
4338 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4339
4340 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4341 (LIBS_DEBUG): Remove definition.
4342
4343 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4344
4345 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4346 Windows.
4347
4348 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4349
4350 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4351 `connect' (Bug#5723).
4352
4353 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4354
4355 * process.c (Fmake_network_process): Call `select' for interrupted
4356 `connect' rather than creating new socket (Bug#5173).
4357
4358 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4359
4360 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4361
4362 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4363
4364 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4365
4366 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4367
4368 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4369 XLoadQueryFont.
4370
4371 2010-03-24 Kenichi Handa <handa@m17n.org>
4372
4373 * coding.c (decode_coding_ccl): Fix previous change for the
4374 multibyte case.
4375 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4376 case that the output buffer is fullfilled.
4377 (encode_coding): Setup ccl program here.
4378
4379 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4380
4381 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4382
4383 Simplify LIBS_MACHINE definitions.
4384 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4385 * m/iris4d.h (LIBS_MACHINE): Likewise.
4386 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4387 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4388 * s/netbsd.h: Remove commented out code.
4389
4390 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4391
4392 Remove dead code dealing with POSIX_SIGNALS.
4393 * atimer.c (set_alarm): Remove dead code, all USG systems define
4394 POSIX_SIGNALS.
4395 * data.c (arith_error): Likewise.
4396 * keyboard.c (input_available_signal, handle_user_signal)
4397 (interrupt_signal): Likewise.
4398 * process.c (sigchld_handler): Likewise.
4399 (create_process): Remove if 0 code. Remove HPUX conditional when
4400 !defined (POSIX_SIGNALS), it cannot be true.
4401 * syssignal.h: Remove USG5_4 and USG conditionals when
4402 !POSIX_SIGNALS, they cannot be true.
4403
4404 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4405 NO_SOCK_SIGIO, not used anymore.
4406
4407 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4408
4409 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4410 support vax on BSDs.
4411
4412 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4413 * s/aix4-2.h (ORDINARY_LINK): ... here.
4414
4415 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4416
4417 * Makefile.in (abs_builddir): Define.
4418 (bootstrap_exe): Use it.
4419 (VPATH): Use $(srcdir) instead of @srcdir@.
4420
4421 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * Makefile.in (bootstrap_exe): Use an absolute name.
4424
4425 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4426
4427 Remove support for old GNU/Linux using libc version 5.
4428 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4429 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4430
4431 Consolidate redundant definitions in s/bsd-common.h.
4432 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4433 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4434 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4435 doing it in all files that include this one.
4436 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4437 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4438 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4439 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4440 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4441 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4442 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4443 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4444 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4445
4446 Consolidate redundant definitions.
4447 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4448 it's undefined in all files that include this one.
4449 (POSIX_SIGNALS): Define here instead of doing it in all files that
4450 include this one.
4451 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4452 (POSIX_SIGNALS): Do not define.
4453 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4454 (POSIX_SIGNALS): Do not define.
4455 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4456 (POSIX_SIGNALS): Do not define.
4457
4458 Remove support for old UNIX System V systems.
4459 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4460 * s/usg-5-4-2.h: Remove.
4461
4462 Remove support for Solaris on PPC and for old versions.
4463 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4464 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4465 that cancel each other.
4466 * s/sol2-3.h:
4467 * s/sol2-4.h:
4468 * s/sol2-5.h: Remove.
4469 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4470 (NO_REMAP): Remove, unused.
4471 (UNEXEC): Move definition ...
4472 * s/aix4-2.h (UNEXEC): ... here.
4473
4474 * s/openbsd.h: Remove support for non-ELF and for systems that do
4475 not support shared libraries.
4476 * s/netbsd.h:
4477 * s/freebsd.h: Likewise.
4478
4479 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4480
4481 Remove non-working support for lynxos 3.0.
4482 * s/lynxos.h: Remove file.
4483
4484 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4485 COFF_BSD_SYMBOLS, nothing defines it anymore.
4486
4487 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4488
4489 Remove obsolete uses of HAVE_SHM.
4490 * emacs.c (standard_args):
4491 (Fdump_emacs):
4492 (syms_of_emacs): Remove code depending on HAVE_SHM.
4493
4494 * alloc.c: Remove HAVE_SHM dependent definition.
4495
4496 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4497
4498 2010-03-18 Glenn Morris <rgm@gnu.org>
4499
4500 * emacs.c (USAGE4): Hard-code bug address.
4501 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4502 (bug_reporting_address): Remove.
4503 (main): Don't call bug_reporting_address.
4504
4505 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4506 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4507
4508 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4509
4510 * xfns.c (Fx_create_frame):
4511 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4512 on left.
4513
4514 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4515
4516 * editfns.c (Fformat): Account for string precision when computing
4517 field width (Bug#5710).
4518
4519 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4520
4521 * xfns.c (Fx_create_frame): Set default to Qright.
4522
4523 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4524 all window systems.
4525
4526 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4527
4528 These changes remove termcap.c from the build on Posix platforms.
4529 * Makefile.in (termcapobj): Move termcap.o from here...
4530 (MSDOS_OBJ): ...to here.
4531 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4532 now identical to when LIBS_TERMCAP is defined.
4533
4534 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4535
4536 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4537
4538 * config.in: Regenerated. (See top-level ChangeLog.)
4539
4540 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4541
4542 * Branch for 23.2.
4543
4544 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4545
4546 Cleanup setup of gl_state in various parts of the code.
4547 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4548 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4549 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4550 (skip_chars):
4551 * regex.c (regex_compile): Use it.
4552 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4553 it's now set in regex_compile when/if we need it.
4554
4555 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4556
4557 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4558 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4559 (QUIT): Use it to consolidate code and remove redundancy.
4560 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4561
4562 * regex.c (regex_compile): Setup gl_state as well.
4563
4564 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4565 (in_classes): Use CONSP before XCAR/XCDR.
4566
4567 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4568
4569 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4570 definitions, so that keyboard macros are correctly handled
4571 (Bug#5481).
4572
4573 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4574
4575 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4576 text that could be relocated inside the call to emacs_mule_char.
4577 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4578 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4579
4580 2010-03-02 Kenichi Handa <handa@m17n.org>
4581
4582 * character.c (parse_str_as_multibyte): Fix handling of the
4583 multibyte form of raw-bytes.
4584 (str_as_multibyte): Likewise.
4585
4586 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4587 form of raw-bytes.
4588
4589 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4590
4591 * charset.c (load_charset_map_from_file)
4592 (load_charset_map_from_vector): Zero out allocated
4593 charset_map_entries before using them.
4594
4595 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4596
4597 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4598
4599 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4600
4601 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4602 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4603
4604 2010-02-26 Kenichi Handa <handa@m17n.org>
4605
4606 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4607
4608 * xdisp.c (reseat_to_string): Fix previous change.
4609
4610 2010-02-26 David Reitter <david.reitter@gmail.com>
4611
4612 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4613 Lisp_Object (Bug#4736).
4614
4615 2010-02-25 Kenichi Handa <handa@m17n.org>
4616
4617 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4618
4619 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4620
4621 * xterm.c (XTflash): Move declarations before statements.
4622
4623 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4624 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4625 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4626 (xg_create_tool_bar): Remove unused variables.
4627 (x_wm_set_size_hint): Move declarations before statements.
4628 (xg_create_frame_widgets): Remove variable grav.
4629
4630 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
4631
4632 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4633
4634 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4635
4636 * term.c (fatal): Add a final \n if needed (bug#5596).
4637
4638 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
4639
4640 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4641
4642 2010-02-18 Glenn Morris <rgm@gnu.org>
4643
4644 * callint.c (Finteractive): Doc fix.
4645
4646 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4647
4648 * coding.c (record_conversion_result):
4649 Handle CODING_RESULT_INSUFFICIENT_DST.
4650 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4651 memory allocation error.
4652
4653 2010-02-17 Kenichi Handa <handa@m17n.org>
4654
4655 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4656 Fix for the case that the output buffer is fullfilled.
4657 (decode_coding): Setup ccl program here. Keep looping when the
4658 decoder stopped because the output buffer is
4659 fullfilled (bug#5534).
4660
4661 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4662
4663 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4664
4665 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4666 bug #5571.
4667 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4668 overdrawn.
4669
4670 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4671
4672 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4673 doing_interact here.
4674 (ice_connection_closed): New function.
4675 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4676 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4677 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4678 returns I/O error.
4679 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4680 bug #5512.
4681
4682 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
4683
4684 * nsfont.m (nsfont_open): The system's value for the font descent
4685 is negative, so round it down to avoid clipping.
4686
4687 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
4688
4689 * charset.c (load_charset_map_from_file)
4690 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4691 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
4692
4693 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
4694
4695 * charset.c (load_charset_map_from_file): Allocate large
4696 charset_map_entries structure on the heap rather than the stack.
4697 (Bug#5526).
4698
4699 2010-01-31 Kenichi Handa <handa@m17n.org>
4700
4701 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4702 size in NAME is invalid, return -1 (Bug#5396).
4703
4704 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
4705
4706 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4707 <deactivated@gmail.com> (Bug#3605).
4708
4709 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
4710
4711 * fileio.c (Frename_file): Correctly rename symlinks to
4712 directories (Bug#5496).
4713
4714 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4715
4716 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4717
4718 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4719
4720 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4721
4722 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
4723
4724 * frame.c (DEFAULT_ROWS): Change default to 35.
4725
4726 * xfns.c (x_default_font_parameter): Change default XFT font to
4727 monospace-10 (Bug#3643).
4728
4729 2010-01-29 Eli Zaretskii <eliz@gnu.org>
4730
4731 * w32inevt.c (key_event): Remove unnecessary comparison of
4732 event->uChar.AsciiChar with 128.
4733
4734 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
4735
4736 * fileio.c (Frename_file): Fix last change (Bug#5487).
4737
4738 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4739
4740 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4741
4742 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4743
4744 * xfns.c (Fx_create_frame): Remove window size matching code from
4745 2010-01-15.
4746 (x_get_current_desktop, x_get_desktop_workarea): Remove.
4747
4748 2010-01-27 Jason Rumney <jasonr@gnu.org>
4749
4750 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4751 (key_event): Use unicode for characters 128 and higher (Bug#4567).
4752
4753 2010-01-27 Kenichi Handa <handa@m17n.org>
4754
4755 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4756 pattern string (Bug#4209).
4757
4758 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
4759
4760 * fileio.c (Frename_file): Call copy-directory and
4761 delete-directory for directories, in order to handle cross-device
4762 renaming (Bug#3353).
4763
4764 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4765
4766 * xfns.c (Fx_create_frame): If frame height is too big, try
4767 sizes 24 and 10. Bug #3643.
4768
4769 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4770
4771 Try and fix bug#788, hopefully for real this time.
4772 * keymap.c (shadow_lookup): Add `remap' arg.
4773 (describe_map, describe_vector): Update calls to shadow_lookup.
4774 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4775 `remapped' so this flag is applicable to `sequence'. Be careful to
4776 perform remapping during shadow_lookup check of remapped_sequences.
4777
4778 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4779
4780 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4781 png_check_sig, which has been removed in libpng 1.4.
4782
4783 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4784
4785 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4786 lacks this header file).
4787
4788 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4789
4790 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4791 as in Emacs 22.
4792
4793 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4794
4795 * lisp.h (make_pure_string): String pointer arg now points to const.
4796
4797 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4798 args now point to const.
4799
4800 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4801
4802 * lread.c (Fload): Don't treat files without .elc extension as
4803 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4804 them. (bug#5303)
4805
4806 2010-01-20 Kenichi Handa <handa@m17n.org>
4807
4808 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4809 treat the source as actual byte sequence.
4810
4811 2010-01-19 Alan Mackenzie <acm@muc.de>
4812
4813 Fix spurious before-change-functions invocation from (insert ?\n).
4814 * textprop.c (set_text_properties): Rename parameter
4815 `signal_after_change_p' to `coherent_change_p', and make the
4816 invocation of `modify_region' conditional on it.
4817
4818 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4819
4820 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4821 for debug purpose.
4822 (syms_of_xsettings): Declare xft-settings.
4823
4824 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4825
4826 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4827
4828 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4829
4830 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4831
4832 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4833
4834 * emacs.c (standard_args): Adjust arg priorities to reflect how
4835 they are processed in startup.el.
4836
4837 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4838
4839 * Makefile.in (lisp, shortlisp): Update.
4840
4841 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4842
4843 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4844 code, link the new kboard into all_kboard before running Lisp code,
4845 and protect the new terminal with GCPRO (Bug#5365).
4846 (x_term_init): Remove unused var `atom'.
4847 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4848
4849 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4850
4851 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4852 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4853 to find out usable size of the desktop. Don't make frames larger than
4854 this. Bug #3643.
4855
4856 2010-01-15 Kenichi Handa <handa@m17n.org>
4857
4858 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4859
4860 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4861
4862 * nsterm.m (Qnone): Define.
4863
4864 * nsfns.m (Qnone): Move definition to nsterm.m.
4865
4866 2010-01-14 Kenichi Handa <handa@m17n.org>
4867
4868 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4869 systems.
4870
4871 2010-01-14 Kenichi Handa <handa@m17n.org>
4872
4873 Make auto-composition work on all buffers even if they are
4874 fundamental mode.
4875
4876 * composite.c (Vauto_composition_mode): New variable.
4877 (composition_compute_stop_pos): Check Vauto_composition_mode
4878 instead of Vauto_composition_function.
4879 (composition_adjust_point, Ffind_composition_internal): Likewise.
4880 (syms_of_composite): Declare Lisp variable
4881 "auto-composition-mode" here.
4882
4883 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
4884
4885 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4886 during call to vendor-specific-keysyms (Bug#5365).
4887
4888 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4889
4890 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4891 Call SIGNAL_THREAD_CHECK (Bug#5333).
4892
4893 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4894 Call SIGNAL_THREAD_CHECK.
4895
4896 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4897
4898 Try to fix bug#5314. This is probably not the final word, tho.
4899 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4900 recent-auto-save-p as a side-effect.
4901 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4902 * buffer.c (Fkill_buffer, reset_buffer):
4903 * editfns.c (Fsubst_char_in_region):
4904 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4905 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4906
4907 2010-01-13 Kenichi Handa <handa@m17n.org>
4908
4909 Display buffer name, etc. in mode line by composing correctly.
4910
4911 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4912 STRING is not nil.
4913 (display_mode_element): Adjust for the change of
4914 decode_mode_spec and display_line.
4915 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4916 (display_string): Handle the case that STRING is non-null and
4917 LISP_STRING is not nil.
4918
4919 * xterm.c (x_draw_composite_glyph_string_foreground):
4920 Pay attention to s->face->overstrike.
4921
4922 * composite.c (composition_reseat_it): Don't check PT if STRING is
4923 non nil.
4924
4925 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4926
4927 * keyboard.c (read_char): Don't apply previous change when current
4928 buffer is unchanged by command execution.
4929
4930 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4931
4932 * keyboard.c (read_char): Return after executing from special map.
4933
4934 2010-01-12 Glenn Morris <rgm@gnu.org>
4935
4936 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4937 bug-gnu-emacs rather than emacs-pretest-bug.
4938
4939 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
4940
4941 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4942 initializing the Lisp variables that depend on them.
4943
4944 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4945
4946 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4947 Clear areas that will not be updated after change of menu bar lines.
4948 Clear the menu bar window's current matrix when the window gets empty.
4949
4950 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
4951
4952 * intervals.h, textprop.c (extend_property_ranges): Return value
4953 and args changed. Discard properties that begin at or after the
4954 new end (Bug#5306).
4955
4956 * editfns.c (Fformat): Caller changed.
4957
4958 * nsterm.m (ns_set_default_prefs): Delete function.
4959 (syms_of_nsterm): Initialize ns_command_modifier,
4960 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4961 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4962
4963 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4964 position (Bug#4040).
4965
4966 2010-01-09 Eli Zaretskii <eliz@gnu.org>
4967
4968 * editfns.c (Ffloat_time): Doc fix.
4969
4970 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4971
4972 * xfns.c (Fx_create_frame): Don't create frame larger than display
4973 by default bug#3643.
4974
4975 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4976
4977 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4978 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4979 windows above internal border.
4980
4981 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4982 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4983 windows above internal border.
4984
4985 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4986 tool bar windows specially.
4987
4988 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4989
4990 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4991 specially.
4992 (XTflash): Take account of menu bar height.
4993
4994 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4995 specially.
4996
4997 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4998
4999 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5000 also be true before we can return early (bug #5339).
5001
5002 2010-01-06 David Reitter <david.reitter@gmail.com>
5003
5004 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5005 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5006 (Bug#3233).
5007
5008 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5009
5010 * font.c (font_open_entity): Enable chache and call cached_font_ok
5011 for the driver if defined.
5012 (QCuser_spec): New symbol.
5013 (font_spec_from_name): Save name as user-spec.
5014 (font_load_for_lface): Keep user-spec instead of name.
5015 (font_open_by_name): Save name as user-spec.
5016 (syms_of_font): Initialize QCuser_spec.
5017 (font_clear_prop): Clear name if it exists in font (bug#5157).
5018
5019 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5020 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5021 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5022
5023 * font.h (struct font_driver): Add cached_font_ok.
5024
5025 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5026
5027 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5028
5029 * xterm.c (x_new_font): Move code for setting rows/cols before
5030 resizing ...
5031 (x_set_window_size): ... to here. Bug #2568.
5032
5033 * gtkutil.c (xg_clear_under_internal_border): New function.
5034 (xg_frame_resized, xg_frame_set_char_size):
5035 Call xg_clear_under_internal_border.
5036 (xg_update_scrollbar_pos): Clear under old scroll bar position.
5037
5038 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
5039
5040 * keyboard.c (read_key_sequence): Catch keyboard switch after
5041 making a new tty frame (Bug#5095).
5042
5043 2010-01-05 Kenichi Handa <handa@m17n.org>
5044
5045 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5046
5047 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5048
5049 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5050 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5051 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5052
5053 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
5054
5055 * dbusbind.c (xd_add_watch): Improve debug message.
5056 (xd_remove_watch): Improve debug message. If DATA is the session
5057 bus, unset D-Bus session environment.
5058 (Fdbus_init_bus): Pass the bus as argument to
5059 dbus_connection_set_watch_functions. (Bug#5283)
5060
5061 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5062
5063 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5064
5065 * lread.c (syms_of_lread): Make it clearer that these are the
5066 names of loaded files (Bug#5068).
5067
5068 * eval.c (run_hook_with_args): Handle the case where the global
5069 value has the obsolete single-function form (Bug#5026).
5070
5071 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5072
5073 * minibuf.c (Fall_completions): Minor optimization.
5074
5075 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5076
5077 * .gdbinit (pgx): Fix display of composite glyphs.
5078 Display cmp.from and cmp.to as well.
5079 (pitx): Fix last change.
5080
5081 2009-12-25 Kenichi Handa <handa@m17n.org>
5082
5083 * composite.h (composition_adjust_point): Update prototype.
5084
5085 * composite.c (composition_reseat_it): Don't make a composition
5086 spanning over point.
5087 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5088 composable characters.
5089 (composition_adjust_point): New arg NEW_PT. Callers changed.
5090
5091 * keyboard.c (command_loop_1): Force redisplay if the last point
5092 was within a composition.
5093 (adjust_point_for_property): Don't adjust point for automatic
5094 composition when called after buffer modification.
5095
5096 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5097
5098 * .gdbinit (pitx): Don't use enum names, use their values.
5099 Remove reference to non-existing value GET_FROM_COMPOSITION.
5100 (pgx): Don't use enum names, use their values.
5101 (pitmethod): New helper command.
5102 (pitx): Use it to display iteration method.
5103 (pgrowit): New command.
5104
5105 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5106
5107 Update dependencies in Makefile.in.
5108
5109 * Makefile.in (alloc.o): Depend on termhooks.h.
5110 (atimer.o): Depend on blockinput.h.
5111 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5112 and frame.h.
5113 (callint.o): Depend on systime.h, coding.h, and composite.h.
5114 (callproc.o): Depend on buffer.h.
5115 (casefiddle.o): Don't depend on charset.h.
5116 (casetab.o): Depend on character.h.
5117 (ccl.o): Depend on composite.h.
5118 (chartab.o): Depend on ccl.h.
5119 (cm.o): Depend on dispextern.h.
5120 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5121 (coding.o): Don't depend on $(INTERVALS_H).
5122 (composite.o): Don't depend on dispextern.h explicitly (it's in
5123 $(INTERVALS_H)). Depend on ccl.h.
5124 (data.o): Depend on systime.h, coding.h, composite.h,
5125 dispextern.h, font.h, and ccl.h.
5126 (dired.o): Depend on composite.h.
5127 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5128 composite.h (it's in $(INTERVALS_H)).
5129 (doc.o): Depend on systime.h, coding.h, and composite.h.
5130 (editfns.o): Don't depend explicitly on dispextern.h.
5131 (emacs.o): Depend on frame.h and coding.h.
5132 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5133 (fileio.o): Depend on frame.h and commands.h. Don't depend
5134 explicitly on dispextern.h.
5135 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5136 composite.h.
5137 (fns.o): Don't depend on termhooks.h.
5138 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5139 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5140 coding.h, $(INTERVALS_H), window.h, xterm.h.
5141 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5142 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5143 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5144 fontset.h, ccl.h, and ftfont.h.
5145 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5146 (gtkutil.o): Depend on dispextern.h and composite.h.
5147 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5148 termhooks.h, and ccl.h.
5149 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5150 (intervals.o): Depend on systime.h and coding.h.
5151 (keyboard.o): Depend on composite.h and coding.h.
5152 (keymap.o): Depend on coding.h and frame.h.
5153 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5154 (macros.o): Depend on systime.h, coding.h, and composite.h.
5155 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5156 and atimer.h.
5157 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5158 dispextern.h explicitly.
5159 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5160 Don't depend explicitly on dispextern.h and composite.h.
5161 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5162 (regex.o): Don't depend on charset.h.
5163 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5164 (search.o): Don't depend explicitly on composite.h.
5165 (sound.o): Depend on atimer.h and systime.h.
5166 (syntax.o): Don't depend explicitly on composite.h.
5167 (sysdep.o): Depend on coding.h and composite.h.
5168 (term.o): Depend on xterm.h and buffer.h.
5169 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5170 (textprop.o): Don't depend on dispextern.h explicitly.
5171 (undo.o): Depend on dispextern.h.
5172 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5173 dispextern.h and composite.h explicitly.
5174 (xdisp.o): Depend on ccl.h.
5175 (xfaces.o): Depend on coding.h and ccl.h.
5176 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5177 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5178 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5179 ftfont.h.
5180 (xgselect.o): New dependency.
5181 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5182 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5183 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5184 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5185 (xsmfns.o): Depend on frame.h and dispextern.h.
5186 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5187 sysselect.h.
5188
5189 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5190
5191 * font.c (Fclear_font_cache): Pass correct cache argument to
5192 font_clear_cache.
5193
5194 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5195
5196 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5197 twice.
5198
5199 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5200
5201 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5202 calling file-remote-p. Reported by Jim Meyering.
5203
5204 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5205
5206 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5207 avoid compiler warnings. (Bug #5217)
5208
5209 2009-12-14 Kenichi Handa <handa@m17n.org>
5210
5211 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5212 in 8-bit encoding.
5213
5214 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5215
5216 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5217 tooltip windows.
5218
5219 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5220
5221 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5222 Xatom_net_window_type.
5223
5224 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5225 Xatom_net_window_type.
5226
5227 * xterm.c (my_log_handler): New function.
5228 (x_term_init): Set my_log_handler as log handler during gtk_init
5229 so we can filter out buggy messages. (Bug #5120).
5230
5231 * xterm.c (xg_scroll_callback): Parameter list changed,
5232 use parameter GtkScrollType to determine scroll/line/page.
5233 Only allow dragging if a button < 4 is grabbed (bug #5177).
5234 (xg_end_scroll_callback): New function.
5235 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5236 xg_create_scroll_bar.
5237
5238 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5239 (scroll_end_callback): Remove.
5240 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5241 button-release-event. Replace value-changed event with change-value,
5242 bug #5177.
5243 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5244 bug #5177.
5245
5246 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5247 (xg_create_scroll_bar): Add GCallback end_callback.
5248
5249 * xftfont.c (QClcdfilter): New variable.
5250 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5251 (syms_of_xftfont): Initialize QClcdfilter.
5252
5253 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5254
5255 * xsettings.c (struct xsettings): Add member seen.
5256 (parse_xft_settings): Update member seen with what we have read.
5257 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5258 (apply_xft_settings): Only update Xft settings with what member seen
5259 indicates as new.
5260
5261 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5262
5263 * dispextern.h (struct text_pos): Use EMACS_INT.
5264 (struct glyph): Use EMACS_INT for charpos.
5265 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5266 region_beg_charpos, region_end_charpos,
5267 redisplay_end_trigger_charpos, and also for
5268 iterator_stack_entry.end_charpos and
5269 iterator_stack_entry.stop_charpos.
5270
5271 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5272
5273 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5274 (xg_create_scroll_bar): Call scroll_end_callback on button release
5275 event (bug #5177).
5276 (xg_event_is_for_scrollbar): != replaced with ==.
5277
5278 2009-12-12 Kenichi Handa <handa@m17n.org>
5279
5280 * ftfont.c (struct ftfont_info): New member matrix.
5281 (ftfont_open): Setup xftfont_info->matrix.
5282 (MFLTFontFT): New member matrix.
5283 (FLOOR, CEIL, ROUND): New macros.
5284 (ftfont_get_metrics): Handle matrix transformation.
5285 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5286
5287 * xftfont.c (struct xftfont_info): New member matrix.
5288 (xftfont_open): Setup xftfont_info->matrix.
5289
5290 2009-12-10 Kenichi Handa <handa@m17n.org>
5291
5292 * xdisp.c (append_space_for_newline): Consider face-remapping.
5293
5294 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5295
5296 * xsettings.c: Include "keyboard.h".
5297
5298 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5299
5300 Fix implicit function declarations.
5301 * cmds.c: Include "frame.h".
5302 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5303 * frame.h: Move declaration of delete_frame outside of
5304 HAVE_WINDOW_SYSTEM.
5305
5306 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5307
5308 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5309
5310 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5311 GTK builds.
5312
5313 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5314
5315 * unexelf.c (unexec): Don't search for .data twice.
5316
5317 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5318
5319 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5320 if push failed.
5321 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5322 of push_display_prop (Bug#5000).
5323
5324 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5325 value of font_list_entities (Bug#5085).
5326
5327 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5328
5329 Fix `string-to-number' to deal consistently with integers and floats.
5330 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5331 trailing characters, not just whitespace.
5332 (read1): Pass new arg 0 to keep old behavior.
5333 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5334 trailing chars, as it is already done for integers. Doc fixes.
5335 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5336
5337 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5338
5339 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5340 Delete unused enumeration value.
5341
5342 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5343
5344 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5345
5346 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5347
5348 * process.c (Fmake_network_process): Fix up the tests for
5349 "connectionless socket", so they DTRT for seqpacket sockets as well.
5350
5351 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5352
5353 * process.c (Qseqpacket): New symbol.
5354 (HAVE_SEQPACKET): New macro.
5355 (Fmake_network_process): Accept new :type `seqpacket'.
5356 (init_process): Add `seqpacket' feature when applicable.
5357 (syms_of_process): Initialize Qseqpacket.
5358
5359 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5360
5361 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5362 if entity is Qnil.
5363
5364 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5365
5366 * print.c (print_preprocess): Preprocess the key_and_value table of
5367 hashtables, even tho they're "hidden" (bug#5082).
5368
5369 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5370
5371 * frame.c (frame_make_pointer_invisible)
5372 (frame_make_pointer_visible): Declare f before statements.
5373
5374 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5375
5376 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5377 omitted dependencies on lisp.h.
5378
5379 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5380
5381 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5382 is NULL.
5383
5384 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5385
5386 * frame.c (frame_make_pointer_invisible)
5387 (frame_make_pointer_visible): Just return if there isn't any selected
5388 frame.
5389
5390 * search.c (simple_search): Remove warning by making *p const.
5391
5392 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5393
5394 * xdisp.c (power_letter): Remove duplicate const.
5395
5396 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5397
5398 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5399
5400 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5401 defaults (bug #5025).
5402
5403 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5404
5405 * insdel.c (adjust_markers_for_delete): Move it in the
5406 right direction! (bug#4803)
5407
5408 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5409
5410 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5411
5412 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5413
5414 2009-11-24 Glenn Morris <rgm@gnu.org>
5415
5416 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5417
5418 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5419
5420 * Makefile.in: Must create deps for ecrt0.o in its rule.
5421
5422 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5423 because that is what Gtk+ font dialog understands.
5424
5425 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5426 of Fcopy_sequence.
5427 (font_open_by_name): Put name given into QCname for font-object returned.
5428
5429 * frame.c (x_set_font): Save original font name as frame parameter
5430 font-parameter.
5431
5432 * xsettings.c (set_default_xft_settings): New function.
5433 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5434 is found.
5435
5436 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5437
5438 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5439 searching backwards through multibyte buffer.
5440
5441 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5442
5443 * xterm.c: #include xgselect.h.
5444 (x_initialize): Call xgselect_initialize.
5445
5446 * xsettings.c (something_changedCB): C++ comments => C comments.
5447 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5448 does that now.
5449
5450 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5451 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5452 (scroll_bar_button_cb): Remove.
5453 (create_menus): C++ comments => C comments. Don't bind grab-notify
5454 event.
5455 (xg_create_scroll_bar): Don't bind button-press-event and
5456 button-release-event.
5457
5458 * process.c: Include xgselect.h if defined (USE_GTK) ||
5459 defined (HAVE_GCONF).
5460 (wait_reading_process_output): Call xg_select for the same condition.
5461
5462 * xgselect.c (xg_select): New function to better integrate with
5463 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5464
5465 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5466
5467 * Makefile.in (XOBJ): Add xgselect.o.
5468
5469 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5470
5471 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5472 Remove ignored second argument. All callers changed.
5473 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5474 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5475 * xdisp.c (string_char_and_length): Likewise.
5476
5477 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5478
5479 * xterm.c (x_new_font):
5480 * print.c (print_object):
5481 * cmds.c (Fself_insert_command): Move declarations before statements.
5482
5483 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5484
5485 * s/cygwin.h: Remove unneeded linker flags.
5486
5487 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5488
5489 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5490
5491 * xsettings.h: Declare xsettings_get_system_font.
5492
5493 * xsettings.c (xsettings_get_system_font): New function.
5494 (init_gconf): No use initiating gconf unless we have Xft also.
5495 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5496 HAVE_GCONF.
5497
5498 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5499 add a blank entry so it doesn't collapse into nothing.
5500
5501 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5502
5503 * lread.c (Funintern): Comment out last change.
5504
5505 2009-11-19 Richard Stallman <rms@gnu.org>
5506
5507 * lread.c (Funintern): Error if symbol is t or nil.
5508
5509 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5510
5511 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5512 representation of Lisp integers.
5513 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5514
5515 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5516
5517 * lisp.h: Remove declaration of Ffont_get_system_font.
5518 * xfns.c: Move include of "xsettings.h".
5519 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5520
5521 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5522
5523 * xsettings.c (something_changedCB, Ffont_get_system_font):
5524 Check use_system_font.
5525 (syms_of_xsettings): DEFVAR font-use-system-font.
5526
5527 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5528
5529 * xfns.c (x_default_font_parameter): Remove dead assignment.
5530
5531 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5532
5533 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5534
5535 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5536 not have FC_LCD_*. #define them if not there.
5537
5538 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5539
5540 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5541
5542 * xterm.c (handle_one_xevent): Call xft_settings_event for
5543 ClientMessage, PropertyNotify and DestroyNotify.
5544 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5545 Call xsettings_initialize.
5546
5547 * xftfont.c (xftfont_fix_match): New function.
5548 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5549 Call xftfont_fix_match after XftFontMatch.
5550
5551 * xfont.c (xfont_driver): Initialize all members.
5552
5553 * xfns.c (x_default_font_parameter):
5554 Try font from Ffont_get_system_font.
5555 Do not get font from x_default_parameter if we got one from
5556 Ffont_get_system_font.
5557 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5558
5559 * w32font.c (w32font_driver): Initialize all members.
5560
5561 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5562
5563 * lisp.h: Declare syms_of_xsettings.
5564
5565 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5566 Handle CONFIG_CHANGED_EVENT.
5567
5568 * ftfont.c (ftfont_filter_properties): New function.
5569
5570 * frame.c (x_set_font): Remove unused variable lval.
5571
5572 * font.h (struct font_driver): Add filter_properties.
5573
5574 * font.c (font_put_extra): Don't return if val is nil, it means
5575 boolean option is off.
5576 (font_parse_fcname): Collect all extra properties in extra_props
5577 and call filter_properties for all drivers with extra_props and
5578 font as parameter.
5579 (font_open_entity): Do not use cache, it does not pick up new
5580 fontconfig settings like hinting.
5581 (font_load_for_lface): If spec had a name in it, store it in entity.
5582
5583 * emacs.c (main): Call syms_of_xsettings.
5584
5585 * config.in: HAVE_GCONF is new.
5586
5587 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5588 xsettings.o is new.
5589
5590 2009-11-17 Kenichi Handa <handa@m17n.org>
5591
5592 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5593 back to the default font in case that no suitable font is found.
5594
5595 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5596
5597 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5598 Suggested by Chad Brown <yandros@mit.edu>.
5599 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5600
5601 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5602
5603 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5604
5605 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5606
5607 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5608
5609 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5610
5611 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5612 has a parent.
5613
5614 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5615 dependency files in deps/. Include those files into Makefile.
5616
5617 * config.in: Generated (AUTO_DEPEND).
5618
5619 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
5620
5621 * dbusbind.c (Vdbus_registered_objects_table): Rename from
5622 Vdbus_registered_functions_table, because it contains also
5623 properties. Fix docstring.
5624 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5625
5626 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5627
5628 * alloc.c (mark_object): Don't reprocess marked strings.
5629 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5630 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5631
5632 2009-11-13 Kenichi Handa <handa@m17n.org>
5633
5634 * category.c (word_boundary_p): Adjust for the change of the
5635 semantics of Vword_combining_categories.
5636 (Vword_combining_categories): Describe the slight change of the
5637 semantics.
5638
5639 2009-11-13 Eli Zaretskii <eliz@gnu.org>
5640
5641 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5642
5643 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5644
5645 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5646
5647 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5648
5649 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
5650
5651 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5652
5653 2009-11-11 David Reitter <david.reitter@gmail.com>
5654
5655 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5656 variables to fix 2009-11-09 change.
5657
5658 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5659
5660 * process.c (ifflag_def): Make flag_sym constant.
5661 (Fnetwork_interface_info): Use a constant pointer.
5662 (ifflag_table):
5663 * xfns.c (cursor_bits):
5664 * xdisp.c (power_letter):
5665 * termcap.c (speeds, esctab):
5666 * sysdep.c (baud_convert):
5667 * keyboard.c (lispy_accent_codes, modifier_names):
5668 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5669 (jpeg_format, tiff_format, gif_format, svg_format)
5670 (interlace_start, interlace_increment, gs_format):
5671 * gtkutil.c (separator_names):
5672 * fringe.c (swap_nibble):
5673 * fns.c (base64_value_to_char, base64_char_to_value):
5674 * fileio.c (make_temp_name_tbl):
5675 * coding.c (suffixes): Make constant.
5676
5677 * frame.c (make_initial_frame):
5678 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5679 build_string.
5680 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5681
5682 * s/freebsd.h:
5683 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5684
5685 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5686 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5687
5688 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5689 * xterm.c (syms_of_xterm):
5690 * xfaces.c (syms_of_xfaces):
5691 * xdisp.c (syms_of_xdisp):
5692 * lread.c (syms_of_lread):
5693 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5694 build_string.
5695
5696 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5697
5698 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5699
5700 * fns.c (Fplist_get): Merge the active and the commented out code.
5701
5702 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5703
5704 * keyboard.h: Declare timer_check.
5705
5706 * keyboard.c (timer_check_2): New function that does what the old
5707 timer_check did.
5708 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5709 returned, i.e. don't return -1 with timers pending.
5710
5711 * process.c: Remove extern declaration of timer_check.
5712
5713 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5714 even if timer_check returned -1.
5715
5716 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5717 xg_dialog_data.
5718 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5719 the event loop.
5720 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5721 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5722 Destroy the dialog after xg_dialog_run.
5723
5724 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5725
5726 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5727
5728 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5729
5730 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5731
5732 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
5733
5734 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5735
5736 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5737
5738 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5739 w32menu.c, and nsmenu.m.
5740 Simplify the obsolete case where position is nil.
5741 (cleanup_popup_menu): New function, moved from nsmenu.m.
5742 (struct skp): Remove slot `notreal'.
5743 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5744 adjust callers.
5745 (single_menu_item): Adjust call to parse_menu_item.
5746 (syms_of_menu): Defsubr x-popup-menu.
5747 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5748 (keymap_panes): Don't export any more.
5749 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5750 (xmenu_show): Declare.
5751 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5752 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5753 * keyboard.h (parse_menu_item): Update declaration.
5754 * xmenu.c (Fx_popup_menu): Remove.
5755 (syms_of_xmenu): Don't defsubr x-popup-menu.
5756 * w32menu.c (Fx_popup_menu): Remove.
5757 (syms_of_w32menu): Don't defsubr x-popup-menu.
5758 * nsmenu.m (cleanup_popup_menu): Remove.
5759 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5760 moved to menu.c's Fx_popup_menu.
5761 (Fx_popup_menu): Remove.
5762 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5763 menu_items (it's done in menu.c already).
5764
5765 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5766
5767 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5768 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5769
5770 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5773 xmenu_show. Hide any tooltip before opening a menu.
5774 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5775 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5776
5777 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5778
5779 Let integers use up 2 tags to give them one extra bit and thus double
5780 their range.
5781 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5782 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5783 New macros.
5784 (enum Lisp_Type): Use them. Give explicit values.
5785 (Lisp_Type_Limit): Remove.
5786 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5787 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5788 Pay attention to USE_2_TAGS_FOR_INTS.
5789 (INTEGERP): Use LISP_INT_TAG_P.
5790 * fns.c (internal_equal): Simplify the default case.
5791 (sxhash): Use case_Lisp_Int.
5792 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5793 any more.
5794 (Ftype_of): Use case_Lisp_Int.
5795 (store_symval_forwarding): Take into account the fact that Ints can
5796 now have more than one tag.
5797 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5798 (buffer_slot_type_mismatch):
5799 * xfaces.c (face_attr_equal_p):
5800 * print.c (print_object):
5801 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5802 Use case_Lisp_Int.
5803
5804 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5805
5806 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5807
5808 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5809 warning.
5810
5811 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5812
5813 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5814
5815 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5816
5817 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5818 ButtonPressRelease and MotionNotify (bug#4870).
5819
5820 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5821
5822 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5823
5824 * xterm.c (syms_of_xterm):
5825 * xselect.c (syms_of_xselect):
5826 * xmenu.c (syms_of_xmenu):
5827 * xfns.c (syms_of_xfns):
5828 * xfaces.c (syms_of_xfaces):
5829 * xdisp.c (syms_of_xdisp):
5830 * window.c (syms_of_window):
5831 * w32fns.c (syms_of_w32fns):
5832 * undo.c (syms_of_undo):
5833 * textprop.c (syms_of_textprop):
5834 * terminal.c (syms_of_terminal):
5835 * syntax.c (syms_of_syntax):
5836 * sound.c (syms_of_sound):
5837 * search.c (syms_of_search):
5838 * print.c (syms_of_print):
5839 * minibuf.c (syms_of_minibuf):
5840 * macros.c (syms_of_macros):
5841 * keymap.c (syms_of_keymap, initial_define_key)
5842 (initial_define_lispy_key):
5843 * keyboard.c (syms_of_keyboard):
5844 * insdel.c (syms_of_insdel):
5845 * image.c (syms_of_image):
5846 * fringe.c (syms_of_fringe):
5847 * frame.c (syms_of_frame):
5848 * fontset.c (syms_of_fontset):
5849 * fns.c (syms_of_fns):
5850 * fns.c (syms_of_fns):
5851 * fileio.c (syms_of_fileio):
5852 * fileio.c (syms_of_fileio):
5853 * eval.c (syms_of_eval):
5854 * doc.c (syms_of_doc):
5855 * dispnew.c (syms_of_display):
5856 * dired.c (syms_of_dired):
5857 * dbusbind.c (syms_of_dbusbind):
5858 * data.c (syms_of_data):
5859 * composite.c (syms_of_composite):
5860 * coding.c (syms_of_coding):
5861 * cmds.c (syms_of_cmds):
5862 * charset.c (define_charset_internal, syms_of_character):
5863 * ccl.c (syms_of_ccl):
5864 * category.c (syms_of_category, init_category_once):
5865 * casetab.c (syms_of_casetab):
5866 * casefiddle.c (syms_of_casefiddle):
5867 * callint.c (syms_of_callint):
5868 * bytecode.c (syms_of_bytecode):
5869 * buffer.c (keys_of_buffer, syms_of_buffer):
5870 * alloc.c (syms_of_alloc):
5871 * process.c (syms_of_process, init_process):
5872 * lread.c (syms_of_lread, init_obarray):
5873 * font.c (build_style_table):
5874 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5875 intern_c_string, calls to make_pure_string with
5876 make_pure_c_string. Use pure_cons instead of Fcons.
5877
5878 * process.c (socket_options): Make it const.
5879 (set_socket_option, init_process): Use a const pointer.
5880
5881 * lread.c (intern_c_string): New function.
5882 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5883 (defvar_int): Uset it. Make the name const char*.
5884
5885 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5886 (defvar_int): Update prototypes.
5887 (DEFUN, EXFUN): Support for prototypes is now required.
5888 (intern_c_string): New prototype.
5889 (struct Lisp_Subr): Make symbol_name constant.
5890
5891 * font.c (struct table_entry): Remove unused member. Make NAMES
5892 constant.
5893 (weight_table, slant_table, width_table): Make constant.
5894
5895 * emacs.c (struct standard_args): Make name and longname constant.
5896
5897 * character.h (DEFSYM): Use intern_c_string.
5898
5899 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5900
5901 * alloc.c (make_pure_c_string): New function.
5902
5903 * eval.c (Fautoload): Purecopy all arguments.
5904
5905 2009-11-05 Kenichi Handa <handa@m17n.org>
5906
5907 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5908 the buffer in case of replace.
5909
5910 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5911
5912 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5913
5914 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5915
5916 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5917 when applicable (bug#4851).
5918
5919 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5920 (P_): Support for prototypes is now required.
5921
5922 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
5923
5924 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5925 (Bug#4827).
5926
5927 2009-10-30 Eli Zaretskii <eliz@gnu.org>
5928
5929 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5930
5931 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5932
5933 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5934
5935 * lread.c (Fload): Purecopy the file name when building
5936 Vpreloaded_file_list.
5937
5938 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5939
5940 * w32fns.c (syms_of_w32fns): Change default value of
5941 w32-scroll-lock-modifier to nil. (Bug#2827)
5942
5943 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5944
5945 * minibuf.c (Fall_completions): Fix typos in docstring.
5946
5947 2009-10-26 Andreas Schwab <schwab@redhat.com>
5948
5949 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5950
5951 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5952
5953 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5954 For delta < 0, skip check that only makes sense when the mini-window
5955 is going to be enlarged. (Bug#4534)
5956
5957 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
5958
5959 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5960 string in menu maps (Bug#4471).
5961
5962 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
5963
5964 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5965 FRAME_NS_VIEW on terminal frames (Bug#4765).
5966
5967 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5968
5969 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5970 DBUS_TYPE_UINTnn separately to get proper sign extension.
5971
5972 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5973 can properly handle unsigned types.
5974 (make_uid, make_gid): Remove.
5975
5976 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5977 types again.
5978
5979 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5980 (system_process_attributes): Likewise.
5981
5982 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5983
5984 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5985
5986 * eval.c (Fautoload): Purecopy the filename. Simplify.
5987
5988 * category.c (Fdefine_category): Purecopy docstring.
5989
5990 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5991
5992 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5993
5994 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5995
5996 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5997
5998 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5999 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6000 (Bug#4775).
6001
6002 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6003
6004 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6005 (init_fileio_once):
6006 * lisp.h (init_fileio_once): Remove.
6007 * emacs.c (main): Don't call init_fileio_once.
6008
6009 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6010
6011 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6012
6013 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6014
6015 * doprnt.c (doprnt): Fix overflow check.
6016
6017 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6018
6019 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6020
6021 * xterm.h (x_wait_for_event): Declare it.
6022
6023 * xterm.c (pending_event_wait): New variable.
6024 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6025 see pending_event_wait.eventtype.
6026 (handle_one_xevent): Don't change gravity when parent changes.
6027 (x_new_font): Call change_frame_size with new rows/columns before we
6028 try to resize the frame.
6029 (x_wait_for_event): New function.
6030 (x_set_window_size_1): Don't change gravity unless change_gravity
6031 is set.
6032 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6033 don't change frame size, instead wait for the ConfigureNotify.
6034 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6035 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6036 (x_initialize): Initialize pending_event_wait.
6037
6038 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6039 size.
6040
6041 * widget.c (EmacsFrameSetValues): Add comment.
6042 (EmacsFrameSetCharSize): Just call x_set_window_size.
6043
6044 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6045 x_wait_for_event.
6046 (flush_and_sync): Remove again.
6047 (xg_get_font_name): Suggest monospace if no previous font is known.
6048
6049 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6050
6051 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
6052 8th bit, since that only made sense in the ASCII world (bug#4751).
6053
6054 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6055
6056 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6057 processing pending events when event is filtered for input method.
6058 (Bug#3681)
6059
6060 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6061
6062 * fns.c: Add #endif accidentally removed in previous change.
6063
6064 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6065
6066 * fns.c: Remove code for unsupported system: MAC_OS.
6067 * image.c: Likewise. Include setjmp.h.
6068
6069 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6070
6071 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6072 pixel -1 (bug #4742).
6073
6074 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6075
6076 * process.c (create_pty): Remove conditionals for no longer
6077 supported systems: UNIPLUS and RTU.
6078
6079 * xterm.c:
6080 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6081
6082 * alloc.c: Do not define struct catchtag.
6083 * eval.c: Move struct catchtag definition ...
6084 * lisp.h: ... here.
6085
6086 * image.c: Move png.h #include earlier to avoid warnings.
6087
6088 * xterm.c:
6089 * xsmfns.c:
6090 * xselect.c:
6091 * xrdb.c:
6092 * xmenu.c:
6093 * xftfont.c:
6094 * xfont.c:
6095 * xfns.c:
6096 * xfaces.c:
6097 * xdisp.c:
6098 * window.c:
6099 * widget.c:
6100 * w32xfns.c:
6101 * w32uniscribe.c:
6102 * w32term.c:
6103 * w32select.c:
6104 * w32reg.c:
6105 * w32proc.c:
6106 * w32menu.c:
6107 * w32inevt.c:
6108 * w32heap.c:
6109 * w32font.c:
6110 * w32fns.c:
6111 * w32console.c:
6112 * w32.c:
6113 * w16select.c:
6114 * vm-limit.c:
6115 * unexsol.c:
6116 * unexec.c:
6117 * unexcw.c:
6118 * unexaix.c:
6119 * undo.c:
6120 * tparam.c:
6121 * textprop.c:
6122 * terminfo.c:
6123 * terminal.c:
6124 * termcap.c:
6125 * term.c:
6126 * syntax.c:
6127 * sound.c:
6128 * sheap.c:
6129 * search.c:
6130 * scroll.c:
6131 * region-cache.c:
6132 * regex.c:
6133 * ralloc.c:
6134 * process.c:
6135 * print.c:
6136 * nsterm.m:
6137 * nsselect.m:
6138 * nsmenu.m:
6139 * nsimage.m:
6140 * nsfont.m:
6141 * nsfns.m:
6142 * msdos.c:
6143 * minibuf.c:
6144 * menu.c:
6145 * marker.c:
6146 * macros.c:
6147 * keymap.c:
6148 * keyboard.c:
6149 * intervals.c:
6150 * insdel.c:
6151 * indent.c:
6152 * gtkutil.c:
6153 * ftxfont.c:
6154 * ftfont.c:
6155 * fringe.c:
6156 * frame.c:
6157 * fontset.c:
6158 * font.c:
6159 * fns.c:
6160 * floatfns.c:
6161 * filelock.c:
6162 * fileio.c:
6163 * emacs.c:
6164 * editfns.c:
6165 * dosfns.c:
6166 * doprnt.c:
6167 * doc.c:
6168 * dispnew.c:
6169 * dired.c:
6170 * dbusbind.c:
6171 * data.c:
6172 * composite.c:
6173 * coding.c:
6174 * cmds.c:
6175 * cm.c:
6176 * chartab.c:
6177 * charset.c:
6178 * character.c:
6179 * ccl.c:
6180 * category.c:
6181 * casetab.c:
6182 * casefiddle.c:
6183 * callproc.c:
6184 * callint.c:
6185 * bytecode.c:
6186 * buffer.c:
6187 * atimer.c: Include setjmp.h. (Bug#4643)
6188
6189 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6190
6191 Remove leftover table unibyte_to_multibyte_table.
6192 * character.c (unibyte_to_multibyte_table): Remove.
6193 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6194 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6195 * character.h (UNIBYTE_TO_CHAR): New macro.
6196 (MAKE_CHAR_MULTIBYTE): Use it.
6197 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6198 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6199 (message_dolog, set_message_1):
6200 * search.c (Freplace_match):
6201 * editfns.c (Fcompare_buffer_substrings):
6202 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6203 (concat):
6204 * insdel.c (copy_text, count_size_as_multibyte):
6205 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6206 * term.c (produce_glyphs):
6207 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6208 * regex.c (RE_CHAR_TO_MULTIBYTE):
6209 * cmds.c (internal_self_insert):
6210 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6211
6212 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6213
6214 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6215
6216 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6217
6218 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6219
6220 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6221
6222 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6223
6224 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6225 still needed under Tiger.
6226
6227 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6228
6229 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6230 __Apple__.
6231
6232 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6233
6234 2009-10-15 Kenichi Handa <handa@m17n.org>
6235
6236 * print.c (print_object): Escape a symbol like "2E10" too.
6237
6238 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6239
6240 Cleanups and changes for 64-bit compile under Snow Leopard.
6241 Based on suggestions by Erik Charlebois.
6242
6243 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6244
6245 * nsfont.m (ns_char_width): Replace deprecated call.
6246 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6247 cast argument.
6248 (nsfont_open): Use ns_char_width() everywhere.
6249 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6250
6251 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6252
6253 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6254 where appropriate.
6255
6256 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6257 where appropriate.
6258 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6259 Use stringWithUTF8String.
6260 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6261
6262 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6263 Add formal protocol mention to inheritance.
6264 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6265
6266 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6267 Fix printf format.
6268 (ns_query_color): Use CGFloat where appropriate.
6269 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6270 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6271 argument.
6272
6273 * config.in (NS_HAVE_NSINTEGER): Drop.
6274
6275 * dbusbind.c (dbus-method-return-internal)
6276 (dbus-method-error-internal): Use long format in printf, and cast
6277 argument.
6278
6279 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6280 in printf, and cast argument.
6281
6282 * process.c (list_processes_1): Use long format in printf, and
6283 cast argument.
6284
6285 2009-10-11 Glenn Morris <rgm@gnu.org>
6286
6287 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6288
6289 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6290
6291 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6292 menu bar with a small width so it doesn't enlarge the frame.
6293
6294 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6295
6296 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6297
6298 2009-10-06 Glenn Morris <rgm@gnu.org>
6299
6300 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6301 SOME_MACHINE_LISP (this enters indirectly via DOC).
6302
6303 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6304
6305 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6306
6307 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6308
6309 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6310 Doc fix.
6311
6312 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6313
6314 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6315
6316 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6317
6318 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6319 used anymore outside fileio.c.
6320
6321 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6322
6323 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6324
6325 * lisp.h (Qdelete_directory_internal):
6326 Declare, instead of Qdelete_directory.
6327
6328 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6329
6330 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6331
6332 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6333
6334 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6335
6336 * fileio.c (Fdelete_directory_internal): Rename from
6337 Fdelete_directory. It is not a command anymore. It has no file
6338 name handler.
6339
6340 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6341
6342 * xdisp.c (get_next_display_element): Use an enum in last change.
6343
6344 2009-09-28 Kenichi Handa <handa@m17n.org>
6345
6346 * xdisp.c (get_next_display_element): Pay attention to
6347 unibyte_display_via_language_environment in handling
6348 Vnobreak_char_display.
6349
6350 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6351
6352 * nsterm.h (ns_app_name): New extern variable.
6353
6354 * nsterm.m (ns_app_name): New variable.
6355 (ns_term_init): Set and use it.
6356 (ns_term_shutdown): Use it.
6357
6358 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6359 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6360
6361 * nsfns.m (ns_set_name_iconic, ns_set_name)
6362 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6363 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6364
6365 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6366 Remove double-casting in client_data comparison.
6367
6368 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6369
6370 * keyboard.c (make_lispy_event): Remember last wheel direction.
6371 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6372
6373 2009-09-26 Glenn Morris <rgm@gnu.org>
6374
6375 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6376 internal.elc. Add term/pc-win.elc.
6377 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6378 term/x-win.elc.
6379 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6380 term/w32-win.elc.
6381 (NS_SUPPORT): New.
6382 (lisp): Add NS_SUPPORT.
6383 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6384
6385 2009-09-25 David Reitter <david.reitter@gmail.com>
6386
6387 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6388 on Mac OS X 10.6+ (bug#4513).
6389
6390 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6391
6392 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6393 some parts of Emacs code (like font selection) don't grok them.
6394 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6395
6396 2009-09-24 Andreas Schwab <schwab@redhat.com>
6397
6398 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6399
6400 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6401
6402 * dired.c (Fdirectory_files): Fix typo in docstring.
6403
6404 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6405
6406 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6407 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6408 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6409 under GNUstep.
6410 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6411
6412 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6413 glyph advancement.
6414
6415 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6416
6417 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6418 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6419
6420 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6421 deleted (bug #4492).
6422
6423 * nsfont.m (Vns_reg_to_script): New lisp variable.
6424 (syms_of_nsfont): Declare it.
6425 (ns_registry_to_script): New function.
6426 (ns_get_req_script): Call it.
6427 (ns_findfonts): Don't give up on non-unicode registry.
6428
6429 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6430
6431 2009-09-20 Tom Tromey <tromey@redhat.com>
6432
6433 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6434 batch mode (bug#4228).
6435
6436 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6437
6438 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6439 carefully. (Bug #4339)
6440
6441 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6442
6443 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6444
6445 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6446
6447 * emacs.c (inhibit_x_resources): Update doc string for NS.
6448 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6449 legacy code for -NXHost. Fix error printf in daemon case.
6450
6451 * nsterm.h (ns_no_defaults): Remove.
6452
6453 * nsterm.m (ns_no_defaults): Remove.
6454 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6455 (ns_use_qd_smoothing): Remove legacy variable.
6456 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6457 don't update the NSWindow itself.
6458 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6459 state detection and store user rect ourselves. (Bug #3581)
6460
6461 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6462 ns_use_qd_smoothing.
6463
6464 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6465 platform versions. Drop support for emacs-20-style face specs.
6466 (x-close-connection): Drop PSFlush() under OS X.
6467 (x-focus-frame): Activate the app first. (Bug #4180)
6468
6469 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6470
6471 * emacs.c (inhibit_x_resources): New variable.
6472 (main) [HAVE_NS]: Don't process --quick command line option.
6473 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6474
6475 * lisp.h (inhibit_x_resources): Declare it extern.
6476
6477 * w32reg.c (x_get_string_resource):
6478 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6479
6480 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6481
6482 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6483 Add lisp/term/internal.elc.
6484
6485 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6486
6487 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6488 (bug#4461).
6489
6490 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6491
6492 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6493
6494 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6495 (OBJECTS_MACHINE): Remove, unused.
6496
6497 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * frame.c (x_get_resource_string): Remove unused.
6500
6501 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6502
6503 * xterm.c (x_new_font): Call change_frame_size before calling
6504 x_set_window_size, in case frame size won't change.
6505
6506 * frame.c (x_set_font): Remove dead code.
6507
6508 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6509
6510 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6511
6512 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6513
6514 * lread.c (Fload): Don't output a message after loading an obsolete
6515 package any more (done in Lisp now).
6516
6517 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6520
6521 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6522
6523 * keymap.c (Fwhere_is_internal): Use nconc2.
6524
6525 2009-09-11 Alan Mackenzie <acm@muc.de>
6526
6527 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6528 batch mode.
6529
6530 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6531
6532 * xdisp.c (display_mode_element): Detect cycles.
6533
6534 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6535
6536 * keymap.c (where_is_internal): Don't erroneously return nil right after
6537 filling the cache.
6538 (where_is_internal_1): Fix up typo.
6539
6540 2009-09-11 Glenn Morris <rgm@gnu.org>
6541
6542 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6543 share a common doc-string.
6544
6545 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6546
6547 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6548 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6549
6550 * keymap.c (QCadvertised_binding): New constant.
6551 (syms_of_keymap): Initialize it.
6552 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6553 if applicable.
6554
6555 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6556
6557 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6558 (parse_menu_item): Streamline since bindings are recomputed all the
6559 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6560 more and don't support lmenu's menu-alias any more either.
6561
6562 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6563 (where_is_internal): Strip it down to only traverse the keymaps.
6564 Move the cache handling from Fwhere_is_internal to here.
6565 (Fwhere_is_internal): Move the handling of remapping and the choice of
6566 the best binding from where_is_internal to here.
6567 Unify the cached/noncached paths, so remapping is also handled
6568 correctly when the cache is used, and so the cache can be used to
6569 speed up remap-handling when applicable.
6570 Give preference to non-remapped bindings.
6571 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6572 non-remapped bindings.
6573 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6574 command remapping.
6575
6576 * xdisp.c (display_mode_element): Move list length limit from 50 to
6577 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6578
6579 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6580
6581 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6582
6583 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6584
6585 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6586 (Bug#4334)
6587
6588 * keymap.c (where_is_internal): Filter out shadowed remappings.
6589 Assume that where_is_internal returns unshadowed bindings to simplify
6590 the code and get rid of the gotos. Use ASIZE.
6591
6592 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6593
6594 * xterm.c (x_focus_changed): If we get a focusout and pointer
6595 is invisible, make it visible.
6596
6597 * xterm.h: Remove condition for declaration of
6598 x_*_window_to_frame.
6599
6600 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6601
6602 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6603 initial terminal as well.
6604
6605 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6606
6607 * xterm.h: Rename x_non_menubar_window_to_frame to
6608 x_menubar_window_to_frame.
6609
6610 * xterm.c: Remove declarations also in xterm.h.
6611 (XTmouse_position): Do not return valid positions
6612 for clicks in the menubar and the toolbar for Gtk+.
6613
6614 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6615 if the widget for the event has the same top level as a frame,
6616 return the frame.
6617 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6618 internal windows, bug #4122.
6619 (x_non_menubar_window_to_frame): Remove.
6620
6621 2009-09-02 Glenn Morris <rgm@gnu.org>
6622
6623 * buffer.c (default-major-mode): Move most of the doc from here...
6624 (major-mode): ... to here.
6625
6626 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
6627
6628 * process.c (wait_reading_process_output): Keep the descriptor
6629 when pty is used by a non-child process, e.g., in I/O buffer of
6630 GDB this allows inferior to be restarted.
6631
6632 2009-08-29 Eli Zaretskii <eliz@gnu.org>
6633
6634 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6635 both branches into one.
6636
6637 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6638
6639 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6640 (main): Use enable-multibyte-characters rather than
6641 default-enable-multibyte-characters. Output a warning message when
6642 running a unibyte session.
6643
6644 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6645
6646 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6647 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6648 (copy_data_segment): Also copy __program_vars section.
6649 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6650 (dump_it) [LC_DYLD_INFO]: Use it.
6651
6652 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6653
6654 2009-08-28 Eli Zaretskii <eliz@gnu.org>
6655
6656 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6657 $(SRC)/buildobj.h.
6658 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6659 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6660 $(SRC)/buildobj.h.
6661 (clean): Add buildobj.h.
6662
6663 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6664
6665 * print.c (print_object): Set escapeflag to 1 when printing
6666 hashtable keys and values.
6667
6668 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6669
6670 * lread.c (read_integer): Use doubles (and potentially return a float
6671 number) as we do in string-to-number.
6672 (read1): Use strtol to read integers, signal errors on strtol's
6673 overflow and use floats if strtol's output is too large for
6674 Elisp integers.
6675
6676 2009-08-27 Eli Zaretskii <eliz@gnu.org>
6677
6678 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6679 (make-buildobj-SH): Fix last change.
6680 (SRC): Move to before where it's first used.
6681
6682 2009-08-27 Kenichi Handa <handa@m17n.org>
6683
6684 * process.c (send_process): Use encode_coding_object instead of
6685 encode_coding_string to perform eol-conversion even if the string
6686 is unibyte.
6687
6688 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6689 character.
6690
6691 * cmds.c (Fself_insert_command): Avoid unnecessay
6692 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
6693
6694 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6695
6696 * callproc.c (Fcall_process): Remove always true #if.
6697
6698 * lisp.h: Replace #if 0 code for checking with text pointing to
6699 the --enable-checking configure flag.
6700
6701 * emacs.c (main): Mention the --enable-profiling configure flag
6702 instead of using CFLAGS.
6703
6704 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
6705
6706 * Makefile.in (buildobj.h): New target.
6707 (doc.o): Depend on it.
6708 (temacs${EXEEXT}): Don't generate buildobj.lst.
6709 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6710 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6711 ($(BLD)/doc.$(O)): Depend on it.
6712 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6713 provided by Eli Zaretskii.)
6714 ($(TEMACS)): Don't generate buildobj.lst.
6715 * doc.c: Include buildobj.h.
6716 (buildobj): New static variable.
6717 (Fsnarf_documentation): Use it, instead of opening and reading
6718 buildobj.lst.
6719
6720 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
6721
6722 * dbusbind.c (Fdbus_call_method)
6723 (Fdbus_call_method_asynchronously): Use English numeric format for
6724 timeout values in doc string.
6725
6726 2009-08-25 Kenichi Handa <handa@m17n.org>
6727
6728 * alloc.c (mark_char_table): New function.
6729 (mark_object): Use mark_char_table for a char-table.
6730
6731 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6732 (CHAR_TABLE_REF): Use it.
6733
6734 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
6735
6736 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6737 before invoking the newly build emacs to check for load-path
6738 shadowing.
6739
6740 2009-08-22 Glenn Morris <rgm@gnu.org>
6741
6742 * Makefile.in (bootstrap_exe): New variable.
6743 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6744 Use ${bootstrap_exe}.
6745
6746 2009-08-22 Eli Zaretskii <eliz@gnu.org>
6747
6748 * coding.h (encode_coding_string): Don't encode unibyte strings.
6749 (Bug#4047)
6750
6751 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
6752
6753 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6754
6755 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6756 intended as hotfix only.
6757 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6758
6759 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6760
6761 * nsterm.m (ns_get_color): Update documentation properly for last
6762 change, and clean up loose ends in the code left by it. Fix
6763 longstanding bug with 16-bit hex parsing, and add support for
6764 yet another X11 format (rgb:r/g/b) for compatibility.
6765 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6766 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6767
6768 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6769
6770 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6771
6772 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6773
6774 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6775 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6776 (xd_initialize, xd_pending_messages): Check, whether
6777 $DBUS_SESSION_BUS_ADDRESS is set.
6778
6779 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6780
6781 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6782
6783 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6784
6785 2009-08-20 Glenn Morris <rgm@gnu.org>
6786
6787 * emacs.c (system-type): Doc fix.
6788
6789 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6790
6791 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6792 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6793
6794 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6795
6796 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6797 New functions.
6798 (xd_initialize): Revert change from 2009-08-16.
6799
6800 2009-08-18 Kenichi Handa <handa@m17n.org>
6801
6802 * fontset.c (Ffontset_font): If a nil element is found in a
6803 font-group vector, return nil.
6804
6805 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6806
6807 * process.c (status_notify): Don't perform redisplay.
6808 (Fdelete_process, list_processes_1, process_send_signal):
6809 Expliticly perform redisplay.
6810 (wait_reading_process_output): Always check process status, but
6811 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6812
6813 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6814
6815 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6816 (XFLOAT_INIT): New macro for storing a float value.
6817 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6818 * fns.c (sxhash): Copy out the value of a float in order to
6819 examine its bytes.
6820 * dbusbind.c (xd_append_arg): Likewise.
6821
6822 * emacs.c (main): Don't call syms_of_data twice.
6823
6824 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6825
6826 * dbusbind.c (xd_initialize): Add connection file descriptor to
6827 input_wait_mask, in order to let select() detect, whether a new
6828 message has been arrived.
6829 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6830
6831 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6832
6833 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6834 New functions.
6835
6836 * lisp.h (xd_pending_messages): Declare.
6837
6838 * keyboard.c (readable_events): Call xd_pending_messages.
6839
6840 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6841
6842 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6843
6844 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6845
6846 * buffer.c (set_buffer_internal_1)
6847 (swap_out_buffer_local_variables): Check for unbound local
6848 variables (Bug#4138).
6849
6850 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6851
6852 * process.c (create_pty): Fix last change.
6853
6854 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6855
6856 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6857 (xbm_load_image): Caller changed.
6858 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6859
6860 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6861
6862 * process.c (create_pty): New function.
6863 (Fstart_process): Use it to allow Emacs to just associate a pty
6864 with the buffer. See associated change in gdb-mi.el.
6865 (list_processes_1): Deal with no program name.
6866 (start_process_unwind): Use pid == -2 to mean no process.
6867
6868 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6869
6870 * cmds.c (nonundocount): New global variable.
6871 (keys_of_cmds): Initialize it.
6872 (Fself_insert_command): Use it to combine upto 20 sequential chars
6873 into a single undo entry, just like the Qself_insert_command code in
6874 keyboard.c does.
6875 Call frame_make_pointer_invisible, also like the Qself_insert_command
6876 code in keyboard.c does.
6877 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6878 than its own local replacement for it.
6879
6880 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
6881
6882 * fns.c (concat): Don't re-set string length to its current value.
6883
6884 * coding.h (decode_coding_string, encode_coding_string):
6885 Use SBYTES macro.
6886
6887 * doprnt.c (doprnt_lisp): Delete unused function.
6888 (doprnt): Merge with doprnt1, discarding lispstrings code.
6889 * lisp.h (doprnt_lisp): Don't declare.
6890
6891 2009-08-07 Juri Linkov <juri@jurta.org>
6892
6893 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6894
6895 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6896
6897 * print.c (syms_of_print): Undo previous change.
6898
6899 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6900
6901 * lread.c (read1, syms_of_lread): Read hashtables back from the
6902 readable format.
6903
6904 * print.c (print_preprocess, print_object): Print hashtables fully
6905 and readably.
6906 (syms_of_print): Provide 'hashtable-print-readable.
6907
6908 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6909
6910 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6911 no family set.
6912 (nsfont_open): Handle case when entity has no family.
6913
6914 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6915
6916 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6917 element, not a list, for match case.
6918
6919 2009-07-28 Kenichi Handa <handa@m17n.org>
6920
6921 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6922 rigidly.
6923
6924 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6925 font_parse_xlfd. Check font properties more rigidly.
6926
6927 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6928
6929 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6930 bsd-common.h.
6931
6932 2009-07-27 Kenichi Handa <handa@m17n.org>
6933
6934 * xfaces.c (face_with_height): Call font_clear_prop.
6935
6936 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
6937
6938 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6939
6940 * xterm.c (x_term_init): Use Qx.
6941
6942 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6943
6944 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6945 (ns_get_color): Revert 2009-07-16 change.
6946
6947 2009-07-25 Eli Zaretskii <eliz@gnu.org>
6948
6949 * lread.c (syms_of_lread) <force_load_messages>: New variable.
6950 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6951
6952 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
6953
6954 * coding.h (decode_coding_string, encode_coding_string):
6955 Use SCHARS macro.
6956
6957 * lread.c: Rewrite 2009-07-21 changes.
6958 (load_depth): Delete.
6959 (Qload_in_progress): New variable.
6960 (load_unwind): Don't reference load_depth or load_in_progress.
6961 (Fload): Likewise; specbind Qload_in_progress instead.
6962 (init_lread): Don't initialize load_depth.
6963 (syms_of_lread): Initialize and protect Qload_in_progress.
6964
6965 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6966
6967 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6968
6969 2009-07-23 Yavor Doganov <yavor@gnu.org>
6970
6971 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6972
6973 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6974
6975 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6976 Bugs 3792, 3720, 2402.
6977 (ns_lookup_indexed_color): Check for bad index.
6978 (ns_index_color): Init unused slot to 0.
6979 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6980 Bug 3714, possibly 3082.
6981
6982 2009-07-22 Jason Rumney <jasonr@gnu.org>
6983
6984 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6985 Position IME window at cursor (Bug#2570).
6986 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6987 (globals_of_w32fns): Dynamically load functions required above.
6988
6989 * w32term.c (w32_draw_window_cursor): Send message to reposition
6990 any IME window.
6991
6992 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6993
6994 * fileio.c: Revert 2009-07-16 changes.
6995 (Vauto_save_include_big_deletions): New variable.
6996 (Fdo_auto_save): Disable auto-save only if
6997 auto-save-include-big-deletions is nil.
6998
6999 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
7000
7001 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7002 the overflowed pixels into account (Bug#3879).
7003
7004 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
7005
7006 * lread.c (load_depth): New variable.
7007 (Fload, load_unwind, init_lread): Set it to the load recursion
7008 depth; set load_in_progress as a simple boolean based on the
7009 current load_depth. (Bug#3892)
7010
7011 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7012
7013 * nsfont.m (ns_has_attribute): Remove.
7014 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7015
7016 2009-07-18 Juri Linkov <juri@jurta.org>
7017
7018 * process.c (Fset_process_query_on_exit_flag): Mention killing
7019 a buffer in docstring.
7020
7021 2009-07-17 Kenichi Handa <handa@m17n.org>
7022
7023 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7024
7025 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7026
7027 * nsfns.m (Fns_set_alpha): Remove function.
7028 (syms_of_nsfns): Don't defsubr it.
7029
7030 * nsterm.m (ns_get_color): Remove incompatible color formats.
7031 (ns_color_to_lisp): Generate #rrggbb color format string.
7032
7033 2009-07-16 Richard Stallman <rms@gnu.org>
7034
7035 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7036 (Fset_buffer_auto_saved): Handle save_length = -2.
7037
7038 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
7039
7040 * xterm.c (Qx_gtk_map_stock): New var.
7041
7042 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7043 of calling intern each time.
7044
7045 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7046
7047 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7048 does tiling.
7049
7050 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7051
7052 2009-07-14 Kenichi Handa <handa@m17n.org>
7053
7054 * font.c (font_vconcat_entity_vectors): New function.
7055 (struct font_sort_data): New member font_driver_preference.
7056 (font_compare): Check font_driver_preference.
7057 (font_sort_entities): The format of the first argument changed.
7058 (font_delete_unmatched): Likewise.
7059 (font_list_entities): The return type changed.
7060 (font_select_entity): The format of the second argument changed.
7061 (font_find_for_lface): Adjuste for the above changes.
7062 Don't suppress the checking of C even if the repertory supports it.
7063 (Flist_fonts): Adjust for the above changes.
7064
7065 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7066 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7067 Reject a font who has adstyle property that is different from a
7068 langname derived from registry property.
7069 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7070
7071 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7072
7073 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7074 local copy of dirfilename.
7075
7076 2009-07-13 Kenichi Handa <handa@m17n.org>
7077
7078 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7079 against max_char.
7080
7081 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7082 calling XSYMBOL (sym).
7083
7084 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7085
7086 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7087 New function.
7088 (directory_files_internal) [WINDOWSNT]:
7089 Bind w32-get-true-file-attributes to either t or nil, depending whether
7090 the filesystem of the directory is fast or slow.
7091
7092 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7093 file name.
7094 (is_slow_fs): New function.
7095 (stat): Use it to determine whether to issue more system calls to
7096 get accurate file attributes, when w32-get-true-file-attributes is
7097 `local'.
7098
7099 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7100
7101 * xfns.c (Fx_select_font): Remember last font selected in
7102 x_last_font_name and use that the next time. Also try the frame
7103 parameter font-parameter as default to the font dialog.
7104
7105 2009-07-10 Kenichi Handa <handa@m17n.org>
7106
7107 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7108
7109 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7110
7111 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7112
7113 * w32.c (stat): Treat UNC file names as residing on remote
7114 drives. (Bug#3542)
7115
7116 2009-07-09 Kenichi Handa <handa@m17n.org>
7117
7118 * fontset.c (fontset_find_font): Fix previous change.
7119
7120 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7121
7122 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7123 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7124 error flag.
7125
7126 2009-07-08 Kenichi Handa <handa@m17n.org>
7127
7128 * fontset.c (fontset_find_font): Fix the logic of handling
7129 charset_matched.
7130 (font_for_char): Delete unused var.
7131 (generate_ascii_font_name): Delete it.
7132
7133 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7134
7135 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7136 (encode_coding_sjis): Fix the code range check.
7137
7138 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7139
7140 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7141 (Fexpand_file_name): Copy string data properly (Bug#3772).
7142
7143 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7144
7145 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7146 first MapNotify.
7147
7148 2009-07-07 Kenichi Handa <handa@m17n.org>
7149
7150 * character.h (unibyte_has_multibyte_table): Delete extern.
7151 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7152
7153 * charset.c (Fset_charset_priority): Update charset_unibyte.
7154 (syms_of_charset): Initialize charset_unibyte.
7155
7156 * character.c (unibyte_has_multibyte_table): Delete it.
7157 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7158 charset_unibyte.
7159 (multibyte_char_to_unibyte_safe): Likewise.
7160 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7161
7162 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7163 (x_produce_glyphs): Likewise.
7164
7165 * .gdbinit (xcharset): Fix the treating $arg0.
7166
7167 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7168
7169 Emulation of `getloadavg' on MS-Windows.
7170 * w32.c: Include float.h.
7171 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7172 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7173 (get_native_system_info, get_system_times): New functions.
7174 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7175 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7176 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7177 g_b_init_get_system_times, and num_of_processors.
7178
7179 2009-07-03 Jason Rumney <jasonr@gnu.org>
7180
7181 * w32term.c (w32_initialize): Use standard types.
7182
7183 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7184
7185 * dired.c (Ffile_attributes): Decode user and group names by the
7186 locale's encoding. (Bug#3443)
7187
7188 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7189
7190 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7191 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7192
7193 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7194
7195 * term.c (init_tty): Remove spurious #ifdef.
7196
7197 * m/mips.h: Mention this file is also used for netbsd.
7198 * m/pmax.h: Remove file.
7199
7200 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7201
7202 * xterm.h (struct x_display_info): Add invisible_cursor.
7203 (struct x_output): Add current_cursor.
7204
7205 * xterm.c (XTtoggle_invisible_pointer): New function.
7206 (x_define_frame_cursor): Don't define cursor if invisible or the
7207 same as before. Set current_cursor.
7208 (x_create_terminal): Set toggle_invisible_pointer_hook.
7209
7210 * xfns.c (make_invisible_cursor): New function.
7211 (x_set_mouse_color): Call make_invisible_cursor.
7212 Set current_cursor.
7213 (x_window): Set current_cursor.
7214
7215 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7216
7217 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7218 inserting a character.
7219 (read_avail_input): Call frame_make_pointer_visible.
7220
7221 * frame.c (Vmake_pointer_invisible): New variable.
7222 (frame_make_pointer_invisible, frame_make_pointer_visible):
7223 New functions.
7224 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7225
7226 * frame.h: Declare frame_make_pointer_invisible and
7227 frame_make_pointer_visible.
7228 (struct frame): Add pointer_invisible.
7229
7230 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7231
7232 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7233 frame isn't visible.
7234 (xg_frame_resized): If width/height is -1, get size of window
7235 from X server.
7236
7237 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7238 for MapNotify.
7239
7240 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7241 here or call change_frame_size. Just call flush_and_sync.
7242 (flush_and_sync): Reintroduce.
7243
7244 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7245
7246 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7247
7248 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7249 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7250
7251 * frame.h: Declare Qsticky.
7252
7253 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7254
7255 * nsfns.m (ns_frame_parm_handlers): Ditto.
7256
7257 * frame.c: Declare Qsticky.
7258 (frame_parms): Add sticky.
7259
7260 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7261
7262 * xterm.h: Declare x_set_sticky.
7263
7264 * xterm.c (x_set_sticky): New function.
7265
7266 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7267 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7268 xg_tool_bar_proxy_help_callback.
7269
7270 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7271
7272 * frame.c: Qmaximized is new.
7273 (x_set_frame_parameters): Do not handle fullscreen specially.
7274 Only set width and height if explicitly set.
7275 (x_set_fullscreen): Handle Qmaximized.
7276 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7277 (syms_of_frame): Initialize Qmaximized.
7278
7279 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7280 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7281
7282 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7283 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7284 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7285 set gravity to NorthWestGravity when USE_GTK.
7286 (set_wm_state): New function.
7287 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7288 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7289 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7290 or the case when no window manager is running. That means remove calls
7291 to x_real_positions and x_fullscreen_adjust.
7292
7293 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7294 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7295 flush_and_sync.
7296 (xg_height_changed): New function.
7297 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7298 and gtk_window_set_policy. Set frame gravity after parsing the
7299 geometry string.
7300 (xg_update_frame_menubar, free_frame_menubar)
7301 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7302 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7303 Remove calls to xg_frame_set_char_size.
7304
7305 2009-07-01 Kenichi Handa <handa@m17n.org>
7306
7307 * keyboard.c (decode_keyboard_code): New function.
7308 (tty_read_avail_input): Decode the input bytes if necessary.
7309
7310 * coding.c (setup_coding_system):
7311 Initialize coding->carryover_bytes to 0.
7312 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7313 use Qno_conversion.
7314
7315 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7316
7317 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7318
7319 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7322
7323 2009-06-30 Jason Rumney <jasonr@gnu.org>
7324
7325 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7326 is already loaded.
7327 Set user model ID if supported (bug#1849).
7328
7329 2009-06-29 Jim Meyering <meyering@redhat.com>
7330
7331 Remove useless if-before-xfree test.
7332 * nsfont.m (nsfont_close): Remove useless test.
7333 * term.c (delete_tty): Likewise.
7334 * w32.c (system_process_attributes): Likewise.
7335 * w32font.c (w32font_close): Likewise.
7336 * xfaces.c (x_free_gc): Likewise.
7337 * xselect.c (buffer): Likewise.
7338
7339 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7340
7341 * process.c (send_process): Keep decoded string in a local
7342 variable and protect it from GC. (Bug#3521)
7343
7344 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7345
7346 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7347 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7348
7349 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7350
7351 * xdisp.c (start_display, handle_face_prop)
7352 (move_it_vertically_backward, cursor_row_fully_visible_p)
7353 (redisplay_window, try_window_id, produce_image_glyph):
7354 Delete some #ifdef-ed out code chunks that are now obsolete.
7355
7356 * xterm.c (x_update_window_begin, x_new_focus_frame)
7357 (x_scroll_bar_handle_click, handle_one_xevent)
7358 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7359 (x_make_frame_visible, x_make_frame_invisible)
7360 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7361 code chunks that are now obsolete.
7362
7363 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7364
7365 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7366 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7367 for hours, when optimzation is enabled.
7368 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7369 (xd_read_message): Make them static.
7370
7371 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7372
7373 * term.c (turn_on_face): Allow simultaneously bold and dim
7374 terminal faces (Bug#3530).
7375
7376 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7377
7378 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7379
7380 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7381 truncation glyphs (Bug#3686).
7382
7383 2009-06-27 Glenn Morris <rgm@gnu.org>
7384
7385 * m/pmax.h: Restore file, with only netbsd portions.
7386
7387 2009-06-26 David Reitter <david.reitter@gmail.com>
7388
7389 * nsterm.m (keydown): Avoid infinite loop.
7390
7391 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7392
7393 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7394 the arg FORCE_SYMBOL.
7395
7396 2009-06-25 Kenichi Handa <handa@m17n.org>
7397
7398 * fontset.c (fontset_find_font): When a usable rfont_def is found
7399 in a fallback font-group, make it the first element of the group.
7400
7401 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7402
7403 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7404
7405 2009-06-24 Kenichi Handa <handa@m17n.org>
7406
7407 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7408 set for C.
7409 (fontset_font): Record the availability of a font for C both in
7410 the realized fontsets of the current one and the default one.
7411
7412 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7413
7414 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7415 conditional, it is always defined on AIX.
7416
7417 2009-06-23 Miles Bader <miles@gnu.org>
7418
7419 * window.c (Vrecenter_redisplay): New variable.
7420 (syms_of_window): Initialize it.
7421 (Qtty): New extern declaration.
7422 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7423
7424 2009-06-23 Jim Meyering <meyering@redhat.com>
7425
7426 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7427 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7428 pointer dereferences are guaranteed to be valid.
7429
7430 2009-06-23 Kenichi Handa <handa@m17n.org>
7431
7432 * emacs.c (main): Call init_font ().
7433
7434 * font.h (Vfont_log): Extern it.
7435 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7436
7437 * font.c (font_sort_entities, font_list_entities)
7438 (font_matching_entity, font_open_entity)
7439 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7440 (Vfont_log): Delete static.
7441 (font_log_env_checked): Delete this variable.
7442 (font_add_log): Don't check font_log_env_checked.
7443 (font_deferred_log): Check Vfont_log.
7444 (init_font): New function.
7445
7446 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7447
7448 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7449
7450 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7451
7452 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7453
7454 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7455 (face_for_char): Don't call font_deferred_log here.
7456 (font_for_char): Likewise.
7457
7458 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7459
7460 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7461 rather than its background_width for drawing the overline and
7462 underline (Bug#489).
7463
7464 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7465 rather than its background_width for drawing the overline and
7466 underline (Bug#489).
7467 (xg_default_icon_file): New variable.
7468 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7469 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7470
7471 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7472 (load_overlay_strings): Remove externs.
7473 (fast_find_position): Function deleted.
7474 (mouse_face_from_buffer_pos): New function, based on
7475 fast_find_position. Correctly handle before-strings,
7476 display-strings, and after-strings (Bug#1220).
7477 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7478
7479 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7482 (move_it_in_display_line_to, move_it_in_display_line_to)
7483 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7484
7485 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7486
7487 * Branch for 23.1.
7488
7489 2009-06-21 Jason Rumney <jasonr@gnu.org>
7490
7491 * w32term.c (keyboard_codepage): New static variable.
7492 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7493 (w32_read_socket) [WM_CHAR]: Use it to decode character
7494 input (bug#3237).
7495 (w32_initialize): Initialize it.
7496 (codepage_for_locale): New function.
7497
7498 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7499
7500 * process.c (status_message): Pass Faset index argument as a lisp
7501 object, so as to work with USE_LISP_UNION_TYPE.
7502
7503 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7504
7505 * coding.c (Ffind_coding_systems_region_internal):
7506 Cache checked characters.
7507
7508 2009-06-18 Kenichi Handa <handa@m17n.org>
7509
7510 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7511
7512 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7513
7514 * xdisp.c (redisplay_internal): Check that the frame is still
7515 live after redisplay of its windows.
7516 (redisplay_windows): Check that the window is still live.
7517
7518 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7519
7520 * coding.c (detect_coding_utf_16): Fix previous change.
7521
7522 2009-06-16 Kenichi Handa <handa@m17n.org>
7523
7524 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7525 UTF-16 by checking the dispersion of Eth and Oth bytes.
7526
7527 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7528
7529 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7530
7531 2009-06-15 Kenichi Handa <handa@m17n.org>
7532
7533 * process.c (status_message): Fix previous change. Be sure to
7534 decode a localized string.
7535
7536 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7537
7538 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7539 add comment explaining why.
7540
7541 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7542
7543 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7544
7545 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7546
7547 * nsfont.m (ns_attribute_value): Remove.
7548 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7549 (ns_has_attribute): Shrink the normal range.
7550 (ns_findfonts): Don't worry about requested spec in determining
7551 need for synthItal.
7552 (ns_get_covering_families): Retain scriptToFamilies.
7553
7554 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7555
7556 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7557
7558 2009-06-11 Kenichi Handa <handa@m17n.org>
7559
7560 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7561 overhang for the static composition case.
7562
7563 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7564
7565 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7566 overhang for the automatic composition case.
7567
7568 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7569 composition case.
7570
7571 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7572
7573 * xdisp.c (get_next_display_element): When handling wrap-prefix
7574 and line-prefix, treat \n as a control character (bug#3502).
7575
7576 2009-06-10 Kenichi Handa <handa@m17n.org>
7577
7578 * font.c (font_parse_family_registry): Fix for one-char foundry.
7579 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7580
7581 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7582
7583 * process.c (status_message): Fix handling of multibyte signal
7584 string (Bug#3499).
7585
7586 2009-06-09 Jim Meyering <meyering@redhat.com>
7587
7588 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7589 color name is missing.
7590
7591 2009-06-09 Kenichi Handa <handa@m17n.org>
7592
7593 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7594 FROM-CODE and TO-CODE are codepoints of CHARSET.
7595
7596 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7597
7598 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7599
7600 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7601
7602 Changes to support :script/:lang/:otf in NS font driver.
7603 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7604 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7605 indicate not part of font driver interface, and change callers.
7606 (ns_get_family): Remove pointless null check.
7607 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7608 ns_spec_to_descriptor, ns_descriptor_to_entity.
7609 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7610 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7611 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7612 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7613 (ns_get_req_script, ns_accumulate_script_ranges)
7614 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7615 New functions.
7616 (nsfont_list, nsfont_match): Use ns_findfonts.
7617 (nsfont_open): Use font descriptor instead of traits.
7618 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7619 (dump_glyphstring): Rename to ns_dump_glyphstring.
7620
7621 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7622
7623 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7624
7625 * fontset.c (fontset_from_font): Remove NS-specific code.
7626
7627 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
7628
7629 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7630 nonactive windows.
7631
7632 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
7633
7634 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7635
7636 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7637
7638 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7639
7640 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
7641
7642 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7643 account for the overflowing of newlines into the last glyph on the
7644 display line (Bug#3482).
7645
7646 2009-06-05 David Reitter <david.reitter@gmail.com>
7647
7648 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7649 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7650 Fns_selection_exists_p, Fns_selection_owner_p.
7651
7652 2009-06-03 Jason Rumney <jasonr@gnu.org>
7653
7654 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7655 available. (Bug#3379)
7656
7657 2009-05-29 Kenichi Handa <handa@m17n.org>
7658
7659 * coding.c (get_translation_table):
7660 Check Venable_character_translation.
7661
7662 2009-05-26 David Reitter <david.reitter@gmail.com>
7663
7664 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7665 (x_make_frame_visible): Move frame to front rather than calling
7666 ns_raise_frame().
7667 (keyDown:): Do not swallow events that aren't re-sent if frame
7668 isn't key window.
7669 (drawRect:): Do not set visibility/iconified flags because
7670 drawRect may be called by NSView even if the frame is hidden.
7671
7672 * nsfns.m (Fx_create_frame): Follow other ports in
7673 determining visibility; default to t. Ensure async_visible is set.
7674
7675 2009-05-23 Eli Zaretskii <eliz@gnu.org>
7676
7677 * dired.c (Ffile_attributes): Doc fix.
7678
7679 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
7680
7681 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7682
7683 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7684
7685 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7686 and xfont_scratch_props.
7687 (syms_of_xfont): Do it here instead.
7688 (xfont_find_ccl_program): Delete, unused.
7689 (xfont_open): Delete unused var `i'.
7690
7691 2009-05-21 Kenichi Handa <handa@m17n.org>
7692
7693 * fontset.c (Qlatin): Don't make it static.
7694
7695 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7696 New functions.
7697 (xfont_scripts_cache, xfont_scratch_props): New variables.
7698 (Qlatin, Vscalable_fonts_allowed): Extern it.
7699 (xfont_list_pattern): Argument changed. Callers changed.
7700 Check Vscalable_fonts_allowed. Check the support of a script.
7701 (xfont_list): Don't reject a font spec with :script property.
7702 (xfont_has_char): Fix setting of encoding.
7703 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7704 xfont_scratch_props.
7705
7706 2009-05-19 Kenichi Handa <handa@m17n.org>
7707
7708 * font.c (font_sort_entities): Rename from font_sort_entites.
7709 Callers changed.
7710
7711 2009-05-18 Kenichi Handa <handa@m17n.org>
7712
7713 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7714
7715 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7716
7717 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7718 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7719
7720 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7721
7722 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7723 (x_delete_terminal): Dissociate resource database from display and
7724 then call XrmDestroyDatabase before closing display.
7725
7726 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7727
7728 * nsterm.m (ns_read_socket): Remove unused variable.
7729 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7730 whether selected frame is viable before raising it (based on patch
7731 by David Reitter), and improve commentary.
7732 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7733
7734 2009-05-15 Kenichi Handa <handa@m17n.org>
7735
7736 * font.c (Ffont_spec): Check arguments.
7737
7738 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
7739
7740 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7741 weight when testing attributes (Bug#3282).
7742
7743 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7744
7745 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7746 what we expect to get in the next ConfigureNotify event.
7747
7748 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7749 before Xft one (Bug#1696).
7750
7751 2009-05-07 David Reitter <david.reitter@gmail.com>
7752
7753 * nsfns.m (Fx_display_planes): Compute bitplanes using
7754 NSBitsPerPixelFromDepth (Bug#3207).
7755
7756 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
7757
7758 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7759
7760 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
7761
7762 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7763
7764 2009-05-07 David Reitter <david.reitter@gmail.com>
7765
7766 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7767 Respect mouse face background.
7768
7769 2009-05-07 David Reitter <david.reitter@gmail.com>
7770
7771 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7772 Mouse movement/highlight: bracket drawing operations
7773 in ns_update_begin and ns_update_end.
7774
7775 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7776
7777 * nsfns.m (ns_get_screen): Rewrite.
7778 Don't presume selected-frame is of type `ns'.
7779
7780 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7781 all drivers.
7782
7783 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7784
7785 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7786
7787 * keyboard.h (add_user_signal): Fix typo in extern.
7788
7789 * lisp.h (add_user_signal): Remove extern.
7790
7791 * unexelf.c (unexec): Consider a section to precede the .bss section
7792 if its addresses overlap that of .bss.
7793 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7794 instead of dumping process.
7795
7796 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7797
7798 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7799
7800 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7801
7802 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7803
7804 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7805
7806 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7807 any statements.
7808
7809 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7810
7811 * process.c (read_process_output): Make sure the current buffer is
7812 always restored.
7813
7814 * coding.c (record_conversion_result): Don't modify
7815 Vlast_code_conversion_error for successful result.
7816 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7817
7818 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7819
7820 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7821 (load_charset_map): Remove unnecessary code.
7822
7823 2009-04-30 David Reitter <david.reitter@gmail.com>
7824
7825 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7826 through f24.
7827
7828 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7829
7830 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7831
7832 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7833 face_at_buffer_position.
7834 (face_before_or_after_it_pos, get_next_display_element)
7835 (note_mouse_highlight): Update face_at_buffer_position call.
7836
7837 * term.c (term_mouse_highlight):
7838 * msdos.c (IT_note_mouse_highlight):
7839 * fontset.c (Finternal_char_font):
7840 * font.c (font_at, font_range): Update face_at_buffer_position call.
7841
7842 * dispextern.h (face_at_buffer_position): Update prototype.
7843
7844 2009-04-30 Kenichi Handa <handa@m17n.org>
7845
7846 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7847
7848 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7849
7850 * callproc.c (Fcall_process): Fix GC protection. Make sure
7851 current buffer is always restored.
7852
7853 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7854
7855 * atimer.c (init_atimer): Also clear stopped_atimers.
7856
7857 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7858
7859 * process.c (create_process): Clean up merger residues of
7860 2008-07-17 change.
7861
7862 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7863
7864 * lread.c (Vread_circle): New variable.
7865 (read1): Disable recursive read if Vread_circle is nil.
7866
7867 2009-04-29 Kenichi Handa <handa@m17n.org>
7868
7869 * fontset.h (set_default_ascii_font): Delete extern.
7870
7871 * fontset.c (set_default_ascii_font): Delete this unused function.
7872
7873 * frame.c (x_set_font): When ARG is a font-object, check if the
7874 font-object matches with the ASCII font-spec of the frame's
7875 fontset. If not, create a new fontset for the frame. (Bug #3075)
7876
7877 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7878
7879 * fns.c (Flocale_info): Protect vector from GC during decoding.
7880
7881 * process.c (Fstart_process): Protect argv strings from GC during
7882 encoding.
7883
7884 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7885
7886 * sysdep.c: Include <ctype.h>.
7887
7888 2009-04-27 David Reitter <david.reitter@gmail.com>
7889
7890 * nsfont.m (nsfont_open): Remove unused variable shrink.
7891 Remove commented-out code.
7892
7893 2009-04-26 Johan Bockgård <bojohan@gnu.org>
7894
7895 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7896
7897 2009-04-25 Jason Rumney <jasonr@gnu.org>
7898
7899 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7900
7901 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7902
7903 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7904 Swap bytes in short integer if fringe bitmap width > 8.
7905
7906 2009-04-23 Kenichi Handa <handa@m17n.org>
7907
7908 * xfaces.c (Fx_list_fonts): If a font size is specified in
7909 PATTERN, set it in returned scalable fonts.
7910
7911 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
7912
7913 * keyboard.c (Fset_input_meta_mode): Doc fix.
7914
7915 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7916
7917 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7918
7919 * coding.c (Fterminal_coding_system): Doc fix.
7920
7921 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7922 (Fx_display_pixel_height, Fx_display_planes)
7923 (Fx_display_color_cells, Fx_server_max_request_size)
7924 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7925 (Fx_display_mm_height, Fx_display_mm_width)
7926 (Fx_display_backing_store, Fx_display_visual_class)
7927 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7928 Doc fixes, replacing "terminal id" with "terminal object".
7929 (check_x_display_info): Handle terminal objects instead of
7930 terminal ids.
7931
7932 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7933 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7934 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7935 Doc fixes, replacing "terminal id" with "terminal object".
7936
7937 2009-04-21 Kenichi Handa <handa@m17n.org>
7938
7939 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7940 (font_score): Check AVGWIDTH too.
7941
7942 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7943 worst case.
7944 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7945 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7946
7947 2009-04-19 Jason Rumney <jasonr@gnu.org>
7948
7949 The following changes fix Bug#3005 for wide glyphs on each platform,
7950 without reintroducing Bug#1258 for stretch glyphs.
7951
7952 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7953 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7954 get_phys_cursor_geometry.
7955
7956 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7957 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7958 using get_phys_cursor_geometry.
7959
7960 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7961 correctly calculated.
7962
7963 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7964
7965 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7966 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7967 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7968 is deprecated.
7969
7970 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7971
7972 * font.c (font_put_frame_data): Use xfree instead of free.
7973
7974 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
7975
7976 * w32font.c (Qja, Qko): Remove declarations.
7977 (syms_of_w32font): Don't DEFSYM them.
7978
7979 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
7980
7981 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7982
7983 * font.h (Qja, Qko): Extern them.
7984
7985 * ftfont.c (Qja, Qko): Remove declarations.
7986
7987 * xfont.c (Qja, Qko): Remove declarations.
7988
7989 2009-04-17 Kenichi Handa <handa@m17n.org>
7990
7991 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7992 string from a vector to handle Latin-1 characters correctly.
7993
7994 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7995 entity even if the cache hits.
7996
7997 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7998
7999 * search.c (boyer_moore): Use zero as marker value for a possible
8000 match instead of depending on overflow behavior. (Bug#2844)
8001
8002 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8003 * lisp.h: Adjust prototypes.
8004
8005 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
8006
8007 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8008 change (Bug#3003).
8009
8010 2009-04-16 Kenichi Handa <handa@m17n.org>
8011
8012 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
8013
8014 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8015 adstyle.
8016
8017 * ftfont.c (Qja, Qko): Don't make them static.
8018 (enum ftfont_cache_for): New enum.
8019 (fc_charset_table): Undo the previous change.
8020 (ftfont_get_latin1_charset): Delete it.
8021 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8022 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
8023 non-scarable font, try to get AVERAGE_WIDTH.
8024 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8025 Change ft_face_cache from a list of a hash-table. Don't check
8026 `ja' and `ko' adstyle here.
8027 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8028 FTFONT_CACHE_FOR_CHARET.
8029 (ftfont_get_charset): Undo the previous change.
8030 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
8031 (ftfont_close): Likewise.
8032 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8033
8034 * font.c (font_sort_entites): Change the meaning of the arg
8035 BEST-ONLY. Don't optimize for VEC of lenght 1.
8036 (font_select_entity): Just return the value of font_sort_entites.
8037
8038 * xfaces.c (merge_face_vectors): Reflect font properties in
8039 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8040 font_clear_prop if a face attribute doesn't change.
8041
8042 * charset.h (charset_ksc5601): Extern it.
8043
8044 * charset.c (charset_ksc5601): New variable.
8045 (Fdefine_charset_internal): Set charset_ksc5601.
8046 (init_charset_once): Initialize charset_ksc5601 to -1.
8047
8048 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8049
8050 * fileio.c (history_delete_duplicates): Remove unused declaration.
8051
8052 * callint.c (history_delete_duplicates): New declaration.
8053 (Fcall_interactively): Remove command history duplicates when
8054 history_delete_duplicates is true.
8055
8056 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8057
8058 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8059
8060 2009-04-14 Kenichi Handa <handa@m17n.org>
8061
8062 * font.c (Ffont_info): Fix docstring. Fix the second element of
8063 the returned value (bug#2949).
8064
8065 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8066
8067 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8068
8069 2009-04-14 Kenichi Handa <handa@m17n.org>
8070
8071 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8072 encoding charset is ascii_compatible.
8073
8074 * charset.c (Fdefine_charset_internal): Make charset
8075 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8076 code_offset is 0, and covers all ASCII characters.
8077
8078 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8079
8080 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8081 (ns_string_to_pasteboard_internal):
8082 * nsmenu.m (process_dialog):
8083 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8084 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8085 * lisp.h (Fx_load_color_file): Declare.
8086
8087 2009-04-13 Kenichi Handa <handa@m17n.org>
8088
8089 * font.c (font_delete_unmatched): Preserve the order of list elements.
8090 (font_select_entity): Suppress the code to optimize for the same
8091 kind of fonts.
8092 (font_load_for_lface): Get a font that supports at least ASCII
8093 characters.
8094
8095 * ftfont.c (Qja, Qko): New variables.
8096 (fc_charset_table): Delete uniquifier data for iso8859-1.
8097 (ftfont_get_latin1_charset): New function.
8098 (get_adstyle_property): New function.
8099 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8100 bitmap fonts.
8101 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8102 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8103 `ko' or `ja'.
8104 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8105 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8106 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8107 property.
8108 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8109 (syms_of_ftfont): DEFSYM Qja and Qko.
8110
8111 2009-04-09 Kenichi Handa <handa@m17n.org>
8112
8113 * charset.c (map_charset_chars): For a charset of `superset'
8114 method, fix calculation of code range.
8115
8116 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8117 from the list of extra properties.
8118 (font_clear_prop): Be sure to delete `:name' font property.
8119
8120 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8121
8122 * dispnew.c (redraw_overlapping_rows): Fix detection of
8123 overlapping for topmost and bottommost rows.
8124
8125 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8126
8127 2009-04-06 Jason Rumney <jasonr@gnu.org>
8128
8129 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8130
8131 2009-04-06 Kenichi Handa <handa@m17n.org>
8132
8133 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8134
8135 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8136
8137 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8138
8139 * ftfont.c (ftfont_open): Fix checking of the return value of
8140 FT_Load_Char. Fix setting font->underline_thickness.
8141
8142 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8143
8144 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8145 (Fterminal_parameters, Fterminal_parameter)
8146 (Fset_terminal_parameter): In doc string, refer to terminal
8147 objects rather than terminal ids.
8148
8149 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8150
8151 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8152 ret_lim_data. (Bug#2867)
8153
8154 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8155
8156 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8157 so they don't get wider than the window, matching 2006-01-23
8158 change to the partner function in xdisp.c (Bug#2800).
8159
8160 2009-04-03 Kenichi Handa <handa@m17n.org>
8161
8162 * print.c (print_object): Make each lowest sub_char_table start a
8163 new line (Bug#2866).
8164
8165 2009-04-02 Kenichi Handa <handa@m17n.org>
8166
8167 * fontset.c (fontset_font): Record no-font when a fontset
8168 explicitly tells not to try another font-specs.
8169
8170 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8171
8172 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8173
8174 2009-03-30 Kenichi Handa <handa@m17n.org>
8175
8176 * fontset.c (fontset_from_font): Specify only registry in a
8177 font-spec for all characters supported by that registry.
8178
8179 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8180 even if HAVE_M17N_FLT is not defined.
8181
8182 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8183
8184 * ftfont.c: Conditionalize prototyping and use of
8185 ftfont_variation_glyphs.
8186
8187 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8188
8189 * frame.c (delete_frame): Work around compiler bug.
8190
8191 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8192 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8193 Some more EMACS_INT.
8194 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8195
8196 * xdisp.c (dump_glyph): Fix typo.
8197
8198 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8199 (adjust_markers_gap_motion, adjust_markers_for_delete)
8200 (adjust_markers_for_insert, adjust_point)
8201 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8202 (make_gap, copy_text, count_size_as_multibyte, insert)
8203 (insert_and_inherit, insert_before_markers)
8204 (insert_before_markers_and_inherit, insert_1)
8205 (count_combining_before, count_combining_after, insert_1_both)
8206 (insert_from_string, insert_from_string_before_markers)
8207 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8208 (insert_from_buffer_1, adjust_after_replace)
8209 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8210 (replace_range_2, del_range, del_range_1, del_range_byte)
8211 (del_range_both, del_range_2, modify_region)
8212 (prepare_to_modify_buffer, signal_before_change)
8213 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8214 for buffer positions and sizes.
8215 * lisp.h: Adjust prototypes accordingly.
8216
8217 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8218 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8219 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8220
8221 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8222
8223 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8224
8225 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8226 lines and columns so we keep the same pixel height and width.
8227
8228 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8229 the property _NET_WM_STATE has changed.
8230 (x_handle_net_wm_state): New function to update frame parameter
8231 fullscreen.
8232 (x_term_init): Initialize atoms for _NET_WM_STATE.
8233
8234 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8235
8236 2009-03-27 Kevin Ryde <user42@zip.com.au>
8237
8238 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8239 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8240 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8241 (Fgpm_mouse_stop): Pass that new parameter.
8242 * termhooks.h (close_gpm): Adjust prototype.
8243
8244 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8245
8246 * lisp.h (Fx_focus_frame): Declare.
8247
8248 * callint.c (Fcall_interactively): For '^' just delegate the work to
8249 handle-shift-selection.
8250 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8251
8252 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8255
8256 * data.c (Qinteractive_form): New variable.
8257 (Finteractive_form): Use it.
8258
8259 * eval.c (Fcommandp): Use Qinteractive_form.
8260
8261 2009-03-24 Jason Rumney <jasonr@gnu.org>
8262
8263 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8264 Calculate total size precisely. Decode environment variables
8265 before substituting. (Bug#38)
8266
8267 2009-03-24 Kenichi Handa <handa@m17n.org>
8268
8269 * font.c (find_font_encoding): Return Qnil for unsupported
8270 encoding (Bug#2722).
8271
8272 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8273
8274 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8275 that gdpy is set.
8276
8277 2009-03-22 Alan Mackenzie <acm@muc.de>
8278
8279 * callint.c (Finteractive): Clarify the doc string - even
8280 promptless elements need \n separators.
8281
8282 2009-03-22 Jason Rumney <jasonr@gnu.org>
8283
8284 * w32term.c (syms_of_w32term): Doc fix for
8285 x-use-underline-position-properties.
8286
8287 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8288
8289 * w32.c (getpwuid): Change argument type to unsigned.
8290 (struct w32_id): Change type of `rid' member to unsigned.
8291 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8292 argument ID to unsigned. All callers changed.
8293 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8294
8295 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8296
8297 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8298 negative, produce a float value.
8299
8300 * dired.c (make_uid, make_gid): New functions.
8301 (Ffile_attributes): Use them to avoid negative UID and GID.
8302
8303 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8304
8305 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8306 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8307 Fix typos in docstrings.
8308
8309 2009-03-19 Kenichi Handa <handa@m17n.org>
8310
8311 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8312 changed, use font_load_for_lface to get a new font object.
8313 Call free_realized_fontset after handling ASCII font change.
8314
8315 * frame.c (x_set_font): Handle the case that ARG is a cons.
8316
8317 2009-03-19 Glenn Morris <rgm@gnu.org>
8318
8319 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8320
8321 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8322
8323 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8324
8325 2009-03-19 Kenichi Handa <handa@m17n.org>
8326
8327 * charset.c (load_charset_map_from_file): When a mapfile can't be
8328 loaded, signal an error.
8329
8330 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8331
8332 * dired.c (Ffile_attributes): Make sure UID and GID are always
8333 positive, even if the value is too large for a positive EMACS_INT.
8334 Doc fix.
8335
8336 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8337
8338 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8339
8340 * xmenu.c (xdialog_show): Move Fredisplay call ...
8341 (Fx_popup_dialog): ... here.
8342
8343 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8344
8345 * dired.c (file_name_completion): Disable the first optimization just
8346 installed, since it is not implemented correctly.
8347
8348 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8349
8350 * dired.c (file_name_completion): Check completion-ignored-extensions
8351 only if the entry can affect bestmatch.
8352 Stop the search early, as Ftry_completion already does.
8353
8354 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8355
8356 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8357
8358 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8359
8360 * keyboard.c (parse_menu_item): Don't display remappings as menu
8361 equivalent bindings (Bug#788).
8362
8363 2009-03-15 Jason Rumney <jasonr@gnu.org>
8364
8365 * w32term.h (WM_EMACS_PAINT): New message.
8366 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8367 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8368 before passing to lisp thread. (Bug#950)
8369
8370 2009-03-14 David Reitter <david.reitter@gmail.com>
8371
8372 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8373 variable as it was never reset.
8374 (ns_term_init): Remove initialization of Lisp-settable defaults
8375 and ns_expand_space.
8376 (-setPanelFromDefaultValues): Remove ns_expand_space.
8377 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8378 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8379 i.e. no additional spacing, similar to Carbon port.
8380
8381 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8382 * nsfns.m (ns-popup-prefs-panel): Remove.
8383
8384 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8385
8386 * sound.c (alsa_configure): Remove call to deprecated
8387 snd_pcm_sw_params_set_xfer_align.
8388
8389 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8390
8391 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8392 after clicking in a detached tool bar.
8393 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8394
8395 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8396
8397 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8398 int/Lisp_Object mixup).
8399
8400 2009-03-13 Kenichi Handa <handa@m17n.org>
8401
8402 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8403 Handle NAME nil and t correctly. Callers changed.
8404 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8405 (set_fontset_font): Change ARG to a vector. Handle range_list in
8406 ARG correctly.
8407 (Fset_fontset_font): Fix the case that TARGET is both a script
8408 name and charset name. Adjust the arg to set_fontset_font for
8409 the above change.
8410 (fontset_from_font): Fix previous change.
8411 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8412 entry. If FONTSET is the default fontset, don't set the extra
8413 slot of the returning char-table.
8414
8415 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8416
8417 * nsfns.m (Fx_close_connection): Doc fix.
8418 (Fns_do_applescript): Reflow docstring.
8419 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8420 (Fx_display_pixel_width, Fx_display_pixel_height)
8421 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8422 Fix typos in docstrings.
8423 (Fns_set_alpha): Fix typos in error messages.
8424
8425 2009-03-12 David Reitter <david.reitter@gmail.com>
8426
8427 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8428 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8429 were used for such events.
8430
8431 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8432 (toggleToolbar, performDragOperation, runHelp): Use it.
8433
8434 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8435 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8436
8437 2009-03-11 Kenichi Handa <handa@m17n.org>
8438
8439 * font.h (font_open_by_spec): Extern it.
8440
8441 * font.c (font_open_by_spec): New function.
8442 (font_open_by_name): Use font_open_by_spec.
8443
8444 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8445 fontset of the frame.
8446
8447 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8448 modify the default font of frames that use this fontset.
8449 (num_auto_fontsets): New variable.
8450 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8451 name. Be sure to set FONTSET_ASCII to the correct font name.
8452 (update_auto_fontset_alist): New function.
8453
8454 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8455
8456 * makefile.w32-in: Update dependencies.
8457
8458 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8459
8460 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8461
8462 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8463
8464 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8465
8466 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * lread.c (Feval_buffer): Doc fix.
8469
8470 2009-03-09 Kenichi Handa <handa@m17n.org>
8471
8472 * charset.c (Qfile_name_handler_alist): Extern it.
8473 (load_charset_map_from_file): Temporarily bind
8474 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8475
8476 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8477
8478 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8479 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8480
8481 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8482
8483 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8484 (x_set_window_size): Change back to calculated method of setting
8485 toolbar height under Cocoa. (Bug#2546)
8486 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8487 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8488
8489 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8490
8491 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8492 accelerator in parens under GNUstep.
8493
8494 2009-03-06 Kenichi Handa <handa@m17n.org>
8495
8496 These changes are to detect incorrect composition sequence without
8497 looking ahead the source. (Bug#2370)
8498
8499 * coding.h: Include "composite.h".
8500 (enum compisition_state): New enum.
8501 (struct compisition_status): New struct.
8502 (struct iso_2022_spec): New member cmp_status.
8503 (struct emacs_mule_spec): New struct.
8504 (struct coding_system): New members ctext_extended_segment_len and
8505 embedded_utf_8. Change the union member
8506 spec.emacs_mule_full_support to spec.emacs_mule.
8507
8508 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8509 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8510 (MAX_ANNOTATION_LENGTH): Define to 5.
8511 (ADD_COMPOSITION_DATA): New arg nbytes.
8512 (emacs_mule_char): New arg cmp_status.
8513 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8514 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8515 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8516 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8517 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8518 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8519 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8520 (EMACS_MULE_COMPOSITION_END): New macro.
8521 (emacs_mule_finish_composition): New function.
8522 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8523 (decode_coding_emacs_mule): Avoid long looking ahead while
8524 handling composition.
8525 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8526 (ENCODE_COMPOSITION_RULE): New macro.
8527 (finish_composition): New function.
8528 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8529 (DECODE_COMPOSITION_START): New implementation.
8530 (DECODE_COMPOSITION_END): Likewise.
8531 (STORE_COMPOSITION_RULE): New macro.
8532 (decode_coding_iso_2022): Avoid long looking ahead while handling
8533 composition, CTEXT extended segment, and embedded UTF-8.
8534 (setup_coding_system): For a coding of type iso-2022, reset
8535 CODING_ISO_EXTSEGMENT_LEN (coding) and
8536 CODING_ISO_EMBEDDED_UTF_8 (coding).
8537 (get_translation): Delete arguments last_block, from_nchars,
8538 to_nchars. Callers changed.
8539 (produce_chars): Don't modify charbuf. Adjusted for the change of
8540 get_translation.
8541 (produce_composition): Adjust for the new annotation sequence.
8542 (handle_composition_annotation): Likewise.
8543 (consume_chars): Adjust for the change of get_translation.
8544
8545 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8546
8547 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8548
8549 2009-03-05 Kenichi Handa <handa@m17n.org>
8550
8551 * font.c (font_select_entity): New function.
8552 (font_find_for_lface): Use font_select_entity to select a font.
8553
8554 * fontset.c (fontset_find_font): If a font found without
8555 restricting to the characters C doesn't support C, try to find a
8556 font with C restriction.
8557
8558 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8559
8560 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8561
8562 2009-03-04 Jason Rumney <jasonr@gnu.org>
8563
8564 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8565 characters that have already been read. (Bug#2569)
8566
8567 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8568 Log an error message if check_image_size failed.
8569 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8570 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8571
8572 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8573
8574 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8575 when decoding process output.
8576
8577 2009-03-01 Richard M Stallman <rms@gnu.org>
8578
8579 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8580
8581 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8582
8583 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8584
8585 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8586 (decode_coding_emacs_mule, decode_coding_iso_2022)
8587 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8588 (decode_coding_raw_text, decode_coding_charset)
8589 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8590 Honor inhibit-eol-conversion. (Bug #2186)
8591
8592 2009-02-28 Jason Rumney <jasonr@gnu.org>
8593
8594 * coding.c (detect_coding_charset): If not checking latin extra,
8595 fail on characters between 0x80 and 0xA0. (Bug#2354)
8596
8597 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8598
8599 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8600 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8601
8602 2009-02-27 Glenn Morris <rgm@gnu.org>
8603
8604 * callint.c (Finteractive): Doc fix.
8605
8606 2009-02-27 Kenichi Handa <handa@m17n.org>
8607
8608 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8609
8610 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
8611
8612 * font.c (font_style_to_value): Set value for unknown symbols to
8613 100 instead of 255.
8614 (weight_table, slant_table, width_table): Treat "unspecified" as
8615 the default value.
8616
8617 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
8618
8619 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8620
8621 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
8622
8623 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8624 error as soon as a recursive load is detected.
8625
8626 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8627
8628 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8629 before caching.
8630
8631 2009-02-24 Kenichi Handa <handa@m17n.org>
8632
8633 * fontset.c (fontset_find_font): Fix the condition for checking
8634 unavailable font.
8635
8636 2009-02-24 Glenn Morris <rgm@gnu.org>
8637
8638 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8639 whitespace that confuses documentation.
8640
8641 2009-02-23 Miles Bader <miles@gnu.org>
8642
8643 * process.c (Flist_system_processes, Fprocess_attributes)
8644 (syms_of_process): Rename `system-process-attributes' to
8645 `process-attributes'.
8646
8647 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8648
8649 * coding.h (struct coding_system): Make safe_charsets a pointer to
8650 unsigned char.
8651 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8652 being 255.
8653 (SAFE_CHARSET_P): Likewise.
8654 (setup_iso_safe_charsets): Properly setup safe_charsets.
8655 (Fdefine_coding_system_internal): Likewise.
8656 (setup_coding_system): Likewise. Remove unneeded casts.
8657 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8658 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8659 unneeded casts.
8660
8661 * insdel.c (del_range_2): Don't modify gap contents when called
8662 from decode_coding_object. (Bug#1809)
8663
8664 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
8665
8666 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8667 Qfont_object.
8668 (Ftype_of): Recognize font objects.
8669
8670 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8671
8672 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8673 moved to data.c.
8674
8675 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8676
8677 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8678 async_iconified. Based on a patch by Christian Lynbech
8679 <christian.lynbech@tieto.com>.
8680 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8681
8682 2009-02-20 Glenn Morris <rgm@gnu.org>
8683
8684 * syntax.c (Fskip_chars_forward): Fix doc typo.
8685
8686 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
8687
8688 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8689
8690 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
8691
8692 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8693
8694 2009-02-19 Kenichi Handa <handa@m17n.org>
8695
8696 * coding.c (detect_coding): Preserve coding->mode.
8697 Don't overflow coding->carryover. (Bug#2370)
8698
8699 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8700
8701 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8702
8703 2009-02-18 Kenichi Handa <handa@m17n.org>
8704
8705 * font.c (font_check_otf_features): Fix handling of `nil' element.
8706 (Ffont_spec): Describe :lang and :otf in the docstring.
8707
8708 2009-02-16 Andreas Schwab <schwab@suse.de>
8709
8710 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8711 string.
8712
8713 2009-02-16 Kenichi Handa <handa@m17n.org>
8714
8715 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8716 (Bug#1723)
8717
8718 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
8719
8720 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8721
8722 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8723 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8724
8725 2009-02-14 Eli Zaretskii <eliz@gnu.org>
8726
8727 * msdos.c (MAX_SCREEN_BUF): New macro.
8728 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8729 Encode the entire run of glyphs sharing the same face, instead of
8730 doing that one glyph at a time (fixes a bug with displaying
8731 double-size characters).
8732
8733 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8734
8735 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8736
8737 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8738 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8739 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
8740
8741 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8742 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
8743
8744 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8745
8746 * keyboard.c (adjust_point_for_property): Allow stopping between two
8747 invisible areas.
8748
8749 2009-02-12 Jason Rumney <jasonr@gnu.org>
8750
8751 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8752 (add_font_entity_to_list): Call check_face_name even when family
8753 is unspecified.
8754
8755 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8756 Release DC when finished. Use NULL window to refer to desktop.
8757 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
8758
8759 * w32font.c (add_font_entity_to_list): Fix check for substituted
8760 raster fonts. (Bug#2219)
8761
8762 2009-02-12 Kenichi Handa <handa@m17n.org>
8763
8764 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8765 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8766 (autocmp_chars): Use fast_looking_at. Don't compose more
8767 characters than MAX_COMPOSITION_COMPONENTS.
8768 (find_automatic_composition): While looking forward and backward,
8769 check static composition. Fix where to stop looking forward.
8770 (composition_adjust_point): Fix checking of static composition.
8771 (Fcomposition_get_gstring): Pay attention to
8772 MAX_COMPOSITION_COMPONENTS.
8773
8774 * lisp.h (fast_looking_at): Extern it.
8775
8776 * search.c (fast_looking_at): New function.
8777
8778 * term.c (encode_terminal_code): Adjust for the change of
8779 <struct glyph>.u.cmp.to.
8780 (append_composite_glyph): Likewise.
8781
8782 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8783 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8784 composition.
8785 (append_composite_glyph): Adjust for the change of
8786 <strcut glyph>.u.cmp.to.
8787
8788 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
8789
8790 * casetab.c (init_casetab_once):
8791 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8792 * font.c (font_update_lface):
8793 * fontset.c (Fnew_fontset):
8794 * ftfont.c (ftfont_drive_otf):
8795 * xfont.c (xfont_open):
8796 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8797
8798 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8799
8800 * fileio.c (Fwrite_region): !NILP -> CONSP.
8801
8802 2009-02-10 Andreas Schwab <schwab@suse.de>
8803
8804 * process.c (send_process): Properly relocate pointer into data
8805 when using encoded data. (Bug#2272)
8806
8807 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8808
8809 * coding.c (detect_coding_charset): Fix previous change.
8810
8811 2009-02-08 Jason Rumney <jasonr@gnu.org>
8812
8813 * w32fns.c (w32_hide_hourglass): Handle case where frame
8814 disappeared while hourglass was displayed. (Bug #2193)
8815
8816 2009-02-07 Andreas Schwab <schwab@suse.de>
8817
8818 * unexelf.c (unexec): Fix error message.
8819
8820 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8821
8822 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8823 when modal window is active. (Bug #2152)
8824 (applicationShouldTerminate:): Remove now-unneeded while loop
8825 around NSRunAlertPanel.
8826
8827 * nsmenu.m (popupSession): New file-global variable.
8828 (pop_down_menu): End the popupSession before closing dialog.
8829 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8830 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8831 don't query NSApp for events (just sleep instead).
8832
8833 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8834
8835 * coding.c (syms_of_coding) <translation-table-for-input>:
8836 Modify doc string to discourage use for character code unification.
8837
8838 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8839
8840 * atimer.c (run_timers): Update pending_atimers.
8841
8842 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8843
8844 * image.c (svg_load_image): Fix last change.
8845
8846 * xfns.c (Fx_create_frame): Signal an error if no font is
8847 found (Bug#2147).
8848
8849 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8850
8851 * character.c (syms_of_character) <script-representative-chars>:
8852 Fix typo in docstring.
8853
8854 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8855
8856 * nsmenu.m (pop_down_menu): New function.
8857 (ns_popup_dialog): Call it on unwind.
8858 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8859 call timer_check() (Bug#2154).
8860 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8861 handling_signal is set.
8862 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8863
8864 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8865
8866 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8867
8868 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8869
8870 * keyboard.c (poll_for_input_1, handle_async_input):
8871 Set handling_signal under HAVE_NS.
8872
8873 2009-02-04 Glenn Morris <rgm@gnu.org>
8874
8875 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8876
8877 2009-02-04 Kenichi Handa <handa@m17n.org>
8878
8879 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8880
8881 * charset.c (Fchar_charset): New optional arg restriction.
8882
8883 * coding.h (coding_system_charset_list): Extern it.
8884
8885 * coding.c (coding_system_charset_list): New function.
8886
8887 * composite.c: Include coding.h and termhooks.h.
8888 (composition_gstring_p): Fix for the terminal case.
8889 (composition_gstring_width): Likewise.
8890 (fill_gstring_body): Likewise.
8891 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8892 the frame.
8893 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8894 is within a composition.
8895 (Fcomposition_get_gstring): Fix the terminal case.
8896
8897 * term.c (encode_terminal_code): Fix handling of composition.
8898 (produce_composite_glyph): For static composition, get pixel_width
8899 from struct composition.
8900
8901 2009-02-02 Andreas Schwab <schwab@suse.de>
8902
8903 * unexelf.c (unexec): Handle unaligned bss offset.
8904
8905 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8906
8907 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8908 XT,w32read_socket changes to ns_read_socket.
8909
8910 * keyboard.c (handle_interrupt): Don't call
8911 quit_throw_to_read_char() under NS.
8912
8913 * blockinput.h: Remove NS-specific code.
8914
8915 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8916
8917 * dispnew.c (window_change_signal): Don't try to get the size of a
8918 suspended tty frame.
8919 * term.c (Fresume_tty): Resize if the size has changed while the
8920 tty was suspended.
8921
8922 * alloc.c (mark_stack): Properly conditionalize previous change.
8923
8924 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8925
8926 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8927 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8928 Remove; this code is not used on Windows.
8929
8930 2009-01-30 Eli Zaretskii <eliz@gnu.org>
8931
8932 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8933 EOLs that also has stray ^M characters.
8934
8935 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8936
8937 * atimer.c (run_timers, alarm_signal_handler):
8938 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8939 * w32inevt.c (w32_console_read_socket):
8940 * w32term.c (w32_read_socket):
8941 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8942
8943 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8946 Initialize it as a relative filename pattern.
8947 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8948 (Fcall_process_region): Simplify temp file creation using
8949 temporary-file-directory.
8950
8951 2009-01-29 Eli Zaretskii <eliz@gnu.org>
8952
8953 * msdos.c: Rename pending_signals to msdos_pending_signals.
8954 (sig_suspender, sigprocmask): Adjust.
8955
8956 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
8957
8958 * keyboard.c (pending_signals): New var.
8959 (poll_for_input, input_available_signal, init_keyboard): Set it.
8960 (process_pending_signals): New function.
8961
8962 * lisp.h (QUIT): Check pending_signals instead of
8963 interrupt_input_pending. Use process_pending_signals.
8964
8965 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8966
8967 * process.c (wait_reading_process_output): Use process_pending_signals.
8968
8969 * sysdep.c (emacs_write): Use process_pending_signals.
8970
8971 * xterm.c (XTread_socket): Update pending_signals.
8972
8973 * w32term.c (w32_read_socket): Update pending_signals.
8974
8975 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8976
8977 2009-01-29 Kenichi Handa <handa@m17n.org>
8978
8979 * xftfont.c (xftfont_has_char): New function.
8980 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8981
8982 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8983
8984 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8985 under GNUstep.
8986 (ns_query_color): New declaration.
8987
8988 * nsterm.m (ns_confirm_quit): New variable.
8989 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8990 (EmacsApp-applicationShouldTerminate:): Use it.
8991 (EmacsPrefsController): Let user set it.
8992 (ns_query_color): New function.
8993 (ns_defined_color): Use it.
8994 (ns_initialize): Drop.
8995 (ns_term_init): Add two lines from ns_initialize(), and set
8996 input_interrupt_mode to nil.
8997
8998 * image.c (svg_load_image): Don't right-shift background RGB when
8999 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
9000
9001 2009-01-28 Kenichi Handa <handa@m17n.org>
9002
9003 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9004 (fontset_get_font_group): Remember that no font-group is specified
9005 for C.
9006
9007 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
9008
9009 * fns.c (concat): Check for string overflow (bug#1787).
9010
9011 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9012 Quadruple undo limits (bug#1501).
9013
9014 2009-01-27 Kenichi Handa <handa@m17n.org>
9015
9016 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9017 directly use GT_Get_Char_index.
9018
9019 * xftfont.c (struct xftfont_info): New member `index'.
9020
9021 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
9022 (Ffontset_font): Adjust for the change of fontset entry.
9023
9024 2009-01-26 Kenichi Handa <handa@m17n.org>
9025
9026 * fontset.c (fontset_find_font): Fix handling of non-cons return
9027 value of fontset_get_font_group.
9028 (fontset_font): Revert last change.
9029
9030 2009-01-26 Jason Rumney <jasonr@gnu.org>
9031
9032 * w32font.c (w32font_list_internal): Return quickly if registry is
9033 unknown. Simplify final return.
9034 (add_font_entity_to_list): Break complex logic down into more
9035 manageable chunks. Move unknown registry check to
9036 w32font_list_internal.
9037
9038 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9039
9040 Changes to remove Feval calls from GUI under NS.
9041
9042 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9043 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
9044 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9045
9046 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9047 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9048 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9049 instead of NON_ASCII_KEYSTROKE_EVENT.
9050 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9051 (EmacsApp-applicationShouldTerminate:): Query user.
9052 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9053 instead of Feval.
9054
9055 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9056
9057 * keyboard.c (kbd_buffer_get_event): Check for it.
9058 (keys_of_keyboard): Define lispy keys for
9059 ns-put/unput-working-text.
9060
9061 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9062 versions.
9063 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9064
9065 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9066
9067 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9068 setting current_buffer directly. (Bug#2044)
9069
9070 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * fontset.c (fontset_font): If we know there is no font, don't do
9073 any work. (Bug#1952, bug#1990).
9074
9075 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9076
9077 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9078
9079 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9080 (ns_no_defaults): New declaration.
9081 (main): Use it.
9082
9083 * nsterm.h (ns_no_defaults): New declaration.
9084
9085 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9086
9087 * nsterm.m (ns_no_defaults): New variable.
9088 (ns_initialize): Don't read defaults when ns_no_defaults.
9089 (EmacsView-readSelectionFromPasteboard:)
9090 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9091 NSServicesRequests protocol. (Bug#1435)
9092 (ns_dumpglyphs_stretch): New function.
9093 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9094 of 2008-11-15 to other terms. (Bug#615)
9095
9096 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9097
9098 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9099
9100 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9101 call for Sparc64.
9102
9103 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9104
9105 * nsfns.m:
9106 * nsgui.h:
9107 * nsmenu.m:
9108 * nsselect.m:
9109 * nsterm.h:
9110 * nsterm.m: Remove '23' comments that indicated code added during
9111 update from emacs-20 -> emacs-23.
9112
9113 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9114
9115 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9116 ns_alternate_modifier. (Bug#1217)
9117
9118 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9119 Display all shortcuts, including those w/o super modifier.
9120
9121 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9122
9123 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9124
9125 * fileio.c (Vwrite_region_post_annotation_function)
9126 (Vwrite_region_annotation_buffers): New vars.
9127 (build_annotations_unwind): Just reset
9128 Vwrite_region_annotation_buffers.
9129 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9130 Call write-region-post-annotation-function.
9131 (build_annotations): Add to Vwrite_region_annotation_buffers if
9132 buffer changes.
9133
9134 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9135
9136 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9137 Tiger.
9138 * nsfns.m (ns_do_applescript):
9139 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9140
9141 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9142
9143 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9144
9145 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9146
9147 * nsmenu.m (NSMENUPROFILE): Change #if style.
9148
9149 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9150
9151 * nsterm.m (x_set_frame_alpha): Add prototype.
9152 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9153 handle Ctrl-tab. (Bug#1841)
9154 (ns_get_color): Use unsigned long long for scanned hex string value.
9155 (ns_term_shutdown): Abort on non SIGTERM signals.
9156 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9157 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9158 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9159 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9160 (ns_defined_color): Fix settings of the XColor variable fields:
9161 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9162
9163 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9164 DPI. (Bug#1316)
9165 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9166 values in onTiger section.
9167
9168 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9169
9170 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9171 Check return value of font_spec_from_name.
9172 (Fx_list_fonts): Doc fix. (Bug#1951)
9173
9174 * font.c (font_spec_from_name): Return Qnil if font name could not
9175 be parsed.
9176 (font_parse_name): Treat a `?' character as part of an XLFD.
9177
9178 * fns.c (Fsubstring): Doc fix.
9179
9180 2009-01-19 Kenichi Handa <handa@m17n.org>
9181
9182 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9183 (ftfont_list): Likewise.
9184
9185 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9186
9187 * dbusbind.c (Fdbus_register_signal):
9188 * process.c (conv_sockaddr_to_lisp):
9189 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9190
9191 * callproc.c (Fgetenv_internal): Doc fix.
9192
9193 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9194
9195 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9196 it is not even used.
9197
9198 2009-01-16 Glenn Morris <rgm@gnu.org>
9199
9200 * font.c (Ffont_variation_glyphs): Silence compiler.
9201
9202 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9203
9204 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9205 Reported by David Robinow <drobinow@gmail.com>.
9206
9207 2009-01-15 Kenichi Handa <handa@m17n.org>
9208
9209 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9210
9211 2009-01-14 Jason Rumney <jasonr@gnu.org>
9212
9213 * frame.c (x_set_font): Always store a font to the font parameter,
9214 never a fontset. (Bug#1562)
9215
9216 2009-01-14 Kenichi Handa <handa@m17n.org>
9217
9218 * coding.c (TWO_MORE_BYTES): New macro.
9219 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9220
9221 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * font.c (font_clear_prop): If clearing the family, clear the font
9224 width index too.
9225
9226 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9227
9228 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9229
9230 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9231 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9232 functions, use sizeof.
9233
9234 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9235
9236 * keyboard.c (read_char): Fix case where last_nonmenu_event
9237 returned a bad value with submenus. (Bug#447)
9238
9239 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9240
9241 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9242 family, clear the font width index too.
9243
9244 2009-01-11 Jason Rumney <jasonr@gnu.org>
9245
9246 * keyboard.c (cmd_error_internal): Exit when errors occur before
9247 frame creation and not in daemon mode. (Bug#1836)
9248
9249 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9250
9251 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9252 of a display vector, backtrack.
9253 (try_window_reusing_current_matrix): Check glyph type before
9254 referencing charpos member.
9255
9256 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9257
9258 Fix Bug #876:
9259
9260 * coding.c (inhibit_null_byte_detection): New variable.
9261 (detect_coding, detect_coding_system): Don't pay attention to null
9262 bytes if inhibit_null_byte_detection is non-zero.
9263 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9264 <inhibit-iso-escape-detection>: Doc fix.
9265
9266 2009-01-09 Jason Rumney <jasonr@gnu.org>
9267
9268 * w32font.c (add_font_entity_to_list): Don't report unknown
9269 Windows charset as any unrecognized registry. (Bug#1548)
9270 Only report Unicode Plane 2 fonts as unicode-sip.
9271
9272 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9273
9274 * xfaces.c (Fx_font_family_list): Delete function.
9275 Move compatibility version to faces.el.
9276
9277 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9278
9279 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9280
9281 * frame.c (x_set_frame_parameters): Remember requested value for
9282 fullscreen before it's reset by the parameter handler.
9283
9284 2009-01-09 Glenn Morris <rgm@gnu.org>
9285
9286 * keyboard.c (last_command_char): For clarity, rename to...
9287 (last_command_event): ... and update all users.
9288 (last_input_char): For clarity, rename to...
9289 (last_input_event): ... and update all users.
9290 (last-command-char, last-input-char): Move to subr.el as aliases.
9291 * cmds.c, commands.h: Update for last_command_char rename.
9292
9293 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9294
9295 * font.c (font_open_for_lface): Handle unspecified height attribute.
9296
9297 2009-01-08 Jason Rumney <jasonr@gnu.org>
9298
9299 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9300 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9301 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9302 Don't declare.
9303 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9304 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9305
9306 2009-01-07 Kenichi Handa <handa@m17n.org>
9307
9308 * fileio.c (Finsert_file_contents): In the case of replace,
9309 remember the coding system used for decoding in
9310 coding_system (Bug#1039).
9311
9312 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9313 breaking the loop. (Bug#870)
9314 (decode_coding_utf_16, decode_coding_emacs_mule)
9315 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9316 (decode_coding_charset): Likewise.
9317
9318 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9319
9320 * frame.c (x_set_frame_parameters): Make sure height (width) get
9321 applied when fullwidth (fullheight) is set. (Bug#1522)
9322
9323 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9324
9325 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9326 (utc_base): Declare as ULONGLONG, not long double.
9327 (convert_time_raw): Delete.
9328 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9329 (initialize_utc_base): New function.
9330 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9331 (convert_from_time_t): Use initialize_utc_base; compute result with
9332 64-bit arithmetic.
9333 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9334
9335 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9336
9337 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9338 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9339 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9340 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9341 [!subprocesses]: Define.
9342 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9343 (Flist_system_processes, Fsystem_process_attributes)
9344 [!subprocesses]: Call list_system_processes and
9345 system_process_attributes instead of returning Qnil.
9346
9347 * dosfns.c (system_process_attributes, list_system_processes):
9348 New functions.
9349
9350 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9351
9352 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9353 Don't use the default (no-op) implementation.
9354
9355 2009-01-03 Jason Rumney <jasonr@gnu.org>
9356
9357 * keyboard.c (parse_modifiers_uncached): Wheel events are
9358 clicks (bug#687).
9359
9360 * w32term.c (x_query_colors, x_query_color): New functions.
9361
9362 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9363 (svg_load_image): Cast returned pointers from dynamically loaded
9364 functions. Eliminate W32 specific code.
9365
9366 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9367
9368 * nsfns.m (x_set_foreground_color, x_set_background_color)
9369 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9370 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9371 x_ prefix instead of ns_. Update references.
9372 (syms_of_nsfns): Add a FIXME comment.
9373
9374 * nsterm.m (x_set_cursor_type): New prototype.
9375 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9376
9377 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9378 for Solaris instead of incorrectly providing Qutime and Qcutime.
9379
9380 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9381
9382 * w32.c (process_times): Compute sum of utime and stime.
9383 (system_process_attributes): Add Qtime to the alist.
9384
9385 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9386 and add them to the alist.
9387
9388 * process.c (top level) <Qtime, Qctime>: New variables.
9389 (syms_of_process): staticpro them.
9390 (Fsystem_process_attributes): Add their documentation to the doc
9391 string.
9392
9393 * process.h: Declare Qtime and Qctime.
9394
9395 2009-01-02 Jason Rumney <jasonr@gnu.org>
9396
9397 * image.c (Qgobject): New symbol.
9398 (syms_of_image): Initialize it.
9399 (init_svg_functions): Load some functions from gobject library.
9400
9401 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9402
9403 * frame.c (make_terminal_frame): Remove redundant code and useless
9404 block.
9405
9406 2009-01-01 Andreas Schwab <schwab@suse.de>
9407
9408 * process.c (conv_sockaddr_to_lisp): Add workaround for
9409 getsockname bug on BSD.
9410
9411 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9412
9413 * xfns.c (x_create_tip_frame): Set border width of the X window.
9414
9415 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9416
9417 2009-01-01 Jason Rumney <jasonr@gnu.org>
9418
9419 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9420 Don't block input, as per earlier xterm.c changes.
9421
9422 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9423
9424 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9425 (ns_appkit_version_int): New function.
9426 (x-server-version): Use ns_appkit_version_int and follow 21+
9427 convention of returning 3 integers.
9428
9429 2008-12-30 Kenichi Handa <handa@m17n.org>
9430
9431 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9432 (CHAR_SURROGATE_PAIR_P): New macro.
9433
9434 * font.h (struct font_driver): New member get_variation_glyphs.
9435
9436 * font.c (font_range): Don't require a font for a variation selector.
9437 (Ffont_variation_glyphs): New function.
9438 (syms_of_font): Defsubr it.
9439
9440 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9441 ftfont_variation_glyphs.
9442 (setup_otf_gstring): New function.
9443 (ftfont_drive_otf): Use it.
9444 (ftfont_shape_by_flt): Handle variation selector.
9445 (ftfont_variation_glyphs): New function.
9446
9447 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9448
9449 * frame.c (Vemacs_iconified): Remove.
9450
9451 2008-12-30 Jason Rumney <jasonr@gnu.org>
9452
9453 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9454 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9455
9456 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9457
9458 * indent.c (Fvertical_motion): Don't advance iterator if we have
9459 reseated to the desired position.
9460
9461 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9462 checking for pos match.
9463
9464 2008-12-30 Kenichi Handa <handa@m17n.org>
9465
9466 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9467 just get the low 8-bit of the code.
9468
9469 * font.c (font_intern_prop): Validate str as multibyte.
9470
9471 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9472
9473 * dispextern.h (struct face): Move lface and hash from the middle
9474 of bitfields.
9475
9476 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9477
9478 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9479
9480 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9481 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9482 instead of intervals.h.
9483
9484 2008-12-26 Andreas Schwab <schwab@suse.de>
9485
9486 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9487 cons.
9488
9489 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9490
9491 * textprop.c (Qminibuffer_prompt): New variable.
9492 (syms_of_textprop): Initialize it.
9493 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9494 in minibuffer-prompt face. (Bug#1662)
9495
9496 2008-12-25 Jason Rumney <jasonr@gnu.org>
9497
9498 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9499
9500 2008-12-24 Jason Rumney <jasonr@gnu.org>
9501
9502 * ralloc.c (r_alloc_reset_variable): New function.
9503
9504 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9505 record of what points where. (Bug#716)
9506
9507 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9508
9509 * minibuf.c (read_minibuf): Follow the non-interactive case when
9510 running as a daemon, before detaching.
9511
9512 2008-12-22 Andreas Schwab <schwab@suse.de>
9513
9514 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9515 * gtkutil.c (free_widget_value): Use xfree instead of free.
9516
9517 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9518
9519 * frame.c (delete_frame): New function derived from
9520 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9521 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9522 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9523 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9524 * frame.h: Extern delete_frame.
9525 * window.c (window_loop):
9526 * terminal.c (delete_terminal):
9527 * xterm.c (x_connection_closed):
9528 * xfns.c (Fx_hide_tip):
9529 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9530
9531 2008-12-21 Jason Rumney <jasonr@gnu.org>
9532
9533 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9534 when character maps to .notdef character.
9535
9536 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9537
9538 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9539
9540 2008-12-20 Jason Rumney <jasonr@gnu.org>
9541
9542 * frame.c (Fmake_terminal_frame): Raise an error when called from
9543 a graphical frame on Windows. (Bug#1325)
9544
9545 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9546
9547 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9548
9549 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9550
9551 * minibuf.c (Fread_buffer): Doc fix.
9552
9553 2008-12-20 Jason Rumney <jasonr@gnu.org>
9554
9555 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9556 server name in UNC paths. (Bug#719)
9557
9558 * coding.c (decode_coding): Clear chars_at_source flag when using
9559 charbuf. (Bug#1035)
9560
9561 2008-12-19 Daniel Engeler <engeler@gmail.com>
9562
9563 * sysdep.c (serial_configure): Fix typo.
9564
9565 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9566
9567 * sysdep.c: Include alloca.h.
9568 (system_process_attributes): Add implementation for Solaris.
9569
9570 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9571
9572 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9573
9574 Reorganize implementation of Flist_system_processes and
9575 Fsystem_process_attributes. No functional changes.
9576 * process.c: Don't #include pwd.h, grp.h and limits.h.
9577 (Flist_system_processes): Just call list_system_processes.
9578 (Fsystem_process_attributes): Just call system_process_attributes.
9579 (procfs_list_system_processes, time_from_jiffies)
9580 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9581 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9582
9583 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9584 (list_system_processes): Rename from
9585 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9586 Provide a do nothing implementation.
9587 (system_process_attributes): Rename from
9588 procfs_list_system_processes.
9589 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9590 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9591
9592 * w32.c (list_system_processes): Rename from
9593 w32_list_system_processes.
9594 (system_process_attributes): Rename from
9595 w32_system_process_attributes.
9596
9597 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9598
9599 * process.h (w32_list_system_processes)
9600 (w32_system_process_attributes): Remove.
9601 (list_system_processes, system_process_attributes):
9602 New prototypes.
9603
9604 2008-12-19 Kenichi Handa <handa@m17n.org>
9605
9606 * xfont.c (xfont_decode_coding_xlfd): New function.
9607 (xfont_encode_coding_xlfd): New function.
9608 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9609 (xfont_list): Decode and encode XLFD by iso-8859-1.
9610 (xfont_match): Likewise.
9611 (xfont_list_family): Likewise.
9612 (xfont_open): Likewise.
9613
9614 * ftfont.c (ftfont_open): Generate a multibyte string if given
9615 names are utf-8.
9616
9617 * xftfont.c (xftfont_open): Generate a multibyte string if given
9618 names are utf-8.
9619
9620 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9621
9622 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9623 changed.
9624 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9625 clicked on a detached tool bar button.
9626
9627 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9628
9629 * emacs.c (main): Print and error and exit when no data is read
9630 from the pipe.
9631
9632 2008-12-17 Jason Rumney <jasonr@gnu.org>
9633
9634 * w32font.c (w32font_has_char): Always return -1.
9635
9636 2008-12-16 Kenichi Handa <handa@m17n.org>
9637
9638 * font.c (font_open_entity): Fix previous change.
9639
9640 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9641
9642 * process.c: Include <limits.h>.
9643
9644 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
9645
9646 * font.c (font_update_drivers): Fix mistake in reconstructing the
9647 driver list.
9648
9649 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * font.c (font_clear_cache): Fix format of font cache data.
9652
9653 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
9654
9655 * xftfont.c (xftfont_open): Free Xft font pattern if
9656 XftFontOpenPattern fails.
9657
9658 * xterm.c (x_free_frame_resources): Remove extraneous call to
9659 free_frame_faces.
9660
9661 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9662
9663 * xterm.c (x_delete_display): Move xim_close_dpy call to
9664 x_delete_terminal.
9665 (x_delete_terminal): Call xim_close_dpy.
9666
9667 2008-12-13 Jason Rumney <jasonr@gnu.org>
9668
9669 * w32font.c (intern_font_name): New function.
9670 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9671 (w32font_open_internal, Fx_select_font): Decode font name.
9672 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9673
9674 * w32font.h (intern_font_name): Declare new function.
9675
9676 * w32uniscribe.c (add_opentype_font_name_to_list):
9677 Use intern_font_name.
9678
9679 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9680
9681 * frame.c (Fdelete_frame): Call free_font_driver_list.
9682
9683 * font.c (free_font_driver_list): Implement missing function.
9684
9685 * w32term.c (w32_term_init): Don't initialize the image cache
9686 here; it will be done in init_frame_faces.
9687
9688 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9689 (struct x_display_info): Remove unused member null_pixel. New
9690 member xim_callback_data.
9691
9692 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9693 (xim_initialize): Save pointer to callback function data.
9694 (xim_close_dpy): Free callback function data. Call XCloseIM,
9695 reverting 2008-11-04 change by David Smith.
9696 (x_term_init): Don't initialize the image cache here; it will be
9697 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9698 (x_delete_display): Free x_dnd_atoms member.
9699
9700 2008-12-13 Kenichi Handa <handa@m17n.org>
9701
9702 * font.c (font_rescale_ratio): Moved from xfaces.c.
9703 Argument type changed. Handle a font-spec too.
9704 (font_score): Check Vface_font_rescale_alist.
9705 (font_open_entity): Likewise. (Bug#1547)
9706
9707 * xfaces.c (font_rescale_ratio): Moved to font.c.
9708
9709 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9712
9713 2008-12-12 Jason Rumney <jasonr@gnu.org>
9714
9715 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9716 Vwindow_system_version to the real w32 major version.
9717
9718 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9719
9720 * term.c (init_tty): Move setting the terminal name before the
9721 potential user: maybe_fatal.
9722
9723 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
9724
9725 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9726 all callers changed. Call free_frame_faces to free the face cache.
9727
9728 2008-12-11 Jason Rumney <jasonr@gnu.org>
9729
9730 * w32font.c (fill_in_logfont): Don't assume symbol script means
9731 SYMBOL_CHARSET. (Bug#547)
9732
9733 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9734 size for surrogates. (Bug#1096, bug#872)
9735
9736 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9737
9738 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9739
9740 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9741
9742 * process.c (Fsystem_process_attributes, syms_of_process):
9743 Fix typo in name of Ssystem_process_attributes.
9744 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9745
9746 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9747
9748 * syntax.c (Fmodify_syntax_entry): Doc fix.
9749
9750 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9751
9752 * font.c (Ffont_spec): Move usage to end of docstring.
9753
9754 2008-12-10 Jason Rumney <jasonr@gnu.org>
9755
9756 * w32font.c (Qcham): New symbol.
9757 (font_supported_scripts): Add cham, and comments for other new
9758 scripts in bitfield from OpenType spec.
9759 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9760 contain characters beyond the bmp.
9761
9762 2008-12-10 Kenichi Handa <handa@m17n.org>
9763
9764 * ftfont.c (fc_charset_table): Add "unicode-sip".
9765 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9766 Qunicode_sip.
9767
9768 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9769
9770 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9771 (Fcoding_system_put): Use QCdefault_char.
9772 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9773
9774 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9775
9776 * xftfont.c (syms_of_xftfont): Fix typo.
9777
9778 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9779
9780 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9781
9782 * emacs.c (main): Close daemon_pipe on exec.
9783
9784 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
9785
9786 * termchar.h (struct tty): New members termcap_term_buffer and
9787 termcap_strings_buffer.
9788
9789 * term.c (encode_terminal_code): Free any previous memory blocks
9790 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9791 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9792 All callers changed.
9793 (init_tty): Store termcap data and string buffers in new struct
9794 tty members termcap_term_buffer and termcap_strings_buffer.
9795 (delete_tty): Free them.
9796 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9797
9798 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9799
9800 * nsfns.m (ns_set_background_color): Remove code duplication.
9801 It was a substitute for face-transparency on OS X 10.3.
9802
9803 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9804
9805 * coding.c (make_conversion_work_buffer): Disable buffer
9806 modification hooks in the work buffer.
9807
9808 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9809
9810 * process.c (procfs_system_process_attributes): If `nread' has a
9811 negative value, assign zero to it.
9812
9813 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9814
9815 * eval.c (Vdebug_on_error): Doc fix.
9816
9817 2008-12-05 Kenichi Handa <handa@m17n.org>
9818
9819 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9820 second character is a combining character.
9821
9822 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9823
9824 * process.c (procfs_system_process_attributes): Don't use cmd,
9825 cmdsize, and q without initializing them first.
9826
9827 2008-12-04 Jason Rumney <jasonr@gnu.org>
9828
9829 * w32font.c (w32font_draw): Initialize orig_clip before getting
9830 it, and delete it when finished.
9831
9832 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9833
9834 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9835 case when running as a daemon before detaching.
9836
9837 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9838
9839 * w32.c (init_environment): Don't unload library shell32.dll.
9840
9841 2008-12-03 Kenichi Handa <handa@m17n.org>
9842
9843 * font.c (font_at): Set `multibyte' at first.
9844
9845 * coding.c (decode_coding_charset): Check type of an element of
9846 vector VALIDS.
9847 (encode_coding_emacs_mule): Be sure to set `code'.
9848
9849 * fontset.c (face_for_char): Handle invalid charset property correctly.
9850 (font_for_char): Likewise.
9851
9852 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9853
9854 * font.c (Fopen_font): Compute pixel size correctly.
9855 (font_update_lface): Handle fonts with corrupted size specs,
9856 i.e. non-int and non-float.
9857
9858 * ftfont.c (ftfont_match): Initialize entity variable.
9859 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9860 (ftfont_list_family): Initialize list var earlier.
9861
9862 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9863
9864 * xterm.c (x_draw_glyph_string): Fall back on
9865 underline_minimum_offset for underline position.
9866
9867 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9868
9869 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9870
9871 * character.c (c_string_width): Specify the type for LEN.
9872
9873 2008-12-03 Kenichi Handa <handa@m17n.org>
9874
9875 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9876 (decode_coding_utf_8): Likewise.
9877 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9878 (produce_chars): Initialize consumed_chars to 0.
9879
9880 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9881
9882 * keyboard.c (make_lispy_position): Only use PT if the selected
9883 window is current.
9884
9885 2008-12-02 Andreas Schwab <schwab@suse.de>
9886
9887 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9888
9889 * doprnt.c (doprnt1): Fix size of charbuf.
9890
9891 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9892
9893 * keyboard.c (timer_check): Revert last change.
9894
9895 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
9896
9897 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9898
9899 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
9900
9901 * makefile.w32-in: Update dependencies.
9902 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9903
9904 2008-12-01 Andreas Schwab <schwab@suse.de>
9905
9906 * font.c (register_font_driver): Use xmalloc.
9907 (font_put_frame_data): Likewise.
9908
9909 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
9910
9911 * xfaces.c (realize_x_face): Make abort condition clearer.
9912
9913 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9914
9915 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * keyboard.c (timer_check): After a timer runs, ensure that the
9918 selected window's buffer is current.
9919
9920 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
9921
9922 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9923 It was accidentally restored by the Unicode merge.
9924
9925 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9926
9927 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
9928
9929 * w32proc.c: Include "coding.h".
9930 (Fw32_short_file_name): Encode filename passed to Windows API.
9931 (Fw32_long_file_name): Encode filename passed to Windows API and
9932 decode back the result. (Bug#1433)
9933
9934 2008-11-29 Kenichi Handa <handa@m17n.org>
9935
9936 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9937 not before accessing it.
9938
9939 * charset.c (Fdefine_charset_internal): After calculating
9940 min_char, max_char, and fastmap, copy the charset structure again.
9941 (encode_char): Fix the previous change.
9942
9943 2008-11-28 Seiji Zenitani <zenitani@mac.com>
9944
9945 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9946
9947 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9948
9949 * nsterm.m (x_set_frame_alpha): New function.
9950
9951 2008-11-27 Eli Zaretskii <eliz@gnu.org>
9952
9953 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9954
9955 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
9956
9957 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9958 pointer to check_face_name.
9959
9960 2008-11-27 Kenichi Handa <handa@m17n.org>
9961
9962 * category.h (SET_CATEGORY_SET): Call set_category_set.
9963 (set_category_set): Extern it.
9964
9965 * category.c (hash_get_category_set): New function.
9966 (Fmodify_category_entry): Adjusted for the change of
9967 char_table_ref_and_range. Call hash_get_category_set to get a
9968 category set to store in the table.
9969
9970 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9971 Funify_charset.
9972
9973 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9974 (DECODE_CHAR): Check if the decoder vector is ready.
9975 (ENCODE_CHAR): Check if the encoder char-table is ready.
9976 (maybe_unify_char): Extern it.
9977
9978 * charset.c (Vchar_unified_charset_table): Delete it.
9979 (inhibit_load_charset_map): New variable.
9980 (temp_charset_work): New variable.
9981 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9982 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9983 New macros.
9984 (load_charset_map): Meaning of control_flag changed. If
9985 inhibit_load_charset_map is nonzero, setup a table in
9986 temp_charset_work.
9987 (load_charset): New argument control_flag.
9988 (map_charset_for_dump): New function.
9989 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9990 map_charset_for_dump.
9991 (Fdefine_charset_internal): If the charset method is MAP, load
9992 mapping tables by calling load_charset.
9993 (Funify_charset): Don't load a mapping table but directly set
9994 Vchar_unify_table.
9995 (maybe_unify_char): New function.
9996 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9997 Handle the case of inhibit_load_charset_map being nonzero.
9998 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9999 Handle the case of inhibit_load_charset_map being nonzero.
10000 (Fclear_charset_maps): Just free temp_charset_work.
10001 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10002 variable.
10003
10004 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10005 change of char_table_ref_and_range.
10006 (char_table_ref_and_range): Change the meaning of argument FROM
10007 and TO. Now the caller must provide initial values for *FROM
10008 and *TO.
10009
10010 * fontset.c (fontset_add): Adjusted for the change of
10011 char_table_ref_and_range.
10012 (fontset_get_font_group): Likewise.
10013 (Ffontset_info): Likewise.
10014
10015 * keymap.c (describe_vector): Adjusted for the change of
10016 char_table_ref_and_range. For char-table, put boundary between
10017 non-ASCII and 8-bit characters.
10018
10019 * print.c (print_object): For bool-vector, delete unnecessary
10020 check of ASCII_BYTE_P.
10021
10022 2008-11-26 Jason Rumney <jasonr@gnu.org>
10023
10024 * w32font.c (w32font_open_internal): Don't include external
10025 leading in font height. (Bug#879)
10026
10027 2008-11-26 Glenn Morris <rgm@gnu.org>
10028
10029 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10030 redefinition with ifdef. (Bug#1383)
10031
10032 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10033
10034 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10035
10036 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10037
10038 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10039 New EmacsView methods.
10040 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10041 Fixes bug #1048,1357,1414.
10042
10043 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10044
10045 Fix bug #1362.
10046 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10047 is not an indexed color.
10048 * nsterm.m (free_indexed_color): Add argument checking.
10049 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10050
10051 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
10052
10053 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10054 Document confirm-after-completion value for
10055 minibuffer-completion-confirm.
10056
10057 2008-11-24 Jason Rumney <jasonr@gnu.org>
10058
10059 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10060 warning.
10061
10062 2008-11-23 Jason Rumney <jasonr@gnu.org>
10063
10064 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10065 restored before returning.
10066
10067 * w32font.c (check_face_name): New function.
10068 (add_font_entity_to_list): Use it to filter out common substituted
10069 fonts. (Bug#642)
10070
10071 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10072
10073 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10074 confirm-nonexistent-file-or-buffer in doc-string.
10075
10076 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10077
10078 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10079 Fix copy/paste typo. Add checks.
10080
10081 2008-11-21 Kenichi Handa <handa@m17n.org>
10082
10083 * coding.c (detect_coding_iso_2022): Reject invalid composition
10084 sequence.
10085 (DECODE_COMPOSITION_START): If the current source is the last
10086 block, and the current composition doesn't end, regard this
10087 sequence as invalid.
10088 (decode_coding_iso_2022): Handle invalid composition sequence.
10089
10090 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10091
10092 * window.c (coordinates_in_window): Don't return
10093 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10094 line when the window is not the rightmost one. (Bug#1372)
10095
10096 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10097
10098 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10099
10100 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10101
10102 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10103 and bright_bg if noninteractive is non-zero.
10104
10105 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10106
10107 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10108 x_draw_glyph_string_background.
10109
10110 * w32term.c (x_draw_glyph_string): Likewise.
10111
10112 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10113
10114 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10115 the next glyph string once past the overhang width.
10116
10117 * nsterm.m (ns_draw_glyph_string): Likewise.
10118
10119 * w32term.c (x_draw_glyph_string): Likewise.
10120
10121 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10122
10123 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10124 double file close.
10125
10126 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10127
10128 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10129 dedicated status of window before attempting to display another
10130 buffer in it.
10131
10132 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10133
10134 * msdos.c (Fmsdos_long_file_names):
10135 (syms_of_msdos) <dos-unsupported-char-glyph>:
10136 * dosfns.c (Fint86): Fix typos in docstrings.
10137
10138 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10139
10140 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10141
10142 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10143
10144 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10145
10146 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10147
10148 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10149
10150 * frame.h: Negative alpha means "don't touch".
10151
10152 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10153
10154 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10155
10156 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10157
10158 * hftctl.c:
10159 * chpdef.h:
10160 * acldef.h: Remove files used only for systems no longer supported.
10161
10162 * Makefile.in: Fix .o alphabetical ordering.
10163 (hftctl.o): Remove dependency, file removed.
10164 (keymap.o, print.o): Depend on charset.h.
10165
10166 2008-11-10 Kenichi Handa <handa@m17n.org>
10167
10168 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10169
10170 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * dired.c (file_name_completion): If completion_ignore_case is
10173 enabled, ignore case when checking completion-regexp-list.
10174
10175 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10176
10177 * vm-limit.c (get_lim_data): Fix last change.
10178
10179 2008-11-08 Kenichi Handa <handa@m17n.org>
10180
10181 * character.c (Fget_byte): New function.
10182 (syms_of_character): Defsubr Fget_byte.
10183
10184 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10185
10186 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10187 cursor position is valid after scrolling.
10188
10189 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10190
10191 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10192
10193 2008-11-06 Glenn Morris <rgm@gnu.org>
10194
10195 * xterm.c (handle_one_xevent): Don't let popup menus cause
10196 mouse-autoselect-window related window switching. (Bug#1261)
10197
10198 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10199
10200 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10201
10202 2008-11-04 Andreas Schwab <schwab@suse.de>
10203
10204 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10205
10206 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10207
10208 * xfns.c (Fx_wm_set_size_hint): New function.
10209
10210 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10211
10212 * textprop.c (Fprevious_single_char_property_change): Return 0
10213 when there's no change in a string. (Bug#1301)
10214
10215 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10216
10217 * frame.c (do_switch_frame): New argument NORECORD passed to
10218 Fselect_window.
10219 (Fselect_frame): New argument NORECORD passed to
10220 do_switch_frame.
10221 (Fset_frame_selected_window): New argument NORECORD passed to
10222 Fselect_frame.
10223 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10224 in call of do_switch_frame.
10225 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10226 Handle NORECORD argument in call of Fselect_frame.
10227 * lisp.h (do_switch_frame, Fselect_frame)
10228 (Fset_frame_selected_window): Adjust declarations.
10229 * window.c (select_frame_norecord): New function.
10230 (run_window_configuration_change_hook): Use it and call
10231 Fselect_frame with NORECORD set.
10232 (Fselect_window): Pass NORECORD to Fselect_frame.
10233 (Fset_window_configuration): Handle NORECORD argument in call of
10234 do_switch_frame.
10235 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10236 Fset_frame_selected_window.
10237 * keyboard.c (command_loop_1): Handle NORECORD in call of
10238 Fselect_frame (currently ifdefd).
10239
10240 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10241
10242 * emacs.c (USAGE2): Untabify.
10243
10244 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10245
10246 * composite.c (fill_gstring_header): Fix copy/paste typo.
10247
10248 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10249
10250 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10251 (Fother_window): Rename argument and rewrite doc-string.
10252 (select_window_norecord): Fix return value. (Bug#1276)
10253
10254 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10255
10256 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10257 new frames overriding foreground for tooltips. Based on similar patch
10258 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10259
10260 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10261
10262 * emacs.c (Fdaemon_initialized): Initialize nfd.
10263
10264 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10265
10266 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10267 (Fwindow_text_height): Clarify doc-strings.
10268 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10269 doc-string of window-scroll-functions.
10270
10271 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10272
10273 * category.c (syms_of_category): Fix typo in docstring.
10274
10275 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10276
10277 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10278 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10279 Fix typos in docstrings.
10280
10281 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10282
10283 * emacs.c (daemon_pipe): Make non-static.
10284 (IS_DAEMON): Move definition ...
10285 * lisp.h (IS_DAEMON): ... here.
10286 (daemon_pipe): Declare.
10287 (is_daemon): Remove.
10288 * dispnew.c (init_display): Use IS_DAEMON.
10289
10290 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10291
10292 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10293 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10294
10295 * emacs.c (is_daemon): Remove.
10296 (main): Don't set is_daemon.
10297 (IS_DAEMON): New macro.
10298 (Fdaemonp, Fdaemon_initialized): Use it.
10299 (Fdaemon_initialized): Write a char into the pipe to make sure the
10300 parent exits.
10301 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10302
10303 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10304
10305 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10306 over-sized glyph, draw it with the default glyph width.
10307
10308 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10309 glyph, draw it with the default glyph width.
10310
10311 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10312 glyph, draw it with the default glyph width.
10313
10314 * xdisp.c (try_scrolling): When computing the distance from the
10315 scroll margin to PT, try moving some distance past the window
10316 bottom before giving up.
10317
10318 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10319
10320 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10321 (Fset_window_buffer): Explain in doc-string that a window can be
10322 "strongly" dedicated to its buffer.
10323
10324 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10325
10326 * emacs.c (daemon_name): New variable.
10327 (main): Deal with --daemon=SERVER_NAME.
10328 (Fdaemonp): Return a name if one was passed to --daemon.
10329
10330 2008-10-26 Romain Francoise <romain@orebokech.com>
10331
10332 * emacs.c (daemon_pipe): New variable.
10333 (main): Create a pipe before forking, make the parent exit only after
10334 the child has closed its end of the pipe. Move closing the
10335 descriptors ...
10336 (Fdaemon_initialized): ... here. New function.
10337
10338 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10339
10340 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10341 the previous unoptimized table.
10342
10343 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10344 the distinction between non-nil and non-t value of `dedicated'.
10345
10346 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10347
10348 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10349 read_char_minibuf_menu_text is large enough to hold the menu string.
10350
10351 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10352
10353 * window.c (Fget_buffer_window, Fdelete_windows_on)
10354 (Freplace_buffer_in_windows): Make buffer argument optional and
10355 rename to buffer_or_name.
10356
10357 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10358
10359 * xdisp.c (handle_single_display_spec, handle_display_prop):
10360 Undo 2005-05-16 change.
10361 (handle_stop): Pop iterator if it's loaded with an empty string.
10362 (get_overlay_strings_1): Don't save iterator if it's loaded with
10363 an empty string (bug#1201).
10364
10365 2008-10-24 Kenichi Handa <handa@m17n.org>
10366
10367 * ftfont.c (ftfont_otf_features): Fix previous change.
10368 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10369 calling ftfont_otf_features.
10370
10371 2008-10-24 Kenichi Handa <handa@m17n.org>
10372
10373 * font.c (font_match_p): Fix for the case that a vector of
10374 characters is in script-representative-chars.
10375
10376 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10377
10378 * dbusbind.c (xd_in_read_queued_messages): New variable.
10379 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10380 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10381 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10382 macro. (Bug#1186)
10383
10384 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10385
10386 * s/sol2-10.h: New file.
10387
10388 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10389
10390 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10391 poor beast has survived 9+ years and the jump from xterm.c!).
10392
10393 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10394
10395 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10396 Reword doc-string.
10397 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10398
10399 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10400
10401 * character.c (syms_of_character) <script-representative-chars>:
10402 <unicode-category-table>: Doc fixes.
10403
10404 2008-10-23 Noah Friedman <friedman@splode.com>
10405
10406 * coding.c (make_conversion_work_buffer): Check that
10407 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10408 Fget_buffer_create.
10409
10410 2008-10-23 Kenichi Handa <handa@m17n.org>
10411
10412 * font.c (font_add_log): Check the values of extra properties.
10413
10414 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10415
10416 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10417 Reword doc-string.
10418 (Fset_window_parameter): Use NILP.
10419 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10420 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10421
10422 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10423
10424 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10425
10426 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10427
10428 * nsfns.m (ns_appkit_version): New function.
10429 (x-server-version): Use it.
10430 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10431 (x-server-vendor): Don't check_ns().
10432
10433 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10434
10435 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10436
10437 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10438 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10439
10440 2008-10-22 Kenichi Handa <handa@m17n.org>
10441
10442 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10443 scripts.
10444
10445 * category.c (word_boundary_p): Check scripts instead of charset.
10446 Handle nil value in word-separating-categories and
10447 word-combining-categories.
10448 (syms_of_category): Fix docstrings of word-separating-categories
10449 and word-combining-categories.
10450
10451 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10452
10453 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10454 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10455
10456 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10457
10458 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10459 Rename arg "buffer" to "buffer_or_name".
10460 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10461 it optional.
10462 (no_switch_window): Remove since the return value is not used.
10463 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10464 Consider window as dedicated when Fwindow_dedicated_p returns a
10465 non-nil value.
10466 * lisp.h: Remove prototype for no_switch_window.
10467
10468 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10469
10470 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10471 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10472
10473 2008-10-21 Kenichi Handa <handa@m17n.org>
10474
10475 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10476 check Vlatin_extra_code_table.
10477
10478 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10479
10480 * fileio.c (Fset_file_modes): Doc fix.
10481
10482 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10483
10484 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10485 in arrays.
10486
10487 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10488
10489 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10490 Mention kill-buffer in doc-string.
10491 (Fset_window_buffer): Reinsert tem check removed in last commit.
10492 (Fenlarge_window, Fshrink_window): Have argument names and
10493 doc-string follow Elisp manual more closely.
10494
10495 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10496
10497 * fileio.c (Fset_file_modes): Doc fix.
10498
10499 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10500
10501 * window.c (Fwindow_width, Fset_window_start)
10502 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10503 (Fdelete_windows_on, Freplace_buffer_in_windows):
10504 Make doc-strings follow code and Elisp manual more closely.
10505 (Fwindow_dedicated_p): Make window argument optional.
10506 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10507 (Fset_window_buffer): Respect any non-nil dedicated value for
10508 window. Rename "buffer" argument to "buffer_or_name".
10509
10510 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10511
10512 * m/sh3.h: New file, machine description for SuperH.
10513
10514 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10515
10516 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10517
10518 2008-10-17 Kenichi Handa <handa@m17n.org>
10519
10520 * ftfont.c (ftfont_otf_features): Fix indexing
10521 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10522
10523 2008-10-16 Magnus Henoch <mange@freemail.hu>
10524
10525 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10526 (Fdbus_call_method_asynchronously): Ditto.
10527 This change makes C-h f display the argument list.
10528
10529 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10530
10531 * fileio.c (Fexpand_file_name): Doc fix.
10532
10533 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10534 of :foreground and :background equivalent to unspecified (20.x
10535 compatibility).
10536
10537 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10538
10539 * buffer.c (syms_of_buffer): Doc fix.
10540
10541 2008-10-14 Kenichi Handa <handa@m17n.org>
10542
10543 * font.c (font_clear_prop): When clearing font width, clear the
10544 average width field too.
10545
10546 2008-10-12 Andreas Schwab <schwab@suse.de>
10547
10548 * ftfont.c (ftfont_shape_by_flt): Make static.
10549 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10550
10551 * font.c: Don't include <m17n-flt.h>.
10552
10553 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10554
10555 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10556
10557 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10558
10559 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10560 away code.
10561
10562 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10563
10564 * dispnew.c (update_text_area): Avoid looping due to large glyph
10565 overhangs (bug#1070).
10566
10567 2008-10-09 Kenichi Handa <handa@m17n.org>
10568
10569 * fontset.c (face_for_char): If face->fontset is negative, just
10570 return ascii_face.
10571
10572 * font.c (font_delete_unmatched): Fix previous change.
10573 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10574
10575 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10576
10577 * frame.c (Fraise_frame): On text-only terminals select frame in
10578 order to make it visible. (Bug#1061)
10579
10580 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10581
10582 * fontset.c (fontset_find_font): Check frame validity.
10583
10584 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10585
10586 * gtkutil.c (xg_display_open): Reset default display if none exists.
10587 (xg_display_close): Allow Emacs to close all displays (bug#985).
10588
10589 2008-10-06 Andreas Schwab <schwab@suse.de>
10590
10591 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10592
10593 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10594
10595 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10596
10597 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10598
10599 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10600 during initialization.
10601
10602 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10603
10604 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10605 whole thing on MSDOS frames as well as on a TTY.
10606
10607 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10608 well as for TTY.
10609 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10610 well as on a TTY.
10611
10612 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10613 as well as for TTY.
10614
10615 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10616
10617 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10618 MSDOS frames as well.
10619
10620 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10621
10622 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10623 correct arguments.
10624 * menu.c (find_and_return_menu_selection): Add cast.
10625
10626 2008-10-03 Glenn Morris <rgm@gnu.org>
10627
10628 * emacs.c (USAGE1): Add --daemon.
10629
10630 2008-10-02 Eli Zaretskii <eliz@gnu.org>
10631
10632 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10633 100, so it's in percents as advertised.
10634
10635 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10636
10637 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10638 (ns_output.current_cursor, ns_output.desired_cursor)
10639 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10640 (FRAME_NEW_CURSOR_COLOR): Remove.
10641
10642 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10643 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10644 enumeration (HOLLOW_BOX_CURSOR, etc.).
10645
10646 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10647 (draw_window_cursor): Simplify code.
10648 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10649 Don't change cursor type. In latter, call rehighlight instead of doing
10650 updates manually.
10651 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10652 Use core Emacs cursor types.
10653
10654 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10655
10656 2008-10-02 Martin Rudalics <rudalics@gmx.at>
10657
10658 * process.c (Faccept_process_output): Fix doc-string.
10659
10660 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10661
10662 * gmalloc.c (__sbrk): Also define for uClibc.
10663
10664 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10665 for uClibc.
10666
10667 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10668
10669 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10670 styles.
10671 (nsfont_open): Reenable the cache.
10672
10673 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10674
10675 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10676 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10677
10678 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10679
10680 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10681 a suspended terminal.
10682
10683 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
10684
10685 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10686
10687 2008-09-30 Eli Zaretskii <eliz@gnu.org>
10688
10689 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10690
10691 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
10692
10693 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10694 in a continued line coincides with a line beginning.
10695
10696 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10697
10698 * nsfont.m (nsfont_trait_distance): Fix bug.
10699 (nsfont_list): Return a list rather than a vector (syncs with Handa
10700 changes of 2008-05-14).
10701 (nsfont_open): Improve logging.
10702
10703 2008-09-29 Andreas Schwab <schwab@suse.de>
10704
10705 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10706
10707 2008-09-28 Martin Rudalics <rudalics@gmx.at>
10708
10709 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10710 name as char-resolve-modifiers.
10711 Reported by: Markus Triska <markus.triska@gmx.at>
10712
10713 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10714
10715 * dispnew.c (init_display): Return earlier when running as a daemon.
10716
10717 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10718
10719 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10720
10721 2008-09-27 Eli Zaretskii <eliz@gnu.org>
10722
10723 * composite.c (Fcomposition_get_gstring)
10724 (Fcompose_region_internal, Fcompose_string_internal)
10725 (Ffind_composition_internal): Doc fix.
10726 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10727 (syms_of_composite) <auto-composition-function>: Doc fix.
10728 (syms_of_composite) <composition-function-table>: Doc fix.
10729
10730 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
10731
10732 * search.c (wordify): New argument for lax word-ends.
10733 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10734
10735 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10736
10737 * lisp.h (is_daemon): Declare.
10738 * dispnew.c (init_display): Do not try to initialize the terminal
10739 when running as a daemon.
10740
10741 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
10742
10743 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10744 x_display_pixel_height.
10745
10746 2008-09-22 Martin Rudalics <rudalics@gmx.at>
10747
10748 * undo.c (record_point): Don't call Fundo_boundary for first
10749 change. (Bug#731)
10750
10751 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
10752
10753 * emacs.c (Fdaemonp): Doc fix.
10754
10755 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10756
10757 * emacs.c (main): Place #ifdef in the proper place.
10758
10759 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10760
10761 * emacs.c (standard_args): Add --daemon.
10762 (main): Disconnect from the terminal when --daemon is passed.
10763 (is_daemon): New variable.
10764 (Fdaemonp): New function.
10765 (syms_of_emacs): Defsubr it.
10766
10767 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * xdisp.c (get_next_display_element): Handle string display
10770 correctly when checking for the end of a box run.
10771
10772 2008-09-20 Glenn Morris <rgm@gnu.org>
10773
10774 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10775 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10776 (Frename_file): Avoid copying to trash if a rename involves
10777 a delete. (Bug#964).
10778
10779 2008-09-20 Eli Zaretskii <eliz@gnu.org>
10780
10781 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10782 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10783 frames as well as termcap frames.
10784 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10785 get_named_tty.
10786
10787 2008-09-19 Eli Zaretskii <eliz@gnu.org>
10788
10789 * process.c (procfs_system_process_attributes): Fix cmdline in
10790 case /proc/PID/cmdline is empty.
10791
10792 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10793 x_display_pixel_height.
10794
10795 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10796
10797 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10798
10799 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10800 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10801
10802 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10803
10804 * dispextern.h (struct it): Move line_wrap away from the middle of
10805 bitfields. Move voffset in struct iterator_stack_entry after the
10806 bitfields. Move tab_width near after another short.
10807
10808 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10809
10810 * frame.h (struct frame): Move alpha from the middle of bitfields.
10811
10812 * window.h (struct window): Move frozen_window_start_p after the
10813 rest of the bitfields to reduce padding.
10814
10815 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * xterm.h (x_display_info): Remove `height' and `width' members.
10818
10819 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10820
10821 * w32term.h (w32_display_info): Remove `height', `width',
10822 `height_in', and `width_in' members.
10823
10824 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10825 New functions.
10826 (x_calc_absolute_position): Use them.
10827 (x_term_init): Omit removed `height' and `width' members.
10828
10829 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10830 New functions.
10831 (w32_read_socket, x_calc_absolute_position): Use them.
10832 (w32_initialize_display_info, w32_term_init): Omit removed members
10833 of w32_display_info.
10834
10835 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10836 New functions.
10837 (ns_initialize_display_info): Omit removed members of ns_display_info.
10838
10839 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10840 New functions.
10841 (x_calc_absolute_position): Use them.
10842 (x_term_init): Omit removed `height' and `width' members.
10843
10844 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10845 (compute_tip_xy):
10846 * frame.c (x_fullscreen_adjust):
10847 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10848 x_display_pixel_width.
10849
10850 2008-09-18 Kenichi Handa <handa@m17n.org>
10851
10852 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10853 (composition_compute_stop_pos): Fix handling of static composition.
10854 (Fcomposition_get_gstring): Check FROM and TO at first.
10855
10856 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10857
10858 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10859 mixup (YAILOM).
10860
10861 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10862
10863 * indent.c (Fvertical_motion): Use position reported by iterator
10864 instead of PT for determining screen motion (bug#943).
10865
10866 2008-09-17 Romain Francoise <romain@orebokech.com>
10867
10868 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10869
10870 2008-09-17 Kenichi Handa <handa@m17n.org>
10871
10872 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10873
10874 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10875 if necessary.
10876
10877 2008-09-16 Kenichi Handa <handa@m17n.org>
10878
10879 * coding.c (make_conversion_work_buffer): Avoid calling
10880 Fget_buffer_create if it is not necessary.
10881
10882 2008-09-15 Martin Rudalics <rudalics@gmx.at>
10883
10884 * window.c (Fselect_window): Don't update window_select_count and
10885 use_time when norecord is not nil.
10886
10887 2008-09-14 Kenichi Handa <handa@m17n.org>
10888
10889 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10890 specpdl_ptr.
10891
10892 2008-09-12 Kenichi Handa <handa@m17n.org>
10893
10894 * indent.c (scan_for_column): Don't handle automatic composition
10895 if the current buffer is not associated with a window.
10896
10897 * composite.c (composition_reseat_it): If the current buffer is
10898 not associated with a window, ignore the automatic composition.
10899 (find_automatic_composition): Likewise.
10900
10901 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10902
10903 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10904 (Fgpm_mouse_stop): Use it.
10905 * termhooks.h (close_gpm): Declare.
10906 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10907 connection if Gpm_GetEvent fails.
10908
10909 * window.c (set_window_buffer): Always preserve current-buffer.
10910
10911 2008-09-12 Glenn Morris <rgm@gnu.org>
10912
10913 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10914
10915 2008-09-11 Glenn Morris <rgm@gnu.org>
10916
10917 * charset.c (charset-map-path): Doc fix.
10918
10919 2008-09-10 Kenichi Handa <handa@m17n.org>
10920
10921 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10922
10923 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10924 compose a grapheme cluster with the preceding base glyph.
10925
10926 * composite.c (composition_compute_stop_pos): Fix previous change.
10927 Reset cmp_it->id to -1 at first.
10928
10929 2008-09-10 Glenn Morris <rgm@gnu.org>
10930
10931 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10932
10933 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
10934
10935 * keyboard.c (read_key_sequence): Reapply translation maps when
10936 switching keyboards.
10937
10938 2008-09-09 Kenichi Handa <handa@m17n.org>
10939
10940 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10941 characters.
10942
10943 * composite.c (FORWARD_CHAR): Fix calculation
10944 of (POSITION).pos_byte.
10945 (composition_compute_stop_pos): Limit the search of composition to
10946 at most 500 characters ahead. If we reach the limit or find a
10947 newline, set cmp_it->ch to -2 and return 0.
10948 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10949
10950 2008-09-08 Kenichi Handa <handa@m17n.org>
10951
10952 * indent.c (Fvertical_motion): Be sure to set
10953 it_overshoot_expected if it.cmp_it.id is non-negative.
10954
10955 2008-09-07 Andreas Schwab <schwab@suse.de>
10956
10957 * callproc.c (Fcall_process): Don't hold references to string data
10958 across garbage collection. Move initialisation of new_argv down
10959 to avoid compiler bug.
10960
10961 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10962
10963 * process.c (Fsystem_process_attributes): Doc fix.
10964
10965 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
10966
10967 * callproc.c (Fcall_process): Canonicalize current directory name.
10968
10969 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10970 iterator advances to the next line if the current line ends in a
10971 continued tab.
10972
10973 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10974
10975 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10976 member to point to cmp_from.
10977
10978 * xdisp.c: Doc fix for references to gidx data member.
10979
10980 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10981
10982 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10983
10984 2008-09-07 Kenichi Handa <handa@m17n.org>
10985
10986 * composite.c (FORWARD_CHAR): Check STOP after
10987 incrementing (POSITION).pos.
10988
10989 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10990
10991 * process.c (Fsystem_process_attributes): Doc fix.
10992
10993 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10994
10995 * keyboard.c (Ftop_level): Doc fix.
10996
10997 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10998
10999 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11000 minibuffer, don't let lower part of menu invade the echo area.
11001
11002 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11003 "char *q" to access menu text and advance through it. Revert the
11004 change that displayed ">" instead of ASCII character 0x10.
11005
11006 2008-09-05 Eli Zaretskii <eliz@gnu.org>
11007
11008 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11009 toggle boxes and radio buttons on MS-DOS as well.
11010
11011 2008-09-05 Kenichi Handa <handa@m17n.org>
11012
11013 * composite.c (autocmp_chars): Check lookback count.
11014 (composition_compute_stop_pos): Set cmp_it->lookback.
11015 (composition_reseat_it): Check lookback count.
11016 (struct position_record): New struct.
11017 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11018 (find_automatic_composition): New function.
11019 (composition_adjust_point): Use find_automatic_composition.
11020
11021 * dispextern.h (struct composition_it): New member lookback.
11022
11023 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
11024
11025 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11026 if moving by a single line.
11027
11028 2008-09-02 Andreas Schwab <schwab@suse.de>
11029
11030 * xterm.c (x_delete_display): Fix merge error.
11031
11032 * fileio.c (Fexpand_file_name): Remove unused variables.
11033
11034 2008-09-02 Eli Zaretskii <eliz@gnu.org>
11035
11036 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11037 storage on all platforms, not just on DOS_NT.
11038
11039 2008-09-02 Jason Rumney <jasonr@gnu.org>
11040
11041 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11042 Ensure mouse is not grabbed after menu is finished.
11043
11044 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
11045
11046 * xfaces.c (Finternal_set_alternative_font_family_alist)
11047 (Finternal_set_alternative_font_registry_alist): Properly copy
11048 entire alist structure.
11049
11050 2008-09-01 Kenichi Handa <handa@m17n.org>
11051
11052 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
11053 representative chars of the script is a vector.
11054 (ftfont_list): Handle the case where the representative chars of
11055 the script is a vector.
11056
11057 * character.c (syms_of_character): Docstring of
11058 script-representative-chars fixed.
11059
11060 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11061
11062 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11063 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11064 the menu. Allocate larger buffer for `text', to account for
11065 possible ^C characters.
11066
11067 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11068
11069 * xdisp.c (prepare_menu_bars): Don't call
11070 Vwindow_size_change_functions with arg Qt.
11071
11072 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11073
11074 * font.h (font_range):
11075 * fileio.c (report_file_error):
11076 * composite.c (composition_update_it): Yet another int/Lisp_Object
11077 mixup (YAILOM).
11078
11079 2008-08-30 Glenn Morris <rgm@gnu.org>
11080
11081 * data.c (Fmake_variable_frame_local): Doc fix.
11082
11083 * frame.c (Fmodify_frame_parameters): Doc fix.
11084
11085 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11086
11087 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11088 needed by GetTokenInformation.
11089 (w32_system_process_attributes): Check return values of all system
11090 APIs.
11091
11092 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11093 only when the state changes.
11094 (IT_update_begin, IT_update_end): Add termscript trace.
11095
11096 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11097 clipboard is unavailable. Set dst to NULL if it doesn't point to
11098 malloc'ed data.
11099 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11100 passing random values to xfree.
11101
11102 * dispnew.c (init_display): Set `tty's association in frame's
11103 parameters alist to the name of the terminal device, if that is known.
11104
11105 2008-08-29 Jason Rumney <jasonr@gnu.org>
11106
11107 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11108
11109 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11110
11111 * composite.c (fill_gstring_body): Avoid compiler warnings.
11112
11113 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11114 LGLYPH_SET_CODE to avoid compiler warnings.
11115
11116 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11117
11118 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11119
11120 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11121 LGLYPH_SET_CODE.
11122
11123 2008-08-29 Kenichi Handa <handa@m17n.org>
11124
11125 * fileio.c (report_file_error): Don't downcase the first character
11126 of errstring if it is still unibyte.
11127
11128 2008-08-29 Kenichi Handa <handa@m17n.org>
11129
11130 These changes are to re-implement the automatic composition so
11131 that it doesn't use text properties.
11132
11133 * Makefile.in (ftfont.o): Depend on composite.h.
11134 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11135
11136 * character.h (Vunicode_category_table): Extern it.
11137
11138 * character.c (Vunicode_category_table): New variable.
11139 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11140
11141 * chartab.c (optimize_sub_char_table): Perform more greedy
11142 optimization.
11143
11144 * composite.h (enum composition_method):
11145 Delete COMPOSITION_WITH_GLYPH_STRING.
11146 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11147 (Vcomposition_function_table): Extern it.
11148 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11149 (composition_gstring_put_cache, composition_gstring_from_id)
11150 (composition_gstring_p, composition_gstring_width)
11151 (composition_compute_stop_pos, composition_reseat_it)
11152 (composition_update_it, composition_adjust_point): Extern them.
11153 (Fcomposition_get_gstring): EXFUN it.
11154
11155 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11156 (Vcomposition_function_table)
11157 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11158 (gstring_hash_table, gstring_work, gstring_work_headers):
11159 New variables.
11160 (gstring_lookup_cache, composition_gstring_put_cache)
11161 (composition_gstring_from_id, composition_gstring_p)
11162 (composition_gstring_width, fill_gstring_header)
11163 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11164 (composition_reseat_it, composition_update_it)
11165 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11166 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11167 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11168 Defsubr composition_get_gstring.
11169
11170 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11171 cmp_id.
11172 (struct glyph_string): Delete the member gidx. New members
11173 cmp_id, cmp_from, and cmp_to.
11174 (enum it_method): Delete GET_FROM_COMPOSITION.
11175 (struct composition_it): New struct.
11176 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11177 Delete c, len, cmp_id, cmp_len in u.comp.
11178
11179 * font.h (enum lgstring_indices): Delete it.
11180 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11181 (enum lglyph_indices): Likewise.
11182 (font_range): Adjust extern.
11183 (font_fill_lglyph_metrics): Extern it.
11184
11185 * font.c (QCf): New variable.
11186 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11187 (font_prepare_composition): Delete this function.
11188 (font_range): Type and arguments changed.
11189 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11190 (font_fill_lglyph_metrics): New function.
11191 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11192 (syms_of_font): DEFSYM QCf. Delete defsubr for
11193 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11194 Defsubr Sfont_shape_gstring.
11195
11196 * fontset.h (font_for_char): Extern it.
11197
11198 * fontset.c (font_for_char): New function.
11199
11200 * ftfont.c: Include composite.h.
11201 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11202 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11203
11204 * indent.c: Include composite.h and dispextern.h.
11205 (check_composition): Delete this function.
11206 (scan_for_column): Handle composition by
11207 composition_compute_stop_pos, composition_reseat_it, and
11208 composition_update_it.
11209 (compute_motion): Likewise.
11210 (Fvertical_motion): Fix checking of composition.
11211
11212 * keyboard.c (adjust_point_for_property): Check composition by
11213 composition_adjust_point.
11214
11215 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11216 struct glyph_string.
11217
11218 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11219 (append_composite_glyph): Adjust for the change of struct it and
11220 struct glyph.
11221 (produce_composite_glyph): Likewise.
11222
11223 * w32term.c (x_draw_composite_glyph_string_foreground):
11224 Adjust for the change of struct glyph_string.
11225 (x_draw_glyph_string): Likewise.
11226
11227 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11228 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11229
11230 * xdisp.c: Include font.h.
11231 (it_props): Delete the entry for Qauto_composed.
11232 (init_iterator): Initialize it->cmp_it.id to -1.
11233 (compute_stop_pos): Call composition_compute_stop_pos.
11234 (face_before_or_after_it_pos): Adjust for the change of struct it.
11235 (handle_auto_composed_prop): Delete it.
11236 (handle_composition_prop): Handle only static composition.
11237 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11238 from xassert. Initialize it->cmp_it.stop_pos.
11239 (push_it): Adjust for the change of struct it.
11240 (pop_it): Likewise.
11241 (get_next_element): Delete next_element_from_composition.
11242 (CHAR_COMPOSED_P): New macro.
11243 (get_next_display_element): For automatic composition, get a face
11244 from the font in the glyph-string.
11245 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11246 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11247 (next_element_from_string): Check if the character at the current
11248 position is composed by CHAR_COMPOSED_P.
11249 (next_element_from_buffer): Likewise.
11250 (next_element_from_composition): Adjust for the change of struct it.
11251 Update it->cmp_it.
11252 (dump_glyph): Adjust for the change of struct glyph.
11253 (fill_composite_glyph_string): Adjust for the change of struct
11254 it and struct glyph. Don't handle automatic composition here.
11255 (fill_gstring_glyph_string): New function.
11256 (x_get_glyph_overhangs): Handle automatic composition.
11257 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11258 (BUILD_GSTRING_GLYPH_STRING): New macro.
11259 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11260 automatic composition.
11261 (append_composite_glyph): Adjust for the change of struct it and
11262 struct glyph.
11263 (x_produce_glyphs): Adjust for the change of struct it.
11264
11265 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11266 the change of struct glyph_string.
11267 (x_draw_glyph_string): Likewise.
11268
11269 2008-08-29 Glenn Morris <rgm@gnu.org>
11270
11271 * buffer.c (word-wrap): Doc fix.
11272 * xdisp.c (truncate-partial-width-windows): Doc fix.
11273 Increase default to 50.
11274
11275 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11276
11277 * xdisp.c (update_tool_bar_unwind): New function.
11278 (update_tool_bar): Temporarily set selected frame before building
11279 tool-bar items.
11280
11281 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11282
11283 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11284 snprintf, respectively.
11285 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11286
11287 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11288
11289 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11290 LDFLAGS to GNUstep CC invocation.
11291
11292 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11293
11294 * indent.c (Fvertical_motion): Revert last change. Handle the
11295 general case where we are moving forward, and PT spans multiple
11296 screen lines.
11297
11298 * eval.c (find_handler_clause): Temporarily increase
11299 max-lisp-eval-depth while printing the backtrace buffer, to
11300 guarantee that help-mode code can run.
11301
11302 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11303
11304 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11305 colors under -rv.
11306 (IT_set_frame_parameters): Don't swap foreground and background
11307 colors if `(reverse . t)' is present in the frame properties.
11308 (internal_terminal_init): Call init_frame_faces only for the
11309 initial frame.
11310
11311 2008-08-27 Andreas Schwab <schwab@suse.de>
11312
11313 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11314
11315 2008-08-27 Andreas Schwab <schwab@suse.de>
11316
11317 * search.c (search_buffer): Set char_base to zero only at the end.
11318
11319 2008-08-27 Kenichi Handa <handa@m17n.org>
11320
11321 * fileio.c (report_file_error): Fix handling of multibyte error string.
11322
11323 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11324
11325 * xterm.c (x_term_init): Temporarily hide the partially
11326 initialized terminal while calling vendor-specific-keysyms.
11327
11328 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11329
11330 * msdos.c (internal_terminal_init): Most initializations done only
11331 once, especially initial_screen_colors[] and termscript open.
11332
11333 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11334
11335 * eval.c (Fcondition_case): Doc fix.
11336
11337 * widgetprv.h (EmacsFramePart): Change font member to the new font
11338 struct.
11339
11340 * widget.c: Include character.h and font.h for XSETFONT.
11341 (setup_frame_gcs): Compute X font id from font struct, just once.
11342
11343 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11344
11345 * term.c (get_named_tty): Fix last change.
11346
11347 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11348
11349 * indent.c (Fvertical_motion): If moving forward starting from a
11350 multi-line string, move the iterator to the last line of that string.
11351
11352 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11353
11354 * frame.c (do_switch_frame): Mark previously displayed frame as
11355 obscured for FRAME_MSDOS_P frames as well.
11356
11357 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11358
11359 * frame.c (make_terminal_frame): Initialize f->terminal,
11360 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11361 Set the top frame to newly created frame.
11362 (Fmake_terminal_frame): Reuse the_only_display_info.
11363
11364 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11365 estimating available memory.
11366
11367 2008-08-23 David Reitter <david.reitter@gmail.com>
11368
11369 * nsterm.m (ns_draw_window_cursor): Don't call
11370 NSDisableScreenUpdates and NSEnableScreenUpdates on
11371 non-NS_IMPL_COCOA systems.
11372
11373 2008-08-23 Andreas Schwab <schwab@suse.de>
11374
11375 * process.c (procfs_system_process_attributes): Fix use of
11376 uninitialized variables.
11377
11378 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11379
11380 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11381
11382 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11383 calling tty-set-up-initial-frame-faces.
11384
11385 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11386 Allow MSDOS frames along with X frames.
11387
11388 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11389 addition to output_termcap.
11390
11391 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11392
11393 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11394 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11395 highlight.
11396
11397 * process.c [!subprocesses]: Define QCname.
11398 (syms_of_process): Intern and staticpro it.
11399
11400 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11401 Adjust for changes in encoding/decoding routines.
11402 Use encode_coding_object and decode_coding_object instead of
11403 encode_coding and decode_coding.
11404
11405 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11406
11407 * dosfns.c: Include frame.h before termhooks.h.
11408 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11409 variable termscript.
11410
11411 * s/msdos.h (USER_FULL_NAME): Define.
11412 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11413
11414 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11415 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11416 pw->pw_gecos.
11417
11418 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11419 SELECTED_FRAME as additional (1st) argument.
11420 (tty_read_avail_input): Handle output_msdos_raw in
11421 addition to output_termcap.
11422
11423 * msdos.c: Include frame.h before termhooks.h.
11424 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11425 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11426 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11427 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11428 (IT_set_terminal_modes, IT_reset_terminal_modes)
11429 (IT_set_frame_parameters): Use tty->termscript instead of a global
11430 variable termscript.
11431 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11432 global variable terminal_coding. Don't refer to
11433 Vnonascii_translation_table.
11434 (internal_terminal_init): Set Vwindow_system in current_kboard.
11435 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11436 Announce date and time of session start, if termscript is open.
11437 Don't zero out the_only_display_info (it is done in
11438 term.c:init_tty). Open termscript only of not already open.
11439 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11440 here instead of dos_ttraw. Don't initialize display if this is an
11441 initial tty. Don't set FRAME_FONT.
11442 (Vwindow_system_version): Bump to 23.
11443 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11444 is available, set up mouse_position_hook.
11445 (dos_ttraw, IT_set_terminal_modes): If called with initial
11446 terminal, do nothing.
11447 (IT_set_frame_parameters): Handle the Qtty_type frame
11448 parameter by calling internal_terminal_init.
11449 (dos_set_window_size, show_mouse_face)
11450 (clear_mouse_face, IT_note_mode_line_highlight)
11451 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11452 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11453 (initialize_msdos_display): New function.
11454 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11455 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11456 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11457 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11458 Accept additional argument: a pointer to a frame. Update all callers.
11459 (request_sigio, unrequest_sigio): Don't define, now defined on
11460 sysdep.c.
11461 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11462
11463 * term.c [MSDOS]: Include msdos.h.
11464 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11465 conditional to DOS_NT. Allow only one call to this function in a
11466 session. Don't allocate a new struct tty_display_info; instead,
11467 reuse the_only_display_info. Call get_tty_size to get screen
11468 dimensions. Call init_baud_rate to set bad_rate.
11469 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11470 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11471 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11472 (get_tty_terminal, get_named_tty, Ftty_type)
11473 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11474 output_termcap.
11475 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11476 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11477 only when subprocesses are supported.
11478
11479 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11480 f->output_data.x.
11481 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11482 terminal devices.
11483
11484 * msdos.h: Remove definition of struct x_display_info and struct
11485 x_output.
11486 (FRAME_FONT): Use output_data.tty.
11487 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11488 (struct x_display_info): Rename from display_info. Update all users in
11489 msdos.c.
11490 (struct x_output): Remove background_pixel and foreground_pixel.
11491 (the_only_display_info): Rename from the_only_x_display.
11492 (dos_ttraw): Update prototype.
11493
11494 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11495 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11496
11497 2008-08-23 Jason Rumney <jasonr@gnu.org>
11498
11499 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11500 (fn_TIFFSetDirectory): New library function used.
11501 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11502 (tiff_load): Use :index to select among multiple images. Set count
11503 property when multiple images exist.
11504 (gif_format): Use :index, not :image.
11505
11506 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11507
11508 * xdisp.c (try_scrolling): Check INT_MAX instead of
11509 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11510 to obtain INT_MAX.
11511
11512 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11513
11514 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11515
11516 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11517
11518 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11519 GNUstep library location.
11520
11521 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11522
11523 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11524 before using it.
11525
11526 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11527
11528 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11529
11530 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11531 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11532 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11533 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11534 (EmacsApp-cursor_blink_handler): Remove declaration.
11535 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11536 match 01 Feb 2008 changes in xterm.c.
11537 (ns_read_socket): Add cast to avoid warning.
11538 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11539 GNUstep.
11540
11541 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11542
11543 * xselect.c (x_get_foreign_selection): Return nil if desired
11544 selection could not be obtained, instead of signalling an error.
11545
11546 2008-08-20 David Reitter <david.reitter@gmail.com>
11547
11548 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11549 * nsterm.m: Remove ns-specific code for cursor blinking.
11550 (ns_draw_window_cursor): Clear cursor properly rather than
11551 redrawing the area. Respect width of bar cursors.
11552 These changes enable the use of generic blink-cursor-mode and
11553 generic cursor types in NS and support smooth cursor movements (do
11554 not blink off after command).
11555 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11556 Nextstep, too.
11557
11558 2008-08-19 Kenichi Handa <handa@m17n.org>
11559
11560 * font.c (Vfont_log_deferred): New variable.
11561 (font_add_log): Check Vfont_log_deferred.
11562 (font_deferred_log): New function.
11563
11564 * font.h (font_deferred_log): Extern it.
11565
11566 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11567 for sorting.
11568 (face_for_char): Use deferred log.
11569
11570 2008-08-18 Kenichi Handa <handa@m17n.org>
11571
11572 * fontset.c (face_for_char): Add font log.
11573
11574 * font.c (font_add_log): Add the font properties :script, :lang,
11575 and :otf in the log.
11576
11577 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11578
11579 * xdisp.c: Remove dead code.
11580 (handle_invisible_prop, next_overlay_string): Defer call to
11581 setup_for_ellipsis.
11582 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11583
11584 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11585
11586 * xfaces.c (lookup_derived_face): Properly handle possible zero
11587 return value of get_lface_attributes.
11588 (merge_faces): Don't tell lookup_derived_face to signal an error
11589 if face is not found.
11590
11591 * dired.c (Fdirectory_files): Doc fix.
11592
11593 * process.c (make_process): Initialize kill_without_query struct
11594 member.
11595
11596 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11597
11598 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11599 Alternative calculation of totphys for Visual Studio 6.
11600
11601 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11602
11603 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11604 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11605 All users changed.
11606 (stat): Only root directory passed to GetDriveType. Allow RAM
11607 disk as well as local fixed disk when w32-get-true-file-attributes
11608 is set to `local'.
11609 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11610 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11611 (w32_cached_id, w32_add_to_cache): New functions.
11612 (get_name_and_id): Look account names in the cache before calling
11613 lookup_account_sid.
11614 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11615 New initialization flags.
11616 (globals_of_w32): Initialize them to zero.
11617 (w32_system_process_attributes): Use w32_cached_id and
11618 w32_add_to_cache.
11619
11620 2008-08-14 Lawrence Mitchell <wence@gmx.li>
11621
11622 * lread.c (Fread_char, Fread_char_exclusive): If no character
11623 event is read before timeout is reached, return nil, rather than
11624 converting to a number.
11625
11626 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
11627
11628 * fns.c (use_dialog_box): Doc fix.
11629
11630 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11631 on OS X.
11632
11633 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
11634
11635 * frame.c (Qns_parse_geometry): New var.
11636 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11637
11638 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
11639
11640 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11641 space character in calculating tabs.
11642
11643 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11644
11645 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11646
11647 2008-08-10 Glenn Morris <rgm@gnu.org>
11648
11649 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11650 silence gcc "limited range of data type" warnings in some
11651 make_fixnum_or_float calls.
11652
11653 2008-08-09 Eli Zaretskii <eliz@gnu.org>
11654
11655 * w32.c (w32_system_process_attributes): If the process does not
11656 exist, return nil.
11657
11658 * w32.c: Include thelp32.h, psapi.h and coding.h.
11659 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11660 declarations.
11661 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11662 (Process32Next_Proc): New typedefs.
11663 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11664 (g_b_init_process32_next, g_b_init_open_thread_token)
11665 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11666 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11667 (g_b_init_get_process_working_set_size)
11668 (g_b_init_global_memory_status_ex): New static variables.
11669 (globals_of_w32): Initialize them.
11670 (create_toolhelp32_snapshot, process32_first, process32_next)
11671 (open_thread_token, impersonate_self, revert_to_self)
11672 (get_process_memory_info, get_process_working_set_size)
11673 (global_memory_status, global_memory_status_ex): New wrapper
11674 functions.
11675 (w32_list_system_processes, w32_system_process_attributes)
11676 (enable_privilege, restore_privilege, ltime, process_times):
11677 New functions.
11678 (convert_time_raw): New function.
11679 (convert_time): Remove conversion of FILETIME into time in 100
11680 nsec units, call convert_time_raw instead.
11681
11682 * process.h (w32_list_system_processes, w32_system_process_attributes):
11683 Add prototypes.
11684 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11685 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11686 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11687 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11688
11689 * process.c (Fsystem_process_attributes): Doc fix.
11690
11691 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
11692
11693 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11694 a continued multi-char glyph; if so, advance to the actual glyph.
11695
11696 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11697
11698 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11699
11700 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11701 (.m.o): Use it.
11702 * config.in: Regenerate.
11703
11704 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
11705
11706 * xdisp.c (redisplay_window): Revert last change.
11707 (try_window): Check bottom scroll margin too.
11708
11709 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11710
11711 * config.in: Regenerate.
11712
11713 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11714 -list-load-path-shadows'.
11715 (nsgui.h): Reduce number of things depending on it.
11716
11717 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
11718
11719 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11720 instead of window-end which does the wrong thing at eob.
11721 (try_cursor_movement): Minor optimization.
11722 (redisplay_window): If scroll margin is defined, don't assume
11723 window doesn't need scrolling.
11724
11725 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11726
11727 * config.in: Regenerate.
11728
11729 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11730 (mostlyclean): Don't delete *.d under NS.
11731
11732 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11733
11734 2008-08-06 Kenichi Handa <handa@m17n.org>
11735
11736 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11737
11738 2008-08-06 Andreas Schwab <schwab@suse.de>
11739
11740 * config.in: Regenerate.
11741
11742 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
11743
11744 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11745 forcing a window start.
11746
11747 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11748 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11749
11750 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11751
11752 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11753 argument.
11754
11755 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
11756
11757 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11758 <scroll-down-aggressively, before-change-functions>:
11759 <after-change-functions>: Reflow docstrings.
11760
11761 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11762 Ken Raeburn <raeburn@gnu.org>
11763
11764 Dock menu customization, based on a patch by Ken Raeburn, plus some
11765 other fixes.
11766 * nsmenu.m (dockMenu): New variable.
11767 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11768
11769 * nsterm.h (dockMenu): Declare.
11770
11771 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11772 (ns_term_init): Initialize dockMenu.
11773 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11774 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11775 left.
11776
11777 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11778
11779 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11780
11781 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11782
11783 * config.in: Regenerate.
11784
11785 2008-08-04 Seiji Zenitani <zenitani@mac.com>
11786
11787 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11788
11789 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11790
11791 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11792
11793 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11794
11795 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11796
11797 * keyboard.h: Comment an #endif.
11798
11799 * lisp.h (have_menus_p): Adjust comment.
11800
11801 * menu.c (find_and_return_menu_selection): Fix comparison with
11802 client_data.
11803
11804 * nsmenu.m (popup_activated_flag): New variable.
11805 (popup_activated): New function.
11806 (menu-or-popup-active-p): New exported lisp definition.
11807 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11808 when popup done.
11809 (ns_popup_dialog): Set popup_activated_flag.
11810
11811 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11812 version for GNUstep (handled by conditional typedef in nsterm.m).
11813 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11814 in rgb.txt).
11815
11816 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11817
11818 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11819
11820 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11821
11822 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11823 shortcircuit if popup_activated like GTK and X toolkit.
11824
11825 * m/inter386.h: Change DARWIN to DARWIN_OS.
11826
11827 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11828 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11829 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11830 comment on NO_SOCK_SIGIO.
11831
11832 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11833
11834 * nsterm.m (windowDidResize): Remove stopModal call.
11835
11836 2008-08-03 Andreas Schwab <schwab@suse.de>
11837
11838 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11839 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11840
11841 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11842
11843 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11844 Don't use uninitialized pointer variable when using getrlimit.
11845
11846 2008-08-02 Jason Rumney <jasonr@gnu.org>
11847
11848 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11849
11850 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11851
11852 * alloc.c (NSTATICS): Bump to 0x640.
11853
11854 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11855
11856 * lisp.h: Add prototype for directory_files_internal.
11857
11858 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11859 New functions.
11860 (syms_of_process): Defsubr them. Add initializations for various
11861 Q* symbols used in procfs_system_process_attributes.
11862 (procfs_list_system_processes, procfs_system_process_attributes)
11863 [HAVE_PROCFS]: New functions.
11864 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11865 (procfs_get_total_memory): New functions.
11866
11867 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11868
11869 * xfaces.c (Fx_load_color_file): Fix previous change;
11870 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11871
11872 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11873
11874 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11875
11876 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11877
11878 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11879
11880 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
11881
11882 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11883
11884 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11885 define NSApplicationDelegateReplySuccess.
11886 (EmacsView -converstationIdentifier): Use long instead of
11887 NSInteger for GNUstep, since it doesn't have NSInteger.
11888
11889 * xmenu.c: Revert last change.
11890
11891 * keyboard.h: Fix last change.
11892
11893 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11894
11895 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11896 on Windows.
11897
11898 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11899
11900 Warning clearing and clean-up in NS port.
11901 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11902 Add prototypes.
11903 * nsgui.h (FACE_DEFAULT): Remove, unused.
11904 (XGCValues): Change colors to unsigned long.
11905 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11906 nsterm.m.
11907 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11908 (ns_list_fonts): Remove, unused.
11909 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11910 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11911 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11912 (nsfont_draw): Compare face colors to 0, not nil.
11913 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11914 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11915 (-addSubmenuWithTitle:): Use NSMenuItem class.
11916 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11917 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11918 (ns_clip_to_row): Make gc arg a BOOL.
11919 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11920 ns_clip_to_row() call.
11921 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11922 used). Cast FRAME_FONT assignments.
11923 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11924 (ns_string_to_lispmod): Change arg to const char.
11925 (ns_term_init): Use NSMenuItem class.
11926 (EmacsApp -openFile:): Move to different section of file.
11927 (EmacsApp -application:openFiles:): Don't return a value, call
11928 -replyToOpenOrPrint:.
11929 (EmacsView -keyDown:): Fix up cast.
11930 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11931 (EmacsView -menuDown:): Cast tag in call to
11932 find_and_call_menu_selection().
11933 (ns_list_fonts): Remove, unused.
11934 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11935 (ns_fontname_to_xlfd): Make static.
11936 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11937 Remove prototypes (now in keyboard.h).
11938 (next_menubar_widget_id): Remove, unused.
11939 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11940 Remove prototypes (now in keyboard.h).
11941 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11942
11943 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11944
11945 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11946 (floatfns.o): Depend on syssignal.h.
11947 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11948
11949 * systty.h: Fix previous change that removed BSD_TERMIOS.
11950 Add comments to #ifdefs.
11951
11952 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11953
11954 * w32fns.c (w32-load-color-file): Remove.
11955 (x-open-connection): Use renamed Fx_load_color_file.
11956 * xfaces.c (x-load-color-file): Add.
11957 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11958 Emacs.clr.
11959 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11960
11961 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
11962
11963 * dbusbind.c (Fdbus_call_method_asynchronously)
11964 (Fdbus_method_error_internal): New defuns.
11965 (xd_read_message): Handle also reply messages.
11966 (Vdbus_registered_functions_table): Extend docstring.
11967
11968 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
11969
11970 * keyboard.c (gobble_input): Fix previous change.
11971
11972 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11973
11974 * bitmaps/README:
11975 * xfns.c:
11976 * termcap.c:
11977 * term.c:
11978 * syswait.h:
11979 * systty.h:
11980 * systime.h:
11981 * syssignal.h:
11982 * sysdep.c:
11983 * process.h:
11984 * process.c:
11985 * print.c:
11986 * ndir.h:
11987 * lread.c:
11988 * keyboard.c:
11989 * getpagesize.h:
11990 * floatfns.c:
11991 * fileio.c:
11992 * emacs.c:
11993 * doc.c:
11994 * dispnew.c:
11995 * dired.c:
11996 * data.c:
11997 * callproc.c:
11998 * buffer.c:
11999 * README:
12000 * Makefile.in:
12001 * s/template.h:
12002 * s/msdos.h:
12003 * m/vax.h: Remove VMS support.
12004 * s/vms.h:
12005 * vlimit.h:
12006 * uaf.h:
12007 * temacs.opt:
12008 * param.h:
12009 * ioctl.h: Remove file.
12010
12011 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12012
12013 * s/ms-w32.h (MULTI_KBOARD): Remove.
12014 * xterm.c:
12015 * xselect.c:
12016 * xfns.c:
12017 * window.c:
12018 * w32term.c:
12019 * w32fns.c:
12020 * terminal.c:
12021 * termhooks.h:
12022 * term.c:
12023 * sysdep.c:
12024 * keyboard.h:
12025 * keyboard.c:
12026 * frame.h:
12027 * frame.c:
12028 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12029 * config.in: Regenerate.
12030
12031 2008-07-30 Jason Rumney <jasonr@gnu.org>
12032
12033 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12034
12035 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12036 (w32font_open_internal): Get unicode version of textmetrics.
12037 Don't enable or disable glyph indices here.
12038 (w32font_open): Disable use of glyph indices.
12039
12040 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12041
12042 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
12043
12044 * minibuf.c (Vread_buffer_function): Doc fix.
12045
12046 2008-07-30 John Paul Wallington <jpw@pobox.com>
12047
12048 * minibuf.c (read_buffer_completion_ignore_case): New var.
12049 (Fread_buffer): Use it.
12050
12051 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12052
12053 * systty.h (sensemode): Remove empty #if. Remove reference to
12054 BSD_TERMIOS, unused.
12055
12056 * sysdep.c: Remove reference to DGUX.
12057 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12058
12059 * config.in: Regenerate.
12060
12061 2008-07-30 Jason Rumney <jasonr@gnu.org>
12062
12063 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12064
12065 2008-07-29 Jason Rumney <jasonr@gnu.org>
12066
12067 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12068 is populated.
12069 (uniscribe_encode_char): Always use uniscribe.
12070 Avoid using context if cache is populated.
12071
12072 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12073
12074 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12075 open menu.
12076
12077 * gtkutil.c (menu_nav_ended): Remove.
12078 (create_menus): Remove signal connect for menu_nav_ended.
12079
12080 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12081
12082 * xdisp.c (redisplay_window): Check return value of
12083 compute_window_start_on_continuation_line before forcing a window
12084 start.
12085
12086 2008-07-28 Jason Rumney <jasonr@gnu.org>
12087
12088 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12089
12090 * w32term.c (w32_enable_unicode_output, cleartype_active):
12091 Remove obsolete display options.
12092 (x_draw_glyph_string_background): Don't use old cleartype_active
12093 workaround.
12094 (w32_initialize): Remove cleartype_active initialization.
12095 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12096
12097 2008-07-28 Andreas Schwab <schwab@suse.de>
12098
12099 * lisp.h (init_weak_hash_tables, syms_of_font)
12100 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12101 (remove_hash_entry): Don't declare.
12102 * eval.c (maybe_call_debugger): Make static and move before use.
12103 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12104 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12105 * xterm.h (x_set_frame_alpha): Declare.
12106
12107 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12108
12109 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12110 (create_menus): Connect selection-done to menu_nav_ended.
12111
12112 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12113
12114 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12115 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12116 parameter with read of 'alpha' one.
12117 (Qns_frame_parameter): Remove.
12118 * nsselect.m (selection-coding-system)
12119 (next-selection-coding-system, Vselection_coding_system)
12120 (Vnext_selection_coding_system): Drop.
12121
12122 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12123
12124 * nsfns.m (do-applescript, do_applescript): Rename to
12125 ns-do-applescript, ns_do_applescript, and move within file.
12126
12127 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12128
12129 Remove support for Mac Carbon.
12130 * mactoolbox.c:
12131 * macterm.h:
12132 * macterm.c:
12133 * macselect.c:
12134 * macmenu.c:
12135 * macgui.h:
12136 * macfns.c:
12137 * mac.c: Remove file.
12138 * s/darwin.h:
12139 * m/intel386.h:
12140 * xfaces.c:
12141 * xdisp.c:
12142 * window.c:
12143 * tparam.c:
12144 * termhooks.h:
12145 * termcap.c:
12146 * term.c:
12147 * syssignal.h:
12148 * sysselect.h:
12149 * sysdep.c:
12150 * process.c:
12151 * lread.c:
12152 * lisp.h:
12153 * keyboard.c:
12154 * image.c:
12155 * fringe.c:
12156 * frame.h:
12157 * frame.c:
12158 * fontset.c:
12159 * font.h:
12160 * font.c:
12161 * fns.c:
12162 * fileio.c:
12163 * emacs.c:
12164 * dispnew.c:
12165 * dispextern.h:
12166 * config.in:
12167 * atimer.c:
12168 * Makefile.in: Remove code for Carbon.
12169
12170 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12171
12172 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12173
12174 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12175
12176 * macterm.h (kCGBitmapByteOrder32Host): New define for
12177 non-universal SDKs.
12178
12179 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12180 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12181
12182 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12183 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12184
12185 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12186
12187 * w32inevt.c: Include dispextern.h.
12188
12189 2008-07-26 Andreas Schwab <schwab@suse.de>
12190
12191 * print.c (print_object): Fix off-by-one in last change.
12192
12193 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12194
12195 * term.c (syms_of_term): Don't initialize default_orig_pair,
12196 default_set_foreground and default_set_background on Windows.
12197
12198 2008-07-25 Jason Rumney <jasonr@gnu.org>
12199
12200 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12201 ScriptItemize. Clean up return value checking. Remove unused
12202 variables.
12203 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12204 shaping engine.
12205
12206 * w32font.c (w32font_has_char): Handle the case where we can't
12207 determine the script for a character.
12208
12209 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12210
12211 * term.c (syms_of_term): Initialize default_orig_pair,
12212 default_set_foreground, and default_set_background.
12213
12214 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12215 clash (bug#86).
12216 (getloadavg): Callers changed.
12217
12218 * image.c (svg_load_image): Fix last change.
12219 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12220 image size is valid. Use g_object_unref instead of deprecated
12221 rsvg_handle_free to free rsvg handle.
12222 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12223
12224 2008-07-25 Jason Rumney <jasonr@gnu.org>
12225
12226 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12227 surrogates before looking up glyph index.
12228 (w32font_text_extents): Encode as surrogates if falling back to
12229 functions that need UTF-16 wide chars.
12230
12231 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12232 BMP as surrogates before looking up glyph index.
12233
12234 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12235
12236 * image.c (svg_load_image): Check for failure in return value of
12237 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12238
12239 2008-07-25 Jason Rumney <jasonr@gnu.org>
12240
12241 * w32font.c (Fx_select_font): Reverse sense of second arg.
12242
12243 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12244
12245 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12246 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12247
12248 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12249 (PURESIZE): Use it.
12250
12251 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12252
12253 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12254 * m/alpha.h (TEXT_END):
12255 * m/ibmrs6000.h (TEXT_END):
12256 * m/macppc.h (TEXT_END):
12257 * s/darwin.h (TEXT_END):
12258 * s/msdos.h (TEXT_END): Remove, unused.
12259 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12260 * s/cygwin.h: Remove comment.
12261
12262 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12263 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12264 * m/intel386.h (DOT_GLOBAL_START):
12265 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12266 (USG): Remove, file not used on USG platforms.
12267
12268 * Makefile.in (HAVE_X11): Remove empty #else.
12269
12270 2008-07-24 Andreas Schwab <schwab@suse.de>
12271
12272 * fileio.c (Finsert_file_contents): Properly adjust undo list
12273 after format conversion.
12274
12275 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12276
12277 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12278 (menu_nav_ended): Remove.
12279 (create_menus): Remove signal connect for menu_nav_ended.
12280 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12281 create_menus.
12282 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12283
12284 2008-07-23 Jason Rumney <jasonr@gnu.org>
12285
12286 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12287 with opened font.
12288 (w32font_open): Set font type to gdi.
12289
12290 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12291
12292 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12293
12294 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12295 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12296 defines it.
12297 * unexec.c (ADDR_CORRECT): Define unconditionally.
12298
12299 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12300
12301 * unexec.c: Remove code depending on !COFF and USG, the file is
12302 not used for such systems.
12303
12304 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12305 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12306 (LD_SWITCH_SYSTEM_1): Remove, update users.
12307
12308 * s/darwin.h (DATA_END):
12309 * m/intel386.h (DATA_END):
12310 * m/ibmrs6000.h (DATA_END):
12311 * m/alpha.h (DATA_END): Remove, unused.
12312
12313 * config.in: Regenerate.
12314 * s/ms-w32.h (subprocesses): Define unconditionally.
12315 * s/template.h (subprocesses): Update comment.
12316 * s/vms.h (subprocesses):
12317 * s/usg5-4.h (subprocesses):
12318 * s/hpux10-20.h (subprocesses):
12319 * s/gnu-linux.h (subprocesses):
12320 * s/cygwin.h (subprocesses):
12321 * s/bsd-common.h (subprocesses):
12322 * s/aix4-2.h (subprocesses):
12323 * s/darwin.h (subprocesses): Do not define, defined by default now.
12324
12325 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12326 Remove all references.
12327 (temacs): Add GNUstep specific ld flags.
12328
12329 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12330 similarly to what X does.
12331
12332 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12333
12334 * nsfns.m (x-list-fonts): Remove.
12335 (syms_of_nsfns): Drop the x-list-fonts declaration.
12336 * nsterm.m: Get rid of remaining "//" comments.
12337
12338 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12339
12340 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12341
12342 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12343 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12344 (Fns_own_selection_internal, Fx_disown_selection_internal)
12345 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12346
12347 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12348 ... */' style of docstrings. Doc fixes.
12349
12350 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12351
12352 * terminfo.c (UP, BC, PC): Undo previous change.
12353
12354 * nsfns.m: Rename ns prefixed functions/variables to the
12355 corresponding x versions. Update references.
12356
12357 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12358
12359 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12360
12361 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12362
12363 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12364 Remove forwarding functions.
12365 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12366 non-static.
12367 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12368 non-static.
12369 (ns_frame_parm_handlers): Use the new names.
12370 (syms_of_nsfns): Move to the end of file.
12371
12372 * nsterm.m (syms_of_nsterm): Move to the end of file.
12373
12374 * dispnew.c (init_display): Remove code for X10.
12375
12376 2008-07-22 Jason Rumney <jasonr@gnu.org>
12377
12378 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12379 bare drive.
12380
12381 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12382
12383 * nsterm.m (syms_of_nsterm): Remove debugging println.
12384
12385 2008-07-22 David Reitter <david.reitter@gmail.com>
12386
12387 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12388 Carbon implementation of the same functionality: execute arbitrary
12389 AppleScript code.
12390
12391 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12392
12393 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12394 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12395 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12396 (Fx_display_mm_height, Fx_display_mm_width)
12397 (Fx_display_backing_store, Fx_display_visual_class)
12398 (Fx_display_save_under, Fx_open_connection)
12399 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12400 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12401 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12402 (Fx_display_pixel_width, Fx_display_pixel_height)
12403 (Fx_display_usable_bounds, Fx_display_planes)
12404 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12405 ... */' style of docstrings.
12406
12407 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12408
12409 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12410 on this platform.
12411 (mips):
12412 * m/iris4d.h (mips): Do not define.
12413 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12414
12415 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12416
12417 * image.c:
12418 * nsfns.m:
12419 * nsselect.m:
12420 * nsterm.h:
12421 * nsterm.m: Rename ns prefixed functions/variables to the
12422 corresponding x versions. Update references.
12423
12424 * m/ibms390x.h (NO_REMAP): Do not undefine.
12425
12426 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12427
12428 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12429
12430 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12431 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12432 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12433 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12434 (Fns_display_mm_height, Fns_display_mm_width)
12435 (Fns_display_backing_store, Fns_display_visual_class)
12436 (Fns_display_save_under, Fns_open_connection)
12437 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12438 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12439 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12440 (Fns_display_pixel_width, Fns_display_pixel_height)
12441 (Fns_display_usable_bounds, Fx_display_planes)
12442 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12443
12444 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12445
12446 * print.c (print_object): Check print_depth before searching for
12447 circularities.
12448
12449 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12450
12451 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12452 only sprintf.
12453
12454 2008-07-21 Kenichi Handa <handa@m17n.org>
12455
12456 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12457
12458 2008-07-20 Andreas Schwab <schwab@suse.de>
12459
12460 * syntax.c (find_start_pos, find_start_value)
12461 (find_start_value_byte, find_start_begv, find_defun_start)
12462 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12463
12464 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12465
12466 * s/sol2-3.h: Insert contents of s/sol2.h.
12467 (LD_SWITCH_SYSTEM): Remove redundant definition.
12468 * s/sol2.h: Remove, unused.
12469
12470 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12471
12472 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12473
12474 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12475
12476 * Makefile.in (ns_appdir): Fix typo in find command.
12477
12478 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12479
12480 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12481
12482 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12483 added not supported anymore.
12484
12485 * s/usg5-4-2.h (LIBS_SYSTEM):
12486 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12487
12488 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12489 * s/lynxos.h (GETPGRP_NO_ARG):
12490 * s/hpux10-20.h (NO_SIOCTL_H):
12491 * s/gnu.h (GETPGRP_NO_ARG):
12492 * s/gnu-linux.h (NO_SIOCTL_H):
12493 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12494 * s/cygwin.h (GETPGRP_NO_ARG):
12495 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12496 (C_DEBUG_SWITCH): Remove duplicate definition.
12497
12498 * m/ibms390.h: Remove boilerplate comments.
12499
12500 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12501
12502 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12503 (wait_reading_process_output): Remove code for SunOS, platform not
12504 supported anymore. Use SOLARIS2 instead of sun.
12505
12506 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12507
12508 * font.c (font_open_by_name): Under NS, default lface height to zero.
12509 (font_open_for_lface): Under NS, set size based on frame fontsize.
12510 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12511 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12512
12513 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12514
12515 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12516 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12517 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12518 YES/NO.
12519 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12520 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12521 * Makefile.in (clean): Clear out build destination dir.
12522
12523 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12524
12525 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12526 xterm, xselect.
12527 * lisp.h: Remove declaration of hash_remove.
12528 * nsgui.h: Remove redefinitions of hash_remove.
12529 * fns.c (hash_remove): Rename to hash_remove_from_table.
12530
12531 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12532
12533 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12534 strdup() the family UTF8String before modifying it.
12535
12536 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12537
12538 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12539 NS_FACE_BACKGROUND with 0 instead of nil.
12540 * nsfont.m (nsfont_draw): Same.
12541
12542 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12543
12544 * nsfns.m (ns_set_background_color): Fix crash.
12545
12546 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12547
12548 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12549
12550 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12551
12552 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12553
12554 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12555
12556 * gtkutil.c: Include <config.h> instead of "config.h".
12557
12558 * lisp.h (Foverlay_buffer): Add EXFUN.
12559
12560 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12561 child process to complete child_setup. Undo 2005-09-21 change.
12562
12563 * s/darwin.h: Mention setsid after vfork.
12564
12565 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12566
12567 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12568 Depend on macgui.h.
12569
12570 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12571 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12572
12573 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12574 and f19.
12575 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12576
12577 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12578 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12579 Remove enumerators.
12580
12581 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12582 Check if FACE_FROM_ID returns NULL.
12583
12584 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12585
12586 * w32inevt.c (change_frame_size): Remove extern declaration.
12587 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12588 change_frame_size.
12589
12590 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12591
12592 * getloadavg.c: Revert last change (2008-07-15).
12593
12594 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12595
12596 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12597 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12598 from configure.
12599
12600 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12601
12602 * s/sol2.h:
12603 * s/sol2-4.h: Reorganize conditionals.
12604
12605 * ecrt0.c: Remove code depending on m68000, not used anymore.
12606
12607 * fns.c (hash_remove): Make static.
12608 * lisp.h (hash_remove): Don't prototype.
12609
12610 * m/ibmrs6000.h:
12611 * m/ibms390x.h:
12612 * m/macppc.h: Remove boilerplate comments.
12613
12614 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12615 Solaris, which does not need them.
12616
12617 * m/vax.h: Remove comments about unsupported systems.
12618
12619 * s/darwin.h: Reorganize ifdefs.
12620
12621 2008-07-17 Andreas Schwab <schwab@suse.de>
12622
12623 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12624
12625 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12626
12627 Use SDATA. Follow coding convention of placing operators at
12628 beginning of next line rather than end of previous line, and placing
12629 spaces around infix operators.
12630
12631 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12632 in case it was defined already.
12633 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12634 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12635 ns_default.
12636 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12637 Lisp_Objects.
12638 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12639 (ns_defined_color, ns_color_to_lisp): Declare.
12640 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12641 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12642 it's accepted even with USE_LISP_UNION_TYPE.
12643 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12644 (update_frame_tool_bar): Remove apparently obsolete tests for
12645 non-integerness of f->tool_bar_lines.
12646 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12647 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12648 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12649 (nsfont_open): Don't confuse NULL for Qnil.
12650 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12651 * menu.h (find_and_call_menu_selection):
12652 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12653 (find_and_return_menu_selection): Always return something.
12654 * frame.h: Include dispextern.h for Display_Info.
12655 (display_x_get_resource): Declare.
12656
12657 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12658
12659 * syntax.c: Remove stdio.h include accidentally introduced in
12660 Emacs.app commit.
12661 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12662 NS_IMPL_COCOA.
12663 * keyboard.c (handle_async_input, input_available_signal): Remove
12664 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12665
12666 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12667
12668 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12669 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12670 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12671 Use SDATA.
12672
12673 * keymap.c: Remove all NS-specific code.
12674 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12675 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12676 where_is_preferred_modifier, return a different value depending on how
12677 preferred is the binding.
12678 (where_is_internal): Adjust accordingly.
12679 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12680 Adjust to new preferred_sequence_p.
12681 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12682 * keyboard.c (parse_solitary_modifier): Not static any more.
12683 * keyboard.h (parse_solitary_modifier): Declare.
12684
12685 2008-07-16 Andreas Schwab <schwab@suse.de>
12686
12687 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12688 of easymenu.
12689
12690 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
12691
12692 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12693 that we don't move off the line.
12694
12695 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12696
12697 * keyboard.c (Qsuper): Remove.
12698 (parse_menu_item): Don't call where_is_internal specially for NS.
12699
12700 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12701
12702 * s/gnu-linux.h: Remove boilerplate comments.
12703
12704 * m/alpha.h (__ELF__): Consolidate conditions.
12705
12706 * m/m68k.h (linux): Use GNU_LINUX instead.
12707 Remove boilerplate comments.
12708
12709 * m/intel386.h: Undo refactoring from previous change.
12710 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12711 too, remove dead code.
12712 (linux): Use GNU_LINUX instead.
12713
12714 2008-07-16 Jason Rumney <jasonr@gnu.org>
12715
12716 * w32gui.h: Repeat 26 June changes lost by last change.
12717
12718 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12719
12720 * systty.h: Remove code for Aix on 386, unsupported platform.
12721
12722 * s/ms-w32.h: Remove boilerplate comments.
12723 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12724
12725 * s/gnu-linux.h (TERM): Remove support.
12726 (HAVE_SYSVIPC): Remove, unused.
12727 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12728 for this system.
12729
12730 * process.c: Remove support for IRIS, unused.
12731 Remove support for TERM, not relevant anymore.
12732
12733 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12734 used with the definition.
12735
12736 * s/aix4-2.h (static): Do not undef.
12737
12738 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12739 only used on Aix.
12740 (HAVE_SYSVIPC): Remove, unused.
12741
12742 * m/hp800.h (CANNOT_DUMP): Do not undef.
12743
12744 * m/alpha.h: Fix comment.
12745
12746 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12747 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12748 used by this configuration.
12749 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12750 * unexec.c: Remove code depending on HPUX and
12751 USG_SHARED_LIBRARIES, not used with this file. Remove code
12752 depending on IRIS, unused. Remove if 0-ed code.
12753
12754 * s/template.h: Remove comments about static.
12755
12756 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12757 Remove if 0-ed code.
12758 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12759 were the same as the default.
12760 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12761 Remove boilerplate comments.
12762 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12763 (HAVE_SYSVIPC): Remove, unused.
12764 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12765
12766 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12767 Remove boilerplate comments.
12768 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12769 Remove boilerplate comments.
12770 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12771 Remove boilerplate comments.
12772 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12773
12774 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12775 USG systems which do not use DATA_SEG_BITS.
12776 Refactor code. Remove boilerplate comments.
12777
12778 * m/ibms390.h:
12779 * m/m68k.h:
12780 * s/bsd-common.h:
12781 * s/cygwin.h:
12782 * s/darwin.h:
12783 * s/freebsd.h:
12784 * s/gnu.h:
12785 * s/msdos.h: Remove boilerplate comments.
12786
12787 * m/iris4d.h: Remove boilerplate comments and code for systems that
12788 do not use this file.
12789 (IRIS_4D): Remove, unused.
12790
12791 * m/mips.h: Remove boilerplate comments and code for systems that
12792 do not use this file.
12793 (SIGN_EXTEND_CHAR):
12794 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12795 * unexmips.c: Remove file, unused.
12796
12797 * editfns.c (Fuser_full_name): Replace the only use of
12798 USER_FULL_NAME with its value.
12799 * config.in: Regenerate.
12800
12801 2008-07-16 David Reitter <david.reitter@gmail.com>
12802
12803 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12804 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12805
12806 2008-07-16 Glenn Morris <rgm@gnu.org>
12807
12808 * emacs.c (system-type): Doc fix.
12809
12810 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12811
12812 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12813 If the cache doesn't work, let's fix it, rather than work around it.
12814
12815 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12816
12817 * Makefile.in: Correct additions for nsfont.o in last commit.
12818 * nsfont.m: New file (forgot last commit).
12819
12820 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12821
12822 * callproc.c (set_initial_environment): Initialize
12823 Vprocess_environment under CANNOT_DUMP (fixes crash when
12824 batch-compiling for bootstrap).
12825
12826 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12827 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12828
12829 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12830 CANNOT_DUMP case -- fix crash due to different init order.
12831
12832 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12833
12834 Changes and additions for NeXTstep windowing system (Cocoa and
12835 GNUstep) support.
12836
12837 * Makefile.in:
12838 * config.in: Support defines and build commands for NS port.
12839 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12840 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12841 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12842 windowing.
12843 (struct face): Add synth_ital field.
12844 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12845 (init_display): Initialize Vinitial_window_system to "ns" when so
12846 compiled.
12847 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12848 (display_arg): Use under NS.
12849 (main): Under NS, allocate autorelease pool and handle command line
12850 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12851 (standard_args): Add NS-specific args.
12852 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12853 * font.c (DEFAULT_ENCODING): New variable.
12854 (font_find_for_lface): Use it.
12855 (syms_of_font): Load syms_of_nsfont under NS.
12856 * font.h: Declare nsfont_driver when compiled under NS.
12857 * fontset.c: When compiling under NS, include nsterm.h.
12858 (fontset_from_font): Autoconstruct fontset under NS.
12859 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12860 symbol, document and use it.
12861 (do_switch_frame): When for_deletion under Cocoa, add
12862 Fraise_frame(Qnil).
12863 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12864 (x_get_arg): Allow "yes" and "no" as boolean values.
12865 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12866 Qright under Cocoa.
12867 (focus-follows-mouse): Default to 0 under NS.
12868 * frame.h (enum output_method): Add output_ns.
12869 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12870 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12871 (FRAME_WINDOW_P): NS-specific definition.
12872 * fringe.c (max_used_fringe_bitmap): Make public.
12873 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12874 (getloadavg): Use NeXT code under descendant OS's.
12875 * image.c (includes and header section, x_create_bitmap_from_data)
12876 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12877 (image_background_transparent, x_clear_image_1)
12878 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12879 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12880 (x_to_xcolors, x_from_xcolors, x_disable_image)
12881 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12882 other GUIs, including XPM support using code originally written for
12883 Carbon GUI.
12884 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12885 using NS API.
12886 (image_ascent): Use font metrics macros instead of direct struct field
12887 access.
12888 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12889 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12890 Also, handle NS as GTK for menu bar purposes.
12891 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12892 toolkit where they differ.
12893 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12894 use cachelist, still needed under NS.
12895 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12896 (struct widget_value): Define it here for menu.c.
12897 * keymap.c (includes): Include modifier internals.
12898 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12899 NS.
12900 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12901 support for preferring sequences using certain modifiers, specified by
12902 the FIRSTONLY argument.
12903 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12904 under NS GNUstep implementation.
12905 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12906 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12907 * menu.c: Include nsterm.h under NS.
12908 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12909 (free_menubar_widget_tree_value, update_submenu_strings)
12910 (find_and_call_menu_selection): Treat NS as X and NT.
12911 (find_and_return_menu_selection): New function, used for popup menus.
12912 * nsgui.h:
12913 * nsterm.h:
12914 * nsfns.m:
12915 * nsimage.m:
12916 * nsmenu.m:
12917 * nsselect.m:
12918 * nsterm.m: New files.
12919 * process.c (wait_reading_process_output): Under NS, call ns_select()
12920 instead of plain select().
12921 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12922 beginning of buffer.
12923 * sysselect.h (init_process): Rename when compiling under Cocoa to
12924 avoid name conflict.
12925 * termhooks.h (display_info): Add ns_display_info to union.
12926 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12927 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12928 COCOA environment.
12929 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12930 unexec() signature. (Note, this will dump, but the resulting file
12931 crashes; unexosx is used instead; keeping around for reference and
12932 possible aid in getting dump working under GNUstep.)
12933 * w32gui.h (button_type, widget_value): Remove definitions (now in
12934 keyboard.h).
12935 * window.c: Include nsterm.h when compiling under NS.
12936 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12937 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12938 other GUI windowing systems.
12939 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12940 GTK.
12941 (x_consider_frame_title): Under NS, set icon type and frame
12942 modified-state indicator; use ns_set_name_as_filename() when using
12943 formatted title.
12944 (update_window_cursor): Make public when compiling under NS.
12945 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12946 (hourglass_atimer, Vhourglass_delay
12947 * xfaces.c (header section, init_frame_faces, clear_font_table)
12948 (defined_color, unload_color, x_face_list_fonts)
12949 (prepare_face_for_display): Add NS support parallel to other GUIs.
12950 Emulate GCs like other non-X GUIs.
12951 (split_font_name): Don't lowercase font name under NS.
12952 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12953 under NS.
12954 * s/darwin.h: Add support for compilation under NS.
12955
12956 2008-07-15 Jason Rumney <jasonr@gnu.org>
12957
12958 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12959 (w32_show_hourglass): Rename from show_hourglass.
12960 (w32_hide_hourglass): Rename from hide_hourglass.
12961 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12962 (Vhourglass_delay): Declare extern.
12963 (hourglass_started): Remove.
12964
12965 * xdisp.c (Vhourglass_delay): Remove static.
12966 (hourglass_started, start_hourglass, cancel_hourglass):
12967 Don't include these versions on WINDOWSNT.
12968
12969 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12970
12971 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12972 variables (formerly in xfns.c).
12973 (show_hourglass, hide_hourglass): New prototypes (same).
12974 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12975 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12976 in xfns.c).
12977 (syms_of_xdisp): Declare/initialize display-hourglass,
12978 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12979 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12980 formerly in xfns.c.
12981 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12982 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12983 (start_hourglass, cancel_hourglass): Remove.
12984 (show_hourglass, hide_hourglass): Remove prototypes and static
12985 modifiers.
12986 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12987 hourglass_atimer, hourglass_shown_p declaration/initialization.
12988 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12989 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12990 (start_hourglass, cancel_hourglass): Remove.
12991 (show_hourglass, hide_hourglass): Remove prototypes and static
12992 modifiers.
12993 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12994 hourglass_atimer, hourglass_shown_p declaration/initialization.
12995 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12996 (DEFAULT_HOURGLASS_DELAY): Remove.
12997 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12998 hourglass_shown_p declaration/initialization.
12999
13000 2008-07-14 Jason Rumney <jasonr@gnu.org>
13001
13002 * w32fns.c (w32_get_arg): Remove wrapper function.
13003 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13004 directly.
13005 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13006
13007 2008-07-14 Kenichi Handa <handa@m17n.org>
13008
13009 * xfont.c (xfont_open): Add workaround for X's bug.
13010
13011 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13012
13013 * fontset.c: Include <stdio.h> unconditionally.
13014
13015 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
13016
13017 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13018 for filtering.
13019
13020 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13021
13022 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13023
13024 * m/macppc.h:
13025 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13026
13027 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
13028 (SPECIAL_EMACS_INT):
13029 * m/ia64.h (SPECIAL_EMACS_INT):
13030 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13031 * s/gnu.h (NLIST_STRUCT):
13032 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13033 * s/gnu-linux.h (LINUX):
13034 * s/msdos.h (HAVE_FACES):
13035 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13036
13037 * systty.h:
13038 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13039 anymore.
13040
13041 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13042
13043 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13044 always defined as int.
13045
13046 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13047 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13048 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13049 * s/freebsd.h (HAVE_WAIT_HEADER):
13050 * s/bsd-common.h (HAVE_UNION_WAIT):
13051 * s/aix4-2.h (HAVE_WAIT_HEADER):
13052 * m/mips.h (HAVE_UNION_WAIT):
13053 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13054 (COFF, static): Do not define, they are undefined later in the file.
13055
13056 * process.c (update_status): Don't use a union.
13057 (status_convert):
13058 (sigchld_handler): Use int instead of WAITTYPE.
13059
13060 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13061
13062 * indent.c (Fvertical_motion): Restore hscroll before moving to
13063 goal column.
13064
13065 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13066
13067 * lisp.h: Remove left over code.
13068
13069 2008-07-11 Andreas Schwab <schwab@suse.de>
13070
13071 * lisp.h: Fix logic in last change.
13072
13073 * menu.h: New file.
13074 * menu.c: Include it.
13075 * xmenu.c: Likewise.
13076 * Makefile.in: Update dependencies.
13077
13078 2008-07-11 Kenichi Handa <handa@m17n.org>
13079
13080 * fontset.c (fontset_from_font): Cancel the previous change.
13081
13082 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13083
13084 * lisp.h:
13085 * w32heap.c:
13086 * emacs.c:
13087 * alloc.c: Replace all references of NO_UNION_TYPE with
13088 USE_LISP_UNION_TYPE.
13089
13090 * m/xtensa.h (NO_UNION_TYPE):
13091 * m/vax.h (NO_UNION_TYPE):
13092 * m/template.h (NO_UNION_TYPE):
13093 * m/sparc.h (NO_UNION_TYPE):
13094 * m/mips.h (NO_UNION_TYPE):
13095 * m/macppc.h (NO_UNION_TYPE):
13096 * m/m68k.h (NO_UNION_TYPE):
13097 * m/iris4d.h (NO_UNION_TYPE):
13098 * m/intel386.h (NO_UNION_TYPE):
13099 * m/ibms390x.h (NO_UNION_TYPE):
13100 * m/ibms390.h (NO_UNION_TYPE):
13101 * m/ibmrs6000.h (NO_UNION_TYPE):
13102 * m/ia64.h (NO_UNION_TYPE):
13103 * m/hp800.h (NO_UNION_TYPE):
13104 * m/arm.h (NO_UNION_TYPE):
13105 * m/amdx86-64.h (NO_UNION_TYPE):
13106 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13107 defining it the same.
13108
13109 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13110
13111 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13112
13113 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13114
13115 * fileio.c:
13116 * sysdep.c:
13117 * systty.h:
13118 * m/ibmrs6000.h:
13119 * m/iris4d.h:
13120 * s/aix4-2.h:
13121 * s/freebsd.h:
13122 * s/gnu-linux.h:
13123 * s/hpux10-20.h:
13124 * s/hpux11.h:
13125 * s/netbsd.h:
13126 * s/sol2-3.h:
13127 * s/sol2-4.h:
13128 * s/sol2.h:
13129 * s/usg5-4.h:
13130 * s/vms.h: Remove references to unused variables.
13131
13132 2008-07-10 Andreas Schwab <schwab@suse.de>
13133
13134 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13135 pattern before matching the generic family.
13136
13137 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13138
13139 * unexec.c:
13140 * s/vms.h:
13141 * s/usg5-4-2.h:
13142 * s/sol2-5.h:
13143 * s/freebsd.h:
13144 * s/darwin.h: Remove dead code.
13145
13146 * m/template.h:
13147 * m/sparc.h:
13148 * m/mips.h:
13149 * m/m68k.h:
13150 * m/iris4d.h:
13151 * m/intel386.h:
13152 * m/ibms390x.h:
13153 * m/ibms390.h:
13154 * m/ia64.h:
13155 * m/hp800.h:
13156 * m/arm.h:
13157 * m/amdx86-64.h: Remove dead code and references to unused
13158 and compiler defined symbols.
13159
13160 * unexmips.c:
13161 * unexelf.c: Remove references to desupported systems.
13162
13163 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13164
13165 * m/powermac.h: Remove boilerplate comments.
13166 (NO_REMAP): Remove unused definition.
13167
13168 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13169 define them.
13170
13171 2008-07-10 Kenichi Handa <handa@m17n.org>
13172
13173 * xfont.c (xfont_open): Log the reason of failure.
13174
13175 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * fontset.c (fontset_get_font_group):
13178 * font.c (font_check_otf): Specify argument types.
13179
13180 2008-07-09 Kenichi Handa <handa@m17n.org>
13181
13182 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13183 non-ASCII char is found.
13184
13185 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13186 (reorder_font_vector): Change the arg preferred_family to font.
13187 Prefer the spec matching with font.
13188 (fontset_get_font_group): New function.
13189 (fontset_find_font): Change the format of an element of a realized
13190 fontset. Use fontset_get_font_group.
13191 (fontset_font): Try the current fontset, the default fontset, the
13192 fallbacks of the current fontset, and the fallbacks of the default
13193 fontset in this order.
13194 (face_for_char): Delete the shortcut to use the current font.
13195 (fontset_from_font): Don't set fonts for Latin in the fontset.
13196
13197 * font.h (font_make_object, font_match_p): Adjust prototypes.
13198
13199 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13200
13201 * font.c (font_make_object): New arg entity and pixelsize.
13202 (font_check_otf_features, font_check_otf): New functions.
13203 (font_match_p): Check :lang, :script, and :otf properties.
13204
13205 * xfont.c (xfont_open): Adjust it for the change of
13206 font_make_object.
13207 (xfont_text_extents): Fix initial setting of metrics.
13208
13209 * ftfont.c (struct ftfont_info): New member index, delete member
13210 fc_charset_idx. Make the member order compatible with struct
13211 xftfont_info.
13212 (fc_charset_table): Change charset names to registry names.
13213 (ftfont_pattern_entity): Delete the args registry and
13214 fc_charset_idx. Change the value of :font-entity property
13215 to (FONTNAME . INDEX). Always set :registry property to
13216 `iso10646-1'.
13217 (struct ftfont_cache_data): New struct.
13218 (ftfont_lookup_cache): New arg for_face.
13219 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13220 (ftfont_driver): Set the member otf_capability.
13221 (ftfont_get_charset): Adjust it for the change of
13222 fc_charset_table.
13223 (OTF_TAG_SYM): New macro.
13224 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13225 for the change of fc_charset_table.
13226 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13227 ftfont_pattern_entity. Add FC_INDEX to objset.
13228 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13229 and ftfont_pattern_entity.
13230 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13231 font_make_object, struct ftfont_info.
13232 (ftfont_has_char): Use ftfont_get_fc_charset.
13233 (ftfont_otf_features, ftfont_otf_capability): New functions.
13234 (ftfont_shape): Use ftfont_get_otf.
13235 (ftfont_text_extents): Fix initial setting of metrics.
13236
13237 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13238 member order compatible with struct ftfont_info.
13239 (xftfont_open): Add FC_CHARSET to the pattern. Set
13240 xftfont_info->ft_size. Don't unlock the face. Check BDF
13241 properties if appropriate.
13242 (xftfont_close): Unlock the face.
13243 (xftfont_anchor_point, xftfont_shape): Deleted.
13244 (syms_of_xftfont): Don't set members anchor_point and shape of
13245 xftfont_driver.
13246
13247 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13248 font_make_object.
13249
13250 * w32font.c (w32font_open): Adjust it for the change of
13251 font_make_object.
13252 (w32font_open_internal): Don't set properties of font_object here.
13253
13254 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13255
13256 * macfns.c (x_create_tip_frame):
13257 * w32fns.c (x_create_tip_frame):
13258 * xfns.c (x_create_tip_frame): Pass parameter argument to
13259 face-set-after-frame-default.
13260
13261 * xfaces.c (Finternal_merge_in_global_face): Save merged
13262 attributes for the default face back into the face vector.
13263
13264 2008-07-08 Andreas Schwab <schwab@suse.de>
13265
13266 * fontset.h: Declare fontset_from_font. Don't declare
13267 new_fontset_from_font and fontset_from_font_name.
13268 * xterm.c: Include "fontset.h".
13269 * Makefile.in (xterm.o): Update dependencies.
13270
13271 2008-07-08 Glenn Morris <rgm@gnu.org>
13272
13273 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13274 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13275
13276 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13277
13278 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13279 (x_set_frame_parameters): Don't bind it.
13280
13281 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13282
13283 * w32fns.c (map_w32_filename): Declare extern.
13284
13285 2008-07-07 Jason Rumney <jasonr@gnu.org>
13286
13287 * w32term.c (WS_EX_LAYERED): Define if not already.
13288
13289 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13290
13291 * xfaces.c (set_font_frame_param): Don't try to set the font
13292 parameter if it is still unspecified in the lface.
13293
13294 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13295
13296 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13297 face if it didn't already exist.
13298
13299 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13300
13301 2008-07-05 Andreas Schwab <schwab@suse.de>
13302
13303 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13304
13305 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13306
13307 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13308 word-wrapping.
13309 (IT_DISPLAYING_WHITESPACE): New macro.
13310 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13311 when word-wrapping. Simplify word-wrapping logic. Use correct
13312 pixel positions when saving copies of the iterator.
13313 (display_line): Use proper wrap point if the last character on a
13314 line was preceded by whitespace.
13315
13316 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13317
13318 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13319
13320 2008-07-04 Kenichi Handa <handa@m17n.org>
13321
13322 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13323
13324 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13325
13326 2008-07-02 Jason Rumney <jasonr@gnu.org>
13327
13328 * xfns.c (syms_of_xfns): Only define x-select-font when both
13329 HAVE_FREETYPE and USE_GTK.
13330
13331 * xdisp.c (next_element_from_display_vector): Move assignment out
13332 of if statement.
13333
13334 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13335
13336 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13337
13338 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13339 (syms_of_fileio): Initialize and export them.
13340 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13341
13342 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13343 (Fsystem_move_file_to_trash): New function.
13344 (syms_of_w32fns): Export it to lisp.
13345
13346 2008-07-01 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32font.c (w32font_text_extents): Don't count overhang as part
13349 of width.
13350
13351 2008-06-30 Miles Bader <miles@gnu.org>
13352
13353 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13354 Add `avoid_cursor_p' field.
13355
13356 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13357 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13358 (append_glyph, append_composite_glyph, produce_image_glyph)
13359 (append_stretch_glyph): Initialize avoid_cursor_p.
13360 (get_it_property): Rename from `get_line_height_property'.
13361 (x_produce_glyphs): Use get_it_property.
13362 (handle_line_prefix, push_display_prop): New functions.
13363 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13364 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13365 New variables.
13366 (syms_of_xdisp): Initialize them.
13367
13368 2008-06-30 Kenichi Handa <handa@m17n.org>
13369
13370 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13371 XftDefaultSubstitute (they are called in XftFontMatch).
13372 (xftfont_open): Fix args to ftfont_font_format.
13373
13374 * ftfont.c (fc_charset_table): New member lang.
13375 (ftfont_resolve_generic_family): New arg pattern.
13376 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13377 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13378 (ftfont_open): Fix args to ftfont_font_format.
13379 (ftfont_font_format): New arg filename.
13380
13381 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13382
13383 * xfaces.c (Finternal_merge_in_global_face): If default face was
13384 modified, realize it again. Update the font face attribute.
13385
13386 2008-06-29 Jason Rumney <jasonr@gnu.org>
13387
13388 * w32term.c (x_set_frame_alpha): Fix logic.
13389
13390 2008-06-29 Kenichi Handa <handa@m17n.org>
13391
13392 * fontset.c (Finternal_char_font): Return font-object instead of
13393 font-name.
13394
13395 * composite.c (get_composition_id): Fix the width calculation for TAB.
13396
13397 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13398
13399 * indent.c (Fvertical_motion): Properly handle float column arg.
13400
13401 2008-06-28 Jason Rumney <jasonr@gnu.org>
13402
13403 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13404 (pfnSetLayeredWindowAttributes): New function pointer.
13405 (w32_initialize): Initialize it when supported.
13406 (x_set_frame_alpha): New function.
13407
13408 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13409 (w32_frame_parm_handlers): Set alpha handler.
13410
13411 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13412
13413 2008-06-27 Jason Rumney <jasonr@gnu.org>
13414
13415 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13416 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13417 (w32_to_x_charset, x_to_w32_charset)
13418 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13419 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13420 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13421 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13422 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13423 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13424 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13425 (Qw32_charset_unicode): Remove.
13426 (syms_of_w32fns): Update for above changes.
13427
13428 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13429 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13430 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13431 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13432 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13433 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13434 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13435 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13436 (syms_of_w32font): Update for above changes.
13437
13438 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13439
13440 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13441 removed #if.
13442 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13443
13444 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13445 Eli Zaretskii <eliz@gnu.org>
13446
13447 * makefile.w32-in (LOCAL_FLAGS):
13448 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13449
13450 * sysdep.c (_spawnlp, _getpid):
13451 Declare with explicit _cdecl instead of _CRTAPI1.
13452
13453 * editfns.c (Fget_internal_run_time):
13454 Check for WINDOWSNT with #ifdef, not #if.
13455
13456 2008-06-26 Jason Rumney <jasonr@gnu.org>
13457
13458 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13459
13460 * w32term.c (x_draw_glyph_string_foreground)
13461 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13462 Use FONT_HANDLE macro.
13463 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13464
13465 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13466 (uniscribe_encode_char): Use FONT_HANDLE macro.
13467
13468 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13469 (w32font_text_extents): Use precast w32_font.
13470 (w32font_close): Free cached metrics.
13471 (w32font_open_internal): Allocate space for name on stack.
13472
13473 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13474
13475 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13476
13477 2008-06-26 Jason Rumney <jasonr@gnu.org>
13478
13479 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13480 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13481
13482 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13483
13484 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13485
13486 2008-06-26 Jason Rumney <jasonr@gnu.org>
13487
13488 * w32bdf.c, w32bdf.h: Remove obsolete files.
13489
13490 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13491
13492 * w32gui.h: Don't include w32bdf.h.
13493 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13494 Remove obsolete font support.
13495
13496 * w32font.h (struct w32font_info): Remove compat_w32_font.
13497 Add hfont member.
13498 (FONT_COMPAT): Remove obsolete macro.
13499
13500 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13501 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13502 (w32font_open_internal): Remove compat code. Set new hfont member.
13503 (Fx_select_font): Use new hfont member.
13504
13505 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13506 (uniscribe_encode_char): Use new hfont member.
13507
13508 * w32term.c (x_draw_glyph_string_foreground)
13509 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13510 (x_draw_glyph_string): Use metrics in w32font_info.
13511
13512 2008-06-26 Kenichi Handa <handa@m17n.org>
13513
13514 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13515
13516 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13517
13518 * unexnext.c:
13519 * m/ews4800.h:
13520 * m/hp9000s300.h:
13521 * m/ibm370aix.h:
13522 * m/mips-siemens.h:
13523 * m/ncr386.h:
13524 * m/next.h:
13525 * m/pmax.h:
13526 * m/powerpcle.h:
13527 * m/tandem-s2.h:
13528 * s/386bsd.h:
13529 * s/bsd386.h:
13530 * s/bsd4-1.h:
13531 * s/bsd4-2.h:
13532 * s/bsdos2-1.h:
13533 * s/bsdos2.h:
13534 * s/bsdos3.h:
13535 * s/bsdos4.h:
13536 * s/nextstep.h:
13537 * s/ultrix4-3.h:
13538 * s/usg5-0.h:
13539 * s/usg5-2-2.h:
13540 * s/usg5-2.h:
13541 * s/usg5-4-3.h:
13542 * s/ux4800.h:
13543 * s/uxpds.h:
13544 * s/uxpv.h: Remove support for obsolete systems.
13545 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13546 Remove, insert contents in s/hpux10-20.h.
13547 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13548 Remove, insert contents in s/aix4-2.h.
13549 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13550 * s/bsd4-3.h: Rename to ...
13551 * s/bsd-common.h: ... this.
13552 * data.c:
13553 * doc.c:
13554 * ecrt0.c:
13555 * emacs.c:
13556 * fileio.c:
13557 * floatfns.c:
13558 * keyboard.c:
13559 * mem-limits.h:
13560 * print.c:
13561 * process.c:
13562 * sysdep.c:
13563 * syssignal.h:
13564 * systty.h:
13565 * syswait.h:
13566 * term.c:
13567 * unexec.c:
13568 * unexelf.c:
13569 * unexhp9k800.c:
13570 * m/hp800.h:
13571 * m/ibmrs6000.h:
13572 * m/mips.h:
13573 * m/vax.h:
13574 * s/darwin.h:
13575 * s/freebsd.h:
13576 * s/gnu.h:
13577 * s/ms-w32.h:
13578 * s/msdos.h:
13579 * s/netbsd.h:
13580 * s/template.h: Remove references to obsolete variables.
13581
13582 * Makefile.in: Add dependencies for all unexec files.
13583 (admindir): Remove unused variable.
13584 (UNEXEC_SRC): Remove references.
13585
13586 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13587
13588 * xfns.c (x_default_font_parameter): If Xft is available, first
13589 try Monospace-12 for the default font.
13590
13591 2008-06-25 Jason Rumney <jasonr@gnu.org>
13592
13593 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13594
13595 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13596
13597 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13598
13599 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13600
13601 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13602
13603 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13604 <scroll-conservatively>: Fix typo in docstring.
13605
13606 * xselect.c (Fx_send_client_event): Doc fix.
13607
13608 2008-06-25 Kenichi Handa <handa@m17n.org>
13609
13610 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13611
13612 * font.c (font_parse_fcname): Remove unused variables.
13613 (font_sort_entites): Delete the arg SPEC. Caller changed.
13614 Fix for the case of ! best_only.
13615 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13616
13617 * lisp.h (Fstring_to_unibyte): EXFUN it.
13618
13619 * character.h (str_to_unibyte): Extern it.
13620
13621 * character.c (str_to_unibyte): New function.
13622
13623 * fns.c (Fstring_to_unibyte): New function.
13624 (syms_of_fns): Defsubr it.
13625
13626 2008-06-24 Kenichi Handa <handa@m17n.org>
13627
13628 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13629 DPI too.
13630 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13631
13632 2008-06-24 Andreas Schwab <schwab@suse.de>
13633
13634 * Makefile.in (${lispsource}loaddefs.el): Rename from
13635 ../lisp/loaddefs.el.
13636 (bootstrap-clean): Do what distclean does but don't remove
13637 Makefile.
13638 (distclean): Depend on bootstrap-clean and remove Makefile.
13639
13640 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
13641
13642 * buffer.h (struct buffer): New member word_wrap.
13643
13644 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13645 word-wrap.
13646 (init_buffer_once): Initialize them.
13647
13648 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13649 line_wrap enum possessing three possible values.
13650
13651 * termopts.h: Replace truncate_partial_width_windows with
13652 Vtruncate_partial_width_windows.
13653
13654 * dispnew.c (direct_output_for_insert): Avoid direct output when
13655 inserting a space with word wrap on.
13656
13657 * indent.c (compute_motion): Obey integer values of
13658 truncate-partial-width-windows.
13659
13660 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13661 replacing truncate_partial_width_windows.
13662 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13663 truncate only if the window width is below that integer.
13664 (start_display, resize_mini_window, produce_stretch_glyph)
13665 (display_string, move_it_in_display_line_to): Use line_wrap.
13666 (back_to_previous_visible_line_start, reseat_1): Reset
13667 string_from_display_prop_p.
13668 (display_line): Extend default face to end of line when wrapping.
13669
13670 2008-06-24 Kim F. Storm <storm@cua.dk>
13671
13672 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13673 to wrap continued lines at word boundaries.
13674
13675 2008-06-24 Jason Rumney <jasonr@gnu.org>
13676
13677 * font.c (Ffont_face_attributes): Multiply pixel size before point
13678 conversion to avoid multiplying rounding error.
13679
13680 2008-06-23 Jason Rumney <jasonr@gnu.org>
13681
13682 * w32term.c (x_draw_glyph_string_background)
13683 (x_draw_glyph_string): Remove old bdf font code.
13684
13685 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13686
13687 2008-06-22 Kenichi Handa <handa@m17n.org>
13688
13689 * font.c (font_find_for_lface): Try the adstyle specified in
13690 the property of LFACE_FONT of LFACE (if any).
13691
13692 2008-06-21 Seiji Zenitani <zenitani@mac.com>
13693 Ryo Yoshitake <ryo@shiftmode.net>
13694
13695 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13696
13697 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13698
13699 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13700 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13701 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13702 (witness-emacs): Remove.
13703 (lisp, shortlisp): Move loaddefs.el earlier.
13704 (mostlyclean): Forget about witness-emacs.
13705
13706 2008-06-22 Glenn Morris <rgm@gnu.org>
13707
13708 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13709 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13710
13711 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13712
13713 * Makefile.in (PRECOMP): Remove.
13714 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13715 (witness-emacs): Run `compile-first'.
13716 (.el.elc): Use the new compile-onefile target.
13717
13718 2008-06-21 Kenichi Handa <handa@m17n.org>
13719
13720 * xftfont.c (xftfont_open): Handle QCembolden only when
13721 FC_EMBOLDEN is defined.
13722
13723 2008-06-21 Andreas Schwab <schwab@suse.de>
13724
13725 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13726 (.el.elc): Likewise.
13727
13728 2008-06-21 Miles Bader <miles@gnu.org>
13729
13730 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13731 build dir, not the lisp source dir.
13732
13733 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13734
13735 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13736 (bootstrapclean): Remove.
13737 (.el.elc): New rule.
13738 (PRECOMP): New var.
13739 (../lisp/subdirs.el): Remove.
13740 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13741 (witness-emacs): New target.
13742 (mostlyclean): Remove witness-emacs as well.
13743 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13744 Add witness-emacs dependency.
13745
13746 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
13747
13748 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13749 defined by the font.
13750
13751 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13752
13753 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13754 (bootstrap-clean): New target that keeps TAGS around.
13755 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13756 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13757
13758 2008-06-20 Jason Rumney <jasonr@gnu.org>
13759
13760 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13761 Remove obsolete font code.
13762
13763 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13764 to determine language support.
13765
13766 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13767
13768 * sysdep.c (cfsetspeed): New fun extracted from the code.
13769 (cfmakeraw): Move before first use.
13770
13771 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13772
13773 * sysdep.c (cfmakeraw): Provide fallback implementation.
13774 (serial_configure): Provide fallback implementation of cfsetspeed.
13775
13776 2008-06-20 Kenichi Handa <handa@m17n.org>
13777
13778 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13779 the pattern.
13780
13781 * fontset.c (fontset_from_font): Copy font_spec before changing
13782 the elements.
13783
13784 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13785
13786 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13787
13788 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13789 for explicit `font' parameters.
13790
13791 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13792
13793 2008-06-19 Kenichi Handa <handa@m17n.org>
13794
13795 * frame.c: Include <ctype.h>.
13796 (x_set_font_backend): Allow spacing characters in the X resource
13797 for FontBackend.
13798
13799 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13800
13801 * w32fns.c, xfns.c (Qfont_param): New var.
13802 (syms_of_w32fns): Initialize it.
13803 (x_default_font_parameter): Record explicit `font' into
13804 `font-parameter'.
13805
13806 2008-06-18 Kenichi Handa <handa@m17n.org>
13807
13808 * font.c (font_parse_xlfd): Fix previous change.
13809 (font_parse_fcname): Don't use :fc-unknown-spec.
13810 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13811 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13812 (font_add_log): Prepend the driver name to the resulting fonts.
13813
13814 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13815 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13816 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13817
13818 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13819 (QCembolden): New variables.
13820 (syms_of_xftfont): DEFSYM them.
13821 (xftfont_open): Call XftFontMatch. Don't trust the result of
13822 XftTextExtents8 if the pixel_size is less than 5.
13823
13824 2008-06-18 Andreas Schwab <schwab@suse.de>
13825
13826 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13827 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13828
13829 2008-06-18 Jason Rumney <jasonr@gnu.org>
13830
13831 * w32font.c (w32font_list, w32font_match): Add logging.
13832
13833 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13834
13835 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13836
13837 * font.c (font_parse_fcname): Store divider characters for
13838 unknown-spec list. For known key symbols, intern using correct
13839 symbol name.
13840
13841 2008-06-17 Kenichi Handa <handa@m17n.org>
13842
13843 * xfaces.c (realize_default_face): If the frame is not on window
13844 system, set the fontset of face to nil.
13845
13846 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13847
13848 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13849
13850 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13851
13852 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13853 (build_font_name_from_vector): Delete externs.
13854
13855 * xfaces.c (struct font_name): Don't declare.
13856
13857 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13858
13859 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13860
13861 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13862
13863 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13864
13865 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13866
13867 * font.c (Ffont_spec): Fix usage in docstring.
13868 (Ffont_face_attributes): Doc fix.
13869
13870 2008-06-16 Andreas Schwab <schwab@suse.de>
13871
13872 * font.c (Ffont_face_attributes): Fix definition.
13873
13874 2008-06-16 Jason Rumney <jasonr@gnu.org>
13875
13876 * font.h (font_style_symbolic_from_value): Remove.
13877
13878 * font.c (font_style_symbolic_from_value): Remove.
13879 (font_style_symbolic): Revert to pre 2008-06-13 version.
13880
13881 * w32font.c (w32_to_fc_weight): New function.
13882 (w32font_full_name, logfont_to_fcname): Use it.
13883
13884 2008-06-16 Kenichi Handa <handa@m17n.org>
13885
13886 * font.c (font_check_object): Delete it.
13887 (font_clear_cache): Check if a font-object is alive.
13888 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13889 font-object to nil.
13890 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13891 (font_at): Don't call font_check_object.
13892 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13893
13894 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13895
13896 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13897
13898 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13899
13900 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13901
13902 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
13903
13904 * font.c (font_parse_fcname): Only one decimal point.
13905 (font_unparse_fcname): Handle data in family and foundry indices
13906 as symbols, not strings.
13907 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13908
13909 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13910
13911 * font.h (font_unparse_gtkname): Add prototype.
13912
13913 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13914
13915 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13916
13917 2008-06-15 Andreas Schwab <schwab@suse.de>
13918
13919 * font.c (font_update_drivers): Fix crash when no drivers match.
13920
13921 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13922
13923 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13924 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13925
13926 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13929
13930 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * process.c (Fserial_process_configure, Fprocess_send_eof):
13933 Use EQ to compare Lisp_Objects.
13934
13935 2008-06-13 Jason Rumney <jasonr@gnu.org>
13936
13937 * w32fns.c (Fw32_select_font): Remove old font API function.
13938
13939 * w32font.c (logfont_to_fcname): New function.
13940 (Fx_select_font): New font dialog function compatible with
13941 GTK/fontconfig version.
13942
13943 * font.c (font_style_symbolic_from_value): New function.
13944 (font_style_symbolic): Use it.
13945
13946 * font.h (font_style_symbolic_from_value): Declare new function.
13947
13948 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
13949
13950 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13951 <font-width-table>: Fix typos in docstrings.
13952
13953 2008-06-13 Daniel Engeler <engeler@gmail.com>
13954
13955 These changes add serial port access.
13956 * process.c: Add HAVE_SERIAL.
13957 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13958 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13959 (list_processes_1, select_wrapper, Fstop_process)
13960 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13961 (status_notify): Modify to handle serial processes.
13962 [HAVE_SERIAL] (Fserial_process_configure)
13963 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13964 New functions.
13965 * process.h (struct Lisp_Process): Add `type'.
13966 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13967 New functions.
13968 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13969 serial ports.
13970 (serial_open, serial_configure): New functions.
13971 * w32.h: Add FILE_SERIAL.
13972 (struct _child_process): Add ovl_read, ovl_write.
13973
13974 2008-06-13 Kenichi Handa <handa@m17n.org>
13975
13976 * dispextern.h (enum lface_attribute_index): New member
13977 LFACE_FOUNDRY_INDEX.
13978
13979 * font.c (font_score): Delete arg alternate_families. Check only
13980 weight, slant, width, and size. Ignore the difference of alias
13981 style symbols.
13982 (font_sort_entites): Adjust for the above change. Reflect the
13983 order of font-driver to scores.
13984 (font_list_entities): Don't check alternate_familes here.
13985 (font_clear_prop): Handle foundry.
13986 (font_update_lface): Don't parse "foundry-family" form here.
13987 Handle FONT_FOUNDRY_INDEX.
13988 (font_find_for_lface): Likewise. Handle alternate families here.
13989 If registry is nil, try iso8859-1 and ascii-0.
13990 (font_open_for_lface): Pay attention to size in ENTITY.
13991 (font_open_by_name): Simplify by calling font_load_for_lface.
13992 (free_font_driver_list): Delete it.
13993 (font_update_drivers): Preserve the order of backends.
13994 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13995 of font_score and font_sort_entites.
13996 (font_update_sort_order): Likewise.
13997
13998 * xfaces.c (LFACE_FOUNDRY): New macro.
13999 (check_lface_attrs): Check foundry.
14000 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14001 (merge_face_vectors): Check foundry.
14002 (merge_face_ref): Likewise.
14003 (Finternal_set_lisp_face_attribute): Likewise.
14004 (x_update_menu_appearance): Likewise.
14005 (Finternal_get_lisp_face_attribute): Likewise.
14006 (lface_hash): Likewise.
14007 (lface_same_font_attributes_p): Likewise.
14008 (x_supports_face_attributes_p): Likewise.
14009 (tty_supports_face_attributes_p): Likewise.
14010 (Finternal_set_alternative_font_family_alist): Intern strings.
14011 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14012 (realize_default_face): Set LFACE_FOUNDRY (lface).
14013
14014 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14015 font-driver at first.
14016
14017 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14018
14019 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14020
14021 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14022
14023 2008-06-12 Jim Meyering <meyering@redhat.com>
14024
14025 Make unexec_free handle NULL the same way free does.
14026 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14027
14028 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14029
14030 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14031 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14032 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14033 (WEAK_ALIAS): Simplify.
14034 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14035 when searching a unibyte buffer.
14036
14037 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
14038
14039 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14040
14041 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
14042
14043 * w32font.c: Include ctype.h.
14044
14045 2008-06-11 Jason Rumney <jasonr@gnu.org>
14046
14047 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14048 misreported as space.
14049 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14050 as aliases for registry iso10646-1.
14051
14052 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14053
14054 * buffer.c (clone_per_buffer_values): Skip `name'.
14055
14056 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14057
14058 * font.c (font_parse_fcname): Fix last change; accept decimal
14059 points in font size.
14060
14061 2008-06-10 Jason Rumney <jasonr@gnu.org>
14062
14063 * w32uniscribe.c (add_opentype_font_name_to_list):
14064 Skip non unicode fonts.
14065
14066 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14067
14068 * xfns.c (Fx_font_dialog): New function.
14069
14070 * gtkutil.c (xg_dialog_response_cb): Rename from
14071 xg_file_response_callback.
14072 (pop_down_dialog): Rename from pop_down_file_dialog.
14073 (xg_get_file_name): Callers changed.
14074 (xg_get_font_name): New function.
14075
14076 * gtkutil.h (xg_get_font_name): Insert prototype.
14077
14078 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14079
14080 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14081 x_underline_minimum_display_offset.
14082 (syms_of_xdisp): Declare it here rather than in xterm.c.
14083 * dispextern.h (underline_minimum_offset): Declare it.
14084 * w32term.c (x_draw_glyph_string): Use it.
14085 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14086 (syms_of_xterm): Don't declare it any more.
14087 (x_draw_glyph_string): Adjust to the new name.
14088
14089 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14090
14091 * xterm.c (x_underline_minimum_display_offset): New var.
14092 (x_draw_glyph_string): Use it.
14093 (syms_of_xterm): Declare it.
14094
14095 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14096
14097 * font.c (font_parse_fcname): Accept GTK-style font names too.
14098
14099 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14100
14101 * dired.c (file_name_completion): Don't return t if the match is exact
14102 but with different capitalization.
14103 * minibuf.c (Ftry_completion): Simplify.
14104
14105 * window.c (Vwindow_point_insertion_type): New var.
14106 (set_window_buffer): Use it.
14107 (syms_of_window): Init and export it to Lisp.
14108
14109 2008-06-10 Kenichi Handa <handa@m17n.org>
14110
14111 * font.h (font_intern_prop): Prototype adjusted.
14112
14113 * font.c (font_intern_prop): New arg force_symbol.
14114 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14115 Adjust for the change of font_intern_prop.
14116
14117 * ftfont.c (ftfont_pattern_entity):
14118 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14119 (w32_registry):
14120 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14121 the change of font_intern_prop.
14122
14123 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14124
14125 * w32menu.c (digest_single_submenu): Declare extern.
14126
14127 2008-06-09 Jason Rumney <jasonr@gnu.org>
14128
14129 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14130
14131 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14132 (parse_single_submenu): Remove.
14133 (digest_single_submenu): Remove.
14134 (syms_of_w32menu): Don't initialise variables that have moved
14135 to menu.c.
14136 (set_frame_menubar): Sync with version in xmenu.c.
14137 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14138
14139 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14140 Make static again.
14141
14142 2008-06-09 Jason Rumney <jasonr@gnu.org>
14143
14144 Changes to w32 files related to the move of common menu code
14145 to menu.c on 2008-06-08 by Chong Yidong.
14146
14147 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14148 defs to w32gui.h.
14149 (single_keymap_panes, push_menu_item, push_menu_pane):
14150 Make globally visible.
14151
14152 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14153 (local_free, malloc_widget_value, free_widget_value)
14154 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14155 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14156 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14157 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14158 (menu_items, menu_items_allocated, menu_items_used)
14159 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14160 (init_menu_items, finish_menu_items, discard_menu_items)
14161 (grow_menu_items, push_submenu_start, push_submenu_end)
14162 (push_left_right_boundary, push_menu_pane, push_menu_item)
14163 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14164 (free_menubar_widget_tree_value, parse_single_submenu)
14165 (update_submenu_strings): Remove functions.
14166 (xmalloc_widget_value): Remove and declare extern.
14167
14168 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14169 (OBJ1): Build it.
14170
14171 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14172 (local_heap, local_alloc, local_free, malloc_widget_value)
14173 (free_widget_value): Define here.
14174
14175 2008-06-09 Kenichi Handa <handa@m17n.org>
14176
14177 * font.h (Qascii_0): Extern it.
14178
14179 * font.c (Qascii_0): New variable.
14180 (syms_of_font): DEFSYM it.
14181 (font_open_by_name): If the registry "iso8859-1" fails, try also
14182 "ascii-0".
14183
14184 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14185
14186 2008-06-08 Kenichi Handa <handa@m17n.org>
14187
14188 * .gdbinit (xfont): New command.
14189
14190 2008-06-08 Andreas Schwab <schwab@suse.de>
14191
14192 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14193 * Makefile.in (menu.o): Update dependencies.
14194
14195 * Makefile.in (obj): Always add menu.o.
14196 * emacs.c (main): Always call syms_of_menu.
14197 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14198
14199 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14200
14201 * Makefile.in: Compile menu.c.
14202
14203 * lisp.h: Declare syms_of_menu.
14204
14205 * emacs.c (main): Call syms_of_menu.
14206
14207 * keyboard.h: Relocate platform-independent menu definitions from
14208 xmenu.c.
14209
14210 * menu.c: New file. Relocate platform-independent menu
14211 definitions from xmenu.c. Suggested by Adrian Robert.
14212
14213 * xmenu.c: Remove platform-independent menu definitions.
14214 (menu_items, menu_items_inuse, menu_items_allocated)
14215 (menu_items_used, menu_items_n_panes)
14216 (menu_items_submenu_depth): Move to keyboard.h.
14217 (init_menu_items, finish_menu_items, unuse_menu_items)
14218 (discard_menu_items, restore_menu_items, save_menu_items)
14219 (grow_menu_items, push_submenu_start, push_submenu_end)
14220 (push_left_right_boundary, push_menu_pane, push_menu_item)
14221 (keymap_panes, single_keymap_panes, single_menu_item)
14222 (list_of_panes, list_of_items, find_and_call_menu_selection)
14223 (xmalloc_widget_value, free_menubar_widget_value_tree)
14224 (parse_single_submenu, digest_single_submenu)
14225 (update_submenu_strings): Move to menu.c.
14226
14227 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14228
14229 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14230
14231 2008-06-06 Miles Bader <miles@gnu.org>
14232
14233 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14234 face, not frame default.
14235
14236 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14237
14238 * window.c (pop_up_windows, pop_up_frames)
14239 (display_buffer_reuse_frames, Vpop_up_frame_function)
14240 (Vdisplay_buffer_function, Veven_window_heights)
14241 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14242 (Vspecial_display_function, Vsame_window_buffer_names)
14243 (Vsame_window_regexps, split_height_threshold)
14244 (Vsplit_window_preferred_function): Move those vars to window.el.
14245 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14246 (Fdisplay_buffer): Move those functions to window.el.
14247 (syms_of_window): Remove corresponding declarations.
14248 (display_buffer): New function.
14249 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14250 * dispnew.c (Flast_nonminibuf_frame): New function.
14251 * buffer.c (Fpop_to_buffer): Move to window.el.
14252
14253 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14254
14255 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14256
14257 2008-06-05 Kenichi Handa <handa@m17n.org>
14258
14259 * coding.c (detect_coding): Fix previous change.
14260 (detect_coding_system): Likewise.
14261
14262 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14263
14264 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14265
14266 * keymap.c (Vminibuffer_local_filename_must_match_map):
14267 Rename from Vminibuffer_local_must_match_filename_map.
14268 (syms_of_keymap):
14269 * minibuf.c (Fcompleting_read): Adjust accordingly.
14270 * commands.h: Rename declaration as well.
14271
14272 2008-06-05 Kenichi Handa <handa@m17n.org>
14273
14274 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14275 family name.
14276 (Ffont_put): Likewise.
14277
14278 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14279 current font-spec.
14280
14281 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14282 is unspecified.
14283
14284 * xfaces.c (realize_x_face): If the font-related face attributes
14285 are the same as those of default face, realize a new fontset from
14286 default->fontset.
14287 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14288
14289 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14292 (move_it_in_display_line): New wrapper.
14293
14294 * window.c (window_scroll_pixel_based_preserve_x)
14295 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14296 (window_scroll_pixel_based, window_scroll_line_based):
14297 Use them to preserve column positions.
14298 (syms_of_window): Initialize them.
14299
14300 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14301 (HPOS . VPOS) pair.
14302
14303 * dispextern.h (move_it_in_display_line): Declare.
14304
14305 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14306
14307 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14308 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14309 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14310
14311 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14312
14313 * window.c (Fset_window_parameter): Doc fix.
14314 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14315
14316 2008-06-04 Joakim Verona <joakim@verona.se>
14317
14318 * window.h (struct window): Add new member window_parameters.
14319
14320 * window.c (Fwindow_parameters, Fwindow_parameter)
14321 (Fset_window_parameter): New defuns.
14322 (syms_of_window): Defsubr the new defuns.
14323 (make_window): Initialize window_parameters to nil.
14324
14325 2008-06-04 John Paul Wallington <jpw@pobox.com>
14326
14327 * eval.c (Fdefmacro): Doc fix.
14328
14329 2008-06-04 Kenichi Handa <handa@m17n.org>
14330
14331 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14332 Be sure to call setup_coding_system when we find a proper coding system.
14333 (detect_coding_system): Fix handling of coding->head_ascii.
14334
14335 2008-06-03 Andreas Schwab <schwab@suse.de>
14336
14337 * font.c (font_prop_validate_spacing): Fix last change.
14338
14339 2008-06-03 Kenichi Handa <handa@m17n.org>
14340
14341 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14342 (font_parse_fcname): Fix handling of unknown key.
14343
14344 * xfont.c (xfont_list): Try an alias.
14345
14346 * charset.c (char_charset): Return NULL if the arg charset_list is
14347 specified and C doesn't belong to any of them.
14348
14349 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14350
14351 * font.c (font_pixel_size): Don't take cdr of an integer.
14352
14353 2008-06-02 Jim Meyering <meyering@redhat.com>
14354
14355 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14356 * alloc.c (xfree): Return right away for a NULL arg.
14357 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14358 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14359 * mac.c (create_apple_event_from_event_ref): Likewise.
14360 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14361 Likewise.
14362 * doprnt.c (doprnt1): Likewise.
14363 * frame.c (frame): Likewise.
14364 * keyboard.c (wipe_kboard): Likewise.
14365 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14366 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14367 * term.c (tty_default_color_capabilities, maybe_fatal)
14368 (delete_tty): Likewise.
14369 * w16select.c (string): Likewise.
14370 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14371 * w32bdf.c (w32_free_bdf_font): Likewise.
14372 * w32fns.c (w32_unload_font): Likewise.
14373 * w32font.c (w32font_close): Likewise.
14374 * window.c (size_window): Likewise.
14375 * xselect.c (receive_incremental_selection): Likewise.
14376 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14377 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14378 * w32.c (stat): Likewise.
14379
14380 Remove useless if-before-free tests.
14381 * editfns.c (Fset_time_zone_rule): Likewise.
14382 * lread.c (nosuffix): Likewise.
14383 * ralloc.c (get_bloc): Likewise.
14384 * regex.c (reg_free): Likewise.
14385 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14386 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14387 * xsmfns.c (smc_save_yourself_CB): Likewise.
14388
14389 2008-06-02 Kenichi Handa <handa@m17n.org>
14390
14391 * font.c (font_find_for_lface): Handle float font size.
14392 (font_open_for_lface): Likewise.
14393
14394 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14395 comparing the properties.
14396
14397 2008-06-01 Jason Rumney <jasonr@gnu.org>
14398
14399 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14400 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14401 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14402 Don't add empty script list.
14403 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14404
14405 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14406
14407 * Makefile.in (dot, dotdot): Remove, update users.
14408 ".." has been used elsewhere in the file for a long time.
14409 (LIBXT_STATIC): Remove conditional based on unused variable.
14410
14411 2008-06-01 Miles Bader <miles@gnu.org>
14412
14413 * xfaces.c (Vface_remapping_alist): New variable.
14414 (syms_of_xfaces): Initialize it.
14415 (enum named_merge_point_kind): New type.
14416 (struct named_merge_point): Add `named_merge_point_kind' field.
14417 (push_named_merge_point): Make cycle detection respect different
14418 named-merge-point kinds.
14419 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14420 Remove face-name alias resolution.
14421 (lface_from_face_name): New definition using
14422 `lface_from_face_name_no_resolve'.
14423 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14424 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14425 (get_lface_attributes): New definition that layers face-remapping on
14426 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14427 (lookup_basic_face): New function.
14428 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14429 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14430 `get_lface_attributes'.
14431 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14432 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14433 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14434
14435 * xdisp.c (init_iterator): Pass base_face_id through
14436 `lookup_basic_face' when we actually use it as a face-id.
14437 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14438 DEFAULT_FACE_ID.
14439
14440 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14441 lookup the initial face-id.
14442
14443 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14444
14445 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14446
14447 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14448 (Fremove_text_properties): Fix typos in docstrings.
14449
14450 2008-05-31 Kenichi Handa <handa@m17n.org>
14451
14452 * font.c (font_list_entities): Fix the car part of data to be
14453 stored in the cache.
14454
14455 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14456
14457 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14458
14459 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14460 Add a `test' argument so another predicate than `equal' can be used.
14461 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14462 (map_char_table): Remove unused vars `c' and `i'.
14463 * lisp.h (Foptimize_char_table): Adjust declaration.
14464 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14465
14466 2008-05-30 Kenichi Handa <handa@m17n.org>
14467
14468 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14469 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14470 defined.
14471
14472 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14473
14474 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14475 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14476 frame-local settings for the same variable.
14477
14478 2008-05-30 Kenichi Handa <handa@m17n.org>
14479
14480 * fontset.c (Ffont_info): Move to font.c.
14481 (syms_of_fontset): Delete defsubr of Sfont_info.
14482
14483 * font.c (font_style_to_value, font_score): Delete casting of the
14484 args to xstcasecmp.
14485 (register_font_driver): Increment num_font_drivers only when
14486 registering the driver globally.
14487 (Ffont_info): Move from fontset.c. Handle a font object too.
14488 (syms_of_font): Defsubr Sfont_info.
14489
14490 2008-05-29 Kenichi Handa <handa@m17n.org>
14491
14492 * coding.h (enum define_coding_utf8_arg_index): New enum.
14493 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14494 coding_attr_utf_bom.
14495 (enum utf_bom_type): Rename from utf_16_bom_type.
14496 (struct utf_16_spec): Adjust for the above change.
14497 (struct coding_system): Add utf_8_bom in `spec' union.
14498
14499 * coding.c (CODING_UTF_8_BOM): New macro.
14500 (enum coding_category): Delete coding_category_utf_8, add
14501 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14502 coding_category_utf_8_sig.
14503 (CATEGORY_MASK_UTF_8): Delete it.
14504 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14505 (CATEGORY_MASK_UTF_8_SIG): New macros.
14506 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14507 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14508 CATEGORY_MASK_UTF_8_SIG.
14509 (CATEGORY_MASK_UTF_8): New macro.
14510 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14511 (detect_coding_utf_8): Check BOM.
14512 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14513 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14514 (encode_coding_utf_16): Likewise.
14515 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14516 (detect_coding, detect_coding_system): Handle utf-8-auto.
14517 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14518 (syms_of_coding): Fix setting up of Vcoding_category_table.
14519
14520 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14521
14522 * process.c (Faccept_process_output): If `millisec' is non-nil,
14523 `seconds' default to 0.
14524 (wait_reading_process_output): Also return non-nil if we read output
14525 from a non-running process.
14526
14527 2008-05-29 Jason Rumney <jasonr@gnu.org>
14528
14529 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14530 `raster' specified.
14531 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14532 in the uniscribe backend, but disallow any font that has no
14533 unicode subrange support.
14534
14535 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14536
14537 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14538 Fix typos in docstrings.
14539
14540 2008-05-29 Kenichi Handa <handa@m17n.org>
14541
14542 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14543 (Fx_family_fonts): Set frame correctly.
14544
14545 2008-05-28 Jason Rumney <jasonr@gnu.org>
14546
14547 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14548
14549 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14552 calling build_annotations.
14553
14554 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14555
14556 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14557 (Fencode_coding_string):
14558 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14559 <latin-extra-code-table>: Fix typos in docstrings.
14560 (syms_of_coding) <coding-system-alist>: Doc fix.
14561 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14562
14563 2008-05-28 Kenichi Handa <handa@m17n.org>
14564
14565 * fontset.c (Ffont_info): Don't call font_close_object.
14566
14567 * font.c (font_parse_family_registry): Use Ffont_put to validate
14568 foundry and family.
14569 (font_delete_unmatched): Don't check spacing.
14570 (font_list_entities): Add spacing to the spec to list fonts.
14571
14572 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14573 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14574
14575 * coding.c (encode_coding_raw_text): Fix previous change.
14576 (encode_coding_object): When the dst_object is a buffer and is
14577 different from src_object, move gap to PT.
14578
14579 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14580
14581 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14582
14583 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14584
14585 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14586 all branches. Compute it differently.
14587
14588 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14589
14590 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14591
14592 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14593 into "else if () ... else ...".
14594
14595 2008-05-27 Jason Rumney <jasonr@gnu.org>
14596
14597 * w32font.c (w32font_open_internal): Determine if glyph indices
14598 are likely to work here.
14599
14600 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14601
14602 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14603 draw overlap glyphs with appropriate highlighting.
14604
14605 2008-05-27 Kenichi Handa <handa@m17n.org>
14606
14607 * xfont.c (xfont_open): Fix calculation of font->average_width.
14608
14609 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14610
14611 * casefiddle.c (casify_object): Try to guess better whether the
14612 argument is a byte or a char.
14613
14614 2008-05-26 Andreas Schwab <schwab@suse.de>
14615
14616 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14617 Always send multiples of format size.
14618
14619 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14620
14621 2008-05-26 Jason Rumney <jasonr@gnu.org>
14622
14623 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14624 (compute_metrics): Don't set failure if we just cleared the cache.
14625 (w32_weight_table): Remove unused variable.
14626 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14627 backwards compatibility.
14628
14629 2008-05-25 Kenichi Handa <handa@m17n.org>
14630
14631 * w32term.c (x_draw_glyph_string):
14632 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14633
14634 * xfaces.c: Delete unused function prototypes.
14635 (xstrlwr, font_frame): Delete them.
14636 (clear_face_cache): Delete unused variable.
14637
14638 * xftfont.c (xftfont_open): Delete unused variable.
14639 If underline_thickness is not 1, adjust underline_position.
14640
14641 * ftxfont.c (ftxfont_open): Delete unused variable.
14642
14643 * fontset.c (face_for_char): Optimize for the case of no charset
14644 property.
14645
14646 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14647 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14648 (otf_open, font_otf_capability, generate_otf_features)
14649 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14650 Comment out by surrounding "#if 0" and "#endif" for the moment.
14651 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14652 (syms_of_font): Codes for accessing above commented out.
14653
14654 2008-05-24 Eli Zaretskii <eliz@gnu.org>
14655
14656 * w32proc.c: Include dispextern.h.
14657
14658 * w32.c: Include dispextern.h.
14659
14660 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
14661
14662 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14663 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14664 Fix typos in docstrings.
14665
14666 2008-05-23 Jason Rumney <jasonr@gnu.org>
14667
14668 * xsmfns.c: Remove includes that are already included by config.h.
14669
14670 2008-05-23 Kenichi Handa <handa@m17n.org>
14671
14672 * charset.c (Qemacs, charset_emacs): New variables.
14673 (char_charset): Fix for non-Unicode characters.
14674 (syms_of_charset): Define charset_emacs.
14675
14676 * w32term.c (x_draw_glyph_string): Be sure to update
14677 s->underline_thickness and s->underline_position. Be sure to draw
14678 underline within the current line area.
14679
14680 * xterm.c (x_draw_glyph_string): Be sure to update
14681 s->underline_thickness and s->underline_position. Be sure to draw
14682 underline within the current line area.
14683
14684 * fontset.c: Delete unused variables and add casting for char *
14685 throughout the file.
14686 (fontset_font): Try the fallback fonts of the current fontset
14687 before consulting the default fontset.
14688
14689 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14690
14691 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14692
14693 2008-05-22 Jason Rumney <jasonr@gnu.org>
14694
14695 * font.c: Don't include strings.h.
14696
14697 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14698
14699 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14700 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14701 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14702 to call xstrcasecmp.
14703
14704 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14705
14706 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14707
14708 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14709
14710 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14711
14712 2008-05-22 Kenichi Handa <handa@m17n.org>
14713
14714 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14715
14716 * font.c (font_prop_validate_style): Adjust for the format
14717 change of font_style_table.
14718
14719 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14720 two args.
14721
14722 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14723 two args.
14724
14725 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14726
14727 * minibuf.c (keys_of_minibuf): Delete.
14728 * lisp.h (keys_of_minibuf): Delete.
14729 * emacs.c (main): Don't call keys_of_minibuf.
14730
14731 2008-05-22 Kenichi Handa <handa@m17n.org>
14732
14733 * ftfont.c (ftfont_resolve_generic_family): Rename from
14734 ftfont_list_generic_family. Return a single family for each
14735 generic family.
14736 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14737 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14738 Call font_add_log.
14739 (ftfont_match): Call font_add_log.
14740
14741 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14742 (FONT_DEBUG): Define it.
14743 (font_add_log): Extern it.
14744 (font_assert): Rename from xassert.
14745
14746 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14747 (xfont_list_family): Call font_add_log.
14748 (xfont_match): Likewise.
14749 (memq_no_quit): Delete.
14750
14751 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14752 call of Ffont_xlfd_name.
14753
14754 * xfaces.c (struct table_entry, slant_table, weight_table)
14755 (swidth_table): Move to font.c.
14756
14757 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14758 xassert are changed to font_assert. Delete many unused variables.
14759 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14760 New variables.
14761 (struct table_entry): Move from xfaces.c and modified.
14762 (weight_table, slant_table, width_table): Move from xfaces.c and
14763 contents adjusted for the change of struct table_entry.
14764 (font_style_to_value, font_style_symbolic): Adjust for the
14765 format change of font_style_table.
14766 (font_parse_family_registry): Don't overwrite existing foundry and
14767 family of font_spec.
14768 (font_score): Fix calculation of diff for sizes.
14769 (font_sort_entites): Call font_add_log.
14770 (font_delete_unmatched): Return a newly created list.
14771 (font_list_entities): Fix previous change. Call font_add_log.
14772 (font_matching_entity, font_open_entity, font_close_entity):
14773 Call font_add_log.
14774 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14775 (Finternal_set_font_style_table): Delete.
14776 (BUILD_STYLE_TABLE): New macro.
14777 (build_style_table): New function.
14778 (Vfont_log, font_log_env_checked): New variables.
14779 (font_add_log): New function.
14780 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14781 Declare Lisp variables "font-weight-table", "font-slant-table",
14782 "font-width-table", and "font-log". Initialize font_style_table.
14783
14784 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14785
14786 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14787
14788 2008-05-21 Seiji Zenitani <zenitani@mac.com>
14789 Ryo Yoshitake <ryo@shiftmode.net>
14790
14791 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14792 (Vframe_alpha_lower_limit): New variable.
14793 (x_set_alpha): New function.
14794
14795 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14796
14797 * xfns.c (x-create-frame, Qalpha):
14798 Initialize the frame parameter `alpha'.
14799 * xterm.c (OPAQUE, OPACITY): New.
14800 (x_set_frame_alpha): New function.
14801 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14802
14803 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14804 * w32fns.c (w32_frame_parm_handlers): Likewise.
14805
14806 2008-05-20 Jason Rumney <jasonr@gnu.org>
14807
14808 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14809 truetype fonts to opentype list.
14810
14811 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14812
14813 * fontset.c (Ffontset_info): Doc fix.
14814 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14815 <ignore-relative-composition>: Fix typos in docstrings.
14816
14817 * font.c (syms-of-font) <font-encoding-alist>:
14818 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14819 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14820 (Ffont_otf_alternates): Doc fixes.
14821
14822 2008-05-20 Kenichi Handa <handa@m17n.org>
14823
14824 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14825 font.h through out the file.
14826 (FONT_DRIVERS): Rename from FONTOBJ.
14827 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14828 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14829
14830 * emacs.c (main): Call syms_of_font unconditionally.
14831
14832 * font.h (find_font_encoding): Extern it.
14833
14834 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14835 fontset.c.
14836 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14837 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14838 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14839 only when HAVE_WINDOW_SYSTEM is defined.
14840 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14841 when HAVE_WINDOW_SYSTEM is defined.
14842
14843 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14844 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14845
14846 * xfaces.c: Include font.h unconditionally.
14847 (merge_face_ref, merge_face_vectors)
14848 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14849
14850 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14851
14852 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14853 indirect_variable.
14854 * eval.c (lisp_indirect_variable): New fun.
14855 (Fuser_variable_p): Use it.
14856
14857 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14858
14859 * lisp.h (indirect_variable):
14860 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14861 Use Lisp_Symbol pointers rather than Lisp_Object.
14862 Adjust callers.
14863 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14864 To this end, change calling-convention.
14865
14866 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14867 if some non-hidden buffers are selected by string&pred.
14868
14869 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14870
14871 * process.c (wait_reading_process_output): Always check status
14872 when in batch mode.
14873
14874 2008-05-19 Kenichi Handa <handa@m17n.org>
14875
14876 * font.c (font_list_entities): Fix handling of cache.
14877 (font_matching_entity): Likewise.
14878
14879 * ftfont.c (cs_iso8859_1): Delete.
14880 (ft_face_cache): New variable.
14881 (struct ftfont_info): New member fc_charset_idx.
14882 (ftfont_build_basic_charsets): Delete.
14883 (fc_charset_table): New variable.
14884 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14885 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14886 Callers changed.
14887 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14888 (ftfont_spec_pattern): New argument fc_charset_idx.
14889 Check registry more rigidly. Change callers.
14890 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14891 change of :font-entity property of the font.
14892
14893 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14894 property of the font.
14895
14896 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
14897
14898 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14899 (Funencodable_char_position, Fcheck_coding_systems_region)
14900 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14901 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14902 (Ffind_operation_coding_system, Fset_coding_system_priority)
14903 (Fcoding_system_eol_type): Doc fixes.
14904
14905 2008-05-17 Glenn Morris <rgm@gnu.org>
14906
14907 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14908
14909 2008-05-16 Eli Zaretskii <eliz@gnu.org>
14910
14911 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14912 and st_gid.
14913
14914 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14915 HAVE_WINDOW_SYSTEM is not defined.
14916
14917 * xfaces.c (merge_face_ref, merge_face_vectors)
14918 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14919 HAVE_WINDOW_SYSTEM is defined.
14920 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14921
14922 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14923
14924 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14925
14926 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14927
14928 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14929
14930 2008-05-15 Kenichi Handa <handa@m17n.org>
14931
14932 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14933 preference.
14934
14935 2008-05-15 Glenn Morris <rgm@gnu.org>
14936
14937 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14938
14939 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
14940
14941 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14942 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14943
14944 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14945
14946 2008-05-15 Kenichi Handa <handa@m17n.org>
14947
14948 * ftfont.c (ftfont_list): Downcase family name to check generic
14949 families.
14950
14951 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14952 font-spec for QCfont value.
14953
14954 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14955 buffer. Check the return value of it.
14956
14957 2008-05-14 Jason Rumney <jasonr@gnu.org>
14958
14959 * w32term.c (w32_get_glyph_overhangs): Remove.
14960 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14961
14962 2008-05-14 Kenichi Handa <handa@m17n.org>
14963
14964 * font.c (font_prop_validate): Make nil a valid value.
14965 (font_clear_cache): Check if the cached vector of entities is nil
14966 or not.
14967
14968 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14969
14970 * emacs.c (main_thread): Conditionalize on
14971 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14972 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14973
14974 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14975 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14976 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14977
14978 2008-05-14 Kenichi Handa <handa@m17n.org>
14979
14980 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14981 has no corresponding coding system.
14982
14983 2008-05-14 Jason Rumney <jasonr@gnu.org>
14984
14985 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14986
14987 * w32font.h (w32font_open_internal): Update declaration.
14988
14989 * w32font.c (w32font_open_internal): Change last argument from
14990 w32font_info struct to font object. Fill in font object from
14991 font_entity. Get Outline metrics if possible. Use them to
14992 calculate underline position and thickness. Use xlfd name as name
14993 property. Don't set codepage.
14994 (w32font_open): Pass font_object to w32font_open_internal. Don't
14995 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14996 (w32font_draw): Use s->font.
14997 (clear_cached_metrics): Don't clear non-existent blocks.
14998
14999 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15000 font was not found.
15001 (x_draw_glyph_string): Use underline position and thickness from font.
15002
15003 * w32uniscribe.c (uniscribe_open): Pass font_object to
15004 w32font_open_internal.
15005
15006 2008-05-14 Kenichi Handa <handa@m17n.org>
15007
15008 These changes are to delete all legacy font-handling codes, and
15009 make Emacs use only font-backends.
15010
15011 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15012 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15013
15014 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15015
15016 * charset.h (Vcharset_non_preferred_head)
15017 (Vcurrent_iso639_language): Extern them.
15018
15019 * charset.c (Vcharset_non_preferred_head): New variable.
15020 (Vcurrent_iso639_language): New variable.
15021 (syms_of_charset): Declare it as a Lisp variable.
15022 (char_charset): Don't check non preferred charsets. As a last
15023 resort, return charset_unicode.
15024 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15025
15026 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15027 conditionals. Don't check enable_font_backend. Delete all codes
15028 used only when USE_FONT_BACKEND is not defined.
15029
15030 * dispextern.h (struct glyph_string): Change type of `font' to
15031 `struct font *'.
15032 (struct glyph_string): New member underline_position and
15033 underline_thickness.
15034 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15035 (struct face): Change type of `font' to `struct font *'. Remove
15036 members `font_name', `font_info_id'.
15037 (per_char_metric, encode_char): Delete externs.
15038 (calc_pixel_width_or_height): Adjust the prototype.
15039
15040 * emacs.c (enable_font_backend): Delete extern.
15041 (main): Don't set enable_font_backend. Don't check the command
15042 line argument "-disable-font-backend".
15043
15044 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15045 (enum font_property_index): New members FONT_DPI_INDEX,
15046 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15047 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15048 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15049 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15050 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15051 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15052 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15053 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15054 (struct font_spec, struct font_entity): New structs.
15055 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15056 (struct font): Many members from old "struct font_info" moved to
15057 here. Members font and entity deleted.
15058 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15059 the new font-related objects.
15060 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15061 (CHECK_FONT_GET_OBJECT): Likewise.
15062 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15063 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15064 (struct font_driver): New members case_sensitive anc check. Type
15065 of the member list and open changed.
15066 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15067 (font_symbolic_width, font_find_object, font_get_spec)
15068 (font_set_lface_from_name): Delete extern.
15069 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15070
15071 * font.c: Include <strings.h>.
15072 (enable_font_backend): Delete it.
15073 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15074 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15075 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15076 (null_string): Delete it.
15077 (null_vector): Make it static.
15078 (font_family_alist): Delete it.
15079 (Qnormal): Extern it.
15080 (QCextra, QClanguage): Delete it.
15081 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15082 (font_make_spec, font_make_entity, font_make_object)
15083 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15084 the string. Callers changed.
15085 (font_pixel_size): Adjusted for the format change of font-related
15086 objects.
15087 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15088 (font_style_to_value, font_style_symbolic): New function.
15089 (build_font_family_alist): Delete it.
15090 (font_registry_charsets): Use Fassoc_string instead of
15091 assq_no_quit.
15092 (font_prop_validate_symbol): Don't return null_string.
15093 (font_prop_validate_style): Adjusted for the change of
15094 style-related values in a font vector.
15095 (font_property_table): Delete entries for QClanguage and
15096 QCantialias, add entries for QCavgwidth.
15097 (get_font_prop_index): Delete the 2nd argument FROM.
15098 (font_prop_validate): Arguments changed.
15099 (font_put_extra): Adjusted for the change of font-related objects.
15100 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15101 (font_parse_fcname, font_unparse_fcname)
15102 (font_prepare_composition): Likewise.
15103 (font_parse_family_registry): Renamed from font_merge_old_spec.
15104 (otf_open): Delete the 1st arg entity.
15105 (font_otf_capability): Adjusted for the above change.
15106 (font_score): New arg alternate_families. Adjusted for the change
15107 of font-related objects.
15108 (font_sort_entites): New arg best_only.
15109 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15110 Delete them.
15111 (font_match_p): Check alternate families.
15112 (font_find_object): Delete it.
15113 (font_check_object): New function.
15114 (font_clear_cache): Adjusted for the change of font-related objects.
15115 (font_delete_unmatched): New arg.
15116 (font_list_entities): Call font_driver->list with a spec that
15117 doesn't specify style-related properties.
15118 (font_matching_entity): Arguments changed. Caller changed.
15119 (font_open_entity): Adjusted for the change of font-related objects.
15120 (font_close_object, font_has_char, font_encode_char)
15121 (font_get_name, font_get_spec): Likewise.
15122 (font_spec_from_name, font_clear_prop, font_update_lface):
15123 New functions.
15124 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15125 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15126 (font_at): Adjusted for the change of font-related objects.
15127 (font_range): New function.
15128 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15129 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15130 (Fcopy_font_spec, Fmerge_font_spec): New function.
15131 (Ffont_family_list): Renamed from list-families.
15132 (Finternal_set_font_style_table): Arguments changed.
15133 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15134 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15135 change of font-related objects.
15136 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15137
15138 * fontset.h (struct font_info): Delete it. Most members go to
15139 struct font.
15140 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15141 (enum FONT_SPEC_INDEX): Delete it.
15142 (font_info, list_fonts_func, load_font_func, query_font_func)
15143 (set_frame_fontset_func, find_ccl_program_func)
15144 (get_font_repertory_func, new_fontset_from_font_name): Delete
15145 externs.
15146 (fontset_from_font_name): Extern it.
15147 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15148 (FONT_INFO_FROM_FACE): Deleted.
15149 (face_for_font): Adjust prototype.
15150
15151 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15152 conditionals. Don't check enable_font_backend. Delete all codes
15153 used only when USE_FONT_BACKEND is not defined.
15154 (get_font_info_func, list_font_func, load_font_func)
15155 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15156 (get_font_repertory_func): Delete them.
15157 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15158 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15159 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15160 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15161 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15162 (fontset_compare_rfontdef): New function.
15163 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15164 rfont-defs by qsort. Adjusted for the change of font-group vector.
15165 (load_font_get_repertory): Deleted.
15166 (fontset_find_font): Use new macros to ref/set elements of
15167 font-def and rfont-def.
15168 (fontset_font): Fix the timing of remembering that no font for C.
15169 (free_face_fontset): Do nothing if the face has no fontset.
15170 (face_suitable_for_char_p): Use new macros to ref/set elements of
15171 rfont-def.
15172 (face_for_char): Likewise. Call face_for_char with font_object.
15173 (fs_load_font): Delete. Delete #pragma surrounding it.
15174 (fs_query_fontset): Use strcasecmp instead of strcmp.
15175 (generate_ascii_font_name): Adjusted for the format change of
15176 font-spec.
15177 (Fset_fontset_font): Likewise. Use new macros to set elements of
15178 font-def.
15179 (Fnew_fontset): Use font_unparse_xlfd to generate
15180 FONTSET_ASCII (fontset).
15181 (new_fontset_from_font_name): Deleted.
15182 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15183 a fontset is already created for the font. FIx updating of
15184 Vfontset_alias_alist.
15185 (fontset_ascii_font): Deleted.
15186 (Ffont_info): Adjusted for the format change of font-spec.
15187 (Finternal_char_font): Likewise.
15188 (Ffontset_info): Likewise.
15189 (syms_of_fontset): Don't check load_font_func.
15190
15191 * fns.c (internal_equal): Handle PREV_FONT.
15192
15193 * frame.h: Delete USE_FONT_BACKEND conditional.
15194
15195 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15196 conditionals. Don't check enable_font_backend. Delete all codes
15197 used only when USE_FONT_BACKEND is not defined.
15198 (x_set_font): Call x_new_font, not x_new_fontset2.
15199 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15200 already set for the frame.
15201
15202 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15203 a font-entity by font_make_entity. Use font_intern_prop instead
15204 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15205 font property. If a font is scalable, set avgwidth property to 0.
15206 Set font-entity property by font_put_extra.
15207 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15208 (ffont_driver): Adjusted for the change of struct font_driver.
15209 (ftfont_spec_pattern): New function.
15210 (ftfont_list): Return a list, not vector.
15211 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15212 (ftfont_list_family): Don't downcase names.
15213 (ftfont_free_entity): Deleted.
15214 (ftfont_open): Return a font-object. Adjusted for the change of
15215 struct font. Get underline_thickness and underline_position from
15216 font property. Don't update dpyinfo->smallest_font_height and
15217 dpyinfo->smallest_char_width.
15218 (ftfont_close): Don't free `struct font'.
15219 (ftfont_has_char): Adjusted for the format change of font-entity.
15220 (ftfont_encode_char, ftfont_text_extents): Likewise.
15221
15222 * ftxfont.c (ftxfont_list): Return a list, not vector.
15223 (ftxfont_open): Return a font-object. Adjusted for the change of
15224 struct font. Get underline_thickness and underline_position from
15225 font property. Don't update dpyinfo->smallest_font_height and
15226 dpyinfo->smallest_char_width.
15227 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15228 (ftxfont_draw): Adjusted for the change of struct font.
15229
15230 * image.c (image_ascent): Don't include "charset.h". Include
15231 "character.h" and "font.h".
15232
15233 * lisp.h (enum pvec_type): New member PREV_FONT.
15234 (Fassoc_string): EXFUN it.
15235
15236 * print.c: Include font.h.
15237 (print_object): Handle font-related objects.
15238
15239 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15240 conditionals. Don't check enable_font_backend. Delete all codes
15241 used only when USE_FONT_BACKEND is not defined.
15242 (handle_auto_composed_prop): Do nothing if it->f is not on a
15243 window system. Check how many following characters can be
15244 displayed by the same font.
15245 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15246 'struct font *'.
15247 (get_char_face_and_encoding): Assign the whole encoding task to
15248 the `encode-char' method of a font driver.
15249 (fill_composite_glyph_string): Adjusted for the change of `struct
15250 face' and `struct glyph_string'.
15251 (fill_glyph_string): Likewise.
15252 (get_per_char_metric): Arguments changed.
15253 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15254 and `struct glyph_string'.
15255 (produce_stretch_glyph, calc_line_height_property)
15256 (x_produce_glyphs): Likewise.
15257
15258 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15259 conditionals. Don't check enable_font_backend. Delete all codes
15260 used only when USE_FONT_BACKEND is not defined. Use
15261 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15262 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15263 (Qp): Extern them.
15264 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15265 Deleted.
15266 (struct font_name): Deleted.
15267 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15268 (compare_fonts_by_sort_order): New function.
15269 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15270 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15271 Deleted.
15272 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15273 compare_fonts_by_sort_order.
15274 (Fx_font_family_list): Call Ffont_family_list.
15275 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15276 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15277 (face_symbolic_slant, face_symbolic_swidth)
15278 (split_font_name_into_vector, build_font_name_from_vector)
15279 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15280 (font_rescale_ratio, split_font_name, build_font_name)
15281 (free_font_names, sort_fonts, x_face_list_fonts)
15282 (face_font_available_p, sorted_font_list, cmp_font_names)
15283 (font_list_1, concat_font_list, font_list, remove_duplicates):
15284 Deleted.
15285 (Fx_list_fonts): Use Ffont_list.
15286 (LFACE_AVGWIDTH): Deleted.
15287 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15288 by FONTP.
15289 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15290 (set_lface_from_font_name): Delete it.
15291 (set_lface_from_font): Renamed from
15292 set_lface_from_font_and_fontset. Caller changed. Don't set
15293 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15294 for face.
15295 (merge_face_vectors): Copy font-spec if necessary.
15296 Clear properties of the font-spec if necessary.
15297 (merge_face_ref): Clear properties of the font-spec if necessary.
15298 (Finternal_set_lisp_face_attribute): Likewise.
15299 (set_font_frame_param): Use font_load_for_lface to load a
15300 font-object, and call Fmodify_frame_parameters with it.
15301 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15302 font name by Ffont_xlfd_name.
15303 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15304 QCslant, and QCwidth.
15305 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15306 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15307 Compare fonts by EQ.
15308 (lookup_non_ascii_face): Deleted.
15309 (face_for_font): The 2nd argument changed.
15310 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15311 Check atomic font properties by case insensitive.
15312 (realize_non_ascii_face): Set face->overstrike correctly.
15313 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15314 (dump_realized_face): Get font name from
15315 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15316
15317 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15318 conditionals. Don't check enable_font_backend. Delete all codes
15319 used only when USE_FONT_BACKEND is not defined.
15320 (xic_create_xfontset): Original code deleted and renamed from
15321 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15322 (x_make_gc): Don't set GCFont in GCs.
15323 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15324 opened by "fixed".
15325 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15326 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15327 get_font_repertory_func.
15328
15329 * xfont.c: Include <stdlib.h> and "ccl.h".
15330 (struct xfont_info): New structure.
15331 (xfont_query_font): Deleted.
15332 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15333 moved from xterm.c.
15334 (xfont_driver): Adjusted for the change of struct font_driver.
15335 (compare_font_names): New function.
15336 (xfont_list_pattern): Sort font names case insensitively. Make
15337 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15338 (xfont_list): Return a list, not vector.
15339 (xfont_match): If the font doesn't have QCname property, generate
15340 a name from the other font properties.
15341 (xfont_open): Return a font-object. Adjusted for the change of
15342 struct font. Get underline_thickness and underline_position from
15343 font property. Don't update dpyinfo->smallest_font_height and
15344 dpyinfo->smallest_char_width.
15345 (xfont_close): Don't free struct font.
15346 (xfont_prepare_face): Adjusted for the change of struct font.
15347 (xfont_done_face): Deleted.
15348 (xfont_has_char): Adjusted for the change of struct font.
15349 (xfont_encode_char, xfont_draw): Likewise.
15350 (xfont_check): New function.
15351
15352 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15353 callback function.
15354 (xftfont_match): Adjusted for the format change of font-entity.
15355 (xftfont_open): Adjusted for the format change of font-entity and
15356 font-object. Adjusted for the change of struct font. Return a
15357 font-object. Don't update dpyinfo->smallest_font_height and
15358 dpyinfo->smallest_char_width.
15359 (xftfont_close): Block input while calling XftFontClose.
15360 (xftfont_prepare_face): Don't block input while calling
15361 xftfont_get_colors. Adjusted for the change of struct font.
15362 (xftfont_shape): Return value of error case fixed.
15363
15364 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15365
15366 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15367 conditionals.
15368 (FONT_WIDTH): Return (f)->max_width.
15369 (struct x_display_info): Delete member `font'.
15370 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15371 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15372 (struct x_output): Change type of `font' to `struct font *'.
15373
15374 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15375 conditionals. Don't check enable_font_backend. Delete all codes
15376 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15377 (x_per_char_metric, x_encode_char): Deleted.
15378 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15379 (x_compute_glyph_string_overhangs): Adjusted for the change of
15380 `struct face'.
15381 (x_draw_glyph_string_foreground)
15382 (x_draw_composite_glyph_string_foreground): Likewise.
15383 (x_draw_glyph_string): Likewise. Use font->underline_position and
15384 font->underline_thickness.
15385 (x_new_font): Renamed from x_new_fontset2.
15386 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15387 (x_check_font): Call `check' method of a font driver.
15388 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15389 (x_query_font, x_get_font_repertory): Deleted.
15390 (x_find_ccl_program): Renamed and moved to xfont.c.
15391 (x_redisplay_interface): Adjusted for the change of `struct
15392 redisplay_interface'.
15393
15394 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15395 conditionals. Don't check enable_font_backend. Delete all codes
15396 used only when USE_FONT_BACKEND is not defined. Surround non-used
15397 code by "#ifdef OLD_FONT" and "endif".
15398 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15399
15400 * w32font.h (struct w32font_info): New member.
15401 (FONT_COMPAT): New macro.
15402 (w32font_open_internal): Prototype adjusted.
15403
15404 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15405 OLD_FONT" and "endif".
15406
15407 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15408 conditionals. Don't check enable_font_backend. Delete all codes
15409 used only when USE_FONT_BACKEND is not defined.
15410 (w32font_open): Return a font-object. Make a font-object by
15411 font_make_object. Adjusted for the change of struct w32font_info.
15412 (w32font_close): Don't free struct font. Adjusted for the change
15413 of struct w32font_info.
15414 (w32font_encode_char, w32font_text_extents, w32font_draw):
15415 Adjusted for the change of struct w32font_info.
15416 (w32font_draw): Likewise.
15417 (w32font_list_internal): Return a list, not vector.
15418 (w32font_open_internal): Change the 4th arg to font-object.
15419 Adjusted for the change of struct w32font_info and font-object format.
15420 (add_font_name_to_list): Don't downcase names.
15421 (w32_enumfont_pattern_entity): Make a font-entity by
15422 font_make_entity. Adjusted for the format change of font-entity.
15423 Use FONT_SET_STYLE to set a style-related font property. If a
15424 font is scalable, set avgwidth property to 0. Set font-entity
15425 property by font_put_extra.
15426 (font_matches_spec): Adjusted for the format change of font-entity.
15427 (w32_weight_table, w32_decode_weight): New variables.
15428 (w32_encode_weight): New function.
15429 (fill_in_logfont): Adjusted for the format change of font-spec.
15430 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15431 weight value.
15432 (w32font_driver): Adjusted for the change of struct font_driver.
15433
15434 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15435 conditionals. Don't check enable_font_backend. Surround non-used
15436 code by "#ifdef OLD_FONT" and "endif".
15437 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15438 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15439
15440 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15441 conditionals. Don't check enable_font_backend. Delete all codes
15442 used only when USE_FONT_BACKEND is not defined. Surround non-used
15443 code by "#ifdef OLD_FONT" and "endif".
15444
15445 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15446 (uniscribe_open): Return value changed to font-object.
15447 Adjusted for the format change of font-object.
15448 (uniscribe_otf_capability): Adjusted for the change of struct font.
15449 (add_opentype_font_name_to_list): Don't downcase names.
15450 (uniscribe_font_driver): Adjusted for the change of struct
15451 font_driver.
15452
15453 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15454
15455 * dispnew.c (update_frame_1): Check if tty output is still valid
15456 before flushing it.
15457
15458 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15459
15460 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15461 to Gtk+ menus.
15462
15463 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15464
15465 * dired.c (file_name_completion): Tweak the code so as to always do it
15466 in a single pass. Tighten the scope of some variables.
15467
15468 * dired.c (Qdefault_directory): New var.
15469 (file_name_completion): Use it instead of Fexpand_file_name.
15470 (syms_of_dired): Initialize it.
15471
15472 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15473
15474 * fileio.c (double_dollars): Remove dead code.
15475
15476 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15477
15478 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15479 Mention w32-get-true-file-attributes in doc string.
15480
15481 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15482
15483 2008-05-09 Glenn Morris <rgm@gnu.org>
15484
15485 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15486 2008-04-23.
15487
15488 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15489
15490 Support for reporting owner and group of each file on MS-Windows:
15491 * dired.c (stat_uname, stat_gname): New functions, with special
15492 implementation for w32.
15493 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15494
15495 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15496 (dflt_group_name): New static variable.
15497 (dflt_group): Rename from the_group.
15498 (init_user_info): Init dflt_group fields. Get user's group name
15499 from LookupAccountSid.
15500 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15501 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15502 New initialization states.
15503 (globals_of_w32): Initialize them to zero. Initialize the default
15504 group name to "None".
15505 (GetFileSecurity_Name): New global var, the name of the function
15506 to call for GetFileSecurity.
15507 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15508 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15509 (get_file_security, get_security_descriptor_owner)
15510 (get_security_descriptor_group, is_valid_sid)
15511 (get_file_security_desc, get_rid, get_name_and_id)
15512 (get_file_owner_and_group): New functions.
15513 (stat): Use get_file_security_desc and get_file_owner_and_group to
15514 report the owner and primary group of each file. Don't ignore the
15515 high 32 bits of file's size, now that st_size is 64-bit wide.
15516 Fix test when to get true file attributes.
15517 (init_user_info): Use get_rid instead of equivalent inline code.
15518 (fstat): Don't ignore the high 32 bits of file's size.
15519
15520 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15521
15522 * image.c (png_load): Use correct bit-depth for setting background
15523 color.
15524
15525 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15526
15527 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15528 epa-hook.elc.
15529
15530 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15531
15532 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15533
15534 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15535
15536 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15537 because the original parameters are in pure storage now.
15538 (mac_window): Remove unused params. Update callers.
15539
15540 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15541
15542 * lread.c (substitute_object_recurse): Use lower-level primitives.
15543 Don't signal errors when traversing sub-char-tables.
15544 Don't loop over all the possible characters when traversing char-tables.
15545
15546 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15547 just like we do in print.c.
15548
15549 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15550
15551 * minibuf.c (Ftry_completion): Remove code left over from when we used
15552 scmp instead of Fcompare_strings.
15553
15554 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15555
15556 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15557
15558 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15559
15560 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15561 Create bitmap context in native byte order.
15562
15563 * macterm.c (XDrawLine)
15564 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15565 context in native byte order.
15566
15567 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15568
15569 * config.in: Regenerate.
15570
15571 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15572 New definitions for Image I/O support.
15573 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15574 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15575 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15576 (mac_data_provider_release_data, image_load_image_io)
15577 [USE_MAC_IMAGE_IO]: New functions.
15578 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15579 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15580 (init_image_func_pointer) [MAC_OSX]: Remove function.
15581 (image_load_quartz2d) [MAC_OSX]: Check availability of
15582 CGImageCreateWithPNGDataProvider at compile time.
15583 Use lowercase `false' for boolean constant.
15584 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15585 Use image_load_image_io.
15586 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15587 Don't check MyCGImageCreateWithPNGDataProvider.
15588 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15589 Don't call init_image_func_pointer.
15590
15591 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15592
15593 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15594 Make variable non-static.
15595 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15596 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15597
15598 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15599 (RED_FROM_ULONG): Mask off higher bits.
15600 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15601
15602 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15603 Include AvailabilityMacros.h.
15604 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15605 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15606
15607 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15608
15609 * chartab.c (Fset_char_table_range): If range is t, really set all
15610 chars to that value.
15611
15612 2008-05-03 Eli Zaretskii <eliz@gnu.org>
15613
15614 * dired.c (Ffile_attributes): Don't allow the device number become
15615 negative.
15616
15617 2008-05-02 Daiki Ueno <ueno@unixuser.org>
15618
15619 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15620
15621 2008-05-02 Juri Linkov <juri@jurta.org>
15622
15623 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15624 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15625 DEFAULT argument as a list of default values in docstrings.
15626
15627 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
15628
15629 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15630
15631 2008-05-01 Martin Rudalics <rudalics@gmx.at>
15632
15633 * dispnew.c (change_frame_size_1): Preserve small windows when
15634 shrinking frames by calling set_window_height|width with third
15635 arg 2.
15636
15637 * window.h (struct window): Replace field too_small_ok by field
15638 resize_proportionally.
15639
15640 * window.c (make_window): Initialize resize_proportionally.
15641 (enlarge_window): Temporarily set resize_proportionally to make
15642 sure that shrink_windows does scale the window proportionally.
15643 (shrink_windows): When window has resize_proportionally set try
15644 to shrink it proportionally by stealing from other windows.
15645 (struct saved_window, Fset_window_configuration)
15646 (compare_window_configurations): Handle resize_proportionally.
15647 (WINDOW_TOTAL_SIZE): New macro.
15648 (window_min_size, shrink_windows, size_window): Use it.
15649 (check_min_window_sizes): Remove. Invalid values of
15650 window-min-height|width are handled by window_min_size_2 now.
15651 (size_window, Fsplit_window, enlarge_window)
15652 (adjust_window_trailing_edge, grow_mini_window): Don't call
15653 check_min_window_sizes.
15654 (window_min_size_2, window_min_size_1, window_min_size):
15655 New argument safe_p for retrieving "safe" minimum sizes.
15656 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15657 (adjust_window_trailing_edge, grow_mini_window):
15658 Adjust arguments of window_min_size... functions.
15659 (shrink_windows): Argument min_size removed. New argument
15660 safe_p allows shrinking windows to their safe minimum sizes.
15661 Calculate minimum size and decide whether a window shall be
15662 deleted for each window individually.
15663 (size_window): When nodelete_p equals 2, tell shrink_windows to
15664 delete windows only if their new minimum size is no more safe.
15665 (shrink_window_lowest_first): Call window_min_size_1 to make
15666 sure to preserve modeline of bottom-most window when resizing
15667 the minibuffer.
15668 (Fset_window_configuration, Fcurrent_window_configuration)
15669 (compare_window_configurations): Do not handle
15670 window-min-height|width any more.
15671 (syms_of_window): Clarify window-min-height|width doc-strings.
15672
15673 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15674
15675 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15676 some more. Copy some of the code from Ftry_completions.
15677 Remove special case code that dates back to initial revision when the
15678 slash was only added when necessary and that can't trigger nowadays.
15679
15680 2008-04-27 Kenichi Handa <handa@m17n.org>
15681
15682 * font.c (font_prop_validate): Signal `error' instead of `font'.
15683
15684 2008-04-29 Jason Rumney <jasonr@gnu.org>
15685
15686 * w32fns.c (Fw32_battery_status): New defun.
15687 (syms_of_w32fns): Defsubr it.
15688
15689 2008-04-28 Andreas Schwab <schwab@suse.de>
15690
15691 * dired.c (file_name_completion): Fix another mixing of encoded
15692 and decoded names.
15693
15694 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
15695
15696 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15697
15698 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
15699
15700 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15701
15702 2008-04-27 Andreas Schwab <schwab@suse.de>
15703
15704 * dired.c (file_name_completion): Fix inappropriate mixing of
15705 encoded and decoded names.
15706
15707 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15708
15709 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15710
15711 2008-04-26 Eli Zaretskii <eliz@gnu.org>
15712
15713 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15714 2008-03-31, it's not needed anymore with `struct stat' definition
15715 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15716 for the same reasons.
15717
15718 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15719
15720 * m/sparc.h: Additional redefinitions for GNU/Linux.
15721
15722 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15723
15724 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15725 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15726 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15727 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15728 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15729 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15730 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15731 Likewise.
15732
15733 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15734 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15735 (mac_ax_number_of_characters): Add externs.
15736 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15737 [USE_MAC_TSM]: Likewise.
15738 (mac_handle_text_input_event) [MAC_OSX]:
15739 Handle kEventTextInputOffsetToPos for no active input area case.
15740 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15741 (mac_handle_document_access_event)
15742 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15743 (install_application_handler) [MAC_OSX]: Register handlers for
15744 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15745 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15746 Register mac_handle_document_access_event.
15747
15748 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15749 Make functions non-static.
15750
15751 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15752
15753 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15754 (read_file_name_completion_ignore_case, insert_default_directory)
15755 (Qdefault_directory): Move to minibuffer.el.
15756 (Fread_file_name): Call the new `read-file-name' instead.
15757
15758 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15759
15760 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15761 Make function non-static.
15762 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15763 Remove function.
15764 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15765 Move to mactoolbox.c.
15766 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15767
15768 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15769 (mac_rect_make): New macro.
15770
15771 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15772 instead of float.
15773 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15774 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15775 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15776 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15777 CGRectMake.
15778 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15779 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15780 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15781 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15782 instead of WindowRef in argument type.
15783 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15784 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15785 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15786 instead of DISPLAY. All uses changed.
15787 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15788 (x_calc_absolute_position): Simplify so as not to use
15789 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15790
15791 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15792 instead of WindowRef in argument type.
15793 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15794 [TARGET_API_MAC_CARBON]: Remove externs.
15795 (create_apple_event, mac_event_parameters_to_lisp)
15796 [TARGET_API_MAC_CARBON]: Add externs.
15797
15798 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15799 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15800 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15801 is clicked.
15802 (x_activate_menubar): Remove extern for saved_menu_event_location.
15803 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15804 Move from mac.c.
15805
15806 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15807
15808 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15809 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15810
15811 2008-04-23 Jason Rumney <jasonr@gnu.org>
15812
15813 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15814 attributes only for local files.
15815
15816 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15817 default to Qlocal.
15818
15819 2008-04-22 Juri Linkov <juri@jurta.org>
15820
15821 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15822 read-buffer-to-switch instead of using the letter "B".
15823
15824 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15825
15826 * fileio.c (Qdefault_directory): New variable.
15827 (Fread_file_name): Use it to pass `dir' to the completion functions.
15828
15829 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15830
15831 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15832
15833 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15834
15835 * keyboard.c (Vpre_help_message): Remove.
15836 (show_help_echo): Remove default C code.
15837
15838 * dired.c (directory_files_internal, file_name_completion):
15839 Only call ENCODE_FILE if the string is indeed decoded.
15840
15841 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15842
15843 * Makefile.in (TOOLKIT_DEFINES): Remove.
15844 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15845
15846 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15847
15848 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15849 (mactoolbox.o): New target.
15850
15851 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15852 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15853
15854 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15855 Use mac_set_frame_window_background instead of XSetWindowBackground.
15856 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15857 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15858 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15859 instead of SetWindowTitleWithCFString.
15860 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15861 Move function to mactoolbox.c.
15862 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15863 Use mac_set_window_modified instead of SetWindowModified.
15864 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15865 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15866 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15867 FrontNonFloatingWindow. Use mac_activate_window instead of
15868 ActivateWindow. Use mac_active_non_floating_window instead of
15869 ActiveNonFloatingWindow.
15870 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15871 Use mac_show_hourglass and mac_hide_hourglass.
15872 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15873 instead of GetGlobalMouse.
15874 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15875 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15876 Use mac_bring_window_to_front instead of BringToFront.
15877 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15878 mactoolbox.c.
15879 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15880 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15881 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15882 mactoolbox.c.
15883
15884 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15885 (XtPointer): Move typedef from macmenu.c.
15886 (enum button_type): Move enum from macmenu.c.
15887 (widget_value): Move typedef from macmenu.c.
15888 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15889 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15890 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15891 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15892 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15893 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15894 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15895 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15896 (Selection): Move typedef from macselect.c.
15897 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15898 macterm.c.
15899 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15900 (mac_is_window_collapsed, mac_bring_window_to_front)
15901 (mac_send_window_behind, mac_hide_window, mac_show_window)
15902 (mac_collapse_window, mac_front_non_floating_window)
15903 (mac_active_non_floating_window, mac_activate_window)
15904 (mac_move_window_structure, mac_move_window, mac_size_window)
15905 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15906
15907 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15908 (enum mac_menu_kind): Move enum to mactoolbox.c.
15909 (min_menu_id): Move variable to mactoolbox.c.
15910 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15911 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15912 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15913 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15914 [TARGET_API_MAC_CARBON]: Likewise.
15915 (XtPointer): Move typedef to macgui.h.
15916 (enum button_type): Move enum to macgui.h.
15917 (widget_value): Move typedef to macgui.h.
15918 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15919 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15920 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15921 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15922 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15923 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15924 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15925 (popup_activated_flag): Make variable non-static.
15926 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15927 (add_menu_item, fill_menu, dispose_menus):
15928 Move functions to mactoolbox.c.
15929 (restore_show_help_function, menu_target_item_handler)
15930 (install_menu_target_item_handler, mac_handle_dialog_event)
15931 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15932 [TARGET_API_MAC_CARBON]: Likewise.
15933 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15934 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15935 (find_and_call_menu_selection, name_is_separator): Make function
15936 non-static.
15937 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15938 to mactoolbox.c.
15939 (set_frame_menubar): Don't call install_menu_quit_handler.
15940 (menu_item_selection): New variable.
15941 (mac_menu_show): Use create_and_show_popup_menu.
15942 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15943 selection but set variable menu_item_selection. All uses changed.
15944 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15945 Call install_menu_quit_handler. Move to mactoolbox.c.
15946
15947 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15948 (Selection): Move typedef to macgui.h.
15949 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15950 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15951 Make variables non-static.
15952 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15953 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15954 Make functions non-static.
15955 (Vmac_service_selection) [MAC_OSX]: Likewise.
15956 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15957 (mac_valid_selection_target_p, mac_clear_selection)
15958 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15959 (mac_put_selection_value, mac_selection_has_target_p)
15960 (mac_get_selection_value, mac_get_selection_target_list)
15961 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15962 Move functions to mactoolbox.c.
15963 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15964 Likewise.
15965 (copy_scrap_flavor_data, mac_handle_service_event)
15966 (install_service_handler) [MAC_OSX]: Likewise.
15967 (syms_of_macselect) <Vmac_dnd_known_types>:
15968 Use mac_dnd_default_known_types.
15969
15970 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15971 Move to mactoolbox.c.
15972 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15973 (Fx_selection_owner_p): Add EXFUN.
15974 (install_window_handler, remove_window_handler, XSetWindowBackground):
15975 Remove externs.
15976 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15977 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15978 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15979 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15980 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15981 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15982 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15983 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15984 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15985 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15986 (mac_valid_selection_target_p, mac_clear_selection)
15987 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15988 (mac_put_selection_value, mac_selection_has_target_p)
15989 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15990 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15991 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15992 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15993 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15994 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15995 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15996 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15997 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15998
15999 * mactoolbox.c: New file.
16000
16001 2008-04-18 Jason Rumney <jasonr@gnu.org>
16002
16003 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16004
16005 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16006
16007 * character.c (Fmultibyte_char_to_unibyte):
16008 Return latin1 chars unchanged.
16009
16010 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16011 relocated if it points to `name'.
16012
16013 2008-04-17 Kenichi Handa <handa@m17n.org>
16014
16015 * data.c (Faset): Allow setting a multibyte character in an
16016 ASCII-only unibyte string.
16017
16018 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16019
16020 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16021
16022 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16023 done in config.h.
16024
16025 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
16026
16027 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16028 (Fchar_direction): Add usage in the docstring.
16029
16030 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
16031
16032 * keyboard.c (read_key_sequence): Remove always-true checks.
16033
16034 2008-04-14 Jason Rumney <jasonr@gnu.org>
16035
16036 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16037 compatibility struct, for better underline positioning.
16038
16039 2008-04-13 David Hansen <david.hansen@gmx.net>
16040
16041 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16042 string.
16043
16044 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16045
16046 * m/hp800.h (XUINT, XSET): Remove.
16047
16048 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
16049
16050 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16051 previous change.
16052
16053 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16054
16055 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16056 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16057
16058 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16059
16060 * keymap.h (map_keymap_canonical): Declare.
16061 * xmenu.c (single_keymap_panes): Use it.
16062
16063 2008-04-11 Glenn Morris <rgm@gnu.org>
16064
16065 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16066 set the target's value to that of the alias.
16067
16068 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16069
16070 * term.c (set_tty_color_mode): Left over typo.
16071
16072 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16073
16074 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16075 only after check for file name handler functions. Signal, when
16076 native functionality is not supported.
16077 (syms_of_fileio): Declare it unconditionally.
16078
16079 2008-04-10 Jason Rumney <jasonr@gnu.org>
16080
16081 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16082 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16083
16084 * w32.c (logon_network_drive): Also logon to remote drives that
16085 are mapped to drive letters.
16086
16087 2008-04-10 Glenn Morris <rgm@gnu.org>
16088
16089 * xdisp.c (truncate-partial-width-windows): Doc fix.
16090
16091 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16092
16093 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16094 Move functions to minibuffer.el.
16095 (syms_of_fileio): Don't declare them.
16096
16097 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16098
16099 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16100 (syms_of_minibuf): Remove its initialization.
16101
16102 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16103
16104 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16105
16106 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16107
16108 2008-04-09 Jason Rumney <jasonr@gnu.org>
16109
16110 * makefile.w32-in (distclean): Delete makefile too.
16111 (maintainer-clean): New target.
16112
16113 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16114
16115 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16116 for new font backend and composite cases.
16117
16118 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16119
16120 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16121 Most of the code moved to run_timers.
16122 (do_pending_atimers): Call run_timers.
16123 (run_timers): New function.
16124
16125 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16126 run atimers.
16127
16128 * process.c (wait_reading_process_output): The same as above.
16129
16130 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16131
16132 * minibuf.c (last_exact_completion): Remove variable.
16133 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16134 (complete_and_exit_1, complete_and_exit_2)
16135 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16136 (Fdisplay_completion_list, display_completion_list_1)
16137 (Fminibuffer_completion_help, Fself_insert_and_exit)
16138 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16139 minibuffer.el.
16140 (syms_of_minibuf): Remove corresponding initializations.
16141
16142 * keyboard.c (Qdeactivate_mark): New var.
16143 (command_loop_1): Use it to call `deactivate-mark'.
16144 (syms_of_keyboard): Initialize it.
16145
16146 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16147 to another frame.
16148 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16149 Don't call set_tty_color_mode.
16150 (store_frame_param): Reset previous_frame rather than call
16151 set_tty_color_mode.
16152 * term.c (set_tty_color_mode): Rewrite.
16153 * dispextern.h (set_tty_color_mode): New type.
16154 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16155
16156 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16157
16158 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16159 for generic chars, which do not exist any more in emacs-unicode.
16160
16161 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16162
16163 * coding.c (detect_coding_emacs_mule)
16164 (Ffind_operation_coding_system): Fix typo.
16165
16166 2008-04-08 Jason Rumney <jasonr@gnu.org>
16167
16168 * w32uniscribe.c (SNAME): Extract only symbol name.
16169
16170 * w32font.h (struct w32_metric_cache): New struct.
16171 (w32font_info): Use it.
16172 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16173 (CACHE_BLOCKSIZE): New constants.
16174
16175 * w32font.c (Qja, Qko, Qzh): New symbols.
16176 (syms_of_w32font): Initialise them.
16177 (font_matches_spec): Use them to filter by language.
16178 (recompute_cached_metrics): Remove function.
16179 (compute_metrics, clear_cached_metrics): New functions.
16180 (w32font_encode_char): Use them to manage metric cache.
16181 (w32font_text_extents): Cache metrics for all glyphs on demand.
16182 Delay converting glyph indices to WORD until needed.
16183 (w32font_open_internal): Initialize metric cache to empty.
16184 (registry_to_w32_charset): Charset should always be a symbol.
16185 (fill_in_logfont, list_all_matching_fonts): Family should
16186 always be a symbol.
16187
16188 2008-04-06 Jason Rumney <jasonr@gnu.org>
16189
16190 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16191 Give up if glyph indices not supported. Use uniscribe obtained
16192 ABC widths for individual metrics. Map glyph clusters back to
16193 characters using fClusterStart flag. Return number of glyphs
16194 produced, not chars processed.
16195 (uniscribe_shape): Map char at FROM to current glyph.
16196
16197 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16198
16199 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16200 Use SetMenuItemHierarchicalMenu.
16201
16202 2008-04-05 Jason Rumney <jasonr@gnu.org>
16203
16204 * image.c (pbm_load): Allow color values up to 65535.
16205 Throw an error if max_color_idx is outside the supported range.
16206 Report an error when image size is invalid.
16207 Read two bytes at a time when raw images have max_color_idx above 255.
16208
16209 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16210
16211 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16212 append "CCL: Quitted" when the CCL program is quitted.
16213 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16214
16215 * ccl.h (struct ccl_program): New member quit_silently.
16216
16217 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16218
16219 * search.c (compile_pattern_1): Treat non-nil and non-string of
16220 search-spaces-regexp as nil.
16221
16222 * minibuf.c (Fassoc_string): Tweak docstring.
16223
16224 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16225
16226 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16227 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16228 2008-03-14 to force inode be positive.
16229
16230 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16231 _S_* ones, since we now use our own sys/stat.h.
16232 (stat, fstat): Don't mangle the inode number.
16233 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16234
16235 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16236
16237 * frame.h (struct frame): Give one more bit to `visible' since we use
16238 values larger than 1 to indicate obscured frames on ttys.
16239
16240 * keymap.c (Qkeymap_canonicalize): New var.
16241 (Fmap_keymap_internal): New fun.
16242 (describe_map): Use keymap-canonicalize.
16243
16244 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16245 (Fundo_boundary): Set them.
16246 (syms_of_undo): Initialize them.
16247 (record_point): Use them instead of last_point_position*.
16248 (last_undo_buffer): Change type.
16249
16250 2008-04-04 Jason Rumney <jasonr@gnu.org>
16251
16252 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16253 (recompute_cached_metrics): Don't set ascent and descent per char.
16254
16255 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16256 (uniscribe_check_otf): Add GC protection before consing.
16257 Rearrange loop for counting features.
16258
16259 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16260
16261 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16262 buffer with byte-size of source buffer.
16263
16264 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16265
16266 * callint.c (Fcall_interactively): Handle temporary region even
16267 when shift-select-mode is off.
16268
16269 2008-04-03 Jason Rumney <jasonr@gnu.org>
16270
16271 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16272
16273 2008-04-03 Kenichi Handa <handa@m17n.org>
16274
16275 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16276 (CATEGORY_MASK_UTF_16): Likewise.
16277 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16278 binary file.
16279 (detect_coding): Add null-byte detection for a binary file.
16280 (detect_coding_system): Likewise.
16281
16282 2008-04-03 Jason Rumney <jasonr@gnu.org>
16283
16284 * w32uniscribe.c: New file.
16285
16286 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16287
16288 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16289
16290 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16291 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16292 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16293 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16294 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16295 (Qphonetic): New symbols.
16296 (syms_of_w32font): Initialize them.
16297 (font_supported_scripts): Use them.
16298 (w32font_list_family): List all charsets.
16299 (w32font_text_extents, recompute_cached_metrics): Fix metric
16300 calculations.
16301 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16302 Give opentype fonts their own format.
16303 (font_matches_spec): New arguments backend and logfont.
16304 Handle :otf spec for uniscribe backend.
16305 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16306 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16307
16308 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16309 font backend.
16310 (globals_of_w32fns): Initialize uniscribe font backend.
16311
16312 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16313 dependencies.
16314 (w32uniscribe.$(O)): New file to build.
16315 (FONT_OBJ): Include w32uniscribe.$(O).
16316 (LIBS): Add uniscribe libraries.
16317
16318 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16319
16320 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16321
16322 * callint.c (Vshift_select_mode): New var.
16323 (Finteractive): Document new ^ spec.
16324 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16325 is present.
16326
16327 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16328 (command_loop_1): Avoid running the direct display versions of
16329 forward-char and backward-char if shift-selection may occur.
16330 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16331 shift-translation takes place.
16332
16333 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16334 avoid clobbering by define-minor-mode.
16335
16336 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16337 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16338
16339 * syntax.c (Fforward_word): Add ^ interactive spec.
16340
16341 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16342 (Fscroll_right): Add ^ interactive spec.
16343
16344 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16345
16346 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16347
16348 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16349
16350 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16351
16352 2008-03-31 Juri Linkov <juri@jurta.org>
16353
16354 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16355
16356 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16357
16358 * gtkutil.c (xg_set_geometry): Fix indentation.
16359 (xg_resize_outer_widget): Remove.
16360 (x_wm_size_hint_off): Fix indentation.
16361 (xg_frame_set_char_size): Call flush_and_sync after
16362 gtk_window_resize.
16363 (x_wm_set_size_hint): Pass NULL as geometry window to
16364 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16365 Add menu bar and tool bar height to base height.
16366 (xg_update_frame_menubar, free_frame_menubar)
16367 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16368 (update_frame_tool_bar, free_frame_tool_bar):
16369 Change xg_resize_outer_widget to xg_frame_set_char_size.
16370
16371 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16372
16373 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16374 (Fdbus_call_method): New parameter TIMEOUT.
16375 (dbus-send-signal): Optimize UNGCPRO call.
16376
16377 2008-03-29 Juri Linkov <juri@jurta.org>
16378
16379 * window.c (Fdisplay_buffer): Move call to
16380 Vsplit_window_preferred_function out of conditions that check
16381 if window is eligible for vertical splitting.
16382 When Vsplit_window_preferred_function is non-nil, call it and use
16383 its non-nil return value as window. Otherwise, continue doing
16384 vertical splitting using Fsplit_window with arg horflag=nil.
16385 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16386 default value from `split-window' to nil.
16387
16388 2008-03-29 Juri Linkov <juri@jurta.org>
16389
16390 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16391 for interactive code letters 'b' and 'B'.
16392
16393 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16394
16395 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16396 multibyte string.
16397
16398 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16399
16400 * keyboard.c (pending_funcalls): New var.
16401 (timer_check): Run it.
16402 (syms_of_keyboard): Initialize it.
16403 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16404 (Vdelete_terminal_functions): New vars.
16405 (syms_of_terminal): Initialize them.
16406 (Fdelete_terminal): Run delete-terminal-functions.
16407 * xdisp.c (safe_eval): Rewrite.
16408 (safe_call2): New fun.
16409 * frame.c (Qdelete_frame_functions): New var.
16410 (syms_of_frame): Initialize it.
16411 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16412 * lisp.h (safe_call2, pending_funcalls): Declare.
16413
16414 2008-03-28 Andreas Schwab <schwab@suse.de>
16415
16416 * indent.c (Fmove_to_column): Move declaration before statements.
16417
16418 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16419
16420 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16421 (struct frame): Use bit fields for boolean vars.
16422
16423 * process.c (server_accept_connection): Simplify naming.
16424 (emacs_get_tty_pgrp): Use SDATA.
16425
16426 * coding.c (decode_coding_object): Fix last change.
16427
16428 2008-03-27 Jason Rumney <jasonr@gnu.org>
16429
16430 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16431
16432 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16433
16434 * charset.c (Fdefine_charset_internal): Change the way of
16435 registering charsets in Vcharset_order_list.
16436 (syms_of_charset): Make the charset `eight-bit' supplementary.
16437
16438 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16439
16440 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16441 operations, to avoid having the difference between pointers
16442 overflow.
16443
16444 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16445
16446 * indent.c (check_display_width): New fun.
16447 (scan_for_column): Use it.
16448
16449 * data.c (syms_of_data): Mark most-positive-fixnum and
16450 most-negative-fixnum as constants.
16451
16452 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16453
16454 * indent.c (scan_for_column): Extract from current_column_1.
16455 Merge with the same code from Fmove_to_column.
16456 (current_column_1, Fmove_to_column): Use it.
16457
16458 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16459
16460 * keymap.c (map_keymap_internal): New fun.
16461 (map_keymap): Use it.
16462 (Fmap_keymap_internal): New fun.
16463 (Fmap_keymap): Remove left-out test from before make_save_value.
16464
16465 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16466
16467 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16468 Use XCAR/XCDR.
16469
16470 * process.h (struct Lisp_Process): Remove filter_multibyte.
16471 * process.c (QCfilter_multibyte): Remove.
16472 (setup_process_coding_systems): Don't use filter_multibyte.
16473 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16474 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16475 (Fset_process_filter_multibyte): Change the coding-system to
16476 approximate the previous behavior.
16477 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16478 coding-system.
16479
16480 * coding.c (decode_coding_object): When not decoding into a buffer,
16481 obey the coding system's preference of (uni|multi)byte.
16482
16483 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16484
16485 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16486 every char is changed and has a different byte-length.
16487 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16488 Fix int -> EMACS_INT.
16489
16490 2008-03-23 David Hansen <david.hansen@gmx.net>
16491
16492 * dbusbind.c (xd_read_message): Remove extra copying of message
16493 strings. Check for NULL `interface' or `member'.
16494
16495 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16496
16497 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16498 cFileName a file name that includes `?' characters, use the 8+3
16499 alias in cAlternateFileName instead.
16500
16501 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16502
16503 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16504
16505 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16506
16507 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16508 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16509 work on current_buffer only instead (that was already the case
16510 for some of the code anyway).
16511 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16512 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16513 (SET_PT, SET_PT_BOTH): Adjust.
16514 * intervals.h (set_point, temp_set_point, set_point_both)
16515 (temp_set_point_both): Remove redundant declarations.
16516
16517 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16518
16519 * fileio.c (Finsert_file_contents):
16520 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16521 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16522 when buffer != current_buffer anyway.
16523
16524 2008-03-20 Andreas Schwab <schwab@suse.de>
16525
16526 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16527 as default.
16528
16529 2008-03-19 Jason Rumney <jasonr@gnu.org>
16530
16531 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16532 (syms_of_w32fns): Initialize them.
16533 (HOURGLASS_ID): New constant.
16534 (x_window_to_frame): Don't check hourglass_window.
16535 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16536 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16537 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16538 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16539 Only change the cursor if hourglass is not active.
16540 (Fx_create_frame): Initialize frame's current_cursor.
16541 (hourglass_atimer): Remove.
16542 (hourglass_started): New function.
16543 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16544 (show_hourglass): Adapt to w32, changing argument to frame.
16545
16546 * w32term.h (struct w32_output): Remove hourglass_window.
16547 Add current_cursor.
16548
16549 * eval.c (call_debugger, Fsignal):
16550 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16551 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16552 (Fexecute_extended_command, cancel_hourglass_unwind):
16553 * minibuf.c (read_minibuf):
16554 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16555
16556 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16557
16558 * window.c (run_funs): New fun.
16559 (run_window_configuration_change_hook): Use it to run the buffer-local
16560 and the global part of the hook.
16561
16562 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16563 (unwind_format_mode_line): Restore selected window.
16564 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16565
16566 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16567
16568 * editfns.c (Fchar_equal): Check they are valid characters.
16569
16570 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16571
16572 2008-03-17 Andreas Schwab <schwab@suse.de>
16573
16574 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16575 against a charset.
16576
16577 * lisp.h (Fbuffer_list): Declare.
16578
16579 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16580
16581 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16582 handlebox_widget is != 0.
16583
16584 2008-03-16 Juri Linkov <juri@jurta.org>
16585
16586 * callint.c (Fcall_interactively): For interactive code letters
16587 'b' and 'B' put the buffer list into the list of default "future"
16588 values of the minibuffer.
16589
16590 2008-03-16 Andreas Schwab <schwab@suse.de>
16591
16592 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16593 modifiers.
16594
16595 * regex.c (re_match_2_internal): Correct matching of a charset
16596 against latin-1 characters.
16597
16598 2008-03-16 Kenichi Handa <handa@m17n.org>
16599
16600 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16601 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16602 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16603 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16604 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16605 CHAR_STRING_ADVANCE.
16606 (produce_chars): Fix for the case that the source and the
16607 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16608 instead of CHAR_STRING_ADVANCE.
16609 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16610 STRING_CHAR_ADVANCE.
16611
16612 2008-03-15 Andreas Schwab <schwab@suse.de>
16613
16614 * regex.c (re_match_2_internal): Correct matching of eight bit
16615 characters in unibyte strings.
16616
16617 2008-03-15 Martin Rudalics <rudalics@gmx.at>
16618
16619 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16620 at end of range when it coincides with the end of the buffer.
16621
16622 2008-03-14 Eli Zaretskii <eliz@gnu.org>
16623
16624 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16625
16626 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16627
16628 2008-03-14 Jason Rumney <jasonr@gnu.org>
16629
16630 * editfns.c (initial_tz): New variable.
16631 (syms_of_editfns): Initialize it.
16632 (Fset_time_zone_rule): Set it when first called.
16633 Use it when TZSTRING is nil.
16634
16635 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16636 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16637 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16638 (globals_of_w32fns): Initialize them.
16639 (compute_tip_xy): Use them to position tooltips.
16640
16641 2008-03-14 Glenn Morris <rgm@gnu.org>
16642
16643 * emacs.c (main): Revert previous change.
16644 (standard_args): Revert -internal-script back to -scriptload,
16645 and remove the long-option form.
16646
16647 2008-03-13 Glenn Morris <rgm@gnu.org>
16648
16649 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16650 Remove option -enable-font-backend.
16651
16652 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16653
16654 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16655
16656 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16657
16658 * xterm.c (x_connection_closed): For GTK: If this is the last
16659 terminal just exit without closing the display.
16660
16661 2008-03-11 Jason Rumney <jasonr@gnu.org>
16662
16663 * w32font.c (w32font_full_name): Use floor to round.
16664
16665 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16666
16667 * sound.c (alsa_configure): Declare vol at beginning of block.
16668
16669 * fontset.c (Ffontset_info): Remove extra semicolon.
16670
16671 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16672
16673 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16674 size of resulting string.
16675
16676 2008-03-10 Jason Rumney <jasonr@gnu.org>
16677
16678 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16679
16680 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16681
16682 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16683 Don't pretend as if characters with display property haven't been
16684 consumed for string-replacing-string case.
16685
16686 2008-03-08 Kim F. Storm <storm@cua.dk>
16687
16688 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16689 (get_next_display_element, next_element_from_string)
16690 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16691
16692 2008-03-08 Andreas Schwab <schwab@suse.de>
16693
16694 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16695
16696 2008-03-06 Jason Rumney <jasonr@gnu.org>
16697
16698 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16699 when charset not specified. Only translate ANSI to unicode when
16700 font_type is truetype.
16701 (w32font_coverage_ok): New function.
16702 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16703
16704 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16705
16706 * lread.c (Fread_char): Resolve modifiers.
16707 (Fread_char_exclusive): Likewise.
16708
16709 * character.c (char_resolve_modifier_mask): New function.
16710 (char_string): Use char_resolve_modifier_mask.
16711 (Fchar_resolve_modifiers): New function.
16712 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16713 function.
16714
16715 2008-03-04 Jason Rumney <jasonr@gnu.org>
16716
16717 * makefile.w32-in: Always include w32font.c in the build.
16718 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16719
16720 2008-03-04 Andreas Schwab <schwab@suse.de>
16721
16722 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16723 (versionclean): Likewise.
16724
16725 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
16726
16727 * .cvsignore: Add oo.
16728
16729 2008-03-03 Andreas Schwab <schwab@suse.de>
16730
16731 * coding.c (decode_coding_object): Inhibit gap shrinking while
16732 decoding in place.
16733
16734 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16735
16736 * w32term.c: Remove unused include "gnu.h".
16737 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16738
16739 * gnu.h: Rename to ...
16740 * emacs-icon.h: ... this.
16741 * xterm.c: Use emacs-icon.h instead of gnu.h.
16742 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16743
16744 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
16745
16746 * w32font.c: Include math.h.
16747
16748 2008-03-03 Jason Rumney <jasonr@gnu.org>
16749
16750 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16751 Compute options separately.
16752 (w32font_open_internal): Set glyph_idx before caching metrics.
16753
16754 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16755 Define if system headers don't.
16756 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16757 (w32font_encode_char): Don't declare here.
16758
16759 * w32font.c (Quniscribe, QCformat): New symbols.
16760 (syms_of_w32font): Define them.
16761 (w32font_has_char): Indicate uncertainty.
16762 (w32font_encode_char): Encode as glyph point. Make static.
16763 (recompute_cached_metrics): New function.
16764 (w32font_open_internal): Use it. Set font to use glyph points
16765 initially. Set format based on type of font.
16766 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16767 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16768 on it. Set format based on information available here.
16769 (add_font_entity_to_list): Identify backend based on opentype_only.
16770
16771 2008-03-02 Andreas Schwab <schwab@suse.de>
16772
16773 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16774
16775 * coding.c (decode_coding_big5, produce_chars):
16776 Fix typos in last change.
16777
16778 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16779
16780 * gnu.h: New icon.
16781
16782 2008-03-02 Kenichi Handa <handa@m17n.org>
16783
16784 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16785 `dos', don't decode '\r' if that is the last in the source.
16786 (decode_coding_utf_16, decode_coding_emacs_mule)
16787 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16788 (decode_coding_raw_text, decode_coding_charset): Likewise.
16789 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16790
16791 2008-03-01 Jason Rumney <jasonr@gnu.org>
16792
16793 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16794
16795 2008-03-01 Kim F. Storm <storm@cua.dk>
16796
16797 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16798
16799 2008-03-01 Jason Rumney <jasonr@gnu.org>
16800
16801 * w32font.c (w32font_full_name): New function.
16802 (w32font_open_internal): Use it.
16803
16804 2008-03-01 Kim F. Storm <storm@cua.dk>
16805
16806 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16807
16808 2008-03-01 Jason Rumney <jasonr@gnu.org>
16809
16810 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16811
16812 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16813
16814 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16815 xg_frame_resized when the event is for the edit widget.
16816
16817 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16818
16819 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16820 set_char_size.
16821 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16822 operations on widgets here. Just set frame size if needed.
16823 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16824 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16825 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16826 the whole frame.
16827 (xg_create_tool_bar): Move attachment of the tool bar to
16828 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16829 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16830
16831 2008-03-01 Jason Rumney <jasonr@gnu.org>
16832
16833 * w32fns.c (w32_msg_pump): Disable debug code.
16834
16835 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16836
16837 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16838
16839 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16840
16841 * xdisp.c (next_overlay_string): Don't set
16842 overlay_strings_at_end_processed_p if we're currently reading from
16843 a display string.
16844
16845 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16846
16847 * xdisp.c (get_overlay_strings_1): Fix typo.
16848
16849 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16850
16851 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16852
16853 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16854
16855 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16856
16857 * xdisp.c (display_mode_element): Cancel the previous change.
16858 (decode_mode_spec): Likewise.
16859 (handle_auto_composed_prop): Don't make composition if it->string
16860 is a string.
16861
16862 2008-02-27 Kim F. Storm <storm@cua.dk>
16863
16864 * lisp.h (GLYPH): Change type from int to struct with separate char
16865 and face_id members.
16866 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16867 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16868 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16869 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16870 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16871 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16872 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16873 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16874 handle new Lisp glyph code encoding, either an integer or a cons.
16875
16876 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16877 (GLYPH_ALIAS): Delete.
16878 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16879 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16880 (GLYPH_FROM_CHAR): Replace macro by ...
16881 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16882
16883 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16884 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16885 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16886 (GLYPH_INVALID_P): New macro.
16887 (spec_glyph_lookup_face): Update prototype.
16888
16889 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16890 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16891 new glyph code encoding.
16892 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16893 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16894
16895 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16896 Adapt to new glyph type and new glyph code encoding.
16897
16898 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16899
16900 * indent.c (current_column, current_column_1, Fmove_to_column)
16901 (compute_motion): Adapt to new glyph code encoding.
16902
16903 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16904
16905 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
16906
16907 * process.c (wait_reading_process_output): Check for window
16908 changes caused by timers.
16909 Suggested by Johan Bockgård.
16910
16911 2008-02-27 Glenn Morris <rgm@gnu.org>
16912
16913 * emacs.c (USAGE1): Add `--disable-font-backend'.
16914
16915 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16916
16917 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16918 is made to the buffer.
16919
16920 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16921
16922 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16923 (face_at_string_position):
16924 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16925 (face_at_string_position):
16926 * xdisp.c (display_string, next_overlay_change):
16927 * buffer.h (overlays_at):
16928 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16929 Update callers.
16930
16931 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
16932
16933 * editfns.c (Fformat): Doc fix.
16934
16935 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
16936
16937 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16938 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16939 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16940
16941 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16942
16943 * buffer.c (Fbuffer_swap_text): New function.
16944 (syms_of_buffer): Defsubr it.
16945
16946 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
16947
16948 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16949
16950 2008-02-25 Jason Rumney <jasonr@gnu.org>
16951
16952 * w32font.c (w32font_draw): Draw one character at a time when padding.
16953
16954 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16955
16956 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16957 Handle a nil arg. Use run_window_configuration_change_hook.
16958 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16959 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16960 Use run_window_configuration_change_hook.
16961
16962 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16963
16964 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16965 1-pixel width.
16966
16967 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16968
16969 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16970 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16971 if the glyph in the font is zero pixel with.
16972
16973 * dispextern.h (struct glyph_string): New member padding_p.
16974
16975 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16976
16977 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16978
16979 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16980
16981 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16982
16983 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16984
16985 2008-02-25 Jason Rumney <jasonr@gnu.org>
16986
16987 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16988
16989 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16990
16991 Allow fine-grained image-cache flushing.
16992 * dispextern.h (struct image): Add `dependencies' field.
16993 (clear_image_caches): Change arg to Lisp_Object.
16994 * image.c (make_image): Initialize `dependencies' field.
16995 (clear_image_cache): Change arg to allow fine-grained flushing.
16996 Perform the flush even if image-cache-eviction-delay is nil.
16997 (clear_image_caches): Change arg to Lisp_Object.
16998 (Fclear_image_cache): Expand meaning of the argument.
16999 (mark_image): Mark `dependencies' field.
17000 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17001 (lface_hash): Use XHASH rather than XFASTINT.
17002 (face_at_buffer_position): Fix int -> EMACS_INT position.
17003 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17004 (select_frame_for_redisplay): Remove code duplication.
17005 (redisplay_internal): Adapt arg to call to clear_image_caches.
17006
17007 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17008
17009 * s/vms4-0.h:
17010 * s/vms4-2.h:
17011 * s/vms4-4.h:
17012 * s/vms5-5.h: Remove, unused.
17013
17014 * s/irix5-2.h:
17015 * s/irix6-0.h:
17016 * s/riscos5.h:
17017 * s/mach-bsd4-3.h:
17018 * m/mips4.h: Remove files for obsolete systems.
17019
17020 * Makefile.in:
17021 * filelock.c:
17022 * unexmips.c:
17023 * m/hp9000s300.h:
17024 * m/iris4d.h:
17025 * s/aix3-1.h:
17026 * s/hpux.h:
17027 * s/msdos.h:
17028 * s/usg5-0.h:
17029 * s/usg5-2-2.h:
17030 * s/usg5-2.h:
17031 * s/usg5-3.h: Remove references to obsolete variables.
17032
17033 * s/irix5-0.h: Remove, move all the contents ...
17034 * s/irix6-5.h: ... here. Simplify.
17035 * config.in: Regenerate.
17036
17037 2008-02-24 Jason Rumney <jasonr@gnu.org>
17038
17039 * w32term.c (x_draw_glyph_string_background): Clear the background
17040 manually when cleartype is in use.
17041 (x_draw_glyph_string_foreground): Draw text transparently when
17042 cleartype is in use.
17043
17044 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17045 a font into it unless we have to.
17046
17047 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17048
17049 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17050 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
17051
17052 2008-02-18 Jason Rumney <jasonr@gnu.org>
17053
17054 * w32fns.c (Fw32_shell_execute): Encode parameters.
17055
17056 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17057
17058 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17059
17060 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17061
17062 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17063
17064 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17065
17066 * xterm.c (x_set_offset): Don't change the gravity if
17067 CHANGE_GRAVITY is -1.
17068
17069 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17070
17071 * fileio.c (auto_save_error_occurred): New var.
17072 (auto_save_error): Set it.
17073 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17074 error occurred.
17075
17076 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17077
17078 * w32.c (globals_of_w32): Add initializations for
17079 g_b_init_get_sid_sub_authority and
17080 g_b_init_get_sid_sub_authority_count.
17081
17082 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17083
17084 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17085 (font_parse_xlfd): Use them for sanity check.
17086 (Finternal_set_font_style_table): Make sure the table is bijective.
17087
17088 Consolidate the image_cache to the terminal struct.
17089 * termhooks.h (P_): Remove redundant def.
17090 (struct terminal): New field `image_cache'.
17091 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17092 of FRAME_X_IMAGE_CACHE.
17093 * xterm.h (struct x_display_info): Remove image_cache field.
17094 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17095 * w32term.h (struct w32_display_info): Remove image_cache field.
17096 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17097 * macterm.h (struct mac_display_info): Remove image_cache field.
17098 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17099 * xterm.c (x_term_init):
17100 * w32term.c (w32_term_init):
17101 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17102 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17103 Remove declarations.
17104 (clear_image_caches, mark_image_cache): New declarations.
17105 * xfaces.c (clear_face_cache):
17106 * xdisp.c (redisplay_internal): Use clear_image_caches.
17107 * image.c (clear_image_cache): Don't check that a frame is on
17108 a window-system before checking if it shares the same cache.
17109 (clear_image_caches): New function.
17110 (Fclear_image_cache): Use it.
17111 (mark_image): Move from allo.c.
17112 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17113 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17114 (mark_object): Don't call mark_image_cache for frames.
17115 (mark_terminals): Call mark_image_cache.
17116
17117 * lisp.h (Fdelete_terminal): Declare.
17118
17119 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17120 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17121 wrong_type_argument.
17122
17123 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17124
17125 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17126 malayalam.el, and tamil.el. Add sinhala.el.
17127
17128 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17129
17130 * xterm.c (x_connection_closed): Consolidate identical tests.
17131 (x_delete_terminal): Don't crash if called via x_connection_closed.
17132
17133 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17134
17135 * xdisp.c (decode_mode_spec): New arg string.
17136 (display_mode_element): Adjust for the above change.
17137
17138 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17139
17140 * callint.c (Fcall_interactively): Use AREF.
17141
17142 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17143
17144 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17145
17146 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17147
17148 * xfns.c (Fx_show_tip): Set string to " " if empty.
17149
17150 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17151
17152 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17153 with Qt.
17154
17155 2008-02-17 Kenichi Handa <handa@m17n.org>
17156
17157 * ftfont.c (ftfont_shape): Return Lispy number.
17158
17159 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17160 for GCs.
17161 (Finternal_set_font_selection_order): Call font_update_sort_order
17162 only when enable_font_backend is set.
17163 (realize_x_face): Set face->font_info to that of default face only
17164 when enable_font_backend is set.
17165
17166 * xdisp.c (handle_composition_prop): Set it->c to the fist
17167 character of the composed region.
17168 (fill_composite_glyph_string): Set base_face->font_info to
17169 s->font_info. Get a face for ascii from base_face->ascii_face.
17170 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17171 with a face already decided.
17172 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17173 non-negative.
17174 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17175 call font_prepare_composition unconditionally.
17176
17177 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17178
17179 * xterm.h (struct x_display_info): New member font.
17180
17181 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17182 (x_set_mouse_face_gc, x_new_font): Likewise.
17183 (x_term_init): Setup display_info->font.
17184 (x_delete_terminal): Free display_info->font.
17185
17186 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17187
17188 * ftxfont.c (ftxfont_default_fid): Delete it.
17189 (ftxfont_open): Set xfont->fid to 0.
17190 (ftxfont_end_for_frame): Clear data specific to the frame and the
17191 font-driver.
17192
17193 * xftfont.c (xftfont_default_fid): Delete it.
17194 (xftfont_open): Set xfont->fid to 0.
17195
17196 * fontset.c (FONTSET_OBJLIST): New macro.
17197 (fontset_find_font): Update font-object list of the fontset.
17198 (free_realized_fontset): New function.
17199 (free_face_fontset): Call free_realized_fontset.
17200 (Ffont_info): Call font_close_object only when enable_font_backend
17201 is set.
17202
17203 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17204 [HAVE_NTGUI]: Include w32term.h.
17205 [MAC_OS]: Include macterm.ch.
17206 (font_otf_ValueRecord): Use make_number.
17207 (font_finish_cache): Fix handling of reference count.
17208 (font_clear_cache): Update num_fonts.
17209 (font_open_entity): Update smallest_char_width and
17210 smallest_font_height of the frame.
17211 (font_close_object): Update num_fonts.
17212 (Fclear_font_cache): Fix finding the target cache data.
17213
17214 2008-02-16 Glenn Morris <rgm@gnu.org>
17215
17216 * fontset.c (Finternal_char_font): Fix compilation warning.
17217
17218 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17219
17220 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17221 instead of char arrays. Enlarge the size of array passed to
17222 get_token_information.
17223
17224 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17225 warnings.
17226
17227 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17228
17229 * .gdbinit: Don't set `args', it breaks gdb --args.
17230
17231 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17232
17233 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17234 within a narrowed buffer.
17235
17236 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17237
17238 * coding.c (decode_coding_object, encode_coding_object):
17239 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17240
17241 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17242
17243 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17244 hardcoding 1.
17245 (detect_coding_system):
17246 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17247 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17248 * insdel.c (insert_from_gap):
17249 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17250 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17251 (string_to_multibyte):
17252 * character.c (chars_in_text, multibyte_chars_in_text):
17253 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17254
17255 * character.h (FETCH_STRING_CHAR_ADVANCE)
17256 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17257 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17258 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17259
17260 * casefiddle.c (casify_region): Only call after-change and composition
17261 functions on the part of the region that was changed.
17262
17263 * keyboard.c (read_avail_input):
17264 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17265
17266 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17267
17268 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17269 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17270
17271 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17272
17273 * w32menu.c (push_submenu_start, push_submenu_end)
17274 (push_left_right_boundary, push_menu_pane, push_menu_item):
17275 * keyboard.c (read_key_sequence): Don't pass args with side effects
17276 to AREF, it fails when compiling with -DENABLE_CHECKING.
17277
17278 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17279
17280 * Makefile.in (${lispsource}international/charprop.el):
17281 Delete this target.
17282
17283 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17284 emacs-unicode-2.
17285
17286 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17287
17288 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17289
17290 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17291
17292 * frame.c (Qnoelisp): New symbol.
17293 (syms_of_frame): Initialize it.
17294 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17295 harmless Elisp code, from a strong `force' from x_connection_closed.
17296 * frame.h (Qnoelisp): Declare.
17297 * xterm.c (x_connection_closed): Pass `noelisp'.
17298
17299 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17300 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17301 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17302 rather than `int' for the type of `type'.
17303
17304 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17305
17306 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17307
17308 * Makefile.in (GNUC): Remove support for gcc-1.x.
17309
17310 2008-02-10 Richard Stallman <rms@gnu.org>
17311
17312 * lisp.h (ASET): Use AREF, not ASLOT.
17313
17314 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17315
17316 * lisp.h (ASET): Check bounds.
17317
17318 2008-02-10 Glenn Morris <rgm@gnu.org>
17319
17320 * buffer.c (mode-name): Doc fix.
17321
17322 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17323
17324 * Makefile.in:
17325 * emacs.c:
17326 * gmalloc.c:
17327 * keyboard.c:
17328 * lisp.h:
17329 * m/ibm370aix.h:
17330 * process.c:
17331 * regex.c:
17332 * s/hpux.h:
17333 * sysdep.c:
17334 * sysselect.h:
17335 * systty.h:
17336 * unexec.c:
17337 * w32term.c:
17338 * xsmfns.c:
17339 * xterm.c: Remove code that deals with obsolete variables.
17340
17341 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17342
17343 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17344 nothing else needs it anymore.
17345
17346 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17347
17348 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17349 instead of unibyte_char_to_multibyte.
17350
17351 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17352
17353 * s/gnu-linux.h: Remove commented out code.
17354
17355 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17356
17357 * Makefile.in: Update what RMS says about using autoconf.
17358 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17359 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17360 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17361 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17362
17363 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17364
17365 * keymap.c (Fkey_description): Move side effect outside of macro call.
17366
17367 * xfaces.c (Finternal_make_lisp_face):
17368 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17369
17370 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17371 (syms_of_fontset): Use ASET.
17372
17373 * fns.c (concat): Move side effect outside of macro call.
17374 (hash_clear): Use ASET.
17375
17376 2008-02-08 Richard Stallman <rms@gnu.org>
17377
17378 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17379 If FORCE, and frame has a surrogate minibuffer for another frame,
17380 delete the other frame first.
17381
17382 2008-02-07 Timo Savola <timo.savola@iki.fi>
17383
17384 * xterm.c (x_detect_focus_change): Handle embed client message.
17385 (handle_one_xevent): Ditto.
17386 (handle_one_xevent): If embedded and we get a button press/release,
17387 request focus.
17388 (xembed_set_info, xembed_send_message): New functions.
17389 (x_make_frame_visible): Call xembed_set_info if embedded.
17390 (x_make_frame_invisible): Call xembed_set_info if embedded.
17391 (x_term_init): Initialize Xatom_XEMBED.
17392 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17393 (x_iconify_frame): Ditto.
17394
17395 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17396 (enum xembed_info, enum xembed_message, enum xembed_focus)
17397 (enum xembed_modifier, enum xembed_accelerator): New.
17398 (xembed_set_info, xembed_send_message): Declare.
17399 (FRAME_X_EMBEDDED_P): New.
17400
17401 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17402 gtk_plug_new.
17403
17404 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17405 window ID of a frame.
17406 (x_window): Reparent frame if embedded.
17407 (Fx_create_frame): Don't set border width if embedded.
17408
17409 * emacs.c (USAGE3): Add --parent-id.
17410 (standard_args): Ditto.
17411
17412 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17413
17414 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17415
17416 2008-02-07 Jim Meyering <meyering@redhat.com>
17417
17418 Use "do...while (0)", not "if (1)...else" in macro definitions.
17419 The latter provokes a warning from gcc about the empty else, when
17420 followed by ";". Also, without that trailing semicolon, it would
17421 silently swallow up any following statement.
17422 * syntax.h (SETUP_SYNTAX_TABLE)
17423 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17424 * buffer.h (DECODE_POSITION): Likewise.
17425 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17426 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17427 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17428 (FETCH_CHAR_ADVANCE): Likewise.
17429 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17430
17431 2008-02-07 Jim Meyering <meyering@redhat.com>
17432
17433 * lread.c [lint]: Don't include <sys/inode.h>.
17434
17435 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17436
17437 * xselect.c (x_handle_dnd_message):
17438 * xmenu.c (digest_single_submenu, xmenu_show):
17439 * xdisp.c (with_echo_area_buffer_unwind_data)
17440 (format_mode_line_unwind_data, unwind_format_mode_line)
17441 (display_menu_bar):
17442 * eval.c (Ffetch_bytecode):
17443 * doc.c (store_function_docstring):
17444 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17445 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17446 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17447
17448 2008-02-07 Kenichi Handa <handa@m17n.org>
17449
17450 * ftxfont.c (ftxfont_open): Don't set
17451 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17452
17453 * ftfont.c (ftfont_open): Fix previous change.
17454
17455 2008-02-06 Jason Rumney <jasonr@gnu.org>
17456
17457 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17458 Use cached metrics for ASCII characters.
17459 (w32font_open_internal): Don't set font's owning_frame.
17460 Cache metrics for ASCII characters.
17461
17462 * w32font.h (struct w32font_info): Add ascii_metrics.
17463 Remove owning_frame.
17464
17465 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17466
17467 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17468 to negative value.
17469
17470 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17471
17472 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17473
17474 * charset.c (syms_of_charset): Set QCtest and Qeq.
17475
17476 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17477
17478 * process.c (Fstart_process):
17479 * callproc.c (Fcall_process): Handle the case where
17480 Funhandled_file_name_directory returns nil.
17481
17482 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17483 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17484 * font.c (check_gstring): Use them and AREF to access the vector before
17485 we know it's really a gstring.
17486 (Ffont_shape_text): Fix typo.
17487 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17488
17489 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17490 Declare.
17491
17492 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17493
17494 2008-02-05 Jason Rumney <jasonr@gnu.org>
17495
17496 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17497 Set smallest_font_height and smallest_char_width in display info.
17498
17499 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17500
17501 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17502
17503 2008-02-05 Miles Bader <miles@gnu.org>
17504
17505 * xfaces.c (get_lface_attributes, merge_named_face)
17506 (lookup_named_face, lookup_derived_face, realize_named_face):
17507 Revert 2008-02-01 change by cyd@stupidchicken.com.
17508
17509 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17510
17511 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17512 fallback fonts.
17513 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17514
17515 2008-02-04 Jason Rumney <jasonr@gnu.org>
17516
17517 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17518 set full_name.
17519 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17520
17521 2008-02-03 Jason Rumney <jasonr@gnu.org>
17522
17523 * makefile.w32-in (OBJ1): Include font.o here.
17524 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17525
17526 2008-02-02 Jason Rumney <jasonr@gnu.org>
17527
17528 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17529
17530 2008-02-01 Jason Rumney <jasonr@gnu.org>
17531
17532 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17533
17534 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17535
17536 2008-02-01 Andreas Schwab <schwab@suse.de>
17537
17538 * Makefile.in (shortlisp, lisp): Update for rename of
17539 ../lisp/language/myanmar.el.
17540
17541 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17542
17543 * xfaces.c (get_lface_attributes): Delete function.
17544 (merge_named_face, lookup_named_face, lookup_derived_face)
17545 (realize_named_face): Call lface_from_face_name directly, and use
17546 the fact that merge_face_vectors does not alter its FROM argument.
17547
17548 2008-02-01 Jason Rumney <jasonr@gnu.org>
17549
17550 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17551 input in the default locale. Handle non-Unicode multibyte input.
17552
17553 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17554
17555 * fontset.c (reorder_font_vector): Exclude nil elements from the
17556 font group. Don't try multiple fonts.
17557 (fontset_font): Adjust for the above change.
17558 (Finternal_char_font): Return nil if the found font doesn't
17559 contain the character ch.
17560
17561 * Makefile.in (lisp, shortlisp): Add cham.el.
17562
17563 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17564
17565 * font.h (FONTP): Make it return 1 also for a font-object.
17566
17567 * .gdbinit (xfontset): New function.
17568
17569 * font.c (font_find_for_lface): Check if the character C is
17570 supported or not only for the first font.
17571
17572 * fontset.c (reorder_font_vector): Fix typo.
17573 (fontset_find_font): Don't add a font-spec specifying a script.
17574 Use 0 (not Qt) for the indication of empty font-group. Change the
17575 format of RFONT-DEF. Return Qt if no font in the font-group
17576 support the character.
17577 (fontset_font): Adjust for the above change. If no font was
17578 found the character, remember that.
17579 (face_for_char): Adjust for the change of RFONT-DEF.
17580 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17581 no font for the target.
17582 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17583
17584 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17585
17586 * font.c (font_load_for_face): Handle the case that the font in
17587 face->lface is a string.
17588
17589 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17590
17591 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17592
17593 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17594
17595 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17596 Fix previous change. If the frame is not on a window system,
17597 signal an error.
17598
17599 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17600
17601 * coding.c (decode_coding_object, encode_coding_object): Adjust
17602 marker positions after conversion.
17603
17604 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17605
17606 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17607
17608 * font.c (font_find_for_lface): Fix the handling of the return
17609 value of font_has_char.
17610 (Ffont_shape_text): Fix previous change.
17611
17612 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17613 (fontset_ref_and_range): Delete it.
17614 (fontset_find_font): Call char_table_ref_and_range instead of
17615 FONTSET_REF_AND_RANGE.
17616 (make_fontset): Don't setup font groups of Latin here.
17617 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17618 (new_fontset_from_font): Make the specified font the default for
17619 all Latin characters.
17620
17621 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17622
17623 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17624 is on a window system before accessing the fontset of the frame.
17625
17626 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17627
17628 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17629
17630 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17631 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17632
17633 * font.c (Ffont_shape_text): If the font driver doesn't have a
17634 shaper function, make zero-width glyphs to have at least one-pixel
17635 width. Fix setting of `to' field of glyphs.
17636
17637 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17638
17639 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17640 glyphs.
17641
17642 * font.h (struct font_driver): Improve docstring of member `shape'.
17643
17644 2008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * composite.c (syms_of_composite): Fix docstring of
17647 auto-composition-function.
17648
17649 * font.h (LGLYPH_SIZE): New macro.
17650
17651 * font.c (Ffont_fill_gstring): Stop filling when a character not
17652 supported by the font is found.
17653 (Ffont_shape_text): When a shape callback function returns nil,
17654 try at most two more times with larger gstring.
17655 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17656
17657 * xdisp.c (handle_auto_composed_prop): Change the argument to
17658 auto-composition-function.
17659
17660 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17661 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17662 Lispy glyph and store it in the lgstring.
17663
17664 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17665
17666 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17667
17668 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17669
17670 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17671
17672 * fontset.c (Vfont_encoding_charset_alist): New variable.
17673 (syms_of_fontset): DEFVAR it.
17674 (reorder_font_vector, fontset_find_font): Optimize for the case of
17675 no need of reordering.
17676 (face_for_char): Map the charset property by
17677 Vfont_encoding_charset_alist.
17678
17679 2008-02-01 Jason Rumney <jasonr@gnu.org>
17680
17681 * w32font.c (logfonts_match): Don't check adstyle here.
17682 (font_matches_spec): Check here against physical font instead.
17683 (add_font_entity_to_list): Avoid some substitutions.
17684
17685 * font.c (font_parse_fcname): Default weight and slant to normal.
17686 (font_score): Prefer normal fonts if weight or slant unspecified.
17687 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17688 match freetype scores.
17689
17690 2008-02-01 Jason Rumney <jasonr@gnu.org>
17691
17692 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17693 font, as it may have been deleted.
17694 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17695 most common hyphenless variation.
17696 (logfonts_match): Check generic family.
17697 (font_matches_spec): Don't check generic family here.
17698 (fill_in_logfont): Set generic family based on adstyle.
17699
17700 * w32font.h (w32font_get_cache): Update declaration.
17701
17702 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17703
17704 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17705
17706 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17707 If none of the new drivers are available, call font_update_drivers
17708 with the old drivers.
17709
17710 * w32font.c (w32font_get_cache): Adjust the argument type.
17711
17712 * xfont.c (xfont_get_cache): Adjust the argument type.
17713
17714 * font.h (struct font_driver): Change argument type of get_cache.
17715
17716 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17717
17718 * font.c (Ffont_get): Fix arguments to Fassoc.
17719 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17720 (font_clear_cache): New function.
17721 (font_list_entities, font_matching_entity): Use font_get_cache.
17722 (font_update_drivers): Call font_clear_cache when finishing a driver.
17723
17724 * fontset.c (fontset_find_font): Fix previous change.
17725
17726 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17727
17728 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17729 dpyinfo->font_table.
17730 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17731 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17732
17733 * font.c (font_at): Handle the case that the arg C is negative.
17734 Handle the unibyte case.
17735 (Ffont_at): Call font_at with the arg C -1.
17736
17737 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17738 the position here, and call font_at with the arg C -1.
17739 Don't check the range of the existing composition at the point.
17740
17741 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17742
17743 * fontset.c (fontset_add): New args charset_id and family.
17744 Change caller.
17745 (load_font_get_repertory, fontset_find_font): Assume that
17746 font_spec is always a font-spec object.
17747 (Fset_fontset_font): Always store a font-spec object in a fontset.
17748
17749 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17750 instead of get_property_and_range.
17751
17752 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17753
17754 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17755 (xftfont_open): Don't keep locking face.
17756 (xftfont_close): Don't unlock face.
17757 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17758
17759 * fontset.c (fontset_find_font): Don't prefer a font of
17760 supplementary charset.
17761
17762 2008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17765 script, langsys_tag to langsys, new member script.
17766 (OTF_TAG_STR): Terminate by '\0'.
17767 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17768 listing to the script specified in that property. Fix arg to
17769 OTF_check_features.
17770
17771 2008-02-01 Jason Rumney <jasonr@gnu.org>
17772
17773 * w32font.h: New file.
17774
17775 * w32font.c: Include it.
17776 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17777 (w32font_open): Set owning_frame.
17778 (w32font_text_extents): Use owning_frame.
17779 (struct font_callback_data): Add opentype_only field.
17780 (add_font_entity_to_list): Use it to filter fonts.
17781 Don't check against full name.
17782 (w32font_list_internal): New function.
17783 (w32font_list): Use it.
17784 (w32font_match_internal): New function.
17785 (w32font_match): Use it.
17786 (w32font_open_internal): New function.
17787 (w32font_open): Use it.
17788 (w32font_get_cache, w32font_close, w32font_has_char)
17789 (w32font_encode_char, w32font_text_extents, w32font_draw):
17790 Make non-static.
17791
17792 * makefile.w32-in (w32font.o): Depend on w32font.h.
17793
17794 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17795
17796 * charset.c (Fdefine_charset_internal): Record a supplementary
17797 charset at the tail of Vcharset_order_list.
17798
17799 * font.c (Ffont_shape_text): Fix the return value.
17800
17801 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17802
17803 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17804
17805 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17806
17807 * ftfont.c (struct OpenTypeSpec): New struct.
17808 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17809 (ftfont_get_open_type_spec): New function.
17810 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17811
17812 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17813
17814 2008-02-01 Jason Rumney <jasonr@gnu.org>
17815
17816 * w32font.c (add_font_entity_to_list): Compare only the beginning
17817 of full name.
17818
17819 2008-02-01 Kenichi Handa <handa@m17n.org>
17820
17821 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17822 Never return HANDLED_RECOMPUTE_PROPS.
17823
17824 2008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * font.c (font_gstring_produce): Delete it.
17827
17828 * composite.h (COMPOSITION_METHOD):
17829 Handle COMPOSITION_WITH_GLYPH_STRING.
17830
17831 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17832
17833 * xfont.c (Qx): Delete.
17834 (syms_of_xfont): Don't initialize Qx.
17835
17836 * composite.h (enum composition_method):
17837 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17838
17839 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17840
17841 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17842 (choose_face_font): Accept new form of font-spec.
17843
17844 * frame.h (font_driver_list): Declare it unconditionally.
17845 (struct frame): Define members font_driver_list and font_data_list
17846 unconditionally.
17847
17848 * fontset.c: Include "font.h" unconditionally.
17849 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17850 (Fset_fontset_font): Accept a font-spec object.
17851
17852 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17853 PIXEL_SIZE part a wild card.
17854
17855 * dispextern.h (struct glyph_string): Define members clip and
17856 num_clips unconditionally.
17857 (struct face): Define members font_info and extra unconditionally.
17858
17859 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17860 ftfont_info only when HAVE_LIBOTF is defined.
17861
17862 2008-02-01 Andreas Schwab <schwab@suse.de>
17863
17864 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17865 and end.
17866
17867 2008-02-01 Jason Rumney <jasonr@gnu.org>
17868
17869 * w32font.c (w32font_driver): Add new fields.
17870
17871 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17872
17873 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17874 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17875 (LIBES): Add @M17N_FLT_CFLAGS@.
17876
17877 * composite.c (compose_text): Don't treat the new style
17878 composition specially.
17879
17880 * emacs.c (main): Call syms_of_font unconditionally.
17881
17882 * font.h (FONT_ENTITY_NOT_LOADABLE)
17883 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17884 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17885 (struct font_driver): New member shape.
17886 (font_registry_charsets): Extern it.
17887 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17888 (font_otf_capability, font_drive_otf): Delete their externs.
17889
17890 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17891 (font_charset_alist, font_registry_charsets): Move from xfont.c
17892 and rename.
17893 (font_prop_validate_otf): New function.
17894 (font_property_table): Register it for QCotf.
17895 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17896 (font_drive_otf): Delete.
17897 (font_prepare_composition): New arg F. Adjust for the change of
17898 lispy gstring.
17899 (font_find_for_lface): New arg C.
17900 (font_load_for_face): Adjust for the change of font_find_for_lface.
17901 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17902 lispy gstring.
17903 (Ffont_shape_text): New function.
17904 (Fopen_font): If the font size is not given, use 12-pixel.
17905 (Ffont_at): New arg STRING.
17906 (syms_of_font): Initalize font_charset_alist.
17907 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17908 conditionally.
17909
17910 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17911 fonts of the same font-spec. Change the format of RFONT-DEF.
17912 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17913 Adjust for the change of RFONT-DEF.
17914 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17915
17916 * ftfont.h: New file.
17917
17918 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17919 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17920 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17921 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17922 font_otf_capability and font_drive_otf, set ftfont_shape.
17923 (ftfont_list): Adjust for the change of :otf property value.
17924 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17925 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17926 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17927 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17928 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17929 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17930
17931 * w32term.c (x_draw_composite_glyph_string_foreground):
17932 Adjust for the change of lispy gstring.
17933
17934 * xdisp.c (handle_composition_prop): Adjust for the change of
17935 lispy gstring. Call a function for auto-composition with the
17936 third arg it->window.
17937 (fill_composite_glyph_string): Adjust for the change of lispy string.
17938 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17939
17940 * xfaces.c (set_font_frame_param): Adjust for the change of
17941 font_find_for_lface.
17942
17943 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17944 (xfont_registry_charsets): Likewise. Change caller.
17945 (syms_of_xfont): Don't handle x_font_charset_alist.
17946
17947 * xftfont.c: Include "ftfont.h".
17948 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17949 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17950 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17951 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17952 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17953 Set xftfont_driver.shape to xftfont_shape.
17954
17955 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17956 the change of lispy gstring.
17957
17958 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17959
17960 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17961
17962 2008-02-01 Jason Rumney <jasonr@gnu.org>
17963
17964 * w32font.c (w32font_draw): Fill background manually.
17965
17966 2008-02-01 Jason Rumney <jasonr@gnu.org>
17967
17968 * font.c (Qfontp): Remove unused symbol.
17969 (QCantialias): New symbol.
17970 (syms_of_font): Define it.
17971 (font_property_table): Set a validator for QCantialias.
17972
17973 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17974 Define if not already.
17975 (QCfamily): Share with xfaces.c.
17976 (Qstandard, Qsubpixel, Qnatural): New symbols.
17977 (syms_of_w32font): Define them. Don't define QCfamily here.
17978 (w32_antialias_type, lispy_antialias_type): New functions.
17979 (w32_enumfont_pattern_entity): New arg requested_font.
17980 Set antialias parameter if non-default was requested.
17981 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17982
17983 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17984
17985 * lread.c (read1): Undo the previous change.
17986
17987 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17988
17989 * frame.c (Fdelete_frame): Call font_update_drivers only when
17990 USE_FONT_BACKEND is defined.
17991
17992 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17993
17994 * font.h (struct font_bitmap): New member bits_per_pixel.
17995 (struct font_driver): New members start_for_frame and end_for_frame.
17996 (struct font_data_list): New struct.
17997 (font_put_frame_data, font_get_frame_data): Extern them.
17998
17999 * frame.h (struct frame): New member font_data_list.
18000
18001 * font.c (font_update_drivers): Call driver->start_for_frame and
18002 driver->end_for_frame at proper timings.
18003 (font_put_frame_data, font_get_frame_data): New functions.
18004 (Ffont_spec): Add usage in the docstring.
18005
18006 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18007 (Fdelete_frame): Call font_update_drivers.
18008
18009 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18010 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18011 (xftfont_get_xft_draw): New function.
18012 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18013 (xftfont_end_for_frame): New function.
18014 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18015
18016 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18017 Change argument. Cache GCs in the per-frame data.
18018 (struct ftxfont_frame_data): New struct.
18019 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18020 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18021 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18022 (ftxfont_end_for_frame): New function.
18023 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18024
18025 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18026
18027 2008-02-01 Kenichi Handa <handa@m17n.org>
18028
18029 * xselect.c (Vselection_coding_system)
18030 (Vnext_selection_coding_system): Delete them.
18031 (syms_of_xselect): Don't declare selection-coding-system and
18032 next-selection-coding-system. They are declared in select.el.
18033
18034 2008-02-01 Jason Rumney <jasonr@gnu.org>
18035
18036 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18037
18038 * w32fns.c: Include imm.h.
18039 (get_composition_string_fn, get_ime_context_fn): New optional
18040 system functions.
18041 (globals_of_w32fns): Load them from imm32.dll.
18042 (ignore_ime_char): New flag.
18043 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18044 WM_IME_ENDCOMPOSITION messages.
18045
18046 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18047 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18048
18049 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18050
18051 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18052 (READCHAR_REPORT_MULTIBYTE): New macro.
18053 (readchar): New 2nd arg MULTIBYTE.
18054 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18055 Make symbol's name multibyte according to the multibyteness of the
18056 source.
18057
18058 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18059
18060 * xfaces.c (face_for_overlay_string): Call lookup_face with
18061 correct arguments (fix of synching with the trunk).
18062
18063 2008-02-01 Kenichi Handa <handa@m17n.org>
18064
18065 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18066 (font_prop_validate_non_neg, font_prop_validate_spacing):
18067 Delete argument prop_index.
18068 (font_property_table): Change arguments to validater. Change Callers.
18069 (font_lispy_object): Delete.
18070 (font_at): Use font_find_object instead fo font_lispy_object.
18071
18072 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18073
18074 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18075 and file names.
18076
18077 2008-02-01 Jason Rumney <jasonr@gnu.org>
18078
18079 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18080 (font_matches_spec): Remove debug output.
18081 (add_font_entity_to_list): Avoid using substituted fonts.
18082
18083 2008-02-01 Jason Rumney <jasonr@gnu.org>
18084
18085 * doc.c (Fsnarf_documentation):
18086 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18087
18088 2008-02-01 Miles Bader <miles@gnu.org>
18089
18090 * dispextern.h (struct glyph_row): Only define "clip" field if
18091 HAVE_WINDOW_SYSTEM is defined.
18092
18093 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18094
18095 Fix up multi-tty merge.
18096
18097 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18098 and indentation.
18099
18100 * xfaces.c (free_realized_face, clear_face_gcs):
18101 Include font_done_for_face in the input_blocked section, just in case.
18102
18103 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18104 (get_char_face_and_encoding): Undo last change and remove the *other*
18105 duplicate definition (i.e. keep the one that's better scoped and that
18106 includes code for the font-backend).
18107
18108 * terminal.c (create_terminal): Default keyboard_coding to
18109 `no-conversion' and terminal_coding to `undecided'.
18110
18111 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18112
18113 * fontset.c (free_realized_fontsets): Check that the table entry does
18114 contain a fontset before trying to compare it to `base'.
18115
18116 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18117 syms_of_charset, and syms_of_coding earlier because init_window_once
18118 now needs Vcoding_system_hash_table to be setup.
18119
18120 * coding.h (default_buffer_file_coding): Remove.
18121
18122 * coding.c (default_buffer_file_coding): Remove.
18123 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18124 than ->symbol, and use the terminal-local coding system.
18125 (syms_of_coding): Don't setup the coding-systems that are not
18126 terminal-local.
18127 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18128
18129 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18130 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18131
18132 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18133 in chartab.c and were re-added here by mistake.
18134 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18135
18136 * doc.c (Fsnarf_documentation):
18137 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18138 src to etc.
18139
18140 * ChangeLog.10: Add mistakenly removed entry.
18141
18142 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18143
18144 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18145
18146 2008-02-01 Miles Bader <miles@gnu.org>
18147
18148 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18149 Add extra args to FACE_FOR_CHAR.
18150
18151 2008-02-01 Kenichi Handa <handa@m17n.org>
18152
18153 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18154 in sequence.
18155
18156 * chartab.c (map_sub_char_table, map_char_table): If the range
18157 contains just one character, call the function with that character
18158 even if the depth is not 3.
18159
18160 2008-02-01 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32font.c (w32font_text_extents): Calculate metrics for the
18163 whole string.
18164
18165 2008-02-01 Jason Rumney <jasonr@gnu.org>
18166
18167 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18168
18169 2008-02-01 Jason Rumney <jasonr@gnu.org>
18170
18171 * w32term.c (x_set_glyph_string_clipping): Use
18172 get_glyph_string_clip_rects.
18173 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18174 Adjust for the change of struct glyph_string.
18175
18176 * w32font.c (w32font_draw): Do clipping here.
18177
18178 2008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * xftfont.c (xftfont_draw): Adjust for the change of struct
18181 glyph_string.
18182
18183 * xterm.c (x_set_glyph_string_clipping): Use
18184 get_glyph_string_clip_rects.
18185 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18186 Adjust for the change of struct glyph_string.
18187
18188 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18189 the resulting clip(s}.
18190 (expose_overlaps): Add arg r. Change callers. Set it to
18191 row->clip temporarily.
18192 (expose_window): Redraw rows overlapping the exposed area.
18193
18194 * dispextern.h (struct glyph_row): New member clip.
18195 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18196 clip_height, new member clip, and num_clips.
18197
18198 2008-02-01 Kenichi Handa <handa@m17n.org>
18199
18200 * data.c (Fchar_or_string_p): Fix docstring.
18201
18202 2008-02-01 Kenichi Handa <handa@m17n.org>
18203
18204 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18205 create a temporary XftDraw object.
18206
18207 2008-02-01 Kenichi Handa <handa@m17n.org>
18208
18209 * font.c (Ffontp): Fix docstring.
18210
18211 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18212 strong evidence of ISO-2022.
18213
18214 2008-02-01 Kenichi Handa <handa@m17n.org>
18215
18216 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18217 SYNTAX_ENTRY_FOLLOW_PARENT.
18218
18219 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18220
18221 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18222 its type.
18223 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18224 Update to the new type of weak_hash_tables and next_weak.
18225
18226 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18227 a plain C pointer to Lisp_Hash_Table.
18228
18229 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18230 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18231 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18232 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18233 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18234 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18235 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18236 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18237 (GC_EQ): Remove since they've been identical to their non-GC_
18238 alter-egos ever since the markbit was eradicated.
18239
18240 * alloc.c:
18241 * buffer.c:
18242 * buffer.h:
18243 * data.c:
18244 * fileio.c:
18245 * filelock.c:
18246 * fns.c:
18247 * frame.h:
18248 * lisp.h:
18249 * macterm.c:
18250 * print.c:
18251 * process.c:
18252 * w32fns.c:
18253 * w32menu.c:
18254 * w32term.c:
18255 * xfns.c:
18256 * xmenu.c:
18257 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18258
18259 2008-02-01 Kenichi Handa <handa@m17n.org>
18260
18261 * chartab.c (map_sub_char_table): Make it work for the top-level
18262 char-table. Fix handling of parent char-table.
18263 (map_char_table): Adjust for the above change.
18264
18265 2008-02-01 Jason Rumney <jasonr@gnu.org>
18266
18267 * w32font.c (Qgdi): Rename from Qw32.
18268
18269 2008-02-01 Jason Rumney <jasonr@gnu.org>
18270
18271 * w32bdf.c (get_quoted_string): Make function static.
18272
18273 2008-02-01 Kenichi Handa <handa@m17n.org>
18274
18275 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18276 bigger ascent and descent than those of the font, use them as
18277 font's ascent and descent.
18278
18279 2008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * Makefile.in (${lispsource}international/charprop.el): Move this
18282 target within "#ifdef HAVE_UNIDATA" and "#endif".
18283
18284 2008-02-01 Kenichi Handa <handa@m17n.org>
18285
18286 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18287 (shortlisp): Add ../lisp/language/tai-viet.el.
18288
18289 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18290
18291 * Makefile.in (${lispsource}international/charprop.el): Depend on
18292 temacs${EXEEXT}.
18293
18294 2008-02-01 Jason Rumney <jasonr@gnu.org>
18295
18296 * w32font.c (w32font_close): Delete the GDI font object.
18297
18298 * w32menu.c: Include character.h.
18299
18300 * w32proc.c: Likewise.
18301
18302 * w32select.c: Likewise.
18303
18304 * makefile.w32-in (w32proc.o): Depend on character.h.
18305
18306 2008-02-01 Jason Rumney <jasonr@gnu.org>
18307
18308 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18309
18310 * w32menu.c (syms_of_w32menu): Likewise.
18311
18312 * w32proc.c (syms_of_ntproc): Likewise.
18313
18314 * w32select.c (syms_of_w32select): Likewise.
18315
18316 * w32term.c (syms_of_w32term): Likewise.
18317
18318 2008-02-01 Jason Rumney <jasonr@gnu.org>
18319
18320 * w32font.c (w32font_draw): Delete brush after using it.
18321
18322 2008-02-01 Jason Rumney <jasonr@gnu.org>
18323
18324 * w32font.c (w32font_open): Don't set font_idx.
18325 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18326 to font settings.
18327 (w32font_draw): Fill background explicitly.
18328
18329 2008-02-01 Jason Rumney <jasonr@gnu.org>
18330
18331 * w32term.c (w32_initialize): Don't call w32font_initialize.
18332
18333 * w32font.c (w32font_info): Remove subranges.
18334 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18335 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18336 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18337 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18338 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18339 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18340 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18341 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18342 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18343 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18344 New symbols.
18345 (font_callback_data): New struct.
18346 (w32font_list, w32font_match): Use it.
18347 (w32font_open): Don't populate subranges.
18348 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18349 (w32font_encode_char): Always return unicode code-point as-is.
18350 (w32font_text_extents): Supply a transformation matrix to
18351 GetGlyphOutline. Never look up by glyph index. Avoid looping
18352 twice. Use unicode version of GetTexExtentPoint32 instead of
18353 glyph index version.
18354 (set_fonts_frame): Remove.
18355 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18356 set frame parameter. Use backward compatible fake foundries.
18357 Save generic family in extra slot under QCfamily. Make width slot
18358 constant. Save QCspacing value. Save list of scripts instead of
18359 binary subranges.
18360 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18361 (add_font_entity_to_list): Use font_callback_data struct. Filter
18362 unwanted fonts.
18363 (add_one_font_entity_to_list): Use font_callback_data struct.
18364 (w32_registry): Default to iso10646_1.
18365 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18366 string font registries. Don't fill in font name if it is a generic
18367 family name, fill family instead. Use spacing, family and script
18368 extra info to fill pitch, family and charset fields.
18369 (list_all_matching_fonts): Use font_callback_data struct.
18370 (unicode_range_for_char): Remove.
18371 (font_supported_scripts): New function.
18372 (w32font_initialize): Remove.
18373 (syms_of_w32font): Update which symbols are defined.
18374
18375 2008-02-01 Jason Rumney <jasonr@gnu.org>
18376
18377 * font.c (font_pixel_size): Reverse assq_no_quit args.
18378
18379 * w32term.h (FONT_WIDTH): Report max width, not average.
18380 (FONT_MAX_WIDTH): Remove.
18381 (FONT_AVG_WIDTH): New macro.
18382
18383 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18384 redefinition of FONT_WIDTH.
18385
18386 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18387 (w32_cache_char_metrics): Use FONT_WIDTH.
18388
18389 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18390
18391 2008-02-01 Jason Rumney <jasonr@gnu.org>
18392
18393 * w32font.c (w32font_open): Make lfHeight negative.
18394
18395 * w32fns.c (x_default_font_parameter): Use new style font name.
18396 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18397
18398 2008-02-01 Jason Rumney <jasonr@gnu.org>
18399
18400 * w32font.c (QCsubranges): New symbol.
18401 (w32font_open, w32font_has_char): Get subranges from subproperty
18402 of extra.
18403 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18404 (syms_of_w32font): Define :subranges symbol.
18405
18406 * font.c (font_put_extra): Expose externally.
18407
18408 * font.h (font_put_extra): Move declaration from font.c.
18409
18410 * font.c (Ffont_get): Use font driver to determine otf capability.
18411 (adjust_anchor): Check if driver defines anchor_point before using.
18412
18413 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18414 (w32font_draw): Use options.
18415 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18416 Fix detection of truetype fonts.
18417 (registry_to_w32_charset): Handle charsets other than iso8859-1
18418 expressed as lisp symbols.
18419 (w32_registry): Express charset as lisp symbol.
18420 (fill_in_logfont): Reverse pixel and point height logic.
18421 Don't set width here. Set quality to default.
18422
18423 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18424 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18425
18426 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18427 Remove redundant loop and allocation.
18428
18429 * makefile.w32-in (font.o, w32font.o): New objects.
18430 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18431 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18432
18433 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18434 STORE_XCHARB a valid l-value.
18435
18436 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18437 calculations for non-Truetype fonts.
18438 (x_draw_glyph_string): Sync with xterm.c.
18439 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18440 Remove redundant code.
18441 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18442
18443 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18444 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18445
18446 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18447 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18448
18449 * w32font.c: New file for w32 font backend.
18450
18451 2008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * term.c: Don't include "buffer.h" twice.
18454
18455 2008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * character.c (Funibyte_string): New function.
18458 (syms_of_character): Defsubr it.
18459
18460 2008-02-01 Jason Rumney <jasonr@gnu.org>
18461
18462 * w32term.c [USE_FONT_BACKEND]:
18463 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18464 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18465 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18466 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18467 (x_free_frame_resources): Sync with xterm.c.
18468
18469 2008-02-01 Andreas Schwab <schwab@suse.de>
18470
18471 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18472 char-table size.
18473
18474 2008-02-01 Kenichi Handa <handa@m17n.org>
18475
18476 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18477
18478 2008-02-01 Kenichi Handa <handa@m17n.org>
18479
18480 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18481 font_otf_gpos, add font_drive_otf.
18482
18483 * fontset.c (fontset_find_font): Pay attention to font size
18484 specified for a font.
18485 (reorder_font_vector): Check contents of font_def.
18486
18487 * font.c (struct otf_list): Delete it.
18488 (otf_list): Make it a lisp variable.
18489 (otf_open): Use lispy otf_list.
18490 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18491 (check_otf_features): New function.
18492 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18493 New functions.
18494 (font_drive_otf): New function merging font_otf_gsub and
18495 font_otf_gpos.
18496 (font_open_for_lface): New arg spec. Change argument order.
18497 (font_load_for_face): Adjust for the change of font_open_for_lface.
18498 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18499 Ffont_otf_gpos.
18500 (syms_of_font): Staticpro otf_list. Delete defsubr of
18501 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18502
18503 * xfaces.c (set_font_frame_param): Adjust for the change of
18504 font_open_for_lface.
18505
18506 * font.h (font_open_for_lface): Adjust prototype.
18507 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18508 member otf_drive.
18509 (font_otf_gsub, font_otf_gpos): Delete externs.
18510 (font_drive_otf): Extern it.
18511
18512 2008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * font.c (font_at): If the window W is not on a window system,
18515 return Qnil.
18516
18517 * coding.c (produce_chars, encode_coding): Don't call
18518 insert_from_gap if no characters to produce.
18519
18520 2008-02-01 Kenichi Handa <handa@m17n.org>
18521
18522 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18523 Fclear_face_cache.
18524
18525 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18526
18527 2008-02-01 Miles Bader <miles@gnu.org>
18528
18529 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18530 Parse "--disable-font-backend" option.
18531 (standard_args): Add "--disable-font-backend" option.
18532
18533 2008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * fontset.c (fontset_find_font): New function.
18536 (fontset_font): Use fontset_find_font.
18537 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18538 Register the specified font for all Latin characters.
18539 (new_fontset_from_font): Register the specified font for all Latin
18540 characters.
18541 (dump_fontset): For a realized fontset, include the base fontset
18542 name in the returned vector.
18543
18544 2008-02-01 Kenichi Handa <handa@m17n.org>
18545
18546 * character.h (CHAR_STRING): Cast C to unsigned on calling
18547 char_string.
18548
18549 * character.c (char_string): Type of arg C changed to unsigned.
18550 Signal an error if C is an invalid character code.
18551
18552 * editfns.c (general_insert_function, Fchar_to_string):
18553 Use CHARACTERP, not INTEGERP.
18554
18555 2008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18558 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18559
18560 * regex.c (analyse_first): Fix for multibyte characters in "case
18561 charset:" and "case categoryspec:".
18562
18563 2008-02-01 Andreas Schwab <schwab@suse.de>
18564
18565 * Makefile.in (LIBES): Move standard libraries to the end.
18566
18567 2008-02-01 Kenichi Handa <handa@m17n.org>
18568
18569 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18570 nonzero, don't shrink the buffer nextb.
18571
18572 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18573
18574 * coding.c (coding_alloc_by_making_gap): New arg offset.
18575 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18576 offset.
18577 (decode_coding_iso_2022): Update coding->safe_charsets.
18578 (decode_coding_gap): Temporarily set
18579 current_buffer->text->inhibit_shrinking to 1.
18580
18581 2008-02-01 Kenichi Handa <handa@m17n.org>
18582
18583 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18584 indexing into elements of s->cmp and s->char2b.
18585
18586 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18587
18588 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18589
18590 2008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18593 target_multibyte instead of multibyte.
18594 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18595 (bcmp_translate): Change the argument name from multibyte to
18596 target_multibyte.
18597
18598 2008-02-01 Kenichi Handa <handa@m17n.org>
18599
18600 These changes are to compile a regexp into a pattern that can be
18601 used both for multibyte and unibyte targets.
18602
18603 * Makefile.in (search.o): Depend on charset.h.
18604
18605 * character.c (multibyte_char_to_unibyte_safe): New function.
18606
18607 * search.c: Include "charset.h".
18608 (compile_pattern_1): Delete argument multibyte. Don't set
18609 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18610 (compile_pattern): Don't compare cp->buf.target_multibyte.
18611 Compare cp->buf.charset_unibyte.
18612 (compile_pattern): Set cp->buf.target_multibyte.
18613
18614 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18615
18616 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18617
18618 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18619 multibyte. Change callers.
18620 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18621 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18622 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18623 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18624 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18625 (regex_compile): Make the compiled pattern usable both for
18626 multibyte and unibyte targets.
18627 (analyse_first): Make the fastmap usable both for multibyte and
18628 unibyte targets.
18629 (TRANSLATE_VIA_MULTIBYTE): Delete.
18630 (re_match_2_internal): Pay attention to the case that the
18631 multibyteness of bufp and target may be different.
18632
18633 2008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18636 empty box occupy at least one column width.
18637
18638 2008-02-01 Miles Bader <miles@gnu.org>
18639
18640 * Makefile.in: Remove redundant HAVE_XFT clause.
18641
18642 2008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18645
18646 2008-02-01 Kenichi Handa <handa@m17n.org>
18647
18648 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18649 being nil.
18650
18651 2008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18654
18655 2008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18658
18659 2008-02-01 Kenichi Handa <handa@m17n.org>
18660
18661 * search.c (simple_search): Fix previous change.
18662
18663 2008-02-01 Kenichi Handa <handa@m17n.org>
18664
18665 * xftfont.c (ftfont_font_format): Extern declaration.
18666
18667 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18668
18669 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18670 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18671
18672 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18673 (ftfont_font_format): Fix previous change.
18674
18675 * font.h (Ffont_xlfd_name): EXFUN it.
18676
18677 * font.c (font_parse_xlfd): Fix the array size of `f'.
18678 (register_font_driver): Use EQ to compare driver->type.
18679
18680 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18681 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18682 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18683
18684 2008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18687 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18688
18689 2008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * xfont.c (xfont_open): Set font->format.
18692
18693 * xftfont.c (xftfont_open): Set font->format.
18694
18695 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18696 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18697 (ftfont_open): Set font->format.
18698 (ftfont_font_format): New function.
18699
18700 * font.h (struct font): New member format.
18701
18702 * font.c (Qopentype): New variable.
18703 (syms_of_font): Defsym it.
18704 (Fquery_font): Change the format of the last element of the return
18705 value.
18706
18707 2008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18710 last resort.
18711
18712 2008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * coding.c (detect_coding_charset): Fix detection of multi-byte
18715 charset.
18716
18717 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18718
18719 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18720
18721 2008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * xdisp.c (get_next_display_element): Set it->face_id for the
18724 first component of a composition.
18725 (x_produce_glyphs): Check if the font is changed or not for composition.
18726
18727 2008-02-01 Kenichi Handa <handa@m17n.org>
18728
18729 * fontset.c (Qlatin): New variable.
18730 (syms_of_fontset): Define it as a lisp symbol.
18731 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18732
18733 2008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * font.c (font_unparse_fcname): Pay attention to the case that
18736 some of font property is a null string.
18737
18738 2008-02-01 Kenichi Handa <handa@m17n.org>
18739
18740 * term.c: Include "composite.h".
18741 (encode_terminal_code): Output all components of composition.
18742 Check the size of encode_terminal_src.
18743 (produce_glyphs): For composition, call produce_composite_glyph.
18744 (append_composite_glyph, produce_composite_glyph): New functions.
18745
18746 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18747 is not found, get font_info from the current ascii face.
18748
18749 2008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18752 buffer-file-name to Qnil before calling insert_from_buffer.
18753
18754 * font.c (font_unparse_fcname): Pay attention to the case that
18755 foundry is a null string.
18756
18757 2008-02-01 Kenichi Handa <handa@m17n.org>
18758
18759 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18760
18761 * font.c (Qunicode_sip): New variable.
18762 (syms_of_font): Declare it as a Lisp symbol.
18763
18764 * font.h (Qunicode_sip): Extern it.
18765
18766 2008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * composite.c (get_composition_id): Pay attention to TAB component.
18769
18770 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18771 TAB. Adjust for the change of s->char2b which always points to
18772 the first element of allocated memory.
18773
18774 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18775
18776 * xdisp.c (handle_composition_prop): Set it->c to the first
18777 non-TAB component.
18778 (fill_composite_glyph_string): Change argument.
18779 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18780 (x_produce_glyphs): Fix handling of left/right padding.
18781
18782 2008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * coding.c (detect_coding_system): Fix for handling off
18785 inhibit_iso_escape_detection. Fix for the case that no coding
18786 system is defined for a specific coding category.
18787
18788 2008-02-01 Kenichi Handa <handa@m17n.org>
18789
18790 * font.c (font_matching_entity): Delete unused local var.
18791
18792 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18793 opening a font.
18794
18795 * fileio.c (Finsert_file_contents): On recovering a file, assume
18796 Unix-like eol.
18797 (choose_write_coding_system): On auto-saving a file, force
18798 Unix-like eol.
18799
18800 * coding.c (setup_coding_system): Fix setting of
18801 coding->common_flags based on eol_type.
18802 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18803 inherit from it.
18804
18805 2008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * alloc.c (NSTATICS): Increas to 0x600.
18808
18809 2008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18812 (ftfont_list): Don't check :name property.
18813 (ftfont_match): New function.
18814 (ftfont_pattern_entity): If the pattern doesn't contain
18815 FC_SPACING, don't assume FC_MONO.
18816
18817 * font.h (struct font_driver): New member `match'.
18818 (font_update_drivers): Adjust prototype.
18819
18820 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18821 property of FONT.
18822 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18823 them unconditionally.
18824 (font_matching_entity): New function.
18825 (font_open_by_name): Try font_matching_entity if exact match is
18826 not found.
18827 (font_update_drivers): Delete the arg FONT. Return a list of
18828 actually used backends. Don't free faces, font caches here.
18829 Don't store data in frame parameters. Don't call x_set_font.
18830 (Ffont_spec): Store :name property as is.
18831 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18832 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18833 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18834 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18835 Call font->driver->otf_gsub instead of font_otf_gsub.
18836
18837 * frame.c (x_set_font_backend): Do more works that were done in
18838 font_update_drivers before.
18839
18840 * xfont.c (xfont_match): New function.
18841 (xfont_driver): Set xfont_driver.match to xfont_match.
18842 (xfont_draw): Set font in GC if necessary.
18843
18844 * ftxfont.c (ftxfont_match): New function.
18845 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18846
18847 * xftfont.c (xftfont_match): New function.
18848 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18849
18850 2008-02-01 Kenichi Handa <handa@m17n.org>
18851
18852 * font.h (struct font): New member scalable.
18853 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18854 (font_otf_gsub): Adjust prototype.
18855
18856 * font.c (font_otf_capability): Fix handling of the default langsys.
18857 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18858 Check the contents of SPEC.
18859 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18860 (check_gstring): New function.
18861 (REPLACEMENT_CHARACTER): New macro.
18862 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18863 glyph codes of GSTRING.
18864 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18865 (font_prepare_composition): Set cmp->glyph_len.
18866 (font_open_entity): Set font->scalable.
18867 (Ffont_get): Handle :otf property.
18868 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18869 functions.
18870 (Fquery_font): Use font->font.full_name.
18871 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18872 Sfont_otf_alternates.
18873
18874 * ftfont.c (ftfont_open): Set font->font.full_name and
18875 font->font.name properly. Fix calculation of font->font.height
18876 and font->min_width.
18877
18878 * ftxfont.c (ftxfont_create_gcs): New function.
18879 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18880 (ftxfont_draw_backgrond): Fix filling region.
18881 (ftxfont_default_fid): New function.
18882 (ftxfont_open): Set xfont->fid to the return value of
18883 ftxfont_default_fid.
18884 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18885 (ftxfont_done_face): Free only GCs that are created by
18886 ftxfont_create_gcs.
18887 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18888
18889 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18890 Clip to src->width, etc (not src->clip_XXX).
18891
18892 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18893 FontBackend frame parameter.
18894
18895 2008-02-01 Kenichi Handa <handa@m17n.org>
18896
18897 * font.h (struct font_driver_list): New member `on'.
18898 (Fclear_font_cache): EXFUN it.
18899 (font_update_drivers): Extern it.
18900
18901 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18902 (font_list_entities): Check driver_list->on.
18903 (register_font_driver): Initalize `on' member to 0.
18904 (font_update_drivers): New function.
18905 (Fclear_font_cache): Check driver_list->on.
18906
18907 * frame.h (Qfont_backend): Extern it.
18908 (x_set_font_backend): Extern it.
18909
18910 * frame.c (Qfont_backend): New variable.
18911 (frame_parms): New element for font-backend.
18912 (x_set_font_backend): New function.
18913
18914 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18915 FontBackend frame parameter.
18916 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18917 x_set_font_backend.
18918
18919 * xfont.c (xfont_list): Don't try listing by :name property if the
18920 name is not for XLFD.
18921
18922 2008-02-01 Kenichi Handa <handa@m17n.org>
18923
18924 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18925 (LGLYPH_SET_TO): New macros.
18926 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18927 element of G is vector or not.
18928 (font_at): Extern it.
18929
18930 * font.c: Include window.h.
18931 (font_lispy_object): New function.
18932 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18933 end of valid glyph.
18934 (font_close_object): Fix getting (struct font *).
18935 (font_at): New function.
18936 (Ffont_get): If FONT is a font-object, get entity from it.
18937 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18938 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18939 range check.
18940 (Ffont_at): New function.
18941 (syms_of_font): Defsubr Sfont_at.
18942
18943 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18944 before the entry for Qcomposition.
18945 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18946 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18947 the font in gstring.
18948 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18949 LGLYPH_FORM (g) to detect the end of valid glyph.
18950 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18951 we are composing with gstring.
18952
18953 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18954 Check if adjustment is vector or not.
18955
18956 * Makefile.in (font.o): Make it depends on window.h.
18957
18958 2008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18961 adjustment is vector or not.
18962
18963 2008-02-01 Miles Bader <miles@gnu.org>
18964
18965 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18966
18967 2008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18970 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18971 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18972
18973 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18974 (DEVICE_DELTA): Fix typo.
18975 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18976 LGLYPH format.
18977
18978 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18979 the change of LGLYPH format.
18980
18981 2008-02-01 Kenichi Handa <handa@m17n.org>
18982
18983 * ftfont.c (ftfont_list): Fix typo.
18984 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18985
18986 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18987
18988 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18989
18990 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18991 xftface_info is non-NULL.
18992
18993 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18994
18995 * ftfont.c (ftfont_list): Move misplaced #endif.
18996
18997 2008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * ftfont.c (ftfont_list): Pay attention to the case that
19000 FC_CAPABILITY is not defined.
19001
19002 2008-02-01 Kenichi Handa <handa@m17n.org>
19003
19004 * xftfont.c (xftfont_open): Set charset related members to -1.
19005
19006 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19007 QCname.
19008 (ftfont_open): Set charset related members to -1.
19009
19010 * fontset.c (Votf_script_alist): New variable.
19011 (syms_of_fontset): Initialize it.
19012 (fontset_font): Delete unused variable.
19013
19014 * fontset.h (Votf_script_alist): Extern it.
19015
19016 * font.c (font_find_for_lface): Optimize code.
19017
19018 * font.h (font_close_object, font_merge_old_spec): Extern them.
19019
19020 2008-02-01 Kenichi Handa <handa@m17n.org>
19021
19022 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19023 (syms_of_font): Initialize them.
19024 (font_pixel_size): Allow float value in dpi.
19025 (font_prop_validate_type): Delete.
19026 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19027 Change caller.
19028 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19029 (font_prop_validate_extra): Delete.
19030 (font_prop_validate_spacing): New function.
19031 (font_property_table): Add elements for all known properties.
19032 (get_font_prop_index): Rename from check_font_prop_name. New
19033 argument FROM. Change caller.
19034 (font_prop_validate): Validate all known properties.
19035 (font_put_extra): Delete argument force. Change caller.
19036 (font_expand_wildcards): Make it static. Fix the way of shrinking
19037 the possible range.
19038 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19039 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19040 Change caller.
19041 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19042 (font_parse_fcname): Delete argument merge. Fix parsing of point
19043 size. Don't validate properties values here. Change caller.
19044 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19045 (font_open_by_name): Delete unused variable.
19046 (Ffont_spec): Likewise. Validate property values.
19047 (Ffont_match_p): New function.
19048
19049 * font.h (QCscalable): Extern it.
19050 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19051
19052 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19053
19054 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19055 (xfont_list_pattern): New function.
19056 (xfont_list): Use xfont_list_pattern.
19057
19058 2008-02-01 Kenichi Handa <handa@m17n.org>
19059
19060 * font.h (Flist_fonts): EXFUN it.
19061
19062 2008-02-01 Jason Rumney <jasonr@gnu.org>
19063
19064 * w32term.c (w32_initialize): Add back smoothing_type and
19065 smoothing_enabled definitions.
19066
19067 2008-02-01 Kenichi Handa <handa@m17n.org>
19068
19069 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19070 s->face->font on determining underline position.
19071
19072 2008-02-01 Kenichi Handa <handa@m17n.org>
19073
19074 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19075 (font_has_char): Accept font-object too.
19076 (font_find_for_lface): Try at first with a size specified in face.
19077
19078 2008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19081 font_open_by_name.
19082
19083 2008-02-01 Kenichi Handa <handa@m17n.org>
19084
19085 * font.h (QCspacing, QCdpi): Extern them.
19086 (enum font_spacing): New enum.
19087 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19088
19089 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19090 (QCspacing, QCdpi): New variables.
19091 (syms_of_font): Initialize them.
19092 (font_pixel_size): New function.
19093 (font_put_extra): New function.
19094 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19095 in FONT_EXTRA.
19096 (font_parse_fcname): Handle enumerated values (e.g. bold).
19097 Fix handling font size. Add QCname property that contains only
19098 unknown properties.
19099 (font_score): Change argument. Change caller. Pay attention to
19100 FONT_PIXEL_SIZE_QUANTUM.
19101 (font_sort_entites, font_list_entities, font_find_for_lface)
19102 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19103 (Ffont_spec): Add QCname property that contains only unknown properties.
19104
19105 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19106 include weight in listing pattern, instead check weight of each
19107 listed font. Don't include scalable in pattern. Pay attention to
19108 FONT_PIXEL_SIZE_QUANTUM.
19109
19110 2008-02-01 Kenichi Handa <handa@m17n.org>
19111
19112 * font.c (font_parse_fcname): Fix parsing of point-size.
19113 (font_unparse_fcname): Produce symbolic names for style properties.
19114 (font_list_entities): Handle float size correctly.
19115 (font_open_by_name): Prefer `normal' property values if the name
19116 doesn't specify them.
19117
19118 * fontset.c (Finternal_char_font): Use font_get_name, not
19119 Ffont_xlfd_name.
19120
19121 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19122 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19123 pattern. Don't force scalable.
19124
19125 * xftfont.c (xftfont_open): For generating a name, start from
19126 96-byte buffer.
19127
19128 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19129
19130 * frame.h (x_new_fontset2): Fix prototype.
19131
19132 2008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * font.h (struct font_driver): Delete member parse_name.
19135 (font_match_p, font_get_spec, font_parse_fcname)
19136 (font_unparse_fcname): Extern them.
19137 (font_get_name): Adjust prototype.
19138
19139 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19140 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19141 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19142 unnecessary checks for weight, slant, and swidth.
19143 (font_parse_fcname): New function.
19144 (font_unparse_fcname): New function.
19145 (font_parse_name): New function.
19146 (font_match_p): New function.
19147 (font_get_name): Change return value to Lisp string.
19148 (font_get_spec): New function.
19149 (Qunspecified, Qignore_defface): Don't extern them.
19150 (font_find_for_lface): Assume that LFACE is fully specified.
19151 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19152 object, use it for FACE.
19153 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19154 driver->parse_name.
19155 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19156
19157 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19158 prototype.
19159
19160 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19161 argument F. Don't call Fnew_fontset. Instead, directly call
19162 make_fontset.
19163
19164 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19165
19166 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19167 of x_new_fontset2.
19168
19169 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19170 (Qsans__serif): New variables.
19171 (ftfont_generic_family_list): New variable.
19172 (syms_of_ftfont): Initialize the above variables.
19173 (ftfont_pattern_entity): Delete argument NAME.
19174 (ftfont_list_generic_family): New function.
19175 (ftfont_parse_name): Delete this function.
19176 (ftfont_list): Try generic family only when FcFontList found no font.
19177 (ftfont_list_family): Fix args to FcObjectSetBuild.
19178
19179 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19180 object in attrs[LFACE_FONT_INDEX].
19181 (set_lface_from_font_name): Cancel all changes for font-backend.
19182 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19183 function.
19184 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19185 font object in QCfont attribute.
19186 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19187 (realize_default_face) [USE_FONT_BACKEND]: Call
19188 set_lface_from_font_and_fontset.
19189
19190 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19191 "fixed", and signal error here if no suitable font was found.
19192
19193 * xfont.c (xfont_parse_name): Delete this function.
19194
19195 * xftfont.c (xftfont_open): Change coding style of error
19196 handling. Generate fontconfig's fontname pattern.
19197
19198 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19199 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19200
19201 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19202 Both args FONTSET and FONT_OBJECT must be existing ones.
19203
19204 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19205
19206 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19207
19208 2008-02-01 Kenichi Handa <handa@m17n.org>
19209
19210 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19211
19212 * font.h (struct font): Fix typo.
19213
19214 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19215 XLFD_XXX_INDEX.
19216 (enum xlfd_field_mask): New enum.
19217 (intern_font_field): Changed argument. Change caller. If digits
19218 are followed by non-digits, return a symbol.
19219 (font_expand_wildcards): New function.
19220 (font_parse_xlfd): Fix wildcard handling.
19221 (Ffont_spec): If :name is specified, reflect the info in the other
19222 properties.
19223
19224 * ftfont.c (ftfont_pattern_entity): Fix typo.
19225 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19226 locale.
19227
19228 2008-02-01 Kenichi Handa <handa@m17n.org>
19229
19230 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19231
19232 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19233 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19234 registry doesn't specify encoding part.
19235 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19236 (font_open_by_name): At first try parsing the name.
19237 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19238 as Lisp symbols.
19239
19240 * fontset.c (reorder_font_vector): Pay attention to the case that
19241 the 3rd element of font_def is nil.
19242 (fontset_font): For the default fontset, append one more fontset
19243 elements for a script-based font specification. Don't add script
19244 attribute on finding a font.
19245 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19246 font name.
19247 (fontset_ascii_font): If a font can't be opened, return nil.
19248
19249 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19250 (ftfont_pattern_entity): New function.
19251 (ftfont_get_cache): Assume that freetype_font_cache is already
19252 initialized.
19253 (ftfont_list): Handle the case that a file is specified in font
19254 name. Use ftfont_pattern_entity to generate entities.
19255 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19256 (syms_of_ftfont): Initialize freetype_font_cache.
19257
19258 * xftfont.c (xftfont_open): Make the font name fontconfig's
19259 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19260 (xftfont_close): Free font->font.name if not NULL.
19261
19262 * xfont.c (xfont_list): If script is specified for a font, return
19263 null_vector.
19264 (xfont_list_family): Declare argument type.
19265
19266 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19267 name, set LFACE_FONT (lface) to nil.
19268
19269 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19270 return Qnil.
19271
19272 2008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19275 (standard_args): Add "-enable-font-backend".
19276
19277 2008-02-01 Kenichi Handa <handa@m17n.org>
19278
19279 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19280 (struct xftdraw_list, xftdraw_list): Delete them.
19281 (register_xftdraw, check_xftdraw): Delete them.
19282 (xftfont_prepare_face): Don't call register_xftdraw.
19283 (xftfont_done_face): Don't call check_xftdraw.
19284 (xftfont_draw): Get background color only when with_background is
19285 nonzero.
19286
19287 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19288
19289 2008-02-01 Kenichi Handa <handa@m17n.org>
19290
19291 These changes are for the new font handling codes.
19292
19293 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19294 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19295 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19296 (FONTSRC, FONTOBJ): New variables.
19297 (obj): Add $(FONTOBJ).
19298 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19299 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19300 @LIBOTF_LIBS@.
19301 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19302 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19303
19304 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19305
19306 * character.h (Vscript_representative_chars): Extern it.
19307
19308 * character.c (Vscript_representative_chars): New variable.
19309 (syms_of_character): Declare it as a Lisp variable.
19310
19311 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19312 enable_font_backend is nonzero, accept the composition method
19313 COMPOSITION_WITH_GLYPH_STRING.
19314
19315 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19316 enumeration COMPOSITION_WITH_GLYPH_STRING.
19317
19318 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19319 members clip_x, clip_y, clip_width, and clip_height.
19320 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19321
19322 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19323 --enable-font-backend. Call syms_of_font.
19324
19325 * fns.c (assoc_no_quit): New function.
19326
19327 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19328 (face_for_font, new_fontset_from_font)
19329 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19330
19331 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19332 (fontset_font, fontset_ascii, face_for_char)
19333 (make_fontset_for_ascii_face, Ffont_info)
19334 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19335 is nonzero, use font-backend mechanism.
19336 (find_font_encoding): Make it non-static.
19337 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19338 New functions.
19339
19340 * frame.h (struct frame): New members resx and resy.
19341 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19342 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19343
19344 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19345 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19346
19347 * lisp.h (assoc_no_quit): Extern it.
19348
19349 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19350 Through out the file, use FONT_INFO_FROM_FACE instead of
19351 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19352 rif->per_char_metric.
19353 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19354 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19355 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19356 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19357 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19358 nonzero, use font-backend mechanism.
19359 (get_per_char_metric): New function.
19360
19361 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19362 (set_lface_from_font_name)
19363 (set_font_frame_param, free_realized_face)
19364 (prepare_face_for_display, clear_face_gcs)
19365 (Finternal_set_font_selection_order, realize_x_face)
19366 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19367 font-backend mechanism.
19368 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19369 (load_face_font) [USE_FONT_BACKEND]: Abort.
19370 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19371 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19372
19373 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19374 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19375 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19376 nonzero, register all available font drivers. Call
19377 x_default_font_parameter for deciding a font.
19378 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19379
19380 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19381 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19382 (x_set_glyph_string_clipping_exactly)
19383 (x_compute_glyph_string_overhangs)
19384 (x_draw_glyph_string_foreground)
19385 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19386 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19387 enable_font_backend is nonzero, use font-backend mechanism.
19388 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19389
19390 2008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19393 system_eol_type.
19394 (syms_of_coding): Initialize system_eol_type.
19395
19396 * process.c (Fset_process_coding_system): Inherit system's eol
19397 format if necessary.
19398
19399 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19400
19401 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19402
19403 2008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * coding.c (decode_eol): Pay attention to buffer relocation in
19406 del_range_2.
19407 (decode_coding): Call decode_eol before restoring undo_list.
19408
19409 2008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * charset.c (Fdefine_charset_internal): Fix setting of
19412 emacs_mule_bytes.
19413
19414 2008-02-01 Kenichi Handa <handa@m17n.org>
19415
19416 * keyboard.c (read_char): Check if C is a character or not before
19417 looking up Vkeyboard_translate_table.
19418
19419 2008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19422 condition to terminate the loop.
19423
19424 2008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * coding.c (produce_composition): Compare charbuf[i] instead of
19427 args[i] against 0.
19428 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19429
19430 2008-02-01 Kenichi Handa <handa@m17n.org>
19431
19432 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19433 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19434 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19435 detect_coding.
19436 (emacs_mule_char): Handle old style (Emacs 20) component character
19437 of a composition.
19438 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19439 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19440 composition rule.
19441 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19442
19443 2008-02-01 Kenichi Handa <handa@m17n.org>
19444
19445 * coding.c (encode_coding_ccl): Allocate destination dynamically
19446 when necessary.
19447
19448 2008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19451 the loop. When quitted, show a proper error message.
19452
19453 2008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19456 src->clip_head and src->clip_tail temporarily instead of src->hl.
19457
19458 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19459 character sequence.
19460 (Fccl_execute_on_string): Use ASET, not XSET.
19461
19462 2008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19465
19466 2008-02-01 Kenichi Handa <handa@m17n.org>
19467
19468 * coding.c (decode_coding): Fix the condition of terminating the
19469 decoding loop.
19470
19471 2008-02-01 Kenichi Handa <handa@m17n.org>
19472
19473 * data.c (Faset): On setting a character bigger than 255 in a
19474 unibyte string, signal an error instead of make the string multibyte.
19475
19476 2008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19479 made by a mapping table.
19480
19481 2008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19484 not.
19485 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19486 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19487
19488 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19489 s->face is NULL or not.
19490
19491 2008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19494 (x_draw_glyph_string): Fix drawing of right_overhang and
19495 left_overhang around/on cursor.
19496
19497 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19498
19499 2008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19502
19503 2008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * coding.c (Fdefine_coding_system_internal)
19506 (Fdefine_coding_system_alias): Avoid a duplicated element in
19507 Vcoding_system_alist.
19508
19509 2008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19512
19513 * coding.c (Qcoding_system_define_form): New variable.
19514 (syms_of_coding): Intern and staticpro it.
19515 (Fcoding_system_p): Check Qcoding_system_define_form.
19516 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19517
19518 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19519 Fcoding_system_p.
19520 (CHECK_CODING_SYSTEM): If ID is not available, call
19521 Fcheck_coding_system.
19522 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19523 Try also Fcheck_coding_system.
19524
19525 2008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * coding.c (code_conversion_restore): GCPRO arg.
19528
19529 2008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * character.c (lisp_string_width): Check multibyteness of STRING.
19532
19533 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19534
19535 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19536 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19537 (decode_mac_font_name): Use decode_coding_c_string instead of
19538 decode_coding.
19539 (x_load_font): Initialize fontp->fontset to -1. Set
19540 fontp->encoding_type.
19541
19542 2008-02-01 Kenichi Handa <handa@m17n.org>
19543
19544 * search.c (search_buffer): Give up BM search on case-fold-search
19545 if one of a target character has a case-equivalence of different
19546 byte length even if that target charcter is an ASCII.
19547 (simple_search): Fix calculation of byte length of matched text.
19548 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19549
19550 2008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * coding.c (decode_coding): Fix handling of invalid bytes.
19553
19554 2008-02-01 Kenichi Handa <handa@m17n.org>
19555
19556 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19557 Unicode characters.
19558
19559 2008-02-01 Kenichi Handa <handa@m17n.org>
19560
19561 * coding.c (encode_coding_object): If a pre-write-conversion
19562 function makes a new buffer, kill it.
19563
19564 2008-02-01 Kenichi Handa <handa@m17n.org>
19565
19566 * coding.c (QCascii_compatible_p): New variable.
19567 (syms_of_coding): Initialize it.
19568 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19569 calling string_char.
19570 (record_conversion_result): Add `default:' case.
19571 (coding_charset_list): Delete unused variable `coding_type'.
19572 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19573 property in the plist of the coding system.
19574 (Fcoding_system_put): Check QCascii_compatible_p.
19575
19576 2008-02-01 Miles Bader <miles@gnu.org>
19577
19578 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19579 removed calculation of frame `f', as it's now used.
19580
19581 2008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19584 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19585 (UNIDATA): New variable.
19586 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19587 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19588 $(RUN_TEMACS) unconditionally.
19589
19590 2008-02-01 Kenichi Handa <handa@m17n.org>
19591
19592 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19593 (admindir): New variable.
19594 ($(lispsource)international/charprop.el): New target.
19595
19596 2008-02-01 Miles Bader <miles@gnu.org>
19597
19598 * character.c (chars-in-region): Remove obsolete function.
19599 (syms_of_character): Remove its initialization.
19600
19601 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19602
19603 * w32select.c (validate_coding_system)
19604 (setup_windows_coding_system): New functions.
19605 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19606 setup_windows_coding_system.
19607 (setup_config, Fw32_get_clipboard_data): Use
19608 validate_coding_system.
19609 (Fx_selection_exists): Move call to setup_config to a place
19610 where signals are allowed.
19611
19612 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19613 (Fcheck_coding_system): Add declarations.
19614
19615 2008-02-01 Kenichi Handa <handa@m17n.org>
19616
19617 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19618
19619 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19620
19621 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19622 string as the second argument for x_new_fontset.
19623
19624 2008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19627 (encode_coding_object): Use safe_call instead of call2.
19628
19629 2008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19632
19633 * Makefile.in (lisp): Include charprop.el.
19634
19635 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19636
19637 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19638 Not sure if it's unnecessary.
19639
19640 2008-02-01 Steven Tamm <steventamm@mac.com>
19641
19642 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19643 some possibly unnecessary fontset checking code that crashed
19644 when creating a new frame.
19645
19646 2008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19649 lookup_face.
19650
19651 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19652
19653 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19654
19655 2008-02-01 Kenichi Handa <handa@m17n.org>
19656
19657 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19658 (coding_charset_list): New function.
19659
19660 * coding.h (coding_charset_list): Extern it.
19661
19662 2008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19665 concatenation of family and registry.
19666
19667 2008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * character.h (BYTE8_STRING): Fix typo.
19670
19671 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19672 string to multibyte (sync to HEAD).
19673
19674 * casefiddle.c (casify_region): Handle changes in byte-length
19675 using replace_range_2 (sync to HEAD).
19676
19677 2008-02-01 Andreas Schwab <schwab@suse.de>
19678
19679 * chartab.c (map_char_table): GCPRO table and arg.
19680
19681 2008-02-01 Kenichi Handa <handa@m17n.org>
19682
19683 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19684 already at limit.
19685
19686 2008-02-01 Kenichi Handa <handa@m17n.org>
19687
19688 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19689 instead of fast_c_string_match_ignore_case.
19690 (find_font_encoding): Change argument to Lisp_Object. Use
19691 fast_string_match_ignore_case instead of
19692 fast_c_string_match_ignore_case. Change caller.
19693
19694 2008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 * xdisp.c (get_next_display_element): In unibyte case, decide to
19697 display in octal form by checking a character by
19698 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19699
19700 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19701
19702 * character.c (unibyte_has_multibyte_table): New variable.
19703
19704 * character.h (unibyte_has_multibyte_table): Extern it.
19705 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19706
19707 2008-02-01 Kenichi Handa <handa@m17n.org>
19708
19709 * coding.c (encode_coding_iso_2022): Fix handling of charset
19710 annotation.
19711
19712 2008-02-01 Kenichi Handa <handa@m17n.org>
19713
19714 * coding.c (setup_coding_system): If coding_system is nil, use
19715 Qundecided.
19716 (Fterminal_coding_system): Return nil if terminal coding system is
19717 `undecided'.
19718 (syms_of_coding): Define coding-system `undecided' here. Setup
19719 terminal_coding as `undecided'.
19720
19721 2008-02-01 Kenichi Handa <handa@m17n.org>
19722
19723 * xdisp.c (message_dolog, set_message_1): Call
19724 unibyte_char_to_multibyte with arg type int.
19725
19726 * lread.c (read1): Fix reading of a char-table.
19727
19728 * print.c (print_object): Include sub char-table in circularities
19729 detection.
19730
19731 2008-02-01 Kenichi Handa <handa@m17n.org>
19732
19733 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19734 Append the found sequences in car of ARGS instead of prepending.
19735
19736 2008-02-01 Kenichi Handa <handa@m17n.org>
19737
19738 * fileio.c (report_file_error): Make a unibyte string from
19739 strerror (errorno).
19740 (Fsubstitute_in_file_name): Fix the arg to
19741 unibyte_char_to_multibyte. It is evaluated twice.
19742
19743 2008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19746
19747 2008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19750 BOM is not found.
19751 (detect_coding, detect_coding_system): Optimization for ISO-2022
19752 when no 8-bit data is found.
19753
19754 2008-02-01 Jason Rumney <jasonr@gnu.org>
19755
19756 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19757
19758 2008-02-01 Kenichi Handa <handa@m17n.org>
19759
19760 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19761 CHARS.
19762
19763 2008-02-01 Steven Tamm <steventamm@mac.com>
19764
19765 * macterm.c (mac_encode_char): Add charset argument and update
19766 to use encoding_type.
19767 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19768 switch to pure fontset.
19769 (decode_mac_font_name): Temporarily remove decoding.
19770 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19771 (x_load_font): Temporarily remove encoding.
19772
19773 2008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * xfaces.c (Fface_font): If frame is not on a window system,
19776 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19777 refer to face->font.
19778 (split_font_name_into_vector, build_font_name_from_vector)
19779 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19780 when HAVE_WINDOW_SYSTEM is defined.
19781
19782 2008-02-01 Kenichi Handa <handa@m17n.org>
19783
19784 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19785 (x_produce_glyphs): Fix setting of members of cmp in case
19786 cmp->glyph_len is zero.
19787
19788 * fontset.c (Fset_fontset_font): Fix docstring.
19789 (Ffontset_info): Make it backward compatible. New arg ALL.
19790
19791 2008-02-01 Kim F. Storm <storm@cua.dk>
19792
19793 * process.c (read_process_output): Grow decoding_buf when needed;
19794 this could cause a crash in allocate_string and compact_small_strings.
19795
19796 2008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19799
19800 2008-02-01 Kenichi Handa <handa@m17n.org>
19801
19802 * coding.c (setup_coding_system): Set coding->common_flags
19803 correctly for raw-text.
19804 (consume_chars): On encoding unibyte text by raw-text, don't check
19805 multibyte form.
19806 (encode_coding): On encoding by raw-text, never use translation tables.
19807
19808 * fileio.c (e_write): Short cut for the case of no encoding.
19809
19810 2008-02-01 Kenichi Handa <handa@m17n.org>
19811
19812 * coding.c (detect_coding, detect_coding_system): Delete unused
19813 variables.
19814
19815 2008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19818 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19819
19820 2008-02-01 Kenichi Handa <handa@m17n.org>
19821
19822 * coding.c (Ffind_coding_systems_region_internal): Include
19823 raw-text and no-conversion in the result.
19824
19825 2008-02-01 Kenichi Handa <handa@m17n.org>
19826
19827 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19828 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19829 FONT_DEF.
19830 (font_def_arg, add_arg, from_arg, to_arg): New args.
19831 (set_fontset_font): Change argument.
19832 (Fset_fontset_font): Fix for the case that TARGET is a script
19833 name and charset name.
19834 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19835
19836 2008-02-01 Kenichi Handa <handa@m17n.org>
19837
19838 * fontset.c (fontset_font): Rename from fontset_face. Change return
19839 value.
19840 (face_suitable_for_char_p, face_for_char): Adjust for the change
19841 of fontset_font.
19842 (make_fontset_for_ascii_face): Fix setting of the fontset element
19843 for ASCII.
19844 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19845 to get a font name.
19846 (Ffontset_info): Adjust for the change of fontset_font.
19847
19848 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19849
19850 * character.h (LEADING_CODE_LATIN_1_MIN)
19851 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19852
19853 2008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * editfns.c (check_translation): New function.
19856 (Ftranslate_region_internal): Handle M:N mapping.
19857
19858 2008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19861
19862 2008-02-01 Kenichi Handa <handa@m17n.org>
19863
19864 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19865 goto invalid_code.
19866 (decode_coding_iso_2022): Fix handling of invalid designation.
19867
19868 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19869 after calling code_conversion_save.
19870
19871 2008-02-01 Kenichi Handa <handa@m17n.org>
19872
19873 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19874
19875 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19876
19877 * fontset.c: Include "intervals.h".
19878 (fontset_face): Fix comparing of Lisp_Objects.
19879 (free_face_fontset, new_fontset_from_font_name): Fix
19880 Lisp_Object/int mixup.
19881
19882 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19883
19884 * coding.c: Add many prototypes for static functions.
19885 (get_translation_table): Allow max_lookup to be NULL.
19886 (decode_coding, Ffind_coding_systems_region_internal)
19887 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19888 get_translation_table with max_lookup NULL.
19889
19890 2008-02-01 Kenichi Handa <handa@m17n.org>
19891
19892 * coding.c (get_translation_table): Declare it as Lisp_Object.
19893 (LOOKUP_TRANSLATION_TABLE): New macro.
19894 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19895 instead of CHAR_TABLE_REF.
19896
19897 2008-02-01 Kenichi Handa <handa@m17n.org>
19898
19899 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19900 annotation data format.
19901 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19902 Change arguments FROM and TO to single argument NCHARS. Change caller.
19903 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19904 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19905 (decode_coding_ccl, decode_coding_charset): Pay attention to
19906 coding->charbuf_used.
19907 (get_translation): New function.
19908 (produce_chars): New arguments translation_table and last_block.
19909 Translate characters here. Return number of carryover chars.
19910 Change caller.
19911 (produce_composition): New argument pos. Change caller.
19912 Adjust for the change of annotation data format.
19913 (produce_charset, produce_annotation): Likewise.
19914 (decode_coding, encode_coding): Don't call translate_chars.
19915 (consume_chars): New arg translation_table. Change caller.
19916 (translate_chars): Delete.
19917 (syms_of_coding): Make translation-table's number of extra slots 2.
19918
19919 2008-02-01 Kenichi Handa <handa@m17n.org>
19920
19921 * search.c (simple_search): Fix setting this_pos_byte in backward
19922 search.
19923
19924 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19925 byte sequence.
19926 (detect_coding_ccl): Fix setting of the variable valids.
19927
19928 2008-02-01 Kenichi Handa <handa@m17n.org>
19929
19930 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19931
19932 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19933
19934 * editfns.c (Ftranslate_region_internal): Rename from
19935 Ftranslate_region. Accept a char-table in TABLE.
19936 (syms_of_editfns): Defsubr Stranslate_region_internal.
19937
19938 * xfaces.c (set_lface_from_font_name): If a font is specified for
19939 a frame, generate a fontset from the font.
19940 (build_scalable_font_name): If the scalable font is requested for
19941 a specific size, don't change that size.
19942 (try_font_list): Try a scalable font also in the case that a
19943 pattern string is specified.
19944
19945 2008-02-01 Kenichi Handa <handa@m17n.org>
19946
19947 * xfaces.c (Fface_font): New optional arg CHARACTER.
19948
19949 2008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * charset.h (CHARSET_OFFSET): New macro.
19952
19953 2008-02-01 Kenichi Handa <handa@m17n.org>
19954
19955 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19956
19957 * fontset.c (fontset_face): Handle the case that repertory is a
19958 char-table.
19959 (find_font_encoding): Return nil for unknown encoding.
19960 (Fset_fontset_font): Ignore a font of unknown encoding.
19961
19962 2008-02-01 Kenichi Handa <handa@m17n.org>
19963
19964 * keymap.c (describe_vector): Handle default value of a char table.
19965
19966 * fontset.c (fontset_face): Handle fallback fonts correctly.
19967 (Ffontset_info): Return infomation about fallback fonts.
19968
19969 2008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * fontset.c (FONTSET_DEFAULT): New macro.
19972 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19973 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19974 the case that it is nil.
19975 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19976 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19977
19978 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19979 subset or superset.
19980
19981 2008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * emacs.c (main): Call init_charset after syms_of_XXX.
19984
19985 * charset.c (Vcharset_map_directory): Delete.
19986 (Vcharset_map_path): New variable.
19987 (load_charset_map_from_file): Use Vcharset_map_path instead.
19988 (init_charset): Initialize Vcharset_map_path.
19989 (syms_of_charset): Delete declaration of "charset-map-directory",
19990 add declaration of "charset-map-path".
19991
19992 2008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19995 ASCII only string.
19996
19997 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19998
19999 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20000 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20001
20002 2008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20005
20006 * coding.c (QCmnemonic, QCdefalut_char)
20007 (QCdecode_translation_table, QCencode_translation_table)
20008 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20009 (get_translation_table): Return a list of translation tables if
20010 necessary.
20011 (decode_coding): Call get_translation_table with ENCODEP 0.
20012 (char_encodable_p): If translation_table is non-nil, always call
20013 translate_char.
20014 (Fdefine_coding_system_internal): Accept list of translation
20015 tables as :encode-translation-table and :decode-translation-table.
20016 (Fcoding_system_put): New function.
20017 (syms_of_coding): Declare new symbols. Defsubr
20018 Scoding_system_put.
20019 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20020 typically JISX0212.
20021
20022 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20023 when the charset is superset type.
20024
20025 * character.c (translate_char): Accept list of translation tables.
20026
20027 2008-02-01 Kenichi Handa <handa@m17n.org>
20028
20029 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20030 (CODING_ATTR_TRANS_TBL): New macro.
20031
20032 * coding.c (get_translation_table): New function.
20033 (translate_chars): Fix the bug of skipping annotation data.
20034 (decode_coding, encode_coding): Utilize get_translation_table.
20035 (char_encodable_p, Funencodable_char_position): Translate char if
20036 necessary.
20037 (Ffind_coding_systems_region_internal)
20038 (Fcheck_coding_systems_region): Setup translation table for encode
20039 in a coding system attribute vector in advance.
20040 (Fdefine_coding_system_internal): Allow a symbol as translation
20041 table. For shift-jis type coding system, allow 4th charset.
20042
20043 2008-02-01 Kenichi Handa <handa@m17n.org>
20044
20045 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20046
20047 * xdisp.c (get_next_display_element): Pass -1 as POS to
20048 FACE_FOR_CHAR if displaying a C-string.
20049
20050 2008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * composite.c (get_composition_id): Handle xoff and yoff in a
20053 composition rule.
20054
20055 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20056 (struct composition): New member lbearing and rbearing.
20057
20058 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20059 (x_get_glyph_overhangs): Handle a composition glyph.
20060 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20061
20062 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20063 composition glyph.
20064
20065 2008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * print.c: Include charset.h.
20068 (Vprint_charset_text_property): New variable.
20069 (Qdefault): Extern it.
20070 (PRINT_STRING_NON_CHARSET_FOUND)
20071 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20072 (print_check_string_result): New variable.
20073 (print_check_string_charset_prop): New function.
20074 (print_prune_charset_plist): New variable.
20075 (print_prune_string_charset): New function.
20076 (print_object): Call print_prune_string_charset if
20077 Vprint_charset_text_property is not t.
20078 (print_interval): Print nothing if interval->plist is nil.
20079 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20080 variable. Init and staticpro print_prune_charset_plist.
20081
20082 2008-02-01 Kenichi Handa <handa@m17n.org>
20083
20084 * fontset.c (new_fontset_from_font_name): Use the specified font
20085 for all characters in the new fontset.
20086
20087 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20088 OBJECT args.
20089
20090 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20091 OBJECT args for composition too.
20092
20093 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20094 OBJECT args.
20095
20096 2008-02-01 Kenichi Handa <handa@m17n.org>
20097
20098 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20099
20100 * fontset.c (reorder_font_vector): Adjust for the change of
20101 FONT_DEF format.
20102 (fontset_face): New arg id. Change caller.
20103 (face_for_char): New args pos and object.
20104 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20105 (fs_query_fontset): Check NAME by Fassoc too.
20106 (Fset_fontset_font): Allow non-XLFD font name.
20107 (Ffontset_info): Adjust for the change of FONT_DEF format.
20108
20109 * fontset.h (face_for_char): Adjust prototype.
20110
20111 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20112 (append_space, extend_face_to_end_of_line)
20113 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20114 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20115
20116 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20117 POS and OBJECT args.
20118
20119 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20120 POS and OBJECT args.
20121
20122 2008-02-01 Jason Rumney <jasonr@gnu.org>
20123
20124 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20125 of GlobalAlloc'ed memory.
20126
20127 2008-02-01 Kenichi Handa <handa@m17n.org>
20128
20129 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20130
20131 * charset.h (charset_table_used): Delete extern.
20132
20133 * charset.c (charset_table_used): Make it static.
20134 (map_charset_chars): Fix args to c_function with.
20135
20136 * chartab.c (map_sub_char_table_for_charset): Fix args to
20137 c_function with.
20138
20139 * coding.h (enum coding_result_code): Delete
20140 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20141
20142 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20143 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20144 (Vlast_code_conversion_error): New variables.
20145 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20146 (ONE_MORE_BYTE): Record error if any instead of signaling an
20147 error. If non-ASCII multibyte char is found, return the negative
20148 value of the code. All callers changed to check it.
20149 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20150 (record_conversion_result): New function. Change all codes setting
20151 coding->result to call this function.
20152 (detect_coding_utf_8, decode_coding_utf_8)
20153 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20154 Don't use the local variable incomplete.
20155 (emacs_mule_char): Change the second arg to `const'.
20156 (decode_coding): Fix of flushing out unprocessed data.
20157 (make_conversion_work_buffer): Fix making of a work buffer.
20158 (decode_coding_object): Return coding->dst_object.
20159
20160 * fontset.c (set_fontset_font): Fix args.
20161
20162 * lisp.h (CHARACTERBITS): Define as 22.
20163
20164 * process.c (send_process): Be sure to set coding->src_multibyte.
20165
20166 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20167
20168 2008-02-01 Kenichi Handa <handa@m17n.org>
20169
20170 * xdisp.c (handle_auto_composed_prop): Give limit to
20171 Fnext_single_char_property_change.
20172
20173 2008-02-01 Kenichi Handa <handa@m17n.org>
20174
20175 * composite.c (syms_of_composite): Don't make the composition hash
20176 table weak.
20177
20178 * fontset.c (Fset_fontset_font): Fix docstring.
20179
20180 * lisp.h (detect_coding_system): Adjust prototype.
20181
20182 * fileio.c (kill_workbuf_unwind): Delete this function.
20183 (Finsert_file_contents): Adjust the call of detect_coding_system.
20184 Get conversion_buffer by code_conversion_save. Use the macro
20185 CODING_MAY_REQUIRE_DECODING. After decoding, update
20186 coding_system.
20187
20188 * coding.h (make_conversion_work_buffer): Delete extern.
20189 (code_conversion_save): Extern it.
20190
20191 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20192 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20193 (decode_coding_utf_8): Don't do eol converion.
20194 (detect_coding_utf_16): Check coding->src_chars, not
20195 coding->src_bytes. Add heuristics for those that have no signature.
20196 (decode_coding_emacs_mule, decode_coding_iso_2022)
20197 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20198 Don't do eol converion.
20199 (adjust_coding_eol_type): Return a new coding system.
20200 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20201 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20202 each change.
20203 (decode_coding): Pay attention to undo_list. Do eol conversion for
20204 all types of coding-systems (if necessary).
20205 (Vcode_conversion_work_buf_list): Delete it.
20206 (Vcode_conversion_reused_workbuf): Rename from
20207 Vcode_conversion_reused_work_buf.
20208 (Vcode_conversion_workbuf_name): New variable.
20209 (reused_workbuf_in_use): New variable.
20210 (make_conversion_work_buffer): Delete the arg DEPTH.
20211 (code_conversion_restore): Change argument to cons.
20212 (code_conversion_save): Delete the argument BUFFER. Change callers.
20213 (detect_coding_system): New argument src_chars. Change callers.
20214 Fix for utf-16 detection.
20215 (init_coding_once): Don't use ISO_carriage_return.
20216 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20217 reused_workbuf_in_use.
20218
20219 2008-02-01 Kenichi Handa <handa@m17n.org>
20220
20221 * keymap.c (store_in_keymap): Pay attention to the case that idx
20222 is a cons specifying a character range.
20223
20224 2008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20227 HANDLED_RECOMPUTE_PROPS.
20228
20229 * coding.c (Fdefine_coding_system_internal): Fix checking of
20230 ascii compatibility.
20231
20232 2008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 * charset.c (find_charsets_in_text): Delete unused locale variable.
20235 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20236
20237 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20238 Resync charset_list to Vemacs_mule_charset_list.
20239
20240 * keymap.c (store_in_keymap): Pay attention to the case that idx
20241 is a cons specifying a character range.
20242
20243 2008-02-01 Kenichi Handa <handa@m17n.org>
20244
20245 * composite.c (update_compositions): Bind inhibit-read-only, etc
20246 to t before calling remove-list-of-text-properties.
20247
20248 * print.c (print_object): Always print ASCII chars as is.
20249
20250 2008-02-01 Kenichi Handa <handa@m17n.org>
20251
20252 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20253
20254 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20255 is a char table.
20256
20257 2008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20260
20261 2008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * xfaces.c (set_lface_from_font_name): Fix for the case that
20264 FONTNAME is not fontset name.
20265
20266 2008-02-01 Kenichi Handa <handa@m17n.org>
20267
20268 * fns.c (base64_encode_1): Fix previous change.
20269
20270 2008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * fontset.c (set_fontset_font): New function.
20273 (Fset_fontset_font): If a font is specified for a charset, use
20274 map_charset_chars to store the font spec in a fontset.
20275
20276 2008-02-01 Kenichi Handa <handa@m17n.org>
20277
20278 * fontset.c (fontset_face): Create a fallback fontset on demand.
20279 (make_fontset): Don't create a fallback fontset here.
20280 (free_face_fontset): Free a fallback fontset (if any) too.
20281 (n_auto_fontsets): Delete this variable.
20282 (auto_fontset_alist): New variable.
20283 (new_fontset_from_font_name): Check auto_fontset_alist.
20284 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20285 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20286 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20287 Defsubr Sfontset_list_all.
20288
20289 2008-02-01 Kenichi Handa <handa@m17n.org>
20290
20291 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20292
20293 2008-02-01 Kenichi Handa <handa@m17n.org>
20294
20295 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20296
20297 2008-02-01 Kenichi Handa <handa@m17n.org>
20298
20299 * editfns.c (Fgoto_char): Fix docstring.
20300
20301 2008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * insdel.c (insert_from_gap): Adjust intervals correctly.
20304
20305 2008-02-01 Jason Rumney <jasonr@gnu.org>
20306
20307 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20308 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20309 (w32_initialize): Try to load it.
20310 (x_get_font_repertory): Use it if available.
20311 (w32_encode_char): Add shortcut for unicode output.
20312
20313 * w32fns.c (w32_load_system_font): Default charset to -1.
20314 (x_to_w32_charset): Match all fonts for unicode.
20315 (w32_to_x_charset): New parameter matching. Don't return partial
20316 or wildcard charsets.
20317 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20318 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20319 (w32_to_x_font): Match charset to real charset.
20320 (enum_font_cb2): Always list unicode versions.
20321
20322 * makefile.w32-in (temacs): Increase EMHEAP.
20323
20324 2008-02-01 Jason Rumney <jasonr@gnu.org>
20325
20326 * w32term.c (w32_encode_char): New charset parameter.
20327 font_info.encoding becomes encoding_type.
20328 (x_get_font_repertory): New function. Warning: stub only!
20329 (x_new_font): Return quickly if font already set.
20330 (x_new_fontset): fontsetname parameter is Lisp_Object.
20331 Use new fs_query_fontset. Try new_fontset_from_font_name.
20332 Use fontset_name for return value.
20333
20334 * w32term.h: Declare x_get_font_repertory.
20335
20336 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20337 place of find_charset_in_text. Use encode_coding_object in place
20338 of encode_coding.
20339 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20340 decode_coding.
20341
20342 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20343 of x_new_fontset.
20344 (w32_load_system_font): Initialize charset as unicode.
20345 font_info.encoding becomes encoding_type.
20346 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20347 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20348 (syms_of_w32fns): Set get_font_repertory_func.
20349
20350 * w32console.c: Include character.h. Use terminal_encode_buffer
20351 from term.c.
20352 (write_glyphs): Use new version of encode_terminal_code. Use
20353 encode_coding_object in place of encode_coding.
20354
20355 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20356 encoding becomes encoding_type.
20357
20358 * term.c (terminal_encode_buffer): Make externally visible.
20359
20360 * makefile.w32-in: Add character.h dependancies.
20361 (character.o, chartab.o): New targets.
20362
20363 2008-02-01 Kenichi Handa <handa@m17n.org>
20364
20365 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20366 CODING_ID_EOL_TYPE.
20367
20368 2008-02-01 Andreas Schwab <schwab@suse.de>
20369
20370 * coding.c (produce_chars): Revert last change.
20371
20372 2008-02-01 Kenichi Handa <handa@m17n.org>
20373
20374 * charset.h (charset_unicode): Extern it.
20375
20376 * charset.c (string_xstring_p): Check by (C >= 0x100).
20377 (find_charsets_in_text): Change format of the arc CHARSETS. New
20378 arg MULTIBYTE.
20379 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20380 change of find_charsets_in_text.
20381 (Fsplit_char): Fix doc. Never return unknown.
20382
20383 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20384
20385 * coding.c (Fdefine_coding_system_alias): Update
20386 Vcoding_system_list.
20387
20388 * fontset.c (load_font_get_repertory): Pay attention to the case
20389 that ENCODING of a font is specified by a char-table.
20390
20391 * xterm.c (x_get_font_repertory): Handle the case that the
20392 encoding of font is other than Unicode.
20393
20394 2008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20397 if a character is encodable by the terminal coding system. If
20398 not, produces proper number of `?'s. Update
20399 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20400 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20401
20402 2008-02-01 Kenichi Handa <handa@m17n.org>
20403
20404 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20405 variables.
20406 (encode_terminal_code): Change argument. Encode multiple
20407 characters at once. Store the result of encoding in
20408 terminal_encode_buffer.
20409 (write_glyphs, insert_glyphs): Adjust for the change of
20410 encode_terminal_code.
20411 (term_init): Initialize terminal_encode_buffer and
20412 terminal_encode_buf_size.
20413
20414 * coding.c (consume_chars): If coding->src_object is nil, don't
20415 check annotation.
20416
20417 2008-02-01 Kenichi Handa <handa@m17n.org>
20418
20419 * character.c (char_string): Use ASCII_CHAR_P instead of
20420 SINGLE_BYTE_CHAR_P.
20421
20422 2008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * xdisp.c (handle_auto_composed_prop): Check if the last
20425 characters of auto-composed region is newly composed with the
20426 following characters.
20427 (handle_composition_prop): Fix checking of point being inside
20428 composition.
20429
20430 2008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * fns.c (concat): Don't change multibyteness of the result by
20433 concatenating an 8-bit character.
20434
20435 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20436 multibyteness of the result when newelt is an 8-bit character.
20437
20438 2008-02-01 Dave Love <fx@gnu.org>
20439
20440 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20441 EMACS_INT.
20442
20443 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20444
20445 * xfaces.c (face_numeric_value): Declare dim size_t.
20446 (Finternal_lisp_face_equal_p): Remove unused f.
20447
20448 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20449 (MATRIX_ROW): Remove unused vars.
20450 (draw_glyphs, x_insert_glyphs, fast_find_position)
20451 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20452 byte/char counts.
20453
20454 * regex.c (regex_compile): Remove unused var.
20455
20456 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20457
20458 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20459 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20460
20461 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20462
20463 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20464
20465 * fileio.c (Fwrite_region): Remove unused var.
20466
20467 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20468 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20469
20470 * composite.c (Fremove_list_of_text_properties): Declare.
20471
20472 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20473 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20474 (coding_inherit_eol_type): Remove unused attrs.
20475 (detect_coding): Cast arg of detect_eol.
20476
20477 * charset.c (syms_of_charset): Remove unused var p.
20478 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20479 byte/char counts.
20480
20481 * casetab.c (set_case_table): Remove unused var.
20482
20483 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20484 unused vars.
20485
20486 2008-02-01 Dave Love <fx@gnu.org>
20487
20488 * xterm.c (x_bitmap_mask): Declare.
20489
20490 2008-02-01 Dave Love <fx@gnu.org>
20491
20492 * xterm.c (x_term_init): Fix type error.
20493
20494 * lisp.h: Add Funibyte_char_to_multibyte.
20495
20496 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20497 (Fset_coding_system_priority): Doc fix.
20498
20499 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20500
20501 * indent.c (check_composition): Make start and end EMACS_INT.
20502
20503 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20504
20505 * xdisp.c (handle_composition_prop, check_point_in_composition):
20506 Make buffer positions EMACS_INT.
20507
20508 * composite.c (find_composition, run_composition_function)
20509 (update_compositions, Ffind_composition_internal): Make buffer
20510 positions EMACS_INT.
20511
20512 * composite.h (find_composition, update_compositions): Make
20513 position args EMACS_INT.
20514
20515 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20516
20517 * intervals.c (get_property_and_range):
20518 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20519
20520 * unexalpha.c: Don't include varargs.h.
20521
20522 2008-02-01 Dave Love <fx@gnu.org>
20523
20524 * coding.h (ENCODE_UTF_8): New.
20525
20526 * Makefile.in (gtkutil.o): Depend on coding.h.
20527
20528 * coding.c (Fset_coding_system_priority): Doc fix.
20529
20530 2008-02-01 Kenichi Handa <handa@m17n.org>
20531
20532 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20533 the case of auto saving.
20534
20535 2008-02-01 Andreas Schwab <schwab@suse.de>
20536
20537 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20538 `range' from GC.
20539
20540 2008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20543
20544 2008-02-01 Kenichi Handa <handa@m17n.org>
20545
20546 * fileio.c (choose_write_coding_system): Return a decided coding system.
20547 (Fwrite_region): Set Vlast_coding_system_used to the return value
20548 of choose_write_coding_system.
20549
20550 2008-02-01 Kenichi Handa <handa@m17n.org>
20551
20552 * charset.c (Fset_charset_priority): Pay attention to duplicated
20553 arguments.
20554
20555 * coding.c (QCcategory): New variable.
20556 (syms_of_coding): Defsym it. Set all elements of
20557 Vcoding_category_table and their symbol values.
20558 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20559 coding-category-XXX, and coding-category-list.
20560 (Fdefine_coding_system_internal): Add category in the plist.
20561
20562 2008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * callproc.c (Fcall_process): Handle carryover correctly.
20565
20566 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20567 (raw_text_coding_system): Check NILP (coding_system).
20568 (coding_inherit_eol_type): Check NILP (coding_system) and
20569 NILP (parent).
20570 (consume_chars): Fix for the case of raw-text.
20571
20572 * process.c (read_process_output): Handle carryover correctly.
20573
20574 2008-02-01 Dave Love <fx@gnu.org>
20575
20576 * regex.c (re_search_2): Fix last change.
20577
20578 2008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20581 target_multibyte. Even in a unibyte case, return a converted
20582 multibyte char.
20583 (GET_CHAR_AFTER): New macro.
20584 (PATFETCH): Translate via multibyte char.
20585 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20586 (SETUP_MULTIBYTE_RANGE): New macro.
20587 (regex_compile): Setup compiled code so that its multibyteness
20588 matches that of a target. Fix the handling of "[X-YZ]" using
20589 SETUP_MULTIBYTE_RANGE.
20590 (analyse_first) <charset>: For filling fastmap for all multibyte
20591 characters, don't check by BASE_LEADING_CODE_P.
20592 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20593 the same as RE_MULTIBYTE_P (bufp) now.
20594 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20595 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20596 (TRANSLATE_VIA_MULTIBYTE): New macro.
20597 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20598 It is the same as RE_MULTIBYTE_P (bufp) now.
20599 <exactn>: Translate via multibyte.
20600 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20601 translate it.
20602 <charset, charset_not>: Fetch a character by
20603 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20604 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20605 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20606 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20607 by GET_CHAR_AFTER.
20608 (bcmp_translate): Likewise.
20609
20610 * search.c (compile_pattern): Check the member target_multibyte,
20611 not the member multibyte of buf.
20612
20613 * lread.c (read1): While reading a string, set force_singlebyte
20614 and force_multibyte correctly.
20615
20616 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20617 up of unibyte_to_multibyte_table.
20618
20619 2008-02-01 Kenichi Handa <handa@m17n.org>
20620
20621 * coding.c (setup_coding_system): If coding has
20622 post-read-conversion or pre-write-conversion, set
20623 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20624 respectively.
20625 (decode_coding_gap): Run post-read-conversion if any.
20626
20627 * fileio.c (Finsert_file_contents): Even if we read into a
20628 unibyte buffer, check if we must decode the result or not.
20629
20630 2008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * coding.c (make_conversion_work_buffer): Change the work buffer
20633 name to the same one as that of Emacs 21.
20634
20635 2008-02-01 Kenichi Handa <handa@m17n.org>
20636
20637 * coding.h (make_conversion_work_buffer): Adjust prototype.
20638 (code_conversion_restore): Don't extern it.
20639
20640 * coding.c (detected_mask): Delete unused variable.
20641 (decode_coding_iso_2022): Pay attention to the byte sequence of
20642 CTEXT extended segment, and retain those bytes as is.
20643 (decode_coding_ccl): Delete unused variable `valids'.
20644 (setup_coding_system): Delete unused variable `category'.
20645 (consume_chars): Delete unused variable `category'. Make it work
20646 for non-multibyte case.
20647 (make_conversion_work_buffer): Change argument.
20648 (saved_coding): Delete unused variable.
20649 (code_conversion_restore): Don't check saved_coding->destination.
20650 (code_conversion_save): New function.
20651 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20652 instead of record_unwind_protect.
20653 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20654 (detect_coding_system): Delete unused variable `mask'.
20655 (Fdefine_coding_system_internal): Delete unused variable id.
20656
20657 * fileio.c (kill_workbuf_unwind): New function.
20658 (Finsert_file_contents): On replacing, call
20659 make_conversion_work_buffer with correct args, and call
20660 record_unwind_protect with the first arg kill_workbuf_unwind.
20661
20662 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20663
20664 2008-02-01 Kenichi Handa <handa@m17n.org>
20665
20666 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20667 (fontset_add): Fix for the case that TO is less than TO1.
20668 (Ffontset_info): Don't use fallback fontset on checking the
20669 default fontset.
20670 (dump_fontset): New function for debugging.
20671
20672 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20673 coding_type is Qcharset.
20674
20675 2008-02-01 Kenichi Handa <handa@m17n.org>
20676
20677 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20678 (map_char_table): Don't inherit the value from the parent on
20679 initializing VAL. Adjust for the above change.
20680
20681 2008-02-01 Kenichi Handa <handa@m17n.org>
20682
20683 * coding.c (Qsignature, Qendian): Delete these variables.
20684 (syms_of_coding): Don't initialize them.
20685 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20686 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20687 detect_info->found.
20688 (decode_coding_utf_16): Don't detect BOM here.
20689 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20690 is NOT utf_16_without_bom.
20691 (setup_coding_system): For a coding system of type utf-16, check
20692 if the attribute :endian is Qbig or not (not nil or not), and set
20693 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20694 (detect_coding): If coding type is utf-16 and BOM detection is
20695 required, detect it.
20696 (Fdefine_coding_system_internal): For a coding system of type
20697 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20698
20699 2008-02-01 Kenichi Handa <handa@m17n.org>
20700
20701 * coding.c (coding_set_source): Fix for the case that the current
20702 buffer is different from coding->src_object.
20703 (decode_coding_object): Don't use the conversion work buffer if
20704 DST_OBJECT is a buffer.
20705
20706 2008-02-01 Dave Love <fx@gnu.org>
20707
20708 * lread.c (read_emacs_mule_char) [len==2]: Index
20709 emacs_mule_charset correctly.
20710
20711 2008-02-01 Dave Love <fx@gnu.org>
20712
20713 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20714 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20715 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20716 treated specially.)
20717 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20718 (detected_mask): Remove Big5 bits.
20719
20720 2008-02-01 Kenichi Handa <handa@m17n.org>
20721
20722 The following changes are to make the font rescaling facility
20723 compatible with Emacs 21.
20724
20725 * xfaces.c (Vface_font_rescale_alist): Rename from
20726 Vface_resizing_fonts.
20727 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20728 (font_rescale_ratio): Rename from font_resizing_ratio.
20729 (split_font_name): Set font->rescale_ratio.
20730 (better_font_p): Pay attention to font->rescale_ratio.
20731 (build_scalable_font_name): Likewise. Change RESX, and RESY
20732 fields.
20733 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20734
20735 2008-02-01 Kenichi Handa <handa@m17n.org>
20736
20737 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20738 (Qutf_16_le): Remove these variables.
20739 (syms_of_coding): Don't DEFSYM them.
20740 (decode_coding_utf_16): Fix handling of BOM.
20741 (encode_coding_utf_16): Fix handling of BOM.
20742
20743 2008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * fileio.c (Finsert_file_contents): On replacing, before decoding
20746 the file into the work buffer, set point of the work buffer to the end.
20747
20748 2008-02-01 Dave Love <fx@gnu.org>
20749
20750 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20751
20752 2008-02-01 Dave Love <fx@gnu.org>
20753
20754 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20755 and fix C types.
20756
20757 2008-02-01 Kenichi Handa <handa@m17n.org>
20758
20759 * xdisp.c (SKIP_GLYPHS): New macro.
20760 (set_cursor_from_row): Pay attention to string display properties.
20761
20762 * category.c (copy_category_entry): Fix for the case that RANGE
20763 is an integer.
20764
20765 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20766
20767 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20768
20769 2008-02-01 Kenichi Handa <handa@m17n.org>
20770
20771 * charset.c (Fcharset_id_internal): New function.
20772 (syms_of_charset): Defsubr it.
20773
20774 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20775 with the last arg charset_list acquired from coding.
20776 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20777 the attribute coding_attr_ccl_valids.
20778
20779 * coding.h (enum define_coding_ccl_arg_index): Set the first
20780 member coding_arg_ccl_decoder to coding_arg_max.
20781
20782 * ccl.h (ccl_driver): Adjust prototype.
20783
20784 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20785 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
20786 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20787 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20788 last arg Qnil.
20789
20790 2008-02-01 Kenichi Handa <handa@m17n.org>
20791
20792 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20793 call encode_char.
20794
20795 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20796
20797 2008-02-01 Dave Love <fx@gnu.org>
20798
20799 * composite.c (syms_of_composite): Make composition_hash_table weak.
20800
20801 2008-02-01 Kenichi Handa <handa@m17n.org>
20802
20803 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20804 (font_name_registry): Don't extern them.
20805 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20806
20807 * fontset.h (Qfontset): Don't extern it.
20808 (new_fontset_from_font_name): Extern it.
20809
20810 * fontset.c: Give 8 extra slots to fontset objects.
20811 (Qfontset_info): New variable.
20812 (syms_of_fontset): Defsym it.
20813 (FONTSET_FALLBACK): New macro.
20814 (fontset_face): Try also the default fontset.
20815 (make_fontset): Realize a fallback fontset from the default fontset.
20816 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20817 using split_font_name_into_vector and build_font_name_from_vector.
20818 (Fset_fontset_font): Access the elements of font_spec by enum
20819 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20820 name by using split_font_name_into_vector.
20821 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20822 generate a proper font name from the fontset name. Update
20823 Vfontset_alias_alist.
20824 (n_auto_fontsets): New variable.
20825 (new_fontset_from_font_name): New function.
20826 (Ffont_info): Store the information about fonts generated from the
20827 default fontset in the first extra slot of the returned char-table.
20828
20829 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20830 (font_name_registry): Delete function.
20831 (split_font_name_into_vector): New function.
20832 (build_font_name_from_vector): New function.
20833 (font_list): The argument REGISTRY is now a list of registry names.
20834 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20835 specifies an explicit font name, return the name as is. Make a
20836 list of registy names.
20837
20838 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20839 of x_new_fontset.
20840 (Fx_create_frame): Don't call x_new_fontset here. Just use
20841 x_list_fonts to check the existence of fonts.
20842
20843 * xterm.h (x_new_fontset): Adjust prototype.
20844
20845 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20846 string. Use new_fontset_from_font_name to create a fontset from a
20847 font name.
20848
20849 2008-02-01 Kenichi Handa <handa@m17n.org>
20850
20851 * syntax.c (Vfind_word_boundary_function_table): New name for
20852 Vnext_word_boundary_function_table.
20853 (find-word-boundary-function-table): New name for
20854 next-word-boundary-function-table.
20855
20856 2008-02-01 Dave Love <fx@gnu.org>
20857
20858 * Makefile.in: Fix some dependencies.
20859
20860 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20861 set it to nil before returning.
20862
20863 * composite.c (update_compositions): Fix type error.
20864
20865 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20866
20867 2008-02-01 Kenichi Handa <handa@m17n.org>
20868
20869 * xterm.c (x_new_font): Optimize for the case that the font is
20870 already set for the frame.
20871
20872 2008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * chartab.c (char_table_ascii): Check if the char table contents
20875 is sub-char-table or not.
20876 (char_table_set, char_table_set_range): Fix argument to
20877 char_table_ascii.
20878
20879 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20880 (detect_coding_utf_8, detect_coding_utf_16)
20881 (detect_coding_emacs_mule, detect_coding_iso_2022)
20882 (detect_coding_sjis, detect_coding_big5)
20883 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20884 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20885 sequence is valid in this coding system. Change callers.
20886 (MAX_ANNOTATION_LENGTH): New macro.
20887 (ADD_ANNOTATION_DATA): New macro.
20888 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20889 ADD_ANNOTATION_DATA. Change the format of annotation data.
20890 (ADD_CHARSET_DATA): New macro.
20891 (emacs_mule_char): New argument ID. Change callers.
20892 (decode_coding_emacs_mule, decode_coding_iso_2022)
20893 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20894 Produce charset annotation data in coding->charbuf.
20895 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20896 to charset annotation data in coding->charbuf.
20897 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20898 coding->common_flags if the coding system is iso-2022 based and
20899 uses designation.
20900 (produce_composition): Adjust for the new annotation data format.
20901 (produce_charset): New function.
20902 (produce_annotation): Handle charset annotation.
20903 (handle_composition_annotation, handle_charset_annotation): New
20904 functions.
20905 (consume_chars): Handle charset annotation. Utilize the above two
20906 functions.
20907 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20908 buffer, get the deleted text as a string and set
20909 coding->src_object to that string.
20910 (detect_coding, detect_coding_system): Use the new struct
20911 coding_detection_info.
20912
20913 * coding.h (struct coding_detection_info): New structure.
20914 (struct coding_system): Adjust prototype of the member `detector'.
20915 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20916
20917 2008-02-01 Kenichi Handa <handa@m17n.org>
20918
20919 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20920
20921 2008-02-01 Dave Love <fx@gnu.org>
20922
20923 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20924 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20925 to new local and nullify apropos_accumulate before returning.
20926 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20927
20928 2008-02-01 Kenichi Handa <handa@m17n.org>
20929
20930 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20931 correctly.
20932
20933 2008-02-01 Dave Love <fx@gnu.org>
20934
20935 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20936
20937 2008-02-01 Kenichi Handa <handa@m17n.org>
20938
20939 The following changes are to make character composition happen
20940 automatically on displaying.
20941
20942 * Makefile.in (lisp, shortlisp): Add composite.elc.
20943
20944 * composite.h (Qauto_composed, Vauto_composition_function)
20945 (Qauto_composition_function): Extern them.
20946
20947 * composite.c (Vcomposition_function_table)
20948 (Qcomposition_function_table): Delete variables.
20949 (Qauto_composed, Vauto_composition_function)
20950 (Qauto_composition_function): New variables.
20951 (run_composition_function): Don't call
20952 compose-chars-after-function.
20953 (update_compositions): Clear `auto-composed' text property.
20954 (compose_chars_in_text): Delete this function.
20955 (syms_of_composite): Staticpro Qauto_composed and
20956 Qauto_composition_function. Declare Vauto_composition_function as
20957 a Lisp variable.
20958
20959 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20960
20961 * xdisp.c (it_props): Add an entry for Qauto_composed.
20962 (handle_auto_composed_prop): New function.
20963
20964 * xselect.c (selection_data_to_lisp_data): Don't call
20965 compose_chars_in_text.
20966
20967 2008-02-01 Dave Love <fx@gnu.org>
20968
20969 * keyboard.c (read_char): Modify checking around use of
20970 Vkeyboard_translate_table.
20971
20972 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20973 and fix C types.
20974
20975 2008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20978 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20979 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20980 the case that the last byte is '\r' correctly.
20981 (decode_coding): Flush out the unprocessed data correctly.
20982 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20983
20984 2008-02-01 Dave Love <fx@gnu.org>
20985
20986 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20987 Add XK_ISO... case.
20988 (xaw_scroll_callback): Revert last change.
20989
20990 2008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20993
20994 2008-02-01 Kenichi Handa <handa@m17n.org>
20995
20996 * xfaces.c (Vface_resizing_fonts): New variable.
20997 (struct font_name): New member `resizing_ratio'.
20998 (font_resizing_ratio): New function.
20999 (split_font_name): Set font->resizing_ratio.
21000 (better_font_p): Pay attention to font->resizing_ratio.
21001 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21002 RESX, and RESY fields.
21003 (try_alternative_families): Try scalable fonts if
21004 Vscalable_fonts_allowed is not Qt.
21005 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21006
21007 2008-02-01 Dave Love <fx@gnu.org>
21008
21009 * xterm.c (xaw_scroll_callback): Cast correctly.
21010
21011 2008-02-01 Dave Love <fx@gnu.org>
21012
21013 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21014 (lispy_kana_keys): Comment out.
21015 (make_lispy_event) [XK_kana_A]: Comment out.
21016
21017 * xterm.c (xaw_scroll_callback): Cast call_data.
21018 (XTread_socket): Deal with ASCII keysyms.
21019 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21020
21021 2008-02-01 Dave Love <fx@gnu.org>
21022
21023 * xterm.c (Vx_keysym_table): New.
21024 (syms_of_xterm): Initialize it.
21025 (XTread_socket): Use it.
21026 From head: Eliminate incorrect optimization that tried to avoid
21027 decoding the output of X*LookupString.
21028 (x_get_font_repertory): Delete charset declaration.
21029
21030 2008-02-01 Kenichi Handa <handa@m17n.org>
21031
21032 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21033 return 0.
21034 (Fdefine_coding_system_internal): Setup
21035 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21036
21037 2008-02-01 Dave Love <fx@gnu.org>
21038
21039 * coding.c (Fcheck_coding_system): Doc fix.
21040
21041 * editfns.c (Finsert_byte): Return a proper value.
21042
21043 2008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * coding.c (decode_coding): Fix args to translate_chars. Pay
21046 attention to Vstandard_translation_table_for_decode.
21047 (encode_coding): Fix args to translate_chars. Pay attention to
21048 Vstandard_translation_table_for_encode.
21049
21050 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21051 SINGLE_BYTE_CHAR_P.
21052
21053 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21054 not by SINGLE_BYTE_CHAR_P.
21055
21056 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21057 SINGLE_BYTE_CHAR_P.
21058
21059 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21060 SINGLE_BYTE_CHAR_P.
21061
21062 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21063 by SINGLE_BYTE_CHAR_P.
21064
21065 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21066 SINGLE_BYTE_CHAR_P.
21067
21068 2008-02-01 Dave Love <fx@gnu.org>
21069
21070 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21071
21072 2008-02-01 Dave Love <fx@gnu.org>
21073
21074 * fns.c (Flanginfo): Fix typo.
21075
21076 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21077
21078 2008-02-01 Kenichi Handa <handa@m17n.org>
21079
21080 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21081 (detect_coding_emacs_mule, detect_coding_iso_2022)
21082 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21083 incomplete byte sequence. Don't update *mask when correctly detected.
21084 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21085 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21086 (detect_coding, detect_coding_system): Adjust for the changes above.
21087
21088 2008-02-01 Kenichi Handa <handa@m17n.org>
21089
21090 * character.c (char_string): Rename from
21091 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21092 (string_char): Rename from string_char.
21093
21094 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21095 if C is greater than MAX_3_BYTE_CHAR.
21096 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21097 string_char instead of string_char_with_unification.
21098
21099 2008-02-01 Dave Love <fx@gnu.org>
21100
21101 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21102
21103 2008-02-01 Kenichi Handa <handa@m17n.org>
21104
21105 * keymap.c (push_key_description): Pay attention to force_multibyte.
21106
21107 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21108
21109 2008-02-01 Dave Love <fx@gnu.org>
21110
21111 * charset.c (define_charset_internal): Rename `supprementary'.
21112
21113 * Makefile.in (lisp, shortlisp): Remove latin-N.
21114
21115 2008-02-01 Dave Love <fx@gnu.org>
21116
21117 * xfns.c (x_window, x_window): Use use_xim.
21118
21119 * xterm.c (use_xim): Initialize.
21120 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21121 (x_term_init): Maybe set use_xim.
21122
21123 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21124
21125 2008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * search.c (search_buffer): Fix case-fold-search of multibyte
21128 characters.
21129 (boyer_moore): Rename the last argument to char_high_bits.
21130
21131 2008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * xdisp.c (display_string): Fix for the case of zero width glyph.
21134
21135 * xfns.c (x_set_font): Change the error message of the case that
21136 x_new_fontset returns Qt.
21137
21138 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21139 (Finternal_set_lisp_face_attribute): Use signal_error for the
21140 error of invalid fontset.
21141
21142 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21143 fontset, return Qt.
21144
21145 2008-02-01 Dave Love <fx@gnu.org>
21146
21147 * unexelf.c (unexec): Make .got handling not SGI-specific.
21148
21149 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21150
21151 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21152
21153 * keyboard.c (read_key_sequence): Fix type error.
21154
21155 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21156 type error.
21157
21158 * fontset.c (fontset_add): Return Lisp_Object.
21159
21160 2008-02-01 Dave Love <fx@gnu.org>
21161
21162 * charset.h (charset_ordered_list_tick): Declare extern.
21163
21164 2008-02-01 Kenichi Handa <handa@m17n.org>
21165
21166 The following changes (and some of 2008-02-01 changes of mine) are
21167 for handling syntax, category, and case conversion for unibyte
21168 characters by converting them to multibyte on the fly. With these
21169 changes, we don't have to setup syntax and case tables for unibyte
21170 characters in each language environment.
21171
21172 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21173 multibyte if necessary.
21174
21175 * bytecode.c (Fbyte_code): Likewise.
21176
21177 * character.h (LEADING_CODE_LATIN_1_MIN)
21178 (LEADING_CODE_LATIN_1_MAX): New macros.
21179 (unibyte_to_multibyte_table): Extern it.
21180 (unibyte_char_to_multibyte): New macro.
21181 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21182 (CHAR_LEADING_CODE): New macro.
21183 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21184
21185 * character.c (unibyte_to_multibyte_table): New variable.
21186 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21187 (multibyte_char_to_unibyte): If C is an eight-bit character,
21188 convert it to the corresponding byte value.
21189
21190 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21191 not 1, signals an error. Update the elements of
21192 unibyte_to_multibyte_table.
21193 (init_charset_once): Initialize unibyte_to_multibyte_table.
21194 (syms_of_charset): Define the charset `iso-8859-1'.
21195
21196 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21197 as is without converting it to unibyte. In a unibyte buffer,
21198 convert C to multibyte before checking the syntax.
21199
21200 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21201
21202 * minibuf.c (Fminibuffer_complete_word): Use the macro
21203 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21204
21205 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21206
21207 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21208 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21209 that is zero, convert an eight-bit char to multibyte.
21210 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21211 non-emacs case.
21212 (PATFETCH): Convert an eight-bit char to multibyte.
21213 (HANDLE_UNIBYTE_RANGE): New macro.
21214 (regex_compile): Setup the compiled pattern for multibyte chars
21215 even if the given regex string is unibyte. Use PATFETCH_RAW
21216 instead of PATFETCH in many places. To handle `charset'
21217 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21218 only for ASCII chars.
21219 (analyse_first) <exactn>: Simplify because the compiled pattern
21220 is multibyte.
21221 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21222 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21223 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21224 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21225 multibyte always 1.
21226 (re_search_2): In emacs, set the locale variable multibyte to 1,
21227 otherwise to 0. New local variable target_multibyte. Check it
21228 to decide the multibyteness of STR1 and STR2. If
21229 target_multibyte is zero, convert unibyte chars to multibyte
21230 before translating and checking fastmap.
21231 (TARGET_CHAR_AND_LENGTH): New macro.
21232 (re_match_2_internal): In emacs, set the locale variable multibyte
21233 to 1, otherwise to 0. New local variable target_multibyte. Check
21234 it to decide the multibyteness of STR1 and STR2. Use
21235 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21236 <charset, charset_not>: If multibyte is nonzero, check fastmap
21237 only for ASCII chars. Call bcmp_translate with
21238 target_multibyte, not with multibyte.
21239 <begline>: Declare the local variable C as `unsigned'.
21240 (bcmp_translate): Change the last arg name to target_multibyte.
21241
21242 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21243 the regexp pattern and the matching target. Set cp->buf.multibyte
21244 to the multibyteness of the regexp pattern. Set
21245 cp->but.target_multibyte to the multibyteness of the matching target.
21246 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21247 FETCH_STRING_CHAR_ADVANCE.
21248 (Freplace_match): Convert unibyte chars to multibyte.
21249
21250 * syntax.c (char_quoted, back_comment, scan_words)
21251 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21252 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21253 unibyte chars to multibyte.
21254 (skip_chars): Delete the arg syntaxp, and move the code for
21255 handling syntaxes to skip_syntaxes. Change callers.
21256 Fix the case that the multibyteness of STRING and the current
21257 buffer doesn't match.
21258 (skip_syntaxes): New function.
21259 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21260 SINGLE_BYTE_CHAR_P.
21261
21262 2008-02-01 Kenichi Handa <handa@m17n.org>
21263
21264 * xfaces.c (QCfontset): New variable.
21265 (LFACE_FONTSET): New macro.
21266 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21267 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21268 (Finternal_set_lisp_face_attribute)
21269 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21270 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21271 check also LFACE_FONTSET_INDEX.
21272 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21273 attrs[LFACE_FONT_INDEX].
21274 (syms_of_xfaces): Intern and staticpro QCfontset.
21275
21276 * dispextern.h (enum lface_attribute_index): New member
21277 LFACE_FONTSET_INDEX.
21278
21279 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21280
21281 2008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * coding.c (coding_set_destination): Fix coding->destination for
21284 the case converting a region.
21285 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21286 (encode_coding_object): Fix coding->dst_pos and
21287 coding->dst_pos_byte for the case converting a region.
21288
21289 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21290
21291 * character.h (BYTE8_STRING): New macro.
21292
21293 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21294
21295 2008-02-01 Kenichi Handa <handa@m17n.org>
21296
21297 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21298 characters by octal form.
21299
21300 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21301
21302 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21303 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21304 _fetch_multibyte_char_len.
21305 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21306
21307 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21308
21309 * casefiddle.c (casify_object): Simplify. Handle the case that
21310 the case conversion change the byte length.
21311 (casify_region): Likewise.
21312
21313 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21314
21315 * character.c (_fetch_multibyte_char_len): Delete this variable.
21316 (syms_of_character): Setup Vprintable_chars.
21317
21318 * editfns.c (Fchar_equal): Fix for the unibyte case.
21319 (Finsert_byte): New function.
21320 (syms_of_editfns): Defsubr it.
21321
21322 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21323 of direct code 0x3ffff.
21324
21325 * search.c (Freplace_match): Fix for the unibyte case.
21326
21327 2008-02-01 Kenichi Handa <handa@m17n.org>
21328
21329 * lread.c (safe_to_load_p): Fix the logic.
21330
21331 * syntax.c (scan_words): Don't treat characters belonging to
21332 different scripts as constituting a word.
21333
21334 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21335
21336 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21337
21338 * emacs.c (main): In the case of --unibyte, instead of aborting on
21339 finding non-empty buffer, make it unibyte.
21340
21341 2008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21344 to create a fontset.
21345
21346 2008-02-01 Dave Love <fx@gnu.org>
21347
21348 * character.c (Funibyte_char_to_multibyte): Doc fix.
21349
21350 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21351
21352 2008-02-01 Kenichi Handa <handa@m17n.org>
21353
21354 * fontset.c (fontset_add): Make the type `int'.
21355 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21356
21357 * character.c (unibyte_char_to_multibyte)
21358 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21359 charset_unibyte, not charset_primary.
21360
21361 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21362
21363 * charset.c (charset_unibyte): Rename from charset_primary.
21364 (Funibyte_charset): Rename from Fprimary_charset.
21365 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21366 (syms_of_charset): Adjust for the above changes.
21367
21368 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21369 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21370 it->multibyte_p is zero.
21371
21372 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21373 Delete extern.
21374
21375 2008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * coding.c (Fdefine_coding_system_internal): Fix category setting
21378 for a coding system of type iso-2022.
21379
21380 2008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21383
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * syntax.c (Vnext_word_boundary_function_table): New variable.
21387 (next-word-boundary-function-table): Declare it as a Lisp variable
21388 in syms_of_syntax.
21389 (scan_words): Call functions in Vnext_word_boundary_function_table
21390 if any.
21391
21392 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21393
21394 * fontset.c (fs_load_font): If fontp->charset is not negative,
21395 return fontp without setting its members.
21396
21397 2008-02-01 Dave Love <fx@gnu.org>
21398
21399 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21400
21401 * m/sparc.h (HAVE_ALLOCA): Delete.
21402
21403 * s/irix6-5.h: Don't include strings.h.
21404 (bcopy, bzero, bcmp): Don't undef.
21405
21406 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21407
21408 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21409 (TIOCSIGSEND): Don't test IRIX6.
21410 (bcopy, bzero, bcmp): Define conditionally.
21411
21412 2008-02-01 Kenichi Handa <handa@m17n.org>
21413
21414 * buffer.c (Qas, Qmake, Qto): New variables.
21415 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21416 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21417
21418 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21419 we are inserting a process output into a multibyte buffer.
21420
21421 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21422 multibyte_char_to_unibyte.
21423
21424 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21425 by the primary charset, make it eight-bit char.
21426 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21427
21428 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21429 (charset_8_bit__control, charset_8_bit_graphic)
21430 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21431 (define_charset_internal): New function.
21432 (syms_of_charset): Call define_charset_internal for pre-defined
21433 charsets.
21434
21435 * charset.h (charset_8_bit): Extern it.
21436
21437 * coding.c (make_conversion_work_buffer): Adjust for the change
21438 of Fset_buffer_multibyte.
21439 (encode_coding_raw_text): Increment p0 in the loop.
21440
21441 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21442
21443 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21444 for the change of Fset_buffer_multibyte.
21445
21446 * fns.c (Fstring_to_multibyte): New function.
21447 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21448
21449 2008-02-01 Dave Love <fx@gnu.org>
21450
21451 * xfns.c (x_put_x_image): Declare args.
21452
21453 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21454 (try_font_list): Declare an arg.
21455
21456 * xdisp.c (message2_nolog, set_message): Declare an arg.
21457
21458 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21459
21460 * syntax.c (scan_sexps_forward): Declare an arg.
21461
21462 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21463 Declare an arg.
21464
21465 * lisp.h (Fnew_fontset): Declare.
21466
21467 * keymap.c (push_key_description): Call CHARACTERP correctly.
21468
21469 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21470 (face_for_char): Delete unused vars.
21471 (Fset_fontset_font): Doc fix. Delete unused vars.
21472
21473 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21474
21475 * composite.c (update_compositions): Declare arg.
21476
21477 * cm.c (calccost, cmgoto): Declare args.
21478
21479 * charset.c: Remove `emacs' conditional. Doc fixes.
21480 (map_char_table_for_charset): Declare.
21481
21482 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21483
21484 * ccl.c: Remove `emacs' conditional.
21485
21486 2008-02-01 Kenichi Handa <handa@m17n.org>
21487
21488 The following changes are to allow specifying multiple font
21489 patterns for a character range (specified by script or charset).
21490
21491 * Makefile.in (abbrev.o): Depend on syntax.h.
21492 (xfaces.o): Depend on charset.h.
21493
21494 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21495 SINGLE_BYTE_CHAR_P.
21496
21497 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21498
21499 * character.h (Vchar_script_table): Extern it.
21500
21501 * character.c (Vscript_alist): Delete.
21502 (Vchar_script_table, Qchar_script_table): New variable.
21503 (syms_of_character): Declare Vchar_script_table as a lisp variable
21504 and initialize it.
21505
21506 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21507 have property char-table-extra-slots, make no extra slot.
21508
21509 * dispextern.h (struct face): Delete member `charset'.
21510 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21511 SINGLE_BYTE_CHAR_P.
21512 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21513 Add prototypes.
21514 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21515 (generate_ascii_font_name): Rename from generate_ascii_font.
21516
21517 * fontset.h (get_font_repertory_func): New prototype.
21518 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21519 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21520
21521 * fontset.c (Qprepend, Qappend): New variables.
21522 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21523 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21524 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21525 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21526 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21527 (load_font_get_repertory): New functions.
21528 (fontset_set): Delete.
21529 (fontset_face): New arg FACE. Return face ID, not face.
21530 Complete re-write to handle new fontset structure. Change caller.
21531 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21532 (face_for_char): Don't call lookup_face.
21533 (make_fontset_for_ascii_face): New arg FACE.
21534 (fs_load_font): New arg CHARSET_ID. Don't check
21535 Vfont_encoding_alist here.
21536 (find_font_encoding): New function.
21537 (list_fontsets): Use STRINGP, not ! NILP.
21538 (accumulate_script_ranges): New function.
21539 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21540 re-written to handle new fontset structure.
21541 (Ffontset_font): Return a copy of element.
21542 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21543 docstring of font-encoding-alist.
21544
21545 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21546 (Fset_fotset_font): Fix arguments to 5.
21547
21548 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21549
21550 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21551 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21552 (highlight_trailing_whitespace): Adjust for the change of
21553 lookup_named_face.
21554
21555 * xfaces.c: Include charset.h.
21556 (load_face_font): Delete argument C. Change caller.
21557 (generate_ascii_font_name): Rename from generate_ascii_font.
21558 (font_name_registry): New function.
21559 (cache_face): Store ascii faces before non-ascii faces in buckets.
21560 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21561 Lookup only ascii faces.
21562 (lookup_non_ascii_face): New function.
21563 (lookup_named_face): Delete argument C. Change caller.
21564 (lookup_derived_face): Delete argument C. Change caller.
21565 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21566 a string, just call font_list with it.
21567 (choose_face_font): Delete arguments FACE and C. New arg
21568 FONT_SPEC. Change caller.
21569 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21570 Change caller.
21571 (realize_non_ascii_face): New function.
21572 (realize_x_face): Call load_face_font here.
21573 (realize_tty_face): Delete argument C. Change caller.
21574 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21575 get a face ID.
21576 (dump_realized_face): Don't print charset of FACE.
21577
21578 * xfns.c (x_set_font): Always call x_new_fontset and
21579 store_frame_parameter.
21580 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21581 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21582
21583 * xterm.h (x_get_font_repertory): Extern it.
21584
21585 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21586 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21587 it->multibyte_p is zero.
21588 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21589 (x_new_fontset): If FONTSETNAME doesn't match any existing
21590 fontsets, create a new one.
21591 (x_get_font_repertory): New function.
21592
21593 2008-02-01 Kenichi Handa <handa@m17n.org>
21594
21595 * coding.c (Ffind_coding_systems_region_internal): Detect an
21596 ASCII only string correctly.
21597
21598 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21599 version is 0.
21600
21601 2008-02-01 Kenichi Handa <handa@m17n.org>
21602
21603 * lread.c: Include "coding.h".
21604 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21605 (load_each_byte, unread_char): New variables.
21606 (readchar_backlog): Delete.
21607 (readchar): Return a character unless load_each_byte is nonzero.
21608 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21609 cons. If unread_char is not -1, simply return it.
21610 (unreadchar): Handle the case that readcharfun is
21611 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21612 (read_multibyte): Delete.
21613 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21614 (read_emacs_mule_char): New functions.
21615 (Fload): Even if the file doesn't have the extension ".elc", if
21616 safe_to_load_p returns a positive version number, assume that the
21617 file contains bytecompiled code. If the version is less than 22,
21618 load the file while decoding multibyte sequences by emacs-mule.
21619 (readevalloop): Don't use readchar_backlog.
21620 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21621 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21622 (read_escape): Delete the arg BYTEREP.
21623 (read1): Set load_each_byte to 1 temporarily while handling
21624 #@NUMBER. Don't call read_multibyte.
21625 (read_vector): Call Fread with a cons. If readcharfun is
21626 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21627 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21628 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21629 and Qload_force_doc_strings.
21630
21631 2008-02-01 Kenichi Handa <handa@m17n.org>
21632
21633 * xdisp.c (face_before_or_after_it_pos): Call
21634 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21635
21636 2008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * character.h (TRAILING_CODE_P): New macro.
21639 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21640 (string_char_with_unification): Fix prototype.
21641 (Vscript_alist): Extern it.
21642
21643 * character.c (Vscript_alist): New variable.
21644 (string_char_with_unification, str_as_unibyte)
21645 (string_escape_byte8): Add `const' to local variables.
21646 (syms_of_character): Declare script-alist as a Lisp variable.
21647
21648 * charset.h (Vcharset_ordered_list): Extern it.
21649 (charset_ordered_list_tick): Extern it.
21650 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21651 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21652 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21653 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21654 (Funify_charset): Adjust for the change of Funify_charset.
21655
21656 * charset.c (charset_ordered_list_tick): New variable.
21657 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21658 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21659 deunify instead of unify a charset.
21660 (string_xstring_p): Add `const' to local variables.
21661 (find_charsets_in_text): Add `const' to arguments and local variables.
21662 (encode_char): Adjust for the change of Funify_charset. Fix
21663 detecting of invalid code.
21664 (Fset_charset_priority): Increment charset_ordered_list_tick.
21665 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21666 and TO_CODE.
21667
21668 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21669 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21670 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21671 (decode_coding_ccl, consume_chars)
21672 (Ffind_coding_systems_region_internal)
21673 (Fcheck_coding_systems_region): Add `const' to local variables.
21674
21675 * print.c (print_object): Use octal form for printing the
21676 contents of a bool vector.
21677
21678 2008-02-01 Dave Love <fx@gnu.org>
21679
21680 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21681 <version == 20>: Refuse to load.
21682
21683 2008-02-01 Dave Love <fx@gnu.org>
21684
21685 * fns.c: Move coding.h.
21686 (Qcodeset, Qdays, Qmonths): New.
21687 (concat): Use CHARACTERP instead of INTEGERP.
21688 (Flocale_codeset): Delete.
21689 (Flanginfo): New function.
21690 (syms_of_fns): Change accordingly.
21691
21692 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21693
21694 2008-02-01 Dave Love <fx@gnu.org>
21695
21696 * casetab.c (init_casetab_once, init_casetab_once): Fix
21697 CHAR_TABLE_SET call.
21698
21699 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21700
21701 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21702
21703 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21704 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21705 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21706
21707 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21708
21709 * coding.c (ENCODE_DESIGNATION, decode_eol)
21710 (make_conversion_work_buffer, code_conversion_restore)
21711 (Fdefine_coding_system_internal): Convert Lisp types.
21712 (code_conversion_restore): Use EQ, not ==.
21713 (Fencode_coding_string): Fix code_convert_string call.
21714
21715 * coding.h (code_convert_region): Fix prototype.
21716
21717 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21718
21719 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21720 (Ffontset_info): Convert Lisp types.
21721
21722 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21723
21724 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21725
21726 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21727
21728 * chartab.c: Include "...h", not <...h> in some cases.
21729
21730 * callproc.c (Fcall_process): Remove unused variables.
21731
21732 2008-02-01 Dave Love <fx@gnu.org>
21733
21734 * coding.c (Fset_coding_system_priority): Allow null arg list.
21735
21736 2008-02-01 Dave Love <fx@gnu.org>
21737
21738 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21739 (Fself_insert_and_exit): Use CHARACTERP.
21740
21741 * callproc.c (Fcall_process): Remove unused vars.
21742
21743 * xterm.c (XTread_socket): Add extra dead keysyms.
21744
21745 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21746
21747 * dispextern.h: Remove prototypes for redraw_frame,
21748 redraw_garbaged_frames.
21749
21750 * cmds.c (Fself_insert_command): Use CHARACTERP.
21751
21752 * chartab.c (make_sub_char_table): Remove unused var.
21753 (Fset_char_table_default, Fmap_char_table): Doc fix.
21754
21755 * keymap.c (access_keymap): Remove generic char code.
21756 (push_key_description): Use CHARACTERP.
21757
21758 2008-02-01 Dave Love <fx@gnu.org>
21759
21760 * charset.c: Doc fixes.
21761 (Funify_charset): Extra checking.
21762
21763 2008-02-01 Dave Love <fx@gnu.org>
21764
21765 * lread.c: Remove some unused variables.
21766 (safe_to_load_p): If safe, return the magic number version byte.
21767 (Fload): Maybe use load-with-code-conversion.
21768
21769 2008-02-01 Kenichi Handa <handa@m17n.org>
21770
21771 * category.c (Fmodify_category_entry): Don't modify the contents
21772 of category_set for characters out of the range. Avoid
21773 unnecessary modification.
21774
21775 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21776 Vchar_unify_table. The default value of the table is now nil.
21777
21778 * character.c (syms_of_character): Setup Vchar_width_table for
21779 eight-bit-control and raw-byte chars.
21780
21781 * charset.h (enum define_charset_arg_index): Delete
21782 charset_arg_parents and add charset_arg_subset and
21783 charset_arg_superset.
21784 (enum charset_attr_index): Delete charset_parents and add
21785 charset_subset and charset_superset.
21786 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21787 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21788 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21789 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21790 (CHARSET_SUPERSET): New macros.
21791 (charset_work): Extern it.
21792 (ENCODE_CHAR): Use charset_work.
21793 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21794 (map_charset_chars): Extern it.
21795
21796 * charset.c (load_charset_map): Set the default value of encoder
21797 and deunifier char-tables to nil.
21798 (map_charset_chars): Change argument. Change callers. Use
21799 map_char_table_for_charset instead of map_char_table.
21800 (Fmap_charset_chars): New optional args from_code and to_code.
21801 (Fdefine_charset_internal): Adjust for the change of
21802 `define-charset' (:parents -> :subset or :superset).
21803 (charset_work): New variable.
21804 (encode_char, syms_of_charset): Adjust for the change of
21805 Fdefine_charset_internal.
21806 (Ffind_charset_string): Setup the vector `charsets' correctly.
21807
21808 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21809 the previous change.
21810 (char_table_ref_and_range): Adjust for the above change.
21811 (map_sub_char_table_for_charset): New function.
21812 (map_char_table_for_charset): New function.
21813
21814 * keymap.c (describe_vector): Handle a char-table directly here.
21815 (describe_char_table): Delete.
21816
21817 * lisp.h (map_charset_chars): Delete.
21818
21819 2008-02-01 Dave Love <fx@gnu.org>
21820
21821 * fns.c (count_combining): Comment out (unused).
21822 (Flocale_codeset): New.
21823 (syms_of_fns): Defsubr it.
21824
21825 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21826 (size_t): Remove.
21827
21828 2008-02-01 Dave Love <fx@gnu.org>
21829
21830 * Makefile.in (chartab.o): Depend on charset.h.
21831
21832 2008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * character.c (syms_of_character): Set the default value of
21835 Vprintable_chars to Qnil.
21836
21837 2008-02-01 Dave Love <fx@gnu.org>
21838
21839 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21840
21841 2008-02-01 Kenichi Handa <handa@m17n.org>
21842
21843 * charset.c (load_charset_map): Handle the case that from < to
21844 correctly.
21845
21846 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21847 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21848 Pay attention to raw-8-bit chars.
21849
21850 2008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21853 It is not bytecompiled now.
21854
21855 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21856 (charset_jisx0208): New variables.
21857 (Fdefine_charset_internal): Setup them if appropriate.
21858 (init_charset_once): Initialize them to -1.
21859
21860 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21861 (charset_jisx0208): Extern them.
21862
21863 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21864 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21865 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21866 (setup_iso_safe_charsets): Fix arguments to Fassq.
21867 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21868 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21869 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21870 (encode_coding_iso_2022): Change the 1st arg to
21871 ENCODE_ISO_CHARACTER to a variable.
21872
21873 2008-02-01 Kenichi Handa <handa@m17n.org>
21874
21875 * charset.h (enum define_charset_arg_index): New enums
21876 charset_arg_min_code and charset_arg_max_code.
21877 (struct charset): New member char_index_offset.
21878
21879 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21880 Take charset->char_index_offset into account.
21881 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21882 args[charset_arg_max_code]. Setup charset.char_index_offset.
21883 (syms_of_charset): Fix args to Fdefine_charset_internal.
21884
21885 2008-02-01 Dave Love <fx@gnu.org>
21886
21887 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21888
21889 2008-02-01 Dave Love <fx@gnu.org>
21890
21891 * coding.c: Doc fixes.
21892 (Fcoding_system_aliases): Fix return value.
21893 (Qmac): Remove (duplicated) definition.
21894
21895 2008-02-01 Dave Love <fx@gnu.org>
21896
21897 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21898 New functions.
21899
21900 * character.c (Fstring): Doc fix.
21901
21902 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21903
21904 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
21905 (font-encoding-alist): Doc fix.
21906
21907 2008-02-01 Dave Love <fx@gnu.org>
21908
21909 * term.c (costs_set): Declare static, non-initialized for pcc.
21910 (encode_terminal_code): Remove unused var.
21911
21912 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21913 for K&R.
21914
21915 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21916
21917 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21918 (suffixes): Move out of make_subsidiaries for K&R.
21919
21920 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21921
21922 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21923
21924 2008-02-01 Dave Love <fx@gnu.org>
21925
21926 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21927
21928 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21929
21930 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21931
21932 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21933
21934 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21935
21936 2008-02-01 Kenichi Handa <handa@m17n.org>
21937
21938 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21939 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21940
21941 2008-02-01 Kenichi Handa <handa@m17n.org>
21942
21943 * coding.c (decode_coding_charset): Adjust for the change of
21944 Fdefine_coding_system_internal.
21945 (Fdefine_coding_system_internal): For a coding system of
21946 `charset' type, store a list of charset IDs in
21947 `charset_attr_charset_valids' element of coding attributes.
21948
21949 2008-02-01 Kenichi Handa <handa@m17n.org>
21950
21951 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21952 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21953 caller. Handle 2-byte and 3-byte charsets correctly.
21954 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21955 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21956 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21957 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21958 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21959 sequence.
21960 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21961 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21962 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21963 and alt&rule composition.
21964 (decode_coding_iso_2022): Handle composition correctly.
21965 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21966
21967 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21968 re-defining a charset. If the charset has :emacs-mule-id, setup
21969 emacs_mule_bytes.
21970 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21971
21972 2008-02-01 Kenichi Handa <handa@m17n.org>
21973
21974 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21975 (encode_coding_big5, encode_coding_charset): If coding requires safe
21976 encoding, produce a character specified by
21977 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21978
21979 2008-02-01 Dave Love <fx@gnu.org>
21980
21981 * xterm.c (XSetIMValues): Declare.
21982
21983 * process.c: Conditionally include sys/wait.h, pty.h.
21984
21985 * print.c (print_object): Fix print format for 64-bit systems.
21986
21987 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21988
21989 * buffer.c (emacs_strerror): Declare.
21990
21991 * fontset.c (Fclear_face_cache): Declare.
21992 (accumulate_font_info): Comment-out (unused).
21993 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21994 variables.
21995
21996 * character.h (string_escape_byte8): Declare.
21997
21998 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21999 unused vars.
22000 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22001 (Fmap_charset_chars): Doc fix.
22002
22003 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22004 (Fset_coding_system_priority, Fset_coding_system_priority)
22005 (Fdefine_coding_system_internal): Doc fix.
22006
22007 2008-02-01 Dave Love <fx@gnu.org>
22008
22009 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22010
22011 2008-02-01 Kenichi Handa <handa@m17n.org>
22012
22013 * character.c (string_escape_byte8): Make multibyte string with
22014 correct size.
22015
22016 * charset.c (Fmake_char): Delete unnecessary code.
22017
22018 2008-02-01 Kenichi Handa <handa@m17n.org>
22019
22020 * xfns.c (x_encode_text): Allocate coding.destination here, and
22021 call encode_coding_object with dst_object Qnil.
22022
22023 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22024 multibyte form correctly.
22025
22026 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22027 against Vfont_encoding_alist.
22028
22029 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22030 handling of charset list.
22031 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22032 (decode_coding_object): Move point to coding->dst_pos before
22033 calling post-read-conversion function.
22034 (encode_coding_object): Give correct arguments to
22035 pre-write-conversion. Ignore the return value of
22036 pre-write-conversion function. Pay attention to the case that
22037 pre-write-conversion changes the current buffer. If dst_object is
22038 Qt, even if coding->src_bytes is zero, allocate at least one byte
22039 to coding->destination.
22040
22041 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22042
22043 * charset.c (Fmake_char): Make it more backward compatible.
22044 (Fmap_charset_chars): Fix docstring.
22045
22046 2008-02-01 Dave Love <fx@gnu.org>
22047
22048 * coding.c: Doc fixes.
22049 (Fdefine_coding_system_alias): Use names, not symbols, in
22050 coding-system-alist.
22051
22052 2008-02-01 Kenichi Handa <handa@m17n.org>
22053
22054 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22055 of calling free_realized_face.
22056
22057 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22058
22059 * charset.c (read_hex): Don't treat SPC as a comment starter.
22060 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22061 (Fdecode_char): Fix typo.
22062
22063 2008-02-01 Kenichi Handa <handa@m17n.org>
22064
22065 * charset.h (struct charset): New member `code_space_mask'.
22066
22067 * coding.c (coding_set_source): Delete the local variable beg_byte.
22068 (encode_coding_charset, Fdefine_coding_system_internal):
22069 Delete the local variable charset.
22070 (Fdefine_coding_system_internal): Setup
22071 attrs[coding_attr_charset_valids] correctly.
22072
22073 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22074 member to check if CODE is valid or not.
22075 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22076 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22077 is within the range of charset->min_code and carset->max_code.
22078
22079 2008-02-01 Dave Love <fx@gnu.org>
22080
22081 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22082
22083 * dispextern.h (generate_ascii_font): Fix return type.
22084
22085 * xfaces.c (generate_ascii_font): Fix arg declaration.
22086
22087 * coding.c (coding_inherit_eol_type)
22088 (Fset_terminal_coding_system_internal)
22089 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22090
22091 2008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22094 multiple charsets correctly.
22095
22096 2008-02-01 Kenichi Handa <handa@m17n.org>
22097
22098 * search.c (boyer_moore): Fix handling of multibyte character
22099 translation.
22100
22101 * xdisp.c (display_mode_element): When the variable `elt' is
22102 changed, update `this' and `lisp_string'.
22103
22104 2008-02-01 Kenichi Handa <handa@m17n.org>
22105
22106 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22107
22108 * callproc.c (Fcall_process): Be sure to give the current buffer
22109 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22110
22111 * charset.c (struct charset_map_entries): New struct.
22112 (load_charset_map): Rename from parse_charset_map. New args
22113 entries and n_entries. Change caller.
22114 (load_charset_map_from_file): Rename from load_charset_map.
22115 Change caller. New arg control_flag. Call load_charset_map at
22116 the tail.
22117 (load_charset_map_from_vector): New function.
22118 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22119 (encode_char): If the charset is compact, change a character index
22120 to a code point.
22121
22122 * coding.c (coding_alloc_by_making_gap): Check the case that the
22123 source and destination are the same correctly.
22124 (decode_coding_raw_text): Set coding->consumed_char and
22125 coding->consumed to 0.
22126 (produce_chars): If coding->chars_at_source is nonzero, update
22127 coding->consumed_char and coding->consumed before calling
22128 alloc_destination.
22129 (Fdefine_coding_system_alias): Register ALIAS in
22130 Vcoding_system_alist.
22131 (syms_of_coding): Define `no-conversion' coding system at the tail.
22132
22133 * fileio.c (Finsert_file_contents): Set coding_system instead of
22134 val. If the current buffer is multibyte, always call
22135 decode_coding_gap.
22136
22137 * xfaces.c (try_font_list): Give higher priority to fontset's
22138 family than face's family.
22139
22140 2008-02-01 Kenichi Handa <handa@m17n.org>
22141
22142 * callproc.c (Fcall_process): Be sure to give the current buffer
22143 to decode_coding_c_string.
22144
22145 * xfaces.c (try_font_list): Give a family specified in a fontset
22146 higher priority than a family specified in a face.
22147
22148 2008-02-01 Kenichi Handa <handa@m17n.org>
22149
22150 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22151 Fix arguments to insert_from_buffer.
22152
22153 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22154
22155 2008-02-01 Kenichi Handa <handa@m17n.org>
22156
22157 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22158 (decode_coding_gap): Set coding->dst_multibyte correctly.
22159
22160 2008-02-01 Kenichi Handa <handa@m17n.org>
22161
22162 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22163 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22164 (encode_coding_utf_16): Substitute coding->default_char for
22165 non-Unicode characters.
22166 (decode_coding): Don't call record_insert here.
22167 (setup_coding_system): Initialize `surrogate' of
22168 coding->spec.utf_16 to 0.
22169 (EMIT_ONE_BYTE): Fix for multibyte case.
22170
22171 * insdel.c (insert_from_gap): Call record_insert.
22172
22173 2008-02-01 Kenichi Handa <handa@m17n.org>
22174
22175 * casefiddle.c (casify_region): Fix multibyte case.
22176
22177 * character.c (c_string_width): Add return type `int'.
22178 (char_string_with_unification): Delete arg ADVANCED.
22179
22180 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22181 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22182 (CHAR_STRING_ADVANCE): Make it do-while statement.
22183
22184 * chartab.c (sub_char_table_set_range): Optimize for the case
22185 DEPTH == 3. Add workaround code for a GCC optimization bug.
22186
22187 * charset.c (parse_charset_map): Remove an unused variable.
22188
22189 * coding.c: Delete unused variables.
22190
22191 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22192 earlier. If inserted is zero and the coding system doesn't
22193 require flushing, don't call decode_coding_gap.
22194
22195 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22196
22197 2008-02-01 Kenichi Handa <handa@m17n.org>
22198
22199 The following changes are for using Unicode as an internal
22200 character model, and use UTF-8 format for buffer/string
22201 representation.
22202
22203 * .gdbinit (xchartable): Adjust for the change of char table structure.
22204 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22205
22206 * Makefile.in (obj): Add character.o and chartab.o.
22207 (lisp, shortlisp): Remove utf-8.elc.
22208 (*.o): For many files, change dependency on charset.h to
22209 character.h, and add dependency on character.h.
22210 (character.o, chartab.o): New targets.
22211
22212 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22213 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22214 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22215 of "charset.h".
22216
22217 * dired.c, filelock.c: Include "character.h".
22218
22219 * alloc.c: Include "character.h" instead of "charset.h".
22220 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22221 (syms_of_alloc): Remove defsubr for Smake_char_table.
22222
22223 * buffer.c: Include "character.h" instead of "charset.h", don't
22224 include "coding.h".
22225 (Fset_buffer_multibyte): Adjust for UTF-8.
22226
22227 * buffer.h: EXFUN Fbuffer_live_p.
22228
22229 * callproc.c: Include "character.h" instead of "charset.h".
22230 (Fcall_process): Big change for the new code-conversion APIs.
22231
22232 * casetab.c: Include "character.h" instead of "charset.h".
22233 (set_canon, set_identity, shuffle): Adjust for the new
22234 map_char_table spec.
22235 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22236 accessing the char table structure.
22237
22238 * chartab.c: New file that implements char table.
22239
22240 * category.c: Include "character.h".
22241 (copy_category_entry): New function.
22242 (copy_category_table): Call map_char_table and copy_category_entry.
22243 (Fmake_category_table): Initialize all top-level slots.
22244 (char_category_set): New function.
22245 (modify_lower_category_set): Delete.
22246 (Fmodify_category_entry): Call char_table_ref_and_range.
22247
22248 * category.h (CATEGORY_SET): Just call char_category_set.
22249
22250 * ccl.c: Include "character.h".
22251 (Qccl, Qcclp): New variables.
22252 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22253 it's less than 256.
22254 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22255 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22256 and DST type.
22257 (ccl_driver): Change types of argument, adjust code accordingly.
22258 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22259 ccl_driver.
22260 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22261
22262 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22263 New members src_multibyte, dst_multibyte, consumed, and produced.
22264 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22265 (CODING_SPEC_CCL_PROGRAM): New macro.
22266 (ccl_driver): Update prototype.
22267 (Qccl, Qcclp, Fccl_program_p): Extern them.
22268 (CHECK_CCL_PROGRAM): New macro.
22269
22270 * character.c, character.h, chartab.c: New files.
22271
22272 * charset.c: Mostly re-written. Move character and multibyte sequence
22273 handling codes to character.c.
22274
22275 * charset.h: Mostly re-written. Move character and multibyte sequence
22276 handling codes to character.h.
22277
22278 * coding.c, coding.h: Mostly re-written.
22279
22280 * composite.c: Include "character.h" instead of "charset.h".
22281 (CHAR_WIDTH): Move to character.h.
22282 (HASH_KEY, HASH_VALUE): Delete.
22283
22284 * composite.h (enum composition_method): Change order of enumeration
22285 symbols.
22286
22287 * data.c: Include "character.h" instead of "charset.h".
22288 (Faref): Call CHAR_TABLE_REF for a char table.
22289 (Faset): Call CHAR_TABLE_SET for a char table.
22290
22291 * dispextern.h (free_realized_face, check_face_attribytes)
22292 (generate_ascii_font): Extern them.
22293 (free_realized_multibyte_face): Delete extern.
22294
22295 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22296 table structure.
22297
22298 * editfns.c: Include "character.h" instead of "charset.h".
22299 (Fchar_to_string): Always call CHAR_STRING.
22300
22301 * emacs.c (main): Call init_charset_once, init_charset,
22302 syms_of_chartab, and syms_of_character.
22303
22304 * fileio.c: Include "character.h" instead of "charset.h".
22305 (Finsert_file_contents): Big change for the new code-conversion API.
22306 (choose_write_coding_system, Fwrite_region): Likewise.
22307 (build_annotations_2): Delete.
22308 (e_write): Big change for the new code-conversion API.
22309
22310 * fns.c: Include "character.h" instead of "charset.h".
22311 (copy_sub_char_table): Move to chartab.c.
22312 (Fcopy_sequence): Call copy_char_table for a char table.
22313 (concat): Delete codes calling count_multibyte.
22314 (string_char_to_byte, string_byte_to_char): Adjust for the new
22315 multibyte form.
22316 (internal_equal): Adjust for the change of char table structure.
22317 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22318 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22319 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22320 (char_table_translate, optimize_sub_char_table)
22321 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22322 chartab.c.
22323 (char_table_ref_and_index): Delete.
22324 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22325 (Fmd5): Call preferred_coding_system instead of accessing
22326 Vcoding_category_list. Adjust for the new code-conversion API.
22327 (syms_of_fns): Move defsubr for char table related functions to
22328 chartab.c.
22329
22330 * fontset.c: Mostly re-written.
22331
22332 * fontset.h (struct font_info): Change type of the member encoding_type.
22333 (enum FONT_SPEC_INDEX): New enum.
22334 (fontset_font_pattern, fs_load_font): Update prototype.
22335 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22336
22337 * indent.c: Include "character.h" instead of "charset.h".
22338 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22339
22340 * insdel.c: Include "character.h" instead of "charset.h".
22341 (copy_text): Don't refer to Vnonascii_translation_table.
22342 (insert_from_gap): New function.
22343
22344 * keyboard.c: Include "character.h" instead of "charset.h".
22345 (command_loop_1): Never call direct_output_forward_char before
22346 a non-ASCII character.
22347 (read_char): If Vkeyboard_translate_table is a char table, always
22348 translate a character.
22349
22350 * keymap.c: Include "character.h".
22351 (store_in_keymap): Handle the case that IDX is a cons.
22352 (Fdefine_key): Handle the case that KEY is a cons and the car part
22353 is also a cons (range).
22354 (push_key_description): Adjust for the new character code.
22355 (describe_vector): Call describe_char_table for a char table.
22356 (describe_char_table): New function.
22357
22358 * keymap.h (describe_char_table): Extern it.
22359
22360 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22361 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22362 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22363 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22364 Delete.
22365 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22366 structure.
22367 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22368 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22369 (CHARTAB_SIZE_BITS_3): New macros.
22370 (chartab_size): Extern it.
22371 (struct Lisp_Char_Table): Re-design.
22372 (struct Lisp_Sub_Char_Table): New structure.
22373 (HASH_KEY, HASH_VALUE): Move from fns.c.
22374 (CHARACTERBITS): Define as 22.
22375 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22376 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22377 (GC_SUB_CHAR_TABLE_P): New macro.
22378 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22379 (code_convert_string_norecord): Deleted extern.
22380 (init_character_once, syms_of_character, init_charset)
22381 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22382
22383 * lread.c: Include "character.h".
22384 (read_multibyte): New arg NBYTES.
22385 (read_escape): Change the meaning of returned *BYTEREP.
22386 (to_multibyte): Delete.
22387 (read1): Adjust the handling of char table and string.
22388
22389 * print.c: Include "character.h" instead of "charset.h".
22390 (print_string): Convert 8-bit raw bytes to octal form by
22391 string_escape_byte8.
22392 (print_object): Adjust for the new multibyte form. Print 8-bit
22393 raw bytes always in octal form. Handle sub char table correctly.
22394
22395 * process.c: Include "character.h" instead of "charset.h".
22396 (read_process_output, send_process): Adjust for the new
22397 code-conversion API.
22398
22399 * puresize.h (BASE_PURESIZE): Increase.
22400
22401 * regex.c: Include "character.h" instead of "charset.h".
22402 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22403 (regex_compile): Accept a range whose starting and ending
22404 character have different leading bytes.
22405 (analyse_first): Adjust for the above change.
22406
22407 * search.c: Include "character.h" instead of "charset.h".
22408 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22409 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22410
22411 * syntax.c: Include "character.h" instead of "charset.h".
22412 (syntax_parent_lookup): Delete.
22413 (Fmodify_syntax_entry): Accept a cons as CHAR.
22414 (skip_chars): Adjust for the new multibyte form.
22415 (init_syntax_once): Call char_table_set_range instead of directly
22416 accessing the structure of a char table.
22417
22418 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22419 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22420 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22421 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22422
22423 * term.c: Include "buffer.h" and "character.h".
22424 (encode_terminal_code, write_glyphs): Adjust for the new
22425 code-conversion API.
22426 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22427
22428 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22429
22430 * xdisp.c: Include "character.h".
22431 (get_next_display_element): Adjust for the new multibyte form.
22432 (disp_char_vector): Adjust for the new char table structure.
22433 (decode_mode_spec_coding): Adjust for the new structure of
22434 coding system.
22435 (decode_mode_spec): Adjust for the new code-conversion API.
22436
22437 * xfaces.c: Include "character.h" instead of "charset.h".
22438 (load_face_font): Adjust for the change of choose_face_font and
22439 FS_LOAD_FONT.
22440 (generate_ascii_font): New function.
22441 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22442 (set_font_frame_param): Adjust for the change of choose_face_font.
22443 (free_realized_face): Make it public.
22444 (free_realized_faces_for_fontset): Rename from
22445 free_realized_multibyte_face. Free also faces realized for ASCII.
22446 (choose_face_font): Change arguments. Adjust for the change of
22447 fontset_font_pattern and FS_LOAD_FONT.
22448
22449 * xfns.c: Include "character.h".
22450 (x_encode_text): Adjust for the new code-conversion API.
22451
22452 * xselect.c: Don't include "charset.h".
22453 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22454
22455 * xterm.c: Include "character.h".
22456 (x_encode_char): New argument CHARSET. Change caller.
22457 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22458 Call ENCODE_CHAR instead of SPLIT_CHAR.
22459 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22460 CHAR_WIDTH instead of CHARSET_WIDTH.
22461 (XTread_socket): Adjust for the new code-conversion API.
22462 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22463 (x_load_font): Adjust for the change of struct font.
22464
22465 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22466
22467 * xfaces.c (face_at_buffer_position): Remove unused vars.
22468
22469 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22470
22471 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22472 Fix overflow checking.
22473
22474 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22475
22476 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22477 Cancel previous change.
22478
22479 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22480
22481 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22482 ccl->eight_bit_control. Fix check for buffer overflow.
22483 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22484 (ccl_driver): Initialize extra_bytes to 0.
22485
22486 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22487
22488 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22489 return it ORed with ctrl_modifier.
22490
22491 2008-01-29 Miles Bader <miles@gnu.org>
22492
22493 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22494
22495 2008-01-28 Jason Rumney <jasonr@gnu.org>
22496
22497 * w32.c (stat): Don't double check for networked drive.
22498
22499 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22500
22501 * window.c (run_window_configuration_change_hook): New function.
22502 Code extracted from set_window_buffer. Set the selected frame.
22503 (set_window_buffer): Use it.
22504 * window.h (run_window_configuration_change_hook): Declare.
22505 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22506
22507 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22508
22509 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22510
22511 * Makefile.in: Remove references to unused macros.
22512
22513 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22514
22515 * w32.c (g_b_init_get_sid_sub_authority)
22516 (g_b_init_get_sid_sub_authority_count): New static variables.
22517 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22518 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22519 (init_user_info): Use them to retrieve uid and gid.
22520 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22521 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22522 st_uid and st_gid of the file.
22523
22524 2008-01-26 Jason Rumney <jasonr@gnu.org>
22525
22526 * w32.c (logon_network_drive): New function.
22527 (stat): Use it.
22528
22529 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22530
22531 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22532 invisible text covered with an ellipsis.
22533
22534 2008-01-25 Richard Stallman <rms@gnu.org>
22535
22536 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22537 jump back to beginning. Move some other initializations after that.
22538 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22539 New variables.
22540 (syms_of_xdisp): Init them.
22541
22542 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22543
22544 * buffer.c (reset_buffer_local_variables):
22545 Implement `permanent-local-hook'.
22546 (Qpermanent_local_hook): New variable.
22547 (syms_of_buffer): Init and staticpro it.
22548
22549 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22550
22551 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22552
22553 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22554
22555 * fns.c (Fclrhash): Return TABLE.
22556
22557 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22558
22559 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22560 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22561 is set even without positional changes.
22562 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22563
22564 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22565
22566 2008-01-23 Jason Rumney <jasonr@gnu.org>
22567
22568 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22569
22570 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22571 the unicode range available in MULE by locale-coding-system.
22572 Improve dbcs lead byte detection. Set event timestamp and modifiers
22573 earlier.
22574
22575 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22576
22577 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22578 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22579 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22580 when used on child processes.
22581
22582 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22583
22584 * dbusbind.c (Fdbus_method_return_internal): Rename from
22585 Fdbus_method_return.
22586 (Fdbus_unregister_object): Move to dbus.el.
22587 (Fdbus_call_method, Fdbus_method_return_internal)
22588 (Fdbus_send_signal): Improve debug messages.
22589
22590 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22591
22592 * undo.c (undo_inhibit_record_point): New variable.
22593 (syms_of_undo): Initialize it.
22594 (record_point): Don't record point when undo_inhibit_record_point
22595 is set.
22596
22597 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22598
22599 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22600
22601 * xdisp.c (Qauto_hscroll_mode): New var.
22602 (syms_of_xdisp): Initialize it.
22603 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22604 window's buffer.
22605 (hscroll_windows): Don't check automatic_hscrolling_p here.
22606
22607 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22608 vscroll if we're setting window-buffer to the value it already has.
22609
22610 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22611
22612 * m/intel386.h: Remove references to XENIX.
22613
22614 2008-01-17 Andreas Schwab <schwab@suse.de>
22615
22616 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22617 instead of HAVE_X86_64_LIB64_DIR.
22618 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22619
22620 2008-01-17 Glenn Morris <rgm@gnu.org>
22621
22622 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22623 to HAVE_X86_64_LIB64_DIR.
22624
22625 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22626
22627 * s/irix3-3.h:
22628 * s/irix4-0.h:
22629 * s/386-ix.h:
22630 * s/domain.h:
22631 * s/hpux9-x11r4.h:
22632 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22633
22634 * sysdep.c: Remove code containing references to symbols defined
22635 by unsupported systems.
22636
22637 2008-01-16 Glenn Morris <rgm@gnu.org>
22638
22639 * coding.c (select-safe-coding-system-function): Doc fix.
22640
22641 2008-01-15 Glenn Morris <rgm@gnu.org>
22642
22643 * config.in: Revert 2008-01-13 change: this is a generated file.
22644
22645 2008-01-13 Tom Tromey <tromey@redhat.com>
22646
22647 * lisp.h: Fix typo.
22648
22649 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22650
22651 * m/sequent-ptx.h:
22652 * m/sequent.h:
22653 * s/ptx.h:
22654 * s/ptx4-2.h:
22655 * s/ptx4.h: Remove files for systems no longer supported.
22656
22657 * callproc.c (Fcall_process): Fix previous change.
22658
22659 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22660
22661 * unexsunos4.c: Remove file, system not supported anymore.
22662
22663 * m/mips.h:
22664 * m/intel386.h:
22665 * callproc.c:
22666 * config.in:
22667 * ecrt0.c:
22668 * emacs.c:
22669 * fileio.c:
22670 * frame.c:
22671 * getpagesize.h:
22672 * keyboard.c:
22673 * lread.c:
22674 * process.c:
22675 * puresize.h:
22676 * sysdep.c:
22677 * systty.h:
22678 * syswait.h:
22679 * unexec.c:
22680 * xdisp.c:
22681 * alloc.c: Remove code containing references to symbols defined by
22682 unsupported systems.
22683
22684 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22685
22686 * coding.c (detect_coding_mask): Fix previous change.
22687
22688 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22689
22690 * coding.c (detect_coding_iso2022): New arg
22691 latin_extra_code_state. Allow Latin extra codes only
22692 when *latin_extra_code_state is nonzero.
22693 (detect_coding_mask): If there is a NULL byte, detect the encoding
22694 as UTF-16 or binary. If Latin extra codes exist, detect the
22695 encoding as ISO-2022 only when there's no other proper encoding is
22696 found.
22697
22698 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22699
22700 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22701 #ifdef MAC_OS.
22702
22703 2008-01-08 Richard Stallman <rms@gnu.org>
22704
22705 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22706
22707 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
22708
22709 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22710 menu bar in parentheses.
22711
22712 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22713
22714 * m/7300.h:
22715 * m/acorn.h:
22716 * m/alliant-2800.h:
22717 * m/alliant.h:
22718 * m/alliant1.h:
22719 * m/alliant4.h:
22720 * m/altos.h:
22721 * m/amdahl.h:
22722 * m/apollo.h:
22723 * m/att3b.h:
22724 * m/aviion-intel.h:
22725 * m/aviion.h:
22726 * m/celerity.h:
22727 * m/clipper.h:
22728 * m/cnvrgnt.h:
22729 * m/convex.h:
22730 * m/cydra5.h:
22731 * m/delta88k.h:
22732 * m/dpx2.h:
22733 * m/dual.h:
22734 * m/elxsi.h:
22735 * m/f301.h:
22736 * m/gould-np1.h:
22737 * m/gould.h:
22738 * m/i860.h:
22739 * m/ibmps2-aix.h:
22740 * m/ibmrt-aix.h:
22741 * m/ibmrt.h:
22742 * m/irist.h:
22743 * m/is386.h:
22744 * m/isi-ov.h:
22745 * m/mega68.h:
22746 * m/mg1.h:
22747 * m/news-r6.h:
22748 * m/news-risc.h:
22749 * m/news.h:
22750 * m/nh3000.h:
22751 * m/nh4000.h:
22752 * m/ns16000.h:
22753 * m/ns32000.h:
22754 * m/nu.h:
22755 * m/orion.h:
22756 * m/orion105.h:
22757 * m/paragon.h:
22758 * m/pfa50.h:
22759 * m/plexus.h:
22760 * m/pyramid.h:
22761 * m/pyrmips.h:
22762 * m/sh3el.h:
22763 * m/sps7.h:
22764 * m/sr2k.h:
22765 * m/stride.h:
22766 * m/sun1.h:
22767 * m/sun2.h:
22768 * m/sun3-68881.h:
22769 * m/sun3-fpa.h:
22770 * m/sun3-soft.h:
22771 * m/sun3.h:
22772 * m/sun386.h:
22773 * m/symmetry.h:
22774 * m/tad68k.h:
22775 * m/tahoe.h:
22776 * m/targon31.h:
22777 * m/tek4300.h:
22778 * m/tekxd88.h:
22779 * m/tower32.h:
22780 * m/tower32v3.h:
22781 * m/ustation.h:
22782 * m/wicat.h:
22783 * m/xps100.h:
22784 * s/cxux.h:
22785 * s/cxux7.h:
22786 * s/dgux.h:
22787 * s/dgux4.h:
22788 * s/dgux5-4-3.h:
22789 * s/dgux5-4r2.h:
22790 * s/esix.h:
22791 * s/esix5r4.h:
22792 * s/hiuxmpp.h:
22793 * s/hiuxwe2.h:
22794 * s/iris3-5.h:
22795 * s/iris3-6.h:
22796 * s/isc2-2.h:
22797 * s/isc3-0.h:
22798 * s/isc4-0.h:
22799 * s/isc4-1.h:
22800 * s/newsos5.h:
22801 * s/newsos6.h:
22802 * s/osf1.h:
22803 * s/osf5-0.h:
22804 * s/riscix1-1.h:
22805 * s/riscix12.h:
22806 * s/sco4.h:
22807 * s/sco5.h:
22808 * s/sunos4-0.h:
22809 * s/sunos4-1.h:
22810 * s/sunos413.h:
22811 * s/sunos4shr.h:
22812 * s/umax.h:
22813 * s/unipl5-2.h:
22814 * s/xenix.h:
22815 * cxux-crt0.s:
22816 * unexapollo.c:
22817 * unexconvex.c:
22818 * unexenix.c:
22819 * unexsni.c: Remove files for systems no longer supported.
22820
22821 * m/intel386.h: Remove references to unsupported systems.
22822
22823 * w32.c (get_emacs_configuration): Remove reference to i860.
22824
22825 * sysdep.c: Remove dead code.
22826
22827 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22828
22829 * s/rtu.h:
22830 * m/masscomp.h: Remove files. Platform is obsolete.
22831
22832 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22833
22834 * dbusbind.c (Fdbus_method_return): New function.
22835 (xd_read_message): Add the serial number to the event.
22836 (Fdbus_register_method): Activate the function.
22837
22838 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22839
22840 * keyboard.c (read_key_sequence): Fix typo.
22841
22842 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22843
22844 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22845 (xd_signature, xd_append_arg): Handle element type detection for
22846 empty arrays.
22847 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22848 SDATA () calls; this must be solved more general.
22849 (Fdbus_register_signal): Use SBYTES instead of strlen.
22850
22851 2008-01-03 Magnus Henoch <magnus@zemdatav>
22852
22853 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22854 unsigned int for byte values (necessary for big-endian platform).
22855 (Fdbus_call_method): Handle the case of no returned arguments.
22856
22857 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22858
22859 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22860
22861 2007-12-31 Magnus Henoch <mange@freemail.hu>
22862
22863 * dbusbind.c (xd_signature): Signature of variant is just "v".
22864
22865 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22866
22867 * dbusbind.c: Fix several errors and compiler warnings.
22868 Reported by Tom Tromey <tromey@redhat.com>.
22869 (XD_ERROR, XD_DEBUG_MESSAGE)
22870 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22871 (xd_append_arg): Part for basic D-Bus types rewritten.
22872 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22873 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22874 appropriate.
22875 (xd_read_message): Return Qnil. Don't signal an error; it is not
22876 useful during event reading.
22877 (Fdbus_register_signal): Signal an error if the check for
22878 FUNCTIONP fails.
22879 (Fdbus_register_method): New function. The implementation is not
22880 complete, the call of the function signals an error therefore.
22881 (Fdbus_unregister_object): New function, renamed from
22882 Fdbus_unregister_signal. The initial check signals an error, if
22883 the object is not well formed.
22884
22885 2007-12-30 Richard Stallman <rms@gnu.org>
22886
22887 * textprop.c (get_char_property_and_overlay):
22888 Signal error if POSITION is out of range in a buffer.
22889
22890 2007-12-29 Martin Rudalics <rudalics@gmx.at>
22891
22892 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22893 because the original parameters are in pure storage now.
22894
22895 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22896
22897 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22898
22899 2007-12-22 Eli Zaretskii <eliz@gnu.org>
22900
22901 * callint.c (syms_of_callint) <command-history>: Add reference to
22902 history-length in the doc string.
22903
22904 2007-12-17 Jason Rumney <jasonr@gnu.org>
22905
22906 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22907 before passing as wParam.
22908
22909 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
22910
22911 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22912 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22913 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22914 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22915 as number.
22916 (Fdbus_call_method): Fix docstring.
22917
22918 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
22919
22920 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22921 New macros.
22922 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22923 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22924 Simplify.
22925 (xd_signature): New function.
22926 (xd_append_arg): Compute also signatures. Major rewrite.
22927 (xd_retrieve_arg): Make debug messages friendly.
22928 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22929 Check for signatures of arguments.
22930
22931 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
22932
22933 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22934 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22935 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22936 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22937 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22938 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22939 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22940 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22941 (xd_retrieve_value): Remove. Functionality included in ...
22942 (xd_append_arg): New function.
22943 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22944
22945 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
22946
22947 * dbusbind.c (top): Include <stdio.h>.
22948 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22949 dbus_message_new_method_call and dbus_message_new_signal.
22950 (Fdbus_register_signal): Rename unique_name to uname.
22951 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22952 non-existing unique name. Fix typos in matching rule. Return an
22953 object which is useful in Fdbus_unregister_signal.
22954 (Fdbus_unregister_signal): Reimplementation, in order to remove
22955 only the corresponding entry.
22956 (Vdbus_registered_functions_table): Change the order of entries.
22957 Apply these changes in xd_read_message and Fdbus_register_signal.
22958
22959 2007-12-16 Andreas Schwab <schwab@suse.de>
22960
22961 * fileio.c (Finsert_file_contents): Fix overflow check to not
22962 depend on undefined integer overflow.
22963
22964 2007-12-14 Jason Rumney <jasonr@gnu.org>
22965
22966 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22967 for characters above 127.
22968
22969 2007-12-13 Jason Rumney <jasonr@gnu.org>
22970
22971 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22972 before dereferencing array.
22973 (lookup_vk_code): Remove zero comparison.
22974
22975 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
22976
22977 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22978 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22979 Use `unsigned int' instead of `uint'.
22980 (xd_read_message, Fdbus_register_signal): Split expressions into
22981 multiple lines before operators "&&" and "||", according to the
22982 GNU Coding Standards.
22983
22984 2007-12-14 Eli Zaretskii <eliz@gnu.org>
22985
22986 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22987
22988 2007-12-12 Juri Linkov <juri@jurta.org>
22989
22990 * buffer.c (Frename_buffer): In interactive spec replace
22991 `read-buffer' with `read-string' that uses `buffer-name-history'
22992 as history, and the current buffer's name as default.
22993
22994 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22995
22996 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22997 manipulating the backtrace manually.
22998 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22999 (struct backtrace, backtrace_list): Remove.
23000 (command_loop_1): Remove dead var `no_direct'.
23001
23002 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23003 preserve non-built-in buffer-local variables.
23004 (Fkill_all_local_variables): Don't re-create&re-set permanent
23005 buffer-local variables.
23006
23007 2007-12-09 Juri Linkov <juri@jurta.org>
23008
23009 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23010 Lisp code that uses `read-buffer' with current buffer as default.
23011
23012 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
23013
23014 * dbusbind.c (xd_read_message): Generate an event for every
23015 registered handler. There might be several handlers registered
23016 for the same signal.
23017 (Fdbus_register_signal): Don't overwrite a registration for the
23018 same signal. Add a new registration if handlers are different.
23019 (Vdbus_registered_functions_table): Rework doc string.
23020
23021 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
23022
23023 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23024 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23025 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23026 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23027 Unify argument lists.
23028 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23029 arguments and hash table keys. Use unique name for service.
23030 (Fdbus_unregister_signal): Remove checks.
23031 (Vdbus_registered_functions_table): Fix doc string.
23032
23033 2007-12-05 Magnus Henoch <mange@freemail.hu>
23034
23035 * process.c (make_process): Initialize pty_flag to 0.
23036
23037 2007-12-05 Jason Rumney <jasonr@gnu.org>
23038
23039 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23040 specified XBMs.
23041
23042 2007-12-05 Richard Stallman <rms@gnu.org>
23043
23044 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23045
23046 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23047
23048 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23049 New variable.
23050 (mac_try_close_socket) [MAC_OSX]: New function.
23051 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23052 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23053
23054 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23055 Use mac_try_close_socket.
23056
23057 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23058
23059 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23060 reloc_base.
23061 (copy_dysymtab): Compute relocation base here.
23062 (rebase_reloc_address) [__ppc64__]: New function.
23063 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23064 changed.
23065
23066 2007-12-05 Jason Rumney <jasonr@gnu.org>
23067
23068 * w32proc.c (sys_spawnve): Quote args with wildcards.
23069
23070 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23071
23072 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23073 __objc_* sections.
23074 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23075
23076 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23077
23078 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23079 Move check for Vdbus_registered_functions_table to
23080 xd_read_queued_messages.
23081 (xd_read_queued_messages): Protect xd_read_message calls by
23082 internal_condition_case_1.
23083
23084 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23085
23086 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23087 Qdbus_system_bus and Qdbus_session_bus, respectively.
23088 (Vdbus_intern_symbols): Remove.
23089 (Vdbus_registered_functions_table): New hash table.
23090 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23091 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23092 Rewrite in order to manage registered functions by hash table
23093 Vdbus_registered_functions_table.
23094
23095 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23096
23097 * xterm.c: Update URL to Window Manager Specification in comment.
23098
23099 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23100
23101 * config.in (HAVE_DBUS): Add.
23102
23103 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23104 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23105 (obj): Add $(DBUS_OBJ).
23106 (LIBES): Add $(DBUS_LIBS).
23107 (dbusbind.o): New target.
23108
23109 * dbusbind.c: New file.
23110
23111 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23112
23113 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23114 (Qdbus_event): New Lisp symbol.
23115 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23116 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23117 (keys_of_keyboard): Define dbus-event.
23118
23119 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23120
23121 2007-12-01 Richard Stallman <rms@gnu.org>
23122
23123 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23124
23125 2007-11-30 Jason Rumney <jasonr@gnu.org>
23126
23127 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23128 (w32con_reset_terminal_modes): Clear screen buffer.
23129 (w32_face_attributes): Don't use color indexes that are out of range.
23130 Only reverse the default colors.
23131
23132 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23133 WINDOWSNT.
23134
23135 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23136
23137 2007-11-29 Jason Rumney <jasonr@gnu.org>
23138
23139 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23140 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23141 if the terminal colors are initialized.
23142 (unspecified_fg, unspecified_bg): Remove unused declarations.
23143
23144 2007-11-29 Andreas Schwab <schwab@suse.de>
23145
23146 * keyboard.c (apply_modifiers): Fix typo.
23147
23148 2007-11-29 Richard Stallman <rms@gnu.org>
23149
23150 * keymap.c (Fcurrent_local_map): Doc fix.
23151
23152 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23153
23154 * s/gnu-kfreebsd.h: New file.
23155
23156 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23157
23158 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23159 Don't cast redundantly.
23160
23161 * keyboard.c (KEY_TO_CHAR): New macro.
23162 (parse_modifiers, apply_modifiers): Accept integer arguments.
23163 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23164 for chars and symbol keys.
23165 After doing such remapping, apply function-key-map again.
23166
23167 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23168
23169 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23170 compiled anymore.
23171
23172 2007-11-26 Andreas Schwab <schwab@suse.de>
23173
23174 * process.c (list_processes_1): Fix indentation level of the
23175 command column.
23176
23177 2007-11-23 Andreas Schwab <schwab@suse.de>
23178
23179 * editfns.c (Fformat): Handle %c specially since it requires the
23180 argument to be of type int.
23181
23182 2007-11-23 Markus Triska <markus.triska@gmx.at>
23183
23184 * emacs.c (main): Call init_editfns before init_process, since
23185 init_process sets Vprocess_connection_type depending on OS release.
23186
23187 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23188
23189 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23190 (find_symbol_value): Use do_symval_forwarding.
23191
23192 * data.c (set_internal): Set the value in the `cons-cell' (for
23193 Buffer_Local_values) not only for frame-local variables.
23194
23195 2007-11-22 Andreas Schwab <schwab@suse.de>
23196
23197 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23198 values to sprintf.
23199 * keymap.c (Fsingle_key_description): Likewise.
23200 * print.c (print_object): Likewise.
23201
23202 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23203
23204 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23205 file for image is nil.
23206
23207 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23208
23209 * term.c: Include stdarg.h.
23210 (fatal): Implement using varargs.
23211 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23212
23213 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23214
23215 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23216 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23217 Update call to buffer_slot_type_mismatch.
23218 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23219 (buffer_slot_type_mismatch): Update.
23220 * buffer.c (buffer_local_types): Remove.
23221 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23222 (defvar_per_buffer): Set the type in the buffer_objfwd.
23223
23224 2007-11-21 Jason Rumney <jasonr@gnu.org>
23225
23226 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23227 CreateFileMapping returns NULL on failure.
23228
23229 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23230
23231 * search.c (Fset_match_data): Remove the `evaporate' feature.
23232 (unwind_set_match_data): Don't use the `evaporate' feature.
23233
23234 2007-11-21 Jason Rumney <jasonr@gnu.org>
23235
23236 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23237
23238 * w32console.c (w32con_write_glyphs): Remove unused variables.
23239
23240 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23241
23242 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23243
23244 * s/darwin.h (MULTI_KBOARD): Remove.
23245
23246 * macfns.c (x_create_tip_frame, Fx_create_frame)
23247 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23248
23249 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23250
23251 * buffer.c (Fbuffer_local_value): Remove redundant test.
23252 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23253 than in `current-buffer' to match the comment.
23254 Do the swap using swap_in_global_binding.
23255
23256 * data.c (store_symval_forwarding, set_internal):
23257 * eval.c (specbind): Remove dead code.
23258
23259 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23260 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23261 Since we do not want to see internal Lisp_*fwd objects here.
23262
23263 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23264
23265 * sysdep.c (init_system_name): Use getaddrinfo if available.
23266
23267 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23268 (x_scroll_bar_note_movement): start, end, with, height in struct
23269 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23270
23271 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23272
23273 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23274
23275 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23276
23277 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23278 This undoes Richard's change of 14-Oct-2002.
23279
23280 * alloc.c (allocate_other_vector):
23281 * lisp.h (allocate_other_vector): Remove.
23282
23283 * window.c (struct save_window_data): Move non-lisp data to the end
23284 and make it `int' rather than Lisp_Object.
23285 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23286 Done wrap/unwrap integer values.
23287 (Fset_window_configuration, compare_window_configurations):
23288 Update use of fields to their new types.
23289
23290 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23291 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23292 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23293 (SET_SCROLL_BAR_X_WINDOW): Remove.
23294 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23295 Access the new x_window field directly.
23296 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23297 Don't wrap/unwrap integers into Lisp_Objects.
23298 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23299 (x_scroll_bar_report_motion):
23300 Don't wrap/unwrap integers into Lisp_Objects.
23301 (x_term_init): Use SDATA.
23302 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23303 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23304 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23305 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23306 * xfns.c (x_set_background_color):
23307 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23308 Access the new x_window field directly.
23309
23310 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23311 (allocate_pseudovector): Make non-static.
23312
23313 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23314 (allocate_pseudovector): Declare.
23315 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23316
23317 2007-11-15 Andreas Schwab <schwab@suse.de>
23318
23319 * editfns.c (Fformat): Correctly format EMACS_INT values.
23320 Also take precision into account when formatting an integer.
23321
23322 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23323
23324 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23325
23326 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23327 (syms_of_keyboard): Defsubr it.
23328
23329 * data.c (swap_in_global_binding): Fix longstanding bug where
23330 store_symval_forwarding was not called with the right second argument,
23331 thus causing objfwd-ing from being dropped.
23332
23333 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23334
23335 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23336 (Fx_display_pixel_height, Fx_display_planes)
23337 (Fx_display_color_cells, Fx_server_max_request_size)
23338 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23339 (Fx_display_visual_class, Fx_display_save_under):
23340 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23341 (Fx_display_pixel_height, Fx_display_planes)
23342 (Fx_display_color_cells, Fx_server_max_request_size)
23343 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23344 (Fx_display_mm_height, Fx_display_mm_width)
23345 (Fx_display_backing_store, Fx_display_visual_class)
23346 (Fw32_select_font, Fx_display_save_under):
23347 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23348 (Fx_display_pixel_height, Fx_display_planes)
23349 (Fx_display_color_cells, Fx_server_max_request_size)
23350 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23351 (Fx_display_save_under): Fix typos in docstrings.
23352
23353 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23354
23355 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23356 corresponding to deleted entries; they are an implementation detail.
23357 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23358 Remove variables.
23359 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23360 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23361 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23362 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23363 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23364 (Fw32_define_rgb_color, Fw32_load_color_file)
23365 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23366 Fix typos in docstrings.
23367 (Fx_server_version): Reflow docstring.
23368 (Fw32_shell_execute): Doc fixes.
23369
23370 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23371
23372 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23373 if w32_parse_hot_key returned nil.
23374
23375 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23376
23377 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23378
23379 2007-11-09 Jason Rumney <jasonr@gnu.org>
23380
23381 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23382
23383 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23384
23385 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23386 Remove W32_SCROLL_BAR_CLICK_EVENT.
23387
23388 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23389 Add MULTIMEDIA_KEY_EVENT.
23390
23391 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23392 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23393 (make_lispy_event) [WINDOWSNT]: Use it to translate
23394 MULTIMEDIA_KEY_EVENT.
23395
23396 * w32term.h (WM_APPCOMMAND): Define if not already.
23397 (GET_APPCOMMAND_LPARAM): Likewise.
23398
23399 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23400 WM_APPCOMMAND.
23401
23402 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23403 (syms_of_w32fns): Export and initialize it.
23404 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23405
23406 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23407
23408 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23409 twice.
23410
23411 * xdisp.c (handle_face_prop): Fix last change.
23412
23413 2007-11-09 Richard Stallman <rms@gnu.org>
23414
23415 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23416 not just for after-strings and before-strings.
23417 Call face_for_overlay_string and pass the overlay to it.
23418 (handle_display_prop): Determine whether property came from an overlay.
23419 Pass OVERLAY arg to handle_single_display_spec.
23420 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23421 (load_overlay_strings): Fill in it->string_overlays.
23422 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23423
23424 * xfaces.c (face_for_overlay_string): Function renamed from
23425 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23426
23427 * dispextern.h (struct it): New elt string_overlays.
23428 New elt from_overlay, also in stack.
23429 Rearrange a few elements.
23430 (face_for_overlay_string): Decl renamed from
23431 face_at_buffer_position_no_overlays, and add argument.
23432
23433 2007-11-09 Richard Stallman <rms@gnu.org>
23434
23435 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23436 to get the base face for an overlay string.
23437
23438 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23439
23440 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23441
23442 * xdisp.c (handle_stop): Move some code out of loop.
23443
23444 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23445
23446 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23447 Fix conversion from Lisp object to ATSUFontID.
23448
23449 2007-11-09 Jason Rumney <jasonr@gnu.org>
23450
23451 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23452
23453 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23454
23455 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23456 Don't assume regions are aligned to page boundary.
23457 (print_load_command_name): Add LC_UUID if defined.
23458
23459 2007-11-09 Richard Stallman <rms@gnu.org>
23460
23461 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23462
23463 2007-11-07 Jason Rumney <jasonr@gnu.org>
23464
23465 * s/windows95.h: Remove.
23466
23467 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23468
23469 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23470 abort with a message on unhandled store_type values.
23471
23472 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23473
23474 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23475 Remove HAVE_X11R5 and HAVE_X11R4.
23476
23477 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23478
23479 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23480
23481 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23482
23483 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23484 Don't set s->stippled_p here, since it has already been set by
23485 x_set_glyph_string_gc from x_draw_glyph_string.
23486
23487 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23488
23489 * sunfns.c: Remove file.
23490
23491 * m/sun386.h:
23492 * m/sun2.h:
23493 * m/sparc.h: Remove Sun windows code.
23494
23495 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23496
23497 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23498 (init_keyboard): Set current_kboard's window-system to nil.
23499 (tty_read_avail_input): Typo.
23500 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23501
23502 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23503
23504 * s/usg5-4.h:
23505 * s/usg5-3.h:
23506 * s/ptx.h:
23507 * m/is386.h:
23508 * m/ibmps2-aix.h:
23509 * Makefile.in: Remove all mentions of X10.
23510
23511 * dispnew.c (syms_of_display): Don't mention version 10.
23512
23513 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23514
23515 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23516 ($(BLD)/abbrev.$(O)): Remove.
23517
23518 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23519
23520 Rewrite abbrev.c in Elisp.
23521 * image.c (Qcount): Don't declare as extern.
23522 (syms_of_image): Initialize and staticpro `Qcount'.
23523 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23524 * emacs.c (main): Don't call syms_of_abbrev.
23525 * Makefile.in (obj): Remove abbrev.o.
23526 (abbrev.o): Remove.
23527 * abbrev.c: Remove.
23528
23529 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23530
23531 * window.c (window_min_size_2): Don't count header-line.
23532
23533 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23534
23535 * frame.h (struct frame): Move all bit fields after the first bit
23536 field to take advantage of the available space. Group all the
23537 chars together to reduce wasted space due to padding.
23538
23539 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23540
23541 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23542
23543 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23544 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23545 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23546 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23547 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23548 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23549 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23550 (last_marked, mark_object_loop_halt): Make static.
23551
23552 * frame.c (syms_of_frame) <delete-frame-functions>:
23553 Fix typo in docstring.
23554
23555 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23556
23557 * w32.c (init_environment): Fix tiny memory leak.
23558 (w32_get_resource): Remove unused variable `ok'.
23559
23560 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23561
23562 Make `window-system' into a keyboard-local variable (rather than
23563 frame-local as done originally by multi-tty).
23564
23565 * keyboard.h (struct kboard): Add Vwindow_system.
23566 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23567 (mark_kboards): Mark Vwindow_system.
23568
23569 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23570 (init_display): Don't set the obsolete `window-system' frame-param.
23571
23572 * xterm.c (x_term_init):
23573 * w32term.c (w32_create_terminal):
23574 * term.c (init_tty): Set Vwindow_system.
23575 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23576 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23577
23578 * xfns.c (Fx_create_frame, x_create_tip_frame):
23579 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23580 * macfns.c (Fx_create_frame):
23581 Don't set the obsolete `window-system' frame-param.
23582
23583 * frame.h (Qwindow_system): Remove.
23584 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23585 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23586
23587 2007-10-24 Richard Stallman <rms@gnu.org>
23588
23589 * frame.c (x_figure_window_size): For fullscreen case,
23590 set USPosition | PPosition without clobbering rest of window_prompting.
23591
23592 * keyboard.c (Fcurrent_idle_time): Doc fix.
23593
23594 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23595
23596 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23597
23598 * process.c (unwind_request_sigio): Only define if __ultrix__.
23599
23600 * callproc.c (child_setup): Remove spurious *.
23601
23602 * lisp.h (Fget_text_property): Declare.
23603 (have_menus_p): Declare it here rather than in sys-dep header files.
23604 * macterm.h (have_menus_p):
23605 * msdos.h (have_menus_p):
23606 * xterm.h (have_menus_p): Remove.
23607
23608 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23609 (Fmake_variable_frame_local): Just check the variable's const-ness
23610 rather than checking nil or t.
23611
23612 2007-10-22 Jason Rumney <jasonr@gnu.org>
23613
23614 * w32fns.c: Include math.h.
23615 (w32_abort): Declaration moved to nt/config.nt.
23616
23617 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23618 (abort): Redefinition moved to nt/config.nt.
23619
23620 * m/windowsnt.h: Remove.
23621
23622 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
23623
23624 * emacs.c (Fdump_emacs): Fix typo in message.
23625 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23626 <installation-directory>: Reflow docstring.
23627
23628 2007-10-22 Juri Linkov <juri@jurta.org>
23629
23630 * minibuf.c: Allow minibuffer default to be a list of default values.
23631 With empty input use the first element of this list as returned default.
23632 (string_to_object)
23633 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23634 (read_minibuf): If defalt is cons, set histstring to its car.
23635 (Fread_string): If default_value is cons, set val to its car.
23636 (Fread_buffer): If def is cons, use its car.
23637 (Fcompleting_read): If defalt is cons, set val to its car.
23638
23639 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
23640
23641 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23642
23643 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
23644
23645 * doc.c (Fdocumentation): Check for advice in all cases.
23646
23647 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
23648
23649 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23650
23651 2007-10-19 Richard Stallman <rms@gnu.org>
23652
23653 * doc.c (Fdocumentation): Check for and handle an advised function.
23654
23655 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
23656
23657 * process.c (Fset_process_filter): Doc fix.
23658
23659 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23660
23661 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23662 which caused key-translation-map to applied repeatedly (thus breaking
23663 double-mode).
23664
23665 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * xselect.c (x_own_selection, x_handle_selection_clear)
23668 (x_clear_frame_selections):
23669 * w32menu.c (list_of_panes, list_of_items):
23670 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23671 * textprop.c (validate_plist, interval_has_all_properties)
23672 (interval_has_some_properties, interval_has_some_properties_list)
23673 (add_properties, text_property_list):
23674 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23675 * minibuf.c (Fassoc_string):
23676 * macselect.c (x_own_selection, x_clear_frame_selections)
23677 (Fx_disown_selection_internal):
23678 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23679 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23680
23681 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
23682
23683 * process.c: Link to libs for calling res_init() if available.
23684 (Fmake_network_process): Call res_init() before getaddrinfo or
23685 gethostbyname, if possible.
23686
23687 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23688
23689 * lread.c (read1): Set pvectype for char_tables.
23690
23691 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23692 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23693 Add type checks.
23694 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23695
23696 * alloc.c (free_misc): Use XMISCTYPE.
23697 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23698
23699 2007-10-17 Glenn Morris <rgm@gnu.org>
23700
23701 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23702 (syms_of_minibuf): Add Qcompletion_ignore_case.
23703 * dired.c (Qcompletion_ignore_case): Change to external.
23704 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23705 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23706 (Fread_file_name): Use it rather than intern'ing.
23707
23708 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23709 (Fread_coding_system): Ignore case of user input.
23710
23711 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23712
23713 * xdisp.c (handle_display_prop): Ignore display specs after
23714 replacing one when string text is being replaced.
23715 (handle_single_display_spec): Pretend as if characters with display
23716 property haven't been consumed only when buffer text is being replaced.
23717
23718 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23719
23720 * xfns.c (Fx_create_frame, Fx_display_list):
23721 * window.c (window_fixed_size_p, enlarge_window)
23722 (shrink_window_lowest_first):
23723 * macterm.c (init_font_name_table):
23724 * macfns.c (Fx_create_frame, Fx_display_list):
23725 * lread.c (close_load_descs):
23726 * keyboard.c (read_char_x_menu_prompt):
23727 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23728 * coding.c (code_convert_region_unwind): Test the type of an object
23729 rather than just !NILP before extracting data from it.
23730
23731 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23732
23733 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23734 (XMISCANY): New macro.
23735 (XMISCTYPE): Use it.
23736 (struct Lisp_Misc_Any): New type.
23737 (union Lisp_Misc): Use it.
23738 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23739 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23740 (find_symbol_value, set_internal, default_value, Fset_default)
23741 (Fmake_variable_buffer_local, Fmake_local_variable)
23742 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23743 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23744 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23745 * alloc.c (allocate_buffer): Set the size and tag.
23746 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23747 Use XMISCANY.
23748 (die): Follow the GNU convention for error messages.
23749 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23750 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23751 tag any more.
23752 (set_buffer_internal_1):
23753 * frame.c (store_frame_param):
23754 * eval.c (specbind):
23755 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23756
23757 * doc.c (Fsnarf_documentation): Simplify.
23758
23759 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23760
23761 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23762 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23763
23764 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23765
23766 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23767
23768 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23769
23770 * eval.c (do_autoload): Don't save autoloads.
23771
23772 * data.c (Ffset): Save autoload of the function being set.
23773
23774 2007-10-07 John Paul Wallington <jpw@pobox.com>
23775
23776 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23777 parameter before setting up faces.
23778
23779 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23780
23781 * ccl.c (Fregister_code_conversion_map):
23782 * keyboard.c (append_tool_bar_item): Reformat last change.
23783
23784 * lisp.h (eabs): Rename from `abs'. All callers changed.
23785
23786 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23787
23788 * buffer.c (add_overlay_mod_hooklist):
23789 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23790 * fontset.c (make_fontset):
23791 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23792 (append_tool_bar_item):
23793 * macmenu.c (grow_menu_items):
23794 * w32menu.c (grow_menu_items):
23795 * xmenu.c (grow_menu_items): Use larger_vector.
23796
23797 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23798
23799 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23800 selected frame'' on MSDOS).
23801
23802 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23803
23804 * frame.c (Qexplicit_name): New variable.
23805 (x_report_frame_params): Report it in parameter alist.
23806 (syms_of_frame): Intern and staticpro it.
23807
23808 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23809
23810 * macfns.c (x_create_tip_frame): Set terminal for frame.
23811
23812 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23813
23814 * frame.c (Qenvironment): Remove.
23815 (syms_of_frame) <Qenvironment>: Don't initialize.
23816 (Fdelete_frame): Don't treat the `environment' param specially.
23817 * frame.h (Qenvironment): Don't declare.
23818 * callproc.c (set_initial_environment): Don't set unused frame param.
23819
23820 * frame.c (Fframe_with_environment): Remove.
23821 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23822
23823 * lisp.h (Fframe_with_environment): Don't declare.
23824
23825 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23826
23827 * indent.c (indent_tabs_mode, last_known_column)
23828 (last_known_column_modified): Make static.
23829 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23830
23831 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23832
23833 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23834
23835 2007-10-09 Jason Rumney <jasonr@gnu.org>
23836
23837 * w32term.c (x_set_window_size): Disable code that attempts to tell
23838 Lisp code about a size change before it actually happens.
23839
23840 2007-10-09 Richard Stallman <rms@gnu.org>
23841
23842 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23843 return HANDLED_RETURN.
23844
23845 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23846
23847 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23848 when there's an unread command event.
23849
23850 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23851 window autoselection act appropriately when leaving selected frame.
23852 (syms_of_frame): Initialize focus_follows_mouse.
23853 * frame.h (focus_follows_mouse): Extern it.
23854 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23855 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23856 * msdos.c (dos_rawgetc): Likewise.
23857 * w32term.c (w32_read_socket): Likewise.
23858 * xterm.c (handle_one_xevent): Likewise.
23859 * xdisp.c (syms_of_xdisp): In doc-string of
23860 mouse-autoselect-window mention focus-follows-mouse.
23861
23862 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23863
23864 * macterm.c (mac_load_query_font): Fix missing return value.
23865 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23866 Add BLOCK_INPUT.
23867
23868 2007-10-08 Richard Stallman <rms@gnu.org>
23869
23870 * xdisp.c (get_window_cursor_type): Implement documented behavior
23871 for cursor-in-non-selected-windows = t.
23872
23873 2007-10-08 Jason Rumney <jasonr@gnu.org>
23874
23875 * w32.c (w32_get_resource): Always close registry keys.
23876
23877 2007-10-08 Jason Rumney <jasonr@gnu.org>
23878
23879 * makefile.w32-in (LIBS): Add COMCTL32.
23880
23881 * w32fns.c (globals_of_w32fns): Init common controls.
23882
23883 2007-10-08 Richard Stallman <rms@gnu.org>
23884
23885 * image.c (our_memory_buffer): Rename from omfib_buffer.
23886
23887 2007-10-08 Richard Stallman <rms@gnu.org>
23888
23889 * buffer.c (Foverlays_at): Doc fix.
23890
23891 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23892
23893 * fns.c (Fplist_put): Preserve uneven tail data.
23894
23895 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23896
23897 * termhooks.h (enum event_kind): Remove trailing comma.
23898
23899 * frame.h (enum): Remove trailing comma.
23900
23901 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23902
23903 * w32proc.c (delete_child): Don't terminate threads of zombies.
23904
23905 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23906
23907 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23908
23909 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23910 last-repeatable-command.
23911 (init_kboard): Initialize Vlast_repeatable_command.
23912 (command_loop_1): Set it to real_this_command unless that was
23913 bound to an input event.
23914 (mark_kboards): Mark it.
23915
23916 2007-10-08 Richard Stallman <rms@gnu.org>
23917
23918 * eval.c (condition-case): Doc fix.
23919
23920 2007-10-08 Masatake YAMATO <jet@gyve.org>
23921
23922 * xfaces.c (tty_supports_face_attributes_p): Fix code
23923 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23924 was copied and not edited.
23925
23926 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23927
23928 Add new `input-decode-map' keymap and use it for terminal
23929 escape sequences.
23930 * keyboard.h (struct kboard): Add Vinput_decode_map.
23931 Remove Vlocal_key_translation_map.
23932 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23933 (init_kboard): Init input-decode-map.
23934 Replace local-key-translation-map back with key-translation-map.
23935 (syms_of_keyboard): Declare input-decode-map.
23936 Remove local-key-translation-map. Update docstrings.
23937 (mark_kboards): Mark Vinput_decode_map.
23938 Don't mark Vlocal_key_translation_map.
23939 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23940 Replace local-key-translation-map back with key-translation-map.
23941 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23942 Bind in input-decode-map rather than function-key-map.
23943
23944 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23945 This was made redundant by the previous introduction of XSETPVECTYPE.
23946
23947 2007-10-09 Richard Stallman <rms@gnu.org>
23948
23949 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23950
23951 2007-09-29 Richard Stallman <rms@gnu.org>
23952
23953 * eval.c (internal_condition_case_2, internal_condition_case_1)
23954 (internal_condition_case): Reenable abort if x_catching_errors ()
23955 to see if that really happens and why.
23956
23957 2007-10-06 Andreas Schwab <schwab@suse.de>
23958
23959 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23960
23961 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
23962
23963 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23964
23965 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23966
23967 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23968
23969 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23970
23971 * window.h (struct window):
23972 * window.c (struct save_window_data, struct saved_window):
23973 * termhooks.h (struct terminal):
23974 * process.h (struct Lisp_Process):
23975 * frame.h (struct frame):
23976 * buffer.h (struct buffer):
23977 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23978 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23979 The size field of (pseudo)vectors is now unsigned.
23980 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23981
23982 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23983 Turn `count' into an integer.
23984
23985 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23986 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23987 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23988 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23989 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23990
23991 * alloc.c (allocate_pseudovector): New fun.
23992 (ALLOCATE_PSEUDOVECTOR): New macro.
23993 (allocate_window, allocate_terminal, allocate_frame)
23994 (allocate_process): Use it.
23995 (mark_vectorlike): New function.
23996 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23997 (mark_terminals): Use it.
23998 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23999 (Fmake_byte_code): Use XSETPVECTYPE.
24000
24001 * frame.c (Fframe_parameters): Minor simplification.
24002
24003 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24004
24005 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24006
24007 * buffer.c (Fget_buffer_create, init_buffer_once):
24008 * lread.c (defsubr):
24009 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24010
24011 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24012 defined differently in the m/*.h files.
24013 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24014 (XSETPVECTYPE): New macro.
24015 (XSETPSEUDOVECTOR): Use it.
24016
24017 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24018 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24019
24020 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24021 * lread.c (defvar_per_buffer):
24022 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24023
24024 * window.c (candidate_window_p): Only consider as visible frames that
24025 are on the same terminal.
24026
24027 * m/ibms390x.h (MARKBIT): Remove unused macro.
24028
24029 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
24030
24031 * lread.c (Fload): Fix typo in docstring.
24032
24033 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24034
24035 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24036 of a non-zero value can't yield zero.
24037
24038 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24039
24040 * term.c (term_clear_mouse_face, term_mouse_highlight)
24041 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24042
24043 * print.c (safe_debug_print): Use XHASH.
24044
24045 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24046 Lisp elements such as tags.
24047 (XHASH): New macro.
24048 (EQ): Use it.
24049 (SREF, SSET, STRING_COPYIN): Use SDATA.
24050 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24051
24052 * alloc.c (mark_terminal): Remove left-over declaration.
24053 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24054 (allocate_vectorlike): Remove type argument. Adjust callers.
24055 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24056 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24057
24058 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24059 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24060 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24061 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24062 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24063 Use them.
24064
24065 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24066 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24067 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24068
24069 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24070
24071 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24072 loaded by default.
24073
24074 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24075
24076 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24077 on this tty.
24078 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24079
24080 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24081 Update all users.
24082 (handle_one_term_event): Use Gpm_DrawPointer.
24083 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24084 Signal errors instead of returning nil. Always return nil.
24085 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24086 Make it a noop if gpm-mouse was not activated.
24087 (syms_of_term): Update names.
24088
24089 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24090
24091 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24092 (init_sys_modes): Check that gpm_tty is the current tty.
24093
24094 * alloc.c (allocate_terminal): Set the vector size to only count the
24095 lisp fields. Initialize those to nil.
24096 (mark_object): Don't treat terminals specially.
24097 (mark_terminal): Remove.
24098 (mark_terminals): Use mark_object instead.
24099
24100 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24101 the GC to the beginning.
24102
24103 * indent.h:
24104 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24105
24106 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24107
24108 2007-09-25 Jason Rumney <jasonr@gnu.org>
24109
24110 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24111
24112 * w32console.c (create_w32cons_output): Remove.
24113
24114 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24115
24116 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24117 (reset_sys_modes): Use reset_terminal_modes_hook.
24118
24119 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24120
24121 * eval.c (do_autoload): Don't output any message.
24122
24123 2007-09-24 Juri Linkov <juri@jurta.org>
24124
24125 * emacs.c (standard_args): Change priority of "--no-splash"
24126 from 40 to 3. Add "--no-desktop" with the same priority.
24127
24128 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24129
24130 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24131 and optimize the case where they are all 1.
24132
24133 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24134
24135 * lisp.h (abs): Define if not defined.
24136 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24137 Don't define `abs', since it's defined in lisp.h.
24138
24139 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24140
24141 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24142 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24143 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24144 (init_tty): Use DEV_TTY instead of "/dev/tty".
24145 [WINDOWSNT]: No need to protect from NAME arg being null.
24146
24147 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24148
24149 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24150 up the tty state.
24151
24152 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24153
24154 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24155 (gpm_tty): Change its type.
24156 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24157 (gpm_tty): Change its type and initialize it.
24158 (Fterm_open_connection): Check the frame is indeed a tty.
24159 Use the new gpm_tty.
24160 (Fterm_close_connection): Use the new gpm_tty.
24161 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24162 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24163
24164 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24165
24166 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24167 underline_color, to draw strike-through.
24168
24169 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24170
24171 * lisp.h (allocate_terminal): Declare.
24172
24173 * window.c (candidate_window_p): Consider frames that are being placed
24174 by the user as somewhere between visible and iconified.
24175 (window_loop): Prefer windows on the current frame.
24176 (Fselect_window): Move the use of select-frame to the beginning so we
24177 can just delegate all the work (it'll call us back anyway).
24178
24179 * frame.c (Qdisplay_environment_variable):
24180 * frame.h (Qdisplay_environment_variable): Delete.
24181
24182 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24183 of the first arg, since that value may be a union.
24184
24185 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24186 parameter rather than Qdisplay_environment_variable. If all else
24187 fails, look for DISPLAY in initial-environment.
24188
24189 2007-09-21 Glenn Morris <rgm@gnu.org>
24190
24191 * Makefile.in (emacstool): Remove target.
24192 (lisp, shortlisp): Remove termdev.elc.
24193
24194 2007-09-21 Markus Triska <markus.triska@gmx.at>
24195
24196 * xterm.c (x_delete_display): Compile session management conditionally.
24197
24198 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24199
24200 * callproc.c (getenv_internal_1): New function.
24201 (getenv_internal): Use it.
24202 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24203
24204 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24205 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24206 (Fset_terminal_parameter): Work with dead terminals as well.
24207 (Fmodify_terminal_parameters): Remove.
24208
24209 * terminal.c (get_terminal): Handle terminals.
24210 Make sure the terminal returned is live.
24211 (create_terminal): Use allocate_terminal.
24212 (mark_terminals): Move to alloc.c.
24213 (delete_terminal): Use terminal->name as liveness status.
24214 NULL out fields after freeing their contents.
24215 Don't deallocate the object.
24216 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24217 rather than an int.
24218 (Fterminal_live_p): Accept non-integer arguments.
24219 (Fterminal_list): Return terminal objects rather than an ints.
24220
24221 * alloc.c (enum mem_type): New member for `terminal' objects.
24222 (allocate_terminal): New function.
24223 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24224 Handle terminals.
24225 (mark_terminal): New fun.
24226 (mark_terminals): Move from terminal.c.
24227
24228 * term.c (get_tty_terminal): Don't treat output_initial specially.
24229 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24230 (delete_tty): Use terminal->name as liveness status.
24231
24232 * termhooks.h (struct terminal): Make it into a pseudovector.
24233 Remove `deleted' replaced by checking `name's nullness.
24234
24235 * print.c (print_object): Handle terminals.
24236
24237 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24238 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24239
24240 * frame.c (make_terminal_frame):
24241 * keyboard.c (tty_read_avail_input):
24242 * w32term.c (x_delete_terminal):
24243 * xfns.c (Fx_create_frame, x_create_tip_frame):
24244 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24245
24246 2007-09-20 Glenn Morris <rgm@gnu.org>
24247
24248 * process.c (Fmake_network_process): Doc fix.
24249
24250 2007-09-19 Jason Rumney <jasonr@gnu.org>
24251
24252 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24253
24254 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24255
24256 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24257 Fix a C warning regarding variable constness.
24258
24259 * xterm.c (handle_one_xevent): Fix a C warning.
24260
24261 2007-09-18 Jason Rumney <jasonr@gnu.org>
24262
24263 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24264
24265 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24266
24267 * gtkutil.c (gdpy_def): New variable.
24268 (xg_initialize): Initialize gdpy_def.
24269 (xg_display_close): If no other display exists, set gdpy_def to a
24270 new connection.
24271
24272 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24273
24274 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24275 when we have no file name for the icon.
24276 (xg_tool_bar_expose_callback): Remove.
24277 (xg_create_tool_bar): Don't connect expose signal to
24278 xg_tool_bar_expose_callback.
24279 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24280
24281 2007-09-16 Andreas Schwab <schwab@suse.de>
24282
24283 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24284 values instead of zapping them.
24285
24286 2007-09-14 Glenn Morris <rgm@gnu.org>
24287
24288 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24289 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24290 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24291 scope and rename to omfib_buffer for clarity.
24292 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24293
24294 2007-09-14 Kenichi Handa <handa@m17n.org>
24295
24296 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24297
24298 2007-09-13 Jason Rumney <jasonr@gnu.org>
24299
24300 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24301
24302 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24303
24304 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24305 (mac_term_init): Call here instead, passing rif.
24306
24307 2007-09-13 Glenn Morris <rgm@gnu.org>
24308
24309 * s/hpux.h: No longer define `static' as nothing.
24310
24311 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24312
24313 * callint.c (Fcall_interactively): Remove unused var `fun'.
24314
24315 2007-09-12 Romain Francoise <romain@orebokech.com>
24316
24317 * window.c (prefer_window_split_horizontally, display_buffer):
24318 Revert 2007-09-08 change.
24319
24320 2007-09-12 Glenn Morris <rgm@gnu.org>
24321
24322 * alloca.c: Remove file.
24323 * Makefile.in (alloca): Do not undef.
24324 (allocaobj, alloca.o): Remove.
24325 (otherobj): Remove allocaobj.
24326 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24327 * regex.c (C_ALLOCA): Remove all references and code that was only
24328 used when this was defined.
24329 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24330 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24331 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24332
24333 * Makefile.in (SOURCES, unlock, relock): Delete.
24334
24335 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24336 (menu_grab_callback): All uses changed.
24337
24338 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24339 (x_reply_selection_request): All uses changed.
24340
24341 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24342
24343 * lread.c (load_warn_old_style_backquotes): Change message to look
24344 better when it appears in the middle of byte-compiler messages.
24345
24346 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24347
24348 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24349
24350 * xterm.c (x_create_terminal): Add comment.
24351
24352 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24353
24354 2007-09-10 Richard Stallman <rms@gnu.org>
24355
24356 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24357
24358 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24359
24360 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24361 (DEFUN): Document `intspec', use it instead of `prompt'.
24362
24363 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24364
24365 * data.c (Finteractive_form): If the interactive specification starts
24366 with a `(', use it as a Lisp form.
24367
24368 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24369 name and file modes.
24370
24371 * callint.c (Fcall_interactively): Comment fixes.
24372
24373 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24374
24375 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24376 and compiled functions.
24377
24378 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24379
24380 * window.c (prefer_window_split_horizontally): New variable.
24381 (display_buffer): Consider splitting window horizontally depending
24382 on prefer_window_split_horizontally.
24383
24384 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24385
24386 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24387
24388 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24389
24390 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24391
24392 * frame.c (x_set_frame_parameters): Check number is positive before
24393 using XFASTINT.
24394
24395 * window.c (freeze_window_start): Don't presume selected_window holds
24396 a window object.
24397 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24398
24399 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24400
24401 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24402
24403 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24404
24405 * window.c (Vsplit_window_preferred_function): New var.
24406 (Fdisplay_buffer): Use it.
24407 (syms_of_window): Export, and initialize it.
24408
24409 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24410
24411 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24412
24413 2007-09-06 Glenn Morris <rgm@gnu.org>
24414
24415 * gtkutil.c (menu_grab_callback) <cnt>:
24416 * xselect.c (x_reply_selection_request) <cnt>: Move static
24417 variable to file scope.
24418
24419 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24420
24421 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24422 consistent values of selected_frame and selected_window.
24423
24424 2007-09-04 Jason Rumney <jasonr@gnu.org>
24425
24426 * w32console.c (initialize_w32_display): Zero unused hooks.
24427
24428 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24429
24430 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24431 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24432
24433 2007-09-04 Jason Rumney <jasonr@gnu.org>
24434
24435 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24436 in w32console.c. Set up input. Remove XXX comments that have been
24437 confirmed as correct.
24438
24439 * s/ms-w32.h (MULTI_KBOARD): Define.
24440
24441 * w32console.c (one_and_only_w32cons): Remove.
24442 (initialize_w32_display): Take terminal argument.
24443
24444 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24445 initialize_w32_display.
24446 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24447
24448 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24449
24450 * keyboard.c (discard_mouse_events): Discard it.
24451 (make_lispy_event): Translate it to a lisp event.
24452 (lispy_wheel_names): Add wheel-left and right events.
24453 (syms_of_keyboard): Enlarge wheel_syms.
24454
24455 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24456 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24457
24458 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24459
24460 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24461 from WM_MOUSEHWHEEL.
24462 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24463
24464 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24465 terminal.
24466
24467 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24468 keyboard for the terminal.
24469
24470 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24471
24472 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24473 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24474 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24475 and resume-tty-function to resume-tty-hook.
24476 (Fsuspend_tty, Fresume_tty): Use new names.
24477
24478 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24479
24480 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24481 if it starts with "n:".
24482
24483 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24484
24485 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24486
24487 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24488
24489 * frame.h:
24490 * frame.c (Qterm_environment_variable): Remove.
24491 (syms_of_frame): Don't init and staticpro it.
24492
24493 * callproc.c (getenv_internal): Remove special case for $TERM.
24494
24495 * callproc.c (Vinitial_environment): New variable.
24496 (set_initial_environment): Initialize it.
24497 (syms_of_callproc): Declare it.
24498 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24499 TERM under which a process runs is never related to the TERM in which
24500 Emacs is running.
24501
24502 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24503
24504 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24505 * s/darwin.h: ... do it here.
24506
24507 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24508
24509 * lisp.h (set_initial_environment): Rename from set_global_environment.
24510
24511 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24512 removed by mistake on the multi-tty branch.
24513
24514 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24515 (Fmodify_frame_parameters): Return a value.
24516
24517 * image.c (png_load): Comment-out var only used in commented-out code.
24518
24519 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24520 before passing it to mark_object.
24521
24522 * xfaces.c (internal_resolve_face_name): Return a value.
24523 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24524
24525 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24526 (x_icon): Comment-out var only used in commented-out code.
24527
24528 2007-08-29 Romain Francoise <romain@orebokech.com>
24529
24530 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24531 QUIT hasn't been provided.
24532
24533 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24534
24535 * callproc.c (child_setup, getenv_internal): Use the
24536 display-environment-variable and term-environment-variable frame params.
24537 (set_initial_environment): Initialise Vprocess_environment.
24538
24539 * config.in: Disable multi-keyboard support on a mac.
24540
24541 * frame.c (Qterm_environment_variable)
24542 (Qdisplay_environment_variable): New variables.
24543 (syms_of_frame): Intern and staticpro them.
24544 (Fmake_terminal_frame): Disable output method test.
24545
24546 * frame.h: Declare them here.
24547
24548 * macfns.c (x_set_mouse_color): Get rif from the frame.
24549 (x_set_tool_bar_lines): Don't use updating_frame.
24550 (mac_window): Add 2 new parameters for consistency with other systems.
24551 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24552 frame parameters following what is done in X11 and w32. Don't use
24553 FRAME_MAC_DISPLAY_INFO.
24554 (Fx_open_connection, start_hourglass): Remove window-system check.
24555 (x_create_tip_frame): Get the keyboard from the terminal.
24556
24557 * macmenu.c: Reorder includes.
24558 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24559
24560 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24561 terminal parameter.
24562 (x_clear_frame): Add a frame parameter.
24563 (note_mouse_movement): Get rif from the frame.
24564 (mac_term_init): Initialize the terminal.
24565 (mac_initialize): Make static and move terminal initialization ...
24566 (mac_create_terminal): ... to this new function.
24567
24568 * macterm.h (struct mac_display_info): Add terminal.
24569 (mac_initialize): Delete declaration.
24570
24571 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24572
24573 * sysdep.c: Comment out text after #endif.
24574
24575 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24576 is defined. Better initialize ttys in windows. Use terminal
24577 specific mouse_position_hook.
24578
24579 * termhooks.h (union display_info): Add mac_display_info.
24580
24581 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24582 Set the default minibuffer frame, window_system and the rest of the
24583 frame parameters following what is done in X11.
24584
24585 * w32term.c (w32_initialize): Make static.
24586
24587 * xselect.c (x_handle_selection_clear): Only access
24588 terminal->kboard when MULTI_KBOARD is defined.
24589
24590 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24591 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24592
24593 2007-08-29 Jason Rumney <jasonr@gnu.org>
24594
24595 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24596 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24597
24598 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24599 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24600
24601 * keyboard.c (restore_kboard_configuration): Only define when
24602 MULTI_KBOARD defined.
24603
24604 * makefile.w32-in: Update dependancies from Makefile.in.
24605 (OBJ1): Add terminal.$(O)
24606
24607 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24608 Don't define function body.
24609 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24610
24611 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24612
24613 * w32.c (request_sigio, unrequest_sigio): Remove.
24614
24615 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24616 (w32con_clear_frame, w32con_clear_end_of_line)
24617 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24618 (w32con_delete_glyphs, w32con_set_terminal_window)
24619 (scroll_line, w32_sys_ring_bell): Add frame arg.
24620 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24621 Add terminal arg.
24622 (PICK_FRAME): Remove.
24623 (w32con_write_glyphs): Use frame specific terminal coding.
24624 (one_and_only_w32cons): New global variable.
24625 (initialize_w32_display): Use it for storing hooks.
24626 (create_w32cons_output): New function.
24627
24628 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24629 arg a frame.
24630
24631 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24632 Set window_system.
24633 (x_set_tool_bar_lines): Don't use updating_frame.
24634 (Fx_create_frame): Set terminal and ref count.
24635 (Fx_open_connection): Remove window-system check.
24636
24637 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24638
24639 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24640 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24641 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24642 Add frame arg.
24643 (x_delete_terminal, w32_create_terminal): New functions.
24644 (w32_term_init): Create a terminal.
24645 (w32_initialize): Move terminal specific initialization to
24646 w32_create_terminal.
24647
24648 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24649 (w32_clear_rect, w32_clear_area): Use background from frame.
24650 (w32_display_info): Add terminal.
24651 (w32_sys_ring_bell, x_delete_display): Declare here.
24652
24653 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24654
24655 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24656
24657 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24658
24659 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24660 Fix get_named_tty calls for the controlling tty.
24661
24662 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24663
24664 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24665
24666 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24667
24668 * term.c (tty_insert_glyphs): Add missing first parameter.
24669
24670 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24671
24672 * buffer.c (Fbuffer_list, Fbury_buffer):
24673 Take frame->buried_buffer_list into account.
24674
24675 * cm.c (current_tty): New variable, for cmputc().
24676 (cmputc): Use it.
24677 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24678 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24679 (cmgoto): Add tty parameter. Pass it on to calccost().
24680 Use emacs_tputs() instead of tputs().
24681
24682 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24683 tputs().
24684 (current_tty): New variable, for cmputc().
24685 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24686
24687 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24688 (internal_condition_case, internal_condition_case_1)
24689 (internal_condition_case_2): Don't abort when x_catching_errors.
24690
24691 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24692 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24693 prevent crashes caused by bogus longjmps in read_char.
24694
24695 * keymap.h (Fset_keymap_parent): Add EXFUN.
24696
24697 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24698 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24699 Remove redundant definition.
24700
24701 * macfns.c (x_set_mouse_color, x_make_gc):
24702 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24703
24704 * w32term.c (x_free_frame_resources):
24705 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24706 (w32_initialize): Use the accessor macros for terminal characteristics.
24707
24708 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24709 Use the accessor macros for terminal characteristics.
24710 * msdos.c (internal_terminal_init): Use the accessor macros for
24711 terminal characteristics.
24712 (ScreenVisualBell, internal_terminal_init):
24713 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24714
24715 * termopts.h (no_redraw_on_reenter): Declare.
24716
24717 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24718 (mark_terminals, mark_ttys): Declare.
24719 (Fgarbage_collect): Call them.
24720 (mark_object): Mark buried_buffer_list.
24721
24722 * prefix-args.c: Include stdlib.h for exit.
24723
24724 * syssignal.h: Add comment.
24725
24726 * indent.c: Include stdio.h.
24727
24728 * window.h (Vinitial_window_system): Declare.
24729 (Vwindow_system): Delete declaration.
24730
24731 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24732
24733 * image.c (lookup_image): Don't initialize `c' until the xasserts
24734 have been run.
24735
24736 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24737 FRAME_FOREGROUND_PIXEL.
24738
24739 * print.c (print_preprocess): Don't lose print_depth levels while
24740 iterating.
24741
24742 * widget.c (update_from_various_frame_slots):
24743 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24744
24745 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24746 frames.
24747 (window_internal_height): Remove bogus make_number call.
24748 (init_window_once): Call make_terminal_frame with two zero parameters.
24749
24750 * fileio.c (Fread_file_name): Update comment.
24751
24752 * callint.c (Fcall_interactively):
24753 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24754 Make sure it is correctly unwound.
24755
24756 * xsmfns.c (x_session_close): New function.
24757
24758 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24759 Delete declarations.
24760
24761 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24762 (x_output): Remove background_pixel and foreground_pixel fields.
24763 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24764 (x_delete_device, x_session_close): Declare.
24765
24766 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24767 (read_filtered_event): Call `read_char' with a local
24768 `wrong_kboard_jmpbuf'.
24769
24770 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24771 Don't call single_kboard_state. Use FRAME_RIF.
24772
24773 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24774 systems.
24775
24776 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24777 (Fframe_with_environment, Fset_input_meta_mode)
24778 (Fset_quit_char): EXFUN.
24779 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24780 (init_sys_modes, reset_sys_modes): Update prototypes.
24781 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24782
24783 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24784 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24785 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24786 Delete declarations.
24787 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24788 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24789 New declarations.
24790
24791 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24792 already does that during init_display(). Call syms_of_keymap
24793 before syms_of_keyboard. Call `syms_of_terminal'.
24794 Call set_initial_environment, not set_process_environment.
24795 (shut_down_emacs): Call reset_all_sys_modes() instead of
24796 reset_sys_modes().
24797
24798 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24799 (internal_resolve_face_name, resolve_face_name_error): New functions.
24800 (resolve_face_name): Protect against loops and errors thrown by Fget.
24801 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24802 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24803
24804 * scroll.c: Replace CURTTY() with local variables throughout the
24805 file (where applicable).
24806 (calculate_scrolling, calculate_direct_scrolling)
24807 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24808 characteristics.
24809
24810 * keymap.c (Vfunction_key_map): Remove.
24811 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24812 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24813 (Vkey_translation_map): Remove.
24814 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24815 (Fdescribe_buffer_bindings)
24816 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24817 Update for terminal-local key-translation-map.
24818
24819 * Makefile.in (callproc.o): Update dependencies.
24820 (lisp, shortlisp): Add termdev.elc.
24821 (obj): Add terminal.o.
24822 (terminal.o): Add dependencies.
24823 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24824 (data.o, fns.o): Add termhooks.h dependency.
24825 (SOME_MACHINE_LISP): Add dnd.elc.
24826 (minibuf.o): Fix typo.
24827 Update dependencies.
24828
24829 * data.c (do_symval_forwarding, store_symval_forwarding)
24830 (find_symbol_value): Use the selected frame's keyboard, not
24831 current_kboard.
24832
24833 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24834 Vwindow_system.
24835
24836 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24837 Fmenu_bar_open.
24838 (syms_of_xmenu): Update defsubr.
24839 (mouse_position_for_popup, Fx_popup_menu)
24840 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24841 (set_frame_menubar, free_frame_menubar)
24842 (create_and_show_popup_menu, xmenu_show)
24843 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24844 an X frame.
24845
24846 * xselect.c (x_own_selection): Abort if not an X frame.
24847 (some_frame_on_display): Check if it is an X frame.
24848 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24849
24850 * coding.c: Include frame.h and termhooks.h.
24851 (terminal_coding, keyboard_coding): Delete.
24852 (Fset_terminal_coding_system_internal)
24853 (Fset_keyboard_coding_system_internal)
24854 (Fkeyboard_coding_system)
24855 (Fterminal_coding_system): Add a terminal parameter.
24856 Get terminal_coding from the terminal.
24857 (init_coding_once): Don't call setup_coding_system here.
24858
24859 * dispextern.h (set_scroll_region, turn_off_insert)
24860 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24861 (tty_clear_end_of_line, tty_setup_colors)
24862 (delete_tty, updating_frame)
24863 (produce_special_glyphs, produce_glyphs, write_glyphs)
24864 (insert_glyphs): Remove.
24865 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24866 (tty_turn_off_highlight, get_tty_size): Add declaration.
24867 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24868
24869 * frame.h (enum output_method): Add output_initial.
24870 (struct x_output): Delete.
24871 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24872 Access foreground_pixel and background_pixel directly from the frame.
24873 (tty_display): Delete.
24874 (struct frame): Add buried_buffer_list, foreground_pixel,
24875 background_pixel and terminal. Delete kboard.
24876 (union output_data): Add tty.
24877 (FRAME_KBOARD): Get the kboard from the terminal.
24878 (FRAME_INITIAL_P): New macro.
24879 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24880 (Qterm_environment_variable, Qdisplay_environment_variable)
24881 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24882 New declarations.
24883
24884 * termchar.h (tty_output, tty_display_info): New structures.
24885 (tty_list): Declare.
24886 (FRAME_TTY, CURTTY): New macros.
24887 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24888 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24889 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24890 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24891
24892 * callproc.c: Include frame.h and termhooks.h, for terminal
24893 parameters.
24894 (add_env): New function.
24895 (child_setup): Use it.
24896 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24897 (getenv_internal): Fix get_terminal_param call.
24898 (Fgetenv_internal, egetenv): Update doc.
24899 (syms_of_callproc): Initialize Vprocess_environment to nil.
24900 Register and initialize them. Remove obsolete defvars. Update doc
24901 strings.
24902 (child_setup): Handle Vlocal_environment_variables.
24903 (getenv_internal): Add terminal parameter.
24904 Handle Vlocal_environment_variables.
24905 (Fgetenv_internal): Add terminal parameter.
24906 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24907 environment in a frame (not terminal) parameter. Update doc strings.
24908 (set_initial_environment): Rename from set_global_environment.
24909 Store Emacs environment in initial frame parameter.
24910
24911 * xdisp.c (redisplay_internal): Update references to
24912 `previous_terminal_frame'.
24913 (display_mode_line, Fformat_mode_line): Replace calls to
24914 `push_frame_kboard' with `push_kboard'.
24915 (get_glyph_string_clip_rects): Add extra parentheses and
24916 braces to prevent compiler warnings.
24917 (calc_pixel_width_or_height): Add xassert to check that the
24918 frame is alive. Don't call `lookup_image' on a termcap frame.
24919 (message2_nolog, message3_nolog, redisplay_internal)
24920 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24921 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24922 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24923 (Fx_display_pixel_width, Fx_display_pixel_height)
24924 (Fx_display_planes, Fx_display_color_cells)
24925 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24926 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24927 (Fx_display_backing_store, Fx_display_visual_class)
24928 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24929 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24930
24931 * xfns.c (x_set_foreground_color x_set_background_color)
24932 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24933 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24934 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24935 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24936 terminal that is being deleted.
24937 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24938 frame parameter, and make sure it overrides any user-supplied setting.
24939 (Fx_close_connection, Fx_synchronize): Unify argument names with
24940 the rest of the DEFUNs.
24941
24942 * dispnew.c (Fsend_string_to_terminal): Update call to
24943 `get_tty_terminal'.
24944 (Fredraw_frame, Fsend_string_to_terminal)
24945 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24946 FRAME_TERMCAP_P and FRAME_TTY.
24947 (window_change_signal): Don't believe width/height values that are
24948 impossibly small.
24949 (Vinitial_window_system): Rename from Vwindow_system.
24950 (termscript, Wcm, rif): Delete.
24951
24952 * termhooks.h (struct terminal): New struct containing the
24953 previously global text display hooks and new members NAME,
24954 DELETED and PARAM_ALIST.
24955 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24956 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24957 (FRAME_RIF): New macros.
24958 (get_terminal_param, get_device): New declarations.
24959 (termscript): Delete declaration.
24960
24961 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24962 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24963 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24964 FRAME_FOREGROUND_PIXEL.
24965 (x_fully_uncatch_errors): Disable definition.
24966 (x_scroll_bar_expose): Fix reference to foreground pixel.
24967 (XTread_socket): Disable loop on all X displays.
24968 (x_delete_terminal): Don't set terminal->deleted and let
24969 delete_terminal delete the frames on the terminal.
24970 (x_delete_display): Doc update to reflect changes in
24971 delete_terminal.
24972 (x_display_info) <terminal>: Move member earlier in the struct.
24973 (deleting_tty): Remove old variable.
24974 (Fsuspend_tty): Call clear_tty_hooks.
24975 (Fresume_tty, init_tty): Call set_tty_hooks.
24976 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24977 errors on X frames.
24978 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24979 (handle_one_xevent): Initialize `f' to NULL.
24980 (x_delete_terminal, x_create_terminal): New functions.
24981 (XTset_terminal_modes, XTreset_terminal_modes)
24982 (XTread_socket, x_connection_closed, x_term_init)
24983 (x_term_init, x_delete_display): Add terminal parameter.
24984 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24985 X connections.
24986
24987 * frame.c: Include termchar.h.
24988 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24989 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24990 (Qdisplay_environment_variable): New vars.
24991 (Fframep): Deal with output_initial.
24992 (Fframe-live-p): Doc fix.
24993 (Fwindow-system): New function.
24994 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24995 (make_terminal_frame): Don't create frames on a terminal that is
24996 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24997 (store_frame_param): Check for found_for_frame before calling XFRAME.
24998 (Fmake_terminal_frame): Handle NULL tty names correctly.
24999 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25000 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25001 frames to refer to a deleted frame in their 'environment parameter.
25002 (Fframe_with_environment): New function.
25003 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25004 (get_future_frame_param): New function.
25005 (Fmake_terminal_frame): Use it.
25006 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25007
25008 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25009 * sysdep.c (reset_sys_modes): Update for renames.
25010
25011 * keyboard.c (tty_read_avail_input): New function.
25012 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25013 (syms_of_keyboard): Defsubr them.
25014 (Fset_input_meta_mode, Fset_quit_char): New functions.
25015 (Fset_input_mode): Split to above functions.
25016 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25017 parameter. Use it in call to `read_char'.
25018 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25019 Set wrong_kboard_jmpbuf correctly in recursive calls.
25020 Use current_kboard to access Vkeyboard_translate_table.
25021 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25022 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25023 Update longjmp invocations. Remember the original current_kboard,
25024 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25025 changes it. Comment out unnecessary calls to
25026 `record_single_kboard_state' and `any_kboard_state'.
25027 Update recursive calls.
25028 (wrong_kboard_jmpbuf): Remove global variable.
25029 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25030 Handle deleted interrupted_kboards correctly; that is a legal
25031 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25032 and read_char calls. Abort if interrupted_kboard died in read_char.
25033 (any_kboard_state, single_kboard_state)
25034 (push_frame_kboard): Remove function.
25035 (pop_kboard): Switch out of single_kboard mode if the kboard has
25036 been deleted. Remove unused variable. Help debugging by not
25037 changing current_kboard unnecessarily. Set current_kboard to the
25038 kboard of the selected frame when the stored kboard object has
25039 been deleted before pop_kboard.
25040 (temporarily_switch_to_single_kboard): Change first parameter to a
25041 frame pointer. Throw an error when caller wants to change kboards
25042 while in single_kboard mode. Don't push_kboard if we weren't in
25043 single kboard state. Don't pop_kboard if we popped into any
25044 kboard state.
25045 (restore_kboard_configuration): Abort if pop_kboard changed the
25046 kboard in single_kboard mode. Call pop_kboard only after setting
25047 up single_kboard mode.
25048 (Frecursive_edit): Switch to single_kboard mode only in nested
25049 command loops.
25050 (cmd_error, command_loop, command_loop_1, timer_check):
25051 Comment out unnecessary call to `any_kboard_state' and
25052 `record_single_kboard_state'.
25053 (delete_kboard): Exit single_kboard mode if we have just deleted
25054 that kboard. Use FRAME_KBOARD.
25055 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25056 `fatal_error_signal'.
25057 (record_single_kboard_state): Don't push_kboard if we weren't in
25058 single kboard state. Don't pop_kboard if we popped into any
25059 kboard state.
25060 (push_frame_kboard): Rename to push_kboard.
25061 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25062 (read_avail_input): Read input from all terminals.
25063 (mark_kboards): Also mark Vkeyboard_translate_table.
25064 (kbd_buffer_store_event_hold): Simplify condition.
25065 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25066 (Vkeyboard_translate_table): Move to struct kboard.
25067 (init_kboard): Initialize Vkeyboard_translate_table.
25068 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25069 Vkeyboard_translate_table. Update doc strings. Update docs of
25070 local-function-key-map and function-key-map.
25071
25072 * terminal.c: New file.
25073
25074 * term.c: Include errno.h.
25075 (Vring_bell_function, device_list, initial_device)
25076 (next_device_id, ring_bell, update_begin, update_end)
25077 (set_terminal_window, cursor_to, raw_cursor_to)
25078 (clear_to_end, clear_frame, clear_end_of_line)
25079 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25080 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25081 (syms_of_term): Move their initialization to terminal.c.
25082 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25083 (Ftty_display_color_cells)
25084 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25085 (clear_tty_hooks, set_tty_hooks)
25086 (init_tty, maybe_fatal): New functions.
25087 (Ftty_type): Return nil if terminal is not on a tty instead of
25088 throwing an error. Doc update.
25089 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25090 Doc update. Initialize new subrs and variables.
25091 (delete_tty): Use terminal->deleted.
25092 (tty_set_terminal_modes): Rename from set_terminal_modes.
25093 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25094 (set_scroll_region): Rename to `tty_set_scroll_region'.
25095 (turn_on_insert): Rename to `tty_turn_on_insert'.
25096 (turn_off_insert): Rename to `tty_turn_off_insert'.
25097 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25098 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25099 (toggle_highligh): Rename to `tty_toggle_highlight'.
25100 (background_highlight): Rename to `tty_background_highlight'.
25101 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25102 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25103 (tty_set_scroll_region, tty_background_highlight)
25104 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25105 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25106 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25107 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25108 Add static modifier.
25109 (tty_reset_terminal_modes, tty_set_terminal_window)
25110 (tty_set_scroll_region, tty_background_highlight)
25111 (tty_highlight_if_desired, tty_cursor_to)
25112 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25113 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25114 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25115 renames.
25116
25117 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25118
25119 * keyboard.c: Qrtl is new.
25120 (parse_tool_bar_item): Handle :rtl keyword.
25121 (syms_of_keyboard): Intern :rtl keyword.
25122
25123 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25124
25125 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25126 so no Lisp code is executed.
25127 (file_for_image, find_rtl_image): New functions.
25128 (xg_get_image_for_pixmap): Use file_for_image.
25129 (update_frame_tool_bar): If direction is RTL, use RTL image if
25130 defined. Use Gtk stock images if defined.
25131
25132 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25133
25134 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25135 for nonexistent or zero-width glyph in composition glyph.
25136
25137 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25138
25139 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25140
25141 * xdisp.c (Finvisible_p): New function.
25142 (syms_of_xdisp): defsubr it.
25143
25144 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25145
25146 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25147 Doc fixes.
25148
25149 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25150
25151 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25152
25153 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25154
25155 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25156 whether decoding has modified buffer contents.
25157
25158 2007-08-24 Jason Rumney <jasonr@gnu.org>
25159
25160 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25161 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25162 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25163 (init_svg_functions) [HAVE_NTGUI]: New function.
25164 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25165 (svg_load_image): Use them.
25166 (svg_load_image) [HAVE_NTGUI]: Implement background.
25167
25168 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25169
25170 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25171 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25172 (LIBX): Remove @RSVG_LIBS@.
25173 (LIBES): Add $(RSVG_LIBS).
25174
25175 * image.c (svg_load_image): Blend with specified background if exists.
25176 Use IMAGE_BACKGROUND. Add Mac OS Support.
25177
25178 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25179 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25180 Remove macros.
25181 [MAC_OSX] (socket_callback): Do nothing.
25182 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25183 ReceiveNextEvent.
25184 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25185 socket_callback.
25186 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25187
25188 2007-08-22 Glenn Morris <rgm@gnu.org>
25189
25190 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25191
25192 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25193
25194 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25195
25196 * image.c: Add support for SVG images. Some additional comments
25197 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25198 (svg_image_p): New function to test for SVG image.
25199 (svg_load): New function to load SVG image.
25200 (svg_load_image): New function, helper for svg_load.
25201 (Qsvg): New Lisp_object.
25202 (svg_keyword_index): New enum.
25203 (svg_format): New static `image_keyword' struct.
25204 (svg_type): New static `image_type' struct.
25205 (librsvg/rsvg.h): Include it.
25206
25207 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25208
25209 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25210
25211 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25212
25213 * lread.c (Qold_style_backquotes): New var.
25214 (syms_of_lread): Init and staticpro it.
25215 (load_warn_old_style_backquotes): New fun.
25216 (Fload): Use them to warn about old style backquotes.
25217 (end_of_file_error, Fload): Remove unused vars.
25218
25219 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25220
25221 * lread.c (Vold_style_backquotes): New var.
25222 (syms_of_lread): Init and export it to Elisp.
25223 (read1): Set it when we find an old-style (back)quote.
25224
25225 2007-08-22 Jason Rumney <jasonr@gnu.org>
25226
25227 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25228
25229 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25230
25231 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25232
25233 2007-08-19 Richard Stallman <rms@gnu.org>
25234
25235 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25236
25237 2007-08-19 Andreas Schwab <schwab@suse.de>
25238
25239 * alloc.c (pure): Round PURESIZE up.
25240
25241 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25242
25243 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25244 active frame.
25245
25246 2007-08-16 Richard Stallman <rms@gnu.org>
25247
25248 * eval.c (Fcommandp): Add parens to clarify.
25249
25250 * minibuf.c (Fall_completions): Use enum for type of table.
25251
25252 * emacs.c (USAGE2): Improve text.
25253
25254 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25255
25256 * term.c (tty_default_color_capabilities): Declare static
25257 variables in file scope, to avoid HPUX compiler problem.
25258
25259 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25260
25261 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25262 to gtk_toolbar_insert.
25263
25264 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25265
25266 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25267
25268 * insdel.c (reset_var_on_error): New fun.
25269 (signal_before_change, signal_after_change):
25270 Use it to reset (after|before)-change-functions to nil in case of error.
25271 Bind inhibit-modification-hooks to t.
25272 Don't bind (after|before)-change-functions to nil while they run.
25273
25274 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25275
25276 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25277 filling pixmap with stippled background.
25278
25279 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25280
25281 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25282 Don't use invisible frame as parent window for repositioning.
25283
25284 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25285
25286 * print.c (new_backquote_output): Rename from old_backquote_output.
25287 (print): Inverse its logic (according to its name) so as to match the
25288 behavior of new_backquote_flag in lread.c.
25289
25290 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25291
25292 * gmalloc.c (posix_memalign): New function.
25293
25294 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25295 ActivateControl/DeactivateControl here.
25296 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25297 frame-notice-user-settings is non-nil.
25298 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25299 for kEventParamFMFontStyle.
25300 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25301 mac_pass_command_to_system and mac_pass_control_to_system here.
25302 (XTread_socket): Call ActivateControl/DeactivateControl here.
25303 (XTread_socket) [TARGET_API_MAC_CARBON]:
25304 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25305 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25306 for window repositioning.
25307
25308 2007-08-08 Glenn Morris <rgm@gnu.org>
25309
25310 * Replace `iff' in doc-strings and comments.
25311
25312 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25313
25314 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25315
25316 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25317
25318 * fileio.c (Finsert_file_contents): Run format-decode and
25319 after_insert_file_functions on entire buffer when REPLACE is
25320 non-nil and inhibit modification_hooks and point_motion_hooks.
25321 For consistency, run after_insert_file_functions iff something
25322 got inserted. Move signal_after_change and update_compositions
25323 after code running after_insert_file_functions. Make sure that
25324 undo_list doesn't record intermediate steps of the decoding process.
25325
25326 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25327
25328 * emacs.c (main)
25329 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25330 Call malloc_enable_thread on interactive startup.
25331
25332 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25333 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25334 [USE_PTHREAD]: Conditionalize with it.
25335 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25336 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25337 New functions.
25338
25339 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25340
25341 * xdisp.c (redisplay_window): When restoring original buffer
25342 position, make sure it is still valid.
25343
25344 * image.c (png_load): Ignore png-supplied background color.
25345
25346 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25347
25348 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25349 Use kCFAbsoluteTimeIntervalSince1970.
25350
25351 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25352 New variable.
25353 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25354 event loop should be quit.
25355 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25356 Quit dialog event loop if quit_dialog_event_loop is set.
25357
25358 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25359 (Selection): New typedef. Use instead of ScrapRef.
25360 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25361 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25362 (mac_clear_selection): Rename from clear_scrap.
25363 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25364 scrap_has_target_type. All uses changed.
25365 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25366 (mac_selection_has_target_p): New functions.
25367 (mac_put_selection_value): Rename from put_scrap_string.
25368 (mac_get_selection_value): Rename from get_scrap_string.
25369 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25370 (put_scrap_private_timestamp, scrap_has_target_type)
25371 (get_scrap_private_timestamp): Remove functions.
25372 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25373 (x_own_selection, x_get_local_selection):
25374 Use mac_valid_selection_value_p.
25375 (x_own_selection): Don't use put_scrap_private_timestamp.
25376 Record OWNERSHIP-INFO into Vselection_alist instead.
25377 (x_get_local_selection): Don't check type if request is local.
25378 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25379 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25380
25381 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25382
25383 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25384 add comment explaining why.
25385
25386 2007-08-03 Richard Stallman <rms@gnu.org>
25387
25388 * fileio.c (Fvisited_file_modtime): Use make_time.
25389
25390 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25391
25392 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25393 build.
25394
25395 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25396
25397 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25398
25399 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25400
25401 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25402
25403 2007-07-30 Richard Stallman <rms@gnu.org>
25404
25405 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25406
25407 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25408
25409 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25410
25411 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25412
25413 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25414 remote default-directory.
25415
25416 * buffer.c (mode-line-format): Update doc string.
25417
25418 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25419
25420 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25421 scroll bar gap.
25422 (x_scroll_bar_create): Set bar->fringe_extended_p.
25423 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25424 on frame edge. Check fringe background extension. Don't clear
25425 extended fringe background area.
25426
25427 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25428 (w32_fill_area): Enclose multiple statements with do ... while (0).
25429
25430 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25431 Extend fringe background to scroll bar gap.
25432 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25433 Set bar->fringe_extended_p.
25434 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25435 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25436 background extension. Don't clear extended fringe background area.
25437
25438 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25439 New member fringe_extended_p.
25440
25441 2007-07-25 Glenn Morris <rgm@gnu.org>
25442
25443 * Relicense all FSF files to GPLv3 or later.
25444
25445 * COPYING: Switch to GPLv3.
25446
25447 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25448
25449 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25450
25451 * data.c (Finteractive_form): Check for the presence of an
25452 `interactive-form' symbol property more thoroughly.
25453
25454 * data.c (Finteractive_form): Use an `interactive-form' property if
25455 present, analogous to the function-documentation property.
25456
25457 2007-07-24 Jason Rumney <jasonr@gnu.org>
25458
25459 * w32fns.c (x_real_positions): Get real position from OS instead of
25460 calculating it.
25461
25462 2007-07-23 Jason Rumney <jasonr@gnu.org>
25463
25464 * filelock.c (current_lock_owner): Allow for @ sign in username.
25465
25466 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25467
25468 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25469 remote default-directory.
25470
25471 * buffer.c (mode-line-format): Describe above case in doc string.
25472
25473 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25474
25475 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25476 Define if not defined.
25477
25478 2007-07-18 Jason Rumney <jasonr@gnu.org>
25479
25480 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25481
25482 2007-07-18 Richard Stallman <rms@gnu.org>
25483
25484 * data.c (Fsetq_default): Doc fix.
25485
25486 * eval.c (Fsetq): Doc fix.
25487
25488 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25489
25490 * coding.c (Ffind_operation_coding_system):
25491 * eval.c (For, Fand): Doc fixes.
25492 Reported by Johan Bockgård.
25493
25494 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25495
25496 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25497
25498 * xterm.h: Declare x_ewmh_activate_frame.
25499
25500 * xterm.c (x_ewmh_activate_frame): New function.
25501 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25502
25503 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25504
25505 * window.c (Fdisplay_buffer): If largest or LRU window is the
25506 only window, split it even if it is not eligible for splitting.
25507 This restores the original behavior broken by the 2007-07-15
25508 change.
25509
25510 2007-07-17 Glenn Morris <rgm@gnu.org>
25511
25512 * abbrev.c (abbrev_check_chars): New function.
25513 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25514 Call abbrev_check_chars to check abbrev characters are word
25515 constituents. Doc fix.
25516
25517 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25518
25519 * process.c (Fstart_process, Fmake_network_process)
25520 (read_process_output): Fix up last changes.
25521
25522 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25523
25524 * makefile.w32-in (clean): Don't delete *~.
25525
25526 2007-07-16 Andreas Schwab <schwab@suse.de>
25527
25528 * window.c (Fdisplay_buffer): Use NILP.
25529 (Fset_window_scroll_bars): Likewise.
25530
25531 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25532
25533 * window.c (window_min_size_2): New function.
25534 (window_min_size_1, size_window, Fdisplay_buffer)
25535 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25536 windows without mode- or header-lines when window-min-height is
25537 too small.
25538 (size_window): Reset nodelete_p after testing it, following an
25539 earlier note by Kim F. Storm.
25540 (display_buffer): Do not set split_height_threshold to twice the
25541 value of window_min_height to avoid changing the value of a
25542 customizable variable. Rather explicitly check whether the
25543 height of the window that shall be splitted is at least as large
25544 as split_height_threshold.
25545 (Fwindow_full_width_p): New defun.
25546 (syms_of_window): Defsubr it.
25547
25548 * window.h: Add EXFUN for Fwindow_full_width_p.
25549
25550 2007-07-14 Jason Rumney <jasonr@gnu.org>
25551
25552 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25553
25554 2007-07-14 Richard Stallman <rms@gnu.org>
25555
25556 * eval.c (maybe_call_debugger): New function.
25557 (find_handler_clause): Use maybe_call_debugger.
25558 Call it when the handler says `debug'.
25559 Eliminate DEBUGGER_VALUE_PTR.
25560 (Fsignal): Eliminate debugger_value.
25561 (Qdebug): New variable.
25562 (syms_of_eval): Initialize it.
25563
25564 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25565
25566 * eval.c (Fprogn):
25567 * keyboard.c (Ftrack_mouse):
25568 * print.c (Fwith_output_to_temp_buffer):
25569 * window.c (Fsave_window_excursion): Doc fix.
25570
25571 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25572
25573 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25574
25575 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25576
25577 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25578 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25579 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25580 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25581 Remove unused encoding_carryover.
25582 * process.c: Adjust all functions accordingly.
25583
25584 2007-07-12 Richard Stallman <rms@gnu.org>
25585
25586 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25587
25588 2007-07-11 Jason Rumney <jasonr@gnu.org>
25589
25590 * makefile.w32-in (LIBS): Include OLE32.
25591
25592 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25593 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25594
25595 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25596
25597 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25598 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25599 from a Lisp_Object into a bare pointer.
25600 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25601 Adjust the code correspondingly.
25602
25603 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25604
25605 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25606 (term_show_mouse_face): Remove unused var `j'.
25607 (handle_one_term_event): Remove unused vars `i' and `j'.
25608 Don't cast return value of ttyname since it's not necessary.
25609
25610 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25611
25612 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25613 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25614
25615 * fns.c (map_char_table): Use an array of int for `indices' rather than
25616 an array of Lisp_Objects (which are only ever integers anyway).
25617 (Fmap_char_table): Update caller.
25618 * lisp.h: Update prototype.
25619 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25620 * fontset.c (Ffontset_info):
25621 * casetab.c (set_case_table): Update callers.
25622
25623 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25624
25625 * keymap.c (struct accessible_keymaps_data)
25626 (struct where_is_internal_data): New structures.
25627 (accessible_keymaps_1, where_is_internal_1): Use them to change
25628 interface to adhere to the one used by map_keymap.
25629 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25630 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25631
25632 * keymap.h (map_keymap_function_t): More informative prototype.
25633
25634 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25635
25636 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25637 (looking_at_1): Don't change search_regs and last_thing_searched
25638 if `inhibit-changing-match-data' is non-nil.
25639 (string_match_1, search_buffer, set_search_regs): Likewise.
25640 (syms_of_search): Add Lisp level definition for
25641 `inhibit-changing-match-data' and set it to nil.
25642 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25643 start and end of the match, instead of using values in search_regs.
25644
25645 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25646
25647 * minibuf.c (Fcompleting_read): New value `confirm-only'
25648 for `require-match'.
25649
25650 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25651
25652 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25653 part of the 2007-06-27 change to syms_of_fileio.
25654
25655 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25656
25657 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25658 Check WINDOWP before using XWINDOW. Consolidate return statements.
25659
25660 2007-06-27 Richard Stallman <rms@gnu.org>
25661
25662 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25663
25664 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
25665
25666 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25667
25668 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25669
25670 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25671 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25672 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25673 (_free_internal, memalign): Use them.
25674 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25675 Initialize to PTHREAD_MUTEX_INITIALIZER.
25676 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25677 (morecore_nolock): Rename from morecore. All uses changed.
25678 Use only nolock versions of internal allocation functions.
25679 (_malloc_internal_nolock, _realloc_internal_nolock)
25680 (_free_internal_nolock): New functions created from
25681 _malloc_internal, _realloc_internal, and _free_internal.
25682 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25683 Copy hook value to automatic variable before its use.
25684 (memalign): Copy hook value to automatic variable before its use.
25685
25686 2007-06-26 Kenichi Handa <handa@m17n.org>
25687
25688 * coding.c (Ffind_operation_coding_system): Docstring improved.
25689 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25690
25691 2007-06-25 David Kastrup <dak@gnu.org>
25692
25693 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25694 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25695 cater for additional parameter.
25696
25697 * keymap.h: Adjust number of parameters to `current-active-maps'.
25698
25699 * doc.c (Fsubstitute_command_keys): Adjust call of
25700 `current-active-maps'.
25701
25702 2007-06-25 David Kastrup <dak@gnu.org>
25703
25704 * callint.c (Fcall_interactively): Make the parsing of interactive
25705 specs somewhat more readable.
25706
25707 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25708
25709 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25710 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25711 if extended background has already been filled.
25712
25713 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25714
25715 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25716 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25717
25718 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25719 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25720 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25721 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25722 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25723 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25724 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25725 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25726 Run timers during dialog popup.
25727 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25728
25729 2007-06-21 Jason Rumney <jasonr@gnu.org>
25730
25731 * image.c (convert_mono_to_color_image): Swap fore and background.
25732
25733 2007-06-20 Jason Rumney <jasonr@gnu.org>
25734
25735 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25736 (w32_free_bdf_font): Unmap memory not handle.
25737
25738 2007-06-20 Sam Steingold <sds@gnu.org>
25739
25740 * gmalloc.c (__morecore): Fix the declaration to comply with the
25741 definition.
25742
25743 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
25744
25745 * w32term.c (w32_delete_display): Remove leftover declaration.
25746 (w32_define_cursor, w32_initialize): Make static.
25747
25748 * w32.c (_wsa_errlist): Fix typo in error message.
25749 (init_environment): Ignore any environment variable from the
25750 registry having a null value.
25751
25752 2007-06-20 Glenn Morris <rgm@gnu.org>
25753
25754 * Makefile.in (LIBGIF): Default to -lgif.
25755
25756 2007-06-17 Jason Rumney <jasonr@gnu.org>
25757
25758 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25759 unicode strings.
25760
25761 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
25762
25763 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25764 Fix typo in docstring.
25765
25766 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25767
25768 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25769 and their keybindings.
25770
25771 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25772
25773 * composite.c (update_compositions): Fix last fix.
25774
25775 2007-06-14 Jason Rumney <jasonr@gnu.org>
25776
25777 * w32.c (get_process_times_fn): New function pointer.
25778 (globals_of_w32): Intialize it if present in kernel32.dll.
25779 (w32_get_internal_run_time): New function.
25780
25781 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25782
25783 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25784
25785 * composite.c (update_compositions): Check the validness of
25786 compositions.
25787
25788 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25789
25790 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25791 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25792
25793 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25794 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25795
25796 * macgui.h (USE_MAC_TOOLBAR): New define.
25797
25798 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25799 Return immediately unless popup is activated.
25800
25801 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25802 background to scroll bar gap.
25803 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25804 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25805 scroll bars on frame edge. Check fringe background extension.
25806 Don't clear extended fringe background area.
25807 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25808 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25809 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25810 [USE_MAC_TOOLBAR]: New macros.
25811 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25812 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25813 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25814 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25815 [USE_MAC_TOOLBAR]: New functions.
25816 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25817 manually if previous repositioning has failed.
25818 (mac_handle_keyboard_event): Use precomputed event kind.
25819 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25820 as tool bar item click. Handle mouse movement over tool bar items.
25821
25822 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25823 toolbar_win_gravity.
25824 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25825 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25826 Add externs.
25827
25828 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25829 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25830
25831 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25832
25833 * image.c (search_image_cache): Remove unused variable.
25834
25835 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25836
25837 * xfns.c, xmenu.c: Link to xaw3d if available.
25838
25839 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25840
25841 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25842 frame_foreground and frame_background.
25843
25844 * image.c (lookup_image): Save frame foreground and background colors.
25845 (search_image_cache): Check if saved and current frame colors match.
25846
25847 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25848
25849 * regex.c (regex_compile): Remove the `regnum' counter.
25850 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25851
25852 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25853
25854 * term.c: Include intervals.h to declare Fget_text_property.
25855
25856 2007-06-10 Jason Rumney <jasonr@gnu.org>
25857
25858 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25859
25860 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25861
25862 * callint.c (Fcall_interactively):
25863 * editfns.c (Fdelete_and_extract_region):
25864 * fileio.c (Fread_file_name):
25865 * fns.c (Fmapconcat):
25866 * keyboard.c (cmd_error_internal):
25867 * keymap.c (Fkey_description):
25868 * lread.c (openp):
25869 * minibuf.c (read_minibuf):
25870 * search.c (wordify):
25871 * sunfns.c (sel_read):
25872 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25873 * xfns.c (x_default_scroll_bar_color_parameter):
25874 * xmenu.c (menu_help_callback):
25875 * xselect.c (Fx_get_atom_name):
25876 * xterm.c (x_term_init): Use empty_unibyte_string.
25877
25878 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25879
25880 * alloc.c (init_strings): Initialize canonical empty strings.
25881 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25882 canonical empty string when the requested size is 0.
25883
25884 * emacs.c (empty_unibyte_string): Rename from empty_string.
25885 (empty_multibyte_string): New canonical empty string.
25886 (syms_of_emacs): Don't initialize empty_string.
25887
25888 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25889 string, if appropriate.
25890 (empty_unibyte_string, empty_multibyte_string): New externs.
25891 (empty_string): Remove extern.
25892
25893 * lread.c (syms_of_lread): Use empty_unibyte_string.
25894
25895 2007-06-07 Jason Rumney <jasonr@gnu.org>
25896
25897 * s/ms-w32.h: Don't define HAVE_TZNAME.
25898
25899 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25900
25901 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25902
25903 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25904
25905 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25906 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25907
25908 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25909 Don't call next handler.
25910 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25911 Remove argument. Install handler to application.
25912 (set_frame_menubar): Don't change deep_p.
25913 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25914 FRAME_OUTER_TO_INNER_DIFF_Y.
25915 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25916 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25917 [HAVE_DIALOGS]: New macros.
25918 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25919 Use them.
25920 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25921
25922 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25923 init_service_handler. All callers changed. Return OSStatus value.
25924
25925 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25926 All callers changed so as not to call SetPortWindowPort.
25927 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25928 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25929 mac_draw_string_common.
25930 (mac_draw_image_string_qd): Likewise.
25931 (mac_draw_string_common): Use them. Add INLINE.
25932 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25933 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25934 GetGlobalMouse.
25935 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25936 and FRAME_OUTER_TO_INNER_DIFF_Y.
25937 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25938 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25939 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25940 repositioning window to mac_handle_window_event.
25941 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25942 saving window location to mac_handle_window_event
25943 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25944 (install_menu_target_item_handler): Remove argument in extern.
25945 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25946 Also accept command events.
25947 (do_keystroke): New function created from XTread_socket.
25948 (init_command_handler): Remove functions.
25949 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25950 and save window location by kEventWindowShowing and kEventWindowHiding
25951 handlers here. Don't call next handler for window state change and
25952 focus events.
25953 (mac_handle_application_event, mac_handle_keyboard_event)
25954 [TARGET_API_MAC_CARBON]: New functions.
25955 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25956 kEventWindowShowing and kEventWindowHiding events. Move installation
25957 of mouse, font, text input and menu target item handlers to
25958 install_application_handler.
25959 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25960 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25961 New function.
25962 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25963 Register it.
25964 (XTread_socket) [TARGET_API_MAC_CARBON]:
25965 Consolidate SendEventToEventTarget calls.
25966 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25967 Move application activation handler to mac_handle_application_event.
25968 Move keyboard handler to mac_handle_keyboard_event.
25969 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25970 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25971 init_command_handler. Call install_application_handler.
25972
25973 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25974 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25975
25976 2007-06-07 Glenn Morris <rgm@gnu.org>
25977
25978 * emacs.c (main): Use `emacs-copyright' in --version output.
25979
25980 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
25981
25982 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25983
25984 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25985
25986 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25987
25988 * macgui.h: Replace WindowPtr with WindowRef.
25989
25990 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25991 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25992 Replace ControlHandle with ControlRef.
25993 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25994
25995 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25996 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25997 Replace ControlHandle with ControlRef.
25998 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25999 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26000
26001 * macterm.h (struct scroll_bar): Rename member control_handle_low
26002 and control_handle_high to control_ref_low and control_ref_high.
26003 All uses changed.
26004 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26005 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26006 respectively. All uses changed.
26007 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26008 (install_window_handler, remove_window_handler): Replace WindowPtr
26009 with WindowRef in externs.
26010
26011 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
26012
26013 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26014
26015 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
26016
26017 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26018
26019 * frame.c (Fmouse_position, Fmouse_pixel_position):
26020 Condition on HAVE_GPM too.
26021
26022 * term.c (term_mouse_highlight): Remove unused variables.
26023 (Fterm_open_connection): Set gpm_zerobased to 1.
26024 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26025 Use zero based co-ordinates.
26026 (handle_one_term_event): Report a drag as mouse movement too.
26027
26028 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26029
26030 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
26031
26032 * image.c (search_image_cache): New function. Require background
26033 color match if background color is unspecified in the image spec.
26034 (uncache_image, lookup_image): Use it.
26035
26036 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
26037
26038 * window.c (Fshrink_window): Reflow docstring.
26039
26040 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
26041
26042 * Version 22.1 released.
26043
26044 2007-06-01 Richard Stallman <rms@gnu.org>
26045
26046 * xfns.c (x_encode_text): Add GCPRO.
26047
26048 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26049
26050 * xfns.c (x_set_name_internal): Save encoded name before
26051 x_encode_text in case string data is relocated.
26052
26053 2007-05-31 Richard Stallman <rms@gnu.org>
26054
26055 * buffer.c (syms_of_buffer): Doc fix.
26056
26057 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26058
26059 * sysdep.c (init_sys_modes): Add rather than replace with
26060 O_NONBLOCK.
26061
26062 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26063 term_mouse_moveto.
26064
26065 * termhooks.h (term_mouse_moveto): New extern.
26066
26067 * term.c (mouse_face_window): Rename...
26068 (Qmouse_face_window): ...to this.
26069 (term_show_mouse_face, term_clear_mouse_face)
26070 (term_mouse_highlight): Use Qmouse_face_window.
26071 (term_mouse_moveto): New function.
26072 (term_mouse_position): Make it work.
26073 (syms_of_term): Uncomment assignment to mouse_position_hook.
26074 Staticpro Qmouse_face_window.
26075
26076 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26077
26078 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26079 around current_column call.
26080
26081 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26082
26083 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26084 * xdisp.c (next_element_from_buffer):
26085 * window.c (delete_window):
26086 * term.c (term_mouse_highlight):
26087 * msdos.c (getdefdir):
26088 * macterm.c (mac_create_bitmap_from_bitmap_data)
26089 (init_font_name_table):
26090 * fns.c (Fsxhash):
26091 * data.c (Fmake_local_variable):
26092 * ccl.c (ccl_driver): Likewise.
26093
26094 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26095
26096 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26097 Call mac_wakeup_from_rne on window size change.
26098
26099 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26100
26101 * image.c (uncache_image): Fix typo.
26102
26103 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26104
26105 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26106
26107 2007-05-22 Richard Stallman <rms@gnu.org>
26108
26109 * xterm.c (x_connection_closed): Remove NO_RETURN.
26110
26111 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26112
26113 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26114
26115 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26116
26117 * image.c (uncache_image): New function.
26118 (Fimage_refresh): New function.
26119
26120 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26121
26122 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26123
26124 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26125
26126 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26127 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26128
26129 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26130
26131 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26132 conditional on [HAVE_GPM_H].
26133
26134 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26135
26136 * syntax.c (skip_chars): Update syntax-table only after we checked that
26137 the new location is valid.
26138
26139 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26140
26141 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26142 mac_get_window_bounds.
26143
26144 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26145
26146 * Makefile.in (LIBGPM): Allow it to be set from configure.
26147 If set then link Emacs with it.
26148
26149 * config.in: Regenerate.
26150
26151 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26152 New externs.
26153
26154 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26155 Include gpm.h.
26156 (handle_one_term_event, term_gpm): New externs.
26157
26158 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26159 and allow it to be interrupted by SIGIO.
26160
26161 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26162 (wait_reading_process_output): Wait on gpm_fd too.
26163 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26164 (add_gpm_wait_descriptor_called_flag): New variable.
26165 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26166
26167 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26168 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26169 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26170 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26171 (make_lispy_event): Add case GPM_CLICK_EVENT.
26172 (read_avail_input): Handle mouse input.
26173
26174 * term.c (write_glyphs_with_face): New function.
26175 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26176 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26177 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26178 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26179 (last_mouse_x, last_mouse_y): New variables.
26180 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26181 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26182 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26183 (Fterm_close_connection): New functions.
26184 (term_init): Initialise mouse_face_window.
26185
26186 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26187
26188 * xdisp.c (redisplay_window): If first window line is a
26189 continuation line, recompute the new window start instead of
26190 recentering.
26191
26192 2007-05-18 Glenn Morris <rgm@gnu.org>
26193
26194 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26195 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26196
26197 2007-05-17 Glenn Morris <rgm@gnu.org>
26198
26199 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26200
26201 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26202
26203 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26204 dead key repeat and up events.
26205
26206 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26207
26208 * image.c (pbm_load): Check image size for monochrome pbm.
26209
26210 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26211
26212 * xterm.c (XTread_socket): Revert last change.
26213
26214 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26215
26216 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26217
26218 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26219
26220 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26221
26222 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26223 mixup (YAILOM).
26224
26225 2007-05-07 Andreas Schwab <schwab@suse.de>
26226
26227 * keymap.c (Flookup_key): Fix typo in last change.
26228
26229 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26230
26231 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26232 mapping for unibyte strings.
26233
26234 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26235
26236 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26237 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26238
26239 2007-04-29 Richard Stallman <rms@gnu.org>
26240
26241 * insdel.c (replace_range): For undo, record insertion first.
26242
26243 2007-04-29 Andreas Schwab <schwab@suse.de>
26244
26245 * lisp.h (VECSIZE): Use OFFSETOF.
26246
26247 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26248
26249 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26250 disabled lines.
26251
26252 2007-04-28 Richard Stallman <rms@gnu.org>
26253
26254 * lread.c (read_escape): In a string, \s is always space.
26255
26256 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26257
26258 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26259
26260 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26261 submenu for menu bar items.
26262
26263 See ChangeLog.10 for earlier changes.
26264
26265 ;; Local Variables:
26266 ;; coding: utf-8
26267 ;; add-log-time-zone-rule: t
26268 ;; End:
26269
26270 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26271
26272 This file is part of GNU Emacs.
26273
26274 GNU Emacs is free software: you can redistribute it and/or modify
26275 it under the terms of the GNU General Public License as published by
26276 the Free Software Foundation, either version 3 of the License, or
26277 (at your option) any later version.
26278
26279 GNU Emacs is distributed in the hope that it will be useful,
26280 but WITHOUT ANY WARRANTY; without even the implied warranty of
26281 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26282 GNU General Public License for more details.
26283
26284 You should have received a copy of the GNU General Public License
26285 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26286
26287 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40