a92fc774583ca103a507bf7b0963c9ffbc2bf5a9
[bpt/emacs.git] / src / ChangeLog
1 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Remove extern declarations in .c files, .h files have them.
4 * xterm.c:
5 * xdisp.c:
6 * process.c:
7 * msdos.c:
8 * image.c:
9 * gtkutil.c:
10 * fileio.c:
11 * eval.c: Remove declarations.
12
13 * frame.c (frame_params): Make const.
14
15 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
16
17 * emacs.c (emacs_copyright, emacs_version): Make static.
18 (Vinitial_window_system, Vauto_save_list_file_name)
19 (Vinhibit_redisplay): Remove declarations.
20 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
21 for AIX.
22
23 Use const for some arrays and functions.
24 * xterm.h (xg_set_icon_from_xpm_data):
25 * xfns.c (xg_set_icon_from_xpm_data):
26 * term.c (fkeys):
27 * keyboard.c (lispy_accent_keys, lispy_function_keys)
28 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
29 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
30 (frame.c frame_parms):
31 * emacs-icon.h (gnu_xpm_bits):
32 * callint.c (callint_argfuns): Use const.
33
34 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
35
36 * sysdep.c: Move include term.h last of includes (Bug#6812).
37
38 2010-08-06 Eli Zaretskii <eliz@gnu.org>
39
40 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
41
42 * msdos.c (IT_display_cursor): Log cursor position on termscript.
43
44 * .gdbinit (pgx): Display the avoid_cursor_p flag.
45
46 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
47
48 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
49
50 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
51
52 * xterm.h (x_get_focus_frame): Declare.
53
54 * keyboard.h (poll_for_input_1): Unconditionally declare.
55
56 * nsterm.h (x_set_menu_bar_lines): Declare.
57
58 * window.c: Don't include menu.h, it depends on lots of other .h-files.
59
60 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
61
62 * window.c: Include menu.h.
63
64 * unexmacosx.c (print_region_list, print_regions)
65 (build_region_list, find_emacs_zone_regions)
66 (unexec_regions_merge, read_load_commands, dump_it)
67 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
68
69 * term.c: Check HAVE_SYS_IOCTL_H.
70
71 * sysdep.c: Check HAVE_TERM_H.
72
73 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
74
75 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
76 (ns_ring_bell, ns_defined_color, hide_hourglass)
77 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
78 Convert to ANSI C prototypes.
79 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
80 before code.
81
82 * nsterm.h : Include sysselect.h.
83 (x_sync, x_get_focus_frame, x_set_mouse_position)
84 (x_set_mouse_pixel_position, x_make_frame_visible)
85 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
86 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
87 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
88 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
89 Declare.
90
91 * nsmenu.m (popup_activated, name_is_separator)
92 (syms_of_nsmenu): Convert to ANSI C prototypes.
93 (runMenuAt): Prototypes and move declarations before code.
94
95 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
96
97 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
98 prototypes.
99
100 * nsfns.m (have_menus_p, ns_display_info_for_name)
101 (x_set_cursor_type, ns_appkit_version_str)
102 (ns_appkit_version_int, ns_do_applescript)
103 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
104 (syms_of_nsfns): Convert to ANSI C prototypes.
105
106 * menu.h (x_set_menu_bar_line): Declare.
107 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
108
109 * lisp.h (fmod_float): Declare.
110
111 * image.c (xpm_scan, xpm_make_color_table_v)
112 (xpm_put_color_table_v, xpm_get_color_table_v)
113 (xpm_make_color_table_h, xpm_put_color_table_h)
114 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
115 (xpm_load): Convert to ANSI C prototypes.
116
117 * emacs.c: Include nsterm.h if HAVE_NS.
118
119 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
120
121 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
122
123 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
124 subprocesses, only MSDOS does not define HAVE_SOCKETS.
125 (socket_options): Use const char* for name.
126
127 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
128
129 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
130
131 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
132 Don't declare xmalloc_widget_value and digest_single_submenu.
133
134 * w32font.c (Qlatin): Remove declaration.
135
136 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
137
138 * dired.c (compile_pattern): Restore declaration.
139
140 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
141
142 Remove extern declarations in .c files, .h files have them.
143 * data.c:
144 * dired.c:
145 * editfns.c:
146 * filelock.c:
147 * fns.c:
148 * font.c:
149 * fontset.c:
150 * frame.c:
151 * fringe.c:
152 * ftfont.c:
153 * gtkutil.c:
154 * indent.c:
155 * keyboard.c:
156 * keymap.c:
157 * lread.c:
158 * menu.c:
159 * print.c:
160 * search.c:
161 * sound.c:
162 * window.c:
163 * xdisp.c:
164 * xfaces.c:
165 * xfns.c:
166 * xfont.c:
167 * xftfont.c:
168 * xmenu.c:
169 * xterm.c: Remove declarations.
170
171 Cleanup syssignal.h.
172 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
173 (main_thread): Move down to remove #ifdef.
174 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
175 Remove conditional definition following unconditional ones.
176
177 * lisp.h: Remove HAVE_SHM code, unused.
178 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
179 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
180 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
181 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
182 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
183 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
184 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
185 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
186 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
187 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
188 (Qwindow_scroll_functions, Vafter_load_alist)
189 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
190 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
191 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
192 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
193 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
194 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
195 (initial_argv, last_nonmenu_event, load_in_progress)
196 (noninteractive_need_newline, scroll_margin): Add declarations.
197
198 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
199 declarations, menu.h has them.
200 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
201 (Vinput_method_function, Qinput_method_function)
202 (Qevent_symbol_element_mask, last_event_timestamp):
203 * dispextern.h (Voverflow_newline_into_fringe):
204 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
205 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
206 (syms_of_w32font, syms_of_nsfont):
207 * fontset.h (find_font_encoding, Qlatin):
208 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
209 (Vtool_bar_mode, set_frame_menubar):
210 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
211 * xterm.h (Qx_gtk_map_stock):
212 * keymap.h (meta_prefix_char): Add declarations.
213
214 * term.c: Remove dead code.
215
216 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
217 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
218 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
219 which is what was there before BSD_PGRPS was removed.
220
221 2010-08-05 Eli Zaretskii <eliz@gnu.org>
222
223 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
224
225 * unexcoff.c: Renamed from unexec.c.
226
227 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
228
229 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
230
231 2010-08-03 Johan Bockgård <bojohan@gnu.org>
232
233 * data.c (Flocal_variable_p): Handle variable aliases correctly.
234 (Bug#6744)
235
236 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
237
238 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
239 to TRUE if depth of screen is < 16.
240
241 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
242 USE_GTK_TOOLTIP.
243 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
244 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
245 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
246 USE_GTK_TOOLTIP.
247 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
248
249 * xterm.h (USE_GTK_TOOLTIP): New define.
250 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
251
252 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
253 to Control-D (Bug#6771).
254
255 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
256
257 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
258 Wording by Drew Adams <drew.adams@oracle.com>.
259
260 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
261
262 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
263 ttip_lbl.
264
265 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
266 calling gtk_widget_queue_draw.
267 (x_free_frame_resources): Call xg_free_frame_widgets.
268
269 * xfns.c (x_gtk_use_system_tooltips): New variable.
270 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
271 new gtkutil tooltip functions to show the tooltip.
272 (Fx_hide_tip): Call xg_hide_tooltip.
273 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
274
275 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
276 (xg_show_tooltip, xg_hide_tooltip): Declare.
277
278 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
279 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
280 New functions.
281 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
282 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
283 Remove code that is commented out.
284
285 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
286
287 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
288
289 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
290
291 * xselect.c (x_own_selection): Use list4.
292
293 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
294
295 * buffer.c (Qwindow): Do not define, already defined in data.c.
296 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
297
298 2010-07-29 Chad Brown <yandros@mit.edu>
299
300 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
301 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
302 * config.in: Undef HAVE_DIRENT_H.
303 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
304 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
305
306 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
307
308 Rename s/usg5-4.h -> s/usg5-4-common.h.
309 * s/usg5-4.h: Rename file to ...
310 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
311 * s/unixware.h:
312 * s/sol2-6.h:
313 * s/irix6-5.h: Update includes accordingly.
314
315 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
316
317 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
318
319 * xterm.h (struct x_output): Add toolbar_top_height,
320 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
321 Remove toolbar_height.
322 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
323 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
324 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
325 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
326
327 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
328
329 * xfns.c (x_set_tool_bar_position): New function.
330 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
331 (x_frame_parm_handlers): Add x_set_tool_bar_position.
332 (syms_of_xfns): If USE_GTK, provide move-toolbar.
333
334 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
335 and FRAME_TOOLBAR_LEFT_WIDTH.
336
337 * gtkutil.h (xg_change_toolbar_position): Declare.
338
339 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
340 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
341 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
342 (xg_create_frame_widgets): Create a hobox for placing widgets
343 vertically. Use gtk_box_pack_start.
344 (xg_height_or_width_changed): Renamed from xg_height_changed.
345 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
346 (xg_update_frame_menubar, free_frame_menubar): Change to
347 xg_height_or_width_changed.
348 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
349 size correctly. Remove hardcoded 4, instead use handlebox size -
350 toolbar size.
351 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
352 size correctly. Use handlebox size + toolbar size as additional size.
353 (xg_pack_tool_bar): POS is a new parameter.
354 Set orientation of tool bar based on pos.
355 Only make handlebox_widget if NULL.
356 Check if tool bar goes to vbox or hbox depending on pos.
357 (xg_update_tool_bar_sizes): New function.
358 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
359 height, call xg_update_tool_bar_sizes instead.
360 (free_frame_tool_bar): Remove from hbox or vbox depending on
361 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
362 (xg_change_toolbar_position): New function.
363
364 * frame.h (struct frame): Add tool_bar_position.
365 (Qbottom): Declare.
366
367 * frame.c (Qtool_bar_position): New variable.
368 (make_frame): Set tool_bar_position to Qtop.
369 (frame_parms): Add tool-bar-position.
370 (x_report_frame_params): Store tool_bar_position.
371 (x_set_fringe_width): Reset wm size hint after fringe changes.
372
373 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
374
375 Make lisp_time_argument declaration work on all systems.
376 * lisp.h (lisp_time_argument): Move declaration ...
377 * systime.h (lisp_time_argument): ... here
378 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
379
380 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
381
382 * vm-limit.c (POINTER): Add typedef for it.
383 (start_of_data): Change return type from POINTER to char *.
384
385 * frame.h (Qtty_color_mode): Move declaration out of ifdef
386 HAVE_WINDOW_SYSTEM.
387
388 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
389
390 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
391 Remove reference to __osf__, unused.
392
393 * mem-limits.h: Remove duplicated includes.
394 (NULL): Remove definition, unused.
395 (POINTER): Remove definition.
396 (start_of_data): Use char* in prototype, as the function
397 definition does.
398
399 Remove extern declarations from .c files, and them to .h files.
400 * keyboard.h (Qhelp_echo, waiting_for_input)
401 (input_available_clear_time, ignore_mouse_drag_p)
402 (Vdouble_click_time, real_this_command, Vthis_original_command):
403 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
404 (Voverriding_local_map_menu_flag):
405 * lisp.h (Qinteractive_form, use_file_dialog)
406 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
407 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
408 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
409 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
410 (Qfunction, debug_on_next_call, Qfield)
411 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
412 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
413 (Qfile_directory_p, Qinsert_file_contents)
414 (Qcompletion_ignore_case, Qcompletion_ignore_case)
415 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
416 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
417 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
418 (Qminibuffer_prompt)
419 (Vtemporary_file_directory,char_ins_del_vector, Qface):
420 * xterm.h (gray_bitmap_width, gray_bitmap_height)
421 (gray_bitmap_bits, xic_create_fontsetname):
422 * coding.h (Vtranslation_table_for_input): Add extern declarations.
423
424 * xsmfns.c (Vuser_login_name):
425 * xrdb.c (Vdouble_click_time):
426 * xfaces.c (xic_create_fontsetname):
427 * w32select.c (waiting_for_input):
428 * print.c (minibuffer_auto_raise):
429 * msdos.c (Qhelp_echo):
430 * macros.c (real_this_command):
431 * keymap.c (Voverriding_local_map):
432 * xterm.c (poll_for_input_1, gray_bitmap_width)
433 (gray_bitmap_height, gray_bitmap_bits;
434 * xmenu.c ( Voverriding_local_map)
435 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
436 (use_file_dialog, Xt_app_con):
437 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
438 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
439 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
440 (Qtool_bar_lines, ignore_mouse_drag_p):
441 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
442 (Qrear_nonsticky, nconc2):
443 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
444 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
445 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
446 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
447 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
448 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
449 (gc_in_progress):
450 * doc.c (Voverriding_local_map, Qremap):
451 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
452 (Vcompletion_regexp_list):
453 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
454 (Qcompletion_ignore_case):
455 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
456 (Vhistory_length, Vthis_original_command, real_this_command)
457 (Qface, Qminibuffer_prompt, history_delete_duplicates):
458 * image.c (Qrisky_local_variable):
459 * fontset.c (QCname):
460 * fns.c (minibuffer_auto_raise, QCname):
461 * dispnew.c (char_ins_del_cost):
462 * composite.c (font_fill_lglyph_metrics):
463 * cmds.c (Qface, Vtranslation_table_for_input):
464 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
465 * ccl.c (charset_unicode):
466 * callproc.c (Vtemporary_file_directory):
467 * buffer.c (emacs_strerror): Remove extern declarations.
468
469 * data.c (Qwindow): Make non-static, used from other files too.
470 * frame.c (validate_x_resource_name): Remove shadow definition for i.
471
472 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
473 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
474 * s/usg5-4.h (COFF):
475 * s/template.h:
476 * s/msdos.h (COFF, NO_REMAP):
477 * s/ms-w32.h (NO_REMAP):
478 * s/hpux10-20.h (NO_REMAP):
479 * m/sparc.h (SEGMENT_MASK):
480 * m/m68k.h (NO_REMAP):
481 * m/intel386.h (SEGMENT_MASK):
482 * m/arm.h (NO_REMAP):
483 * m/alpha.h (COFF):
484 * m/template.h: Remove references to unused defines.
485
486 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
487
488 * xsettings.c (Ftool_bar_get_system_style): Also check for
489 Qtext_image_horiz.
490
491 * xdisp.c (Qtext_image_horiz): Define.
492 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
493 to documentation of tool-bar-style.
494
495 * lisp.h (Qtext_image_horiz): Declare.
496
497 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
498 style text_image_horiz.
499
500 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
501
502 * emacs.c (Fkill_emacs): Remove return statement.
503
504 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
505 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
506 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
507 local extern declarations.
508
509 * xmenu.c: Do not included lwlib.h, not needed.
510
511 * m/iris4d.h (XUINT, XSET): Remove, not needed.
512
513 * process.c: Move definitions earlier to minimize #ifdefs.
514
515 * xterm.h (x_get_customization_string, x_load_resources)
516 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
517 (x_check_errors, x_property_data_to_lisp, defined_color)
518 (xic_set_xfontset, x_defined_color): Use const.
519
520 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
521 (x_text_icon, x_check_errors, x_connection_closed): Use const.
522
523 * xselect.c (selection_data_to_lisp_data)
524 (x_property_data_to_lisp):
525 * xrdb.c (x_get_string_resource, file_p)
526 (x_get_customization_string, magic_file_p, search_magic_path)
527 (get_system_app, get_user_app, x_load_resources, x_get_resource)
528 (x_get_string_resource): Use const.
529
530 * xfns.c: Include xlwmenu.h when USE_LUCID.
531 (x_defined_color, xic_set_xfontset): Use const.
532 (Fx_hide_tip): Remove local extern declaration.
533
534 * xfaces.c (Qmouse_face): Remove declaration.
535 (face_color_gray_p, tty_defined_color, defined_color)
536 (face_color_gray_p, face_color_supported_p): Add const.
537
538 * xdisp.c (do_mouse_tracking): Remove declaration.
539 (add_to_log): Use const.
540
541 * minibuf.c (Qmouse_face): Remove declaration.
542
543 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
544
545 * keyboard.h (do_mouse_tracking): Add declaration.
546
547 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
548 (QCdata, QCtype, Qcenter): Remove declarations.
549
550 * frame.c (x_get_resource_string, x_get_string_resource)
551 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
552 (x_default_parameter): Use const.
553
554 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
555 (QCheight, QCsize, QCname): Remove declarations.
556
557 * emacs.c (main): Remove local extern declaration.
558
559 * editfns.c (region_limit, syms_of_editfns): Remove local extern
560 declarations.
561
562 * dispnew.c: Remove duplicate #include <unistd.h>.
563 (update_window, update_frame_1, init_display): Remove local extern
564 declarations.
565
566 * dispextern.h (add_to_log): Remove declaration.
567 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
568 (x_frame_get_and_record_arg, x_default_parameter): Add const.
569
570 * dired.c (scmp): Add const.
571 (directory_files_internal): Remove local extern declaration.
572
573 * data.c (Finteractive_form): Use const.
574
575 * composite.c (syms_of_composite): Remove local extern declarations.
576
577 * charset.c (add_to_log): Remove declaration.
578
579 * character.c (strwidth, parse_str_to_multibyte): Add const.
580
581 * character.h (strwidth, parse_str_to_multibyte): Likewise.
582
583 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
584
585 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
586 (Lisp_Subr): Make doc and intspec constant.
587 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
588 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
589 (QCheight, QCsize, QCname, QCwidth, QCforeground)
590 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
591 (display_arg): Add declarations.
592
593 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
594
595 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
596
597 * window.c (Fwindow_height): Doc fix (bug#6518).
598
599 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
600
601 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
602
603 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
604
605 * keyboard.c (Ftop_level, Fexit_recursive_edit)
606 (Fabort_recursive_edit): Remove return statements in NO_RETURN
607 functions.
608
609 * frame.h (Qtty_color_mode): Add declaration.
610
611 * lisp.h (Ftop_level, Fexit_recursive_edit)
612 (Fabort_recursive_edit): Mark as NO_RETURN.
613
614 2010-07-26 Kenichi Handa <handa@m17n.org>
615
616 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
617 number of glyphs gets smaller than the original length. (Bug#6621)
618
619 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
620
621 * lread.c (unreadpure, mapatoms_1): Make static.
622
623 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
624
625 * terminfo.c (tparam): Fix prototype of tparm.
626
627 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
628
629 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
630 find start of text segment.
631 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
632 is defined.
633
634 * callproc.c (set_initial_environment): Avoid unbalanced braces.
635
636 2010-07-25 Ken Brown <kbrown@cornell.edu>
637
638 * vm-limit.c (check_memory_limits): Fix previous change;
639 accidentally reverted an earlier change.
640
641 2010-07-25 Ken Brown <kbrown@cornell.edu>
642
643 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
644 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
645
646 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
647
648 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
649 * dired.c (opendir, readdir): Fix prototypes.
650 * editfns.c (w32_get_internal_run_time): Fix prototypes.
651 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
652 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
653 (telldir): Remove declaration.
654 * ralloc.c (real_morecore, __morecore): Fix prototypes.
655 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
656 * syssignal.h (strsignal): Fix prototype.
657 * term.c (tparam): Fix prototype.
658 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
659 (term_get_fkeys): Set inside "#ifndef DOS_NT".
660 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
661 and __morecore.
662 * w32gui.h (XParseGeometry): Fix prototype.
663 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
664 * w32term.c (my_set_focus): Declare inside #if 0.
665 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
666 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
667 (drain_message_queue, get_next_msg, post_msg, parse_button)
668 (ClipboardSequence_Proc): Fix prototypes.
669 (wait_for_sync): Remove declaration.
670
671 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
672
673 * w32fns.c (w32_to_x_color): Remove, unused.
674
675 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
676
677 * lisp.h: Remove leftover P_.
678
679 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
680
681 * ecrt0.c, unexalpha.c: Remove files, unused.
682
683 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
684
685 * cmds.c (internal_self_insert): Make static.
686 * lisp.h (internal_self_insert): Remove declaration.
687
688 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
689
690 * alloc.c (free_float):
691 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
692 * frame.c (delete_frame_handler):
693 * ralloc.c (reorder_bloc):
694 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
695 Remove unused static functions.
696
697 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
698 it is called only from NS code.
699
700 * w32term.c (my_set_focus): #ifdef away; it is called only from
701 "#ifdef 0" code.
702
703 * w32fns.c (x_edge_detection):
704 * xfaces.c (may_use_scalable_font_p):
705 Remove obsolete static declarations.
706
707 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
708
709 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
710 (emacs_blocked_realloc, uninterrupt_malloc):
711 * fringe.c (w32_reset_fringes):
712 * image.c (convert_mono_to_color_image, lookup_rgb_color)
713 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
714 * sound.c (be2hs, do_play_sound):
715 * vm-limit.c (get_lim_data, ret_lim_data):
716 * w32term.c (x_free_frame_resources):
717 * xfaces.c (x_create_gc, x_free_gc):
718 Convert definitions to standard C.
719
720 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
721
722 * eval.c (Feval, Ffuncall): Use the new names.
723
724 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
725 (DEFUN): Add braces around the union initialisation and use ## to
726 specify the right union alternative and avoid a cast.
727
728 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
729
730 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
731
732 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
733
734 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
735
736 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
737
738 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
739 is related to the menu bar (Bug#6499).
740 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
741
742 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
743
744 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
745
746 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
747
748 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
749 i.e. don't put back ButtonRelease (Bug#6608).
750
751 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
752 instead of Window. Call xg_event_is_for_menubar when
753 USE_GTK (Bug#6499).
754
755 * gtkutil.h (xg_event_is_for_menubar): Declare.
756
757 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
758
759 2010-07-16 Eli Zaretskii <eliz@gnu.org>
760
761 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
762 when it's the same as the old foreground. (Bug#6609)
763
764 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
765
766 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
767 widget is non-null (Bug#6645).
768
769 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
770
771 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
772 Convert old-style definition.
773
774 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
775 timestamp argument.
776
777 2010-07-15 Eli Zaretskii <eliz@gnu.org>
778
779 * fringe.c (update_window_fringes): Restore mistakenly reverted
780 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
781
782 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
783
784 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
785 (SET_SAVED_KEY_EVENT): Remove (not used).
786 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
787 remove size parameter.
788 (handle_one_xevent): Check popup_activated () for menu for Xt also.
789 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
790 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
791 ButtonRelease.
792 (x_set_window_size_1): scroll_bar_actual_width is always
793 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
794
795 * xdisp.c (pending_menu_activation): Remove extern declaration.
796 (prepare_menu_bars): Remove setting of pending_menu_activation.
797
798 * xmenu.c (pending_menu_activation): Remove.
799 (x_activate_menubar): Set popup_activated_flag for Xt also.
800 Remove setting of pending_menu_activation.
801 (set_frame_menubar): Remove check of pending_menu_activation.
802 Declare menubar_size before code. Correct spelling in comment.
803
804 2010-07-14 Kenichi Handa <handa@m17n.org>
805
806 * font.c (font_open_entity): Cancel previous change.
807 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
808
809 2010-07-13 Eli Zaretskii <eliz@gnu.org>
810
811 Remove subprocesses #ifdefs.
812 * process.c <inhibit_sentinels>: Move to the common part.
813 (Fwaiting_for_user_input_p): Move to the common part; return nil
814 if async subprocesses aren't supported.
815 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
816 MS-DOS. Remove "#ifdef subprocesses".
817 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
818 (gettimeofday): Remove "#ifdef subprocesses".
819 (wait_without_blocking): Remove function.
820 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
821 Remove "#ifdef subprocesses".
822 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
823 compiled on MS-DOS.
824 * callproc.c (Fcall_process) [!MSDOS]: Don't call
825 wait_for_termination on MS-DOS.
826 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
827 initialization of inhibit_sentinels.
828 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
829 subprocesses" conditional.
830 * callproc.c (Fcall_process) [!subprocesses]: Don't call
831 wait_for_termination, since `buffer' cannot be an integer when
832 async subprocesses are not supported
833 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
834 for ifdefing away the call to Fprocess_status.
835
836 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
837 away the entire body of the function.
838
839 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
840
841 Remove subprocesses #ifdefs from term.c.
842 * process.c (add_keyboard_wait_descriptor)
843 (delete_keyboard_wait_descriptor): Move to common section, do
844 nothing when subprocesses is not defined.
845 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
846 Remove subprocesses #ifdefs.
847
848 Convert maybe_fatal to standard C.
849 * lisp.h (verror): Declare.
850 * eval.c (verror): New function containing the code from ...
851 (error): ... this. Call verror.
852 * term.c (vfatal): New function containing the code from ...
853 (fatal): ... this. Call vfatal.
854 (maybe_fatal): Convert to standard C, use variable number of
855 arguments. Declare as non-return.
856 (init_tty): Fix maybe_fatal call.
857
858 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
859
860 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
861 (_scroll_bar_note_movement): Convert definitions to standard C.
862 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
863 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
864
865 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
866
867 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
868 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
869 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
870 (xaw_jump_callback, xaw_scroll_callback)
871 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
872 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
873 definitions to standard C.
874 * xmenu.c (menubar_id_to_frame, popup_get_selection)
875 (popup_activate_callback, popup_deactivate_callback)
876 (menu_highlight_callback, menubar_selection_callback)
877 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
878 (free_frame_menubar, popup_selection_callback, as)
879 (create_and_show_popup_menu, dialog_selection_callback)
880 (create_and_show_dialog):
881 * xfns.c (hack_wm_protocols, x_window):
882 * xfaces.c (x_update_menu_appearance):
883 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
884 (char_to_pixel_size, round_size_to_char, get_wm_shell)
885 (set_frame_size, update_wm_hints, setup_frame_gcs)
886 (update_various_frame_slots, update_from_various_frame_slots)
887 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
888 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
889 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
890
891 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
892
893 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
894
895 2010-07-12 Eli Zaretskii <eliz@gnu.org>
896
897 * process.c (setup_process_coding_systems): Move to the part
898 shared by non-subprocesses systems, and make its body empty when
899 subprocesses is not defined.
900 (close_process_descs): Move to the part shared by non-subprocesses
901 systems.
902 (wait_reading_process_output) [!subprocesses]: Convert arg list to
903 ANSI C.
904
905 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
906
907 * editfns.c (transpose_markers): Convert old-style definition.
908 * emacs.c (abort, shut_down_emacs, fixup_locale)
909 (synchronize_system_time_locale)
910 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
911 * floatfns.c (extract_float, matherr, init_floatfns)
912 (syms_of_floatfns): Likewise.
913 * fns.c (make_hash_table): Likewise.
914 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
915 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
916 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
917 (ftfont_variation_glyphs): Likewise.
918 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
919 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
920 * lread.c (read_filtered_event): Likewise.
921 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
922 * process.c (wait_reading_process_output): Likewise.
923 * scroll.c (do_line_insertion_deletion_costs): Likewise.
924 * search.c (search_buffer, boyer_moore): Likewise.
925 * syntax.c (scan_sexps_forward): Likewise.
926 * xdisp.c (try_scrolling): Likewise.
927 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
928 (face_at_string_position): Likewise.
929 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
930 * xselect.c (x_get_window_property, receive_incremental_selection)
931 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
932 Likewise.
933 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
934
935 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
936
937 * callproc.c (child_setup): Remove subprocesses conditional.
938 Remove code dealing with SET_EMACS_PRIORITY, unused.
939
940 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
941 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
942
943 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
944 (__do_global_dtors, __main): Use void in definition.
945 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
946 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
947 the only users from ...
948 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
949 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
950 (HAVE_VOLATILE): Remove, unused.
951
952 Convert more function definitions to standard C.
953 * xdisp.c (window_box_edges, handle_single_display_spec)
954 (display_string): Convert definition to standard C.
955 * scroll.c (do_direct_scrolling, scrolling_1):
956 * dispnew.c (allocate_matrices_for_frame_redisplay)
957 (mirrored_line_dance):
958 * coding.c (code_convert_string):
959 * charset.c (map_charset_chars):
960 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
961 (Fregister_ccl_program, Fregister_code_conversion_map):
962 * keyboard.c (kbd_buffer_nr_stored): Likewise.
963 (head_table): Make static and const.
964
965 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
966
967 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
968 (PROFILING_LDFLAGS): Set from substitution.
969 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
970 CFLAGS last.
971
972 2010-07-12 Kenichi Handa <handa@m17n.org>
973
974 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
975 (shortlisp): Likewise.
976
977 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
978
979 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
980 of FONT_ENTITY_INDEX.
981 (Ffont_get): If KEY is :otf and the font-object doesn't have the
982 property, get the property value dynamically.
983 (Ffont_put): Accept font-entity and font-object too.
984 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
985 return value changed.
986 (syms_of_font): Adjusted for the above change.
987
988 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
989
990 * blockinput.h: Remove obsolete comment.
991
992 * lisp.h: Include <stddef.h>.
993 (OFFSETOF): Don't define.
994 (VECSIZE): Use offsetof instead of OFFSETOF.
995 (PSEUDOVECSIZE): Likewise.
996 * process.c (conv_sockaddr_to_lisp): Likewise.
997 * alloc.c: Don't include <stddef.h>.
998 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
999
1000 * process.c: Remove obsolete comment.
1001
1002 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
1003
1004 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1005
1006 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1007
1008 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1009 index, rindex.
1010 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1011 * editfns.c (Fuser_full_name, Fformat): Likewise.
1012 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1013 * fileio.c (Ffile_symlink_p): Likewise.
1014 * filelock.c (current_lock_owner): Likewise.
1015 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1016 * fontset.c (fontset_pattern_regexp): Likewise.
1017 * lread.c (read1): Likewise.
1018 * sysdep.c (init_system_name): Likewise.
1019 * xfns.c (select_visual): Likewise.
1020 * s/hpux10-20.h (index, rindex): Don't define.
1021 * s/ms-w32.h (index): Likewise.
1022 * s/usg5-4.h: Likewise.
1023
1024 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1025
1026 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1027 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1028 (egetenv): Likewise.
1029 * doprnt.c (doprnt): Likewise.
1030 * editfns.c (set_time_zone_rule, format2): Likewise.
1031 * emacs.c (decode_env_path): Likewise.
1032 * eval.c (signal_error, error): Likewise.
1033 * insdel.c (replace_range_2): Likewise.
1034 * keyboard.c (cmd_error_internal): Likewise.
1035 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1036 * print.c (write_string, write_string_1, print_error_message):
1037 Likewise.
1038 * vm-limit.c (warn_function, memory_warnings): Likewise.
1039 * xdisp.c (message1, message1_nolog, message_with_string)
1040 (vmessage, message, message_nolog): Likewise.
1041 * emacs.c: Remove duplicate declaration.
1042 * keyboard.h: Likewise.
1043 * lisp.h: Update prototypes.
1044
1045 * eval.c: Fix indentation problem.
1046
1047 * keyboard.c: Include "process.h"
1048
1049 * eval.c: Remove obsolete noinline declaration.
1050 * fns.c: Likewise.
1051
1052 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
1053
1054 * doprnt.c (doprnt): Take a va_list argument instead of count and
1055 pointer.
1056 * eval.c (error): Change to a standard-C variadic function.
1057 * xdisp.c (vmessage): Renamed from message, made static, and
1058 changed to take a va_list argument.
1059 (message): New variadic wrapper.
1060 (message_nolog): Now a variadic function, calling vmessage.
1061 * lisp.h: Include stdarg.h for va_list.
1062 (doprnt, error, message, message_nolog): Decls updated.
1063
1064 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1065
1066 * process.c (syms_of_process) <delete-exited-processes>: Define
1067 even if !subprocesses.
1068 (delete_exited_processes): Ditto.
1069
1070 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1071 (delete_exited_processes): Don't define.
1072
1073 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1074
1075 * frame.c (make_frame): Initialize menu_bar_lines and
1076 tool_bar_lines members.
1077 (make_initial_frame, make_terminal_frame): Initialize
1078 menu_bar_lines using value of menu-bar-mode.
1079
1080 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1081
1082 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1083
1084 * process.c: Reshuffle #include's. Condition some of the global
1085 and static variables on `subprocesses'.
1086 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1087 Leave only one implementation.
1088 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1089 (kill_buffer_processes, Flist_system_processes)
1090 (Fprocess_attributes, init_process, syms_of_process): Unify the
1091 implementations for with subprocesses and without them.
1092
1093 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1094
1095 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1096 correct size for Motif.
1097 (free_frame_menubar): Call x_set_window_size to update frame size.
1098
1099 * xfns.c (x_window): Set borderWidth to 0 for pane and
1100 EmacsFrame. Frame size calculation is wrong otherwise.
1101
1102 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
1103
1104 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1105 allows to suppress errors when polling in Emacs' main loop.
1106 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1107 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1108 (Fdbus_method_error_internal, Fdbus_send_signal)
1109 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1110 (Fdbus_register_method): Use it. (Bug#6579)
1111
1112 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1113
1114 * alloc.c: Convert DEFUNs to standard C.
1115 * buffer.c:
1116 * bytecode.c:
1117 * callint.c:
1118 * callproc.c:
1119 * casefiddle.c:
1120 * casetab.c:
1121 * category.c:
1122 * character.c:
1123 * charset.c:
1124 * chartab.c:
1125 * cmds.c:
1126 * coding.c:
1127 * composite.c:
1128 * data.c:
1129 * dbusbind.c:
1130 * dired.c:
1131 * dispnew.c:
1132 * doc.c:
1133 * dosfns.c:
1134 * editfns.c:
1135 * emacs.c:
1136 * eval.c:
1137 * fileio.c:
1138 * filelock.c:
1139 * floatfns.c:
1140 * fns.c:
1141 * font.c:
1142 * fontset.c:
1143 * frame.c:
1144 * fringe.c:
1145 * image.c:
1146 * indent.c:
1147 * insdel.c:
1148 * keyboard.c:
1149 * keymap.c:
1150 * lread.c:
1151 * macros.c:
1152 * marker.c:
1153 * menu.c:
1154 * minibuf.c:
1155 * msdos.c:
1156 * nsfns.m:
1157 * nsmenu.m:
1158 * nsselect.m:
1159 * print.c:
1160 * process.c:
1161 * search.c:
1162 * sound.c:
1163 * syntax.c:
1164 * term.c:
1165 * terminal.c:
1166 * textprop.c:
1167 * undo.c:
1168 * w16select.c:
1169 * w32console.c:
1170 * w32fns.c:
1171 * w32font.c:
1172 * w32menu.c:
1173 * w32proc.c:
1174 * w32select.c:
1175 * window.c:
1176 * xdisp.c:
1177 * xfaces.c:
1178 * xfns.c:
1179 * xmenu.c:
1180 * xselect.c:
1181 * xsettings.c:
1182 * xsmfns.c: Likewise.
1183
1184 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1185
1186 * process.c (kbd_is_on_hold, hold_keyboard_input)
1187 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1188
1189 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1190
1191 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1192 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1193 unless USE_LUCID.
1194
1195 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1196
1197 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1198 declaration.
1199
1200 Clean up include guards.
1201 * tparam.c: Remove include guards for config.h, string.h and code
1202 that assumes #ifndef emacs.
1203 * termcap.c:
1204 * unexalpha.c:
1205 * sysdep.c:
1206 * filemode.c:
1207 * filelock.c:
1208 * bidi.c: Likewise.
1209
1210 Remove prefix-args.c
1211 * prefix-args.c: Remove file.
1212 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1213 * Makefile.in (temacs${EXEEXT}): Remove references to
1214 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1215 (mostlyclean): Remove reference to prefix-args.
1216 (prefix-args): Remove.
1217
1218 Simplify cstart_of_data, start_of_code and related code.
1219 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1220 (start_of_data): Merge into start_of_data function.
1221 * sysdep.c (start_of_text): Remove. Move simplified versions of
1222 it in the only users: unexaix.c and unexec.c.
1223 (read_input_waiting): Remove local declaration of quit_char.
1224 (start, etext): Remove declarations.
1225 (start_of_data): Merge with the version in mem-limits.h and move
1226 to vm-limits.c.
1227 * vm-limit.c (start_of_data): Merged and simplified version of the
1228 code formerly in mem-limits.h and sysdep.c.
1229 * unexec.c (start): New declaration, moved from sysdep.c.
1230 (start_of_text): Simplified version of the code formerly in sysdep.c.
1231 * unexaix.c (start_of_text): Simplified version of the code
1232 formerly in sysdep.c.
1233 * m/alpha.h (HAVE_TEXT_START): Remove.
1234 (TEXT_START): Move ...
1235 * unexalpha.c (TEXT_START): ... here.
1236 * s/hpux10-20.h (TEXT_START): Remove.
1237 * s/darwin.h (TEXT_START):
1238 * m/mips.h (TEXT_START):
1239 * m/macppc.h (HAVE_TEXT_START):
1240 * m/m68k.h (TEXT_START):
1241 * m/iris4d.h (TEXT_START):
1242 * m/intel386.h (TEXT_START):
1243 * m/ibmrs6000.h (TEXT_START):
1244 * m/ia64.h (HAVE_TEXT_START):
1245 * s/msdos.h (TEXT_START): Likewise.
1246
1247 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1248
1249 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1250 (overrun_check_free, xstrdup, allocate_string)
1251 (allocate_string_data, compact_small_strings, Fmake_string)
1252 (make_unibyte_string, make_multibyte_string)
1253 (make_string_from_bytes, make_specified_string, make_float)
1254 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1255 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1256 memcpy, memmove, memset, memcmp.
1257 * atimer.c (start_atimer, set_alarm): Likewise.
1258 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1259 (mmap_realloc, init_buffer_once): Likewise.
1260 * callint.c (Fcall_interactively): Likewise.
1261 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1262 (getenv_internal_1): Likewise.
1263 * casefiddle.c (casify_object): Likewise.
1264 * ccl.c (ccl_driver): Likewise.
1265 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1266 * charset.c (load_charset_map_from_file)
1267 (load_charset_map_from_file, load_charset_map_from_vector)
1268 (Fdefine_charset_internal): Likewise.
1269 * cm.c (Wcm_clear): Likewise.
1270 * coding.c (decode_eol, decode_coding_object)
1271 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1272 * data.c (Faset): Likewise.
1273 * dired.c (directory_files_internal, file_name_completion_stat):
1274 Likewise.
1275 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1276 (clear_glyph_row, copy_row_except_pointers)
1277 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1278 (save_current_matrix, restore_current_matrix)
1279 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1280 (mirror_line_dance, scrolling_window): Likewise.
1281 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1282 Likewise.
1283 * doprnt.c (doprnt): Likewise.
1284 * editfns.c (Fuser_full_name, make_buffer_string_both)
1285 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1286 * emacs.c (sort_args): Likewise.
1287 * eval.c (Fapply, Ffuncall): Likewise.
1288 * fileio.c (Ffile_name_directory, make_temp_name)
1289 (Fexpand_file_name, search_embedded_absfilename)
1290 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1291 (auto_save_error): Likewise.
1292 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1293 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1294 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1295 (Fmake_hash_table): Likewise.
1296 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1297 * ftfont.c (ftfont_text_extents): Likewise.
1298 * getloadavg.c (getloadavg): Likewise.
1299 * image.c (define_image_type, make_image, make_image_cache)
1300 (x_create_x_image_and_pixmap, xbm_image_p)
1301 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1302 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1303 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1304 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1305 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1306 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1307 Likewise.
1308 * indent.c (scan_for_column, compute_motion): Likewise.
1309 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1310 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1311 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1312 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1313 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1314 (store_user_signal_events, menu_bar_items, tool_bar_items)
1315 (process_tool_bar_item, append_tool_bar_item)
1316 (read_char_minibuf_menu_prompt, read_key_sequence)
1317 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1318 Likewise.
1319 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1320 Likewise.
1321 * lisp.h (STRING_COPYIN): Likewise.
1322 * lread.c (Fload, read1, oblookup): Likewise.
1323 * msdos.c (Frecent_doskeys): Likewise.
1324 * nsfns.m (Fx_create_frame): Likewise.
1325 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1326 Likewise.
1327 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1328 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1329 Likewise.
1330 * nsmenu.m (ns_update_menubar): Likewise.
1331 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1332 * print.c (print_unwind, printchar, strout, print_string)
1333 (print_error_message): Likewise.
1334 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1335 (Fmake_network_process, Fnetwork_interface_list)
1336 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1337 (init_process): Likewise.
1338 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1339 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1340 Likewise.
1341 * scroll.c (do_scrolling, do_direct_scrolling)
1342 (scrolling_max_lines_saved): Likewise.
1343 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1344 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1345 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1346 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1347 (emacs_set_tty): Likewise.
1348 * term.c (encode_terminal_code, calculate_costs)
1349 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1350 Likewise.
1351 * termcap.c (tgetst1, gobble_line): Likewise.
1352 * termhooks.h (EVENT_INIT): Likewise.
1353 * tparam.c (tparam1): Likewise.
1354 * unexalpha.c (unexec): Likewise.
1355 * unexec.c (write_segment): Likewise.
1356 * unexmacosx.c (unexec_write_zero): Likewise.
1357 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1358 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1359 * w32font.c (w32font_list_family, w32font_text_extents)
1360 (w32font_list_internal, w32font_match_internal)
1361 (w32font_open_internal, compute_metrics, Fx_select_font):
1362 Likewise.
1363 * w32menu.c (set_frame_menubar, add_menu_item)
1364 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1365 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1366 * w32uniscribe.c (uniscribe_list_family): Likewise.
1367 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1368 * window.c (make_window, replace_window, set_window_buffer)
1369 (Fsplit_window): Likewise.
1370 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1371 (add_to_log, message3, x_consider_frame_title)
1372 (append_space_for_newline, extend_face_to_end_of_line)
1373 (decode_mode_spec_coding, init_glyph_string): Likewise.
1374 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1375 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1376 (face_attr_equal_p, make_realized_face, make_face_cache)
1377 (free_realized_faces, lookup_named_face, smaller_face)
1378 (face_with_height, lookup_derived_face)
1379 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1380 (Finternal_set_font_selection_order, realize_default_face)
1381 (compute_char_face, face_at_buffer_position)
1382 (face_for_overlay_string, face_at_string_position, merge_faces):
1383 Likewise.
1384 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1385 (Fx_window_property, x_create_tip_frame)
1386 (Fx_backspace_delete_keys_p): Likewise.
1387 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1388 (xfont_text_extents): Likewise.
1389 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1390 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1391 * xselect.c (x_queue_event, x_get_window_property)
1392 (receive_incremental_selection): Likewise.
1393 * xsmfns.c (x_session_check_input): Likewise.
1394 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1395 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1396 Likewise.
1397 * character.h (BCOPY_SHORT): Removed.
1398 * config.in: Regenerate.
1399 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1400 * emacs.c (main) [PROFILING]: Don't declare
1401 dump_opcode_frequencies.
1402 * lisp.h (safe_bcopy): Remove declaration.
1403 (memset) [!HAVE_MEMSET]: Declare.
1404 (memcpy) [!HAVE_MEMCPY]: Likewise.
1405 (memmove) [!HAVE_MEMMOVE]: Likewise.
1406 (memcmp) [!HAVE_MEMCMP]: Likewise.
1407 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1408 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1409 Don't define.
1410 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1411 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1412 (BCOPY_DOWNWARD_SAFE): Don't define.
1413 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1414 (memcpy) [!HAVE_MEMCPY]: Define.
1415 (memmove) [!HAVE_MEMMOVE]: Define.
1416 (memcmp) [!HAVE_MEMCMP]: Define.
1417
1418 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1419
1420 * process.c (kbd_is_on_hold): New variable.
1421 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1422 New functions.
1423 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1424 select on empty input mask.
1425 (init_process): Initialize kbd_is_on_hold to 0.
1426
1427 * process.h (hold_keyboard_input, unhold_keyboard_input)
1428 (kbd_on_hold_p): Declare.
1429
1430 * keyboard.c (input_available_signal): Declare.
1431 (kbd_buffer_nr_stored): New function.
1432 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1433 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1434 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1435 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1436 (tty_read_avail_input): If input is on hold, return.
1437 Don't read more that free slots in kbd_buffer (Bug#6571).
1438
1439 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1440
1441 * msdos.h:
1442 * msdos.c:
1443 * dosfns.c:
1444 * w16select.c: Convert function definitions to ANSI C.
1445
1446 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1447 Remove unused prototypes.
1448
1449 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1450
1451 * coding.c, sysdep.c: Convert some more functions to standard C.
1452
1453 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1454
1455 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1456 (encode_coding_object): Use SPECPDL_INDEX.
1457 (syms_of_coding): Use DOS_NT.
1458
1459 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1460
1461 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1462
1463 Make the function member of Lisp_Subr use standard C prototypes.
1464 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1465 (DECL_ALIGN): Add a cast for the function.
1466 * eval.c (Feval, Ffuncall): Use the proper type for each type
1467 function call.
1468
1469 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1470
1471 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1472 fringe face id, so face-remapping-alist works (Bug#6091).
1473
1474 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1475
1476 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1477 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1478 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1479
1480 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1481
1482 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1483 * lisp.h: Declare x_get_keysym_name.
1484 * keyboard.c (modify_event_symbol): Don't declare
1485 x_get_keysym_name here.
1486
1487 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1488
1489 * ecrt0.c: Revert conversion to standard C.
1490
1491 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1492
1493 * vm-limit.c (memory_warnings):
1494 * keyboard.c (modify_event_symbol):
1495 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1496 (round2, emacs_rint):
1497 * process.c (send_process, old_sigpipe): Convert function
1498 definitions and declarations to standard C.
1499
1500 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1501
1502 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1503 * xdisp.c: Convert function definitions to standard C.
1504
1505 * cm.c (cmputc): Arg C is now int, not char.
1506 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1507
1508 2010-07-05 James Cloos <cloos@jhcloos.com>
1509
1510 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1511
1512 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1513 _NET_WM_ICON_NAME atoms.
1514
1515 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1516 and _NET_WM_ICON_NAME properties, too, matching what is
1517 done in the Gtk+ case.
1518
1519 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1520
1521 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1522
1523 * xsmfns.c (SSDATA): New macro.
1524 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1525 passed to strlen/strcpy/strcat.
1526 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1527 7:th arg to XChangeProperty to (unsigned char *)
1528
1529 * xsettings.c (something_changedCB, parse_settings)
1530 (apply_xft_settings): Reformat prototype.
1531 (something_changedCB, init_gconf): Remove unused variable i.
1532 (read_settings): Remove unused variable long_len.
1533
1534 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1535 (xg_get_image_for_pixmap, create_dialog)
1536 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1537 (menuitem_highlight_callback, make_menu_item)
1538 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1539 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1540 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1541 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1542 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1543 (xg_tool_bar_item_expose_callback): Reformat prototype.
1544 (xg_update_menubar): GList *group => GSList *group.
1545 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1546 before use.
1547 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1548 to GTK_IMAGE (wimage).
1549
1550 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1551
1552 * atimer.c: Use "" instead of <> for local includes for
1553 consistency with the rest of the code.
1554
1555 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1556 * xrdb.c (get_system_name):
1557 * window.c (shrink_windows):
1558 * syntax.c (forw_comment):
1559 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1560 (ins_del_costs):
1561 * mem-limits.h (start_of_data):
1562 * lread.c (readevalloop):
1563 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1564 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1565 * frame.c (x_get_focus_frame):
1566 * floatfns.c (fmod_float):
1567 * fileio.c (choose_write_coding_system):
1568 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1569 (malloc_initialize_hook, sort_args, synchronize_locale):
1570 * doprnt.c (doprnt):
1571 * dired.c (compile_pattern):
1572 * data.c (fmod_float):
1573 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1574 (map_char_table_for_charset):
1575 * charset.c (define_charset_internal):
1576 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1577 to standard C.
1578
1579 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1580 Stefan Monnier <monnier@iro.umontreal.ca>
1581
1582 * lread.c (read1): Fix up last change to not mess up `c'.
1583
1584 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1585
1586 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1587
1588 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1589
1590 Fix prototypes.
1591
1592 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1593 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1594 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1595 arg, as required by internal_condition_case_1.
1596 * print.c (strout): Use const char* for arg PTR.
1597 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1598 (analyse_first): Fix "const const".
1599 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1600 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1601 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1602
1603 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1604
1605 * alloc.c: Convert function definitions to standard C.
1606 * atimer.c:
1607 * bidi.c:
1608 * bytecode.c:
1609 * callint.c:
1610 * callproc.c:
1611 * casefiddle.c:
1612 * casetab.c:
1613 * category.c:
1614 * ccl.c:
1615 * character.c:
1616 * charset.c:
1617 * chartab.c:
1618 * cmds.c:
1619 * coding.c:
1620 * composite.c:
1621 * data.c:
1622 * dbusbind.c:
1623 * dired.c:
1624 * dispnew.c:
1625 * doc.c:
1626 * doprnt.c:
1627 * ecrt0.c:
1628 * editfns.c:
1629 * fileio.c:
1630 * filelock.c:
1631 * filemode.c:
1632 * fns.c:
1633 * font.c:
1634 * fontset.c:
1635 * frame.c:
1636 * fringe.c:
1637 * ftfont.c:
1638 * ftxfont.c:
1639 * gtkutil.c:
1640 * indent.c:
1641 * insdel.c:
1642 * intervals.c:
1643 * keymap.c:
1644 * lread.c:
1645 * macros.c:
1646 * marker.c:
1647 * md5.c:
1648 * menu.c:
1649 * minibuf.c:
1650 * prefix-args.c:
1651 * print.c:
1652 * ralloc.c:
1653 * regex.c:
1654 * region-cache.c:
1655 * scroll.c:
1656 * search.c:
1657 * sound.c:
1658 * strftime.c:
1659 * syntax.c:
1660 * sysdep.c:
1661 * termcap.c:
1662 * terminal.c:
1663 * terminfo.c:
1664 * textprop.c:
1665 * tparam.c:
1666 * undo.c:
1667 * unexelf.c:
1668 * window.c:
1669 * xfaces.c:
1670 * xfns.c:
1671 * xfont.c:
1672 * xftfont.c:
1673 * xgselect.c:
1674 * xmenu.c:
1675 * xrdb.c:
1676 * xselect.c:
1677 * xsettings.c:
1678 * xsmfns.c:
1679 * xterm.c: Likewise.
1680
1681 2010-07-03 Eli Zaretskii <eliz@gnu.org>
1682
1683 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1684 frames other than the initial one. Fix reversal of colors when
1685 `reverse' is specified in the frame parameters. Call
1686 update_face_from_frame_parameter instead of
1687 internal-set-lisp-face-attribute. Initialize screen colors from
1688 initial_screen_colors[] when f->default_face_done_p is zero,
1689 instead of depending on being called with default-frame-alist as
1690 the alist argument.
1691
1692 * xfaces.c (update_face_from_frame_parameter): Move out of
1693 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1694 with HAVE_WINDOW_SYSTEM.
1695
1696 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1697 to menu-bar-mode, if not set in the frame parameters or in
1698 default-frame-alist.
1699
1700 * w32console.c (sys_tputs): Adjust argument list to prototype in
1701 term.c.
1702
1703 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1704
1705 * lisp.h (memory_warnings): Fix prototype.
1706
1707 * cm.h (evalcost): Fix prototype.
1708
1709 * cm.c (evalcost): Fix arg type.
1710
1711 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1712
1713 * term.c (term_clear_mouse_face, Fidentity):
1714 * syssignal.h (signal_handler_t):
1715 * lisp.h (memory_warnings):
1716 * coding.h (preferred_coding_system):
1717 * cm.h (evalcost):
1718 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1719
1720 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1721
1722 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1723 from prototypes.
1724
1725 * msdos.h (load_pixmap): Don't define away.
1726
1727 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1728
1729 * lisp.h:
1730 * atimer.h: Remove define for P_.
1731
1732 * alloc.c: Remove __P and P_ from .c and .m files.
1733 * atimer.c:
1734 * buffer.c:
1735 * callint.c:
1736 * category.c:
1737 * charset.c:
1738 * chartab.c:
1739 * cm.c:
1740 * coding.c:
1741 * composite.c:
1742 * data.c:
1743 * dired.c:
1744 * dispnew.c:
1745 * doc.c:
1746 * editfns.c:
1747 * emacs.c:
1748 * eval.c:
1749 * fileio.c:
1750 * filelock.c:
1751 * fns.c:
1752 * font.c:
1753 * fontset.c:
1754 * frame.c:
1755 * ftfont.c:
1756 * ftxfont.c:
1757 * gmalloc.c:
1758 * gtkutil.c:
1759 * image.c:
1760 * indent.c:
1761 * intervals.c:
1762 * keyboard.c:
1763 * keymap.c:
1764 * lread.c:
1765 * marker.c:
1766 * menu.c:
1767 * minibuf.c:
1768 * print.c:
1769 * process.c:
1770 * scroll.c:
1771 * search.c:
1772 * sound.c:
1773 * strftime.c:
1774 * syntax.c:
1775 * sysdep.c:
1776 * term.c:
1777 * terminal.c:
1778 * textprop.c:
1779 * unexalpha.c:
1780 * w32console.c:
1781 * w32fns.c:
1782 * w32font.c:
1783 * w32menu.c:
1784 * w32term.c:
1785 * w32uniscribe.c:
1786 * window.c:
1787 * xdisp.c:
1788 * xfaces.c:
1789 * xfns.c:
1790 * xfont.c:
1791 * xftfont.c:
1792 * xmenu.c:
1793 * xselect.c:
1794 * xterm.c: Likewise.
1795
1796 Remove P_ and __P macros.
1797 * atimer.h: Remove P_ and __P macros.
1798 * buffer.h:
1799 * category.h:
1800 * ccl.h:
1801 * character.h:
1802 * charset.h:
1803 * cm.h:
1804 * coding.h:
1805 * composite.h:
1806 * dispextern.h:
1807 * disptab.h:
1808 * dosfns.h:
1809 * font.h:
1810 * fontset.h:
1811 * frame.h:
1812 * gtkutil.h:
1813 * indent.h:
1814 * intervals.h:
1815 * keyboard.h:
1816 * keymap.h:
1817 * lisp.h:
1818 * macros.h:
1819 * md5.h:
1820 * menu.h:
1821 * msdos.h:
1822 * nsterm.h:
1823 * puresize.h:
1824 * region-cache.h:
1825 * syntax.h:
1826 * syssignal.h:
1827 * systime.h:
1828 * termhooks.h:
1829 * w32font.h:
1830 * w32term.h:
1831 * widget.h:
1832 * window.h:
1833 * xgselect.h:
1834 * xsettings.h:
1835 * xterm.h: Likewise.
1836
1837 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1838
1839 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1840
1841 Cleanup old code.
1842 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1843 * syssignal.h: Remove code for Lynx, not supported anymore.
1844 * vm-limit.c: Remove unused code the depends on emacs not being
1845 defined and NO_LIM_DATA being defined.
1846 * mem-limits.h: Remove dead code.
1847
1848 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1849
1850 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1851
1852 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1853 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1854
1855 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1856 parameters, they are already absolute.
1857
1858 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1859 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1860
1861 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1862
1863 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1864 Update FRAME_TOOLBAR_HEIGHT.
1865
1866 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1867 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1868
1869 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
1870
1871 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1872 check default-frame-alist.
1873
1874 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1875
1876 * process.c (create_process): Avoid using invalid file descriptors.
1877
1878 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1879
1880 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1881
1882 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1883 Improve documentation. Return font regardless of use_system_font.
1884 (syms_of_xsettings): Improve documentation for font-use-system-font.
1885
1886 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1887
1888 * xfaces.c (realize_face): Garbage the frame if a face is removed
1889 (Bug#6593).
1890
1891 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1892
1893 * keyboard.c: Remove duplicate <setjmp.h>.
1894 (read_key_sequence): Remove volatile qualifiers.
1895
1896 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1897
1898 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1899 (struct glyph_row): New members left_fringe_offset and
1900 right_fringe_offset.
1901
1902 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1903 specially.
1904 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1905 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1906
1907 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1908 Take account of bitmap offset.
1909 (draw_window_fringes): Take account of window vscroll.
1910 (update_window_fringes): Likewise. Extend top-aligned top indicator
1911 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1912 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1913 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1914
1915 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1916
1917 * w32fns.c (Qtooltip): Declare.
1918 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1919
1920 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1921
1922 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1923 grab on just Press (Bug#6499).
1924
1925 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
1926
1927 * frame.c (Qtooltip): New var.
1928 (delete_frame): Use it. Fix faulty if statement. Don't update
1929 mode line for tooltip frames. Suggested by Martin Rudalics.
1930
1931 * xfns.c (x_create_tip_frame):
1932 * w32fns.c (x_create_tip_frame): Use it.
1933
1934 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1935
1936 * xftfont.c (xftfont_open): Check font width one by one also when
1937 spacing is dual.
1938
1939 * ftfont.c (ftfont_open): Ditto.
1940
1941 2010-06-30 Glenn Morris <rgm@gnu.org>
1942
1943 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1944
1945 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1946
1947 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1948 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1949 * s/darwin.h (SYSTEM_MALLOC):
1950 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1951
1952 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1953
1954 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1955 (ns_get_screen): Don't assign integer to f.
1956 (Fx_display_color_cells): Declarations before statements.
1957
1958 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1959
1960 * xfns.c (x_default_font_parameter): Remove got_from_system
1961 (Bug#6526).
1962
1963 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1964 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1965 defines based on what configure finds.
1966
1967 * xterm.c (XTflash): Use gtk_widget_get_window.
1968 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1969 gtk_adjustment_get_page_size.
1970 (handle_one_xevent): Use gtk_widget_get_mapped.
1971 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1972 messages.
1973
1974 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1975
1976 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1977 HAVE_GTK_FILE_SELECTION_NEW.
1978
1979 * gtkutil.c (xg_display_open, xg_display_close): Remove
1980 HAVE_GTK_MULTIDISPLAY, it is always defined.
1981 (xg_display_open): Return type is void.
1982 (gtk_widget_set_has_window)
1983 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1984 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1985 (gtk_adjustment_set_page_increment)
1986 (gtk_adjustment_get_step_increment): #define these if not found
1987 by configure.
1988 (remove_submenu): New define based on Gtk+ version.
1989 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1990 gtk_widget_get_window.
1991 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1992 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1993 (create_dialog): Use gtk_dialog_get_action_area and
1994 gtk_dialog_get_content_area.
1995 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1996 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1997 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1998 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1999 g_object_ref and g_object_unref.
2000 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2001 gtk_widget_get_sensitive.
2002 (xg_update_submenu): Use remove_submenu.
2003 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2004 properties instead to get old x and y position.
2005 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2006 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2007 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
2008 (xg_get_tool_bar_widgets): New function.
2009 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2010 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2011 (toolbar_set_orientation): New #define based on if configure
2012 finds gtk_orientable_set_orientation.
2013 (xg_create_tool_bar): Call toolbar_set_orientation.
2014 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2015 instead of gtk_box_pack_start_defaults.
2016
2017 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
2018
2019 * cmds.c (Fdelete_backward_char): Move into Lisp.
2020
2021 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2022
2023 * s/freebsd.h (BSD4_2): Remove redundant definition.
2024 bsd-common.h defines it already.
2025
2026 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
2027
2028 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2029 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2030 tool-bar-mode, which are now set using these X resources at
2031 startup, to determine the defaults (Bug#2249).
2032
2033 * w32fns.c (Fx_create_frame):
2034 * nsfns.m (Fx_create_frame): Likewise.
2035
2036 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2037
2038 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2039
2040 * gtkutil.c (xg_update_scrollbar_pos):
2041 Avoid C99 mid-block variable declaration.
2042
2043 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2044
2045 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2046
2047 * gtkutil.h (xg_show_scroll_bar): Remove.
2048
2049 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2050 if height is less than scroll bar min size.
2051 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2052
2053 * xfns.c (x_default_font_parameter): Try to open font from system
2054 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2055
2056 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
2057
2058 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2059
2060 2010-06-20 Eli Zaretskii <eliz@gnu.org>
2061
2062 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2063 most-positive-fixnum, be extra accurate when scrolling window
2064 start, to avoid missing the cursor line.
2065
2066 2010-06-19 Eli Zaretskii <eliz@gnu.org>
2067
2068 * xdisp.c (try_scrolling): Compute the limit for searching point
2069 in forward scroll from scroll_max, instead of an arbitrary limit
2070 of 10 screen lines. See
2071 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2072 and
2073 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2074 for details.
2075
2076 2010-06-16 Glenn Morris <rgm@gnu.org>
2077
2078 * editfns.c (Fbyte_to_string): Pacify compiler.
2079
2080 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2081
2082 * lread.c (read1): Phase out old-style backquotes a bit more.
2083
2084 2010-06-12 Eli Zaretskii <eliz@gnu.org>
2085
2086 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2087 bidimirror.h.
2088
2089 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2090
2091 * bidi.c (bidi_initialize): Remove explicit initialization of
2092 bidi_type_table; include biditype.h instead. Don't support
2093 entries whose second codepoint is zero. Initialize bidi_mirror_table.
2094 (bidi_mirror_char): Use bidi_mirror_table.
2095
2096 * biditype.h: New file.
2097
2098 * bidimirror.h: New file.
2099
2100 * window.c (syms_of_window): Doc fix (bug#6409).
2101
2102 2010-06-12 Romain Francoise <romain@orebokech.com>
2103
2104 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2105 ediff-hook.
2106
2107 2010-06-10 Glenn Morris <rgm@gnu.org>
2108
2109 * editfns.c (Fbyte_to_string): Pacify compiler.
2110
2111 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2112
2113 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2114
2115 * alloc.c (Fmake_byte_code): Don't access undefined argument
2116 (Bug#6517).
2117
2118 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2119
2120 * xdisp.c (next_element_from_image): Ensure that after-strings are
2121 read the next time we hit handle_stop (Bug#1336).
2122
2123 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2124
2125 * lread.c (read1): Signal error if #s is not followed by paren.
2126
2127 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2128
2129 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2130
2131 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2132
2133 2010-06-15 Glenn Morris <rgm@gnu.org>
2134
2135 * editfns.c (Fbyte_to_string): Pacify compiler.
2136
2137 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2138
2139 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2140 Check `object's type before accessing its guts.
2141
2142 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2143
2144 * s/usg5-4.h: Fix previous change.
2145 Suggested by Lawrence Mitchell <wence@gmx.li>
2146
2147 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2148
2149 * minibuf.c (Fall_completions): Add more checks.
2150
2151 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2152
2153 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2154
2155 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2156
2157 * lread.c (X_OK): Remove, unused.
2158
2159 * dispnew.c: Remove obsolete comment.
2160
2161 Remove INCLUDED_FCNTL.
2162 * xterm.c (INCLUDED_FCNTL):
2163 * callproc.c (INCLUDED_FCNTL):
2164 * alloc.c (INCLUDED_FCNTL):
2165 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2166 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2167
2168 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2169
2170 * window.c (Fselect_window): Move `record_buffer' up to the
2171 beginning of this function, so the buffer gets recorded
2172 even if the selected window does not change.
2173 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2174
2175 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2176
2177 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2178 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2179
2180 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2181
2182 Remove BSTRING related code, all platforms define it.
2183 * s/usg5-4.h (BSTRING): Remove definition.
2184 * s/template.h (BSTRING):
2185 * s/msdos.h (BSTRING):
2186 * s/ms-w32.h (BSTRING):
2187 * s/hpux10-20.h (BSTRING):
2188 * s/gnu-linux.h (BSTRING):
2189 * s/darwin.h (BSTRING):
2190 * s/cygwin.h (BSTRING):
2191 * s/bsd-common.h (BSTRING):
2192 * s/aix4-2.h (BSTRING): Likewise.
2193 * sysdep.c: Remove code depending on BSTRING not being defined.
2194
2195 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2196
2197 Remove obsolete macro BASE_LEADING_CODE_P.
2198 * character.h (BASE_LEADING_CODE_P): Remove.
2199 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2200 * buffer.c (Fset_buffer_multibyte):
2201 * indent.c (scan_for_column, compute_motion):
2202 * insdel.c (count_combining_before, count_combining_after):
2203 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2204
2205 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2206
2207 Turn `directory-sep-char' into a noop.
2208
2209 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2210 (DIRECTORY_SEP): Define unconditionally.
2211
2212 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2213
2214 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2215 call dostounix_filename directly.
2216
2217 * fileio.c (CORRECT_DIR_SEPS): Remove.
2218 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2219 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2220 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2221 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2222
2223 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2224 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2225
2226 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2227
2228 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2229 (Bug#6346)
2230
2231 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2232
2233 * ccl.c (Fccl_program_p): Fix typo in docstring.
2234
2235 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2236
2237 Move UNEXEC definition to autoconf.
2238 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2239 * s/sol2-10.h (UNEXEC):
2240 * s/irix6-5.h (UNEXEC):
2241 * s/hpux10-20.h (UNEXEC):
2242 * s/gnu-linux.h (UNEXEC):
2243 * s/darwin.h (UNEXEC):
2244 * s/cygwin.h (UNEXEC):
2245 * s/bsd-common.h (UNEXEC):
2246 * s/aix4-2.h (UNEXEC):
2247 * m/alpha.h (UNEXEC): Likewise.
2248 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2249
2250 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2251
2252 Remove obsolete pre-unicode2 macros.
2253 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2254 * composite.c (composition_reseat_it):
2255 * data.c (Faset):
2256 * fns.c (Ffillarray):
2257 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2258 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2259
2260 2010-06-03 Juri Linkov <juri@jurta.org>
2261
2262 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2263 (Fswitch_to_buffer): Remove unused variable `err'.
2264
2265 2010-06-03 Glenn Morris <rgm@gnu.org>
2266
2267 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2268
2269 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2270 now that AH_BOTTOM does it.
2271
2272 * m/hp800.h (HAVE_ALLOCA):
2273 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2274
2275 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2276 Remove NOT_C_CODE tests, it is always true now.
2277
2278 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2279
2280 Fix config.h includes.
2281 * xsettings.c:
2282 * xgselect.c:
2283 * nsterm.m:
2284 * nsselect.m:
2285 * nsimage.m:
2286 * nsfont.m:
2287 * nsfns.m:
2288 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2289 other files do.
2290
2291 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2292
2293 * s/sol2-6.h: Remove obsolete comments.
2294
2295 Remove unnecessary alloca.h includes.
2296 * keymap.c: Do not include alloca.h, config.h does that.
2297 * sysdep.c: Likewise. Do not define fwrite, not used.
2298
2299 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2300
2301 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2302 the HAVE_TERMIO where it belongs (bug#6149).
2303
2304 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2305
2306 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2307 of bug#6305).
2308
2309 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2310
2311 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2312 state is always cached (bug#6306).
2313
2314 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2315
2316 Fix cursor motion in bidi-reordered continued lines.
2317 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2318 only after finding point's row. Fix the logic. Rewrite the loop
2319 over continuation lines in bidi-reordered buffers. Return
2320 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2321 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2322
2323 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2324
2325 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2326
2327 2010-05-28 Kenichi Handa <handa@m17n.org>
2328
2329 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2330 Don't sheck SPEC if it is nil.
2331 (font_list_entities): Call font_delete_unmatched if
2332 Vface_ignored_fonts is non-nil. (Bug#6287)
2333
2334 2010-05-28 Glenn Morris <rgm@gnu.org>
2335
2336 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2337
2338 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2339
2340 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2341 whether to trash.
2342 (internal_delete_file, Frename_file): Callers changed.
2343 (delete_by_moving_to_trash): Doc fix.
2344 (Fdelete_directory_internal): Don't move to trash.
2345
2346 * callproc.c (delete_temp_file):
2347 * buffer.c (Fkill_buffer): Callers changed.
2348
2349 * lisp.h: Update prototype.
2350
2351 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2352
2353 * xdisp.c (redisplay_window): After redisplay, check if point is
2354 still valid before setting it (Bug#6177).
2355
2356 2010-05-27 Glenn Morris <rgm@gnu.org>
2357
2358 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2359 Convert comments to Makefile format.
2360
2361 * Makefile.in (bootstrap-clean): No more Makefile.c.
2362
2363 2010-05-26 Glenn Morris <rgm@gnu.org>
2364
2365 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2366 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2367
2368 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2369 Remove.
2370 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2371
2372 2010-05-26 Kenichi Handa <handa@m17n.org>
2373
2374 * composite.c (composition_compute_stop_pos): Fix condition for
2375 backward scanning.
2376
2377 2010-05-25 Glenn Morris <rgm@gnu.org>
2378
2379 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2380 Move before TEMACS_LDFLAGS.
2381 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2382 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2383
2384 * Makefile.in (NOT_C_CODE): No longer define.
2385 (config.h): No longer include.
2386
2387 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2388 variables it may reference.
2389
2390 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2391 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2392
2393 2010-05-25 Kenichi Handa <handa@m17n.org>
2394
2395 * dispextern.h (struct composition_it): New members rule_idx and
2396 charpos.
2397
2398 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2399 that the character positions of IT point the last character of the
2400 current grapheme cluster.
2401 (next_element_from_composition): Don't change character positions
2402 of IT.
2403 (append_composite_glyph): Set glyph->charpos to
2404 it->cmp_it.charpos.
2405
2406 * composite.c (autocmp_chars): Change the first argument to RULE,
2407 and try composition with RULE only.
2408 (composition_compute_stop_pos): Record the index number of the
2409 composition rule in CMP_IT->rule_idx.
2410 (composition_reseat_it): Call autocmp_chars repeatedly until the
2411 correct rule of the composition is found.
2412 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2413 is at the last character of the current grapheme cluster when
2414 CMP_IT->reversed_p is nonzero.
2415
2416 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2417
2418 * editfns.c (Fbyte_to_string): New function.
2419
2420 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2421
2422 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2423 Suggested by Masatake YAMATO <yamato@redhat.com>.
2424
2425 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2426
2427 * dispextern.h (init_iterator): Sync prototype with changed definition.
2428
2429 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2430
2431 * s/netbsd.h: If terminfo is found, use it in preference to
2432 termcap. (Bug#6190) [Backport from trunk]
2433
2434 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2435
2436 Redesign and reimplement bidi-aware edge positions of glyph rows.
2437
2438 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2439 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2440 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2441 and maxpos members instead of start.pos and end.pos, respectively.
2442
2443 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2444 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2445 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2446 (try_window_reusing_current_matrix, try_window_id):
2447 Use ROW->minpos rather than ROW->start.pos.
2448 (init_from_display_pos, init_iterator): Use EMACS_INT for
2449 character and byte positions.
2450 (find_row_edges): Rename from find_row_end. Accept additional
2451 arguments for minimum and maximum buffer positions seen by
2452 display_line for this row. Don't use iterator to find the
2453 position following the maximum one; instead, increment the
2454 position found by display_line directly. Fix logic; eol_pos
2455 should be tested before the rest. Handle the case of characters
2456 delivered from display vector (bug#6036). Fix tests related to
2457 it->method. Handle the truncated_on_right_p rows.
2458 (RECORD_MAX_MIN_POS): New macro.
2459 (display_line): Use it to record the minimum and maximum buffer
2460 positions for glyphs in the row being assembled. Record the
2461 position of the newline that terminates the line. If word wrap is
2462 in effect, restore minimum and maximum positions seen up to the
2463 wrap point, when iterator returns to it.
2464 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2465 row and cursor not already at point. Restore original pre-bidi
2466 code for unidirectional buffers.
2467
2468 * dispnew.c (increment_row_positions, check_matrix_invariants):
2469 Increment and check row->start.pos and row->end.pos, in addition
2470 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2471
2472 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2473 Display truncated_on_left_p and truncated_on_right_p flags.
2474 Formatting fixes.
2475 (pmtxrows): Display the ordinal number of each row. Don't display
2476 rows beyond the last one.
2477
2478 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2479 it is not copied by bidi_copy_it.
2480
2481 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2482
2483 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2484 (Bug#6237)
2485
2486 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2487
2488 * image.c (Fimage_flush): Rename from image-refresh.
2489
2490 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2491
2492 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2493 just one window.
2494
2495 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2496 (clear_image_cache): If the number of cached images is unusually
2497 large, decrease the cache eviction delay (Bug#6230).
2498
2499 2010-05-21 Glenn Morris <rgm@gnu.org>
2500
2501 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2502 Move these rules to ns.mk.
2503 * ns.mk: New file.
2504
2505 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2506
2507 * Makefile.in (CANNOT_DUMP): New, set by configure.
2508 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2509
2510 2010-05-20 Juri Linkov <juri@jurta.org>
2511
2512 * fileio.c (Fdelete_file): Change interative spec to use
2513 `read-file-name' like in `find-file-read-args' where the default
2514 value is `default-directory' instead of `buffer-file-name'.
2515 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2516
2517 2010-05-20 Kevin Ryde <user42@zip.com.au>
2518
2519 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2520 (Voverriding_terminal_local_map, Vsystem_key_alist)
2521 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2522
2523 2010-05-20 Glenn Morris <rgm@gnu.org>
2524
2525 * Makefile.in (DEPDIR): New constant.
2526 (DEPFLAGS): Set with configure, not cpp.
2527 (MKDEPDIR): New, set by configure.
2528 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2529 (clean): Use $DEPDIR.
2530 (deps_frag): Include from configure.
2531 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2532 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2533
2534 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2535 reallocation of the cache. (Bug#6210)
2536
2537 2010-05-19 Glenn Morris <rgm@gnu.org>
2538
2539 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2540
2541 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2542 (GNULIB_VAR): Remove.
2543 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2544
2545 * m/ibms390x.h (LINKER):
2546 * m/macppc.h (LINKER) [GNU_LINUX]:
2547 * s/aix4-2.h (ORDINARY_LINK):
2548 * s/cygwin.h (LINKER):
2549 * s/darwin.h (ORDINARY_LINK):
2550 * s/gnu.h (ORDINARY_LINK):
2551 * s/netbsd.h (LINKER):
2552 * s/usg5-4.h (ORDINARY_LINK):
2553 Move to configure.
2554
2555 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2556
2557 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
2558
2559 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2560 prevent stack overflow if number of arguments is too large
2561 (Bug#6214).
2562
2563 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2564
2565 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2566
2567 2010-05-18 Glenn Morris <rgm@gnu.org>
2568
2569 * s/gnu-linux.h: Combine two conditionals.
2570
2571 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2572 $(POST_ALLOC_OBJ).
2573
2574 * Makefile.in (RALLOC_OBJ): New, set by configure.
2575 (rallocobj): Replace with the previous variable.
2576 (otherobj): Use $RALLOC_OBJ.
2577
2578 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2579 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2580
2581 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2582 (gmallocobj, vmlimitobj): Replace with previous two variables.
2583 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2584
2585 2010-05-17 Glenn Morris <rgm@gnu.org>
2586
2587 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2588 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2589
2590 2010-05-16 Glenn Morris <rgm@gnu.org>
2591
2592 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2593
2594 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2595
2596 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2597 trailing "/".
2598
2599 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2600 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2601
2602 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2603 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2604 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2605 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2606 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2607
2608 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2609 Remove ${STARTFLAGS}, nothing ever sets it.
2610
2611 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2612
2613 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2614
2615 2010-05-16 Glenn Morris <rgm@gnu.org>
2616
2617 * Makefile.in (LIBX_BASE): Always define.
2618
2619 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2620
2621 * Makefile.in (LIBXT): Always define.
2622
2623 2010-05-15 Glenn Morris <rgm@gnu.org>
2624
2625 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2626
2627 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2628 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2629
2630 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
2631
2632 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
2633 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2634
2635 * emacs.c (main): Initialize initial-environment and
2636 process-environment before generating from env, not after.
2637
2638 Handle --version reasonably in CANNOT_DUMP configuration.
2639 * emacs.c (emacs_version, emacs_copyright): New string variables.
2640 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2641 (syms_of_emacs): Defvar them, and initialize them from the C
2642 string variables.
2643 (main): If initialization hasn't been done, print initial version
2644 info from the C strings, instead of starting an interactive session.
2645
2646 2010-05-15 Eli Zaretskii <eliz@gnu.org>
2647
2648 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2649 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2650 (bidi_paragraph_init): Remove redundant assertion that we are at
2651 the beginning of a line after call to bidi_find_paragraph_start.
2652
2653 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2654 (syms_of_xdisp): Defsubr it.
2655
2656 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2657
2658 * Makefile.in: Fix MSDOS-related comments.
2659
2660 2010-05-15 Glenn Morris <rgm@gnu.org>
2661
2662 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2663 (really-lwlib, really-oldXMenu): Always define.
2664 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2665
2666 * Makefile.in: Simplify cpp conditional.
2667
2668 * Makefile.in (${ns_appdir}): Simplify using umask.
2669
2670 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2671
2672 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2673
2674 * eval.c (specbind): Remove left-over duplicate test.
2675 Disallow let-binding frame-local vars. Add comment.
2676
2677 2010-05-14 Eli Zaretskii <eliz@gnu.org>
2678
2679 Make the cache of bidi iterator states dynamically allocated.
2680 * bidi.c (bidi_cache_shrink): New function.
2681 (bidi_init_it): Call it.
2682 (bidi_cache_iterator_state): Enlarge the cache if needed.
2683
2684 * bidi.c (bidi_move_to_visually_next): Rename from
2685 bidi_get_next_char_visually. All callers changed.
2686
2687 2010-05-14 Kenichi Handa <handa@m17n.org>
2688
2689 * dispextern.h (struct composition_it): New member reversed_p.
2690
2691 * composite.c (composition_compute_stop_pos): Search backward if
2692 ENDPOS < CHARPOS.
2693 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2694 Set CMP_IT->reversed_p.
2695 (composition_update_it): Pay attention to CMP_IT->reversed_p.
2696
2697 * xdisp.c (set_iterator_to_next):
2698 Call composition_compute_stop_pos with negative ENDPOS if we are
2699 scanning backward. Call composition_compute_stop_pos if scan
2700 direction is changed.
2701 (next_element_from_buffer): Call composition_compute_stop_pos with
2702 negative ENDPOS if we are scanning backward.
2703 (next_element_from_composition): Pay attention to
2704 IT->cmp_it.reversed_p.
2705
2706 2010-05-14 Kenichi Handa <handa@m17n.org>
2707
2708 * font.c (font_range): Return the range for the font found at first.
2709
2710 2010-05-14 Glenn Morris <rgm@gnu.org>
2711
2712 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2713
2714 * Makefile.in (mktime, X11, register): Move undefs to configure.
2715
2716 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2717 (MSDOS_X_OBJ): New variable.
2718 (MSDOS_SUPPORT_REAL): New constant.
2719 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2720 (obj): Use MSDOS_X_OBJ.
2721 (lisp): Use MSDOS_SUPPORT as a variable.
2722
2723 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2724 (GPM_MOUSE_SUPPORT): Now it's a constant.
2725 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2726 not cpp.
2727
2728 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2729 (ns_appresdir): Remove, unused.
2730
2731 * Makefile.in (SHELL): Move outside cpp section.
2732
2733 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2734
2735 2010-05-13 Glenn Morris <rgm@gnu.org>
2736
2737 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2738 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2739
2740 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2741 HAVE_WINDOW_SYSTEM must be too.
2742
2743 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2744 (lisp): Remove WINNT_SUPPORT.
2745
2746 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2747 Let configure set these variables (to empty) in this case as well.
2748
2749 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2750 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2751
2752 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2753 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2754 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2755 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2756 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2757 the values output by configure.
2758 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2759
2760 2010-05-12 Glenn Morris <rgm@gnu.org>
2761
2762 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2763 (LINKER_WAS_SPECIFIED): Remove.
2764
2765 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2766 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2767 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2768 * s/cygwin.h (LIB_GCC):
2769 * s/freebsd.h (LIB_GCC):
2770 * s/gnu-linux.h (LIB_GCC):
2771 * s/msdos.h (LIB_GCC):
2772 * s/netbsd.h (LIB_GCC):
2773 Move to configure.
2774
2775 2010-05-11 Karel Klic <kklic@redhat.com>
2776
2777 * ftfont.c: Fix incorrect parentheses of #if condition for
2778 definining M17N_FLT_USE_NEW_FEATURE.
2779
2780 2010-05-11 Glenn Morris <rgm@gnu.org>
2781
2782 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2783 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2784
2785 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2786
2787 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2788 unibyte buffers. See
2789 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2790
2791 2010-05-10 Glenn Morris <rgm@gnu.org>
2792
2793 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2794 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2795 (LIBES): Use LIBS_SYSTEM as a variable.
2796 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2797 * s/aix4-2.h (LIBS_SYSTEM):
2798 * s/freebsd.h (LIBS_SYSTEM):
2799 * s/hpux10-20.h (LIBS_SYSTEM):
2800 * s/sol2-6.h (LIBS_SYSTEM):
2801 * s/unixware.h (LIBS_SYSTEM):
2802 Move to configure.
2803
2804 * s/aix4-2.h (MAIL_USE_LOCKF):
2805 * s/bsd-common.h (MAIL_USE_FLOCK):
2806 * s/darwin.h (MAIL_USE_FLOCK):
2807 * s/gnu-linux.h (MAIL_USE_FLOCK):
2808 * s/irix6-5.h (MAIL_USE_FLOCK):
2809 * s/template.h (MAIL_USE_FLOCK):
2810 Move to configure.
2811
2812 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2813
2814 * Version 23.2 released.
2815
2816 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2817
2818 * composite.c (autocmp_chars): Save point as marker before calling
2819 auto-composition-function (Bug#5984).
2820
2821 * lisp.h (restore_point_unwind): Add prototype.
2822
2823 * fileio.c (restore_point_unwind): Remove static attribute.
2824
2825 2010-05-08 Kenichi Handa <handa@m17n.org>
2826
2827 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2828 new feature of libotf and m17n-flt.
2829 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2830 Call OTF_check_features even if no specific feature is given.
2831 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2832 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2833 that OUT is NULL. Use OTF_drive_gsub_with_log and
2834 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2835 OTF_drive_gpos.
2836 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2837 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2838 Setup mflt_enable_new_feature and mflt_try_otf.
2839
2840 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2841
2842 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2843
2844 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2845 box and toolbar (Bug #6139).
2846 (xg_create_tool_bar): Remove comment (Bug #6139).
2847 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2848 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2849
2850 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
2851
2852 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2853 Update dependencies.
2854
2855 2010-05-08 Eli Zaretskii <eliz@gnu.org>
2856
2857 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2858 R2L lines.
2859
2860 2010-05-08 Glenn Morris <rgm@gnu.org>
2861
2862 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2863
2864 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2865 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2866 (termcapobj): Replace with TERMCAP_OBJ.
2867 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2868 (LIBES): Use LIBS_TERMCAP as a variable.
2869
2870 * s/freebsd.h (osreldate.h): No longer include, since this file
2871 does not use __FreeBSD_version any more.
2872
2873 * s/aix4-2.h (TERMINFO):
2874 * s/cygwin.h (TERMINFO):
2875 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2876 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2877 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2878 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2879 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2880 * s/irix6-5.h (TERMINFO):
2881 * s/netbsd.h (LIBS_TERMCAP):
2882 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2883 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2884 * s/usg5-4.h (TERMINFO):
2885 Move to configure.
2886
2887 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2888
2889 * eval.c (unbind_to): Don't unbind a local binding into the global
2890 binding when the local binding disappeared. Inversely, don't unbind
2891 a global binding into a newly created local binding.
2892 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2893 can specify the frame to use, when applicable. Adjust callers.
2894
2895 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
2896 Stefan Monnier <monnier@iro.umontreal.ca>
2897
2898 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2899
2900 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2901
2902 * w32fns.c: Include w32.h.
2903 (Fw32_shell_execute): Decode the error message before passing it
2904 to `error'. (Bug#6126)
2905
2906 * msdos.c (dos_set_window_size):
2907 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2908 instead of `XSYMBOL (foo)->value'.
2909
2910 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2911
2912 Fix the MS-DOS build, broken by autoconfiscation.
2913
2914 * Makefile.in: Don't use Make-style comments past the "start of
2915 cpp stuff" line.
2916 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2917
2918 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2919 edited directly by msdos/sed1v2.inp).
2920
2921 2010-05-07 Glenn Morris <rgm@gnu.org>
2922
2923 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2924 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2925 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2926 move out of cpp section.
2927 * s/freebsd.h (LD_SWITCH_SYSTEM):
2928 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2929 * s/netbsd.h (LD_SWITCH_SYSTEM):
2930 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2931
2932 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2933
2934 Define LIB_STANDARD and START_FILES using autoconf.
2935 * s/usg5-4.h (LIB_STANDARD):
2936 * s/netbsd.h (START_FILES):
2937 * s/irix6-5.h (LIB_STANDARD):
2938 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2939 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2940 * s/freebsd.h (START_FILES):
2941 * s/darwin.h (START_FILES):
2942 * s/cygwin.h (START_FILES):
2943 * s/aix4-2.h (LIB_STANDARD):
2944 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2945 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2946 autoconf, not cpp.
2947
2948 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2949
2950 Remove NEED_BSDTTY and NEED_UNISTD_H.
2951 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2952 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2953 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2954 <sys/ptyio.h> and <unistd.h>.
2955
2956 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2957
2958 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2959 * s/gnu.h (START_FILES): Remove empty definition.
2960
2961 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2962
2963 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2964
2965 2010-05-06 Glenn Morris <rgm@gnu.org>
2966
2967 * Makefile.in (CPP, LN_S): Remove unused variables.
2968
2969 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2970
2971 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2972
2973 2010-05-05 Lawrence Mitchell <wence@gmx.li>
2974
2975 * m/sparc.h: Fix typo in earlier change.
2976
2977 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2978
2979 Misc tweaks.
2980 * eval.c (Fdefvaralias): Remove unintended nested if.
2981 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2982
2983 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
2984
2985 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2986
2987 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2988
2989 Remove BSD_PGRPS.
2990 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2991 * s/gnu-linux.h (BSD_PGRPS): Remove.
2992 * term.c (dissociate_if_controlling_tty):
2993 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2994 (init_sys_modes, reset_sys_modes):
2995 * emacs.c (main):
2996 * callproc.c (Fcall_process, child_setup): Remove code depending
2997 on BSD_PGRPS.
2998
2999 Remove POSIX_SIGNALS.
3000 * s/usg5-4.h (POSIX_SIGNALS):
3001 * s/netbsd.h (POSIX_SIGNALS):
3002 * s/msdos.h (POSIX_SIGNALS):
3003 * s/ms-w32.h (POSIX_SIGNALS):
3004 * s/hpux11.h (POSIX_SIGNALS):
3005 * s/gnu.h (POSIX_SIGNALS):
3006 * s/gnu-linux.h (POSIX_SIGNALS):
3007 * s/freebsd.h (POSIX_SIGNALS):
3008 * s/darwin.h (POSIX_SIGNALS):
3009 * s/cygwin.h (POSIX_SIGNALS):
3010 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3011 * s/unixware.h:
3012 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3013 * process.c (create_process):
3014 * syssignal.h:
3015 * sysdep.c (wait_for_termination, init_signals):
3016 * process.c (create_process):
3017 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3018 remove all code that assumes the contrary.
3019
3020 2010-05-04 Glenn Morris <rgm@gnu.org>
3021
3022 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3023 variable.
3024 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3025 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3026 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3027 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3028 LD_SWITCH_SYSTEM_tmp.
3029 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3030 New variables, set by configure.
3031
3032 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3033 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3034 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3035 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3036 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3037
3038 * s/aix4-2.h (C_SWITCH_SYSTEM):
3039 * m/alpha.h (C_SWITCH_MACHINE):
3040 Move to configure.in.
3041 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3042 New variables, set by configure.
3043 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3044 $c_switch_machine and $c_switch_system.
3045
3046 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3047
3048 * s/hpux10-20.h (LIB_STANDARD): New definition.
3049 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3050 on it, not used anymore.
3051
3052 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
3053
3054 * eval.c (internal_condition_case_n): Rename from
3055 internal_condition_case_2.
3056 (internal_condition_case_2): New function.
3057
3058 * xdisp.c (safe_call): Use internal_condition_case_n.
3059
3060 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3061 (internal_delete_file, Frename_file): Callers changed.
3062
3063 * buffer.c (Fkill_buffer):
3064 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3065
3066 * lisp.h: Update prototypes.
3067
3068 2010-05-03 Glenn Morris <rgm@gnu.org>
3069
3070 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3071 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3072 (LIBXT): Set with configure, not cpp.
3073 (LIBX): Remove.
3074 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3075
3076 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3077
3078 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3079 The FreeBSD is not needed, the default works, Solaris version is
3080 not needed, and the remaining case is not supported by configure.
3081
3082 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3083
3084 * xsmfns.c (CHDIR_OPT): New define.
3085 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3086 restarting emacs.
3087
3088 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3089 shut_down_emacs.
3090
3091 * emacs.c (USAGE1): Mention --chdir.
3092 (main): Handle --chdir.
3093 (standard_args): Add --chdir.
3094 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3095 #5552).
3096
3097 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3098
3099 Remove LD_SWITCH_MACHINE.
3100 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3101 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3102
3103 Clean up IRIX code.
3104 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3105 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3106
3107 Clean up AIX code.
3108 * m/ibmrs6000.inp: Remove file, unused.
3109 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3110 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3111 definition ...
3112 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3113
3114 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3115 unused.
3116
3117 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3118
3119 Emulate POSIX_SIGNALS on MS-Windows.
3120
3121 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3122 (SIG_SETMASK, SIG_UNBLOCK): Define.
3123
3124 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3125 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3126 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3127
3128 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3129 New stubs.
3130
3131 Miscellaneous fixes of bidi display.
3132
3133 * xdisp.c (find_row_end): New function, refactored from display_line.
3134 (display_line): Use it.
3135 (extend_face_to_end_of_line): In almost-filled rows, extend only
3136 if the row is R2L and not continued.
3137 (display_line): Fix prepending of truncation glyphs to R2L rows.
3138 Preserve overlay and string info in row->end.
3139 (insert_left_trunc_glyphs): Support addition of left truncation
3140 glyphs to R2L rows.
3141 (set_cursor_from_row): Don't place cursor on the vertical border
3142 glyph between adjacent windows. Fix a crash when a display string
3143 is continued to the next line. Don't return zero if cursor was
3144 found by `cursor' property of a display string.
3145 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3146 test for that explicitly.
3147
3148 2010-05-01 Glenn Morris <rgm@gnu.org>
3149
3150 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3151 for clarity.
3152 (OTHER_OBJ): Remove.
3153 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3154 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3155
3156 2010-05-01 Karel Klíč <kklic@redhat.com>
3157
3158 * fileio.c (Ffile_selinux_context): Context functions may return null.
3159
3160 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3161
3162 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3163
3164 2010-04-30 Glenn Morris <rgm@gnu.org>
3165
3166 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3167 (OTHER_OBJ): Define as a separate variable, for clarity.
3168
3169 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3170
3171 * xsettings.c: include limits.h and update file comment.
3172
3173 2010-04-30 Glenn Morris <rgm@gnu.org>
3174
3175 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3176 Set with configure, not cpp.
3177 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3178
3179 * Makefile.in (mallocobj): Remove.
3180 (otherobj): Simplify using @OTHER_OBJ@.
3181
3182 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3183 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3184 Don't bother making nsgui.h dependency platform-specific.
3185
3186 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3187
3188 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3189
3190 * process.c (read_process_output, exec_sentinel): Don't burp if the
3191 sentinel/filter kills the current buffer (bug#6060).
3192
3193 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3194 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3195 Remove unused var `args'.
3196 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3197 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3198 * doc.c (store_function_docstring): Use XSETCAR.
3199
3200 2010-04-28 Glenn Morris <rgm@gnu.org>
3201
3202 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3203 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3204
3205 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3206
3207 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3208 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3209
3210 * Makefile.in (FONT_OBJ): New, set by configure.
3211 (FONT_DRIVERS): Use $FONT_OBJ.
3212
3213 * Makefile.in (LIBXMU): Set with configure, not cpp.
3214 * s/aix4-2.h (LIBXMU):
3215 * s/hpux10-20.h (LIBXMU):
3216 Remove definition, now set in configure.
3217
3218 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3219
3220 * m/amdx86-64.h [i386]: Move this test to configure.in.
3221
3222 2010-04-27 Glenn Morris <rgm@gnu.org>
3223
3224 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3225 * s/unixware.h (NEED_LIBW): Remove definition.
3226
3227 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3228 (TOOLKIT_LIBW): New, set by configure.
3229 (@X_TOOLKIT_TYPE@): No longer define it.
3230
3231 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3232 (MOTIF_LIBW): Set with configure, not cpp.
3233 * s/aix4-2.h (LIB_MOTIF):
3234 * s/gnu-linux.h (LIB_MOTIF):
3235 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3236
3237 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3238
3239 Reduce CPP usage.
3240 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3241 (obj): Use autoconf for unexec instead of cpp.
3242 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3243 definitions and undefs. Inline definitions in the only user.
3244 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3245
3246 2010-04-27 Glenn Morris <rgm@gnu.org>
3247
3248 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3249 since the defaults (set by the system file) are fine in most cases.
3250 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3251 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3252 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3253 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3254 Remove definitions, since they are set correctly in s/gnu-linux.h.
3255 * s/freebsd.h (START_FILES, LIB_STANDARD):
3256 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3257 * s/hpux10-20.h (START_FILES):
3258 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3259 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3260
3261 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3262 (MOTIF_LIBW): Use $LIBXP.
3263 (otherobj): Use $WIDGET_OBJ.
3264
3265 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3266
3267 * Makefile.in (LIBS_MACHINE): Remove, unused.
3268
3269 Use autoconf instead of cpp for LIB_MATH.
3270 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3271 * s/cygwin.h (LIB_MATH): Likewise.
3272 * Makefile.in (LIB_MATH): Do not define with cpp.
3273 (LIBES): Use autoconf for LIB_MATH.
3274
3275 2010-04-26 Kenichi Handa <handa@m17n.org>
3276
3277 * composite.c (Ffind_composition_internal): Fix the return value
3278 for an automatic composition.
3279
3280 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3281
3282 Remove all NO_ARG_ARRAY uses.
3283 * fns.c (concat2, concat3, nconc2):
3284 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3285 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3286 * m/xtensa.h (NO_ARG_ARRAY):
3287 * m/template.h (NO_ARG_ARRAY):
3288 * m/sparc.h (NO_ARG_ARRAY):
3289 * m/sh3.h (NO_ARG_ARRAY):
3290 * m/mips.h (NO_ARG_ARRAY):
3291 * m/macppc.h (NO_ARG_ARRAY):
3292 * m/iris4d.h (NO_ARG_ARRAY):
3293 * m/intel386.h (NO_ARG_ARRAY):
3294 * m/ibms390x.h (NO_ARG_ARRAY):
3295 * m/ibms390.h (NO_ARG_ARRAY):
3296 * m/ibmrs6000.h (NO_ARG_ARRAY):
3297 * m/ia64.h (NO_ARG_ARRAY):
3298 * m/hp800.h (NO_ARG_ARRAY):
3299 * m/arm.h (NO_ARG_ARRAY):
3300 * m/amdx86-64.h (NO_ARG_ARRAY):
3301 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3302
3303 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3304
3305 * xdisp.c (display_line): Don't assume 2nd call to
3306 get_next_display_element cannot return zero. (Bug#6030)
3307 (iterate_out_of_display_property): New function, body from pop_it.
3308 (pop_it): Use it.
3309
3310 2010-04-24 Glenn Morris <rgm@gnu.org>
3311
3312 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3313 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3314 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3315 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3316
3317 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3318
3319 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3320 use `get_next_display_element' and `set_iterator_to_next' to
3321 advance to the next character, when looking for the character that
3322 begins the next row.
3323
3324 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3325 definition of "struct Lisp_Symbol".
3326
3327 2010-04-24 Glenn Morris <rgm@gnu.org>
3328
3329 * Makefile.in (CRT_DIR): New variable, set by configure.
3330 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3331 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3332
3333 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3334
3335 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3336
3337 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3338
3339 Remove redundant flags.
3340 * s/freebsd.h (C_SWITCH_SYSTEM):
3341 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3342 * s/netbsd.h (C_SWITCH_SYSTEM):
3343 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3344 of these.
3345
3346 Simplify m/intel386.h.
3347 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3348 user: ecrt0.c.
3349 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3350 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3351 the only user: s/unixware.h.
3352 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3353 from m/intel386.h.
3354 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3355 moved here from m/intel386.h.
3356
3357 * m/mips.h: Remove #if 0 code.
3358
3359 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3360
3361 Fix display of composed characters from L2R scripts in bidi buffers.
3362 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3363 After advancing IT past the composition, resync the bidi iterator
3364 with IT's position. (Bug#5977)
3365
3366 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3367
3368 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3369 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3370
3371 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3372
3373 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3374
3375 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3376
3377 Support `display' text properties and overlay strings in bidi buffers.
3378 * xdisp.c (pop_it): When the stack is popped after displaying
3379 from a string, bidi-iterate to exit from the text portion covered
3380 by the `display' property or overlay. (Bug#5988, bug#5920)
3381
3382 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3383
3384 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3385 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3386
3387 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3388 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3389
3390 Simplify STARTFILES definition.
3391 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3392 relying on Makefile.in to define it.
3393 * s/cygwin.h (START_FILES): Likewise.
3394 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3395
3396 Clean up Solaris code.
3397 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3398 (LIB_MOTIF): Remove, configure takes care of this.
3399 (NOT_USING_MOTIF): Remove, unused.
3400 * xrdb.c: Remove #if 0-ed #include.
3401 (SYSV): Remove conditional for old SysV.
3402 * sysdep.c (closedir): Remove conditional code for Solaris,
3403 Solaris has closedir.
3404
3405 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3406
3407 * xsettings.c (read_and_apply_settings): Check if current_font is
3408 NULL before strcmp (Bug#6001).
3409
3410 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3411
3412 Clean up HP-UX files.
3413 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3414 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3415 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3416 * s/hpux10-20.h: ... to the only user, here.
3417
3418 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3419
3420 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3421 use buffer-local values of paragraph-start and paragraph-separate.
3422 <paragraph_start_re, paragraph_separate_re>: Rename from
3423 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3424 (Bug#5992)
3425
3426 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3427
3428 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3429 current_tool_bar_style are new.
3430 (store_config_changed_event): Rename from store_font_changed_event.
3431 (XSETTINGS_TOOL_BAR_STYLE): New define.
3432 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3433 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3434 HAVE_XFT.
3435 (something_changedCB): store_font_changed_event is now
3436 store_config_changed_event.
3437 (parse_settings): Rename from parse_xft_settings. Read
3438 non-xft xsettings outside #ifdef HAVE_XFT.
3439 (read_settings): Renamed from read_xft_settings.
3440 (apply_xft_settings): Take current settings as parameter. Do not
3441 call read_(xft)_settings.
3442 (read_and_apply_settings): New function.
3443 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3444 read_and_apply_settings if there are settings to be read.
3445 (init_xsettings): Renamed from init_xfd_settings.
3446 Call read_and_apply_settings unconditionally.
3447 (xsettings_initialize): Call init_xsettings.
3448 (Ftool_bar_get_system_style): New function.
3449 (syms_of_xsettings): Define Qmonospace_font_name and
3450 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3451 defsubr Stool_bar_get_system_style. Fprovide on
3452 dynamic-setting.
3453 Move misplaced HAVE_GCONF
3454
3455 * xsettings.h (Ftool_bar_get_system_style): Declare.
3456
3457 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3458 Qtext, Qboth, Qboth_horiz are new.
3459 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3460 Vtool_bar_style, tool_bar_max_label_size.
3461
3462 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3463
3464 * keyboard.c: QClabel is new.
3465 (parse_tool_bar_item): Take out QClabel from tool bar items.
3466 Try to construct a label if ther is no QClabel.
3467 (syms_of_keyboard): Intern :label as QClabel.
3468
3469 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3470 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3471 New.
3472
3473 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3474 dynamic-setting.el.
3475
3476 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3477 (xg_make_tool_item, xg_show_toolbar_item): New function.
3478 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3479 Call xg_make_tool_item to make a tool bar item.
3480 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3481
3482 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3483 into account for toolbars.
3484
3485 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3486
3487 * data.c (make_blv): Declarations before code (Bug#5993).
3488
3489 2010-04-21 Glenn Morris <rgm@gnu.org>
3490
3491 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3492 Define using autoconf, not cpp.
3493 (LIBXSM): New variable, set by autoconf.
3494 (LIBXT): Use $LIBXSM.
3495
3496 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3497
3498 Remove NOMULTIPLEJOBS, unused.
3499 * s/template.h (NOMULTIPLEJOBS):
3500 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3501
3502 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3503 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3504 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3505 detects -znocombreloc and passes it to the linker
3506 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3507
3508 2010-04-21 Glenn Morris <rgm@gnu.org>
3509
3510 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3511
3512 2010-04-21 Karel Klíč <kklic@redhat.com>
3513
3514 * Makefile.in (LIBSELINUX_LIBS): New.
3515 (LIBES): Add $LIBSELINUX_LIBS.
3516 * eval.c, lisp.h (call7): New function.
3517 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3518 (Ffile_selinux_context, Fset_file_selinux_context):
3519 New functions.
3520 (Fcopy_file): New parameter preserve-selinux-context.
3521 (Frename_file): Preserve selinux context when renaming by copy-file.
3522
3523 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3524 Eli Zaretskii <eliz@gnu.org>
3525
3526 Don't depend on cm.c or termcap.c on Windows, use stubs.
3527 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3528 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3529 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3530 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3531 (sys_tputs, sys_tgetstr): New stubs.
3532 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3533 (tputs, tgetstr): New; define to sys_*.
3534
3535 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3536
3537 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3538
3539 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3540
3541 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3542 Just signal a warning rather than an error when inside a let.
3543 (Fmake_variable_frame_local): Add the same test.
3544
3545 * font.c (syms_of_font): Make the style table vars read-only.
3546
3547 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3548 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3549
3550 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3551
3552 2010-04-20 Eli Zaretskii <eliz@gnu.org>
3553
3554 Fix R2L paragraph display on TTY.
3555
3556 * xdisp.c (unproduce_glyphs): New function.
3557 (display_line): Use it when produced glyphs are discarded from R2L
3558 glyph rows.
3559 (append_composite_glyph): In R2L rows, prepend the glyph rather
3560 than appending it.
3561
3562 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3563 rather than append it. Set up the resolved_level and bidi_type
3564 attributes of the appended glyph.
3565 (produce_special_glyphs): Mirror the backslash continuation
3566 character in R2L lines.
3567
3568 Implement display of R2L paragraphs in GUI sessions.
3569
3570 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3571 append_stretch_glyph.
3572 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3573 off-by-one error in computing x at end of text in the row.
3574 (append_stretch_glyph): In reversed row, prepend the glyph rather
3575 than append it. Set resolved_level and bidi_type of the glyph.
3576 (extend_face_to_end_of_line): If the row is reversed, prepend a
3577 stretch glyph whose width is such that the rightmost glyph will be
3578 drawn at the right margin of the window. Fix off-by-one error on
3579 TTY frames in testing whether a line needs face extension. Fix
3580 face extension at ZV. If this is the last glyph row, use
3581 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3582 region face.
3583 (set_cursor_from_row, display_line): Use
3584 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3585 row->continuation_lines_width.
3586 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3587 are at ZV. Fixes a crash when reseated to ZV by
3588 try_window_reusing_current_matrix.
3589 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3590 which happens with R2L glyph rows. Fixes a crash when inserting a
3591 character at end of an R2L line.
3592 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3593 treat them as having zero-width characters. Improve comments.
3594 Don't reverse pos_before and pos_after for reversed glyph rows.
3595 Set cursor.x to negative value when the cursor might be on the
3596 left fringe.
3597 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3598 left fringe, not the right one.
3599 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3600 (erase_phys_cursor): For reversed cursor_row, support cursor on
3601 the left fringe.
3602
3603 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3604 of continuation indicators on the fringes.
3605 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3606 left fringe.
3607
3608 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3609 draw cursor on the left fringe.
3610
3611 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3612 cursor on the left fringe.
3613
3614 * dispnew.c (update_text_area): Handle reversed desired rows when
3615 the cursor is on the left fringe.
3616 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3617 below, not by 0, for when the cursor is on the left fringe.
3618
3619 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3620
3621 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3622 widget is a scrollbar.
3623
3624 2010-04-20 Kenichi Handa <handa@m17n.org>
3625
3626 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3627 only when the arg CHARSET_LIST is nil.
3628
3629 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3630
3631 Make variable forwarding explicit rather the using special values.
3632 Basically, this makes the structure of buffer-local values and object
3633 forwarding explicit in the type of Lisp_Symbols rather than use
3634 special Lisp_Objects for that. This tends to lead to slightly more
3635 verbose code, but is more C-like, simpler, and makes it easier to make
3636 sure we handled all cases, among other things by letting the compiler
3637 help us check it.
3638 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3639 Removing forwarding objects.
3640 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3641 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3642 explicit rather than hiding them inside Lisp_Object "values".
3643 (XFWDTYPE): New macro.
3644 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3645 (XBUFFER_LOCAL_VALUE): Remove.
3646 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3647 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3648 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3649 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3650 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3651 Remove the Lisp_Misc_* header.
3652 (struct Lisp_Buffer_Local_Value): Redefine.
3653 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3654 (struct Lisp_Misc_Any): Add filler to get the right size.
3655 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3656 Lisp_Intfwd.
3657 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3658 (DEFVAR_KBOARD): Allocate a forwarding object.
3659 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3660 (let_shadows_global_binding_p): New function.
3661 (union Lisp_Val_Fwd): New type.
3662 (make_blv): New function.
3663 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3664 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3665 (swap_in_symval_forwarding, find_symbol_value, Fset)
3666 (let_shadows_buffer_binding_p, set_internal, default_value)
3667 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3668 (Fkill_local_variable, Fmake_variable_frame_local)
3669 (Flocal_variable_p, Flocal_variable_if_set_p)
3670 (Fvariable_binding_locus):
3671 * xdisp.c (select_frame_for_redisplay):
3672 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3673 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3674 * frame.c (store_frame_param):
3675 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3676 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3677 value structure.
3678 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3679 (clone_per_buffer_values): Only adjust markers into the current buffer.
3680 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3681 (Fbuffer_local_value, set_buffer_internal_1)
3682 (swap_out_buffer_local_variables):
3683 Adapt to the new symbol value structure.
3684 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3685 (defvar_per_buffer): Take a new arg for the fwd object.
3686 (buffer_lisp_local_variables): Return a proper alist (different fix
3687 for bug#4138).
3688 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3689 (Fgarbage_collect): Don't handle buffer_defaults specially.
3690 (mark_object): Handle new symbol value structure rather than the old
3691 special Lisp_Misc_* objects.
3692 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3693 * term.c (set_tty_color_mode):
3694 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3695 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3696 a buffer_local_flags.
3697 * print.c (print_object): Get rid of impossible forwarding objects.
3698
3699 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3700
3701 * bidi.c (bidi_get_type, bidi_get_category)
3702 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3703 (bidi_type_of_next_char, bidi_level_of_next_char):
3704 Declare static. Use `INLINE' rather than `inline'.
3705
3706 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3707
3708 * dired.c (Ffile_attributes): Fix typo in docstring.
3709
3710 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3711
3712 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3713 NSInteger (Bug#5811).
3714
3715 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3716
3717 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3718 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3719
3720 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3721
3722 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3723
3724 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
3725
3726 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3727 terminal frames (Bug#5837).
3728
3729 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3730
3731 * .gdbinit (xsubchartable): New command.
3732
3733 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3734
3735 * xdisp.c (display_line): Don't write beyond the last glyph row in
3736 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3737 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3738 and
3739 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3740
3741 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3742
3743 * alloc.c (Fpurecopy): Hash-cons if requested.
3744 (syms_of_alloc): Update purify-flag docstring.
3745
3746 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3747
3748 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3749 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3750
3751 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3752
3753 Fix a crash when an NSM character is inserted at BEGV.
3754
3755 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3756 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3757 NEUTRAL_B or UNKNOWN_BT.
3758
3759 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3760
3761 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3762 other rows with cursor unless they are different from this row and
3763 this row is part of a continued line. (Bug#5943)
3764
3765 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3766
3767 * s/freebsd.h: Restore osreldate.h include.
3768 Suggested by Naohiro Aota.
3769
3770 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3771
3772 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3773
3774 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3775
3776 * s/cygwin.h: Avoid linking against static libgcc.
3777
3778 2010-04-15 Juri Linkov <juri@jurta.org>
3779
3780 * window.c: Add Qscroll_command.
3781 Remove Vscroll_preserve_screen_position_commands.
3782 (window_scroll_pixel_based, window_scroll_line_based): Check the
3783 `scroll-command' property on the last command instead of searching
3784 the last command in Vscroll_preserve_screen_position_commands.
3785 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3786 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3787 (scroll-preserve-screen-position): Doc fix.
3788 (Vscroll_preserve_screen_position_commands): Remove variable.
3789
3790 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3791
3792 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3793
3794 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3795
3796 Reduce cpp use in Makefile.in.
3797 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3798 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3799 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3800 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3801 (CRT0_COMPILE): Remove, inline it in the only user.
3802
3803 2010-04-14 Juri Linkov <juri@jurta.org>
3804
3805 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3806 `scroll-up-command' and `M-v' from `scroll-down' to
3807 `scroll-down-command'.
3808
3809 2010-04-14 Juri Linkov <juri@jurta.org>
3810
3811 * window.c (Vscroll_preserve_screen_position_commands): New variable
3812 with the default value as the list of Qscroll_down and Qscroll_up.
3813 (window_scroll_pixel_based, window_scroll_line_based): Search the
3814 last command in the list Vscroll_preserve_screen_position_commands
3815 instead of comparing with Qscroll_up and Qscroll_down.
3816
3817 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3818
3819 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3820 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3821 does that.
3822
3823 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3824 to zero.
3825
3826 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3827
3828 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3829
3830 Try to solve the problem of spurious EOF chars in long lines of text
3831 sent to interactive subprocesses.
3832 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3833 (system_process_attributes): Remove unused var `ttotal'.
3834 * process.c (send_process): Don't bother breaking long line with EOF
3835 chars when talking to ttys any more.
3836 (wait_reading_process_output): Output a warning when called in such
3837 a way that it could block without being interruptible.
3838
3839 Try to detect file modification within the same second.
3840 * buffer.h (struct buffer): New field modtime_size.
3841 * buffer.c (reset_buffer): Initialize it.
3842 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3843 (Fverify_visited_file_modtime): Check it.
3844 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3845 (Fset_visited_file_modtime): Set (or clear) it.
3846
3847 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3848
3849 * process.c (status_notify): Remove unused var `ro'.
3850
3851 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3852
3853 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3854 more than one visual (Bug#5938).
3855
3856 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3857
3858 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3859 Undefine.
3860
3861 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3862
3863 Remove C_SWITCH_SYSTEM_TEMACS.
3864 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3865 (malloc, realloc, free): Use emacs, not temacs for conditional
3866 definition.
3867
3868 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3869 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3870
3871 Use autoconf, not cpp for some variables.
3872 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3873 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3874 (ALL_CFLAGS): Use them as make variables.
3875 (really-lwlib, really-oldXMenu): Do not pass them.
3876
3877 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3878
3879 * xmenu.c (apply_systemfont_to_dialog): New.
3880 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3881
3882 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 * process.c (exec_sentinel): Preserve current-buffer.
3885
3886 * process.c (read_process_output): Move the save-current-buffer to
3887 apply to both the filter and the non-filter branches.
3888
3889 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3890
3891 * s/msdos.h (UNEXEC): New definition.
3892
3893 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3894
3895 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3896 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3897
3898 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3899 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3900 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3901 TRY_WINDOW_CHECK_MARGINS.
3902
3903 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
3904 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3905 width only when it is for padding.
3906
3907 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3908
3909 * xfns.c (Fx_show_tip): Call try_window in a loop until
3910 fonts_changed_p is zero (Bug#2423).
3911
3912 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3913
3914 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3915 the end of TEXT_AREA. (Bug#5856)
3916
3917 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3918
3919 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3920 HAVE_GCONF.
3921
3922 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3923
3924 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3925 prev.orig_type, for resolving type of NSM. (Bug#5858)
3926
3927 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3928
3929 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3930 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3931 in current_font.
3932 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3933 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3934 New functions.
3935 (syms_of_xsettings): Initialize current_font.
3936 defsubr Sfont_get_system_normal_font.
3937
3938 * xsettings.h (Ffont_get_system_normal_font)
3939 (xsettings_get_system_normal_font): Declare.
3940
3941 * xfns.c (extern xlwmenu_default_font): Remove.
3942 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3943 to xlwmenu.c.
3944
3945 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3946 menu items in UTF-8.
3947
3948 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3949 (apply_systemfont_to_menu): New function.
3950 (set_frame_menubar, create_and_show_popup_menu): Call
3951 apply_systemfont_to_menu.
3952
3953 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3954
3955 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3956 FRAME_LINE_TO_PIXEL_Y.
3957
3958 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3959 pixelwidth/height.
3960
3961 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3962
3963 Simplify code for HP machines.
3964 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3965 for GNU_LINUX, not needed.
3966 (UNEXEC, NEED_BSDTTY): Move definitions...
3967 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3968
3969 * m/iris4d.h (UNEXEC): Move definition ...
3970 * s/irix6-5.h (UNEXEC): ... here.
3971
3972 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3973
3974 * xfns.c (set_machine_and_pid_properties): New function.
3975 (Fx_create_frame): Call set_machine_and_pid_properties.
3976
3977 2010-04-03 Eli Zaretskii <eliz@gnu.org>
3978
3979 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3980 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3981 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3982
3983 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3984 in this function. (Bug#5703)
3985
3986 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
3987
3988 * nsterm.h: Fix last change.
3989
3990 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3991
3992 * m/intel386.h (NO_REMAP): Move definition ...
3993 * s/msdos.h (NO_REMAP): ... here.
3994
3995 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3996
3997 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3998 used on those platforms.
3999
4000 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4001
4002 Remove extern errno declarations.
4003 * xterm.c:
4004 * xrdb.c:
4005 * w32term.c:
4006 * unexec.c:
4007 * unexaix.c:
4008 * sysdep.c:
4009 * process.c:
4010 * lread.c:
4011 * keyboard.c:
4012 * floatfns.c:
4013 * filelock.c:
4014 * fileio.c:
4015 * emacs.c (main):
4016 * ecrt0.c:
4017 * dispnew.c:
4018 * callproc.c:
4019 * buffer.c: Remove errno extern declarations.
4020 * s/netbsd.h (NEED_ERRNO): Remove.
4021
4022 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4023
4024 Remove all uses of LIBX11_SYSTEM.
4025 * Makefile.in (LIBX11_SYSTEM): Remove.
4026 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4027 instead.
4028
4029 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4030
4031 Remove support for DJGPP v1.x (bug#5813).
4032
4033 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
4034 * s/msdos.h:
4035 * unexec.c (make_hdr, copy_text_and_data):
4036 * sysdep.c (wait_for_termination, sys_subshell):
4037 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
4038 (IT_set_terminal_modes, __write, _rename, gethostname)
4039 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4040 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4041 the value of __DJGPP__.
4042 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4043 compatibility code.
4044 * lread.c:
4045 * gmalloc.c (memalign):
4046 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4047 * emacs.c (main):
4048 * dosfns.c (init_dosfns):
4049 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4050
4051 2010-04-01 Eli Zaretskii <eliz@gnu.org>
4052
4053 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4054 string with `cursor' property comes from an `after-string'
4055 overlay. (Bug#5816)
4056
4057 2010-04-01 Glenn Morris <rgm@gnu.org>
4058
4059 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4060 Define as Makefile variables.
4061 (LIBX): Use above variables rather than directly using autoconf.
4062
4063 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4064
4065 Clean up BSD_SYSTEM use.
4066 * xterm.c:
4067 * process.c:
4068 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4069 for including <sys/ioctl.h>.
4070 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4071 code is only used for MSDOS.
4072
4073 2010-03-31 Juri Linkov <juri@jurta.org>
4074
4075 * image.c: Add `Qextension_data'.
4076 (syms_of_image): Initialize and staticpro `Qextension_data'.
4077 (Fimage_metadata): Rename from `Fimage_extension_data'.
4078 (gif_load): Put GIF extension data to the property
4079 `Qextension_data'.
4080
4081 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4082
4083 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4084 * nsterm.h: Fix prototype.
4085
4086 2010-03-31 Eli Zaretskii <eliz@gnu.org>
4087
4088 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4089 trailing whitespace in right-to-left rows.
4090
4091 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4092
4093 Get rid of the direct_output optimizations.
4094 * keyboard.c (nonundocount): Remove extern declaration.
4095 (command_loop_1): Remove brittle optimisation for cheap and
4096 common operations.
4097 * xdisp.c (redisplay_internal): Don't bother checking
4098 redisplay_performed_directly_p any more.
4099 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4100 any more.
4101 * dispnew.c (redisplay_performed_directly_p)
4102 (direct_output_for_insert, direct_output_forward_char):
4103 * dispextern.h (redisplay_performed_directly_p)
4104 (direct_output_for_insert, direct_output_forward_char): Remove.
4105 * cmds.c (nonundocount): Make it static.
4106
4107 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
4108
4109 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4110
4111 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4112
4113 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4114 invisible (Bug#5766).
4115
4116 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4117
4118 * xdisp.c (x_consider_frame_title, update_window_cursor):
4119 Remove HAVE_NS conditionals.
4120 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4121
4122 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4123 filename for the title.
4124 (ns_set_doc_edited): Do nothing if the selected window is a
4125 minibuffer window.
4126
4127 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4128 ns_set_doc_edited.
4129
4130 * nsterm.m: Remove unneeded prototype.
4131
4132 2010-03-31 Glenn Morris <rgm@gnu.org>
4133
4134 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4135 in the DOC file. (Bug#5336)
4136
4137 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4138
4139 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4140
4141 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4142
4143 * window.c (keys_of_window): Remove redundant/overridden bindings.
4144
4145 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4146
4147 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4148 Restore original behavior when the iterator is not bidi_p.
4149
4150 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4151
4152 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4153
4154 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4155
4156 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4157 are outside the range of cached character positions.
4158
4159 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4160
4161 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4162
4163 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4164
4165 Initial support for bidirectional editing.
4166
4167 * Makefile.in (obj): Include bidi.o.
4168 (bidi.o): New target.
4169
4170 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4171 ($(BLD)/bidi.$(O)): New target.
4172
4173 * bidi.c: New file.
4174
4175 * buffer.h (struct buffer): New members bidi_display_reordering
4176 and bidi_paragraph_direction.
4177
4178 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4179 and bidi_paragraph_direction.
4180 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4181 and bidi-paragraph-direction.
4182 (Fbuffer_swap_text): Swap the values of
4183 bidi_display_reordering and bidi_paragraph_direction.
4184
4185 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4186 (bidi_type_t, bidi_dir_t): New types.
4187 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4188 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4189 prev_stop, base_level_stop, and eol_pos.
4190 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4191 (IT_STACK_SIZE): Enlarge to 5.
4192 (struct glyph_row): New member reversed_p.
4193 <string_buffer_position>: Update prototype.
4194 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4195 glyph_row if bidi_it.paragraph_dir == R2L.
4196 (struct glyph): New members resolved_level and bidi_type.
4197
4198 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4199 processing or buffer's direction is right-to-left.
4200 (prepare_desired_row): Preserve the reversed_p flag.
4201 (row_equal_p): Compare the reversed_p attributes as well.
4202
4203 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4204 bidi_init_it and set it->paragraph_embedding from the current
4205 buffer's value of bidi_paragraph_direction.
4206 (reseat_1): Initialize bidi_it.first_elt.
4207 (set_iterator_to_next, next_element_from_buffer): Use the value of
4208 paragraph_embedding to determine the paragraph direction.
4209 (set_iterator_to_next): Under bidi reordering, call
4210 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4211 new_paragraph flag is set in the bidi iterator.
4212 (next_element_from_buffer): If bidi_it.first_elt is set,
4213 initialize paragraph direction and find the first character to
4214 display in the visual order. If reseated to a middle of a line,
4215 prime the bidi iterator starting at the line's beginning. Handle
4216 the situation where we overstepped stop_charpos due to
4217 non-linearity of the bidi iteration. Likewise for when we back up
4218 beyond the previous stop_charpos. When moving across stop_charpos,
4219 record it in prev_stop.
4220 (display_line): Set row->end and it->start for the next row to the
4221 next character in logical order. Always extend reversed_p rows to
4222 the end of line, even if they end at ZV. Copy the reversed_p flag
4223 to the next glyph row. Keep calling set_cursor_from_row for
4224 bidi-reordered rows even if we already have a possible candidate
4225 for cursor position. Set row_end after all the row's glyphs have
4226 been produced, by looping over the glyphs. Record the position
4227 after EOL in it->eol_pos, and use it to set end_pos of the last
4228 row produced for a continued line.
4229 <Qright_to_left, Qleft_to_right>: New variables.
4230 (syms_of_xdisp): Initialize and staticpro them.
4231 (string_buffer_position_lim): New function.
4232 (string_buffer_position): Most of code moved to
4233 string_buffer_position_lim. Last argument and return value are
4234 now EMACS_INT; all callers changed.
4235 (set_cursor_from_row): Rewritten to support bidirectional text and
4236 reversed glyph rows.
4237 (text_outside_line_unchanged_p, try_window_id): Disable
4238 optimizations if we are reordering bidirectional text and the
4239 paragraph direction can be affected by the change.
4240 (append_glyph, append_composite_glyph)
4241 (produce_image_glyph, append_stretch_glyph): Set the
4242 resolved_level and bidi_type members of each glyph.
4243 (append_glyph): If the glyph row is reversed, prepend the glyph
4244 rather than appending it.
4245 (handle_stop_backwards): New function.
4246 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4247 (reseat): call handle_stop_backwards to recompute prev_stop and
4248 base_level_stop for the new position.
4249 (handle_invisible_prop): Under bidi iteration, skip invisible text
4250 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4251 paragraph direction. Update IT->prev_stop after skipping
4252 invisible text.
4253 (move_it_in_display_line_to): New variables prev_method
4254 and prev_pos. Compare for strict equality in
4255 BUFFER_POS_REACHED_P.
4256 (try_cursor_movement): Examine all the candidate rows that occlude
4257 point, to return the best match. If rows are bidi-reordered
4258 and point moved backwards, back up to the row that is not a
4259 continuation line, and start looking for a suitable row from
4260 there.
4261
4262 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4263 rather than appending, if the glyph_row's reversed_p flag is set.
4264 Set the resolved_level and bidi_type members of each glyph.
4265
4266 * .gdbinit (pbiditype): New command.
4267 (pgx): Use it to display bidi level and type of the glyph.
4268 (pitx): Display some bidi information about the iterator.
4269 (prowlims, pmtxrows): New commands.
4270
4271 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4272
4273 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4274 * s/usg5-4.h (LIBS_DEBUG):
4275 * s/irix6-5.h (C_DEBUG_SWITCH):
4276 * s/gnu-linux.h (LIBS_DEBUG):
4277 * s/darwin.h (LIBS_DEBUG):
4278 * s/bsd-common.h (LIBS_DEBUG):
4279 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4280 * m/iris4d.h (LIBS_DEBUG):
4281 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4282
4283 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4284 (LIBS_DEBUG): Remove definition.
4285
4286 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4287
4288 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4289 Windows.
4290
4291 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4292
4293 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4294 `connect' (Bug#5723).
4295
4296 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4297
4298 * process.c (Fmake_network_process): Call `select' for interrupted
4299 `connect' rather than creating new socket (Bug#5173).
4300
4301 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4302
4303 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4304
4305 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4306
4307 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4308
4309 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4310
4311 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4312 XLoadQueryFont.
4313
4314 2010-03-24 Kenichi Handa <handa@m17n.org>
4315
4316 * coding.c (decode_coding_ccl): Fix previous change for the
4317 multibyte case.
4318 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4319 case that the output buffer is fullfilled.
4320 (encode_coding): Setup ccl program here.
4321
4322 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4323
4324 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4325
4326 Simplify LIBS_MACHINE definitions.
4327 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4328 * m/iris4d.h (LIBS_MACHINE): Likewise.
4329 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4330 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4331 * s/netbsd.h: Remove commented out code.
4332
4333 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4334
4335 Remove dead code dealing with POSIX_SIGNALS.
4336 * atimer.c (set_alarm): Remove dead code, all USG systems define
4337 POSIX_SIGNALS.
4338 * data.c (arith_error): Likewise.
4339 * keyboard.c (input_available_signal, handle_user_signal)
4340 (interrupt_signal): Likewise.
4341 * process.c (sigchld_handler): Likewise.
4342 (create_process): Remove if 0 code. Remove HPUX conditional when
4343 !defined (POSIX_SIGNALS), it cannot be true.
4344 * syssignal.h: Remove USG5_4 and USG conditionals when
4345 !POSIX_SIGNALS, they cannot be true.
4346
4347 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4348 NO_SOCK_SIGIO, not used anymore.
4349
4350 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4351
4352 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4353 support vax on BSDs.
4354
4355 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4356 * s/aix4-2.h (ORDINARY_LINK): ... here.
4357
4358 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4359
4360 * Makefile.in (abs_builddir): Define.
4361 (bootstrap_exe): Use it.
4362 (VPATH): Use $(srcdir) instead of @srcdir@.
4363
4364 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4365
4366 * Makefile.in (bootstrap_exe): Use an absolute name.
4367
4368 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4369
4370 Remove support for old GNU/Linux using libc version 5.
4371 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4372 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4373
4374 Consolidate redundant definitions in s/bsd-common.h.
4375 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4376 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4377 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4378 doing it in all files that include this one.
4379 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4380 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4381 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4382 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4383 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4384 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4385 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4386 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4387 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4388
4389 Consolidate redundant definitions.
4390 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4391 it's undefined in all files that include this one.
4392 (POSIX_SIGNALS): Define here instead of doing it in all files that
4393 include this one.
4394 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4395 (POSIX_SIGNALS): Do not define.
4396 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4397 (POSIX_SIGNALS): Do not define.
4398 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4399 (POSIX_SIGNALS): Do not define.
4400
4401 Remove support for old UNIX System V systems.
4402 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4403 * s/usg-5-4-2.h: Remove.
4404
4405 Remove support for Solaris on PPC and for old versions.
4406 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4407 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4408 that cancel each other.
4409 * s/sol2-3.h:
4410 * s/sol2-4.h:
4411 * s/sol2-5.h: Remove.
4412 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4413 (NO_REMAP): Remove, unused.
4414 (UNEXEC): Move definition ...
4415 * s/aix4-2.h (UNEXEC): ... here.
4416
4417 * s/openbsd.h: Remove support for non-ELF and for systems that do
4418 not support shared libraries.
4419 * s/netbsd.h:
4420 * s/freebsd.h: Likewise.
4421
4422 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4423
4424 Remove non-working support for lynxos 3.0.
4425 * s/lynxos.h: Remove file.
4426
4427 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4428 COFF_BSD_SYMBOLS, nothing defines it anymore.
4429
4430 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4431
4432 Remove obsolete uses of HAVE_SHM.
4433 * emacs.c (standard_args):
4434 (Fdump_emacs):
4435 (syms_of_emacs): Remove code depending on HAVE_SHM.
4436
4437 * alloc.c: Remove HAVE_SHM dependent definition.
4438
4439 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4440
4441 2010-03-18 Glenn Morris <rgm@gnu.org>
4442
4443 * emacs.c (USAGE4): Hard-code bug address.
4444 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4445 (bug_reporting_address): Remove.
4446 (main): Don't call bug_reporting_address.
4447
4448 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4449 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4450
4451 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4452
4453 * xfns.c (Fx_create_frame):
4454 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4455 on left.
4456
4457 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4458
4459 * editfns.c (Fformat): Account for string precision when computing
4460 field width (Bug#5710).
4461
4462 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4463
4464 * xfns.c (Fx_create_frame): Set default to Qright.
4465
4466 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4467 all window systems.
4468
4469 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4470
4471 These changes remove termcap.c from the build on Posix platforms.
4472 * Makefile.in (termcapobj): Move termcap.o from here...
4473 (MSDOS_OBJ): ...to here.
4474 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4475 now identical to when LIBS_TERMCAP is defined.
4476
4477 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4478
4479 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4480
4481 * config.in: Regenerated. (See top-level ChangeLog.)
4482
4483 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4484
4485 * Branch for 23.2.
4486
4487 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4488
4489 Cleanup setup of gl_state in various parts of the code.
4490 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4491 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4492 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4493 (skip_chars):
4494 * regex.c (regex_compile): Use it.
4495 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4496 it's now set in regex_compile when/if we need it.
4497
4498 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4499
4500 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4501 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4502 (QUIT): Use it to consolidate code and remove redundancy.
4503 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4504
4505 * regex.c (regex_compile): Setup gl_state as well.
4506
4507 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4508 (in_classes): Use CONSP before XCAR/XCDR.
4509
4510 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4511
4512 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4513 definitions, so that keyboard macros are correctly handled
4514 (Bug#5481).
4515
4516 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4517
4518 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4519 text that could be relocated inside the call to emacs_mule_char.
4520 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4521 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4522
4523 2010-03-02 Kenichi Handa <handa@m17n.org>
4524
4525 * character.c (parse_str_as_multibyte): Fix handling of the
4526 multibyte form of raw-bytes.
4527 (str_as_multibyte): Likewise.
4528
4529 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4530 form of raw-bytes.
4531
4532 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4533
4534 * charset.c (load_charset_map_from_file)
4535 (load_charset_map_from_vector): Zero out allocated
4536 charset_map_entries before using them.
4537
4538 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4539
4540 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4541
4542 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4543
4544 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4545 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4546
4547 2010-02-26 Kenichi Handa <handa@m17n.org>
4548
4549 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4550
4551 * xdisp.c (reseat_to_string): Fix previous change.
4552
4553 2010-02-26 David Reitter <david.reitter@gmail.com>
4554
4555 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4556 Lisp_Object (Bug#4736).
4557
4558 2010-02-25 Kenichi Handa <handa@m17n.org>
4559
4560 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4561
4562 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4563
4564 * xterm.c (XTflash): Move declarations before statements.
4565
4566 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4567 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4568 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4569 (xg_create_tool_bar): Remove unused variables.
4570 (x_wm_set_size_hint): Move declarations before statements.
4571 (xg_create_frame_widgets): Remove variable grav.
4572
4573 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
4574
4575 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4576
4577 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4578
4579 * term.c (fatal): Add a final \n if needed (bug#5596).
4580
4581 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
4582
4583 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4584
4585 2010-02-18 Glenn Morris <rgm@gnu.org>
4586
4587 * callint.c (Finteractive): Doc fix.
4588
4589 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4590
4591 * coding.c (record_conversion_result):
4592 Handle CODING_RESULT_INSUFFICIENT_DST.
4593 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4594 memory allocation error.
4595
4596 2010-02-17 Kenichi Handa <handa@m17n.org>
4597
4598 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4599 Fix for the case that the output buffer is fullfilled.
4600 (decode_coding): Setup ccl program here. Keep looping when the
4601 decoder stopped because the output buffer is
4602 fullfilled (bug#5534).
4603
4604 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4605
4606 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4607
4608 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4609 bug #5571.
4610 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4611 overdrawn.
4612
4613 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4614
4615 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4616 doing_interact here.
4617 (ice_connection_closed): New function.
4618 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4619 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4620 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4621 returns I/O error.
4622 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4623 bug #5512.
4624
4625 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
4626
4627 * nsfont.m (nsfont_open): The system's value for the font descent
4628 is negative, so round it down to avoid clipping.
4629
4630 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
4631
4632 * charset.c (load_charset_map_from_file)
4633 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4634 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
4635
4636 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
4637
4638 * charset.c (load_charset_map_from_file): Allocate large
4639 charset_map_entries structure on the heap rather than the stack.
4640 (Bug#5526).
4641
4642 2010-01-31 Kenichi Handa <handa@m17n.org>
4643
4644 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4645 size in NAME is invalid, return -1 (Bug#5396).
4646
4647 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
4648
4649 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4650 <deactivated@gmail.com> (Bug#3605).
4651
4652 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
4653
4654 * fileio.c (Frename_file): Correctly rename symlinks to
4655 directories (Bug#5496).
4656
4657 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4658
4659 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4660
4661 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4662
4663 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4664
4665 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
4666
4667 * frame.c (DEFAULT_ROWS): Change default to 35.
4668
4669 * xfns.c (x_default_font_parameter): Change default XFT font to
4670 monospace-10 (Bug#3643).
4671
4672 2010-01-29 Eli Zaretskii <eliz@gnu.org>
4673
4674 * w32inevt.c (key_event): Remove unnecessary comparison of
4675 event->uChar.AsciiChar with 128.
4676
4677 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
4678
4679 * fileio.c (Frename_file): Fix last change (Bug#5487).
4680
4681 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4682
4683 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4684
4685 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4686
4687 * xfns.c (Fx_create_frame): Remove window size matching code from
4688 2010-01-15.
4689 (x_get_current_desktop, x_get_desktop_workarea): Remove.
4690
4691 2010-01-27 Jason Rumney <jasonr@gnu.org>
4692
4693 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4694 (key_event): Use unicode for characters 128 and higher (Bug#4567).
4695
4696 2010-01-27 Kenichi Handa <handa@m17n.org>
4697
4698 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4699 pattern string (Bug#4209).
4700
4701 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
4702
4703 * fileio.c (Frename_file): Call copy-directory and
4704 delete-directory for directories, in order to handle cross-device
4705 renaming (Bug#3353).
4706
4707 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4708
4709 * xfns.c (Fx_create_frame): If frame height is too big, try
4710 sizes 24 and 10. Bug #3643.
4711
4712 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4713
4714 Try and fix bug#788, hopefully for real this time.
4715 * keymap.c (shadow_lookup): Add `remap' arg.
4716 (describe_map, describe_vector): Update calls to shadow_lookup.
4717 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4718 `remapped' so this flag is applicable to `sequence'. Be careful to
4719 perform remapping during shadow_lookup check of remapped_sequences.
4720
4721 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4722
4723 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4724 png_check_sig, which has been removed in libpng 1.4.
4725
4726 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4727
4728 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4729 lacks this header file).
4730
4731 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4732
4733 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4734 as in Emacs 22.
4735
4736 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4737
4738 * lisp.h (make_pure_string): String pointer arg now points to const.
4739
4740 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4741 args now point to const.
4742
4743 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4744
4745 * lread.c (Fload): Don't treat files without .elc extension as
4746 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4747 them. (bug#5303)
4748
4749 2010-01-20 Kenichi Handa <handa@m17n.org>
4750
4751 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4752 treat the source as actual byte sequence.
4753
4754 2010-01-19 Alan Mackenzie <acm@muc.de>
4755
4756 Fix spurious before-change-functions invocation from (insert ?\n).
4757 * textprop.c (set_text_properties): Rename parameter
4758 `signal_after_change_p' to `coherent_change_p', and make the
4759 invocation of `modify_region' conditional on it.
4760
4761 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4762
4763 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4764 for debug purpose.
4765 (syms_of_xsettings): Declare xft-settings.
4766
4767 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4770
4771 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4772
4773 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4774
4775 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * emacs.c (standard_args): Adjust arg priorities to reflect how
4778 they are processed in startup.el.
4779
4780 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4781
4782 * Makefile.in (lisp, shortlisp): Update.
4783
4784 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4785
4786 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4787 code, link the new kboard into all_kboard before running Lisp code,
4788 and protect the new terminal with GCPRO (Bug#5365).
4789 (x_term_init): Remove unused var `atom'.
4790 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4791
4792 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4793
4794 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4795 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4796 to find out usable size of the desktop. Don't make frames larger than
4797 this. Bug #3643.
4798
4799 2010-01-15 Kenichi Handa <handa@m17n.org>
4800
4801 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4802
4803 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4804
4805 * nsterm.m (Qnone): Define.
4806
4807 * nsfns.m (Qnone): Move definition to nsterm.m.
4808
4809 2010-01-14 Kenichi Handa <handa@m17n.org>
4810
4811 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4812 systems.
4813
4814 2010-01-14 Kenichi Handa <handa@m17n.org>
4815
4816 Make auto-composition work on all buffers even if they are
4817 fundamental mode.
4818
4819 * composite.c (Vauto_composition_mode): New variable.
4820 (composition_compute_stop_pos): Check Vauto_composition_mode
4821 instead of Vauto_composition_function.
4822 (composition_adjust_point, Ffind_composition_internal): Likewise.
4823 (syms_of_composite): Declare Lisp variable
4824 "auto-composition-mode" here.
4825
4826 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
4827
4828 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4829 during call to vendor-specific-keysyms (Bug#5365).
4830
4831 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4832
4833 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4834 Call SIGNAL_THREAD_CHECK (Bug#5333).
4835
4836 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4837 Call SIGNAL_THREAD_CHECK.
4838
4839 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4840
4841 Try to fix bug#5314. This is probably not the final word, tho.
4842 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4843 recent-auto-save-p as a side-effect.
4844 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4845 * buffer.c (Fkill_buffer, reset_buffer):
4846 * editfns.c (Fsubst_char_in_region):
4847 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4848 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4849
4850 2010-01-13 Kenichi Handa <handa@m17n.org>
4851
4852 Display buffer name, etc. in mode line by composing correctly.
4853
4854 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4855 STRING is not nil.
4856 (display_mode_element): Adjust for the change of
4857 decode_mode_spec and display_line.
4858 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4859 (display_string): Handle the case that STRING is non-null and
4860 LISP_STRING is not nil.
4861
4862 * xterm.c (x_draw_composite_glyph_string_foreground):
4863 Pay attention to s->face->overstrike.
4864
4865 * composite.c (composition_reseat_it): Don't check PT if STRING is
4866 non nil.
4867
4868 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4869
4870 * keyboard.c (read_char): Don't apply previous change when current
4871 buffer is unchanged by command execution.
4872
4873 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4874
4875 * keyboard.c (read_char): Return after executing from special map.
4876
4877 2010-01-12 Glenn Morris <rgm@gnu.org>
4878
4879 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4880 bug-gnu-emacs rather than emacs-pretest-bug.
4881
4882 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
4883
4884 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4885 initializing the Lisp variables that depend on them.
4886
4887 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4888
4889 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4890 Clear areas that will not be updated after change of menu bar lines.
4891 Clear the menu bar window's current matrix when the window gets empty.
4892
4893 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
4894
4895 * intervals.h, textprop.c (extend_property_ranges): Return value
4896 and args changed. Discard properties that begin at or after the
4897 new end (Bug#5306).
4898
4899 * editfns.c (Fformat): Caller changed.
4900
4901 * nsterm.m (ns_set_default_prefs): Delete function.
4902 (syms_of_nsterm): Initialize ns_command_modifier,
4903 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4904 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4905
4906 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4907 position (Bug#4040).
4908
4909 2010-01-09 Eli Zaretskii <eliz@gnu.org>
4910
4911 * editfns.c (Ffloat_time): Doc fix.
4912
4913 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4914
4915 * xfns.c (Fx_create_frame): Don't create frame larger than display
4916 by default bug#3643.
4917
4918 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4919
4920 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4921 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4922 windows above internal border.
4923
4924 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4925 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4926 windows above internal border.
4927
4928 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4929 tool bar windows specially.
4930
4931 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4932
4933 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4934 specially.
4935 (XTflash): Take account of menu bar height.
4936
4937 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4938 specially.
4939
4940 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4941
4942 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4943 also be true before we can return early (bug #5339).
4944
4945 2010-01-06 David Reitter <david.reitter@gmail.com>
4946
4947 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4948 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4949 (Bug#3233).
4950
4951 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4952
4953 * font.c (font_open_entity): Enable chache and call cached_font_ok
4954 for the driver if defined.
4955 (QCuser_spec): New symbol.
4956 (font_spec_from_name): Save name as user-spec.
4957 (font_load_for_lface): Keep user-spec instead of name.
4958 (font_open_by_name): Save name as user-spec.
4959 (syms_of_font): Initialize QCuser_spec.
4960 (font_clear_prop): Clear name if it exists in font (bug#5157).
4961
4962 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4963 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4964 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4965
4966 * font.h (struct font_driver): Add cached_font_ok.
4967
4968 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4969
4970 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4971
4972 * xterm.c (x_new_font): Move code for setting rows/cols before
4973 resizing ...
4974 (x_set_window_size): ... to here. Bug #2568.
4975
4976 * gtkutil.c (xg_clear_under_internal_border): New function.
4977 (xg_frame_resized, xg_frame_set_char_size):
4978 Call xg_clear_under_internal_border.
4979 (xg_update_scrollbar_pos): Clear under old scroll bar position.
4980
4981 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
4982
4983 * keyboard.c (read_key_sequence): Catch keyboard switch after
4984 making a new tty frame (Bug#5095).
4985
4986 2010-01-05 Kenichi Handa <handa@m17n.org>
4987
4988 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4989
4990 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4991
4992 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4993 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4994 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4995
4996 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
4997
4998 * dbusbind.c (xd_add_watch): Improve debug message.
4999 (xd_remove_watch): Improve debug message. If DATA is the session
5000 bus, unset D-Bus session environment.
5001 (Fdbus_init_bus): Pass the bus as argument to
5002 dbus_connection_set_watch_functions. (Bug#5283)
5003
5004 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
5005
5006 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5007
5008 * lread.c (syms_of_lread): Make it clearer that these are the
5009 names of loaded files (Bug#5068).
5010
5011 * eval.c (run_hook_with_args): Handle the case where the global
5012 value has the obsolete single-function form (Bug#5026).
5013
5014 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * minibuf.c (Fall_completions): Minor optimization.
5017
5018 2009-12-26 Eli Zaretskii <eliz@gnu.org>
5019
5020 * .gdbinit (pgx): Fix display of composite glyphs.
5021 Display cmp.from and cmp.to as well.
5022 (pitx): Fix last change.
5023
5024 2009-12-25 Kenichi Handa <handa@m17n.org>
5025
5026 * composite.h (composition_adjust_point): Update prototype.
5027
5028 * composite.c (composition_reseat_it): Don't make a composition
5029 spanning over point.
5030 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5031 composable characters.
5032 (composition_adjust_point): New arg NEW_PT. Callers changed.
5033
5034 * keyboard.c (command_loop_1): Force redisplay if the last point
5035 was within a composition.
5036 (adjust_point_for_property): Don't adjust point for automatic
5037 composition when called after buffer modification.
5038
5039 2009-12-19 Eli Zaretskii <eliz@gnu.org>
5040
5041 * .gdbinit (pitx): Don't use enum names, use their values.
5042 Remove reference to non-existing value GET_FROM_COMPOSITION.
5043 (pgx): Don't use enum names, use their values.
5044 (pitmethod): New helper command.
5045 (pitx): Use it to display iteration method.
5046 (pgrowit): New command.
5047
5048 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5049
5050 Update dependencies in Makefile.in.
5051
5052 * Makefile.in (alloc.o): Depend on termhooks.h.
5053 (atimer.o): Depend on blockinput.h.
5054 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5055 and frame.h.
5056 (callint.o): Depend on systime.h, coding.h, and composite.h.
5057 (callproc.o): Depend on buffer.h.
5058 (casefiddle.o): Don't depend on charset.h.
5059 (casetab.o): Depend on character.h.
5060 (ccl.o): Depend on composite.h.
5061 (chartab.o): Depend on ccl.h.
5062 (cm.o): Depend on dispextern.h.
5063 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5064 (coding.o): Don't depend on $(INTERVALS_H).
5065 (composite.o): Don't depend on dispextern.h explicitly (it's in
5066 $(INTERVALS_H)). Depend on ccl.h.
5067 (data.o): Depend on systime.h, coding.h, composite.h,
5068 dispextern.h, font.h, and ccl.h.
5069 (dired.o): Depend on composite.h.
5070 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5071 composite.h (it's in $(INTERVALS_H)).
5072 (doc.o): Depend on systime.h, coding.h, and composite.h.
5073 (editfns.o): Don't depend explicitly on dispextern.h.
5074 (emacs.o): Depend on frame.h and coding.h.
5075 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5076 (fileio.o): Depend on frame.h and commands.h. Don't depend
5077 explicitly on dispextern.h.
5078 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5079 composite.h.
5080 (fns.o): Don't depend on termhooks.h.
5081 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5082 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5083 coding.h, $(INTERVALS_H), window.h, xterm.h.
5084 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5085 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5086 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5087 fontset.h, ccl.h, and ftfont.h.
5088 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5089 (gtkutil.o): Depend on dispextern.h and composite.h.
5090 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5091 termhooks.h, and ccl.h.
5092 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5093 (intervals.o): Depend on systime.h and coding.h.
5094 (keyboard.o): Depend on composite.h and coding.h.
5095 (keymap.o): Depend on coding.h and frame.h.
5096 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5097 (macros.o): Depend on systime.h, coding.h, and composite.h.
5098 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5099 and atimer.h.
5100 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5101 dispextern.h explicitly.
5102 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5103 Don't depend explicitly on dispextern.h and composite.h.
5104 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5105 (regex.o): Don't depend on charset.h.
5106 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5107 (search.o): Don't depend explicitly on composite.h.
5108 (sound.o): Depend on atimer.h and systime.h.
5109 (syntax.o): Don't depend explicitly on composite.h.
5110 (sysdep.o): Depend on coding.h and composite.h.
5111 (term.o): Depend on xterm.h and buffer.h.
5112 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5113 (textprop.o): Don't depend on dispextern.h explicitly.
5114 (undo.o): Depend on dispextern.h.
5115 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5116 dispextern.h and composite.h explicitly.
5117 (xdisp.o): Depend on ccl.h.
5118 (xfaces.o): Depend on coding.h and ccl.h.
5119 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5120 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5121 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5122 ftfont.h.
5123 (xgselect.o): New dependency.
5124 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5125 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5126 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5127 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5128 (xsmfns.o): Depend on frame.h and dispextern.h.
5129 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5130 sysselect.h.
5131
5132 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5133
5134 * font.c (Fclear_font_cache): Pass correct cache argument to
5135 font_clear_cache.
5136
5137 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5138
5139 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5140 twice.
5141
5142 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5143
5144 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5145 calling file-remote-p. Reported by Jim Meyering.
5146
5147 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5148
5149 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5150 avoid compiler warnings. (Bug #5217)
5151
5152 2009-12-14 Kenichi Handa <handa@m17n.org>
5153
5154 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5155 in 8-bit encoding.
5156
5157 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5158
5159 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5160 tooltip windows.
5161
5162 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5163
5164 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5165 Xatom_net_window_type.
5166
5167 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5168 Xatom_net_window_type.
5169
5170 * xterm.c (my_log_handler): New function.
5171 (x_term_init): Set my_log_handler as log handler during gtk_init
5172 so we can filter out buggy messages. (Bug #5120).
5173
5174 * xterm.c (xg_scroll_callback): Parameter list changed,
5175 use parameter GtkScrollType to determine scroll/line/page.
5176 Only allow dragging if a button < 4 is grabbed (bug #5177).
5177 (xg_end_scroll_callback): New function.
5178 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5179 xg_create_scroll_bar.
5180
5181 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5182 (scroll_end_callback): Remove.
5183 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5184 button-release-event. Replace value-changed event with change-value,
5185 bug #5177.
5186 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5187 bug #5177.
5188
5189 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5190 (xg_create_scroll_bar): Add GCallback end_callback.
5191
5192 * xftfont.c (QClcdfilter): New variable.
5193 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5194 (syms_of_xftfont): Initialize QClcdfilter.
5195
5196 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5197
5198 * xsettings.c (struct xsettings): Add member seen.
5199 (parse_xft_settings): Update member seen with what we have read.
5200 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5201 (apply_xft_settings): Only update Xft settings with what member seen
5202 indicates as new.
5203
5204 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5205
5206 * dispextern.h (struct text_pos): Use EMACS_INT.
5207 (struct glyph): Use EMACS_INT for charpos.
5208 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5209 region_beg_charpos, region_end_charpos,
5210 redisplay_end_trigger_charpos, and also for
5211 iterator_stack_entry.end_charpos and
5212 iterator_stack_entry.stop_charpos.
5213
5214 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5215
5216 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5217 (xg_create_scroll_bar): Call scroll_end_callback on button release
5218 event (bug #5177).
5219 (xg_event_is_for_scrollbar): != replaced with ==.
5220
5221 2009-12-12 Kenichi Handa <handa@m17n.org>
5222
5223 * ftfont.c (struct ftfont_info): New member matrix.
5224 (ftfont_open): Setup xftfont_info->matrix.
5225 (MFLTFontFT): New member matrix.
5226 (FLOOR, CEIL, ROUND): New macros.
5227 (ftfont_get_metrics): Handle matrix transformation.
5228 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5229
5230 * xftfont.c (struct xftfont_info): New member matrix.
5231 (xftfont_open): Setup xftfont_info->matrix.
5232
5233 2009-12-10 Kenichi Handa <handa@m17n.org>
5234
5235 * xdisp.c (append_space_for_newline): Consider face-remapping.
5236
5237 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5238
5239 * xsettings.c: Include "keyboard.h".
5240
5241 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5242
5243 Fix implicit function declarations.
5244 * cmds.c: Include "frame.h".
5245 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5246 * frame.h: Move declaration of delete_frame outside of
5247 HAVE_WINDOW_SYSTEM.
5248
5249 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5250
5251 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5252
5253 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5254 GTK builds.
5255
5256 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5257
5258 * unexelf.c (unexec): Don't search for .data twice.
5259
5260 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5261
5262 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5263 if push failed.
5264 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5265 of push_display_prop (Bug#5000).
5266
5267 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5268 value of font_list_entities (Bug#5085).
5269
5270 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5271
5272 Fix `string-to-number' to deal consistently with integers and floats.
5273 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5274 trailing characters, not just whitespace.
5275 (read1): Pass new arg 0 to keep old behavior.
5276 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5277 trailing chars, as it is already done for integers. Doc fixes.
5278 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5279
5280 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5281
5282 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5283 Delete unused enumeration value.
5284
5285 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5286
5287 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5288
5289 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5290
5291 * process.c (Fmake_network_process): Fix up the tests for
5292 "connectionless socket", so they DTRT for seqpacket sockets as well.
5293
5294 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5295
5296 * process.c (Qseqpacket): New symbol.
5297 (HAVE_SEQPACKET): New macro.
5298 (Fmake_network_process): Accept new :type `seqpacket'.
5299 (init_process): Add `seqpacket' feature when applicable.
5300 (syms_of_process): Initialize Qseqpacket.
5301
5302 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5303
5304 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5305 if entity is Qnil.
5306
5307 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5308
5309 * print.c (print_preprocess): Preprocess the key_and_value table of
5310 hashtables, even tho they're "hidden" (bug#5082).
5311
5312 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5313
5314 * frame.c (frame_make_pointer_invisible)
5315 (frame_make_pointer_visible): Declare f before statements.
5316
5317 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5318
5319 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5320 omitted dependencies on lisp.h.
5321
5322 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5323
5324 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5325 is NULL.
5326
5327 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5328
5329 * frame.c (frame_make_pointer_invisible)
5330 (frame_make_pointer_visible): Just return if there isn't any selected
5331 frame.
5332
5333 * search.c (simple_search): Remove warning by making *p const.
5334
5335 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5336
5337 * xdisp.c (power_letter): Remove duplicate const.
5338
5339 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5340
5341 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5342
5343 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5344 defaults (bug #5025).
5345
5346 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5347
5348 * insdel.c (adjust_markers_for_delete): Move it in the
5349 right direction! (bug#4803)
5350
5351 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5352
5353 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5354
5355 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5356
5357 2009-11-24 Glenn Morris <rgm@gnu.org>
5358
5359 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5360
5361 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5362
5363 * Makefile.in: Must create deps for ecrt0.o in its rule.
5364
5365 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5366 because that is what Gtk+ font dialog understands.
5367
5368 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5369 of Fcopy_sequence.
5370 (font_open_by_name): Put name given into QCname for font-object returned.
5371
5372 * frame.c (x_set_font): Save original font name as frame parameter
5373 font-parameter.
5374
5375 * xsettings.c (set_default_xft_settings): New function.
5376 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5377 is found.
5378
5379 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5380
5381 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5382 searching backwards through multibyte buffer.
5383
5384 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5385
5386 * xterm.c: #include xgselect.h.
5387 (x_initialize): Call xgselect_initialize.
5388
5389 * xsettings.c (something_changedCB): C++ comments => C comments.
5390 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5391 does that now.
5392
5393 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5394 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5395 (scroll_bar_button_cb): Remove.
5396 (create_menus): C++ comments => C comments. Don't bind grab-notify
5397 event.
5398 (xg_create_scroll_bar): Don't bind button-press-event and
5399 button-release-event.
5400
5401 * process.c: Include xgselect.h if defined (USE_GTK) ||
5402 defined (HAVE_GCONF).
5403 (wait_reading_process_output): Call xg_select for the same condition.
5404
5405 * xgselect.c (xg_select): New function to better integrate with
5406 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5407
5408 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5409
5410 * Makefile.in (XOBJ): Add xgselect.o.
5411
5412 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5413
5414 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5415 Remove ignored second argument. All callers changed.
5416 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5417 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5418 * xdisp.c (string_char_and_length): Likewise.
5419
5420 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5421
5422 * xterm.c (x_new_font):
5423 * print.c (print_object):
5424 * cmds.c (Fself_insert_command): Move declarations before statements.
5425
5426 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5427
5428 * s/cygwin.h: Remove unneeded linker flags.
5429
5430 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5431
5432 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5433
5434 * xsettings.h: Declare xsettings_get_system_font.
5435
5436 * xsettings.c (xsettings_get_system_font): New function.
5437 (init_gconf): No use initiating gconf unless we have Xft also.
5438 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5439 HAVE_GCONF.
5440
5441 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5442 add a blank entry so it doesn't collapse into nothing.
5443
5444 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5445
5446 * lread.c (Funintern): Comment out last change.
5447
5448 2009-11-19 Richard Stallman <rms@gnu.org>
5449
5450 * lread.c (Funintern): Error if symbol is t or nil.
5451
5452 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5453
5454 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5455 representation of Lisp integers.
5456 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5457
5458 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5459
5460 * lisp.h: Remove declaration of Ffont_get_system_font.
5461 * xfns.c: Move include of "xsettings.h".
5462 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5463
5464 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5465
5466 * xsettings.c (something_changedCB, Ffont_get_system_font):
5467 Check use_system_font.
5468 (syms_of_xsettings): DEFVAR font-use-system-font.
5469
5470 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5471
5472 * xfns.c (x_default_font_parameter): Remove dead assignment.
5473
5474 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5475
5476 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5477
5478 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5479 not have FC_LCD_*. #define them if not there.
5480
5481 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5482
5483 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5484
5485 * xterm.c (handle_one_xevent): Call xft_settings_event for
5486 ClientMessage, PropertyNotify and DestroyNotify.
5487 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5488 Call xsettings_initialize.
5489
5490 * xftfont.c (xftfont_fix_match): New function.
5491 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5492 Call xftfont_fix_match after XftFontMatch.
5493
5494 * xfont.c (xfont_driver): Initialize all members.
5495
5496 * xfns.c (x_default_font_parameter):
5497 Try font from Ffont_get_system_font.
5498 Do not get font from x_default_parameter if we got one from
5499 Ffont_get_system_font.
5500 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5501
5502 * w32font.c (w32font_driver): Initialize all members.
5503
5504 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5505
5506 * lisp.h: Declare syms_of_xsettings.
5507
5508 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5509 Handle CONFIG_CHANGED_EVENT.
5510
5511 * ftfont.c (ftfont_filter_properties): New function.
5512
5513 * frame.c (x_set_font): Remove unused variable lval.
5514
5515 * font.h (struct font_driver): Add filter_properties.
5516
5517 * font.c (font_put_extra): Don't return if val is nil, it means
5518 boolean option is off.
5519 (font_parse_fcname): Collect all extra properties in extra_props
5520 and call filter_properties for all drivers with extra_props and
5521 font as parameter.
5522 (font_open_entity): Do not use cache, it does not pick up new
5523 fontconfig settings like hinting.
5524 (font_load_for_lface): If spec had a name in it, store it in entity.
5525
5526 * emacs.c (main): Call syms_of_xsettings.
5527
5528 * config.in: HAVE_GCONF is new.
5529
5530 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5531 xsettings.o is new.
5532
5533 2009-11-17 Kenichi Handa <handa@m17n.org>
5534
5535 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5536 back to the default font in case that no suitable font is found.
5537
5538 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5539
5540 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5541 Suggested by Chad Brown <yandros@mit.edu>.
5542 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5543
5544 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5545
5546 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5547
5548 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5549
5550 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5551
5552 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5553
5554 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5555 has a parent.
5556
5557 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5558 dependency files in deps/. Include those files into Makefile.
5559
5560 * config.in: Generated (AUTO_DEPEND).
5561
5562 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
5563
5564 * dbusbind.c (Vdbus_registered_objects_table): Rename from
5565 Vdbus_registered_functions_table, because it contains also
5566 properties. Fix docstring.
5567 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5568
5569 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5570
5571 * alloc.c (mark_object): Don't reprocess marked strings.
5572 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5573 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5574
5575 2009-11-13 Kenichi Handa <handa@m17n.org>
5576
5577 * category.c (word_boundary_p): Adjust for the change of the
5578 semantics of Vword_combining_categories.
5579 (Vword_combining_categories): Describe the slight change of the
5580 semantics.
5581
5582 2009-11-13 Eli Zaretskii <eliz@gnu.org>
5583
5584 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5585
5586 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5587
5588 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5589
5590 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5591
5592 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
5593
5594 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5595
5596 2009-11-11 David Reitter <david.reitter@gmail.com>
5597
5598 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5599 variables to fix 2009-11-09 change.
5600
5601 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5602
5603 * process.c (ifflag_def): Make flag_sym constant.
5604 (Fnetwork_interface_info): Use a constant pointer.
5605 (ifflag_table):
5606 * xfns.c (cursor_bits):
5607 * xdisp.c (power_letter):
5608 * termcap.c (speeds, esctab):
5609 * sysdep.c (baud_convert):
5610 * keyboard.c (lispy_accent_codes, modifier_names):
5611 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5612 (jpeg_format, tiff_format, gif_format, svg_format)
5613 (interlace_start, interlace_increment, gs_format):
5614 * gtkutil.c (separator_names):
5615 * fringe.c (swap_nibble):
5616 * fns.c (base64_value_to_char, base64_char_to_value):
5617 * fileio.c (make_temp_name_tbl):
5618 * coding.c (suffixes): Make constant.
5619
5620 * frame.c (make_initial_frame):
5621 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5622 build_string.
5623 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5624
5625 * s/freebsd.h:
5626 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5627
5628 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5629 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5630
5631 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5632 * xterm.c (syms_of_xterm):
5633 * xfaces.c (syms_of_xfaces):
5634 * xdisp.c (syms_of_xdisp):
5635 * lread.c (syms_of_lread):
5636 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5637 build_string.
5638
5639 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5640
5641 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5642
5643 * fns.c (Fplist_get): Merge the active and the commented out code.
5644
5645 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5646
5647 * keyboard.h: Declare timer_check.
5648
5649 * keyboard.c (timer_check_2): New function that does what the old
5650 timer_check did.
5651 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5652 returned, i.e. don't return -1 with timers pending.
5653
5654 * process.c: Remove extern declaration of timer_check.
5655
5656 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5657 even if timer_check returned -1.
5658
5659 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5660 xg_dialog_data.
5661 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5662 the event loop.
5663 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5664 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5665 Destroy the dialog after xg_dialog_run.
5666
5667 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5668
5669 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5670
5671 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5672
5673 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5674
5675 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
5676
5677 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5678
5679 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5680
5681 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5682 w32menu.c, and nsmenu.m.
5683 Simplify the obsolete case where position is nil.
5684 (cleanup_popup_menu): New function, moved from nsmenu.m.
5685 (struct skp): Remove slot `notreal'.
5686 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5687 adjust callers.
5688 (single_menu_item): Adjust call to parse_menu_item.
5689 (syms_of_menu): Defsubr x-popup-menu.
5690 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5691 (keymap_panes): Don't export any more.
5692 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5693 (xmenu_show): Declare.
5694 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5695 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5696 * keyboard.h (parse_menu_item): Update declaration.
5697 * xmenu.c (Fx_popup_menu): Remove.
5698 (syms_of_xmenu): Don't defsubr x-popup-menu.
5699 * w32menu.c (Fx_popup_menu): Remove.
5700 (syms_of_w32menu): Don't defsubr x-popup-menu.
5701 * nsmenu.m (cleanup_popup_menu): Remove.
5702 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5703 moved to menu.c's Fx_popup_menu.
5704 (Fx_popup_menu): Remove.
5705 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5706 menu_items (it's done in menu.c already).
5707
5708 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5709
5710 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5711 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5712
5713 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5716 xmenu_show. Hide any tooltip before opening a menu.
5717 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5718 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5719
5720 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5721
5722 Let integers use up 2 tags to give them one extra bit and thus double
5723 their range.
5724 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5725 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5726 New macros.
5727 (enum Lisp_Type): Use them. Give explicit values.
5728 (Lisp_Type_Limit): Remove.
5729 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5730 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5731 Pay attention to USE_2_TAGS_FOR_INTS.
5732 (INTEGERP): Use LISP_INT_TAG_P.
5733 * fns.c (internal_equal): Simplify the default case.
5734 (sxhash): Use case_Lisp_Int.
5735 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5736 any more.
5737 (Ftype_of): Use case_Lisp_Int.
5738 (store_symval_forwarding): Take into account the fact that Ints can
5739 now have more than one tag.
5740 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5741 (buffer_slot_type_mismatch):
5742 * xfaces.c (face_attr_equal_p):
5743 * print.c (print_object):
5744 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5745 Use case_Lisp_Int.
5746
5747 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5748
5749 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5750
5751 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5752 warning.
5753
5754 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5755
5756 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5757
5758 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5759
5760 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5761 ButtonPressRelease and MotionNotify (bug#4870).
5762
5763 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5764
5765 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5766
5767 * xterm.c (syms_of_xterm):
5768 * xselect.c (syms_of_xselect):
5769 * xmenu.c (syms_of_xmenu):
5770 * xfns.c (syms_of_xfns):
5771 * xfaces.c (syms_of_xfaces):
5772 * xdisp.c (syms_of_xdisp):
5773 * window.c (syms_of_window):
5774 * w32fns.c (syms_of_w32fns):
5775 * undo.c (syms_of_undo):
5776 * textprop.c (syms_of_textprop):
5777 * terminal.c (syms_of_terminal):
5778 * syntax.c (syms_of_syntax):
5779 * sound.c (syms_of_sound):
5780 * search.c (syms_of_search):
5781 * print.c (syms_of_print):
5782 * minibuf.c (syms_of_minibuf):
5783 * macros.c (syms_of_macros):
5784 * keymap.c (syms_of_keymap, initial_define_key)
5785 (initial_define_lispy_key):
5786 * keyboard.c (syms_of_keyboard):
5787 * insdel.c (syms_of_insdel):
5788 * image.c (syms_of_image):
5789 * fringe.c (syms_of_fringe):
5790 * frame.c (syms_of_frame):
5791 * fontset.c (syms_of_fontset):
5792 * fns.c (syms_of_fns):
5793 * fns.c (syms_of_fns):
5794 * fileio.c (syms_of_fileio):
5795 * fileio.c (syms_of_fileio):
5796 * eval.c (syms_of_eval):
5797 * doc.c (syms_of_doc):
5798 * dispnew.c (syms_of_display):
5799 * dired.c (syms_of_dired):
5800 * dbusbind.c (syms_of_dbusbind):
5801 * data.c (syms_of_data):
5802 * composite.c (syms_of_composite):
5803 * coding.c (syms_of_coding):
5804 * cmds.c (syms_of_cmds):
5805 * charset.c (define_charset_internal, syms_of_character):
5806 * ccl.c (syms_of_ccl):
5807 * category.c (syms_of_category, init_category_once):
5808 * casetab.c (syms_of_casetab):
5809 * casefiddle.c (syms_of_casefiddle):
5810 * callint.c (syms_of_callint):
5811 * bytecode.c (syms_of_bytecode):
5812 * buffer.c (keys_of_buffer, syms_of_buffer):
5813 * alloc.c (syms_of_alloc):
5814 * process.c (syms_of_process, init_process):
5815 * lread.c (syms_of_lread, init_obarray):
5816 * font.c (build_style_table):
5817 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5818 intern_c_string, calls to make_pure_string with
5819 make_pure_c_string. Use pure_cons instead of Fcons.
5820
5821 * process.c (socket_options): Make it const.
5822 (set_socket_option, init_process): Use a const pointer.
5823
5824 * lread.c (intern_c_string): New function.
5825 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5826 (defvar_int): Uset it. Make the name const char*.
5827
5828 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5829 (defvar_int): Update prototypes.
5830 (DEFUN, EXFUN): Support for prototypes is now required.
5831 (intern_c_string): New prototype.
5832 (struct Lisp_Subr): Make symbol_name constant.
5833
5834 * font.c (struct table_entry): Remove unused member. Make NAMES
5835 constant.
5836 (weight_table, slant_table, width_table): Make constant.
5837
5838 * emacs.c (struct standard_args): Make name and longname constant.
5839
5840 * character.h (DEFSYM): Use intern_c_string.
5841
5842 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5843
5844 * alloc.c (make_pure_c_string): New function.
5845
5846 * eval.c (Fautoload): Purecopy all arguments.
5847
5848 2009-11-05 Kenichi Handa <handa@m17n.org>
5849
5850 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5851 the buffer in case of replace.
5852
5853 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5854
5855 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5856
5857 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5858
5859 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5860 when applicable (bug#4851).
5861
5862 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5863 (P_): Support for prototypes is now required.
5864
5865 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
5866
5867 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5868 (Bug#4827).
5869
5870 2009-10-30 Eli Zaretskii <eliz@gnu.org>
5871
5872 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5873
5874 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5875
5876 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5877
5878 * lread.c (Fload): Purecopy the file name when building
5879 Vpreloaded_file_list.
5880
5881 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5882
5883 * w32fns.c (syms_of_w32fns): Change default value of
5884 w32-scroll-lock-modifier to nil. (Bug#2827)
5885
5886 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5887
5888 * minibuf.c (Fall_completions): Fix typos in docstring.
5889
5890 2009-10-26 Andreas Schwab <schwab@redhat.com>
5891
5892 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5893
5894 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5895
5896 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5897 For delta < 0, skip check that only makes sense when the mini-window
5898 is going to be enlarged. (Bug#4534)
5899
5900 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
5901
5902 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5903 string in menu maps (Bug#4471).
5904
5905 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
5906
5907 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5908 FRAME_NS_VIEW on terminal frames (Bug#4765).
5909
5910 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5911
5912 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5913 DBUS_TYPE_UINTnn separately to get proper sign extension.
5914
5915 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5916 can properly handle unsigned types.
5917 (make_uid, make_gid): Remove.
5918
5919 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5920 types again.
5921
5922 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5923 (system_process_attributes): Likewise.
5924
5925 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5926
5927 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5928
5929 * eval.c (Fautoload): Purecopy the filename. Simplify.
5930
5931 * category.c (Fdefine_category): Purecopy docstring.
5932
5933 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5934
5935 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5936
5937 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5938
5939 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5940
5941 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5942 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5943 (Bug#4775).
5944
5945 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5946
5947 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5948 (init_fileio_once):
5949 * lisp.h (init_fileio_once): Remove.
5950 * emacs.c (main): Don't call init_fileio_once.
5951
5952 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5953
5954 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5955
5956 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5957
5958 * doprnt.c (doprnt): Fix overflow check.
5959
5960 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5961
5962 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5963
5964 * xterm.h (x_wait_for_event): Declare it.
5965
5966 * xterm.c (pending_event_wait): New variable.
5967 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5968 see pending_event_wait.eventtype.
5969 (handle_one_xevent): Don't change gravity when parent changes.
5970 (x_new_font): Call change_frame_size with new rows/columns before we
5971 try to resize the frame.
5972 (x_wait_for_event): New function.
5973 (x_set_window_size_1): Don't change gravity unless change_gravity
5974 is set.
5975 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5976 don't change frame size, instead wait for the ConfigureNotify.
5977 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5978 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5979 (x_initialize): Initialize pending_event_wait.
5980
5981 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5982 size.
5983
5984 * widget.c (EmacsFrameSetValues): Add comment.
5985 (EmacsFrameSetCharSize): Just call x_set_window_size.
5986
5987 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5988 x_wait_for_event.
5989 (flush_and_sync): Remove again.
5990 (xg_get_font_name): Suggest monospace if no previous font is known.
5991
5992 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5995 8th bit, since that only made sense in the ASCII world (bug#4751).
5996
5997 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5998
5999 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6000 processing pending events when event is filtered for input method.
6001 (Bug#3681)
6002
6003 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
6004
6005 * fns.c: Add #endif accidentally removed in previous change.
6006
6007 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6008
6009 * fns.c: Remove code for unsupported system: MAC_OS.
6010 * image.c: Likewise. Include setjmp.h.
6011
6012 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6013
6014 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6015 pixel -1 (bug #4742).
6016
6017 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6018
6019 * process.c (create_pty): Remove conditionals for no longer
6020 supported systems: UNIPLUS and RTU.
6021
6022 * xterm.c:
6023 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6024
6025 * alloc.c: Do not define struct catchtag.
6026 * eval.c: Move struct catchtag definition ...
6027 * lisp.h: ... here.
6028
6029 * image.c: Move png.h #include earlier to avoid warnings.
6030
6031 * xterm.c:
6032 * xsmfns.c:
6033 * xselect.c:
6034 * xrdb.c:
6035 * xmenu.c:
6036 * xftfont.c:
6037 * xfont.c:
6038 * xfns.c:
6039 * xfaces.c:
6040 * xdisp.c:
6041 * window.c:
6042 * widget.c:
6043 * w32xfns.c:
6044 * w32uniscribe.c:
6045 * w32term.c:
6046 * w32select.c:
6047 * w32reg.c:
6048 * w32proc.c:
6049 * w32menu.c:
6050 * w32inevt.c:
6051 * w32heap.c:
6052 * w32font.c:
6053 * w32fns.c:
6054 * w32console.c:
6055 * w32.c:
6056 * w16select.c:
6057 * vm-limit.c:
6058 * unexsol.c:
6059 * unexec.c:
6060 * unexcw.c:
6061 * unexaix.c:
6062 * undo.c:
6063 * tparam.c:
6064 * textprop.c:
6065 * terminfo.c:
6066 * terminal.c:
6067 * termcap.c:
6068 * term.c:
6069 * syntax.c:
6070 * sound.c:
6071 * sheap.c:
6072 * search.c:
6073 * scroll.c:
6074 * region-cache.c:
6075 * regex.c:
6076 * ralloc.c:
6077 * process.c:
6078 * print.c:
6079 * nsterm.m:
6080 * nsselect.m:
6081 * nsmenu.m:
6082 * nsimage.m:
6083 * nsfont.m:
6084 * nsfns.m:
6085 * msdos.c:
6086 * minibuf.c:
6087 * menu.c:
6088 * marker.c:
6089 * macros.c:
6090 * keymap.c:
6091 * keyboard.c:
6092 * intervals.c:
6093 * insdel.c:
6094 * indent.c:
6095 * gtkutil.c:
6096 * ftxfont.c:
6097 * ftfont.c:
6098 * fringe.c:
6099 * frame.c:
6100 * fontset.c:
6101 * font.c:
6102 * fns.c:
6103 * floatfns.c:
6104 * filelock.c:
6105 * fileio.c:
6106 * emacs.c:
6107 * editfns.c:
6108 * dosfns.c:
6109 * doprnt.c:
6110 * doc.c:
6111 * dispnew.c:
6112 * dired.c:
6113 * dbusbind.c:
6114 * data.c:
6115 * composite.c:
6116 * coding.c:
6117 * cmds.c:
6118 * cm.c:
6119 * chartab.c:
6120 * charset.c:
6121 * character.c:
6122 * ccl.c:
6123 * category.c:
6124 * casetab.c:
6125 * casefiddle.c:
6126 * callproc.c:
6127 * callint.c:
6128 * bytecode.c:
6129 * buffer.c:
6130 * atimer.c: Include setjmp.h. (Bug#4643)
6131
6132 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6133
6134 Remove leftover table unibyte_to_multibyte_table.
6135 * character.c (unibyte_to_multibyte_table): Remove.
6136 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6137 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6138 * character.h (UNIBYTE_TO_CHAR): New macro.
6139 (MAKE_CHAR_MULTIBYTE): Use it.
6140 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6141 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6142 (message_dolog, set_message_1):
6143 * search.c (Freplace_match):
6144 * editfns.c (Fcompare_buffer_substrings):
6145 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6146 (concat):
6147 * insdel.c (copy_text, count_size_as_multibyte):
6148 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6149 * term.c (produce_glyphs):
6150 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6151 * regex.c (RE_CHAR_TO_MULTIBYTE):
6152 * cmds.c (internal_self_insert):
6153 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6154
6155 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6156
6157 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6158
6159 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6160
6161 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6162
6163 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6164
6165 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6166
6167 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6168 still needed under Tiger.
6169
6170 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6171
6172 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6173 __Apple__.
6174
6175 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6176
6177 2009-10-15 Kenichi Handa <handa@m17n.org>
6178
6179 * print.c (print_object): Escape a symbol like "2E10" too.
6180
6181 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6182
6183 Cleanups and changes for 64-bit compile under Snow Leopard.
6184 Based on suggestions by Erik Charlebois.
6185
6186 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6187
6188 * nsfont.m (ns_char_width): Replace deprecated call.
6189 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6190 cast argument.
6191 (nsfont_open): Use ns_char_width() everywhere.
6192 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6193
6194 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6195
6196 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6197 where appropriate.
6198
6199 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6200 where appropriate.
6201 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6202 Use stringWithUTF8String.
6203 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6204
6205 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6206 Add formal protocol mention to inheritance.
6207 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6208
6209 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6210 Fix printf format.
6211 (ns_query_color): Use CGFloat where appropriate.
6212 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6213 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6214 argument.
6215
6216 * config.in (NS_HAVE_NSINTEGER): Drop.
6217
6218 * dbusbind.c (dbus-method-return-internal)
6219 (dbus-method-error-internal): Use long format in printf, and cast
6220 argument.
6221
6222 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6223 in printf, and cast argument.
6224
6225 * process.c (list_processes_1): Use long format in printf, and
6226 cast argument.
6227
6228 2009-10-11 Glenn Morris <rgm@gnu.org>
6229
6230 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6231
6232 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6233
6234 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6235 menu bar with a small width so it doesn't enlarge the frame.
6236
6237 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6238
6239 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6240
6241 2009-10-06 Glenn Morris <rgm@gnu.org>
6242
6243 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6244 SOME_MACHINE_LISP (this enters indirectly via DOC).
6245
6246 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6247
6248 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6249
6250 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6251
6252 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6253 Doc fix.
6254
6255 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6256
6257 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6258
6259 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6260
6261 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6262 used anymore outside fileio.c.
6263
6264 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6265
6266 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6267
6268 * lisp.h (Qdelete_directory_internal):
6269 Declare, instead of Qdelete_directory.
6270
6271 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6272
6273 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6274
6275 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6276
6277 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6278
6279 * fileio.c (Fdelete_directory_internal): Rename from
6280 Fdelete_directory. It is not a command anymore. It has no file
6281 name handler.
6282
6283 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6284
6285 * xdisp.c (get_next_display_element): Use an enum in last change.
6286
6287 2009-09-28 Kenichi Handa <handa@m17n.org>
6288
6289 * xdisp.c (get_next_display_element): Pay attention to
6290 unibyte_display_via_language_environment in handling
6291 Vnobreak_char_display.
6292
6293 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6294
6295 * nsterm.h (ns_app_name): New extern variable.
6296
6297 * nsterm.m (ns_app_name): New variable.
6298 (ns_term_init): Set and use it.
6299 (ns_term_shutdown): Use it.
6300
6301 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6302 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6303
6304 * nsfns.m (ns_set_name_iconic, ns_set_name)
6305 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6306 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6307
6308 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6309 Remove double-casting in client_data comparison.
6310
6311 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6312
6313 * keyboard.c (make_lispy_event): Remember last wheel direction.
6314 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6315
6316 2009-09-26 Glenn Morris <rgm@gnu.org>
6317
6318 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6319 internal.elc. Add term/pc-win.elc.
6320 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6321 term/x-win.elc.
6322 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6323 term/w32-win.elc.
6324 (NS_SUPPORT): New.
6325 (lisp): Add NS_SUPPORT.
6326 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6327
6328 2009-09-25 David Reitter <david.reitter@gmail.com>
6329
6330 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6331 on Mac OS X 10.6+ (bug#4513).
6332
6333 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6334
6335 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6336 some parts of Emacs code (like font selection) don't grok them.
6337 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6338
6339 2009-09-24 Andreas Schwab <schwab@redhat.com>
6340
6341 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6342
6343 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6344
6345 * dired.c (Fdirectory_files): Fix typo in docstring.
6346
6347 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6348
6349 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6350 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6351 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6352 under GNUstep.
6353 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6354
6355 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6356 glyph advancement.
6357
6358 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6359
6360 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6361 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6362
6363 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6364 deleted (bug #4492).
6365
6366 * nsfont.m (Vns_reg_to_script): New lisp variable.
6367 (syms_of_nsfont): Declare it.
6368 (ns_registry_to_script): New function.
6369 (ns_get_req_script): Call it.
6370 (ns_findfonts): Don't give up on non-unicode registry.
6371
6372 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6373
6374 2009-09-20 Tom Tromey <tromey@redhat.com>
6375
6376 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6377 batch mode (bug#4228).
6378
6379 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6380
6381 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6382 carefully. (Bug #4339)
6383
6384 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6385
6386 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6387
6388 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6389
6390 * emacs.c (inhibit_x_resources): Update doc string for NS.
6391 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6392 legacy code for -NXHost. Fix error printf in daemon case.
6393
6394 * nsterm.h (ns_no_defaults): Remove.
6395
6396 * nsterm.m (ns_no_defaults): Remove.
6397 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6398 (ns_use_qd_smoothing): Remove legacy variable.
6399 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6400 don't update the NSWindow itself.
6401 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6402 state detection and store user rect ourselves. (Bug #3581)
6403
6404 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6405 ns_use_qd_smoothing.
6406
6407 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6408 platform versions. Drop support for emacs-20-style face specs.
6409 (x-close-connection): Drop PSFlush() under OS X.
6410 (x-focus-frame): Activate the app first. (Bug #4180)
6411
6412 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6413
6414 * emacs.c (inhibit_x_resources): New variable.
6415 (main) [HAVE_NS]: Don't process --quick command line option.
6416 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6417
6418 * lisp.h (inhibit_x_resources): Declare it extern.
6419
6420 * w32reg.c (x_get_string_resource):
6421 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6422
6423 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6424
6425 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6426 Add lisp/term/internal.elc.
6427
6428 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6429
6430 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6431 (bug#4461).
6432
6433 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6434
6435 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6436
6437 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6438 (OBJECTS_MACHINE): Remove, unused.
6439
6440 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6441
6442 * frame.c (x_get_resource_string): Remove unused.
6443
6444 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6445
6446 * xterm.c (x_new_font): Call change_frame_size before calling
6447 x_set_window_size, in case frame size won't change.
6448
6449 * frame.c (x_set_font): Remove dead code.
6450
6451 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6452
6453 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6454
6455 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6456
6457 * lread.c (Fload): Don't output a message after loading an obsolete
6458 package any more (done in Lisp now).
6459
6460 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6461
6462 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6463
6464 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6465
6466 * keymap.c (Fwhere_is_internal): Use nconc2.
6467
6468 2009-09-11 Alan Mackenzie <acm@muc.de>
6469
6470 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6471 batch mode.
6472
6473 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6474
6475 * xdisp.c (display_mode_element): Detect cycles.
6476
6477 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6478
6479 * keymap.c (where_is_internal): Don't erroneously return nil right after
6480 filling the cache.
6481 (where_is_internal_1): Fix up typo.
6482
6483 2009-09-11 Glenn Morris <rgm@gnu.org>
6484
6485 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6486 share a common doc-string.
6487
6488 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6489
6490 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6491 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6492
6493 * keymap.c (QCadvertised_binding): New constant.
6494 (syms_of_keymap): Initialize it.
6495 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6496 if applicable.
6497
6498 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6499
6500 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6501 (parse_menu_item): Streamline since bindings are recomputed all the
6502 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6503 more and don't support lmenu's menu-alias any more either.
6504
6505 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6506 (where_is_internal): Strip it down to only traverse the keymaps.
6507 Move the cache handling from Fwhere_is_internal to here.
6508 (Fwhere_is_internal): Move the handling of remapping and the choice of
6509 the best binding from where_is_internal to here.
6510 Unify the cached/noncached paths, so remapping is also handled
6511 correctly when the cache is used, and so the cache can be used to
6512 speed up remap-handling when applicable.
6513 Give preference to non-remapped bindings.
6514 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6515 non-remapped bindings.
6516 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6517 command remapping.
6518
6519 * xdisp.c (display_mode_element): Move list length limit from 50 to
6520 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6521
6522 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6523
6524 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6525
6526 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6527
6528 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6529 (Bug#4334)
6530
6531 * keymap.c (where_is_internal): Filter out shadowed remappings.
6532 Assume that where_is_internal returns unshadowed bindings to simplify
6533 the code and get rid of the gotos. Use ASIZE.
6534
6535 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6536
6537 * xterm.c (x_focus_changed): If we get a focusout and pointer
6538 is invisible, make it visible.
6539
6540 * xterm.h: Remove condition for declaration of
6541 x_*_window_to_frame.
6542
6543 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6546 initial terminal as well.
6547
6548 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6549
6550 * xterm.h: Rename x_non_menubar_window_to_frame to
6551 x_menubar_window_to_frame.
6552
6553 * xterm.c: Remove declarations also in xterm.h.
6554 (XTmouse_position): Do not return valid positions
6555 for clicks in the menubar and the toolbar for Gtk+.
6556
6557 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6558 if the widget for the event has the same top level as a frame,
6559 return the frame.
6560 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6561 internal windows, bug #4122.
6562 (x_non_menubar_window_to_frame): Remove.
6563
6564 2009-09-02 Glenn Morris <rgm@gnu.org>
6565
6566 * buffer.c (default-major-mode): Move most of the doc from here...
6567 (major-mode): ... to here.
6568
6569 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
6570
6571 * process.c (wait_reading_process_output): Keep the descriptor
6572 when pty is used by a non-child process, e.g., in I/O buffer of
6573 GDB this allows inferior to be restarted.
6574
6575 2009-08-29 Eli Zaretskii <eliz@gnu.org>
6576
6577 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6578 both branches into one.
6579
6580 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6581
6582 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6583 (main): Use enable-multibyte-characters rather than
6584 default-enable-multibyte-characters. Output a warning message when
6585 running a unibyte session.
6586
6587 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6588
6589 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6590 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6591 (copy_data_segment): Also copy __program_vars section.
6592 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6593 (dump_it) [LC_DYLD_INFO]: Use it.
6594
6595 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6596
6597 2009-08-28 Eli Zaretskii <eliz@gnu.org>
6598
6599 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6600 $(SRC)/buildobj.h.
6601 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6602 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6603 $(SRC)/buildobj.h.
6604 (clean): Add buildobj.h.
6605
6606 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6607
6608 * print.c (print_object): Set escapeflag to 1 when printing
6609 hashtable keys and values.
6610
6611 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6612
6613 * lread.c (read_integer): Use doubles (and potentially return a float
6614 number) as we do in string-to-number.
6615 (read1): Use strtol to read integers, signal errors on strtol's
6616 overflow and use floats if strtol's output is too large for
6617 Elisp integers.
6618
6619 2009-08-27 Eli Zaretskii <eliz@gnu.org>
6620
6621 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6622 (make-buildobj-SH): Fix last change.
6623 (SRC): Move to before where it's first used.
6624
6625 2009-08-27 Kenichi Handa <handa@m17n.org>
6626
6627 * process.c (send_process): Use encode_coding_object instead of
6628 encode_coding_string to perform eol-conversion even if the string
6629 is unibyte.
6630
6631 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6632 character.
6633
6634 * cmds.c (Fself_insert_command): Avoid unnecessay
6635 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
6636
6637 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6638
6639 * callproc.c (Fcall_process): Remove always true #if.
6640
6641 * lisp.h: Replace #if 0 code for checking with text pointing to
6642 the --enable-checking configure flag.
6643
6644 * emacs.c (main): Mention the --enable-profiling configure flag
6645 instead of using CFLAGS.
6646
6647 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
6648
6649 * Makefile.in (buildobj.h): New target.
6650 (doc.o): Depend on it.
6651 (temacs${EXEEXT}): Don't generate buildobj.lst.
6652 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6653 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6654 ($(BLD)/doc.$(O)): Depend on it.
6655 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6656 provided by Eli Zaretskii.)
6657 ($(TEMACS)): Don't generate buildobj.lst.
6658 * doc.c: Include buildobj.h.
6659 (buildobj): New static variable.
6660 (Fsnarf_documentation): Use it, instead of opening and reading
6661 buildobj.lst.
6662
6663 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
6664
6665 * dbusbind.c (Fdbus_call_method)
6666 (Fdbus_call_method_asynchronously): Use English numeric format for
6667 timeout values in doc string.
6668
6669 2009-08-25 Kenichi Handa <handa@m17n.org>
6670
6671 * alloc.c (mark_char_table): New function.
6672 (mark_object): Use mark_char_table for a char-table.
6673
6674 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6675 (CHAR_TABLE_REF): Use it.
6676
6677 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
6678
6679 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6680 before invoking the newly build emacs to check for load-path
6681 shadowing.
6682
6683 2009-08-22 Glenn Morris <rgm@gnu.org>
6684
6685 * Makefile.in (bootstrap_exe): New variable.
6686 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6687 Use ${bootstrap_exe}.
6688
6689 2009-08-22 Eli Zaretskii <eliz@gnu.org>
6690
6691 * coding.h (encode_coding_string): Don't encode unibyte strings.
6692 (Bug#4047)
6693
6694 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
6695
6696 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6697
6698 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6699 intended as hotfix only.
6700 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6701
6702 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6703
6704 * nsterm.m (ns_get_color): Update documentation properly for last
6705 change, and clean up loose ends in the code left by it. Fix
6706 longstanding bug with 16-bit hex parsing, and add support for
6707 yet another X11 format (rgb:r/g/b) for compatibility.
6708 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6709 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6710
6711 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6712
6713 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6714
6715 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6716
6717 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6718 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6719 (xd_initialize, xd_pending_messages): Check, whether
6720 $DBUS_SESSION_BUS_ADDRESS is set.
6721
6722 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6723
6724 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6725
6726 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6727
6728 2009-08-20 Glenn Morris <rgm@gnu.org>
6729
6730 * emacs.c (system-type): Doc fix.
6731
6732 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6733
6734 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6735 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6736
6737 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6738
6739 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6740 New functions.
6741 (xd_initialize): Revert change from 2009-08-16.
6742
6743 2009-08-18 Kenichi Handa <handa@m17n.org>
6744
6745 * fontset.c (Ffontset_font): If a nil element is found in a
6746 font-group vector, return nil.
6747
6748 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6749
6750 * process.c (status_notify): Don't perform redisplay.
6751 (Fdelete_process, list_processes_1, process_send_signal):
6752 Expliticly perform redisplay.
6753 (wait_reading_process_output): Always check process status, but
6754 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6755
6756 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6757
6758 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6759 (XFLOAT_INIT): New macro for storing a float value.
6760 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6761 * fns.c (sxhash): Copy out the value of a float in order to
6762 examine its bytes.
6763 * dbusbind.c (xd_append_arg): Likewise.
6764
6765 * emacs.c (main): Don't call syms_of_data twice.
6766
6767 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6768
6769 * dbusbind.c (xd_initialize): Add connection file descriptor to
6770 input_wait_mask, in order to let select() detect, whether a new
6771 message has been arrived.
6772 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6773
6774 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6775
6776 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6777 New functions.
6778
6779 * lisp.h (xd_pending_messages): Declare.
6780
6781 * keyboard.c (readable_events): Call xd_pending_messages.
6782
6783 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6784
6785 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6786
6787 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6788
6789 * buffer.c (set_buffer_internal_1)
6790 (swap_out_buffer_local_variables): Check for unbound local
6791 variables (Bug#4138).
6792
6793 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6794
6795 * process.c (create_pty): Fix last change.
6796
6797 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6798
6799 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6800 (xbm_load_image): Caller changed.
6801 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6802
6803 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6804
6805 * process.c (create_pty): New function.
6806 (Fstart_process): Use it to allow Emacs to just associate a pty
6807 with the buffer. See associated change in gdb-mi.el.
6808 (list_processes_1): Deal with no program name.
6809 (start_process_unwind): Use pid == -2 to mean no process.
6810
6811 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6812
6813 * cmds.c (nonundocount): New global variable.
6814 (keys_of_cmds): Initialize it.
6815 (Fself_insert_command): Use it to combine upto 20 sequential chars
6816 into a single undo entry, just like the Qself_insert_command code in
6817 keyboard.c does.
6818 Call frame_make_pointer_invisible, also like the Qself_insert_command
6819 code in keyboard.c does.
6820 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6821 than its own local replacement for it.
6822
6823 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
6824
6825 * fns.c (concat): Don't re-set string length to its current value.
6826
6827 * coding.h (decode_coding_string, encode_coding_string):
6828 Use SBYTES macro.
6829
6830 * doprnt.c (doprnt_lisp): Delete unused function.
6831 (doprnt): Merge with doprnt1, discarding lispstrings code.
6832 * lisp.h (doprnt_lisp): Don't declare.
6833
6834 2009-08-07 Juri Linkov <juri@jurta.org>
6835
6836 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6837
6838 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6839
6840 * print.c (syms_of_print): Undo previous change.
6841
6842 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6843
6844 * lread.c (read1, syms_of_lread): Read hashtables back from the
6845 readable format.
6846
6847 * print.c (print_preprocess, print_object): Print hashtables fully
6848 and readably.
6849 (syms_of_print): Provide 'hashtable-print-readable.
6850
6851 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6852
6853 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6854 no family set.
6855 (nsfont_open): Handle case when entity has no family.
6856
6857 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6858
6859 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6860 element, not a list, for match case.
6861
6862 2009-07-28 Kenichi Handa <handa@m17n.org>
6863
6864 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6865 rigidly.
6866
6867 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6868 font_parse_xlfd. Check font properties more rigidly.
6869
6870 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6871
6872 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6873 bsd-common.h.
6874
6875 2009-07-27 Kenichi Handa <handa@m17n.org>
6876
6877 * xfaces.c (face_with_height): Call font_clear_prop.
6878
6879 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
6880
6881 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6882
6883 * xterm.c (x_term_init): Use Qx.
6884
6885 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6886
6887 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6888 (ns_get_color): Revert 2009-07-16 change.
6889
6890 2009-07-25 Eli Zaretskii <eliz@gnu.org>
6891
6892 * lread.c (syms_of_lread) <force_load_messages>: New variable.
6893 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6894
6895 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
6896
6897 * coding.h (decode_coding_string, encode_coding_string):
6898 Use SCHARS macro.
6899
6900 * lread.c: Rewrite 2009-07-21 changes.
6901 (load_depth): Delete.
6902 (Qload_in_progress): New variable.
6903 (load_unwind): Don't reference load_depth or load_in_progress.
6904 (Fload): Likewise; specbind Qload_in_progress instead.
6905 (init_lread): Don't initialize load_depth.
6906 (syms_of_lread): Initialize and protect Qload_in_progress.
6907
6908 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6909
6910 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6911
6912 2009-07-23 Yavor Doganov <yavor@gnu.org>
6913
6914 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6915
6916 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6917
6918 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6919 Bugs 3792, 3720, 2402.
6920 (ns_lookup_indexed_color): Check for bad index.
6921 (ns_index_color): Init unused slot to 0.
6922 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6923 Bug 3714, possibly 3082.
6924
6925 2009-07-22 Jason Rumney <jasonr@gnu.org>
6926
6927 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6928 Position IME window at cursor (Bug#2570).
6929 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6930 (globals_of_w32fns): Dynamically load functions required above.
6931
6932 * w32term.c (w32_draw_window_cursor): Send message to reposition
6933 any IME window.
6934
6935 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6936
6937 * fileio.c: Revert 2009-07-16 changes.
6938 (Vauto_save_include_big_deletions): New variable.
6939 (Fdo_auto_save): Disable auto-save only if
6940 auto-save-include-big-deletions is nil.
6941
6942 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6943
6944 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6945 the overflowed pixels into account (Bug#3879).
6946
6947 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
6948
6949 * lread.c (load_depth): New variable.
6950 (Fload, load_unwind, init_lread): Set it to the load recursion
6951 depth; set load_in_progress as a simple boolean based on the
6952 current load_depth. (Bug#3892)
6953
6954 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6955
6956 * nsfont.m (ns_has_attribute): Remove.
6957 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6958
6959 2009-07-18 Juri Linkov <juri@jurta.org>
6960
6961 * process.c (Fset_process_query_on_exit_flag): Mention killing
6962 a buffer in docstring.
6963
6964 2009-07-17 Kenichi Handa <handa@m17n.org>
6965
6966 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6967
6968 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6969
6970 * nsfns.m (Fns_set_alpha): Remove function.
6971 (syms_of_nsfns): Don't defsubr it.
6972
6973 * nsterm.m (ns_get_color): Remove incompatible color formats.
6974 (ns_color_to_lisp): Generate #rrggbb color format string.
6975
6976 2009-07-16 Richard Stallman <rms@gnu.org>
6977
6978 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6979 (Fset_buffer_auto_saved): Handle save_length = -2.
6980
6981 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
6982
6983 * xterm.c (Qx_gtk_map_stock): New var.
6984
6985 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6986 of calling intern each time.
6987
6988 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6989
6990 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6991 does tiling.
6992
6993 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6994
6995 2009-07-14 Kenichi Handa <handa@m17n.org>
6996
6997 * font.c (font_vconcat_entity_vectors): New function.
6998 (struct font_sort_data): New member font_driver_preference.
6999 (font_compare): Check font_driver_preference.
7000 (font_sort_entities): The format of the first argument changed.
7001 (font_delete_unmatched): Likewise.
7002 (font_list_entities): The return type changed.
7003 (font_select_entity): The format of the second argument changed.
7004 (font_find_for_lface): Adjuste for the above changes.
7005 Don't suppress the checking of C even if the repertory supports it.
7006 (Flist_fonts): Adjust for the above changes.
7007
7008 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7009 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
7010 Reject a font who has adstyle property that is different from a
7011 langname derived from registry property.
7012 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
7013
7014 2009-07-13 Eli Zaretskii <eliz@gnu.org>
7015
7016 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7017 local copy of dirfilename.
7018
7019 2009-07-13 Kenichi Handa <handa@m17n.org>
7020
7021 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7022 against max_char.
7023
7024 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7025 calling XSYMBOL (sym).
7026
7027 2009-07-11 Eli Zaretskii <eliz@gnu.org>
7028
7029 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7030 New function.
7031 (directory_files_internal) [WINDOWSNT]:
7032 Bind w32-get-true-file-attributes to either t or nil, depending whether
7033 the filesystem of the directory is fast or slow.
7034
7035 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7036 file name.
7037 (is_slow_fs): New function.
7038 (stat): Use it to determine whether to issue more system calls to
7039 get accurate file attributes, when w32-get-true-file-attributes is
7040 `local'.
7041
7042 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7043
7044 * xfns.c (Fx_select_font): Remember last font selected in
7045 x_last_font_name and use that the next time. Also try the frame
7046 parameter font-parameter as default to the font dialog.
7047
7048 2009-07-10 Kenichi Handa <handa@m17n.org>
7049
7050 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7051
7052 2009-07-09 Eli Zaretskii <eliz@gnu.org>
7053
7054 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7055
7056 * w32.c (stat): Treat UNC file names as residing on remote
7057 drives. (Bug#3542)
7058
7059 2009-07-09 Kenichi Handa <handa@m17n.org>
7060
7061 * fontset.c (fontset_find_font): Fix previous change.
7062
7063 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
7064
7065 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7066 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7067 error flag.
7068
7069 2009-07-08 Kenichi Handa <handa@m17n.org>
7070
7071 * fontset.c (fontset_find_font): Fix the logic of handling
7072 charset_matched.
7073 (font_for_char): Delete unused var.
7074 (generate_ascii_font_name): Delete it.
7075
7076 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7077
7078 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7079 (encode_coding_sjis): Fix the code range check.
7080
7081 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
7082
7083 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7084 (Fexpand_file_name): Copy string data properly (Bug#3772).
7085
7086 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7087
7088 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7089 first MapNotify.
7090
7091 2009-07-07 Kenichi Handa <handa@m17n.org>
7092
7093 * character.h (unibyte_has_multibyte_table): Delete extern.
7094 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7095
7096 * charset.c (Fset_charset_priority): Update charset_unibyte.
7097 (syms_of_charset): Initialize charset_unibyte.
7098
7099 * character.c (unibyte_has_multibyte_table): Delete it.
7100 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7101 charset_unibyte.
7102 (multibyte_char_to_unibyte_safe): Likewise.
7103 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7104
7105 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
7106 (x_produce_glyphs): Likewise.
7107
7108 * .gdbinit (xcharset): Fix the treating $arg0.
7109
7110 2009-07-04 Eli Zaretskii <eliz@gnu.org>
7111
7112 Emulation of `getloadavg' on MS-Windows.
7113 * w32.c: Include float.h.
7114 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7115 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7116 (get_native_system_info, get_system_times): New functions.
7117 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7118 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7119 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7120 g_b_init_get_system_times, and num_of_processors.
7121
7122 2009-07-03 Jason Rumney <jasonr@gnu.org>
7123
7124 * w32term.c (w32_initialize): Use standard types.
7125
7126 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7127
7128 * dired.c (Ffile_attributes): Decode user and group names by the
7129 locale's encoding. (Bug#3443)
7130
7131 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7132
7133 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7134 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7135
7136 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7137
7138 * term.c (init_tty): Remove spurious #ifdef.
7139
7140 * m/mips.h: Mention this file is also used for netbsd.
7141 * m/pmax.h: Remove file.
7142
7143 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7144
7145 * xterm.h (struct x_display_info): Add invisible_cursor.
7146 (struct x_output): Add current_cursor.
7147
7148 * xterm.c (XTtoggle_invisible_pointer): New function.
7149 (x_define_frame_cursor): Don't define cursor if invisible or the
7150 same as before. Set current_cursor.
7151 (x_create_terminal): Set toggle_invisible_pointer_hook.
7152
7153 * xfns.c (make_invisible_cursor): New function.
7154 (x_set_mouse_color): Call make_invisible_cursor.
7155 Set current_cursor.
7156 (x_window): Set current_cursor.
7157
7158 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7159
7160 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7161 inserting a character.
7162 (read_avail_input): Call frame_make_pointer_visible.
7163
7164 * frame.c (Vmake_pointer_invisible): New variable.
7165 (frame_make_pointer_invisible, frame_make_pointer_visible):
7166 New functions.
7167 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7168
7169 * frame.h: Declare frame_make_pointer_invisible and
7170 frame_make_pointer_visible.
7171 (struct frame): Add pointer_invisible.
7172
7173 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7174
7175 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7176 frame isn't visible.
7177 (xg_frame_resized): If width/height is -1, get size of window
7178 from X server.
7179
7180 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7181 for MapNotify.
7182
7183 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7184 here or call change_frame_size. Just call flush_and_sync.
7185 (flush_and_sync): Reintroduce.
7186
7187 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7188
7189 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7190
7191 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7192 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7193
7194 * frame.h: Declare Qsticky.
7195
7196 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7197
7198 * nsfns.m (ns_frame_parm_handlers): Ditto.
7199
7200 * frame.c: Declare Qsticky.
7201 (frame_parms): Add sticky.
7202
7203 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7204
7205 * xterm.h: Declare x_set_sticky.
7206
7207 * xterm.c (x_set_sticky): New function.
7208
7209 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7210 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7211 xg_tool_bar_proxy_help_callback.
7212
7213 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7214
7215 * frame.c: Qmaximized is new.
7216 (x_set_frame_parameters): Do not handle fullscreen specially.
7217 Only set width and height if explicitly set.
7218 (x_set_fullscreen): Handle Qmaximized.
7219 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7220 (syms_of_frame): Initialize Qmaximized.
7221
7222 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7223 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7224
7225 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7226 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7227 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7228 set gravity to NorthWestGravity when USE_GTK.
7229 (set_wm_state): New function.
7230 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7231 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7232 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7233 or the case when no window manager is running. That means remove calls
7234 to x_real_positions and x_fullscreen_adjust.
7235
7236 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7237 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7238 flush_and_sync.
7239 (xg_height_changed): New function.
7240 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7241 and gtk_window_set_policy. Set frame gravity after parsing the
7242 geometry string.
7243 (xg_update_frame_menubar, free_frame_menubar)
7244 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7245 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7246 Remove calls to xg_frame_set_char_size.
7247
7248 2009-07-01 Kenichi Handa <handa@m17n.org>
7249
7250 * keyboard.c (decode_keyboard_code): New function.
7251 (tty_read_avail_input): Decode the input bytes if necessary.
7252
7253 * coding.c (setup_coding_system):
7254 Initialize coding->carryover_bytes to 0.
7255 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7256 use Qno_conversion.
7257
7258 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7259
7260 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7261
7262 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7263
7264 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7265
7266 2009-06-30 Jason Rumney <jasonr@gnu.org>
7267
7268 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7269 is already loaded.
7270 Set user model ID if supported (bug#1849).
7271
7272 2009-06-29 Jim Meyering <meyering@redhat.com>
7273
7274 Remove useless if-before-xfree test.
7275 * nsfont.m (nsfont_close): Remove useless test.
7276 * term.c (delete_tty): Likewise.
7277 * w32.c (system_process_attributes): Likewise.
7278 * w32font.c (w32font_close): Likewise.
7279 * xfaces.c (x_free_gc): Likewise.
7280 * xselect.c (buffer): Likewise.
7281
7282 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7283
7284 * process.c (send_process): Keep decoded string in a local
7285 variable and protect it from GC. (Bug#3521)
7286
7287 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7288
7289 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7290 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7291
7292 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7293
7294 * xdisp.c (start_display, handle_face_prop)
7295 (move_it_vertically_backward, cursor_row_fully_visible_p)
7296 (redisplay_window, try_window_id, produce_image_glyph):
7297 Delete some #ifdef-ed out code chunks that are now obsolete.
7298
7299 * xterm.c (x_update_window_begin, x_new_focus_frame)
7300 (x_scroll_bar_handle_click, handle_one_xevent)
7301 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7302 (x_make_frame_visible, x_make_frame_invisible)
7303 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7304 code chunks that are now obsolete.
7305
7306 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7307
7308 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7309 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7310 for hours, when optimzation is enabled.
7311 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7312 (xd_read_message): Make them static.
7313
7314 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7315
7316 * term.c (turn_on_face): Allow simultaneously bold and dim
7317 terminal faces (Bug#3530).
7318
7319 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7322
7323 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7324 truncation glyphs (Bug#3686).
7325
7326 2009-06-27 Glenn Morris <rgm@gnu.org>
7327
7328 * m/pmax.h: Restore file, with only netbsd portions.
7329
7330 2009-06-26 David Reitter <david.reitter@gmail.com>
7331
7332 * nsterm.m (keydown): Avoid infinite loop.
7333
7334 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7335
7336 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7337 the arg FORCE_SYMBOL.
7338
7339 2009-06-25 Kenichi Handa <handa@m17n.org>
7340
7341 * fontset.c (fontset_find_font): When a usable rfont_def is found
7342 in a fallback font-group, make it the first element of the group.
7343
7344 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7345
7346 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7347
7348 2009-06-24 Kenichi Handa <handa@m17n.org>
7349
7350 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7351 set for C.
7352 (fontset_font): Record the availability of a font for C both in
7353 the realized fontsets of the current one and the default one.
7354
7355 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7356
7357 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7358 conditional, it is always defined on AIX.
7359
7360 2009-06-23 Miles Bader <miles@gnu.org>
7361
7362 * window.c (Vrecenter_redisplay): New variable.
7363 (syms_of_window): Initialize it.
7364 (Qtty): New extern declaration.
7365 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7366
7367 2009-06-23 Jim Meyering <meyering@redhat.com>
7368
7369 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7370 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7371 pointer dereferences are guaranteed to be valid.
7372
7373 2009-06-23 Kenichi Handa <handa@m17n.org>
7374
7375 * emacs.c (main): Call init_font ().
7376
7377 * font.h (Vfont_log): Extern it.
7378 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7379
7380 * font.c (font_sort_entities, font_list_entities)
7381 (font_matching_entity, font_open_entity)
7382 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7383 (Vfont_log): Delete static.
7384 (font_log_env_checked): Delete this variable.
7385 (font_add_log): Don't check font_log_env_checked.
7386 (font_deferred_log): Check Vfont_log.
7387 (init_font): New function.
7388
7389 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7390
7391 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7392
7393 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7394
7395 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7396
7397 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7398 (face_for_char): Don't call font_deferred_log here.
7399 (font_for_char): Likewise.
7400
7401 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7402
7403 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7404 rather than its background_width for drawing the overline and
7405 underline (Bug#489).
7406
7407 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7408 rather than its background_width for drawing the overline and
7409 underline (Bug#489).
7410 (xg_default_icon_file): New variable.
7411 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7412 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7413
7414 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7415 (load_overlay_strings): Remove externs.
7416 (fast_find_position): Function deleted.
7417 (mouse_face_from_buffer_pos): New function, based on
7418 fast_find_position. Correctly handle before-strings,
7419 display-strings, and after-strings (Bug#1220).
7420 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7421
7422 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7423
7424 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7425 (move_it_in_display_line_to, move_it_in_display_line_to)
7426 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7427
7428 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7429
7430 * Branch for 23.1.
7431
7432 2009-06-21 Jason Rumney <jasonr@gnu.org>
7433
7434 * w32term.c (keyboard_codepage): New static variable.
7435 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7436 (w32_read_socket) [WM_CHAR]: Use it to decode character
7437 input (bug#3237).
7438 (w32_initialize): Initialize it.
7439 (codepage_for_locale): New function.
7440
7441 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7442
7443 * process.c (status_message): Pass Faset index argument as a lisp
7444 object, so as to work with USE_LISP_UNION_TYPE.
7445
7446 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7447
7448 * coding.c (Ffind_coding_systems_region_internal):
7449 Cache checked characters.
7450
7451 2009-06-18 Kenichi Handa <handa@m17n.org>
7452
7453 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7454
7455 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7456
7457 * xdisp.c (redisplay_internal): Check that the frame is still
7458 live after redisplay of its windows.
7459 (redisplay_windows): Check that the window is still live.
7460
7461 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7462
7463 * coding.c (detect_coding_utf_16): Fix previous change.
7464
7465 2009-06-16 Kenichi Handa <handa@m17n.org>
7466
7467 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7468 UTF-16 by checking the dispersion of Eth and Oth bytes.
7469
7470 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7471
7472 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7473
7474 2009-06-15 Kenichi Handa <handa@m17n.org>
7475
7476 * process.c (status_message): Fix previous change. Be sure to
7477 decode a localized string.
7478
7479 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7480
7481 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7482 add comment explaining why.
7483
7484 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7485
7486 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7487
7488 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7489
7490 * nsfont.m (ns_attribute_value): Remove.
7491 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7492 (ns_has_attribute): Shrink the normal range.
7493 (ns_findfonts): Don't worry about requested spec in determining
7494 need for synthItal.
7495 (ns_get_covering_families): Retain scriptToFamilies.
7496
7497 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7498
7499 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7500
7501 2009-06-11 Kenichi Handa <handa@m17n.org>
7502
7503 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7504 overhang for the static composition case.
7505
7506 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7507
7508 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7509 overhang for the automatic composition case.
7510
7511 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7512 composition case.
7513
7514 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7515
7516 * xdisp.c (get_next_display_element): When handling wrap-prefix
7517 and line-prefix, treat \n as a control character (bug#3502).
7518
7519 2009-06-10 Kenichi Handa <handa@m17n.org>
7520
7521 * font.c (font_parse_family_registry): Fix for one-char foundry.
7522 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7523
7524 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7525
7526 * process.c (status_message): Fix handling of multibyte signal
7527 string (Bug#3499).
7528
7529 2009-06-09 Jim Meyering <meyering@redhat.com>
7530
7531 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7532 color name is missing.
7533
7534 2009-06-09 Kenichi Handa <handa@m17n.org>
7535
7536 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7537 FROM-CODE and TO-CODE are codepoints of CHARSET.
7538
7539 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7540
7541 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7542
7543 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7544
7545 Changes to support :script/:lang/:otf in NS font driver.
7546 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7547 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7548 indicate not part of font driver interface, and change callers.
7549 (ns_get_family): Remove pointless null check.
7550 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7551 ns_spec_to_descriptor, ns_descriptor_to_entity.
7552 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7553 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7554 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7555 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7556 (ns_get_req_script, ns_accumulate_script_ranges)
7557 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7558 New functions.
7559 (nsfont_list, nsfont_match): Use ns_findfonts.
7560 (nsfont_open): Use font descriptor instead of traits.
7561 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7562 (dump_glyphstring): Rename to ns_dump_glyphstring.
7563
7564 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7565
7566 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7567
7568 * fontset.c (fontset_from_font): Remove NS-specific code.
7569
7570 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
7571
7572 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7573 nonactive windows.
7574
7575 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
7576
7577 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7578
7579 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7580
7581 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7582
7583 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
7584
7585 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7586 account for the overflowing of newlines into the last glyph on the
7587 display line (Bug#3482).
7588
7589 2009-06-05 David Reitter <david.reitter@gmail.com>
7590
7591 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7592 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7593 Fns_selection_exists_p, Fns_selection_owner_p.
7594
7595 2009-06-03 Jason Rumney <jasonr@gnu.org>
7596
7597 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7598 available. (Bug#3379)
7599
7600 2009-05-29 Kenichi Handa <handa@m17n.org>
7601
7602 * coding.c (get_translation_table):
7603 Check Venable_character_translation.
7604
7605 2009-05-26 David Reitter <david.reitter@gmail.com>
7606
7607 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7608 (x_make_frame_visible): Move frame to front rather than calling
7609 ns_raise_frame().
7610 (keyDown:): Do not swallow events that aren't re-sent if frame
7611 isn't key window.
7612 (drawRect:): Do not set visibility/iconified flags because
7613 drawRect may be called by NSView even if the frame is hidden.
7614
7615 * nsfns.m (Fx_create_frame): Follow other ports in
7616 determining visibility; default to t. Ensure async_visible is set.
7617
7618 2009-05-23 Eli Zaretskii <eliz@gnu.org>
7619
7620 * dired.c (Ffile_attributes): Doc fix.
7621
7622 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
7623
7624 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7625
7626 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7627
7628 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7629 and xfont_scratch_props.
7630 (syms_of_xfont): Do it here instead.
7631 (xfont_find_ccl_program): Delete, unused.
7632 (xfont_open): Delete unused var `i'.
7633
7634 2009-05-21 Kenichi Handa <handa@m17n.org>
7635
7636 * fontset.c (Qlatin): Don't make it static.
7637
7638 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7639 New functions.
7640 (xfont_scripts_cache, xfont_scratch_props): New variables.
7641 (Qlatin, Vscalable_fonts_allowed): Extern it.
7642 (xfont_list_pattern): Argument changed. Callers changed.
7643 Check Vscalable_fonts_allowed. Check the support of a script.
7644 (xfont_list): Don't reject a font spec with :script property.
7645 (xfont_has_char): Fix setting of encoding.
7646 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7647 xfont_scratch_props.
7648
7649 2009-05-19 Kenichi Handa <handa@m17n.org>
7650
7651 * font.c (font_sort_entities): Rename from font_sort_entites.
7652 Callers changed.
7653
7654 2009-05-18 Kenichi Handa <handa@m17n.org>
7655
7656 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7657
7658 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7659
7660 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7661 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7662
7663 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7664
7665 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7666 (x_delete_terminal): Dissociate resource database from display and
7667 then call XrmDestroyDatabase before closing display.
7668
7669 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7670
7671 * nsterm.m (ns_read_socket): Remove unused variable.
7672 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7673 whether selected frame is viable before raising it (based on patch
7674 by David Reitter), and improve commentary.
7675 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7676
7677 2009-05-15 Kenichi Handa <handa@m17n.org>
7678
7679 * font.c (Ffont_spec): Check arguments.
7680
7681 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
7682
7683 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7684 weight when testing attributes (Bug#3282).
7685
7686 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7687
7688 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7689 what we expect to get in the next ConfigureNotify event.
7690
7691 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7692 before Xft one (Bug#1696).
7693
7694 2009-05-07 David Reitter <david.reitter@gmail.com>
7695
7696 * nsfns.m (Fx_display_planes): Compute bitplanes using
7697 NSBitsPerPixelFromDepth (Bug#3207).
7698
7699 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
7700
7701 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7702
7703 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
7704
7705 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7706
7707 2009-05-07 David Reitter <david.reitter@gmail.com>
7708
7709 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7710 Respect mouse face background.
7711
7712 2009-05-07 David Reitter <david.reitter@gmail.com>
7713
7714 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7715 Mouse movement/highlight: bracket drawing operations
7716 in ns_update_begin and ns_update_end.
7717
7718 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7719
7720 * nsfns.m (ns_get_screen): Rewrite.
7721 Don't presume selected-frame is of type `ns'.
7722
7723 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7724 all drivers.
7725
7726 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7727
7728 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7729
7730 * keyboard.h (add_user_signal): Fix typo in extern.
7731
7732 * lisp.h (add_user_signal): Remove extern.
7733
7734 * unexelf.c (unexec): Consider a section to precede the .bss section
7735 if its addresses overlap that of .bss.
7736 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7737 instead of dumping process.
7738
7739 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7740
7741 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7742
7743 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7744
7745 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7746
7747 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7748
7749 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7750 any statements.
7751
7752 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7753
7754 * process.c (read_process_output): Make sure the current buffer is
7755 always restored.
7756
7757 * coding.c (record_conversion_result): Don't modify
7758 Vlast_code_conversion_error for successful result.
7759 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7760
7761 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7762
7763 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7764 (load_charset_map): Remove unnecessary code.
7765
7766 2009-04-30 David Reitter <david.reitter@gmail.com>
7767
7768 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7769 through f24.
7770
7771 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7772
7773 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7774
7775 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7776 face_at_buffer_position.
7777 (face_before_or_after_it_pos, get_next_display_element)
7778 (note_mouse_highlight): Update face_at_buffer_position call.
7779
7780 * term.c (term_mouse_highlight):
7781 * msdos.c (IT_note_mouse_highlight):
7782 * fontset.c (Finternal_char_font):
7783 * font.c (font_at, font_range): Update face_at_buffer_position call.
7784
7785 * dispextern.h (face_at_buffer_position): Update prototype.
7786
7787 2009-04-30 Kenichi Handa <handa@m17n.org>
7788
7789 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7790
7791 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7792
7793 * callproc.c (Fcall_process): Fix GC protection. Make sure
7794 current buffer is always restored.
7795
7796 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7797
7798 * atimer.c (init_atimer): Also clear stopped_atimers.
7799
7800 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7801
7802 * process.c (create_process): Clean up merger residues of
7803 2008-07-17 change.
7804
7805 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7806
7807 * lread.c (Vread_circle): New variable.
7808 (read1): Disable recursive read if Vread_circle is nil.
7809
7810 2009-04-29 Kenichi Handa <handa@m17n.org>
7811
7812 * fontset.h (set_default_ascii_font): Delete extern.
7813
7814 * fontset.c (set_default_ascii_font): Delete this unused function.
7815
7816 * frame.c (x_set_font): When ARG is a font-object, check if the
7817 font-object matches with the ASCII font-spec of the frame's
7818 fontset. If not, create a new fontset for the frame. (Bug #3075)
7819
7820 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7821
7822 * fns.c (Flocale_info): Protect vector from GC during decoding.
7823
7824 * process.c (Fstart_process): Protect argv strings from GC during
7825 encoding.
7826
7827 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7828
7829 * sysdep.c: Include <ctype.h>.
7830
7831 2009-04-27 David Reitter <david.reitter@gmail.com>
7832
7833 * nsfont.m (nsfont_open): Remove unused variable shrink.
7834 Remove commented-out code.
7835
7836 2009-04-26 Johan Bockgård <bojohan@gnu.org>
7837
7838 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7839
7840 2009-04-25 Jason Rumney <jasonr@gnu.org>
7841
7842 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7843
7844 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7845
7846 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7847 Swap bytes in short integer if fringe bitmap width > 8.
7848
7849 2009-04-23 Kenichi Handa <handa@m17n.org>
7850
7851 * xfaces.c (Fx_list_fonts): If a font size is specified in
7852 PATTERN, set it in returned scalable fonts.
7853
7854 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
7855
7856 * keyboard.c (Fset_input_meta_mode): Doc fix.
7857
7858 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7859
7860 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7861
7862 * coding.c (Fterminal_coding_system): Doc fix.
7863
7864 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7865 (Fx_display_pixel_height, Fx_display_planes)
7866 (Fx_display_color_cells, Fx_server_max_request_size)
7867 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7868 (Fx_display_mm_height, Fx_display_mm_width)
7869 (Fx_display_backing_store, Fx_display_visual_class)
7870 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7871 Doc fixes, replacing "terminal id" with "terminal object".
7872 (check_x_display_info): Handle terminal objects instead of
7873 terminal ids.
7874
7875 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7876 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7877 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7878 Doc fixes, replacing "terminal id" with "terminal object".
7879
7880 2009-04-21 Kenichi Handa <handa@m17n.org>
7881
7882 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7883 (font_score): Check AVGWIDTH too.
7884
7885 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7886 worst case.
7887 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7888 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7889
7890 2009-04-19 Jason Rumney <jasonr@gnu.org>
7891
7892 The following changes fix Bug#3005 for wide glyphs on each platform,
7893 without reintroducing Bug#1258 for stretch glyphs.
7894
7895 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7896 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7897 get_phys_cursor_geometry.
7898
7899 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7900 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7901 using get_phys_cursor_geometry.
7902
7903 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7904 correctly calculated.
7905
7906 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7907
7908 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7909 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7910 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7911 is deprecated.
7912
7913 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7914
7915 * font.c (font_put_frame_data): Use xfree instead of free.
7916
7917 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
7918
7919 * w32font.c (Qja, Qko): Remove declarations.
7920 (syms_of_w32font): Don't DEFSYM them.
7921
7922 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7925
7926 * font.h (Qja, Qko): Extern them.
7927
7928 * ftfont.c (Qja, Qko): Remove declarations.
7929
7930 * xfont.c (Qja, Qko): Remove declarations.
7931
7932 2009-04-17 Kenichi Handa <handa@m17n.org>
7933
7934 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7935 string from a vector to handle Latin-1 characters correctly.
7936
7937 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7938 entity even if the cache hits.
7939
7940 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7941
7942 * search.c (boyer_moore): Use zero as marker value for a possible
7943 match instead of depending on overflow behavior. (Bug#2844)
7944
7945 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7946 * lisp.h: Adjust prototypes.
7947
7948 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
7949
7950 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7951 change (Bug#3003).
7952
7953 2009-04-16 Kenichi Handa <handa@m17n.org>
7954
7955 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7956
7957 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7958 adstyle.
7959
7960 * ftfont.c (Qja, Qko): Don't make them static.
7961 (enum ftfont_cache_for): New enum.
7962 (fc_charset_table): Undo the previous change.
7963 (ftfont_get_latin1_charset): Delete it.
7964 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7965 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
7966 non-scarable font, try to get AVERAGE_WIDTH.
7967 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7968 Change ft_face_cache from a list of a hash-table. Don't check
7969 `ja' and `ko' adstyle here.
7970 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7971 FTFONT_CACHE_FOR_CHARET.
7972 (ftfont_get_charset): Undo the previous change.
7973 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7974 (ftfont_close): Likewise.
7975 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7976
7977 * font.c (font_sort_entites): Change the meaning of the arg
7978 BEST-ONLY. Don't optimize for VEC of lenght 1.
7979 (font_select_entity): Just return the value of font_sort_entites.
7980
7981 * xfaces.c (merge_face_vectors): Reflect font properties in
7982 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7983 font_clear_prop if a face attribute doesn't change.
7984
7985 * charset.h (charset_ksc5601): Extern it.
7986
7987 * charset.c (charset_ksc5601): New variable.
7988 (Fdefine_charset_internal): Set charset_ksc5601.
7989 (init_charset_once): Initialize charset_ksc5601 to -1.
7990
7991 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7992
7993 * fileio.c (history_delete_duplicates): Remove unused declaration.
7994
7995 * callint.c (history_delete_duplicates): New declaration.
7996 (Fcall_interactively): Remove command history duplicates when
7997 history_delete_duplicates is true.
7998
7999 2009-04-14 Eli Zaretskii <eliz@gnu.org>
8000
8001 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8002
8003 2009-04-14 Kenichi Handa <handa@m17n.org>
8004
8005 * font.c (Ffont_info): Fix docstring. Fix the second element of
8006 the returned value (bug#2949).
8007
8008 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
8009
8010 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8011
8012 2009-04-14 Kenichi Handa <handa@m17n.org>
8013
8014 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8015 encoding charset is ascii_compatible.
8016
8017 * charset.c (Fdefine_charset_internal): Make charset
8018 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8019 code_offset is 0, and covers all ASCII characters.
8020
8021 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8022
8023 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8024 (ns_string_to_pasteboard_internal):
8025 * nsmenu.m (process_dialog):
8026 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8027 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8028 * lisp.h (Fx_load_color_file): Declare.
8029
8030 2009-04-13 Kenichi Handa <handa@m17n.org>
8031
8032 * font.c (font_delete_unmatched): Preserve the order of list elements.
8033 (font_select_entity): Suppress the code to optimize for the same
8034 kind of fonts.
8035 (font_load_for_lface): Get a font that supports at least ASCII
8036 characters.
8037
8038 * ftfont.c (Qja, Qko): New variables.
8039 (fc_charset_table): Delete uniquifier data for iso8859-1.
8040 (ftfont_get_latin1_charset): New function.
8041 (get_adstyle_property): New function.
8042 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8043 bitmap fonts.
8044 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8045 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8046 `ko' or `ja'.
8047 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
8048 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
8049 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8050 property.
8051 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8052 (syms_of_ftfont): DEFSYM Qja and Qko.
8053
8054 2009-04-09 Kenichi Handa <handa@m17n.org>
8055
8056 * charset.c (map_charset_chars): For a charset of `superset'
8057 method, fix calculation of code range.
8058
8059 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8060 from the list of extra properties.
8061 (font_clear_prop): Be sure to delete `:name' font property.
8062
8063 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8064
8065 * dispnew.c (redraw_overlapping_rows): Fix detection of
8066 overlapping for topmost and bottommost rows.
8067
8068 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
8069
8070 2009-04-06 Jason Rumney <jasonr@gnu.org>
8071
8072 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8073
8074 2009-04-06 Kenichi Handa <handa@m17n.org>
8075
8076 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8077
8078 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8079
8080 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8081
8082 * ftfont.c (ftfont_open): Fix checking of the return value of
8083 FT_Load_Char. Fix setting font->underline_thickness.
8084
8085 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
8086
8087 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8088 (Fterminal_parameters, Fterminal_parameter)
8089 (Fset_terminal_parameter): In doc string, refer to terminal
8090 objects rather than terminal ids.
8091
8092 2009-04-04 Eli Zaretskii <eliz@gnu.org>
8093
8094 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8095 ret_lim_data. (Bug#2867)
8096
8097 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
8098
8099 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8100 so they don't get wider than the window, matching 2006-01-23
8101 change to the partner function in xdisp.c (Bug#2800).
8102
8103 2009-04-03 Kenichi Handa <handa@m17n.org>
8104
8105 * print.c (print_object): Make each lowest sub_char_table start a
8106 new line (Bug#2866).
8107
8108 2009-04-02 Kenichi Handa <handa@m17n.org>
8109
8110 * fontset.c (fontset_font): Record no-font when a fontset
8111 explicitly tells not to try another font-specs.
8112
8113 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8114
8115 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8116
8117 2009-03-30 Kenichi Handa <handa@m17n.org>
8118
8119 * fontset.c (fontset_from_font): Specify only registry in a
8120 font-spec for all characters supported by that registry.
8121
8122 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8123 even if HAVE_M17N_FLT is not defined.
8124
8125 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8126
8127 * ftfont.c: Conditionalize prototyping and use of
8128 ftfont_variation_glyphs.
8129
8130 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8131
8132 * frame.c (delete_frame): Work around compiler bug.
8133
8134 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8135 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8136 Some more EMACS_INT.
8137 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8138
8139 * xdisp.c (dump_glyph): Fix typo.
8140
8141 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8142 (adjust_markers_gap_motion, adjust_markers_for_delete)
8143 (adjust_markers_for_insert, adjust_point)
8144 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8145 (make_gap, copy_text, count_size_as_multibyte, insert)
8146 (insert_and_inherit, insert_before_markers)
8147 (insert_before_markers_and_inherit, insert_1)
8148 (count_combining_before, count_combining_after, insert_1_both)
8149 (insert_from_string, insert_from_string_before_markers)
8150 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8151 (insert_from_buffer_1, adjust_after_replace)
8152 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8153 (replace_range_2, del_range, del_range_1, del_range_byte)
8154 (del_range_both, del_range_2, modify_region)
8155 (prepare_to_modify_buffer, signal_before_change)
8156 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8157 for buffer positions and sizes.
8158 * lisp.h: Adjust prototypes accordingly.
8159
8160 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8161 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8162 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8163
8164 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8165
8166 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8167
8168 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8169 lines and columns so we keep the same pixel height and width.
8170
8171 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8172 the property _NET_WM_STATE has changed.
8173 (x_handle_net_wm_state): New function to update frame parameter
8174 fullscreen.
8175 (x_term_init): Initialize atoms for _NET_WM_STATE.
8176
8177 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8178
8179 2009-03-27 Kevin Ryde <user42@zip.com.au>
8180
8181 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8182 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8183 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8184 (Fgpm_mouse_stop): Pass that new parameter.
8185 * termhooks.h (close_gpm): Adjust prototype.
8186
8187 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8188
8189 * lisp.h (Fx_focus_frame): Declare.
8190
8191 * callint.c (Fcall_interactively): For '^' just delegate the work to
8192 handle-shift-selection.
8193 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8194
8195 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8196
8197 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8198
8199 * data.c (Qinteractive_form): New variable.
8200 (Finteractive_form): Use it.
8201
8202 * eval.c (Fcommandp): Use Qinteractive_form.
8203
8204 2009-03-24 Jason Rumney <jasonr@gnu.org>
8205
8206 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8207 Calculate total size precisely. Decode environment variables
8208 before substituting. (Bug#38)
8209
8210 2009-03-24 Kenichi Handa <handa@m17n.org>
8211
8212 * font.c (find_font_encoding): Return Qnil for unsupported
8213 encoding (Bug#2722).
8214
8215 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8216
8217 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8218 that gdpy is set.
8219
8220 2009-03-22 Alan Mackenzie <acm@muc.de>
8221
8222 * callint.c (Finteractive): Clarify the doc string - even
8223 promptless elements need \n separators.
8224
8225 2009-03-22 Jason Rumney <jasonr@gnu.org>
8226
8227 * w32term.c (syms_of_w32term): Doc fix for
8228 x-use-underline-position-properties.
8229
8230 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8231
8232 * w32.c (getpwuid): Change argument type to unsigned.
8233 (struct w32_id): Change type of `rid' member to unsigned.
8234 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8235 argument ID to unsigned. All callers changed.
8236 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8237
8238 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8239
8240 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8241 negative, produce a float value.
8242
8243 * dired.c (make_uid, make_gid): New functions.
8244 (Ffile_attributes): Use them to avoid negative UID and GID.
8245
8246 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8247
8248 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8249 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8250 Fix typos in docstrings.
8251
8252 2009-03-19 Kenichi Handa <handa@m17n.org>
8253
8254 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8255 changed, use font_load_for_lface to get a new font object.
8256 Call free_realized_fontset after handling ASCII font change.
8257
8258 * frame.c (x_set_font): Handle the case that ARG is a cons.
8259
8260 2009-03-19 Glenn Morris <rgm@gnu.org>
8261
8262 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8263
8264 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8267
8268 2009-03-19 Kenichi Handa <handa@m17n.org>
8269
8270 * charset.c (load_charset_map_from_file): When a mapfile can't be
8271 loaded, signal an error.
8272
8273 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8274
8275 * dired.c (Ffile_attributes): Make sure UID and GID are always
8276 positive, even if the value is too large for a positive EMACS_INT.
8277 Doc fix.
8278
8279 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8280
8281 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8282
8283 * xmenu.c (xdialog_show): Move Fredisplay call ...
8284 (Fx_popup_dialog): ... here.
8285
8286 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8287
8288 * dired.c (file_name_completion): Disable the first optimization just
8289 installed, since it is not implemented correctly.
8290
8291 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8292
8293 * dired.c (file_name_completion): Check completion-ignored-extensions
8294 only if the entry can affect bestmatch.
8295 Stop the search early, as Ftry_completion already does.
8296
8297 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8298
8299 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8300
8301 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8302
8303 * keyboard.c (parse_menu_item): Don't display remappings as menu
8304 equivalent bindings (Bug#788).
8305
8306 2009-03-15 Jason Rumney <jasonr@gnu.org>
8307
8308 * w32term.h (WM_EMACS_PAINT): New message.
8309 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8310 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8311 before passing to lisp thread. (Bug#950)
8312
8313 2009-03-14 David Reitter <david.reitter@gmail.com>
8314
8315 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8316 variable as it was never reset.
8317 (ns_term_init): Remove initialization of Lisp-settable defaults
8318 and ns_expand_space.
8319 (-setPanelFromDefaultValues): Remove ns_expand_space.
8320 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8321 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8322 i.e. no additional spacing, similar to Carbon port.
8323
8324 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8325 * nsfns.m (ns-popup-prefs-panel): Remove.
8326
8327 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8328
8329 * sound.c (alsa_configure): Remove call to deprecated
8330 snd_pcm_sw_params_set_xfer_align.
8331
8332 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8333
8334 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8335 after clicking in a detached tool bar.
8336 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8337
8338 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8339
8340 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8341 int/Lisp_Object mixup).
8342
8343 2009-03-13 Kenichi Handa <handa@m17n.org>
8344
8345 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8346 Handle NAME nil and t correctly. Callers changed.
8347 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8348 (set_fontset_font): Change ARG to a vector. Handle range_list in
8349 ARG correctly.
8350 (Fset_fontset_font): Fix the case that TARGET is both a script
8351 name and charset name. Adjust the arg to set_fontset_font for
8352 the above change.
8353 (fontset_from_font): Fix previous change.
8354 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8355 entry. If FONTSET is the default fontset, don't set the extra
8356 slot of the returning char-table.
8357
8358 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8359
8360 * nsfns.m (Fx_close_connection): Doc fix.
8361 (Fns_do_applescript): Reflow docstring.
8362 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8363 (Fx_display_pixel_width, Fx_display_pixel_height)
8364 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8365 Fix typos in docstrings.
8366 (Fns_set_alpha): Fix typos in error messages.
8367
8368 2009-03-12 David Reitter <david.reitter@gmail.com>
8369
8370 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8371 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8372 were used for such events.
8373
8374 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8375 (toggleToolbar, performDragOperation, runHelp): Use it.
8376
8377 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8378 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8379
8380 2009-03-11 Kenichi Handa <handa@m17n.org>
8381
8382 * font.h (font_open_by_spec): Extern it.
8383
8384 * font.c (font_open_by_spec): New function.
8385 (font_open_by_name): Use font_open_by_spec.
8386
8387 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8388 fontset of the frame.
8389
8390 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8391 modify the default font of frames that use this fontset.
8392 (num_auto_fontsets): New variable.
8393 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8394 name. Be sure to set FONTSET_ASCII to the correct font name.
8395 (update_auto_fontset_alist): New function.
8396
8397 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8398
8399 * makefile.w32-in: Update dependencies.
8400
8401 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8402
8403 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8404
8405 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8406
8407 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8408
8409 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * lread.c (Feval_buffer): Doc fix.
8412
8413 2009-03-09 Kenichi Handa <handa@m17n.org>
8414
8415 * charset.c (Qfile_name_handler_alist): Extern it.
8416 (load_charset_map_from_file): Temporarily bind
8417 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8418
8419 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8420
8421 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8422 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8423
8424 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8425
8426 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8427 (x_set_window_size): Change back to calculated method of setting
8428 toolbar height under Cocoa. (Bug#2546)
8429 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8430 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8431
8432 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8433
8434 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8435 accelerator in parens under GNUstep.
8436
8437 2009-03-06 Kenichi Handa <handa@m17n.org>
8438
8439 These changes are to detect incorrect composition sequence without
8440 looking ahead the source. (Bug#2370)
8441
8442 * coding.h: Include "composite.h".
8443 (enum compisition_state): New enum.
8444 (struct compisition_status): New struct.
8445 (struct iso_2022_spec): New member cmp_status.
8446 (struct emacs_mule_spec): New struct.
8447 (struct coding_system): New members ctext_extended_segment_len and
8448 embedded_utf_8. Change the union member
8449 spec.emacs_mule_full_support to spec.emacs_mule.
8450
8451 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8452 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8453 (MAX_ANNOTATION_LENGTH): Define to 5.
8454 (ADD_COMPOSITION_DATA): New arg nbytes.
8455 (emacs_mule_char): New arg cmp_status.
8456 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8457 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8458 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8459 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8460 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8461 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8462 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8463 (EMACS_MULE_COMPOSITION_END): New macro.
8464 (emacs_mule_finish_composition): New function.
8465 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8466 (decode_coding_emacs_mule): Avoid long looking ahead while
8467 handling composition.
8468 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8469 (ENCODE_COMPOSITION_RULE): New macro.
8470 (finish_composition): New function.
8471 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8472 (DECODE_COMPOSITION_START): New implementation.
8473 (DECODE_COMPOSITION_END): Likewise.
8474 (STORE_COMPOSITION_RULE): New macro.
8475 (decode_coding_iso_2022): Avoid long looking ahead while handling
8476 composition, CTEXT extended segment, and embedded UTF-8.
8477 (setup_coding_system): For a coding of type iso-2022, reset
8478 CODING_ISO_EXTSEGMENT_LEN (coding) and
8479 CODING_ISO_EMBEDDED_UTF_8 (coding).
8480 (get_translation): Delete arguments last_block, from_nchars,
8481 to_nchars. Callers changed.
8482 (produce_chars): Don't modify charbuf. Adjusted for the change of
8483 get_translation.
8484 (produce_composition): Adjust for the new annotation sequence.
8485 (handle_composition_annotation): Likewise.
8486 (consume_chars): Adjust for the change of get_translation.
8487
8488 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8489
8490 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8491
8492 2009-03-05 Kenichi Handa <handa@m17n.org>
8493
8494 * font.c (font_select_entity): New function.
8495 (font_find_for_lface): Use font_select_entity to select a font.
8496
8497 * fontset.c (fontset_find_font): If a font found without
8498 restricting to the characters C doesn't support C, try to find a
8499 font with C restriction.
8500
8501 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8502
8503 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8504
8505 2009-03-04 Jason Rumney <jasonr@gnu.org>
8506
8507 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8508 characters that have already been read. (Bug#2569)
8509
8510 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8511 Log an error message if check_image_size failed.
8512 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8513 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8514
8515 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8516
8517 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8518 when decoding process output.
8519
8520 2009-03-01 Richard M Stallman <rms@gnu.org>
8521
8522 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8523
8524 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8525
8526 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8527
8528 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8529 (decode_coding_emacs_mule, decode_coding_iso_2022)
8530 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8531 (decode_coding_raw_text, decode_coding_charset)
8532 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8533 Honor inhibit-eol-conversion. (Bug #2186)
8534
8535 2009-02-28 Jason Rumney <jasonr@gnu.org>
8536
8537 * coding.c (detect_coding_charset): If not checking latin extra,
8538 fail on characters between 0x80 and 0xA0. (Bug#2354)
8539
8540 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8541
8542 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8543 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8544
8545 2009-02-27 Glenn Morris <rgm@gnu.org>
8546
8547 * callint.c (Finteractive): Doc fix.
8548
8549 2009-02-27 Kenichi Handa <handa@m17n.org>
8550
8551 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8552
8553 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
8554
8555 * font.c (font_style_to_value): Set value for unknown symbols to
8556 100 instead of 255.
8557 (weight_table, slant_table, width_table): Treat "unspecified" as
8558 the default value.
8559
8560 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
8561
8562 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8563
8564 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
8565
8566 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8567 error as soon as a recursive load is detected.
8568
8569 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8570
8571 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8572 before caching.
8573
8574 2009-02-24 Kenichi Handa <handa@m17n.org>
8575
8576 * fontset.c (fontset_find_font): Fix the condition for checking
8577 unavailable font.
8578
8579 2009-02-24 Glenn Morris <rgm@gnu.org>
8580
8581 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8582 whitespace that confuses documentation.
8583
8584 2009-02-23 Miles Bader <miles@gnu.org>
8585
8586 * process.c (Flist_system_processes, Fprocess_attributes)
8587 (syms_of_process): Rename `system-process-attributes' to
8588 `process-attributes'.
8589
8590 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8591
8592 * coding.h (struct coding_system): Make safe_charsets a pointer to
8593 unsigned char.
8594 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8595 being 255.
8596 (SAFE_CHARSET_P): Likewise.
8597 (setup_iso_safe_charsets): Properly setup safe_charsets.
8598 (Fdefine_coding_system_internal): Likewise.
8599 (setup_coding_system): Likewise. Remove unneeded casts.
8600 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8601 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8602 unneeded casts.
8603
8604 * insdel.c (del_range_2): Don't modify gap contents when called
8605 from decode_coding_object. (Bug#1809)
8606
8607 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
8608
8609 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8610 Qfont_object.
8611 (Ftype_of): Recognize font objects.
8612
8613 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8614
8615 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8616 moved to data.c.
8617
8618 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8619
8620 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8621 async_iconified. Based on a patch by Christian Lynbech
8622 <christian.lynbech@tieto.com>.
8623 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8624
8625 2009-02-20 Glenn Morris <rgm@gnu.org>
8626
8627 * syntax.c (Fskip_chars_forward): Fix doc typo.
8628
8629 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
8630
8631 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8632
8633 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
8634
8635 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8636
8637 2009-02-19 Kenichi Handa <handa@m17n.org>
8638
8639 * coding.c (detect_coding): Preserve coding->mode.
8640 Don't overflow coding->carryover. (Bug#2370)
8641
8642 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8643
8644 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8645
8646 2009-02-18 Kenichi Handa <handa@m17n.org>
8647
8648 * font.c (font_check_otf_features): Fix handling of `nil' element.
8649 (Ffont_spec): Describe :lang and :otf in the docstring.
8650
8651 2009-02-16 Andreas Schwab <schwab@suse.de>
8652
8653 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8654 string.
8655
8656 2009-02-16 Kenichi Handa <handa@m17n.org>
8657
8658 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8659 (Bug#1723)
8660
8661 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
8662
8663 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8664
8665 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8666 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8667
8668 2009-02-14 Eli Zaretskii <eliz@gnu.org>
8669
8670 * msdos.c (MAX_SCREEN_BUF): New macro.
8671 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8672 Encode the entire run of glyphs sharing the same face, instead of
8673 doing that one glyph at a time (fixes a bug with displaying
8674 double-size characters).
8675
8676 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8677
8678 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8679
8680 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8681 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8682 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
8683
8684 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8685 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
8686
8687 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8688
8689 * keyboard.c (adjust_point_for_property): Allow stopping between two
8690 invisible areas.
8691
8692 2009-02-12 Jason Rumney <jasonr@gnu.org>
8693
8694 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8695 (add_font_entity_to_list): Call check_face_name even when family
8696 is unspecified.
8697
8698 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8699 Release DC when finished. Use NULL window to refer to desktop.
8700 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
8701
8702 * w32font.c (add_font_entity_to_list): Fix check for substituted
8703 raster fonts. (Bug#2219)
8704
8705 2009-02-12 Kenichi Handa <handa@m17n.org>
8706
8707 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8708 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8709 (autocmp_chars): Use fast_looking_at. Don't compose more
8710 characters than MAX_COMPOSITION_COMPONENTS.
8711 (find_automatic_composition): While looking forward and backward,
8712 check static composition. Fix where to stop looking forward.
8713 (composition_adjust_point): Fix checking of static composition.
8714 (Fcomposition_get_gstring): Pay attention to
8715 MAX_COMPOSITION_COMPONENTS.
8716
8717 * lisp.h (fast_looking_at): Extern it.
8718
8719 * search.c (fast_looking_at): New function.
8720
8721 * term.c (encode_terminal_code): Adjust for the change of
8722 <struct glyph>.u.cmp.to.
8723 (append_composite_glyph): Likewise.
8724
8725 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8726 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8727 composition.
8728 (append_composite_glyph): Adjust for the change of
8729 <strcut glyph>.u.cmp.to.
8730
8731 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
8732
8733 * casetab.c (init_casetab_once):
8734 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8735 * font.c (font_update_lface):
8736 * fontset.c (Fnew_fontset):
8737 * ftfont.c (ftfont_drive_otf):
8738 * xfont.c (xfont_open):
8739 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8740
8741 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8742
8743 * fileio.c (Fwrite_region): !NILP -> CONSP.
8744
8745 2009-02-10 Andreas Schwab <schwab@suse.de>
8746
8747 * process.c (send_process): Properly relocate pointer into data
8748 when using encoded data. (Bug#2272)
8749
8750 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8751
8752 * coding.c (detect_coding_charset): Fix previous change.
8753
8754 2009-02-08 Jason Rumney <jasonr@gnu.org>
8755
8756 * w32fns.c (w32_hide_hourglass): Handle case where frame
8757 disappeared while hourglass was displayed. (Bug #2193)
8758
8759 2009-02-07 Andreas Schwab <schwab@suse.de>
8760
8761 * unexelf.c (unexec): Fix error message.
8762
8763 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8764
8765 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8766 when modal window is active. (Bug #2152)
8767 (applicationShouldTerminate:): Remove now-unneeded while loop
8768 around NSRunAlertPanel.
8769
8770 * nsmenu.m (popupSession): New file-global variable.
8771 (pop_down_menu): End the popupSession before closing dialog.
8772 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8773 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8774 don't query NSApp for events (just sleep instead).
8775
8776 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8777
8778 * coding.c (syms_of_coding) <translation-table-for-input>:
8779 Modify doc string to discourage use for character code unification.
8780
8781 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8782
8783 * atimer.c (run_timers): Update pending_atimers.
8784
8785 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8786
8787 * image.c (svg_load_image): Fix last change.
8788
8789 * xfns.c (Fx_create_frame): Signal an error if no font is
8790 found (Bug#2147).
8791
8792 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8793
8794 * character.c (syms_of_character) <script-representative-chars>:
8795 Fix typo in docstring.
8796
8797 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8798
8799 * nsmenu.m (pop_down_menu): New function.
8800 (ns_popup_dialog): Call it on unwind.
8801 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8802 call timer_check() (Bug#2154).
8803 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8804 handling_signal is set.
8805 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8806
8807 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8808
8809 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8810
8811 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8812
8813 * keyboard.c (poll_for_input_1, handle_async_input):
8814 Set handling_signal under HAVE_NS.
8815
8816 2009-02-04 Glenn Morris <rgm@gnu.org>
8817
8818 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8819
8820 2009-02-04 Kenichi Handa <handa@m17n.org>
8821
8822 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8823
8824 * charset.c (Fchar_charset): New optional arg restriction.
8825
8826 * coding.h (coding_system_charset_list): Extern it.
8827
8828 * coding.c (coding_system_charset_list): New function.
8829
8830 * composite.c: Include coding.h and termhooks.h.
8831 (composition_gstring_p): Fix for the terminal case.
8832 (composition_gstring_width): Likewise.
8833 (fill_gstring_body): Likewise.
8834 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8835 the frame.
8836 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8837 is within a composition.
8838 (Fcomposition_get_gstring): Fix the terminal case.
8839
8840 * term.c (encode_terminal_code): Fix handling of composition.
8841 (produce_composite_glyph): For static composition, get pixel_width
8842 from struct composition.
8843
8844 2009-02-02 Andreas Schwab <schwab@suse.de>
8845
8846 * unexelf.c (unexec): Handle unaligned bss offset.
8847
8848 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8849
8850 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8851 XT,w32read_socket changes to ns_read_socket.
8852
8853 * keyboard.c (handle_interrupt): Don't call
8854 quit_throw_to_read_char() under NS.
8855
8856 * blockinput.h: Remove NS-specific code.
8857
8858 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8859
8860 * dispnew.c (window_change_signal): Don't try to get the size of a
8861 suspended tty frame.
8862 * term.c (Fresume_tty): Resize if the size has changed while the
8863 tty was suspended.
8864
8865 * alloc.c (mark_stack): Properly conditionalize previous change.
8866
8867 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8868
8869 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8870 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8871 Remove; this code is not used on Windows.
8872
8873 2009-01-30 Eli Zaretskii <eliz@gnu.org>
8874
8875 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8876 EOLs that also has stray ^M characters.
8877
8878 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8879
8880 * atimer.c (run_timers, alarm_signal_handler):
8881 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8882 * w32inevt.c (w32_console_read_socket):
8883 * w32term.c (w32_read_socket):
8884 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8885
8886 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
8887
8888 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8889 Initialize it as a relative filename pattern.
8890 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8891 (Fcall_process_region): Simplify temp file creation using
8892 temporary-file-directory.
8893
8894 2009-01-29 Eli Zaretskii <eliz@gnu.org>
8895
8896 * msdos.c: Rename pending_signals to msdos_pending_signals.
8897 (sig_suspender, sigprocmask): Adjust.
8898
8899 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
8900
8901 * keyboard.c (pending_signals): New var.
8902 (poll_for_input, input_available_signal, init_keyboard): Set it.
8903 (process_pending_signals): New function.
8904
8905 * lisp.h (QUIT): Check pending_signals instead of
8906 interrupt_input_pending. Use process_pending_signals.
8907
8908 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8909
8910 * process.c (wait_reading_process_output): Use process_pending_signals.
8911
8912 * sysdep.c (emacs_write): Use process_pending_signals.
8913
8914 * xterm.c (XTread_socket): Update pending_signals.
8915
8916 * w32term.c (w32_read_socket): Update pending_signals.
8917
8918 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8919
8920 2009-01-29 Kenichi Handa <handa@m17n.org>
8921
8922 * xftfont.c (xftfont_has_char): New function.
8923 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8924
8925 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8926
8927 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8928 under GNUstep.
8929 (ns_query_color): New declaration.
8930
8931 * nsterm.m (ns_confirm_quit): New variable.
8932 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8933 (EmacsApp-applicationShouldTerminate:): Use it.
8934 (EmacsPrefsController): Let user set it.
8935 (ns_query_color): New function.
8936 (ns_defined_color): Use it.
8937 (ns_initialize): Drop.
8938 (ns_term_init): Add two lines from ns_initialize(), and set
8939 input_interrupt_mode to nil.
8940
8941 * image.c (svg_load_image): Don't right-shift background RGB when
8942 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
8943
8944 2009-01-28 Kenichi Handa <handa@m17n.org>
8945
8946 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8947 (fontset_get_font_group): Remember that no font-group is specified
8948 for C.
8949
8950 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
8951
8952 * fns.c (concat): Check for string overflow (bug#1787).
8953
8954 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8955 Quadruple undo limits (bug#1501).
8956
8957 2009-01-27 Kenichi Handa <handa@m17n.org>
8958
8959 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8960 directly use GT_Get_Char_index.
8961
8962 * xftfont.c (struct xftfont_info): New member `index'.
8963
8964 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8965 (Ffontset_font): Adjust for the change of fontset entry.
8966
8967 2009-01-26 Kenichi Handa <handa@m17n.org>
8968
8969 * fontset.c (fontset_find_font): Fix handling of non-cons return
8970 value of fontset_get_font_group.
8971 (fontset_font): Revert last change.
8972
8973 2009-01-26 Jason Rumney <jasonr@gnu.org>
8974
8975 * w32font.c (w32font_list_internal): Return quickly if registry is
8976 unknown. Simplify final return.
8977 (add_font_entity_to_list): Break complex logic down into more
8978 manageable chunks. Move unknown registry check to
8979 w32font_list_internal.
8980
8981 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8982
8983 Changes to remove Feval calls from GUI under NS.
8984
8985 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8986 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8987 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8988
8989 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8990 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8991 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8992 instead of NON_ASCII_KEYSTROKE_EVENT.
8993 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8994 (EmacsApp-applicationShouldTerminate:): Query user.
8995 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8996 instead of Feval.
8997
8998 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8999
9000 * keyboard.c (kbd_buffer_get_event): Check for it.
9001 (keys_of_keyboard): Define lispy keys for
9002 ns-put/unput-working-text.
9003
9004 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9005 versions.
9006 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9007
9008 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
9009
9010 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
9011 setting current_buffer directly. (Bug#2044)
9012
9013 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
9014
9015 * fontset.c (fontset_font): If we know there is no font, don't do
9016 any work. (Bug#1952, bug#1990).
9017
9018 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
9019
9020 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9021
9022 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
9023 (ns_no_defaults): New declaration.
9024 (main): Use it.
9025
9026 * nsterm.h (ns_no_defaults): New declaration.
9027
9028 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
9029
9030 * nsterm.m (ns_no_defaults): New variable.
9031 (ns_initialize): Don't read defaults when ns_no_defaults.
9032 (EmacsView-readSelectionFromPasteboard:)
9033 (writeSelectionToPasteboard:types:): New stubbed-out methods for
9034 NSServicesRequests protocol. (Bug#1435)
9035 (ns_dumpglyphs_stretch): New function.
9036 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
9037 of 2008-11-15 to other terms. (Bug#615)
9038
9039 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9040
9041 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9042
9043 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9044 call for Sparc64.
9045
9046 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9047
9048 * nsfns.m:
9049 * nsgui.h:
9050 * nsmenu.m:
9051 * nsselect.m:
9052 * nsterm.h:
9053 * nsterm.m: Remove '23' comments that indicated code added during
9054 update from emacs-20 -> emacs-23.
9055
9056 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9057
9058 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
9059 ns_alternate_modifier. (Bug#1217)
9060
9061 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9062 Display all shortcuts, including those w/o super modifier.
9063
9064 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9065
9066 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
9067
9068 * fileio.c (Vwrite_region_post_annotation_function)
9069 (Vwrite_region_annotation_buffers): New vars.
9070 (build_annotations_unwind): Just reset
9071 Vwrite_region_annotation_buffers.
9072 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9073 Call write-region-post-annotation-function.
9074 (build_annotations): Add to Vwrite_region_annotation_buffers if
9075 buffer changes.
9076
9077 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9078
9079 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9080 Tiger.
9081 * nsfns.m (ns_do_applescript):
9082 Conditionalize typeUTF16ExternalRepresentation on Tiger.
9083
9084 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9085
9086 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9087
9088 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9089
9090 * nsmenu.m (NSMENUPROFILE): Change #if style.
9091
9092 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9093
9094 * nsterm.m (x_set_frame_alpha): Add prototype.
9095 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9096 handle Ctrl-tab. (Bug#1841)
9097 (ns_get_color): Use unsigned long long for scanned hex string value.
9098 (ns_term_shutdown): Abort on non SIGTERM signals.
9099 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
9100 (EmacsPrefsController-setPanelFromDefaultValues): New function.
9101 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
9102 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
9103 (ns_defined_color): Fix settings of the XColor variable fields:
9104 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
9105
9106 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
9107 DPI. (Bug#1316)
9108 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9109 values in onTiger section.
9110
9111 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9114 Check return value of font_spec_from_name.
9115 (Fx_list_fonts): Doc fix. (Bug#1951)
9116
9117 * font.c (font_spec_from_name): Return Qnil if font name could not
9118 be parsed.
9119 (font_parse_name): Treat a `?' character as part of an XLFD.
9120
9121 * fns.c (Fsubstring): Doc fix.
9122
9123 2009-01-19 Kenichi Handa <handa@m17n.org>
9124
9125 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9126 (ftfont_list): Likewise.
9127
9128 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9129
9130 * dbusbind.c (Fdbus_register_signal):
9131 * process.c (conv_sockaddr_to_lisp):
9132 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9133
9134 * callproc.c (Fgetenv_internal): Doc fix.
9135
9136 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9139 it is not even used.
9140
9141 2009-01-16 Glenn Morris <rgm@gnu.org>
9142
9143 * font.c (Ffont_variation_glyphs): Silence compiler.
9144
9145 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9146
9147 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9148 Reported by David Robinow <drobinow@gmail.com>.
9149
9150 2009-01-15 Kenichi Handa <handa@m17n.org>
9151
9152 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9153
9154 2009-01-14 Jason Rumney <jasonr@gnu.org>
9155
9156 * frame.c (x_set_font): Always store a font to the font parameter,
9157 never a fontset. (Bug#1562)
9158
9159 2009-01-14 Kenichi Handa <handa@m17n.org>
9160
9161 * coding.c (TWO_MORE_BYTES): New macro.
9162 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9163
9164 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9165
9166 * font.c (font_clear_prop): If clearing the family, clear the font
9167 width index too.
9168
9169 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9170
9171 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9172
9173 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9174 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9175 functions, use sizeof.
9176
9177 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9178
9179 * keyboard.c (read_char): Fix case where last_nonmenu_event
9180 returned a bad value with submenus. (Bug#447)
9181
9182 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9183
9184 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9185 family, clear the font width index too.
9186
9187 2009-01-11 Jason Rumney <jasonr@gnu.org>
9188
9189 * keyboard.c (cmd_error_internal): Exit when errors occur before
9190 frame creation and not in daemon mode. (Bug#1836)
9191
9192 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9193
9194 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9195 of a display vector, backtrack.
9196 (try_window_reusing_current_matrix): Check glyph type before
9197 referencing charpos member.
9198
9199 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9200
9201 Fix Bug #876:
9202
9203 * coding.c (inhibit_null_byte_detection): New variable.
9204 (detect_coding, detect_coding_system): Don't pay attention to null
9205 bytes if inhibit_null_byte_detection is non-zero.
9206 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9207 <inhibit-iso-escape-detection>: Doc fix.
9208
9209 2009-01-09 Jason Rumney <jasonr@gnu.org>
9210
9211 * w32font.c (add_font_entity_to_list): Don't report unknown
9212 Windows charset as any unrecognized registry. (Bug#1548)
9213 Only report Unicode Plane 2 fonts as unicode-sip.
9214
9215 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9216
9217 * xfaces.c (Fx_font_family_list): Delete function.
9218 Move compatibility version to faces.el.
9219
9220 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9221
9222 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9223
9224 * frame.c (x_set_frame_parameters): Remember requested value for
9225 fullscreen before it's reset by the parameter handler.
9226
9227 2009-01-09 Glenn Morris <rgm@gnu.org>
9228
9229 * keyboard.c (last_command_char): For clarity, rename to...
9230 (last_command_event): ... and update all users.
9231 (last_input_char): For clarity, rename to...
9232 (last_input_event): ... and update all users.
9233 (last-command-char, last-input-char): Move to subr.el as aliases.
9234 * cmds.c, commands.h: Update for last_command_char rename.
9235
9236 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * font.c (font_open_for_lface): Handle unspecified height attribute.
9239
9240 2009-01-08 Jason Rumney <jasonr@gnu.org>
9241
9242 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9243 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9244 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9245 Don't declare.
9246 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9247 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9248
9249 2009-01-07 Kenichi Handa <handa@m17n.org>
9250
9251 * fileio.c (Finsert_file_contents): In the case of replace,
9252 remember the coding system used for decoding in
9253 coding_system (Bug#1039).
9254
9255 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9256 breaking the loop. (Bug#870)
9257 (decode_coding_utf_16, decode_coding_emacs_mule)
9258 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9259 (decode_coding_charset): Likewise.
9260
9261 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9262
9263 * frame.c (x_set_frame_parameters): Make sure height (width) get
9264 applied when fullwidth (fullheight) is set. (Bug#1522)
9265
9266 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9267
9268 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9269 (utc_base): Declare as ULONGLONG, not long double.
9270 (convert_time_raw): Delete.
9271 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9272 (initialize_utc_base): New function.
9273 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9274 (convert_from_time_t): Use initialize_utc_base; compute result with
9275 64-bit arithmetic.
9276 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9277
9278 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9279
9280 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9281 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9282 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9283 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9284 [!subprocesses]: Define.
9285 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9286 (Flist_system_processes, Fsystem_process_attributes)
9287 [!subprocesses]: Call list_system_processes and
9288 system_process_attributes instead of returning Qnil.
9289
9290 * dosfns.c (system_process_attributes, list_system_processes):
9291 New functions.
9292
9293 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9294
9295 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9296 Don't use the default (no-op) implementation.
9297
9298 2009-01-03 Jason Rumney <jasonr@gnu.org>
9299
9300 * keyboard.c (parse_modifiers_uncached): Wheel events are
9301 clicks (bug#687).
9302
9303 * w32term.c (x_query_colors, x_query_color): New functions.
9304
9305 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9306 (svg_load_image): Cast returned pointers from dynamically loaded
9307 functions. Eliminate W32 specific code.
9308
9309 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9310
9311 * nsfns.m (x_set_foreground_color, x_set_background_color)
9312 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9313 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9314 x_ prefix instead of ns_. Update references.
9315 (syms_of_nsfns): Add a FIXME comment.
9316
9317 * nsterm.m (x_set_cursor_type): New prototype.
9318 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9319
9320 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9321 for Solaris instead of incorrectly providing Qutime and Qcutime.
9322
9323 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9324
9325 * w32.c (process_times): Compute sum of utime and stime.
9326 (system_process_attributes): Add Qtime to the alist.
9327
9328 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9329 and add them to the alist.
9330
9331 * process.c (top level) <Qtime, Qctime>: New variables.
9332 (syms_of_process): staticpro them.
9333 (Fsystem_process_attributes): Add their documentation to the doc
9334 string.
9335
9336 * process.h: Declare Qtime and Qctime.
9337
9338 2009-01-02 Jason Rumney <jasonr@gnu.org>
9339
9340 * image.c (Qgobject): New symbol.
9341 (syms_of_image): Initialize it.
9342 (init_svg_functions): Load some functions from gobject library.
9343
9344 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * frame.c (make_terminal_frame): Remove redundant code and useless
9347 block.
9348
9349 2009-01-01 Andreas Schwab <schwab@suse.de>
9350
9351 * process.c (conv_sockaddr_to_lisp): Add workaround for
9352 getsockname bug on BSD.
9353
9354 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9355
9356 * xfns.c (x_create_tip_frame): Set border width of the X window.
9357
9358 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9359
9360 2009-01-01 Jason Rumney <jasonr@gnu.org>
9361
9362 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9363 Don't block input, as per earlier xterm.c changes.
9364
9365 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9366
9367 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9368 (ns_appkit_version_int): New function.
9369 (x-server-version): Use ns_appkit_version_int and follow 21+
9370 convention of returning 3 integers.
9371
9372 2008-12-30 Kenichi Handa <handa@m17n.org>
9373
9374 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9375 (CHAR_SURROGATE_PAIR_P): New macro.
9376
9377 * font.h (struct font_driver): New member get_variation_glyphs.
9378
9379 * font.c (font_range): Don't require a font for a variation selector.
9380 (Ffont_variation_glyphs): New function.
9381 (syms_of_font): Defsubr it.
9382
9383 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9384 ftfont_variation_glyphs.
9385 (setup_otf_gstring): New function.
9386 (ftfont_drive_otf): Use it.
9387 (ftfont_shape_by_flt): Handle variation selector.
9388 (ftfont_variation_glyphs): New function.
9389
9390 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9391
9392 * frame.c (Vemacs_iconified): Remove.
9393
9394 2008-12-30 Jason Rumney <jasonr@gnu.org>
9395
9396 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9397 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9398
9399 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9400
9401 * indent.c (Fvertical_motion): Don't advance iterator if we have
9402 reseated to the desired position.
9403
9404 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9405 checking for pos match.
9406
9407 2008-12-30 Kenichi Handa <handa@m17n.org>
9408
9409 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9410 just get the low 8-bit of the code.
9411
9412 * font.c (font_intern_prop): Validate str as multibyte.
9413
9414 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9415
9416 * dispextern.h (struct face): Move lface and hash from the middle
9417 of bitfields.
9418
9419 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9420
9421 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9422
9423 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9424 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9425 instead of intervals.h.
9426
9427 2008-12-26 Andreas Schwab <schwab@suse.de>
9428
9429 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9430 cons.
9431
9432 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9433
9434 * textprop.c (Qminibuffer_prompt): New variable.
9435 (syms_of_textprop): Initialize it.
9436 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9437 in minibuffer-prompt face. (Bug#1662)
9438
9439 2008-12-25 Jason Rumney <jasonr@gnu.org>
9440
9441 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9442
9443 2008-12-24 Jason Rumney <jasonr@gnu.org>
9444
9445 * ralloc.c (r_alloc_reset_variable): New function.
9446
9447 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9448 record of what points where. (Bug#716)
9449
9450 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9451
9452 * minibuf.c (read_minibuf): Follow the non-interactive case when
9453 running as a daemon, before detaching.
9454
9455 2008-12-22 Andreas Schwab <schwab@suse.de>
9456
9457 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9458 * gtkutil.c (free_widget_value): Use xfree instead of free.
9459
9460 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9461
9462 * frame.c (delete_frame): New function derived from
9463 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9464 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9465 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9466 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9467 * frame.h: Extern delete_frame.
9468 * window.c (window_loop):
9469 * terminal.c (delete_terminal):
9470 * xterm.c (x_connection_closed):
9471 * xfns.c (Fx_hide_tip):
9472 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9473
9474 2008-12-21 Jason Rumney <jasonr@gnu.org>
9475
9476 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9477 when character maps to .notdef character.
9478
9479 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9480
9481 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9482
9483 2008-12-20 Jason Rumney <jasonr@gnu.org>
9484
9485 * frame.c (Fmake_terminal_frame): Raise an error when called from
9486 a graphical frame on Windows. (Bug#1325)
9487
9488 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9489
9490 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9491
9492 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9493
9494 * minibuf.c (Fread_buffer): Doc fix.
9495
9496 2008-12-20 Jason Rumney <jasonr@gnu.org>
9497
9498 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9499 server name in UNC paths. (Bug#719)
9500
9501 * coding.c (decode_coding): Clear chars_at_source flag when using
9502 charbuf. (Bug#1035)
9503
9504 2008-12-19 Daniel Engeler <engeler@gmail.com>
9505
9506 * sysdep.c (serial_configure): Fix typo.
9507
9508 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9509
9510 * sysdep.c: Include alloca.h.
9511 (system_process_attributes): Add implementation for Solaris.
9512
9513 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9514
9515 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9516
9517 Reorganize implementation of Flist_system_processes and
9518 Fsystem_process_attributes. No functional changes.
9519 * process.c: Don't #include pwd.h, grp.h and limits.h.
9520 (Flist_system_processes): Just call list_system_processes.
9521 (Fsystem_process_attributes): Just call system_process_attributes.
9522 (procfs_list_system_processes, time_from_jiffies)
9523 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9524 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9525
9526 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9527 (list_system_processes): Rename from
9528 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9529 Provide a do nothing implementation.
9530 (system_process_attributes): Rename from
9531 procfs_list_system_processes.
9532 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9533 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9534
9535 * w32.c (list_system_processes): Rename from
9536 w32_list_system_processes.
9537 (system_process_attributes): Rename from
9538 w32_system_process_attributes.
9539
9540 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9541
9542 * process.h (w32_list_system_processes)
9543 (w32_system_process_attributes): Remove.
9544 (list_system_processes, system_process_attributes):
9545 New prototypes.
9546
9547 2008-12-19 Kenichi Handa <handa@m17n.org>
9548
9549 * xfont.c (xfont_decode_coding_xlfd): New function.
9550 (xfont_encode_coding_xlfd): New function.
9551 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9552 (xfont_list): Decode and encode XLFD by iso-8859-1.
9553 (xfont_match): Likewise.
9554 (xfont_list_family): Likewise.
9555 (xfont_open): Likewise.
9556
9557 * ftfont.c (ftfont_open): Generate a multibyte string if given
9558 names are utf-8.
9559
9560 * xftfont.c (xftfont_open): Generate a multibyte string if given
9561 names are utf-8.
9562
9563 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9564
9565 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9566 changed.
9567 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9568 clicked on a detached tool bar button.
9569
9570 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9571
9572 * emacs.c (main): Print and error and exit when no data is read
9573 from the pipe.
9574
9575 2008-12-17 Jason Rumney <jasonr@gnu.org>
9576
9577 * w32font.c (w32font_has_char): Always return -1.
9578
9579 2008-12-16 Kenichi Handa <handa@m17n.org>
9580
9581 * font.c (font_open_entity): Fix previous change.
9582
9583 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9584
9585 * process.c: Include <limits.h>.
9586
9587 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
9588
9589 * font.c (font_update_drivers): Fix mistake in reconstructing the
9590 driver list.
9591
9592 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
9593
9594 * font.c (font_clear_cache): Fix format of font cache data.
9595
9596 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
9597
9598 * xftfont.c (xftfont_open): Free Xft font pattern if
9599 XftFontOpenPattern fails.
9600
9601 * xterm.c (x_free_frame_resources): Remove extraneous call to
9602 free_frame_faces.
9603
9604 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9605
9606 * xterm.c (x_delete_display): Move xim_close_dpy call to
9607 x_delete_terminal.
9608 (x_delete_terminal): Call xim_close_dpy.
9609
9610 2008-12-13 Jason Rumney <jasonr@gnu.org>
9611
9612 * w32font.c (intern_font_name): New function.
9613 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9614 (w32font_open_internal, Fx_select_font): Decode font name.
9615 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9616
9617 * w32font.h (intern_font_name): Declare new function.
9618
9619 * w32uniscribe.c (add_opentype_font_name_to_list):
9620 Use intern_font_name.
9621
9622 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9623
9624 * frame.c (Fdelete_frame): Call free_font_driver_list.
9625
9626 * font.c (free_font_driver_list): Implement missing function.
9627
9628 * w32term.c (w32_term_init): Don't initialize the image cache
9629 here; it will be done in init_frame_faces.
9630
9631 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9632 (struct x_display_info): Remove unused member null_pixel. New
9633 member xim_callback_data.
9634
9635 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9636 (xim_initialize): Save pointer to callback function data.
9637 (xim_close_dpy): Free callback function data. Call XCloseIM,
9638 reverting 2008-11-04 change by David Smith.
9639 (x_term_init): Don't initialize the image cache here; it will be
9640 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9641 (x_delete_display): Free x_dnd_atoms member.
9642
9643 2008-12-13 Kenichi Handa <handa@m17n.org>
9644
9645 * font.c (font_rescale_ratio): Moved from xfaces.c.
9646 Argument type changed. Handle a font-spec too.
9647 (font_score): Check Vface_font_rescale_alist.
9648 (font_open_entity): Likewise. (Bug#1547)
9649
9650 * xfaces.c (font_rescale_ratio): Moved to font.c.
9651
9652 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9653
9654 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9655
9656 2008-12-12 Jason Rumney <jasonr@gnu.org>
9657
9658 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9659 Vwindow_system_version to the real w32 major version.
9660
9661 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9662
9663 * term.c (init_tty): Move setting the terminal name before the
9664 potential user: maybe_fatal.
9665
9666 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
9667
9668 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9669 all callers changed. Call free_frame_faces to free the face cache.
9670
9671 2008-12-11 Jason Rumney <jasonr@gnu.org>
9672
9673 * w32font.c (fill_in_logfont): Don't assume symbol script means
9674 SYMBOL_CHARSET. (Bug#547)
9675
9676 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9677 size for surrogates. (Bug#1096, bug#872)
9678
9679 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9680
9681 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9682
9683 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9684
9685 * process.c (Fsystem_process_attributes, syms_of_process):
9686 Fix typo in name of Ssystem_process_attributes.
9687 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9688
9689 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9690
9691 * syntax.c (Fmodify_syntax_entry): Doc fix.
9692
9693 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9694
9695 * font.c (Ffont_spec): Move usage to end of docstring.
9696
9697 2008-12-10 Jason Rumney <jasonr@gnu.org>
9698
9699 * w32font.c (Qcham): New symbol.
9700 (font_supported_scripts): Add cham, and comments for other new
9701 scripts in bitfield from OpenType spec.
9702 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9703 contain characters beyond the bmp.
9704
9705 2008-12-10 Kenichi Handa <handa@m17n.org>
9706
9707 * ftfont.c (fc_charset_table): Add "unicode-sip".
9708 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9709 Qunicode_sip.
9710
9711 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9712
9713 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9714 (Fcoding_system_put): Use QCdefault_char.
9715 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9716
9717 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9718
9719 * xftfont.c (syms_of_xftfont): Fix typo.
9720
9721 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9722
9723 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9724
9725 * emacs.c (main): Close daemon_pipe on exec.
9726
9727 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
9728
9729 * termchar.h (struct tty): New members termcap_term_buffer and
9730 termcap_strings_buffer.
9731
9732 * term.c (encode_terminal_code): Free any previous memory blocks
9733 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9734 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9735 All callers changed.
9736 (init_tty): Store termcap data and string buffers in new struct
9737 tty members termcap_term_buffer and termcap_strings_buffer.
9738 (delete_tty): Free them.
9739 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9740
9741 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9742
9743 * nsfns.m (ns_set_background_color): Remove code duplication.
9744 It was a substitute for face-transparency on OS X 10.3.
9745
9746 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9747
9748 * coding.c (make_conversion_work_buffer): Disable buffer
9749 modification hooks in the work buffer.
9750
9751 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9752
9753 * process.c (procfs_system_process_attributes): If `nread' has a
9754 negative value, assign zero to it.
9755
9756 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9757
9758 * eval.c (Vdebug_on_error): Doc fix.
9759
9760 2008-12-05 Kenichi Handa <handa@m17n.org>
9761
9762 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9763 second character is a combining character.
9764
9765 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9766
9767 * process.c (procfs_system_process_attributes): Don't use cmd,
9768 cmdsize, and q without initializing them first.
9769
9770 2008-12-04 Jason Rumney <jasonr@gnu.org>
9771
9772 * w32font.c (w32font_draw): Initialize orig_clip before getting
9773 it, and delete it when finished.
9774
9775 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9776
9777 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9778 case when running as a daemon before detaching.
9779
9780 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9781
9782 * w32.c (init_environment): Don't unload library shell32.dll.
9783
9784 2008-12-03 Kenichi Handa <handa@m17n.org>
9785
9786 * font.c (font_at): Set `multibyte' at first.
9787
9788 * coding.c (decode_coding_charset): Check type of an element of
9789 vector VALIDS.
9790 (encode_coding_emacs_mule): Be sure to set `code'.
9791
9792 * fontset.c (face_for_char): Handle invalid charset property correctly.
9793 (font_for_char): Likewise.
9794
9795 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9796
9797 * font.c (Fopen_font): Compute pixel size correctly.
9798 (font_update_lface): Handle fonts with corrupted size specs,
9799 i.e. non-int and non-float.
9800
9801 * ftfont.c (ftfont_match): Initialize entity variable.
9802 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9803 (ftfont_list_family): Initialize list var earlier.
9804
9805 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9806
9807 * xterm.c (x_draw_glyph_string): Fall back on
9808 underline_minimum_offset for underline position.
9809
9810 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9811
9812 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9813
9814 * character.c (c_string_width): Specify the type for LEN.
9815
9816 2008-12-03 Kenichi Handa <handa@m17n.org>
9817
9818 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9819 (decode_coding_utf_8): Likewise.
9820 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9821 (produce_chars): Initialize consumed_chars to 0.
9822
9823 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9824
9825 * keyboard.c (make_lispy_position): Only use PT if the selected
9826 window is current.
9827
9828 2008-12-02 Andreas Schwab <schwab@suse.de>
9829
9830 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9831
9832 * doprnt.c (doprnt1): Fix size of charbuf.
9833
9834 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9835
9836 * keyboard.c (timer_check): Revert last change.
9837
9838 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
9839
9840 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9841
9842 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
9843
9844 * makefile.w32-in: Update dependencies.
9845 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9846
9847 2008-12-01 Andreas Schwab <schwab@suse.de>
9848
9849 * font.c (register_font_driver): Use xmalloc.
9850 (font_put_frame_data): Likewise.
9851
9852 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
9853
9854 * xfaces.c (realize_x_face): Make abort condition clearer.
9855
9856 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9857
9858 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
9859
9860 * keyboard.c (timer_check): After a timer runs, ensure that the
9861 selected window's buffer is current.
9862
9863 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
9864
9865 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9866 It was accidentally restored by the Unicode merge.
9867
9868 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9869
9870 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
9871
9872 * w32proc.c: Include "coding.h".
9873 (Fw32_short_file_name): Encode filename passed to Windows API.
9874 (Fw32_long_file_name): Encode filename passed to Windows API and
9875 decode back the result. (Bug#1433)
9876
9877 2008-11-29 Kenichi Handa <handa@m17n.org>
9878
9879 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9880 not before accessing it.
9881
9882 * charset.c (Fdefine_charset_internal): After calculating
9883 min_char, max_char, and fastmap, copy the charset structure again.
9884 (encode_char): Fix the previous change.
9885
9886 2008-11-28 Seiji Zenitani <zenitani@mac.com>
9887
9888 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9889
9890 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9891
9892 * nsterm.m (x_set_frame_alpha): New function.
9893
9894 2008-11-27 Eli Zaretskii <eliz@gnu.org>
9895
9896 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9897
9898 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
9899
9900 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9901 pointer to check_face_name.
9902
9903 2008-11-27 Kenichi Handa <handa@m17n.org>
9904
9905 * category.h (SET_CATEGORY_SET): Call set_category_set.
9906 (set_category_set): Extern it.
9907
9908 * category.c (hash_get_category_set): New function.
9909 (Fmodify_category_entry): Adjusted for the change of
9910 char_table_ref_and_range. Call hash_get_category_set to get a
9911 category set to store in the table.
9912
9913 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9914 Funify_charset.
9915
9916 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9917 (DECODE_CHAR): Check if the decoder vector is ready.
9918 (ENCODE_CHAR): Check if the encoder char-table is ready.
9919 (maybe_unify_char): Extern it.
9920
9921 * charset.c (Vchar_unified_charset_table): Delete it.
9922 (inhibit_load_charset_map): New variable.
9923 (temp_charset_work): New variable.
9924 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9925 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9926 New macros.
9927 (load_charset_map): Meaning of control_flag changed. If
9928 inhibit_load_charset_map is nonzero, setup a table in
9929 temp_charset_work.
9930 (load_charset): New argument control_flag.
9931 (map_charset_for_dump): New function.
9932 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9933 map_charset_for_dump.
9934 (Fdefine_charset_internal): If the charset method is MAP, load
9935 mapping tables by calling load_charset.
9936 (Funify_charset): Don't load a mapping table but directly set
9937 Vchar_unify_table.
9938 (maybe_unify_char): New function.
9939 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9940 Handle the case of inhibit_load_charset_map being nonzero.
9941 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9942 Handle the case of inhibit_load_charset_map being nonzero.
9943 (Fclear_charset_maps): Just free temp_charset_work.
9944 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9945 variable.
9946
9947 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9948 change of char_table_ref_and_range.
9949 (char_table_ref_and_range): Change the meaning of argument FROM
9950 and TO. Now the caller must provide initial values for *FROM
9951 and *TO.
9952
9953 * fontset.c (fontset_add): Adjusted for the change of
9954 char_table_ref_and_range.
9955 (fontset_get_font_group): Likewise.
9956 (Ffontset_info): Likewise.
9957
9958 * keymap.c (describe_vector): Adjusted for the change of
9959 char_table_ref_and_range. For char-table, put boundary between
9960 non-ASCII and 8-bit characters.
9961
9962 * print.c (print_object): For bool-vector, delete unnecessary
9963 check of ASCII_BYTE_P.
9964
9965 2008-11-26 Jason Rumney <jasonr@gnu.org>
9966
9967 * w32font.c (w32font_open_internal): Don't include external
9968 leading in font height. (Bug#879)
9969
9970 2008-11-26 Glenn Morris <rgm@gnu.org>
9971
9972 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9973 redefinition with ifdef. (Bug#1383)
9974
9975 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9976
9977 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9978
9979 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9980
9981 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9982 New EmacsView methods.
9983 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9984 Fixes bug #1048,1357,1414.
9985
9986 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9987
9988 Fix bug #1362.
9989 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9990 is not an indexed color.
9991 * nsterm.m (free_indexed_color): Add argument checking.
9992 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9993
9994 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9997 Document confirm-after-completion value for
9998 minibuffer-completion-confirm.
9999
10000 2008-11-24 Jason Rumney <jasonr@gnu.org>
10001
10002 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10003 warning.
10004
10005 2008-11-23 Jason Rumney <jasonr@gnu.org>
10006
10007 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10008 restored before returning.
10009
10010 * w32font.c (check_face_name): New function.
10011 (add_font_entity_to_list): Use it to filter out common substituted
10012 fonts. (Bug#642)
10013
10014 2008-11-22 Martin Rudalics <rudalics@gmx.at>
10015
10016 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10017 confirm-nonexistent-file-or-buffer in doc-string.
10018
10019 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10020
10021 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10022 Fix copy/paste typo. Add checks.
10023
10024 2008-11-21 Kenichi Handa <handa@m17n.org>
10025
10026 * coding.c (detect_coding_iso_2022): Reject invalid composition
10027 sequence.
10028 (DECODE_COMPOSITION_START): If the current source is the last
10029 block, and the current composition doesn't end, regard this
10030 sequence as invalid.
10031 (decode_coding_iso_2022): Handle invalid composition sequence.
10032
10033 2008-11-20 Martin Rudalics <rudalics@gmx.at>
10034
10035 * window.c (coordinates_in_window): Don't return
10036 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10037 line when the window is not the rightmost one. (Bug#1372)
10038
10039 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10040
10041 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10042
10043 2008-11-15 Eli Zaretskii <eliz@gnu.org>
10044
10045 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10046 and bright_bg if noninteractive is non-zero.
10047
10048 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10049
10050 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10051 x_draw_glyph_string_background.
10052
10053 * w32term.c (x_draw_glyph_string): Likewise.
10054
10055 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
10056
10057 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10058 the next glyph string once past the overhang width.
10059
10060 * nsterm.m (ns_draw_glyph_string): Likewise.
10061
10062 * w32term.c (x_draw_glyph_string): Likewise.
10063
10064 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10065
10066 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10067 double file close.
10068
10069 2008-11-14 Martin Rudalics <rudalics@gmx.at>
10070
10071 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10072 dedicated status of window before attempting to display another
10073 buffer in it.
10074
10075 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
10076
10077 * msdos.c (Fmsdos_long_file_names):
10078 (syms_of_msdos) <dos-unsupported-char-glyph>:
10079 * dosfns.c (Fint86): Fix typos in docstrings.
10080
10081 2008-11-14 Eli Zaretskii <eliz@gnu.org>
10082
10083 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10084
10085 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10086
10087 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10088
10089 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10090
10091 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10092
10093 * frame.h: Negative alpha means "don't touch".
10094
10095 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10096
10097 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10098
10099 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10100
10101 * hftctl.c:
10102 * chpdef.h:
10103 * acldef.h: Remove files used only for systems no longer supported.
10104
10105 * Makefile.in: Fix .o alphabetical ordering.
10106 (hftctl.o): Remove dependency, file removed.
10107 (keymap.o, print.o): Depend on charset.h.
10108
10109 2008-11-10 Kenichi Handa <handa@m17n.org>
10110
10111 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10112
10113 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10114
10115 * dired.c (file_name_completion): If completion_ignore_case is
10116 enabled, ignore case when checking completion-regexp-list.
10117
10118 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10119
10120 * vm-limit.c (get_lim_data): Fix last change.
10121
10122 2008-11-08 Kenichi Handa <handa@m17n.org>
10123
10124 * character.c (Fget_byte): New function.
10125 (syms_of_character): Defsubr Fget_byte.
10126
10127 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10128
10129 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10130 cursor position is valid after scrolling.
10131
10132 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10133
10134 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10135
10136 2008-11-06 Glenn Morris <rgm@gnu.org>
10137
10138 * xterm.c (handle_one_xevent): Don't let popup menus cause
10139 mouse-autoselect-window related window switching. (Bug#1261)
10140
10141 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10142
10143 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10144
10145 2008-11-04 Andreas Schwab <schwab@suse.de>
10146
10147 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10148
10149 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10150
10151 * xfns.c (Fx_wm_set_size_hint): New function.
10152
10153 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10154
10155 * textprop.c (Fprevious_single_char_property_change): Return 0
10156 when there's no change in a string. (Bug#1301)
10157
10158 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10159
10160 * frame.c (do_switch_frame): New argument NORECORD passed to
10161 Fselect_window.
10162 (Fselect_frame): New argument NORECORD passed to
10163 do_switch_frame.
10164 (Fset_frame_selected_window): New argument NORECORD passed to
10165 Fselect_frame.
10166 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10167 in call of do_switch_frame.
10168 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10169 Handle NORECORD argument in call of Fselect_frame.
10170 * lisp.h (do_switch_frame, Fselect_frame)
10171 (Fset_frame_selected_window): Adjust declarations.
10172 * window.c (select_frame_norecord): New function.
10173 (run_window_configuration_change_hook): Use it and call
10174 Fselect_frame with NORECORD set.
10175 (Fselect_window): Pass NORECORD to Fselect_frame.
10176 (Fset_window_configuration): Handle NORECORD argument in call of
10177 do_switch_frame.
10178 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10179 Fset_frame_selected_window.
10180 * keyboard.c (command_loop_1): Handle NORECORD in call of
10181 Fselect_frame (currently ifdefd).
10182
10183 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10184
10185 * emacs.c (USAGE2): Untabify.
10186
10187 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10188
10189 * composite.c (fill_gstring_header): Fix copy/paste typo.
10190
10191 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10192
10193 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10194 (Fother_window): Rename argument and rewrite doc-string.
10195 (select_window_norecord): Fix return value. (Bug#1276)
10196
10197 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10198
10199 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10200 new frames overriding foreground for tooltips. Based on similar patch
10201 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10202
10203 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10204
10205 * emacs.c (Fdaemon_initialized): Initialize nfd.
10206
10207 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10208
10209 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10210 (Fwindow_text_height): Clarify doc-strings.
10211 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10212 doc-string of window-scroll-functions.
10213
10214 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10215
10216 * category.c (syms_of_category): Fix typo in docstring.
10217
10218 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10219
10220 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10221 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10222 Fix typos in docstrings.
10223
10224 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10225
10226 * emacs.c (daemon_pipe): Make non-static.
10227 (IS_DAEMON): Move definition ...
10228 * lisp.h (IS_DAEMON): ... here.
10229 (daemon_pipe): Declare.
10230 (is_daemon): Remove.
10231 * dispnew.c (init_display): Use IS_DAEMON.
10232
10233 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10234
10235 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10236 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10237
10238 * emacs.c (is_daemon): Remove.
10239 (main): Don't set is_daemon.
10240 (IS_DAEMON): New macro.
10241 (Fdaemonp, Fdaemon_initialized): Use it.
10242 (Fdaemon_initialized): Write a char into the pipe to make sure the
10243 parent exits.
10244 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10245
10246 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10247
10248 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10249 over-sized glyph, draw it with the default glyph width.
10250
10251 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10252 glyph, draw it with the default glyph width.
10253
10254 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10255 glyph, draw it with the default glyph width.
10256
10257 * xdisp.c (try_scrolling): When computing the distance from the
10258 scroll margin to PT, try moving some distance past the window
10259 bottom before giving up.
10260
10261 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10262
10263 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10264 (Fset_window_buffer): Explain in doc-string that a window can be
10265 "strongly" dedicated to its buffer.
10266
10267 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10268
10269 * emacs.c (daemon_name): New variable.
10270 (main): Deal with --daemon=SERVER_NAME.
10271 (Fdaemonp): Return a name if one was passed to --daemon.
10272
10273 2008-10-26 Romain Francoise <romain@orebokech.com>
10274
10275 * emacs.c (daemon_pipe): New variable.
10276 (main): Create a pipe before forking, make the parent exit only after
10277 the child has closed its end of the pipe. Move closing the
10278 descriptors ...
10279 (Fdaemon_initialized): ... here. New function.
10280
10281 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10282
10283 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10284 the previous unoptimized table.
10285
10286 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10287 the distinction between non-nil and non-t value of `dedicated'.
10288
10289 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10290
10291 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10292 read_char_minibuf_menu_text is large enough to hold the menu string.
10293
10294 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10295
10296 * window.c (Fget_buffer_window, Fdelete_windows_on)
10297 (Freplace_buffer_in_windows): Make buffer argument optional and
10298 rename to buffer_or_name.
10299
10300 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10301
10302 * xdisp.c (handle_single_display_spec, handle_display_prop):
10303 Undo 2005-05-16 change.
10304 (handle_stop): Pop iterator if it's loaded with an empty string.
10305 (get_overlay_strings_1): Don't save iterator if it's loaded with
10306 an empty string (bug#1201).
10307
10308 2008-10-24 Kenichi Handa <handa@m17n.org>
10309
10310 * ftfont.c (ftfont_otf_features): Fix previous change.
10311 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10312 calling ftfont_otf_features.
10313
10314 2008-10-24 Kenichi Handa <handa@m17n.org>
10315
10316 * font.c (font_match_p): Fix for the case that a vector of
10317 characters is in script-representative-chars.
10318
10319 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10320
10321 * dbusbind.c (xd_in_read_queued_messages): New variable.
10322 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10323 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10324 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10325 macro. (Bug#1186)
10326
10327 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10328
10329 * s/sol2-10.h: New file.
10330
10331 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10332
10333 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10334 poor beast has survived 9+ years and the jump from xterm.c!).
10335
10336 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10337
10338 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10339 Reword doc-string.
10340 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10341
10342 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10343
10344 * character.c (syms_of_character) <script-representative-chars>:
10345 <unicode-category-table>: Doc fixes.
10346
10347 2008-10-23 Noah Friedman <friedman@splode.com>
10348
10349 * coding.c (make_conversion_work_buffer): Check that
10350 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10351 Fget_buffer_create.
10352
10353 2008-10-23 Kenichi Handa <handa@m17n.org>
10354
10355 * font.c (font_add_log): Check the values of extra properties.
10356
10357 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10358
10359 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10360 Reword doc-string.
10361 (Fset_window_parameter): Use NILP.
10362 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10363 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10364
10365 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10366
10367 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10368
10369 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10370
10371 * nsfns.m (ns_appkit_version): New function.
10372 (x-server-version): Use it.
10373 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10374 (x-server-vendor): Don't check_ns().
10375
10376 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10377
10378 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10379
10380 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10381 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10382
10383 2008-10-22 Kenichi Handa <handa@m17n.org>
10384
10385 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10386 scripts.
10387
10388 * category.c (word_boundary_p): Check scripts instead of charset.
10389 Handle nil value in word-separating-categories and
10390 word-combining-categories.
10391 (syms_of_category): Fix docstrings of word-separating-categories
10392 and word-combining-categories.
10393
10394 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10395
10396 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10397 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10398
10399 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10400
10401 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10402 Rename arg "buffer" to "buffer_or_name".
10403 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10404 it optional.
10405 (no_switch_window): Remove since the return value is not used.
10406 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10407 Consider window as dedicated when Fwindow_dedicated_p returns a
10408 non-nil value.
10409 * lisp.h: Remove prototype for no_switch_window.
10410
10411 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10412
10413 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10414 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10415
10416 2008-10-21 Kenichi Handa <handa@m17n.org>
10417
10418 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10419 check Vlatin_extra_code_table.
10420
10421 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10422
10423 * fileio.c (Fset_file_modes): Doc fix.
10424
10425 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10426
10427 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10428 in arrays.
10429
10430 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10431
10432 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10433 Mention kill-buffer in doc-string.
10434 (Fset_window_buffer): Reinsert tem check removed in last commit.
10435 (Fenlarge_window, Fshrink_window): Have argument names and
10436 doc-string follow Elisp manual more closely.
10437
10438 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10439
10440 * fileio.c (Fset_file_modes): Doc fix.
10441
10442 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10443
10444 * window.c (Fwindow_width, Fset_window_start)
10445 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10446 (Fdelete_windows_on, Freplace_buffer_in_windows):
10447 Make doc-strings follow code and Elisp manual more closely.
10448 (Fwindow_dedicated_p): Make window argument optional.
10449 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10450 (Fset_window_buffer): Respect any non-nil dedicated value for
10451 window. Rename "buffer" argument to "buffer_or_name".
10452
10453 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10454
10455 * m/sh3.h: New file, machine description for SuperH.
10456
10457 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10458
10459 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10460
10461 2008-10-17 Kenichi Handa <handa@m17n.org>
10462
10463 * ftfont.c (ftfont_otf_features): Fix indexing
10464 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10465
10466 2008-10-16 Magnus Henoch <mange@freemail.hu>
10467
10468 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10469 (Fdbus_call_method_asynchronously): Ditto.
10470 This change makes C-h f display the argument list.
10471
10472 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10473
10474 * fileio.c (Fexpand_file_name): Doc fix.
10475
10476 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10477 of :foreground and :background equivalent to unspecified (20.x
10478 compatibility).
10479
10480 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10481
10482 * buffer.c (syms_of_buffer): Doc fix.
10483
10484 2008-10-14 Kenichi Handa <handa@m17n.org>
10485
10486 * font.c (font_clear_prop): When clearing font width, clear the
10487 average width field too.
10488
10489 2008-10-12 Andreas Schwab <schwab@suse.de>
10490
10491 * ftfont.c (ftfont_shape_by_flt): Make static.
10492 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10493
10494 * font.c: Don't include <m17n-flt.h>.
10495
10496 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10497
10498 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10499
10500 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10501
10502 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10503 away code.
10504
10505 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10506
10507 * dispnew.c (update_text_area): Avoid looping due to large glyph
10508 overhangs (bug#1070).
10509
10510 2008-10-09 Kenichi Handa <handa@m17n.org>
10511
10512 * fontset.c (face_for_char): If face->fontset is negative, just
10513 return ascii_face.
10514
10515 * font.c (font_delete_unmatched): Fix previous change.
10516 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10517
10518 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10519
10520 * frame.c (Fraise_frame): On text-only terminals select frame in
10521 order to make it visible. (Bug#1061)
10522
10523 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10524
10525 * fontset.c (fontset_find_font): Check frame validity.
10526
10527 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10528
10529 * gtkutil.c (xg_display_open): Reset default display if none exists.
10530 (xg_display_close): Allow Emacs to close all displays (bug#985).
10531
10532 2008-10-06 Andreas Schwab <schwab@suse.de>
10533
10534 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10535
10536 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10537
10538 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10539
10540 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10541
10542 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10543 during initialization.
10544
10545 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10546
10547 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10548 whole thing on MSDOS frames as well as on a TTY.
10549
10550 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10551 well as for TTY.
10552 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10553 well as on a TTY.
10554
10555 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10556 as well as for TTY.
10557
10558 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10559
10560 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10561 MSDOS frames as well.
10562
10563 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10564
10565 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10566 correct arguments.
10567 * menu.c (find_and_return_menu_selection): Add cast.
10568
10569 2008-10-03 Glenn Morris <rgm@gnu.org>
10570
10571 * emacs.c (USAGE1): Add --daemon.
10572
10573 2008-10-02 Eli Zaretskii <eliz@gnu.org>
10574
10575 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10576 100, so it's in percents as advertised.
10577
10578 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10579
10580 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10581 (ns_output.current_cursor, ns_output.desired_cursor)
10582 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10583 (FRAME_NEW_CURSOR_COLOR): Remove.
10584
10585 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10586 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10587 enumeration (HOLLOW_BOX_CURSOR, etc.).
10588
10589 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10590 (draw_window_cursor): Simplify code.
10591 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10592 Don't change cursor type. In latter, call rehighlight instead of doing
10593 updates manually.
10594 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10595 Use core Emacs cursor types.
10596
10597 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10598
10599 2008-10-02 Martin Rudalics <rudalics@gmx.at>
10600
10601 * process.c (Faccept_process_output): Fix doc-string.
10602
10603 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10604
10605 * gmalloc.c (__sbrk): Also define for uClibc.
10606
10607 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10608 for uClibc.
10609
10610 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10611
10612 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10613 styles.
10614 (nsfont_open): Reenable the cache.
10615
10616 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10617
10618 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10619 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10620
10621 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10622
10623 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10624 a suspended terminal.
10625
10626 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
10627
10628 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10629
10630 2008-09-30 Eli Zaretskii <eliz@gnu.org>
10631
10632 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10633
10634 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
10635
10636 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10637 in a continued line coincides with a line beginning.
10638
10639 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10640
10641 * nsfont.m (nsfont_trait_distance): Fix bug.
10642 (nsfont_list): Return a list rather than a vector (syncs with Handa
10643 changes of 2008-05-14).
10644 (nsfont_open): Improve logging.
10645
10646 2008-09-29 Andreas Schwab <schwab@suse.de>
10647
10648 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10649
10650 2008-09-28 Martin Rudalics <rudalics@gmx.at>
10651
10652 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10653 name as char-resolve-modifiers.
10654 Reported by: Markus Triska <markus.triska@gmx.at>
10655
10656 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10657
10658 * dispnew.c (init_display): Return earlier when running as a daemon.
10659
10660 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10661
10662 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10663
10664 2008-09-27 Eli Zaretskii <eliz@gnu.org>
10665
10666 * composite.c (Fcomposition_get_gstring)
10667 (Fcompose_region_internal, Fcompose_string_internal)
10668 (Ffind_composition_internal): Doc fix.
10669 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10670 (syms_of_composite) <auto-composition-function>: Doc fix.
10671 (syms_of_composite) <composition-function-table>: Doc fix.
10672
10673 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
10674
10675 * search.c (wordify): New argument for lax word-ends.
10676 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10677
10678 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10679
10680 * lisp.h (is_daemon): Declare.
10681 * dispnew.c (init_display): Do not try to initialize the terminal
10682 when running as a daemon.
10683
10684 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
10685
10686 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10687 x_display_pixel_height.
10688
10689 2008-09-22 Martin Rudalics <rudalics@gmx.at>
10690
10691 * undo.c (record_point): Don't call Fundo_boundary for first
10692 change. (Bug#731)
10693
10694 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
10695
10696 * emacs.c (Fdaemonp): Doc fix.
10697
10698 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10699
10700 * emacs.c (main): Place #ifdef in the proper place.
10701
10702 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10703
10704 * emacs.c (standard_args): Add --daemon.
10705 (main): Disconnect from the terminal when --daemon is passed.
10706 (is_daemon): New variable.
10707 (Fdaemonp): New function.
10708 (syms_of_emacs): Defsubr it.
10709
10710 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10711
10712 * xdisp.c (get_next_display_element): Handle string display
10713 correctly when checking for the end of a box run.
10714
10715 2008-09-20 Glenn Morris <rgm@gnu.org>
10716
10717 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10718 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10719 (Frename_file): Avoid copying to trash if a rename involves
10720 a delete. (Bug#964).
10721
10722 2008-09-20 Eli Zaretskii <eliz@gnu.org>
10723
10724 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10725 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10726 frames as well as termcap frames.
10727 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10728 get_named_tty.
10729
10730 2008-09-19 Eli Zaretskii <eliz@gnu.org>
10731
10732 * process.c (procfs_system_process_attributes): Fix cmdline in
10733 case /proc/PID/cmdline is empty.
10734
10735 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10736 x_display_pixel_height.
10737
10738 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10739
10740 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10741
10742 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10743 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10744
10745 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10746
10747 * dispextern.h (struct it): Move line_wrap away from the middle of
10748 bitfields. Move voffset in struct iterator_stack_entry after the
10749 bitfields. Move tab_width near after another short.
10750
10751 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10752
10753 * frame.h (struct frame): Move alpha from the middle of bitfields.
10754
10755 * window.h (struct window): Move frozen_window_start_p after the
10756 rest of the bitfields to reduce padding.
10757
10758 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10759
10760 * xterm.h (x_display_info): Remove `height' and `width' members.
10761
10762 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10763
10764 * w32term.h (w32_display_info): Remove `height', `width',
10765 `height_in', and `width_in' members.
10766
10767 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10768 New functions.
10769 (x_calc_absolute_position): Use them.
10770 (x_term_init): Omit removed `height' and `width' members.
10771
10772 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10773 New functions.
10774 (w32_read_socket, x_calc_absolute_position): Use them.
10775 (w32_initialize_display_info, w32_term_init): Omit removed members
10776 of w32_display_info.
10777
10778 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10779 New functions.
10780 (ns_initialize_display_info): Omit removed members of ns_display_info.
10781
10782 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10783 New functions.
10784 (x_calc_absolute_position): Use them.
10785 (x_term_init): Omit removed `height' and `width' members.
10786
10787 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10788 (compute_tip_xy):
10789 * frame.c (x_fullscreen_adjust):
10790 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10791 x_display_pixel_width.
10792
10793 2008-09-18 Kenichi Handa <handa@m17n.org>
10794
10795 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10796 (composition_compute_stop_pos): Fix handling of static composition.
10797 (Fcomposition_get_gstring): Check FROM and TO at first.
10798
10799 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10800
10801 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10802 mixup (YAILOM).
10803
10804 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10805
10806 * indent.c (Fvertical_motion): Use position reported by iterator
10807 instead of PT for determining screen motion (bug#943).
10808
10809 2008-09-17 Romain Francoise <romain@orebokech.com>
10810
10811 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10812
10813 2008-09-17 Kenichi Handa <handa@m17n.org>
10814
10815 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10816
10817 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10818 if necessary.
10819
10820 2008-09-16 Kenichi Handa <handa@m17n.org>
10821
10822 * coding.c (make_conversion_work_buffer): Avoid calling
10823 Fget_buffer_create if it is not necessary.
10824
10825 2008-09-15 Martin Rudalics <rudalics@gmx.at>
10826
10827 * window.c (Fselect_window): Don't update window_select_count and
10828 use_time when norecord is not nil.
10829
10830 2008-09-14 Kenichi Handa <handa@m17n.org>
10831
10832 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10833 specpdl_ptr.
10834
10835 2008-09-12 Kenichi Handa <handa@m17n.org>
10836
10837 * indent.c (scan_for_column): Don't handle automatic composition
10838 if the current buffer is not associated with a window.
10839
10840 * composite.c (composition_reseat_it): If the current buffer is
10841 not associated with a window, ignore the automatic composition.
10842 (find_automatic_composition): Likewise.
10843
10844 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10845
10846 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10847 (Fgpm_mouse_stop): Use it.
10848 * termhooks.h (close_gpm): Declare.
10849 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10850 connection if Gpm_GetEvent fails.
10851
10852 * window.c (set_window_buffer): Always preserve current-buffer.
10853
10854 2008-09-12 Glenn Morris <rgm@gnu.org>
10855
10856 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10857
10858 2008-09-11 Glenn Morris <rgm@gnu.org>
10859
10860 * charset.c (charset-map-path): Doc fix.
10861
10862 2008-09-10 Kenichi Handa <handa@m17n.org>
10863
10864 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10865
10866 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10867 compose a grapheme cluster with the preceding base glyph.
10868
10869 * composite.c (composition_compute_stop_pos): Fix previous change.
10870 Reset cmp_it->id to -1 at first.
10871
10872 2008-09-10 Glenn Morris <rgm@gnu.org>
10873
10874 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10875
10876 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
10877
10878 * keyboard.c (read_key_sequence): Reapply translation maps when
10879 switching keyboards.
10880
10881 2008-09-09 Kenichi Handa <handa@m17n.org>
10882
10883 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10884 characters.
10885
10886 * composite.c (FORWARD_CHAR): Fix calculation
10887 of (POSITION).pos_byte.
10888 (composition_compute_stop_pos): Limit the search of composition to
10889 at most 500 characters ahead. If we reach the limit or find a
10890 newline, set cmp_it->ch to -2 and return 0.
10891 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10892
10893 2008-09-08 Kenichi Handa <handa@m17n.org>
10894
10895 * indent.c (Fvertical_motion): Be sure to set
10896 it_overshoot_expected if it.cmp_it.id is non-negative.
10897
10898 2008-09-07 Andreas Schwab <schwab@suse.de>
10899
10900 * callproc.c (Fcall_process): Don't hold references to string data
10901 across garbage collection. Move initialisation of new_argv down
10902 to avoid compiler bug.
10903
10904 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10905
10906 * process.c (Fsystem_process_attributes): Doc fix.
10907
10908 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
10909
10910 * callproc.c (Fcall_process): Canonicalize current directory name.
10911
10912 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10913 iterator advances to the next line if the current line ends in a
10914 continued tab.
10915
10916 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10917
10918 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10919 member to point to cmp_from.
10920
10921 * xdisp.c: Doc fix for references to gidx data member.
10922
10923 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10924
10925 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10926
10927 2008-09-07 Kenichi Handa <handa@m17n.org>
10928
10929 * composite.c (FORWARD_CHAR): Check STOP after
10930 incrementing (POSITION).pos.
10931
10932 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10933
10934 * process.c (Fsystem_process_attributes): Doc fix.
10935
10936 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10937
10938 * keyboard.c (Ftop_level): Doc fix.
10939
10940 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10941
10942 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10943 minibuffer, don't let lower part of menu invade the echo area.
10944
10945 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10946 "char *q" to access menu text and advance through it. Revert the
10947 change that displayed ">" instead of ASCII character 0x10.
10948
10949 2008-09-05 Eli Zaretskii <eliz@gnu.org>
10950
10951 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10952 toggle boxes and radio buttons on MS-DOS as well.
10953
10954 2008-09-05 Kenichi Handa <handa@m17n.org>
10955
10956 * composite.c (autocmp_chars): Check lookback count.
10957 (composition_compute_stop_pos): Set cmp_it->lookback.
10958 (composition_reseat_it): Check lookback count.
10959 (struct position_record): New struct.
10960 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10961 (find_automatic_composition): New function.
10962 (composition_adjust_point): Use find_automatic_composition.
10963
10964 * dispextern.h (struct composition_it): New member lookback.
10965
10966 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
10967
10968 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10969 if moving by a single line.
10970
10971 2008-09-02 Andreas Schwab <schwab@suse.de>
10972
10973 * xterm.c (x_delete_display): Fix merge error.
10974
10975 * fileio.c (Fexpand_file_name): Remove unused variables.
10976
10977 2008-09-02 Eli Zaretskii <eliz@gnu.org>
10978
10979 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10980 storage on all platforms, not just on DOS_NT.
10981
10982 2008-09-02 Jason Rumney <jasonr@gnu.org>
10983
10984 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10985 Ensure mouse is not grabbed after menu is finished.
10986
10987 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
10988
10989 * xfaces.c (Finternal_set_alternative_font_family_alist)
10990 (Finternal_set_alternative_font_registry_alist): Properly copy
10991 entire alist structure.
10992
10993 2008-09-01 Kenichi Handa <handa@m17n.org>
10994
10995 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10996 representative chars of the script is a vector.
10997 (ftfont_list): Handle the case where the representative chars of
10998 the script is a vector.
10999
11000 * character.c (syms_of_character): Docstring of
11001 script-representative-chars fixed.
11002
11003 2008-08-31 Eli Zaretskii <eliz@gnu.org>
11004
11005 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11006 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11007 the menu. Allocate larger buffer for `text', to account for
11008 possible ^C characters.
11009
11010 2008-08-31 Martin Rudalics <rudalics@gmx.at>
11011
11012 * xdisp.c (prepare_menu_bars): Don't call
11013 Vwindow_size_change_functions with arg Qt.
11014
11015 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11016
11017 * font.h (font_range):
11018 * fileio.c (report_file_error):
11019 * composite.c (composition_update_it): Yet another int/Lisp_Object
11020 mixup (YAILOM).
11021
11022 2008-08-30 Glenn Morris <rgm@gnu.org>
11023
11024 * data.c (Fmake_variable_frame_local): Doc fix.
11025
11026 * frame.c (Fmodify_frame_parameters): Doc fix.
11027
11028 2008-08-30 Eli Zaretskii <eliz@gnu.org>
11029
11030 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11031 needed by GetTokenInformation.
11032 (w32_system_process_attributes): Check return values of all system
11033 APIs.
11034
11035 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11036 only when the state changes.
11037 (IT_update_begin, IT_update_end): Add termscript trace.
11038
11039 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11040 clipboard is unavailable. Set dst to NULL if it doesn't point to
11041 malloc'ed data.
11042 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11043 passing random values to xfree.
11044
11045 * dispnew.c (init_display): Set `tty's association in frame's
11046 parameters alist to the name of the terminal device, if that is known.
11047
11048 2008-08-29 Jason Rumney <jasonr@gnu.org>
11049
11050 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11051
11052 2008-08-29 Eli Zaretskii <eliz@gnu.org>
11053
11054 * composite.c (fill_gstring_body): Avoid compiler warnings.
11055
11056 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11057 LGLYPH_SET_CODE to avoid compiler warnings.
11058
11059 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
11060
11061 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11062
11063 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11064 LGLYPH_SET_CODE.
11065
11066 2008-08-29 Kenichi Handa <handa@m17n.org>
11067
11068 * fileio.c (report_file_error): Don't downcase the first character
11069 of errstring if it is still unibyte.
11070
11071 2008-08-29 Kenichi Handa <handa@m17n.org>
11072
11073 These changes are to re-implement the automatic composition so
11074 that it doesn't use text properties.
11075
11076 * Makefile.in (ftfont.o): Depend on composite.h.
11077 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11078
11079 * character.h (Vunicode_category_table): Extern it.
11080
11081 * character.c (Vunicode_category_table): New variable.
11082 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11083
11084 * chartab.c (optimize_sub_char_table): Perform more greedy
11085 optimization.
11086
11087 * composite.h (enum composition_method):
11088 Delete COMPOSITION_WITH_GLYPH_STRING.
11089 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11090 (Vcomposition_function_table): Extern it.
11091 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11092 (composition_gstring_put_cache, composition_gstring_from_id)
11093 (composition_gstring_p, composition_gstring_width)
11094 (composition_compute_stop_pos, composition_reseat_it)
11095 (composition_update_it, composition_adjust_point): Extern them.
11096 (Fcomposition_get_gstring): EXFUN it.
11097
11098 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
11099 (Vcomposition_function_table)
11100 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
11101 (gstring_hash_table, gstring_work, gstring_work_headers):
11102 New variables.
11103 (gstring_lookup_cache, composition_gstring_put_cache)
11104 (composition_gstring_from_id, composition_gstring_p)
11105 (composition_gstring_width, fill_gstring_header)
11106 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11107 (composition_reseat_it, composition_update_it)
11108 (composition_adjust_point, Fcomposition_get_gstring): New functions.
11109 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11110 and gstring_work_headers. DEFVAR_LISP composition-function-table.
11111 Defsubr composition_get_gstring.
11112
11113 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11114 cmp_id.
11115 (struct glyph_string): Delete the member gidx. New members
11116 cmp_id, cmp_from, and cmp_to.
11117 (enum it_method): Delete GET_FROM_COMPOSITION.
11118 (struct composition_it): New struct.
11119 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11120 Delete c, len, cmp_id, cmp_len in u.comp.
11121
11122 * font.h (enum lgstring_indices): Delete it.
11123 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11124 (enum lglyph_indices): Likewise.
11125 (font_range): Adjust extern.
11126 (font_fill_lglyph_metrics): Extern it.
11127
11128 * font.c (QCf): New variable.
11129 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11130 (font_prepare_composition): Delete this function.
11131 (font_range): Type and arguments changed.
11132 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11133 (font_fill_lglyph_metrics): New function.
11134 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11135 (syms_of_font): DEFSYM QCf. Delete defsubr for
11136 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11137 Defsubr Sfont_shape_gstring.
11138
11139 * fontset.h (font_for_char): Extern it.
11140
11141 * fontset.c (font_for_char): New function.
11142
11143 * ftfont.c: Include composite.h.
11144 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11145 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11146
11147 * indent.c: Include composite.h and dispextern.h.
11148 (check_composition): Delete this function.
11149 (scan_for_column): Handle composition by
11150 composition_compute_stop_pos, composition_reseat_it, and
11151 composition_update_it.
11152 (compute_motion): Likewise.
11153 (Fvertical_motion): Fix checking of composition.
11154
11155 * keyboard.c (adjust_point_for_property): Check composition by
11156 composition_adjust_point.
11157
11158 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11159 struct glyph_string.
11160
11161 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11162 (append_composite_glyph): Adjust for the change of struct it and
11163 struct glyph.
11164 (produce_composite_glyph): Likewise.
11165
11166 * w32term.c (x_draw_composite_glyph_string_foreground):
11167 Adjust for the change of struct glyph_string.
11168 (x_draw_glyph_string): Likewise.
11169
11170 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11171 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11172
11173 * xdisp.c: Include font.h.
11174 (it_props): Delete the entry for Qauto_composed.
11175 (init_iterator): Initialize it->cmp_it.id to -1.
11176 (compute_stop_pos): Call composition_compute_stop_pos.
11177 (face_before_or_after_it_pos): Adjust for the change of struct it.
11178 (handle_auto_composed_prop): Delete it.
11179 (handle_composition_prop): Handle only static composition.
11180 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11181 from xassert. Initialize it->cmp_it.stop_pos.
11182 (push_it): Adjust for the change of struct it.
11183 (pop_it): Likewise.
11184 (get_next_element): Delete next_element_from_composition.
11185 (CHAR_COMPOSED_P): New macro.
11186 (get_next_display_element): For automatic composition, get a face
11187 from the font in the glyph-string.
11188 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11189 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11190 (next_element_from_string): Check if the character at the current
11191 position is composed by CHAR_COMPOSED_P.
11192 (next_element_from_buffer): Likewise.
11193 (next_element_from_composition): Adjust for the change of struct it.
11194 Update it->cmp_it.
11195 (dump_glyph): Adjust for the change of struct glyph.
11196 (fill_composite_glyph_string): Adjust for the change of struct
11197 it and struct glyph. Don't handle automatic composition here.
11198 (fill_gstring_glyph_string): New function.
11199 (x_get_glyph_overhangs): Handle automatic composition.
11200 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11201 (BUILD_GSTRING_GLYPH_STRING): New macro.
11202 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11203 automatic composition.
11204 (append_composite_glyph): Adjust for the change of struct it and
11205 struct glyph.
11206 (x_produce_glyphs): Adjust for the change of struct it.
11207
11208 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11209 the change of struct glyph_string.
11210 (x_draw_glyph_string): Likewise.
11211
11212 2008-08-29 Glenn Morris <rgm@gnu.org>
11213
11214 * buffer.c (word-wrap): Doc fix.
11215 * xdisp.c (truncate-partial-width-windows): Doc fix.
11216 Increase default to 50.
11217
11218 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11219
11220 * xdisp.c (update_tool_bar_unwind): New function.
11221 (update_tool_bar): Temporarily set selected frame before building
11222 tool-bar items.
11223
11224 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11225
11226 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11227 snprintf, respectively.
11228 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11229
11230 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11231
11232 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11233 LDFLAGS to GNUstep CC invocation.
11234
11235 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11236
11237 * indent.c (Fvertical_motion): Revert last change. Handle the
11238 general case where we are moving forward, and PT spans multiple
11239 screen lines.
11240
11241 * eval.c (find_handler_clause): Temporarily increase
11242 max-lisp-eval-depth while printing the backtrace buffer, to
11243 guarantee that help-mode code can run.
11244
11245 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11246
11247 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11248 colors under -rv.
11249 (IT_set_frame_parameters): Don't swap foreground and background
11250 colors if `(reverse . t)' is present in the frame properties.
11251 (internal_terminal_init): Call init_frame_faces only for the
11252 initial frame.
11253
11254 2008-08-27 Andreas Schwab <schwab@suse.de>
11255
11256 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11257
11258 2008-08-27 Andreas Schwab <schwab@suse.de>
11259
11260 * search.c (search_buffer): Set char_base to zero only at the end.
11261
11262 2008-08-27 Kenichi Handa <handa@m17n.org>
11263
11264 * fileio.c (report_file_error): Fix handling of multibyte error string.
11265
11266 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11267
11268 * xterm.c (x_term_init): Temporarily hide the partially
11269 initialized terminal while calling vendor-specific-keysyms.
11270
11271 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11272
11273 * msdos.c (internal_terminal_init): Most initializations done only
11274 once, especially initial_screen_colors[] and termscript open.
11275
11276 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11277
11278 * eval.c (Fcondition_case): Doc fix.
11279
11280 * widgetprv.h (EmacsFramePart): Change font member to the new font
11281 struct.
11282
11283 * widget.c: Include character.h and font.h for XSETFONT.
11284 (setup_frame_gcs): Compute X font id from font struct, just once.
11285
11286 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11287
11288 * term.c (get_named_tty): Fix last change.
11289
11290 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11291
11292 * indent.c (Fvertical_motion): If moving forward starting from a
11293 multi-line string, move the iterator to the last line of that string.
11294
11295 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11296
11297 * frame.c (do_switch_frame): Mark previously displayed frame as
11298 obscured for FRAME_MSDOS_P frames as well.
11299
11300 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11301
11302 * frame.c (make_terminal_frame): Initialize f->terminal,
11303 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11304 Set the top frame to newly created frame.
11305 (Fmake_terminal_frame): Reuse the_only_display_info.
11306
11307 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11308 estimating available memory.
11309
11310 2008-08-23 David Reitter <david.reitter@gmail.com>
11311
11312 * nsterm.m (ns_draw_window_cursor): Don't call
11313 NSDisableScreenUpdates and NSEnableScreenUpdates on
11314 non-NS_IMPL_COCOA systems.
11315
11316 2008-08-23 Andreas Schwab <schwab@suse.de>
11317
11318 * process.c (procfs_system_process_attributes): Fix use of
11319 uninitialized variables.
11320
11321 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11322
11323 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11324
11325 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11326 calling tty-set-up-initial-frame-faces.
11327
11328 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11329 Allow MSDOS frames along with X frames.
11330
11331 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11332 addition to output_termcap.
11333
11334 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11335
11336 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11337 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11338 highlight.
11339
11340 * process.c [!subprocesses]: Define QCname.
11341 (syms_of_process): Intern and staticpro it.
11342
11343 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11344 Adjust for changes in encoding/decoding routines.
11345 Use encode_coding_object and decode_coding_object instead of
11346 encode_coding and decode_coding.
11347
11348 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11349
11350 * dosfns.c: Include frame.h before termhooks.h.
11351 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11352 variable termscript.
11353
11354 * s/msdos.h (USER_FULL_NAME): Define.
11355 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11356
11357 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11358 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11359 pw->pw_gecos.
11360
11361 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11362 SELECTED_FRAME as additional (1st) argument.
11363 (tty_read_avail_input): Handle output_msdos_raw in
11364 addition to output_termcap.
11365
11366 * msdos.c: Include frame.h before termhooks.h.
11367 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11368 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11369 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11370 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11371 (IT_set_terminal_modes, IT_reset_terminal_modes)
11372 (IT_set_frame_parameters): Use tty->termscript instead of a global
11373 variable termscript.
11374 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11375 global variable terminal_coding. Don't refer to
11376 Vnonascii_translation_table.
11377 (internal_terminal_init): Set Vwindow_system in current_kboard.
11378 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11379 Announce date and time of session start, if termscript is open.
11380 Don't zero out the_only_display_info (it is done in
11381 term.c:init_tty). Open termscript only of not already open.
11382 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11383 here instead of dos_ttraw. Don't initialize display if this is an
11384 initial tty. Don't set FRAME_FONT.
11385 (Vwindow_system_version): Bump to 23.
11386 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11387 is available, set up mouse_position_hook.
11388 (dos_ttraw, IT_set_terminal_modes): If called with initial
11389 terminal, do nothing.
11390 (IT_set_frame_parameters): Handle the Qtty_type frame
11391 parameter by calling internal_terminal_init.
11392 (dos_set_window_size, show_mouse_face)
11393 (clear_mouse_face, IT_note_mode_line_highlight)
11394 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11395 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11396 (initialize_msdos_display): New function.
11397 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11398 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11399 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11400 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11401 Accept additional argument: a pointer to a frame. Update all callers.
11402 (request_sigio, unrequest_sigio): Don't define, now defined on
11403 sysdep.c.
11404 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11405
11406 * term.c [MSDOS]: Include msdos.h.
11407 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11408 conditional to DOS_NT. Allow only one call to this function in a
11409 session. Don't allocate a new struct tty_display_info; instead,
11410 reuse the_only_display_info. Call get_tty_size to get screen
11411 dimensions. Call init_baud_rate to set bad_rate.
11412 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11413 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11414 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11415 (get_tty_terminal, get_named_tty, Ftty_type)
11416 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11417 output_termcap.
11418 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11419 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11420 only when subprocesses are supported.
11421
11422 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11423 f->output_data.x.
11424 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11425 terminal devices.
11426
11427 * msdos.h: Remove definition of struct x_display_info and struct
11428 x_output.
11429 (FRAME_FONT): Use output_data.tty.
11430 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11431 (struct x_display_info): Rename from display_info. Update all users in
11432 msdos.c.
11433 (struct x_output): Remove background_pixel and foreground_pixel.
11434 (the_only_display_info): Rename from the_only_x_display.
11435 (dos_ttraw): Update prototype.
11436
11437 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11438 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11439
11440 2008-08-23 Jason Rumney <jasonr@gnu.org>
11441
11442 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11443 (fn_TIFFSetDirectory): New library function used.
11444 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11445 (tiff_load): Use :index to select among multiple images. Set count
11446 property when multiple images exist.
11447 (gif_format): Use :index, not :image.
11448
11449 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11450
11451 * xdisp.c (try_scrolling): Check INT_MAX instead of
11452 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11453 to obtain INT_MAX.
11454
11455 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11456
11457 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11458
11459 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11460
11461 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11462 GNUstep library location.
11463
11464 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11465
11466 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11467 before using it.
11468
11469 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11470
11471 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11472
11473 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11474 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11475 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11476 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11477 (EmacsApp-cursor_blink_handler): Remove declaration.
11478 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11479 match 01 Feb 2008 changes in xterm.c.
11480 (ns_read_socket): Add cast to avoid warning.
11481 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11482 GNUstep.
11483
11484 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11485
11486 * xselect.c (x_get_foreign_selection): Return nil if desired
11487 selection could not be obtained, instead of signalling an error.
11488
11489 2008-08-20 David Reitter <david.reitter@gmail.com>
11490
11491 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11492 * nsterm.m: Remove ns-specific code for cursor blinking.
11493 (ns_draw_window_cursor): Clear cursor properly rather than
11494 redrawing the area. Respect width of bar cursors.
11495 These changes enable the use of generic blink-cursor-mode and
11496 generic cursor types in NS and support smooth cursor movements (do
11497 not blink off after command).
11498 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11499 Nextstep, too.
11500
11501 2008-08-19 Kenichi Handa <handa@m17n.org>
11502
11503 * font.c (Vfont_log_deferred): New variable.
11504 (font_add_log): Check Vfont_log_deferred.
11505 (font_deferred_log): New function.
11506
11507 * font.h (font_deferred_log): Extern it.
11508
11509 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11510 for sorting.
11511 (face_for_char): Use deferred log.
11512
11513 2008-08-18 Kenichi Handa <handa@m17n.org>
11514
11515 * fontset.c (face_for_char): Add font log.
11516
11517 * font.c (font_add_log): Add the font properties :script, :lang,
11518 and :otf in the log.
11519
11520 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11521
11522 * xdisp.c: Remove dead code.
11523 (handle_invisible_prop, next_overlay_string): Defer call to
11524 setup_for_ellipsis.
11525 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11526
11527 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11528
11529 * xfaces.c (lookup_derived_face): Properly handle possible zero
11530 return value of get_lface_attributes.
11531 (merge_faces): Don't tell lookup_derived_face to signal an error
11532 if face is not found.
11533
11534 * dired.c (Fdirectory_files): Doc fix.
11535
11536 * process.c (make_process): Initialize kill_without_query struct
11537 member.
11538
11539 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11540
11541 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11542 Alternative calculation of totphys for Visual Studio 6.
11543
11544 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11545
11546 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11547 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11548 All users changed.
11549 (stat): Only root directory passed to GetDriveType. Allow RAM
11550 disk as well as local fixed disk when w32-get-true-file-attributes
11551 is set to `local'.
11552 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11553 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11554 (w32_cached_id, w32_add_to_cache): New functions.
11555 (get_name_and_id): Look account names in the cache before calling
11556 lookup_account_sid.
11557 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11558 New initialization flags.
11559 (globals_of_w32): Initialize them to zero.
11560 (w32_system_process_attributes): Use w32_cached_id and
11561 w32_add_to_cache.
11562
11563 2008-08-14 Lawrence Mitchell <wence@gmx.li>
11564
11565 * lread.c (Fread_char, Fread_char_exclusive): If no character
11566 event is read before timeout is reached, return nil, rather than
11567 converting to a number.
11568
11569 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
11570
11571 * fns.c (use_dialog_box): Doc fix.
11572
11573 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11574 on OS X.
11575
11576 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
11577
11578 * frame.c (Qns_parse_geometry): New var.
11579 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11580
11581 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
11582
11583 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11584 space character in calculating tabs.
11585
11586 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11587
11588 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11589
11590 2008-08-10 Glenn Morris <rgm@gnu.org>
11591
11592 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11593 silence gcc "limited range of data type" warnings in some
11594 make_fixnum_or_float calls.
11595
11596 2008-08-09 Eli Zaretskii <eliz@gnu.org>
11597
11598 * w32.c (w32_system_process_attributes): If the process does not
11599 exist, return nil.
11600
11601 * w32.c: Include thelp32.h, psapi.h and coding.h.
11602 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11603 declarations.
11604 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11605 (Process32Next_Proc): New typedefs.
11606 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11607 (g_b_init_process32_next, g_b_init_open_thread_token)
11608 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11609 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11610 (g_b_init_get_process_working_set_size)
11611 (g_b_init_global_memory_status_ex): New static variables.
11612 (globals_of_w32): Initialize them.
11613 (create_toolhelp32_snapshot, process32_first, process32_next)
11614 (open_thread_token, impersonate_self, revert_to_self)
11615 (get_process_memory_info, get_process_working_set_size)
11616 (global_memory_status, global_memory_status_ex): New wrapper
11617 functions.
11618 (w32_list_system_processes, w32_system_process_attributes)
11619 (enable_privilege, restore_privilege, ltime, process_times):
11620 New functions.
11621 (convert_time_raw): New function.
11622 (convert_time): Remove conversion of FILETIME into time in 100
11623 nsec units, call convert_time_raw instead.
11624
11625 * process.h (w32_list_system_processes, w32_system_process_attributes):
11626 Add prototypes.
11627 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11628 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11629 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11630 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11631
11632 * process.c (Fsystem_process_attributes): Doc fix.
11633
11634 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
11635
11636 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11637 a continued multi-char glyph; if so, advance to the actual glyph.
11638
11639 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11640
11641 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11642
11643 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11644 (.m.o): Use it.
11645 * config.in: Regenerate.
11646
11647 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
11648
11649 * xdisp.c (redisplay_window): Revert last change.
11650 (try_window): Check bottom scroll margin too.
11651
11652 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11653
11654 * config.in: Regenerate.
11655
11656 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11657 -list-load-path-shadows'.
11658 (nsgui.h): Reduce number of things depending on it.
11659
11660 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
11661
11662 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11663 instead of window-end which does the wrong thing at eob.
11664 (try_cursor_movement): Minor optimization.
11665 (redisplay_window): If scroll margin is defined, don't assume
11666 window doesn't need scrolling.
11667
11668 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11669
11670 * config.in: Regenerate.
11671
11672 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11673 (mostlyclean): Don't delete *.d under NS.
11674
11675 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11676
11677 2008-08-06 Kenichi Handa <handa@m17n.org>
11678
11679 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11680
11681 2008-08-06 Andreas Schwab <schwab@suse.de>
11682
11683 * config.in: Regenerate.
11684
11685 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
11686
11687 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11688 forcing a window start.
11689
11690 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11691 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11692
11693 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11694
11695 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11696 argument.
11697
11698 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
11699
11700 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11701 <scroll-down-aggressively, before-change-functions>:
11702 <after-change-functions>: Reflow docstrings.
11703
11704 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11705 Ken Raeburn <raeburn@gnu.org>
11706
11707 Dock menu customization, based on a patch by Ken Raeburn, plus some
11708 other fixes.
11709 * nsmenu.m (dockMenu): New variable.
11710 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11711
11712 * nsterm.h (dockMenu): Declare.
11713
11714 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11715 (ns_term_init): Initialize dockMenu.
11716 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11717 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11718 left.
11719
11720 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11721
11722 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11723
11724 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11725
11726 * config.in: Regenerate.
11727
11728 2008-08-04 Seiji Zenitani <zenitani@mac.com>
11729
11730 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11731
11732 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11733
11734 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11735
11736 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11737
11738 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11739
11740 * keyboard.h: Comment an #endif.
11741
11742 * lisp.h (have_menus_p): Adjust comment.
11743
11744 * menu.c (find_and_return_menu_selection): Fix comparison with
11745 client_data.
11746
11747 * nsmenu.m (popup_activated_flag): New variable.
11748 (popup_activated): New function.
11749 (menu-or-popup-active-p): New exported lisp definition.
11750 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11751 when popup done.
11752 (ns_popup_dialog): Set popup_activated_flag.
11753
11754 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11755 version for GNUstep (handled by conditional typedef in nsterm.m).
11756 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11757 in rgb.txt).
11758
11759 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11760
11761 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11762
11763 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11764
11765 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11766 shortcircuit if popup_activated like GTK and X toolkit.
11767
11768 * m/inter386.h: Change DARWIN to DARWIN_OS.
11769
11770 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11771 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11772 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11773 comment on NO_SOCK_SIGIO.
11774
11775 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11776
11777 * nsterm.m (windowDidResize): Remove stopModal call.
11778
11779 2008-08-03 Andreas Schwab <schwab@suse.de>
11780
11781 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11782 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11783
11784 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11785
11786 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11787 Don't use uninitialized pointer variable when using getrlimit.
11788
11789 2008-08-02 Jason Rumney <jasonr@gnu.org>
11790
11791 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11792
11793 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11794
11795 * alloc.c (NSTATICS): Bump to 0x640.
11796
11797 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11798
11799 * lisp.h: Add prototype for directory_files_internal.
11800
11801 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11802 New functions.
11803 (syms_of_process): Defsubr them. Add initializations for various
11804 Q* symbols used in procfs_system_process_attributes.
11805 (procfs_list_system_processes, procfs_system_process_attributes)
11806 [HAVE_PROCFS]: New functions.
11807 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11808 (procfs_get_total_memory): New functions.
11809
11810 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11811
11812 * xfaces.c (Fx_load_color_file): Fix previous change;
11813 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11814
11815 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11816
11817 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11818
11819 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11820
11821 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11822
11823 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
11824
11825 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11826
11827 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11828 define NSApplicationDelegateReplySuccess.
11829 (EmacsView -converstationIdentifier): Use long instead of
11830 NSInteger for GNUstep, since it doesn't have NSInteger.
11831
11832 * xmenu.c: Revert last change.
11833
11834 * keyboard.h: Fix last change.
11835
11836 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11837
11838 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11839 on Windows.
11840
11841 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11842
11843 Warning clearing and clean-up in NS port.
11844 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11845 Add prototypes.
11846 * nsgui.h (FACE_DEFAULT): Remove, unused.
11847 (XGCValues): Change colors to unsigned long.
11848 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11849 nsterm.m.
11850 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11851 (ns_list_fonts): Remove, unused.
11852 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11853 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11854 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11855 (nsfont_draw): Compare face colors to 0, not nil.
11856 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11857 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11858 (-addSubmenuWithTitle:): Use NSMenuItem class.
11859 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11860 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11861 (ns_clip_to_row): Make gc arg a BOOL.
11862 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11863 ns_clip_to_row() call.
11864 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11865 used). Cast FRAME_FONT assignments.
11866 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11867 (ns_string_to_lispmod): Change arg to const char.
11868 (ns_term_init): Use NSMenuItem class.
11869 (EmacsApp -openFile:): Move to different section of file.
11870 (EmacsApp -application:openFiles:): Don't return a value, call
11871 -replyToOpenOrPrint:.
11872 (EmacsView -keyDown:): Fix up cast.
11873 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11874 (EmacsView -menuDown:): Cast tag in call to
11875 find_and_call_menu_selection().
11876 (ns_list_fonts): Remove, unused.
11877 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11878 (ns_fontname_to_xlfd): Make static.
11879 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11880 Remove prototypes (now in keyboard.h).
11881 (next_menubar_widget_id): Remove, unused.
11882 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11883 Remove prototypes (now in keyboard.h).
11884 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11885
11886 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11887
11888 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11889 (floatfns.o): Depend on syssignal.h.
11890 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11891
11892 * systty.h: Fix previous change that removed BSD_TERMIOS.
11893 Add comments to #ifdefs.
11894
11895 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11896
11897 * w32fns.c (w32-load-color-file): Remove.
11898 (x-open-connection): Use renamed Fx_load_color_file.
11899 * xfaces.c (x-load-color-file): Add.
11900 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11901 Emacs.clr.
11902 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11903
11904 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
11905
11906 * dbusbind.c (Fdbus_call_method_asynchronously)
11907 (Fdbus_method_error_internal): New defuns.
11908 (xd_read_message): Handle also reply messages.
11909 (Vdbus_registered_functions_table): Extend docstring.
11910
11911 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
11912
11913 * keyboard.c (gobble_input): Fix previous change.
11914
11915 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11916
11917 * bitmaps/README:
11918 * xfns.c:
11919 * termcap.c:
11920 * term.c:
11921 * syswait.h:
11922 * systty.h:
11923 * systime.h:
11924 * syssignal.h:
11925 * sysdep.c:
11926 * process.h:
11927 * process.c:
11928 * print.c:
11929 * ndir.h:
11930 * lread.c:
11931 * keyboard.c:
11932 * getpagesize.h:
11933 * floatfns.c:
11934 * fileio.c:
11935 * emacs.c:
11936 * doc.c:
11937 * dispnew.c:
11938 * dired.c:
11939 * data.c:
11940 * callproc.c:
11941 * buffer.c:
11942 * README:
11943 * Makefile.in:
11944 * s/template.h:
11945 * s/msdos.h:
11946 * m/vax.h: Remove VMS support.
11947 * s/vms.h:
11948 * vlimit.h:
11949 * uaf.h:
11950 * temacs.opt:
11951 * param.h:
11952 * ioctl.h: Remove file.
11953
11954 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11955
11956 * s/ms-w32.h (MULTI_KBOARD): Remove.
11957 * xterm.c:
11958 * xselect.c:
11959 * xfns.c:
11960 * window.c:
11961 * w32term.c:
11962 * w32fns.c:
11963 * terminal.c:
11964 * termhooks.h:
11965 * term.c:
11966 * sysdep.c:
11967 * keyboard.h:
11968 * keyboard.c:
11969 * frame.h:
11970 * frame.c:
11971 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11972 * config.in: Regenerate.
11973
11974 2008-07-30 Jason Rumney <jasonr@gnu.org>
11975
11976 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11977
11978 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11979 (w32font_open_internal): Get unicode version of textmetrics.
11980 Don't enable or disable glyph indices here.
11981 (w32font_open): Disable use of glyph indices.
11982
11983 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11984
11985 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
11986
11987 * minibuf.c (Vread_buffer_function): Doc fix.
11988
11989 2008-07-30 John Paul Wallington <jpw@pobox.com>
11990
11991 * minibuf.c (read_buffer_completion_ignore_case): New var.
11992 (Fread_buffer): Use it.
11993
11994 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11995
11996 * systty.h (sensemode): Remove empty #if. Remove reference to
11997 BSD_TERMIOS, unused.
11998
11999 * sysdep.c: Remove reference to DGUX.
12000 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12001
12002 * config.in: Regenerate.
12003
12004 2008-07-30 Jason Rumney <jasonr@gnu.org>
12005
12006 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12007
12008 2008-07-29 Jason Rumney <jasonr@gnu.org>
12009
12010 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12011 is populated.
12012 (uniscribe_encode_char): Always use uniscribe.
12013 Avoid using context if cache is populated.
12014
12015 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12016
12017 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12018 open menu.
12019
12020 * gtkutil.c (menu_nav_ended): Remove.
12021 (create_menus): Remove signal connect for menu_nav_ended.
12022
12023 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
12024
12025 * xdisp.c (redisplay_window): Check return value of
12026 compute_window_start_on_continuation_line before forcing a window
12027 start.
12028
12029 2008-07-28 Jason Rumney <jasonr@gnu.org>
12030
12031 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12032
12033 * w32term.c (w32_enable_unicode_output, cleartype_active):
12034 Remove obsolete display options.
12035 (x_draw_glyph_string_background): Don't use old cleartype_active
12036 workaround.
12037 (w32_initialize): Remove cleartype_active initialization.
12038 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12039
12040 2008-07-28 Andreas Schwab <schwab@suse.de>
12041
12042 * lisp.h (init_weak_hash_tables, syms_of_font)
12043 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12044 (remove_hash_entry): Don't declare.
12045 * eval.c (maybe_call_debugger): Make static and move before use.
12046 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12047 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12048 * xterm.h (x_set_frame_alpha): Declare.
12049
12050 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12051
12052 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12053 (create_menus): Connect selection-done to menu_nav_ended.
12054
12055 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12056
12057 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12058 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12059 parameter with read of 'alpha' one.
12060 (Qns_frame_parameter): Remove.
12061 * nsselect.m (selection-coding-system)
12062 (next-selection-coding-system, Vselection_coding_system)
12063 (Vnext_selection_coding_system): Drop.
12064
12065 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12066
12067 * nsfns.m (do-applescript, do_applescript): Rename to
12068 ns-do-applescript, ns_do_applescript, and move within file.
12069
12070 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12071
12072 Remove support for Mac Carbon.
12073 * mactoolbox.c:
12074 * macterm.h:
12075 * macterm.c:
12076 * macselect.c:
12077 * macmenu.c:
12078 * macgui.h:
12079 * macfns.c:
12080 * mac.c: Remove file.
12081 * s/darwin.h:
12082 * m/intel386.h:
12083 * xfaces.c:
12084 * xdisp.c:
12085 * window.c:
12086 * tparam.c:
12087 * termhooks.h:
12088 * termcap.c:
12089 * term.c:
12090 * syssignal.h:
12091 * sysselect.h:
12092 * sysdep.c:
12093 * process.c:
12094 * lread.c:
12095 * lisp.h:
12096 * keyboard.c:
12097 * image.c:
12098 * fringe.c:
12099 * frame.h:
12100 * frame.c:
12101 * fontset.c:
12102 * font.h:
12103 * font.c:
12104 * fns.c:
12105 * fileio.c:
12106 * emacs.c:
12107 * dispnew.c:
12108 * dispextern.h:
12109 * config.in:
12110 * atimer.c:
12111 * Makefile.in: Remove code for Carbon.
12112
12113 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12114
12115 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12116
12117 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12118
12119 * macterm.h (kCGBitmapByteOrder32Host): New define for
12120 non-universal SDKs.
12121
12122 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12123 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12124
12125 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12126 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12127
12128 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12129
12130 * w32inevt.c: Include dispextern.h.
12131
12132 2008-07-26 Andreas Schwab <schwab@suse.de>
12133
12134 * print.c (print_object): Fix off-by-one in last change.
12135
12136 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12137
12138 * term.c (syms_of_term): Don't initialize default_orig_pair,
12139 default_set_foreground and default_set_background on Windows.
12140
12141 2008-07-25 Jason Rumney <jasonr@gnu.org>
12142
12143 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12144 ScriptItemize. Clean up return value checking. Remove unused
12145 variables.
12146 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12147 shaping engine.
12148
12149 * w32font.c (w32font_has_char): Handle the case where we can't
12150 determine the script for a character.
12151
12152 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12153
12154 * term.c (syms_of_term): Initialize default_orig_pair,
12155 default_set_foreground, and default_set_background.
12156
12157 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12158 clash (bug#86).
12159 (getloadavg): Callers changed.
12160
12161 * image.c (svg_load_image): Fix last change.
12162 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12163 image size is valid. Use g_object_unref instead of deprecated
12164 rsvg_handle_free to free rsvg handle.
12165 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12166
12167 2008-07-25 Jason Rumney <jasonr@gnu.org>
12168
12169 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12170 surrogates before looking up glyph index.
12171 (w32font_text_extents): Encode as surrogates if falling back to
12172 functions that need UTF-16 wide chars.
12173
12174 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12175 BMP as surrogates before looking up glyph index.
12176
12177 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * image.c (svg_load_image): Check for failure in return value of
12180 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12181
12182 2008-07-25 Jason Rumney <jasonr@gnu.org>
12183
12184 * w32font.c (Fx_select_font): Reverse sense of second arg.
12185
12186 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12187
12188 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12189 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12190
12191 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12192 (PURESIZE): Use it.
12193
12194 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12195
12196 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12197 * m/alpha.h (TEXT_END):
12198 * m/ibmrs6000.h (TEXT_END):
12199 * m/macppc.h (TEXT_END):
12200 * s/darwin.h (TEXT_END):
12201 * s/msdos.h (TEXT_END): Remove, unused.
12202 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12203 * s/cygwin.h: Remove comment.
12204
12205 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12206 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12207 * m/intel386.h (DOT_GLOBAL_START):
12208 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12209 (USG): Remove, file not used on USG platforms.
12210
12211 * Makefile.in (HAVE_X11): Remove empty #else.
12212
12213 2008-07-24 Andreas Schwab <schwab@suse.de>
12214
12215 * fileio.c (Finsert_file_contents): Properly adjust undo list
12216 after format conversion.
12217
12218 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12219
12220 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12221 (menu_nav_ended): Remove.
12222 (create_menus): Remove signal connect for menu_nav_ended.
12223 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12224 create_menus.
12225 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12226
12227 2008-07-23 Jason Rumney <jasonr@gnu.org>
12228
12229 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12230 with opened font.
12231 (w32font_open): Set font type to gdi.
12232
12233 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12234
12235 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12236
12237 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12238 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12239 defines it.
12240 * unexec.c (ADDR_CORRECT): Define unconditionally.
12241
12242 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12243
12244 * unexec.c: Remove code depending on !COFF and USG, the file is
12245 not used for such systems.
12246
12247 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12248 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12249 (LD_SWITCH_SYSTEM_1): Remove, update users.
12250
12251 * s/darwin.h (DATA_END):
12252 * m/intel386.h (DATA_END):
12253 * m/ibmrs6000.h (DATA_END):
12254 * m/alpha.h (DATA_END): Remove, unused.
12255
12256 * config.in: Regenerate.
12257 * s/ms-w32.h (subprocesses): Define unconditionally.
12258 * s/template.h (subprocesses): Update comment.
12259 * s/vms.h (subprocesses):
12260 * s/usg5-4.h (subprocesses):
12261 * s/hpux10-20.h (subprocesses):
12262 * s/gnu-linux.h (subprocesses):
12263 * s/cygwin.h (subprocesses):
12264 * s/bsd-common.h (subprocesses):
12265 * s/aix4-2.h (subprocesses):
12266 * s/darwin.h (subprocesses): Do not define, defined by default now.
12267
12268 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12269 Remove all references.
12270 (temacs): Add GNUstep specific ld flags.
12271
12272 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12273 similarly to what X does.
12274
12275 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12276
12277 * nsfns.m (x-list-fonts): Remove.
12278 (syms_of_nsfns): Drop the x-list-fonts declaration.
12279 * nsterm.m: Get rid of remaining "//" comments.
12280
12281 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12282
12283 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12284
12285 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12286 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12287 (Fns_own_selection_internal, Fx_disown_selection_internal)
12288 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12289
12290 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12291 ... */' style of docstrings. Doc fixes.
12292
12293 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12294
12295 * terminfo.c (UP, BC, PC): Undo previous change.
12296
12297 * nsfns.m: Rename ns prefixed functions/variables to the
12298 corresponding x versions. Update references.
12299
12300 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12301
12302 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12303
12304 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12305
12306 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12307 Remove forwarding functions.
12308 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12309 non-static.
12310 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12311 non-static.
12312 (ns_frame_parm_handlers): Use the new names.
12313 (syms_of_nsfns): Move to the end of file.
12314
12315 * nsterm.m (syms_of_nsterm): Move to the end of file.
12316
12317 * dispnew.c (init_display): Remove code for X10.
12318
12319 2008-07-22 Jason Rumney <jasonr@gnu.org>
12320
12321 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12322 bare drive.
12323
12324 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12325
12326 * nsterm.m (syms_of_nsterm): Remove debugging println.
12327
12328 2008-07-22 David Reitter <david.reitter@gmail.com>
12329
12330 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12331 Carbon implementation of the same functionality: execute arbitrary
12332 AppleScript code.
12333
12334 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12335
12336 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12337 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12338 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12339 (Fx_display_mm_height, Fx_display_mm_width)
12340 (Fx_display_backing_store, Fx_display_visual_class)
12341 (Fx_display_save_under, Fx_open_connection)
12342 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12343 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12344 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12345 (Fx_display_pixel_width, Fx_display_pixel_height)
12346 (Fx_display_usable_bounds, Fx_display_planes)
12347 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12348 ... */' style of docstrings.
12349
12350 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12351
12352 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12353 on this platform.
12354 (mips):
12355 * m/iris4d.h (mips): Do not define.
12356 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12357
12358 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12359
12360 * image.c:
12361 * nsfns.m:
12362 * nsselect.m:
12363 * nsterm.h:
12364 * nsterm.m: Rename ns prefixed functions/variables to the
12365 corresponding x versions. Update references.
12366
12367 * m/ibms390x.h (NO_REMAP): Do not undefine.
12368
12369 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12370
12371 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12372
12373 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12374 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12375 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12376 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12377 (Fns_display_mm_height, Fns_display_mm_width)
12378 (Fns_display_backing_store, Fns_display_visual_class)
12379 (Fns_display_save_under, Fns_open_connection)
12380 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12381 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12382 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12383 (Fns_display_pixel_width, Fns_display_pixel_height)
12384 (Fns_display_usable_bounds, Fx_display_planes)
12385 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12386
12387 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12388
12389 * print.c (print_object): Check print_depth before searching for
12390 circularities.
12391
12392 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12393
12394 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12395 only sprintf.
12396
12397 2008-07-21 Kenichi Handa <handa@m17n.org>
12398
12399 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12400
12401 2008-07-20 Andreas Schwab <schwab@suse.de>
12402
12403 * syntax.c (find_start_pos, find_start_value)
12404 (find_start_value_byte, find_start_begv, find_defun_start)
12405 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12406
12407 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12408
12409 * s/sol2-3.h: Insert contents of s/sol2.h.
12410 (LD_SWITCH_SYSTEM): Remove redundant definition.
12411 * s/sol2.h: Remove, unused.
12412
12413 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12414
12415 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12416
12417 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12418
12419 * Makefile.in (ns_appdir): Fix typo in find command.
12420
12421 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12422
12423 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12424
12425 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12426 added not supported anymore.
12427
12428 * s/usg5-4-2.h (LIBS_SYSTEM):
12429 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12430
12431 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12432 * s/lynxos.h (GETPGRP_NO_ARG):
12433 * s/hpux10-20.h (NO_SIOCTL_H):
12434 * s/gnu.h (GETPGRP_NO_ARG):
12435 * s/gnu-linux.h (NO_SIOCTL_H):
12436 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12437 * s/cygwin.h (GETPGRP_NO_ARG):
12438 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12439 (C_DEBUG_SWITCH): Remove duplicate definition.
12440
12441 * m/ibms390.h: Remove boilerplate comments.
12442
12443 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12444
12445 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12446 (wait_reading_process_output): Remove code for SunOS, platform not
12447 supported anymore. Use SOLARIS2 instead of sun.
12448
12449 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12450
12451 * font.c (font_open_by_name): Under NS, default lface height to zero.
12452 (font_open_for_lface): Under NS, set size based on frame fontsize.
12453 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12454 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12455
12456 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12457
12458 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12459 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12460 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12461 YES/NO.
12462 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12463 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12464 * Makefile.in (clean): Clear out build destination dir.
12465
12466 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12467
12468 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12469 xterm, xselect.
12470 * lisp.h: Remove declaration of hash_remove.
12471 * nsgui.h: Remove redefinitions of hash_remove.
12472 * fns.c (hash_remove): Rename to hash_remove_from_table.
12473
12474 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12475
12476 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12477 strdup() the family UTF8String before modifying it.
12478
12479 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12480
12481 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12482 NS_FACE_BACKGROUND with 0 instead of nil.
12483 * nsfont.m (nsfont_draw): Same.
12484
12485 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12486
12487 * nsfns.m (ns_set_background_color): Fix crash.
12488
12489 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12490
12491 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12492
12493 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12494
12495 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12496
12497 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12498
12499 * gtkutil.c: Include <config.h> instead of "config.h".
12500
12501 * lisp.h (Foverlay_buffer): Add EXFUN.
12502
12503 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12504 child process to complete child_setup. Undo 2005-09-21 change.
12505
12506 * s/darwin.h: Mention setsid after vfork.
12507
12508 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12509
12510 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12511 Depend on macgui.h.
12512
12513 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12514 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12515
12516 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12517 and f19.
12518 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12519
12520 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12521 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12522 Remove enumerators.
12523
12524 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12525 Check if FACE_FROM_ID returns NULL.
12526
12527 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12528
12529 * w32inevt.c (change_frame_size): Remove extern declaration.
12530 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12531 change_frame_size.
12532
12533 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12534
12535 * getloadavg.c: Revert last change (2008-07-15).
12536
12537 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12538
12539 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12540 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12541 from configure.
12542
12543 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12544
12545 * s/sol2.h:
12546 * s/sol2-4.h: Reorganize conditionals.
12547
12548 * ecrt0.c: Remove code depending on m68000, not used anymore.
12549
12550 * fns.c (hash_remove): Make static.
12551 * lisp.h (hash_remove): Don't prototype.
12552
12553 * m/ibmrs6000.h:
12554 * m/ibms390x.h:
12555 * m/macppc.h: Remove boilerplate comments.
12556
12557 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12558 Solaris, which does not need them.
12559
12560 * m/vax.h: Remove comments about unsupported systems.
12561
12562 * s/darwin.h: Reorganize ifdefs.
12563
12564 2008-07-17 Andreas Schwab <schwab@suse.de>
12565
12566 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12567
12568 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 Use SDATA. Follow coding convention of placing operators at
12571 beginning of next line rather than end of previous line, and placing
12572 spaces around infix operators.
12573
12574 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12575 in case it was defined already.
12576 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12577 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12578 ns_default.
12579 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12580 Lisp_Objects.
12581 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12582 (ns_defined_color, ns_color_to_lisp): Declare.
12583 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12584 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12585 it's accepted even with USE_LISP_UNION_TYPE.
12586 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12587 (update_frame_tool_bar): Remove apparently obsolete tests for
12588 non-integerness of f->tool_bar_lines.
12589 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12590 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12591 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12592 (nsfont_open): Don't confuse NULL for Qnil.
12593 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12594 * menu.h (find_and_call_menu_selection):
12595 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12596 (find_and_return_menu_selection): Always return something.
12597 * frame.h: Include dispextern.h for Display_Info.
12598 (display_x_get_resource): Declare.
12599
12600 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12601
12602 * syntax.c: Remove stdio.h include accidentally introduced in
12603 Emacs.app commit.
12604 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12605 NS_IMPL_COCOA.
12606 * keyboard.c (handle_async_input, input_available_signal): Remove
12607 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12608
12609 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12610
12611 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12612 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12613 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12614 Use SDATA.
12615
12616 * keymap.c: Remove all NS-specific code.
12617 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12618 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12619 where_is_preferred_modifier, return a different value depending on how
12620 preferred is the binding.
12621 (where_is_internal): Adjust accordingly.
12622 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12623 Adjust to new preferred_sequence_p.
12624 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12625 * keyboard.c (parse_solitary_modifier): Not static any more.
12626 * keyboard.h (parse_solitary_modifier): Declare.
12627
12628 2008-07-16 Andreas Schwab <schwab@suse.de>
12629
12630 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12631 of easymenu.
12632
12633 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
12634
12635 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12636 that we don't move off the line.
12637
12638 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12639
12640 * keyboard.c (Qsuper): Remove.
12641 (parse_menu_item): Don't call where_is_internal specially for NS.
12642
12643 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12644
12645 * s/gnu-linux.h: Remove boilerplate comments.
12646
12647 * m/alpha.h (__ELF__): Consolidate conditions.
12648
12649 * m/m68k.h (linux): Use GNU_LINUX instead.
12650 Remove boilerplate comments.
12651
12652 * m/intel386.h: Undo refactoring from previous change.
12653 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12654 too, remove dead code.
12655 (linux): Use GNU_LINUX instead.
12656
12657 2008-07-16 Jason Rumney <jasonr@gnu.org>
12658
12659 * w32gui.h: Repeat 26 June changes lost by last change.
12660
12661 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12662
12663 * systty.h: Remove code for Aix on 386, unsupported platform.
12664
12665 * s/ms-w32.h: Remove boilerplate comments.
12666 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12667
12668 * s/gnu-linux.h (TERM): Remove support.
12669 (HAVE_SYSVIPC): Remove, unused.
12670 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12671 for this system.
12672
12673 * process.c: Remove support for IRIS, unused.
12674 Remove support for TERM, not relevant anymore.
12675
12676 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12677 used with the definition.
12678
12679 * s/aix4-2.h (static): Do not undef.
12680
12681 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12682 only used on Aix.
12683 (HAVE_SYSVIPC): Remove, unused.
12684
12685 * m/hp800.h (CANNOT_DUMP): Do not undef.
12686
12687 * m/alpha.h: Fix comment.
12688
12689 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12690 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12691 used by this configuration.
12692 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12693 * unexec.c: Remove code depending on HPUX and
12694 USG_SHARED_LIBRARIES, not used with this file. Remove code
12695 depending on IRIS, unused. Remove if 0-ed code.
12696
12697 * s/template.h: Remove comments about static.
12698
12699 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12700 Remove if 0-ed code.
12701 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12702 were the same as the default.
12703 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12704 Remove boilerplate comments.
12705 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12706 (HAVE_SYSVIPC): Remove, unused.
12707 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12708
12709 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12710 Remove boilerplate comments.
12711 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12712 Remove boilerplate comments.
12713 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12714 Remove boilerplate comments.
12715 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12716
12717 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12718 USG systems which do not use DATA_SEG_BITS.
12719 Refactor code. Remove boilerplate comments.
12720
12721 * m/ibms390.h:
12722 * m/m68k.h:
12723 * s/bsd-common.h:
12724 * s/cygwin.h:
12725 * s/darwin.h:
12726 * s/freebsd.h:
12727 * s/gnu.h:
12728 * s/msdos.h: Remove boilerplate comments.
12729
12730 * m/iris4d.h: Remove boilerplate comments and code for systems that
12731 do not use this file.
12732 (IRIS_4D): Remove, unused.
12733
12734 * m/mips.h: Remove boilerplate comments and code for systems that
12735 do not use this file.
12736 (SIGN_EXTEND_CHAR):
12737 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12738 * unexmips.c: Remove file, unused.
12739
12740 * editfns.c (Fuser_full_name): Replace the only use of
12741 USER_FULL_NAME with its value.
12742 * config.in: Regenerate.
12743
12744 2008-07-16 David Reitter <david.reitter@gmail.com>
12745
12746 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12747 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12748
12749 2008-07-16 Glenn Morris <rgm@gnu.org>
12750
12751 * emacs.c (system-type): Doc fix.
12752
12753 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12754
12755 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12756 If the cache doesn't work, let's fix it, rather than work around it.
12757
12758 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12759
12760 * Makefile.in: Correct additions for nsfont.o in last commit.
12761 * nsfont.m: New file (forgot last commit).
12762
12763 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12764
12765 * callproc.c (set_initial_environment): Initialize
12766 Vprocess_environment under CANNOT_DUMP (fixes crash when
12767 batch-compiling for bootstrap).
12768
12769 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12770 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12771
12772 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12773 CANNOT_DUMP case -- fix crash due to different init order.
12774
12775 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12776
12777 Changes and additions for NeXTstep windowing system (Cocoa and
12778 GNUstep) support.
12779
12780 * Makefile.in:
12781 * config.in: Support defines and build commands for NS port.
12782 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12783 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12784 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12785 windowing.
12786 (struct face): Add synth_ital field.
12787 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12788 (init_display): Initialize Vinitial_window_system to "ns" when so
12789 compiled.
12790 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12791 (display_arg): Use under NS.
12792 (main): Under NS, allocate autorelease pool and handle command line
12793 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12794 (standard_args): Add NS-specific args.
12795 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12796 * font.c (DEFAULT_ENCODING): New variable.
12797 (font_find_for_lface): Use it.
12798 (syms_of_font): Load syms_of_nsfont under NS.
12799 * font.h: Declare nsfont_driver when compiled under NS.
12800 * fontset.c: When compiling under NS, include nsterm.h.
12801 (fontset_from_font): Autoconstruct fontset under NS.
12802 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12803 symbol, document and use it.
12804 (do_switch_frame): When for_deletion under Cocoa, add
12805 Fraise_frame(Qnil).
12806 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12807 (x_get_arg): Allow "yes" and "no" as boolean values.
12808 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12809 Qright under Cocoa.
12810 (focus-follows-mouse): Default to 0 under NS.
12811 * frame.h (enum output_method): Add output_ns.
12812 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12813 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12814 (FRAME_WINDOW_P): NS-specific definition.
12815 * fringe.c (max_used_fringe_bitmap): Make public.
12816 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12817 (getloadavg): Use NeXT code under descendant OS's.
12818 * image.c (includes and header section, x_create_bitmap_from_data)
12819 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12820 (image_background_transparent, x_clear_image_1)
12821 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12822 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12823 (x_to_xcolors, x_from_xcolors, x_disable_image)
12824 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12825 other GUIs, including XPM support using code originally written for
12826 Carbon GUI.
12827 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12828 using NS API.
12829 (image_ascent): Use font metrics macros instead of direct struct field
12830 access.
12831 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12832 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12833 Also, handle NS as GTK for menu bar purposes.
12834 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12835 toolkit where they differ.
12836 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12837 use cachelist, still needed under NS.
12838 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12839 (struct widget_value): Define it here for menu.c.
12840 * keymap.c (includes): Include modifier internals.
12841 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12842 NS.
12843 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12844 support for preferring sequences using certain modifiers, specified by
12845 the FIRSTONLY argument.
12846 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12847 under NS GNUstep implementation.
12848 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12849 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12850 * menu.c: Include nsterm.h under NS.
12851 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12852 (free_menubar_widget_tree_value, update_submenu_strings)
12853 (find_and_call_menu_selection): Treat NS as X and NT.
12854 (find_and_return_menu_selection): New function, used for popup menus.
12855 * nsgui.h:
12856 * nsterm.h:
12857 * nsfns.m:
12858 * nsimage.m:
12859 * nsmenu.m:
12860 * nsselect.m:
12861 * nsterm.m: New files.
12862 * process.c (wait_reading_process_output): Under NS, call ns_select()
12863 instead of plain select().
12864 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12865 beginning of buffer.
12866 * sysselect.h (init_process): Rename when compiling under Cocoa to
12867 avoid name conflict.
12868 * termhooks.h (display_info): Add ns_display_info to union.
12869 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12870 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12871 COCOA environment.
12872 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12873 unexec() signature. (Note, this will dump, but the resulting file
12874 crashes; unexosx is used instead; keeping around for reference and
12875 possible aid in getting dump working under GNUstep.)
12876 * w32gui.h (button_type, widget_value): Remove definitions (now in
12877 keyboard.h).
12878 * window.c: Include nsterm.h when compiling under NS.
12879 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12880 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12881 other GUI windowing systems.
12882 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12883 GTK.
12884 (x_consider_frame_title): Under NS, set icon type and frame
12885 modified-state indicator; use ns_set_name_as_filename() when using
12886 formatted title.
12887 (update_window_cursor): Make public when compiling under NS.
12888 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12889 (hourglass_atimer, Vhourglass_delay
12890 * xfaces.c (header section, init_frame_faces, clear_font_table)
12891 (defined_color, unload_color, x_face_list_fonts)
12892 (prepare_face_for_display): Add NS support parallel to other GUIs.
12893 Emulate GCs like other non-X GUIs.
12894 (split_font_name): Don't lowercase font name under NS.
12895 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12896 under NS.
12897 * s/darwin.h: Add support for compilation under NS.
12898
12899 2008-07-15 Jason Rumney <jasonr@gnu.org>
12900
12901 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12902 (w32_show_hourglass): Rename from show_hourglass.
12903 (w32_hide_hourglass): Rename from hide_hourglass.
12904 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12905 (Vhourglass_delay): Declare extern.
12906 (hourglass_started): Remove.
12907
12908 * xdisp.c (Vhourglass_delay): Remove static.
12909 (hourglass_started, start_hourglass, cancel_hourglass):
12910 Don't include these versions on WINDOWSNT.
12911
12912 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12913
12914 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12915 variables (formerly in xfns.c).
12916 (show_hourglass, hide_hourglass): New prototypes (same).
12917 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12918 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12919 in xfns.c).
12920 (syms_of_xdisp): Declare/initialize display-hourglass,
12921 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12922 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12923 formerly in xfns.c.
12924 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12925 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12926 (start_hourglass, cancel_hourglass): Remove.
12927 (show_hourglass, hide_hourglass): Remove prototypes and static
12928 modifiers.
12929 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12930 hourglass_atimer, hourglass_shown_p declaration/initialization.
12931 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12932 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12933 (start_hourglass, cancel_hourglass): Remove.
12934 (show_hourglass, hide_hourglass): Remove prototypes and static
12935 modifiers.
12936 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12937 hourglass_atimer, hourglass_shown_p declaration/initialization.
12938 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12939 (DEFAULT_HOURGLASS_DELAY): Remove.
12940 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12941 hourglass_shown_p declaration/initialization.
12942
12943 2008-07-14 Jason Rumney <jasonr@gnu.org>
12944
12945 * w32fns.c (w32_get_arg): Remove wrapper function.
12946 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12947 directly.
12948 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12949
12950 2008-07-14 Kenichi Handa <handa@m17n.org>
12951
12952 * xfont.c (xfont_open): Add workaround for X's bug.
12953
12954 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12955
12956 * fontset.c: Include <stdio.h> unconditionally.
12957
12958 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
12959
12960 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12961 for filtering.
12962
12963 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12964
12965 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12966
12967 * m/macppc.h:
12968 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12969
12970 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
12971 (SPECIAL_EMACS_INT):
12972 * m/ia64.h (SPECIAL_EMACS_INT):
12973 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12974 * s/gnu.h (NLIST_STRUCT):
12975 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12976 * s/gnu-linux.h (LINUX):
12977 * s/msdos.h (HAVE_FACES):
12978 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12979
12980 * systty.h:
12981 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12982 anymore.
12983
12984 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12985
12986 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12987 always defined as int.
12988
12989 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12990 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12991 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12992 * s/freebsd.h (HAVE_WAIT_HEADER):
12993 * s/bsd-common.h (HAVE_UNION_WAIT):
12994 * s/aix4-2.h (HAVE_WAIT_HEADER):
12995 * m/mips.h (HAVE_UNION_WAIT):
12996 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12997 (COFF, static): Do not define, they are undefined later in the file.
12998
12999 * process.c (update_status): Don't use a union.
13000 (status_convert):
13001 (sigchld_handler): Use int instead of WAITTYPE.
13002
13003 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
13004
13005 * indent.c (Fvertical_motion): Restore hscroll before moving to
13006 goal column.
13007
13008 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13009
13010 * lisp.h: Remove left over code.
13011
13012 2008-07-11 Andreas Schwab <schwab@suse.de>
13013
13014 * lisp.h: Fix logic in last change.
13015
13016 * menu.h: New file.
13017 * menu.c: Include it.
13018 * xmenu.c: Likewise.
13019 * Makefile.in: Update dependencies.
13020
13021 2008-07-11 Kenichi Handa <handa@m17n.org>
13022
13023 * fontset.c (fontset_from_font): Cancel the previous change.
13024
13025 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13026
13027 * lisp.h:
13028 * w32heap.c:
13029 * emacs.c:
13030 * alloc.c: Replace all references of NO_UNION_TYPE with
13031 USE_LISP_UNION_TYPE.
13032
13033 * m/xtensa.h (NO_UNION_TYPE):
13034 * m/vax.h (NO_UNION_TYPE):
13035 * m/template.h (NO_UNION_TYPE):
13036 * m/sparc.h (NO_UNION_TYPE):
13037 * m/mips.h (NO_UNION_TYPE):
13038 * m/macppc.h (NO_UNION_TYPE):
13039 * m/m68k.h (NO_UNION_TYPE):
13040 * m/iris4d.h (NO_UNION_TYPE):
13041 * m/intel386.h (NO_UNION_TYPE):
13042 * m/ibms390x.h (NO_UNION_TYPE):
13043 * m/ibms390.h (NO_UNION_TYPE):
13044 * m/ibmrs6000.h (NO_UNION_TYPE):
13045 * m/ia64.h (NO_UNION_TYPE):
13046 * m/hp800.h (NO_UNION_TYPE):
13047 * m/arm.h (NO_UNION_TYPE):
13048 * m/amdx86-64.h (NO_UNION_TYPE):
13049 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13050 defining it the same.
13051
13052 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
13053
13054 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13055
13056 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13057
13058 * fileio.c:
13059 * sysdep.c:
13060 * systty.h:
13061 * m/ibmrs6000.h:
13062 * m/iris4d.h:
13063 * s/aix4-2.h:
13064 * s/freebsd.h:
13065 * s/gnu-linux.h:
13066 * s/hpux10-20.h:
13067 * s/hpux11.h:
13068 * s/netbsd.h:
13069 * s/sol2-3.h:
13070 * s/sol2-4.h:
13071 * s/sol2.h:
13072 * s/usg5-4.h:
13073 * s/vms.h: Remove references to unused variables.
13074
13075 2008-07-10 Andreas Schwab <schwab@suse.de>
13076
13077 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13078 pattern before matching the generic family.
13079
13080 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13081
13082 * unexec.c:
13083 * s/vms.h:
13084 * s/usg5-4-2.h:
13085 * s/sol2-5.h:
13086 * s/freebsd.h:
13087 * s/darwin.h: Remove dead code.
13088
13089 * m/template.h:
13090 * m/sparc.h:
13091 * m/mips.h:
13092 * m/m68k.h:
13093 * m/iris4d.h:
13094 * m/intel386.h:
13095 * m/ibms390x.h:
13096 * m/ibms390.h:
13097 * m/ia64.h:
13098 * m/hp800.h:
13099 * m/arm.h:
13100 * m/amdx86-64.h: Remove dead code and references to unused
13101 and compiler defined symbols.
13102
13103 * unexmips.c:
13104 * unexelf.c: Remove references to desupported systems.
13105
13106 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13107
13108 * m/powermac.h: Remove boilerplate comments.
13109 (NO_REMAP): Remove unused definition.
13110
13111 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13112 define them.
13113
13114 2008-07-10 Kenichi Handa <handa@m17n.org>
13115
13116 * xfont.c (xfont_open): Log the reason of failure.
13117
13118 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13119
13120 * fontset.c (fontset_get_font_group):
13121 * font.c (font_check_otf): Specify argument types.
13122
13123 2008-07-09 Kenichi Handa <handa@m17n.org>
13124
13125 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13126 non-ASCII char is found.
13127
13128 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13129 (reorder_font_vector): Change the arg preferred_family to font.
13130 Prefer the spec matching with font.
13131 (fontset_get_font_group): New function.
13132 (fontset_find_font): Change the format of an element of a realized
13133 fontset. Use fontset_get_font_group.
13134 (fontset_font): Try the current fontset, the default fontset, the
13135 fallbacks of the current fontset, and the fallbacks of the default
13136 fontset in this order.
13137 (face_for_char): Delete the shortcut to use the current font.
13138 (fontset_from_font): Don't set fonts for Latin in the fontset.
13139
13140 * font.h (font_make_object, font_match_p): Adjust prototypes.
13141
13142 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13143
13144 * font.c (font_make_object): New arg entity and pixelsize.
13145 (font_check_otf_features, font_check_otf): New functions.
13146 (font_match_p): Check :lang, :script, and :otf properties.
13147
13148 * xfont.c (xfont_open): Adjust it for the change of
13149 font_make_object.
13150 (xfont_text_extents): Fix initial setting of metrics.
13151
13152 * ftfont.c (struct ftfont_info): New member index, delete member
13153 fc_charset_idx. Make the member order compatible with struct
13154 xftfont_info.
13155 (fc_charset_table): Change charset names to registry names.
13156 (ftfont_pattern_entity): Delete the args registry and
13157 fc_charset_idx. Change the value of :font-entity property
13158 to (FONTNAME . INDEX). Always set :registry property to
13159 `iso10646-1'.
13160 (struct ftfont_cache_data): New struct.
13161 (ftfont_lookup_cache): New arg for_face.
13162 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13163 (ftfont_driver): Set the member otf_capability.
13164 (ftfont_get_charset): Adjust it for the change of
13165 fc_charset_table.
13166 (OTF_TAG_SYM): New macro.
13167 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13168 for the change of fc_charset_table.
13169 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13170 ftfont_pattern_entity. Add FC_INDEX to objset.
13171 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13172 and ftfont_pattern_entity.
13173 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13174 font_make_object, struct ftfont_info.
13175 (ftfont_has_char): Use ftfont_get_fc_charset.
13176 (ftfont_otf_features, ftfont_otf_capability): New functions.
13177 (ftfont_shape): Use ftfont_get_otf.
13178 (ftfont_text_extents): Fix initial setting of metrics.
13179
13180 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13181 member order compatible with struct ftfont_info.
13182 (xftfont_open): Add FC_CHARSET to the pattern. Set
13183 xftfont_info->ft_size. Don't unlock the face. Check BDF
13184 properties if appropriate.
13185 (xftfont_close): Unlock the face.
13186 (xftfont_anchor_point, xftfont_shape): Deleted.
13187 (syms_of_xftfont): Don't set members anchor_point and shape of
13188 xftfont_driver.
13189
13190 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13191 font_make_object.
13192
13193 * w32font.c (w32font_open): Adjust it for the change of
13194 font_make_object.
13195 (w32font_open_internal): Don't set properties of font_object here.
13196
13197 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13198
13199 * macfns.c (x_create_tip_frame):
13200 * w32fns.c (x_create_tip_frame):
13201 * xfns.c (x_create_tip_frame): Pass parameter argument to
13202 face-set-after-frame-default.
13203
13204 * xfaces.c (Finternal_merge_in_global_face): Save merged
13205 attributes for the default face back into the face vector.
13206
13207 2008-07-08 Andreas Schwab <schwab@suse.de>
13208
13209 * fontset.h: Declare fontset_from_font. Don't declare
13210 new_fontset_from_font and fontset_from_font_name.
13211 * xterm.c: Include "fontset.h".
13212 * Makefile.in (xterm.o): Update dependencies.
13213
13214 2008-07-08 Glenn Morris <rgm@gnu.org>
13215
13216 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13217 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13218
13219 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13220
13221 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13222 (x_set_frame_parameters): Don't bind it.
13223
13224 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13225
13226 * w32fns.c (map_w32_filename): Declare extern.
13227
13228 2008-07-07 Jason Rumney <jasonr@gnu.org>
13229
13230 * w32term.c (WS_EX_LAYERED): Define if not already.
13231
13232 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13233
13234 * xfaces.c (set_font_frame_param): Don't try to set the font
13235 parameter if it is still unspecified in the lface.
13236
13237 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13238
13239 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13240 face if it didn't already exist.
13241
13242 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13243
13244 2008-07-05 Andreas Schwab <schwab@suse.de>
13245
13246 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13247
13248 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13249
13250 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13251 word-wrapping.
13252 (IT_DISPLAYING_WHITESPACE): New macro.
13253 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13254 when word-wrapping. Simplify word-wrapping logic. Use correct
13255 pixel positions when saving copies of the iterator.
13256 (display_line): Use proper wrap point if the last character on a
13257 line was preceded by whitespace.
13258
13259 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13260
13261 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13262
13263 2008-07-04 Kenichi Handa <handa@m17n.org>
13264
13265 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13266
13267 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13268
13269 2008-07-02 Jason Rumney <jasonr@gnu.org>
13270
13271 * xfns.c (syms_of_xfns): Only define x-select-font when both
13272 HAVE_FREETYPE and USE_GTK.
13273
13274 * xdisp.c (next_element_from_display_vector): Move assignment out
13275 of if statement.
13276
13277 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13278
13279 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13280
13281 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13282 (syms_of_fileio): Initialize and export them.
13283 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13284
13285 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13286 (Fsystem_move_file_to_trash): New function.
13287 (syms_of_w32fns): Export it to lisp.
13288
13289 2008-07-01 Jason Rumney <jasonr@gnu.org>
13290
13291 * w32font.c (w32font_text_extents): Don't count overhang as part
13292 of width.
13293
13294 2008-06-30 Miles Bader <miles@gnu.org>
13295
13296 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13297 Add `avoid_cursor_p' field.
13298
13299 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13300 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13301 (append_glyph, append_composite_glyph, produce_image_glyph)
13302 (append_stretch_glyph): Initialize avoid_cursor_p.
13303 (get_it_property): Rename from `get_line_height_property'.
13304 (x_produce_glyphs): Use get_it_property.
13305 (handle_line_prefix, push_display_prop): New functions.
13306 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13307 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13308 New variables.
13309 (syms_of_xdisp): Initialize them.
13310
13311 2008-06-30 Kenichi Handa <handa@m17n.org>
13312
13313 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13314 XftDefaultSubstitute (they are called in XftFontMatch).
13315 (xftfont_open): Fix args to ftfont_font_format.
13316
13317 * ftfont.c (fc_charset_table): New member lang.
13318 (ftfont_resolve_generic_family): New arg pattern.
13319 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13320 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13321 (ftfont_open): Fix args to ftfont_font_format.
13322 (ftfont_font_format): New arg filename.
13323
13324 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13325
13326 * xfaces.c (Finternal_merge_in_global_face): If default face was
13327 modified, realize it again. Update the font face attribute.
13328
13329 2008-06-29 Jason Rumney <jasonr@gnu.org>
13330
13331 * w32term.c (x_set_frame_alpha): Fix logic.
13332
13333 2008-06-29 Kenichi Handa <handa@m17n.org>
13334
13335 * fontset.c (Finternal_char_font): Return font-object instead of
13336 font-name.
13337
13338 * composite.c (get_composition_id): Fix the width calculation for TAB.
13339
13340 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13341
13342 * indent.c (Fvertical_motion): Properly handle float column arg.
13343
13344 2008-06-28 Jason Rumney <jasonr@gnu.org>
13345
13346 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13347 (pfnSetLayeredWindowAttributes): New function pointer.
13348 (w32_initialize): Initialize it when supported.
13349 (x_set_frame_alpha): New function.
13350
13351 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13352 (w32_frame_parm_handlers): Set alpha handler.
13353
13354 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13355
13356 2008-06-27 Jason Rumney <jasonr@gnu.org>
13357
13358 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13359 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13360 (w32_to_x_charset, x_to_w32_charset)
13361 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13362 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13363 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13364 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13365 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13366 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13367 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13368 (Qw32_charset_unicode): Remove.
13369 (syms_of_w32fns): Update for above changes.
13370
13371 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13372 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13373 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13374 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13375 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13376 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13377 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13378 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13379 (syms_of_w32font): Update for above changes.
13380
13381 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13382
13383 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13384 removed #if.
13385 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13386
13387 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13388 Eli Zaretskii <eliz@gnu.org>
13389
13390 * makefile.w32-in (LOCAL_FLAGS):
13391 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13392
13393 * sysdep.c (_spawnlp, _getpid):
13394 Declare with explicit _cdecl instead of _CRTAPI1.
13395
13396 * editfns.c (Fget_internal_run_time):
13397 Check for WINDOWSNT with #ifdef, not #if.
13398
13399 2008-06-26 Jason Rumney <jasonr@gnu.org>
13400
13401 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13402
13403 * w32term.c (x_draw_glyph_string_foreground)
13404 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13405 Use FONT_HANDLE macro.
13406 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13407
13408 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13409 (uniscribe_encode_char): Use FONT_HANDLE macro.
13410
13411 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13412 (w32font_text_extents): Use precast w32_font.
13413 (w32font_close): Free cached metrics.
13414 (w32font_open_internal): Allocate space for name on stack.
13415
13416 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13417
13418 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13419
13420 2008-06-26 Jason Rumney <jasonr@gnu.org>
13421
13422 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13423 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13424
13425 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13426
13427 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13428
13429 2008-06-26 Jason Rumney <jasonr@gnu.org>
13430
13431 * w32bdf.c, w32bdf.h: Remove obsolete files.
13432
13433 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13434
13435 * w32gui.h: Don't include w32bdf.h.
13436 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13437 Remove obsolete font support.
13438
13439 * w32font.h (struct w32font_info): Remove compat_w32_font.
13440 Add hfont member.
13441 (FONT_COMPAT): Remove obsolete macro.
13442
13443 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13444 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13445 (w32font_open_internal): Remove compat code. Set new hfont member.
13446 (Fx_select_font): Use new hfont member.
13447
13448 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13449 (uniscribe_encode_char): Use new hfont member.
13450
13451 * w32term.c (x_draw_glyph_string_foreground)
13452 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13453 (x_draw_glyph_string): Use metrics in w32font_info.
13454
13455 2008-06-26 Kenichi Handa <handa@m17n.org>
13456
13457 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13458
13459 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13460
13461 * unexnext.c:
13462 * m/ews4800.h:
13463 * m/hp9000s300.h:
13464 * m/ibm370aix.h:
13465 * m/mips-siemens.h:
13466 * m/ncr386.h:
13467 * m/next.h:
13468 * m/pmax.h:
13469 * m/powerpcle.h:
13470 * m/tandem-s2.h:
13471 * s/386bsd.h:
13472 * s/bsd386.h:
13473 * s/bsd4-1.h:
13474 * s/bsd4-2.h:
13475 * s/bsdos2-1.h:
13476 * s/bsdos2.h:
13477 * s/bsdos3.h:
13478 * s/bsdos4.h:
13479 * s/nextstep.h:
13480 * s/ultrix4-3.h:
13481 * s/usg5-0.h:
13482 * s/usg5-2-2.h:
13483 * s/usg5-2.h:
13484 * s/usg5-4-3.h:
13485 * s/ux4800.h:
13486 * s/uxpds.h:
13487 * s/uxpv.h: Remove support for obsolete systems.
13488 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13489 Remove, insert contents in s/hpux10-20.h.
13490 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13491 Remove, insert contents in s/aix4-2.h.
13492 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13493 * s/bsd4-3.h: Rename to ...
13494 * s/bsd-common.h: ... this.
13495 * data.c:
13496 * doc.c:
13497 * ecrt0.c:
13498 * emacs.c:
13499 * fileio.c:
13500 * floatfns.c:
13501 * keyboard.c:
13502 * mem-limits.h:
13503 * print.c:
13504 * process.c:
13505 * sysdep.c:
13506 * syssignal.h:
13507 * systty.h:
13508 * syswait.h:
13509 * term.c:
13510 * unexec.c:
13511 * unexelf.c:
13512 * unexhp9k800.c:
13513 * m/hp800.h:
13514 * m/ibmrs6000.h:
13515 * m/mips.h:
13516 * m/vax.h:
13517 * s/darwin.h:
13518 * s/freebsd.h:
13519 * s/gnu.h:
13520 * s/ms-w32.h:
13521 * s/msdos.h:
13522 * s/netbsd.h:
13523 * s/template.h: Remove references to obsolete variables.
13524
13525 * Makefile.in: Add dependencies for all unexec files.
13526 (admindir): Remove unused variable.
13527 (UNEXEC_SRC): Remove references.
13528
13529 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * xfns.c (x_default_font_parameter): If Xft is available, first
13532 try Monospace-12 for the default font.
13533
13534 2008-06-25 Jason Rumney <jasonr@gnu.org>
13535
13536 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13537
13538 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13539
13540 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13541
13542 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13543
13544 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13545
13546 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13547 <scroll-conservatively>: Fix typo in docstring.
13548
13549 * xselect.c (Fx_send_client_event): Doc fix.
13550
13551 2008-06-25 Kenichi Handa <handa@m17n.org>
13552
13553 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13554
13555 * font.c (font_parse_fcname): Remove unused variables.
13556 (font_sort_entites): Delete the arg SPEC. Caller changed.
13557 Fix for the case of ! best_only.
13558 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13559
13560 * lisp.h (Fstring_to_unibyte): EXFUN it.
13561
13562 * character.h (str_to_unibyte): Extern it.
13563
13564 * character.c (str_to_unibyte): New function.
13565
13566 * fns.c (Fstring_to_unibyte): New function.
13567 (syms_of_fns): Defsubr it.
13568
13569 2008-06-24 Kenichi Handa <handa@m17n.org>
13570
13571 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13572 DPI too.
13573 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13574
13575 2008-06-24 Andreas Schwab <schwab@suse.de>
13576
13577 * Makefile.in (${lispsource}loaddefs.el): Rename from
13578 ../lisp/loaddefs.el.
13579 (bootstrap-clean): Do what distclean does but don't remove
13580 Makefile.
13581 (distclean): Depend on bootstrap-clean and remove Makefile.
13582
13583 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
13584
13585 * buffer.h (struct buffer): New member word_wrap.
13586
13587 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13588 word-wrap.
13589 (init_buffer_once): Initialize them.
13590
13591 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13592 line_wrap enum possessing three possible values.
13593
13594 * termopts.h: Replace truncate_partial_width_windows with
13595 Vtruncate_partial_width_windows.
13596
13597 * dispnew.c (direct_output_for_insert): Avoid direct output when
13598 inserting a space with word wrap on.
13599
13600 * indent.c (compute_motion): Obey integer values of
13601 truncate-partial-width-windows.
13602
13603 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13604 replacing truncate_partial_width_windows.
13605 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13606 truncate only if the window width is below that integer.
13607 (start_display, resize_mini_window, produce_stretch_glyph)
13608 (display_string, move_it_in_display_line_to): Use line_wrap.
13609 (back_to_previous_visible_line_start, reseat_1): Reset
13610 string_from_display_prop_p.
13611 (display_line): Extend default face to end of line when wrapping.
13612
13613 2008-06-24 Kim F. Storm <storm@cua.dk>
13614
13615 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13616 to wrap continued lines at word boundaries.
13617
13618 2008-06-24 Jason Rumney <jasonr@gnu.org>
13619
13620 * font.c (Ffont_face_attributes): Multiply pixel size before point
13621 conversion to avoid multiplying rounding error.
13622
13623 2008-06-23 Jason Rumney <jasonr@gnu.org>
13624
13625 * w32term.c (x_draw_glyph_string_background)
13626 (x_draw_glyph_string): Remove old bdf font code.
13627
13628 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13629
13630 2008-06-22 Kenichi Handa <handa@m17n.org>
13631
13632 * font.c (font_find_for_lface): Try the adstyle specified in
13633 the property of LFACE_FONT of LFACE (if any).
13634
13635 2008-06-21 Seiji Zenitani <zenitani@mac.com>
13636 Ryo Yoshitake <ryo@shiftmode.net>
13637
13638 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13639
13640 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13641
13642 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13643 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13644 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13645 (witness-emacs): Remove.
13646 (lisp, shortlisp): Move loaddefs.el earlier.
13647 (mostlyclean): Forget about witness-emacs.
13648
13649 2008-06-22 Glenn Morris <rgm@gnu.org>
13650
13651 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13652 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13653
13654 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13655
13656 * Makefile.in (PRECOMP): Remove.
13657 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13658 (witness-emacs): Run `compile-first'.
13659 (.el.elc): Use the new compile-onefile target.
13660
13661 2008-06-21 Kenichi Handa <handa@m17n.org>
13662
13663 * xftfont.c (xftfont_open): Handle QCembolden only when
13664 FC_EMBOLDEN is defined.
13665
13666 2008-06-21 Andreas Schwab <schwab@suse.de>
13667
13668 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13669 (.el.elc): Likewise.
13670
13671 2008-06-21 Miles Bader <miles@gnu.org>
13672
13673 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13674 build dir, not the lisp source dir.
13675
13676 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13677
13678 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13679 (bootstrapclean): Remove.
13680 (.el.elc): New rule.
13681 (PRECOMP): New var.
13682 (../lisp/subdirs.el): Remove.
13683 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13684 (witness-emacs): New target.
13685 (mostlyclean): Remove witness-emacs as well.
13686 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13687 Add witness-emacs dependency.
13688
13689 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
13690
13691 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13692 defined by the font.
13693
13694 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13695
13696 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13697 (bootstrap-clean): New target that keeps TAGS around.
13698 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13699 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13700
13701 2008-06-20 Jason Rumney <jasonr@gnu.org>
13702
13703 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13704 Remove obsolete font code.
13705
13706 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13707 to determine language support.
13708
13709 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13710
13711 * sysdep.c (cfsetspeed): New fun extracted from the code.
13712 (cfmakeraw): Move before first use.
13713
13714 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13715
13716 * sysdep.c (cfmakeraw): Provide fallback implementation.
13717 (serial_configure): Provide fallback implementation of cfsetspeed.
13718
13719 2008-06-20 Kenichi Handa <handa@m17n.org>
13720
13721 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13722 the pattern.
13723
13724 * fontset.c (fontset_from_font): Copy font_spec before changing
13725 the elements.
13726
13727 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13728
13729 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13730
13731 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13732 for explicit `font' parameters.
13733
13734 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13735
13736 2008-06-19 Kenichi Handa <handa@m17n.org>
13737
13738 * frame.c: Include <ctype.h>.
13739 (x_set_font_backend): Allow spacing characters in the X resource
13740 for FontBackend.
13741
13742 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13743
13744 * w32fns.c, xfns.c (Qfont_param): New var.
13745 (syms_of_w32fns): Initialize it.
13746 (x_default_font_parameter): Record explicit `font' into
13747 `font-parameter'.
13748
13749 2008-06-18 Kenichi Handa <handa@m17n.org>
13750
13751 * font.c (font_parse_xlfd): Fix previous change.
13752 (font_parse_fcname): Don't use :fc-unknown-spec.
13753 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13754 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13755 (font_add_log): Prepend the driver name to the resulting fonts.
13756
13757 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13758 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13759 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13760
13761 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13762 (QCembolden): New variables.
13763 (syms_of_xftfont): DEFSYM them.
13764 (xftfont_open): Call XftFontMatch. Don't trust the result of
13765 XftTextExtents8 if the pixel_size is less than 5.
13766
13767 2008-06-18 Andreas Schwab <schwab@suse.de>
13768
13769 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13770 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13771
13772 2008-06-18 Jason Rumney <jasonr@gnu.org>
13773
13774 * w32font.c (w32font_list, w32font_match): Add logging.
13775
13776 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13777
13778 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13779
13780 * font.c (font_parse_fcname): Store divider characters for
13781 unknown-spec list. For known key symbols, intern using correct
13782 symbol name.
13783
13784 2008-06-17 Kenichi Handa <handa@m17n.org>
13785
13786 * xfaces.c (realize_default_face): If the frame is not on window
13787 system, set the fontset of face to nil.
13788
13789 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13790
13791 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13792
13793 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13794
13795 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13796 (build_font_name_from_vector): Delete externs.
13797
13798 * xfaces.c (struct font_name): Don't declare.
13799
13800 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13801
13802 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13803
13804 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13805
13806 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13807
13808 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13809
13810 * font.c (Ffont_spec): Fix usage in docstring.
13811 (Ffont_face_attributes): Doc fix.
13812
13813 2008-06-16 Andreas Schwab <schwab@suse.de>
13814
13815 * font.c (Ffont_face_attributes): Fix definition.
13816
13817 2008-06-16 Jason Rumney <jasonr@gnu.org>
13818
13819 * font.h (font_style_symbolic_from_value): Remove.
13820
13821 * font.c (font_style_symbolic_from_value): Remove.
13822 (font_style_symbolic): Revert to pre 2008-06-13 version.
13823
13824 * w32font.c (w32_to_fc_weight): New function.
13825 (w32font_full_name, logfont_to_fcname): Use it.
13826
13827 2008-06-16 Kenichi Handa <handa@m17n.org>
13828
13829 * font.c (font_check_object): Delete it.
13830 (font_clear_cache): Check if a font-object is alive.
13831 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13832 font-object to nil.
13833 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13834 (font_at): Don't call font_check_object.
13835 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13836
13837 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13838
13839 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13840
13841 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13842
13843 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13844
13845 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
13846
13847 * font.c (font_parse_fcname): Only one decimal point.
13848 (font_unparse_fcname): Handle data in family and foundry indices
13849 as symbols, not strings.
13850 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13851
13852 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13853
13854 * font.h (font_unparse_gtkname): Add prototype.
13855
13856 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13857
13858 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13859
13860 2008-06-15 Andreas Schwab <schwab@suse.de>
13861
13862 * font.c (font_update_drivers): Fix crash when no drivers match.
13863
13864 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13865
13866 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13867 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13868
13869 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13870
13871 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13872
13873 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13874
13875 * process.c (Fserial_process_configure, Fprocess_send_eof):
13876 Use EQ to compare Lisp_Objects.
13877
13878 2008-06-13 Jason Rumney <jasonr@gnu.org>
13879
13880 * w32fns.c (Fw32_select_font): Remove old font API function.
13881
13882 * w32font.c (logfont_to_fcname): New function.
13883 (Fx_select_font): New font dialog function compatible with
13884 GTK/fontconfig version.
13885
13886 * font.c (font_style_symbolic_from_value): New function.
13887 (font_style_symbolic): Use it.
13888
13889 * font.h (font_style_symbolic_from_value): Declare new function.
13890
13891 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
13892
13893 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13894 <font-width-table>: Fix typos in docstrings.
13895
13896 2008-06-13 Daniel Engeler <engeler@gmail.com>
13897
13898 These changes add serial port access.
13899 * process.c: Add HAVE_SERIAL.
13900 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13901 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13902 (list_processes_1, select_wrapper, Fstop_process)
13903 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13904 (status_notify): Modify to handle serial processes.
13905 [HAVE_SERIAL] (Fserial_process_configure)
13906 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13907 New functions.
13908 * process.h (struct Lisp_Process): Add `type'.
13909 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13910 New functions.
13911 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13912 serial ports.
13913 (serial_open, serial_configure): New functions.
13914 * w32.h: Add FILE_SERIAL.
13915 (struct _child_process): Add ovl_read, ovl_write.
13916
13917 2008-06-13 Kenichi Handa <handa@m17n.org>
13918
13919 * dispextern.h (enum lface_attribute_index): New member
13920 LFACE_FOUNDRY_INDEX.
13921
13922 * font.c (font_score): Delete arg alternate_families. Check only
13923 weight, slant, width, and size. Ignore the difference of alias
13924 style symbols.
13925 (font_sort_entites): Adjust for the above change. Reflect the
13926 order of font-driver to scores.
13927 (font_list_entities): Don't check alternate_familes here.
13928 (font_clear_prop): Handle foundry.
13929 (font_update_lface): Don't parse "foundry-family" form here.
13930 Handle FONT_FOUNDRY_INDEX.
13931 (font_find_for_lface): Likewise. Handle alternate families here.
13932 If registry is nil, try iso8859-1 and ascii-0.
13933 (font_open_for_lface): Pay attention to size in ENTITY.
13934 (font_open_by_name): Simplify by calling font_load_for_lface.
13935 (free_font_driver_list): Delete it.
13936 (font_update_drivers): Preserve the order of backends.
13937 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13938 of font_score and font_sort_entites.
13939 (font_update_sort_order): Likewise.
13940
13941 * xfaces.c (LFACE_FOUNDRY): New macro.
13942 (check_lface_attrs): Check foundry.
13943 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13944 (merge_face_vectors): Check foundry.
13945 (merge_face_ref): Likewise.
13946 (Finternal_set_lisp_face_attribute): Likewise.
13947 (x_update_menu_appearance): Likewise.
13948 (Finternal_get_lisp_face_attribute): Likewise.
13949 (lface_hash): Likewise.
13950 (lface_same_font_attributes_p): Likewise.
13951 (x_supports_face_attributes_p): Likewise.
13952 (tty_supports_face_attributes_p): Likewise.
13953 (Finternal_set_alternative_font_family_alist): Intern strings.
13954 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13955 (realize_default_face): Set LFACE_FOUNDRY (lface).
13956
13957 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13958 font-driver at first.
13959
13960 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13961
13962 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13963
13964 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13965
13966 2008-06-12 Jim Meyering <meyering@redhat.com>
13967
13968 Make unexec_free handle NULL the same way free does.
13969 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13970
13971 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13972
13973 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13974 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13975 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13976 (WEAK_ALIAS): Simplify.
13977 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13978 when searching a unibyte buffer.
13979
13980 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
13981
13982 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13983
13984 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
13985
13986 * w32font.c: Include ctype.h.
13987
13988 2008-06-11 Jason Rumney <jasonr@gnu.org>
13989
13990 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13991 misreported as space.
13992 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13993 as aliases for registry iso10646-1.
13994
13995 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13996
13997 * buffer.c (clone_per_buffer_values): Skip `name'.
13998
13999 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
14000
14001 * font.c (font_parse_fcname): Fix last change; accept decimal
14002 points in font size.
14003
14004 2008-06-10 Jason Rumney <jasonr@gnu.org>
14005
14006 * w32uniscribe.c (add_opentype_font_name_to_list):
14007 Skip non unicode fonts.
14008
14009 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14010
14011 * xfns.c (Fx_font_dialog): New function.
14012
14013 * gtkutil.c (xg_dialog_response_cb): Rename from
14014 xg_file_response_callback.
14015 (pop_down_dialog): Rename from pop_down_file_dialog.
14016 (xg_get_file_name): Callers changed.
14017 (xg_get_font_name): New function.
14018
14019 * gtkutil.h (xg_get_font_name): Insert prototype.
14020
14021 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14022
14023 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14024 x_underline_minimum_display_offset.
14025 (syms_of_xdisp): Declare it here rather than in xterm.c.
14026 * dispextern.h (underline_minimum_offset): Declare it.
14027 * w32term.c (x_draw_glyph_string): Use it.
14028 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14029 (syms_of_xterm): Don't declare it any more.
14030 (x_draw_glyph_string): Adjust to the new name.
14031
14032 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
14033
14034 * xterm.c (x_underline_minimum_display_offset): New var.
14035 (x_draw_glyph_string): Use it.
14036 (syms_of_xterm): Declare it.
14037
14038 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
14039
14040 * font.c (font_parse_fcname): Accept GTK-style font names too.
14041
14042 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14043
14044 * dired.c (file_name_completion): Don't return t if the match is exact
14045 but with different capitalization.
14046 * minibuf.c (Ftry_completion): Simplify.
14047
14048 * window.c (Vwindow_point_insertion_type): New var.
14049 (set_window_buffer): Use it.
14050 (syms_of_window): Init and export it to Lisp.
14051
14052 2008-06-10 Kenichi Handa <handa@m17n.org>
14053
14054 * font.h (font_intern_prop): Prototype adjusted.
14055
14056 * font.c (font_intern_prop): New arg force_symbol.
14057 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14058 Adjust for the change of font_intern_prop.
14059
14060 * ftfont.c (ftfont_pattern_entity):
14061 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14062 (w32_registry):
14063 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14064 the change of font_intern_prop.
14065
14066 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
14067
14068 * w32menu.c (digest_single_submenu): Declare extern.
14069
14070 2008-06-09 Jason Rumney <jasonr@gnu.org>
14071
14072 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14073
14074 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14075 (parse_single_submenu): Remove.
14076 (digest_single_submenu): Remove.
14077 (syms_of_w32menu): Don't initialise variables that have moved
14078 to menu.c.
14079 (set_frame_menubar): Sync with version in xmenu.c.
14080 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14081
14082 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14083 Make static again.
14084
14085 2008-06-09 Jason Rumney <jasonr@gnu.org>
14086
14087 Changes to w32 files related to the move of common menu code
14088 to menu.c on 2008-06-08 by Chong Yidong.
14089
14090 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14091 defs to w32gui.h.
14092 (single_keymap_panes, push_menu_item, push_menu_pane):
14093 Make globally visible.
14094
14095 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14096 (local_free, malloc_widget_value, free_widget_value)
14097 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14098 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14099 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14100 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14101 (menu_items, menu_items_allocated, menu_items_used)
14102 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14103 (init_menu_items, finish_menu_items, discard_menu_items)
14104 (grow_menu_items, push_submenu_start, push_submenu_end)
14105 (push_left_right_boundary, push_menu_pane, push_menu_item)
14106 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14107 (free_menubar_widget_tree_value, parse_single_submenu)
14108 (update_submenu_strings): Remove functions.
14109 (xmalloc_widget_value): Remove and declare extern.
14110
14111 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14112 (OBJ1): Build it.
14113
14114 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14115 (local_heap, local_alloc, local_free, malloc_widget_value)
14116 (free_widget_value): Define here.
14117
14118 2008-06-09 Kenichi Handa <handa@m17n.org>
14119
14120 * font.h (Qascii_0): Extern it.
14121
14122 * font.c (Qascii_0): New variable.
14123 (syms_of_font): DEFSYM it.
14124 (font_open_by_name): If the registry "iso8859-1" fails, try also
14125 "ascii-0".
14126
14127 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14128
14129 2008-06-08 Kenichi Handa <handa@m17n.org>
14130
14131 * .gdbinit (xfont): New command.
14132
14133 2008-06-08 Andreas Schwab <schwab@suse.de>
14134
14135 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14136 * Makefile.in (menu.o): Update dependencies.
14137
14138 * Makefile.in (obj): Always add menu.o.
14139 * emacs.c (main): Always call syms_of_menu.
14140 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14141
14142 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14143
14144 * Makefile.in: Compile menu.c.
14145
14146 * lisp.h: Declare syms_of_menu.
14147
14148 * emacs.c (main): Call syms_of_menu.
14149
14150 * keyboard.h: Relocate platform-independent menu definitions from
14151 xmenu.c.
14152
14153 * menu.c: New file. Relocate platform-independent menu
14154 definitions from xmenu.c. Suggested by Adrian Robert.
14155
14156 * xmenu.c: Remove platform-independent menu definitions.
14157 (menu_items, menu_items_inuse, menu_items_allocated)
14158 (menu_items_used, menu_items_n_panes)
14159 (menu_items_submenu_depth): Move to keyboard.h.
14160 (init_menu_items, finish_menu_items, unuse_menu_items)
14161 (discard_menu_items, restore_menu_items, save_menu_items)
14162 (grow_menu_items, push_submenu_start, push_submenu_end)
14163 (push_left_right_boundary, push_menu_pane, push_menu_item)
14164 (keymap_panes, single_keymap_panes, single_menu_item)
14165 (list_of_panes, list_of_items, find_and_call_menu_selection)
14166 (xmalloc_widget_value, free_menubar_widget_value_tree)
14167 (parse_single_submenu, digest_single_submenu)
14168 (update_submenu_strings): Move to menu.c.
14169
14170 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14171
14172 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14173
14174 2008-06-06 Miles Bader <miles@gnu.org>
14175
14176 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14177 face, not frame default.
14178
14179 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14180
14181 * window.c (pop_up_windows, pop_up_frames)
14182 (display_buffer_reuse_frames, Vpop_up_frame_function)
14183 (Vdisplay_buffer_function, Veven_window_heights)
14184 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14185 (Vspecial_display_function, Vsame_window_buffer_names)
14186 (Vsame_window_regexps, split_height_threshold)
14187 (Vsplit_window_preferred_function): Move those vars to window.el.
14188 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14189 (Fdisplay_buffer): Move those functions to window.el.
14190 (syms_of_window): Remove corresponding declarations.
14191 (display_buffer): New function.
14192 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14193 * dispnew.c (Flast_nonminibuf_frame): New function.
14194 * buffer.c (Fpop_to_buffer): Move to window.el.
14195
14196 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14197
14198 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14199
14200 2008-06-05 Kenichi Handa <handa@m17n.org>
14201
14202 * coding.c (detect_coding): Fix previous change.
14203 (detect_coding_system): Likewise.
14204
14205 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14206
14207 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14208
14209 * keymap.c (Vminibuffer_local_filename_must_match_map):
14210 Rename from Vminibuffer_local_must_match_filename_map.
14211 (syms_of_keymap):
14212 * minibuf.c (Fcompleting_read): Adjust accordingly.
14213 * commands.h: Rename declaration as well.
14214
14215 2008-06-05 Kenichi Handa <handa@m17n.org>
14216
14217 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14218 family name.
14219 (Ffont_put): Likewise.
14220
14221 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14222 current font-spec.
14223
14224 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14225 is unspecified.
14226
14227 * xfaces.c (realize_x_face): If the font-related face attributes
14228 are the same as those of default face, realize a new fontset from
14229 default->fontset.
14230 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14231
14232 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14233
14234 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14235 (move_it_in_display_line): New wrapper.
14236
14237 * window.c (window_scroll_pixel_based_preserve_x)
14238 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14239 (window_scroll_pixel_based, window_scroll_line_based):
14240 Use them to preserve column positions.
14241 (syms_of_window): Initialize them.
14242
14243 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14244 (HPOS . VPOS) pair.
14245
14246 * dispextern.h (move_it_in_display_line): Declare.
14247
14248 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14249
14250 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14251 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14252 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14253
14254 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14255
14256 * window.c (Fset_window_parameter): Doc fix.
14257 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14258
14259 2008-06-04 Joakim Verona <joakim@verona.se>
14260
14261 * window.h (struct window): Add new member window_parameters.
14262
14263 * window.c (Fwindow_parameters, Fwindow_parameter)
14264 (Fset_window_parameter): New defuns.
14265 (syms_of_window): Defsubr the new defuns.
14266 (make_window): Initialize window_parameters to nil.
14267
14268 2008-06-04 John Paul Wallington <jpw@pobox.com>
14269
14270 * eval.c (Fdefmacro): Doc fix.
14271
14272 2008-06-04 Kenichi Handa <handa@m17n.org>
14273
14274 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14275 Be sure to call setup_coding_system when we find a proper coding system.
14276 (detect_coding_system): Fix handling of coding->head_ascii.
14277
14278 2008-06-03 Andreas Schwab <schwab@suse.de>
14279
14280 * font.c (font_prop_validate_spacing): Fix last change.
14281
14282 2008-06-03 Kenichi Handa <handa@m17n.org>
14283
14284 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14285 (font_parse_fcname): Fix handling of unknown key.
14286
14287 * xfont.c (xfont_list): Try an alias.
14288
14289 * charset.c (char_charset): Return NULL if the arg charset_list is
14290 specified and C doesn't belong to any of them.
14291
14292 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14293
14294 * font.c (font_pixel_size): Don't take cdr of an integer.
14295
14296 2008-06-02 Jim Meyering <meyering@redhat.com>
14297
14298 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14299 * alloc.c (xfree): Return right away for a NULL arg.
14300 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14301 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14302 * mac.c (create_apple_event_from_event_ref): Likewise.
14303 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14304 Likewise.
14305 * doprnt.c (doprnt1): Likewise.
14306 * frame.c (frame): Likewise.
14307 * keyboard.c (wipe_kboard): Likewise.
14308 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14309 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14310 * term.c (tty_default_color_capabilities, maybe_fatal)
14311 (delete_tty): Likewise.
14312 * w16select.c (string): Likewise.
14313 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14314 * w32bdf.c (w32_free_bdf_font): Likewise.
14315 * w32fns.c (w32_unload_font): Likewise.
14316 * w32font.c (w32font_close): Likewise.
14317 * window.c (size_window): Likewise.
14318 * xselect.c (receive_incremental_selection): Likewise.
14319 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14320 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14321 * w32.c (stat): Likewise.
14322
14323 Remove useless if-before-free tests.
14324 * editfns.c (Fset_time_zone_rule): Likewise.
14325 * lread.c (nosuffix): Likewise.
14326 * ralloc.c (get_bloc): Likewise.
14327 * regex.c (reg_free): Likewise.
14328 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14329 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14330 * xsmfns.c (smc_save_yourself_CB): Likewise.
14331
14332 2008-06-02 Kenichi Handa <handa@m17n.org>
14333
14334 * font.c (font_find_for_lface): Handle float font size.
14335 (font_open_for_lface): Likewise.
14336
14337 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14338 comparing the properties.
14339
14340 2008-06-01 Jason Rumney <jasonr@gnu.org>
14341
14342 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14343 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14344 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14345 Don't add empty script list.
14346 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14347
14348 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14349
14350 * Makefile.in (dot, dotdot): Remove, update users.
14351 ".." has been used elsewhere in the file for a long time.
14352 (LIBXT_STATIC): Remove conditional based on unused variable.
14353
14354 2008-06-01 Miles Bader <miles@gnu.org>
14355
14356 * xfaces.c (Vface_remapping_alist): New variable.
14357 (syms_of_xfaces): Initialize it.
14358 (enum named_merge_point_kind): New type.
14359 (struct named_merge_point): Add `named_merge_point_kind' field.
14360 (push_named_merge_point): Make cycle detection respect different
14361 named-merge-point kinds.
14362 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14363 Remove face-name alias resolution.
14364 (lface_from_face_name): New definition using
14365 `lface_from_face_name_no_resolve'.
14366 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14367 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14368 (get_lface_attributes): New definition that layers face-remapping on
14369 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14370 (lookup_basic_face): New function.
14371 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14372 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14373 `get_lface_attributes'.
14374 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14375 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14376 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14377
14378 * xdisp.c (init_iterator): Pass base_face_id through
14379 `lookup_basic_face' when we actually use it as a face-id.
14380 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14381 DEFAULT_FACE_ID.
14382
14383 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14384 lookup the initial face-id.
14385
14386 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14387
14388 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14389
14390 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14391 (Fremove_text_properties): Fix typos in docstrings.
14392
14393 2008-05-31 Kenichi Handa <handa@m17n.org>
14394
14395 * font.c (font_list_entities): Fix the car part of data to be
14396 stored in the cache.
14397
14398 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14399
14400 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14401
14402 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14403 Add a `test' argument so another predicate than `equal' can be used.
14404 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14405 (map_char_table): Remove unused vars `c' and `i'.
14406 * lisp.h (Foptimize_char_table): Adjust declaration.
14407 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14408
14409 2008-05-30 Kenichi Handa <handa@m17n.org>
14410
14411 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14412 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14413 defined.
14414
14415 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14416
14417 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14418 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14419 frame-local settings for the same variable.
14420
14421 2008-05-30 Kenichi Handa <handa@m17n.org>
14422
14423 * fontset.c (Ffont_info): Move to font.c.
14424 (syms_of_fontset): Delete defsubr of Sfont_info.
14425
14426 * font.c (font_style_to_value, font_score): Delete casting of the
14427 args to xstcasecmp.
14428 (register_font_driver): Increment num_font_drivers only when
14429 registering the driver globally.
14430 (Ffont_info): Move from fontset.c. Handle a font object too.
14431 (syms_of_font): Defsubr Sfont_info.
14432
14433 2008-05-29 Kenichi Handa <handa@m17n.org>
14434
14435 * coding.h (enum define_coding_utf8_arg_index): New enum.
14436 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14437 coding_attr_utf_bom.
14438 (enum utf_bom_type): Rename from utf_16_bom_type.
14439 (struct utf_16_spec): Adjust for the above change.
14440 (struct coding_system): Add utf_8_bom in `spec' union.
14441
14442 * coding.c (CODING_UTF_8_BOM): New macro.
14443 (enum coding_category): Delete coding_category_utf_8, add
14444 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14445 coding_category_utf_8_sig.
14446 (CATEGORY_MASK_UTF_8): Delete it.
14447 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14448 (CATEGORY_MASK_UTF_8_SIG): New macros.
14449 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14450 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14451 CATEGORY_MASK_UTF_8_SIG.
14452 (CATEGORY_MASK_UTF_8): New macro.
14453 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14454 (detect_coding_utf_8): Check BOM.
14455 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14456 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14457 (encode_coding_utf_16): Likewise.
14458 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14459 (detect_coding, detect_coding_system): Handle utf-8-auto.
14460 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14461 (syms_of_coding): Fix setting up of Vcoding_category_table.
14462
14463 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14464
14465 * process.c (Faccept_process_output): If `millisec' is non-nil,
14466 `seconds' default to 0.
14467 (wait_reading_process_output): Also return non-nil if we read output
14468 from a non-running process.
14469
14470 2008-05-29 Jason Rumney <jasonr@gnu.org>
14471
14472 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14473 `raster' specified.
14474 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14475 in the uniscribe backend, but disallow any font that has no
14476 unicode subrange support.
14477
14478 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14479
14480 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14481 Fix typos in docstrings.
14482
14483 2008-05-29 Kenichi Handa <handa@m17n.org>
14484
14485 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14486 (Fx_family_fonts): Set frame correctly.
14487
14488 2008-05-28 Jason Rumney <jasonr@gnu.org>
14489
14490 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14491
14492 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14493
14494 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14495 calling build_annotations.
14496
14497 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14498
14499 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14500 (Fencode_coding_string):
14501 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14502 <latin-extra-code-table>: Fix typos in docstrings.
14503 (syms_of_coding) <coding-system-alist>: Doc fix.
14504 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14505
14506 2008-05-28 Kenichi Handa <handa@m17n.org>
14507
14508 * fontset.c (Ffont_info): Don't call font_close_object.
14509
14510 * font.c (font_parse_family_registry): Use Ffont_put to validate
14511 foundry and family.
14512 (font_delete_unmatched): Don't check spacing.
14513 (font_list_entities): Add spacing to the spec to list fonts.
14514
14515 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14516 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14517
14518 * coding.c (encode_coding_raw_text): Fix previous change.
14519 (encode_coding_object): When the dst_object is a buffer and is
14520 different from src_object, move gap to PT.
14521
14522 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14523
14524 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14525
14526 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14527
14528 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14529 all branches. Compute it differently.
14530
14531 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14532
14533 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14534
14535 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14536 into "else if () ... else ...".
14537
14538 2008-05-27 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32font.c (w32font_open_internal): Determine if glyph indices
14541 are likely to work here.
14542
14543 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14544
14545 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14546 draw overlap glyphs with appropriate highlighting.
14547
14548 2008-05-27 Kenichi Handa <handa@m17n.org>
14549
14550 * xfont.c (xfont_open): Fix calculation of font->average_width.
14551
14552 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14553
14554 * casefiddle.c (casify_object): Try to guess better whether the
14555 argument is a byte or a char.
14556
14557 2008-05-26 Andreas Schwab <schwab@suse.de>
14558
14559 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14560 Always send multiples of format size.
14561
14562 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14563
14564 2008-05-26 Jason Rumney <jasonr@gnu.org>
14565
14566 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14567 (compute_metrics): Don't set failure if we just cleared the cache.
14568 (w32_weight_table): Remove unused variable.
14569 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14570 backwards compatibility.
14571
14572 2008-05-25 Kenichi Handa <handa@m17n.org>
14573
14574 * w32term.c (x_draw_glyph_string):
14575 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14576
14577 * xfaces.c: Delete unused function prototypes.
14578 (xstrlwr, font_frame): Delete them.
14579 (clear_face_cache): Delete unused variable.
14580
14581 * xftfont.c (xftfont_open): Delete unused variable.
14582 If underline_thickness is not 1, adjust underline_position.
14583
14584 * ftxfont.c (ftxfont_open): Delete unused variable.
14585
14586 * fontset.c (face_for_char): Optimize for the case of no charset
14587 property.
14588
14589 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14590 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14591 (otf_open, font_otf_capability, generate_otf_features)
14592 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14593 Comment out by surrounding "#if 0" and "#endif" for the moment.
14594 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14595 (syms_of_font): Codes for accessing above commented out.
14596
14597 2008-05-24 Eli Zaretskii <eliz@gnu.org>
14598
14599 * w32proc.c: Include dispextern.h.
14600
14601 * w32.c: Include dispextern.h.
14602
14603 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
14604
14605 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14606 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14607 Fix typos in docstrings.
14608
14609 2008-05-23 Jason Rumney <jasonr@gnu.org>
14610
14611 * xsmfns.c: Remove includes that are already included by config.h.
14612
14613 2008-05-23 Kenichi Handa <handa@m17n.org>
14614
14615 * charset.c (Qemacs, charset_emacs): New variables.
14616 (char_charset): Fix for non-Unicode characters.
14617 (syms_of_charset): Define charset_emacs.
14618
14619 * w32term.c (x_draw_glyph_string): Be sure to update
14620 s->underline_thickness and s->underline_position. Be sure to draw
14621 underline within the current line area.
14622
14623 * xterm.c (x_draw_glyph_string): Be sure to update
14624 s->underline_thickness and s->underline_position. Be sure to draw
14625 underline within the current line area.
14626
14627 * fontset.c: Delete unused variables and add casting for char *
14628 throughout the file.
14629 (fontset_font): Try the fallback fonts of the current fontset
14630 before consulting the default fontset.
14631
14632 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14633
14634 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14635
14636 2008-05-22 Jason Rumney <jasonr@gnu.org>
14637
14638 * font.c: Don't include strings.h.
14639
14640 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14641
14642 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14643 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14644 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14645 to call xstrcasecmp.
14646
14647 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14648
14649 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14650
14651 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14652
14653 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14654
14655 2008-05-22 Kenichi Handa <handa@m17n.org>
14656
14657 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14658
14659 * font.c (font_prop_validate_style): Adjust for the format
14660 change of font_style_table.
14661
14662 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14663 two args.
14664
14665 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14666 two args.
14667
14668 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14669
14670 * minibuf.c (keys_of_minibuf): Delete.
14671 * lisp.h (keys_of_minibuf): Delete.
14672 * emacs.c (main): Don't call keys_of_minibuf.
14673
14674 2008-05-22 Kenichi Handa <handa@m17n.org>
14675
14676 * ftfont.c (ftfont_resolve_generic_family): Rename from
14677 ftfont_list_generic_family. Return a single family for each
14678 generic family.
14679 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14680 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14681 Call font_add_log.
14682 (ftfont_match): Call font_add_log.
14683
14684 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14685 (FONT_DEBUG): Define it.
14686 (font_add_log): Extern it.
14687 (font_assert): Rename from xassert.
14688
14689 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14690 (xfont_list_family): Call font_add_log.
14691 (xfont_match): Likewise.
14692 (memq_no_quit): Delete.
14693
14694 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14695 call of Ffont_xlfd_name.
14696
14697 * xfaces.c (struct table_entry, slant_table, weight_table)
14698 (swidth_table): Move to font.c.
14699
14700 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14701 xassert are changed to font_assert. Delete many unused variables.
14702 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14703 New variables.
14704 (struct table_entry): Move from xfaces.c and modified.
14705 (weight_table, slant_table, width_table): Move from xfaces.c and
14706 contents adjusted for the change of struct table_entry.
14707 (font_style_to_value, font_style_symbolic): Adjust for the
14708 format change of font_style_table.
14709 (font_parse_family_registry): Don't overwrite existing foundry and
14710 family of font_spec.
14711 (font_score): Fix calculation of diff for sizes.
14712 (font_sort_entites): Call font_add_log.
14713 (font_delete_unmatched): Return a newly created list.
14714 (font_list_entities): Fix previous change. Call font_add_log.
14715 (font_matching_entity, font_open_entity, font_close_entity):
14716 Call font_add_log.
14717 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14718 (Finternal_set_font_style_table): Delete.
14719 (BUILD_STYLE_TABLE): New macro.
14720 (build_style_table): New function.
14721 (Vfont_log, font_log_env_checked): New variables.
14722 (font_add_log): New function.
14723 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14724 Declare Lisp variables "font-weight-table", "font-slant-table",
14725 "font-width-table", and "font-log". Initialize font_style_table.
14726
14727 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14728
14729 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14730
14731 2008-05-21 Seiji Zenitani <zenitani@mac.com>
14732 Ryo Yoshitake <ryo@shiftmode.net>
14733
14734 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14735 (Vframe_alpha_lower_limit): New variable.
14736 (x_set_alpha): New function.
14737
14738 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14739
14740 * xfns.c (x-create-frame, Qalpha):
14741 Initialize the frame parameter `alpha'.
14742 * xterm.c (OPAQUE, OPACITY): New.
14743 (x_set_frame_alpha): New function.
14744 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14745
14746 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14747 * w32fns.c (w32_frame_parm_handlers): Likewise.
14748
14749 2008-05-20 Jason Rumney <jasonr@gnu.org>
14750
14751 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14752 truetype fonts to opentype list.
14753
14754 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14755
14756 * fontset.c (Ffontset_info): Doc fix.
14757 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14758 <ignore-relative-composition>: Fix typos in docstrings.
14759
14760 * font.c (syms-of-font) <font-encoding-alist>:
14761 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14762 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14763 (Ffont_otf_alternates): Doc fixes.
14764
14765 2008-05-20 Kenichi Handa <handa@m17n.org>
14766
14767 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14768 font.h through out the file.
14769 (FONT_DRIVERS): Rename from FONTOBJ.
14770 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14771 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14772
14773 * emacs.c (main): Call syms_of_font unconditionally.
14774
14775 * font.h (find_font_encoding): Extern it.
14776
14777 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14778 fontset.c.
14779 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14780 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14781 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14782 only when HAVE_WINDOW_SYSTEM is defined.
14783 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14784 when HAVE_WINDOW_SYSTEM is defined.
14785
14786 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14787 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14788
14789 * xfaces.c: Include font.h unconditionally.
14790 (merge_face_ref, merge_face_vectors)
14791 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14792
14793 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14794
14795 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14796 indirect_variable.
14797 * eval.c (lisp_indirect_variable): New fun.
14798 (Fuser_variable_p): Use it.
14799
14800 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14801
14802 * lisp.h (indirect_variable):
14803 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14804 Use Lisp_Symbol pointers rather than Lisp_Object.
14805 Adjust callers.
14806 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14807 To this end, change calling-convention.
14808
14809 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14810 if some non-hidden buffers are selected by string&pred.
14811
14812 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14813
14814 * process.c (wait_reading_process_output): Always check status
14815 when in batch mode.
14816
14817 2008-05-19 Kenichi Handa <handa@m17n.org>
14818
14819 * font.c (font_list_entities): Fix handling of cache.
14820 (font_matching_entity): Likewise.
14821
14822 * ftfont.c (cs_iso8859_1): Delete.
14823 (ft_face_cache): New variable.
14824 (struct ftfont_info): New member fc_charset_idx.
14825 (ftfont_build_basic_charsets): Delete.
14826 (fc_charset_table): New variable.
14827 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14828 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14829 Callers changed.
14830 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14831 (ftfont_spec_pattern): New argument fc_charset_idx.
14832 Check registry more rigidly. Change callers.
14833 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14834 change of :font-entity property of the font.
14835
14836 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14837 property of the font.
14838
14839 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
14840
14841 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14842 (Funencodable_char_position, Fcheck_coding_systems_region)
14843 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14844 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14845 (Ffind_operation_coding_system, Fset_coding_system_priority)
14846 (Fcoding_system_eol_type): Doc fixes.
14847
14848 2008-05-17 Glenn Morris <rgm@gnu.org>
14849
14850 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14851
14852 2008-05-16 Eli Zaretskii <eliz@gnu.org>
14853
14854 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14855 and st_gid.
14856
14857 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14858 HAVE_WINDOW_SYSTEM is not defined.
14859
14860 * xfaces.c (merge_face_ref, merge_face_vectors)
14861 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14862 HAVE_WINDOW_SYSTEM is defined.
14863 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14864
14865 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14866
14867 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14868
14869 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14870
14871 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14872
14873 2008-05-15 Kenichi Handa <handa@m17n.org>
14874
14875 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14876 preference.
14877
14878 2008-05-15 Glenn Morris <rgm@gnu.org>
14879
14880 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14881
14882 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
14883
14884 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14885 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14886
14887 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14888
14889 2008-05-15 Kenichi Handa <handa@m17n.org>
14890
14891 * ftfont.c (ftfont_list): Downcase family name to check generic
14892 families.
14893
14894 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14895 font-spec for QCfont value.
14896
14897 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14898 buffer. Check the return value of it.
14899
14900 2008-05-14 Jason Rumney <jasonr@gnu.org>
14901
14902 * w32term.c (w32_get_glyph_overhangs): Remove.
14903 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14904
14905 2008-05-14 Kenichi Handa <handa@m17n.org>
14906
14907 * font.c (font_prop_validate): Make nil a valid value.
14908 (font_clear_cache): Check if the cached vector of entities is nil
14909 or not.
14910
14911 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14912
14913 * emacs.c (main_thread): Conditionalize on
14914 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14915 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14916
14917 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14918 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14919 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14920
14921 2008-05-14 Kenichi Handa <handa@m17n.org>
14922
14923 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14924 has no corresponding coding system.
14925
14926 2008-05-14 Jason Rumney <jasonr@gnu.org>
14927
14928 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14929
14930 * w32font.h (w32font_open_internal): Update declaration.
14931
14932 * w32font.c (w32font_open_internal): Change last argument from
14933 w32font_info struct to font object. Fill in font object from
14934 font_entity. Get Outline metrics if possible. Use them to
14935 calculate underline position and thickness. Use xlfd name as name
14936 property. Don't set codepage.
14937 (w32font_open): Pass font_object to w32font_open_internal. Don't
14938 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14939 (w32font_draw): Use s->font.
14940 (clear_cached_metrics): Don't clear non-existent blocks.
14941
14942 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14943 font was not found.
14944 (x_draw_glyph_string): Use underline position and thickness from font.
14945
14946 * w32uniscribe.c (uniscribe_open): Pass font_object to
14947 w32font_open_internal.
14948
14949 2008-05-14 Kenichi Handa <handa@m17n.org>
14950
14951 These changes are to delete all legacy font-handling codes, and
14952 make Emacs use only font-backends.
14953
14954 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14955 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14956
14957 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14958
14959 * charset.h (Vcharset_non_preferred_head)
14960 (Vcurrent_iso639_language): Extern them.
14961
14962 * charset.c (Vcharset_non_preferred_head): New variable.
14963 (Vcurrent_iso639_language): New variable.
14964 (syms_of_charset): Declare it as a Lisp variable.
14965 (char_charset): Don't check non preferred charsets. As a last
14966 resort, return charset_unicode.
14967 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14968
14969 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14970 conditionals. Don't check enable_font_backend. Delete all codes
14971 used only when USE_FONT_BACKEND is not defined.
14972
14973 * dispextern.h (struct glyph_string): Change type of `font' to
14974 `struct font *'.
14975 (struct glyph_string): New member underline_position and
14976 underline_thickness.
14977 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14978 (struct face): Change type of `font' to `struct font *'. Remove
14979 members `font_name', `font_info_id'.
14980 (per_char_metric, encode_char): Delete externs.
14981 (calc_pixel_width_or_height): Adjust the prototype.
14982
14983 * emacs.c (enable_font_backend): Delete extern.
14984 (main): Don't set enable_font_backend. Don't check the command
14985 line argument "-disable-font-backend".
14986
14987 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14988 (enum font_property_index): New members FONT_DPI_INDEX,
14989 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14990 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14991 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14992 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14993 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14994 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14995 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14996 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14997 (struct font_spec, struct font_entity): New structs.
14998 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14999 (struct font): Many members from old "struct font_info" moved to
15000 here. Members font and entity deleted.
15001 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15002 the new font-related objects.
15003 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15004 (CHECK_FONT_GET_OBJECT): Likewise.
15005 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15006 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15007 (struct font_driver): New members case_sensitive anc check. Type
15008 of the member list and open changed.
15009 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15010 (font_symbolic_width, font_find_object, font_get_spec)
15011 (font_set_lface_from_name): Delete extern.
15012 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15013
15014 * font.c: Include <strings.h>.
15015 (enable_font_backend): Delete it.
15016 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15017 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15018 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15019 (null_string): Delete it.
15020 (null_vector): Make it static.
15021 (font_family_alist): Delete it.
15022 (Qnormal): Extern it.
15023 (QCextra, QClanguage): Delete it.
15024 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15025 (font_make_spec, font_make_entity, font_make_object)
15026 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15027 the string. Callers changed.
15028 (font_pixel_size): Adjusted for the format change of font-related
15029 objects.
15030 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15031 (font_style_to_value, font_style_symbolic): New function.
15032 (build_font_family_alist): Delete it.
15033 (font_registry_charsets): Use Fassoc_string instead of
15034 assq_no_quit.
15035 (font_prop_validate_symbol): Don't return null_string.
15036 (font_prop_validate_style): Adjusted for the change of
15037 style-related values in a font vector.
15038 (font_property_table): Delete entries for QClanguage and
15039 QCantialias, add entries for QCavgwidth.
15040 (get_font_prop_index): Delete the 2nd argument FROM.
15041 (font_prop_validate): Arguments changed.
15042 (font_put_extra): Adjusted for the change of font-related objects.
15043 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15044 (font_parse_fcname, font_unparse_fcname)
15045 (font_prepare_composition): Likewise.
15046 (font_parse_family_registry): Renamed from font_merge_old_spec.
15047 (otf_open): Delete the 1st arg entity.
15048 (font_otf_capability): Adjusted for the above change.
15049 (font_score): New arg alternate_families. Adjusted for the change
15050 of font-related objects.
15051 (font_sort_entites): New arg best_only.
15052 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15053 Delete them.
15054 (font_match_p): Check alternate families.
15055 (font_find_object): Delete it.
15056 (font_check_object): New function.
15057 (font_clear_cache): Adjusted for the change of font-related objects.
15058 (font_delete_unmatched): New arg.
15059 (font_list_entities): Call font_driver->list with a spec that
15060 doesn't specify style-related properties.
15061 (font_matching_entity): Arguments changed. Caller changed.
15062 (font_open_entity): Adjusted for the change of font-related objects.
15063 (font_close_object, font_has_char, font_encode_char)
15064 (font_get_name, font_get_spec): Likewise.
15065 (font_spec_from_name, font_clear_prop, font_update_lface):
15066 New functions.
15067 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15068 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15069 (font_at): Adjusted for the change of font-related objects.
15070 (font_range): New function.
15071 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15072 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15073 (Fcopy_font_spec, Fmerge_font_spec): New function.
15074 (Ffont_family_list): Renamed from list-families.
15075 (Finternal_set_font_style_table): Arguments changed.
15076 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15077 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15078 change of font-related objects.
15079 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15080
15081 * fontset.h (struct font_info): Delete it. Most members go to
15082 struct font.
15083 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15084 (enum FONT_SPEC_INDEX): Delete it.
15085 (font_info, list_fonts_func, load_font_func, query_font_func)
15086 (set_frame_fontset_func, find_ccl_program_func)
15087 (get_font_repertory_func, new_fontset_from_font_name): Delete
15088 externs.
15089 (fontset_from_font_name): Extern it.
15090 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15091 (FONT_INFO_FROM_FACE): Deleted.
15092 (face_for_font): Adjust prototype.
15093
15094 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15095 conditionals. Don't check enable_font_backend. Delete all codes
15096 used only when USE_FONT_BACKEND is not defined.
15097 (get_font_info_func, list_font_func, load_font_func)
15098 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15099 (get_font_repertory_func): Delete them.
15100 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15101 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15102 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15103 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15104 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15105 (fontset_compare_rfontdef): New function.
15106 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15107 rfont-defs by qsort. Adjusted for the change of font-group vector.
15108 (load_font_get_repertory): Deleted.
15109 (fontset_find_font): Use new macros to ref/set elements of
15110 font-def and rfont-def.
15111 (fontset_font): Fix the timing of remembering that no font for C.
15112 (free_face_fontset): Do nothing if the face has no fontset.
15113 (face_suitable_for_char_p): Use new macros to ref/set elements of
15114 rfont-def.
15115 (face_for_char): Likewise. Call face_for_char with font_object.
15116 (fs_load_font): Delete. Delete #pragma surrounding it.
15117 (fs_query_fontset): Use strcasecmp instead of strcmp.
15118 (generate_ascii_font_name): Adjusted for the format change of
15119 font-spec.
15120 (Fset_fontset_font): Likewise. Use new macros to set elements of
15121 font-def.
15122 (Fnew_fontset): Use font_unparse_xlfd to generate
15123 FONTSET_ASCII (fontset).
15124 (new_fontset_from_font_name): Deleted.
15125 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15126 a fontset is already created for the font. FIx updating of
15127 Vfontset_alias_alist.
15128 (fontset_ascii_font): Deleted.
15129 (Ffont_info): Adjusted for the format change of font-spec.
15130 (Finternal_char_font): Likewise.
15131 (Ffontset_info): Likewise.
15132 (syms_of_fontset): Don't check load_font_func.
15133
15134 * fns.c (internal_equal): Handle PREV_FONT.
15135
15136 * frame.h: Delete USE_FONT_BACKEND conditional.
15137
15138 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15139 conditionals. Don't check enable_font_backend. Delete all codes
15140 used only when USE_FONT_BACKEND is not defined.
15141 (x_set_font): Call x_new_font, not x_new_fontset2.
15142 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15143 already set for the frame.
15144
15145 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15146 a font-entity by font_make_entity. Use font_intern_prop instead
15147 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15148 font property. If a font is scalable, set avgwidth property to 0.
15149 Set font-entity property by font_put_extra.
15150 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15151 (ffont_driver): Adjusted for the change of struct font_driver.
15152 (ftfont_spec_pattern): New function.
15153 (ftfont_list): Return a list, not vector.
15154 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15155 (ftfont_list_family): Don't downcase names.
15156 (ftfont_free_entity): Deleted.
15157 (ftfont_open): Return a font-object. Adjusted for the change of
15158 struct font. Get underline_thickness and underline_position from
15159 font property. Don't update dpyinfo->smallest_font_height and
15160 dpyinfo->smallest_char_width.
15161 (ftfont_close): Don't free `struct font'.
15162 (ftfont_has_char): Adjusted for the format change of font-entity.
15163 (ftfont_encode_char, ftfont_text_extents): Likewise.
15164
15165 * ftxfont.c (ftxfont_list): Return a list, not vector.
15166 (ftxfont_open): Return a font-object. Adjusted for the change of
15167 struct font. Get underline_thickness and underline_position from
15168 font property. Don't update dpyinfo->smallest_font_height and
15169 dpyinfo->smallest_char_width.
15170 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15171 (ftxfont_draw): Adjusted for the change of struct font.
15172
15173 * image.c (image_ascent): Don't include "charset.h". Include
15174 "character.h" and "font.h".
15175
15176 * lisp.h (enum pvec_type): New member PREV_FONT.
15177 (Fassoc_string): EXFUN it.
15178
15179 * print.c: Include font.h.
15180 (print_object): Handle font-related objects.
15181
15182 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15183 conditionals. Don't check enable_font_backend. Delete all codes
15184 used only when USE_FONT_BACKEND is not defined.
15185 (handle_auto_composed_prop): Do nothing if it->f is not on a
15186 window system. Check how many following characters can be
15187 displayed by the same font.
15188 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15189 'struct font *'.
15190 (get_char_face_and_encoding): Assign the whole encoding task to
15191 the `encode-char' method of a font driver.
15192 (fill_composite_glyph_string): Adjusted for the change of `struct
15193 face' and `struct glyph_string'.
15194 (fill_glyph_string): Likewise.
15195 (get_per_char_metric): Arguments changed.
15196 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15197 and `struct glyph_string'.
15198 (produce_stretch_glyph, calc_line_height_property)
15199 (x_produce_glyphs): Likewise.
15200
15201 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15202 conditionals. Don't check enable_font_backend. Delete all codes
15203 used only when USE_FONT_BACKEND is not defined. Use
15204 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15205 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15206 (Qp): Extern them.
15207 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15208 Deleted.
15209 (struct font_name): Deleted.
15210 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15211 (compare_fonts_by_sort_order): New function.
15212 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15213 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15214 Deleted.
15215 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15216 compare_fonts_by_sort_order.
15217 (Fx_font_family_list): Call Ffont_family_list.
15218 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15219 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15220 (face_symbolic_slant, face_symbolic_swidth)
15221 (split_font_name_into_vector, build_font_name_from_vector)
15222 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15223 (font_rescale_ratio, split_font_name, build_font_name)
15224 (free_font_names, sort_fonts, x_face_list_fonts)
15225 (face_font_available_p, sorted_font_list, cmp_font_names)
15226 (font_list_1, concat_font_list, font_list, remove_duplicates):
15227 Deleted.
15228 (Fx_list_fonts): Use Ffont_list.
15229 (LFACE_AVGWIDTH): Deleted.
15230 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15231 by FONTP.
15232 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15233 (set_lface_from_font_name): Delete it.
15234 (set_lface_from_font): Renamed from
15235 set_lface_from_font_and_fontset. Caller changed. Don't set
15236 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15237 for face.
15238 (merge_face_vectors): Copy font-spec if necessary.
15239 Clear properties of the font-spec if necessary.
15240 (merge_face_ref): Clear properties of the font-spec if necessary.
15241 (Finternal_set_lisp_face_attribute): Likewise.
15242 (set_font_frame_param): Use font_load_for_lface to load a
15243 font-object, and call Fmodify_frame_parameters with it.
15244 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15245 font name by Ffont_xlfd_name.
15246 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15247 QCslant, and QCwidth.
15248 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15249 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15250 Compare fonts by EQ.
15251 (lookup_non_ascii_face): Deleted.
15252 (face_for_font): The 2nd argument changed.
15253 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15254 Check atomic font properties by case insensitive.
15255 (realize_non_ascii_face): Set face->overstrike correctly.
15256 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15257 (dump_realized_face): Get font name from
15258 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15259
15260 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15261 conditionals. Don't check enable_font_backend. Delete all codes
15262 used only when USE_FONT_BACKEND is not defined.
15263 (xic_create_xfontset): Original code deleted and renamed from
15264 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15265 (x_make_gc): Don't set GCFont in GCs.
15266 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15267 opened by "fixed".
15268 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15269 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15270 get_font_repertory_func.
15271
15272 * xfont.c: Include <stdlib.h> and "ccl.h".
15273 (struct xfont_info): New structure.
15274 (xfont_query_font): Deleted.
15275 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15276 moved from xterm.c.
15277 (xfont_driver): Adjusted for the change of struct font_driver.
15278 (compare_font_names): New function.
15279 (xfont_list_pattern): Sort font names case insensitively. Make
15280 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15281 (xfont_list): Return a list, not vector.
15282 (xfont_match): If the font doesn't have QCname property, generate
15283 a name from the other font properties.
15284 (xfont_open): Return a font-object. Adjusted for the change of
15285 struct font. Get underline_thickness and underline_position from
15286 font property. Don't update dpyinfo->smallest_font_height and
15287 dpyinfo->smallest_char_width.
15288 (xfont_close): Don't free struct font.
15289 (xfont_prepare_face): Adjusted for the change of struct font.
15290 (xfont_done_face): Deleted.
15291 (xfont_has_char): Adjusted for the change of struct font.
15292 (xfont_encode_char, xfont_draw): Likewise.
15293 (xfont_check): New function.
15294
15295 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15296 callback function.
15297 (xftfont_match): Adjusted for the format change of font-entity.
15298 (xftfont_open): Adjusted for the format change of font-entity and
15299 font-object. Adjusted for the change of struct font. Return a
15300 font-object. Don't update dpyinfo->smallest_font_height and
15301 dpyinfo->smallest_char_width.
15302 (xftfont_close): Block input while calling XftFontClose.
15303 (xftfont_prepare_face): Don't block input while calling
15304 xftfont_get_colors. Adjusted for the change of struct font.
15305 (xftfont_shape): Return value of error case fixed.
15306
15307 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15308
15309 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15310 conditionals.
15311 (FONT_WIDTH): Return (f)->max_width.
15312 (struct x_display_info): Delete member `font'.
15313 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15314 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15315 (struct x_output): Change type of `font' to `struct font *'.
15316
15317 * xterm.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. Don't include ccl.h.
15320 (x_per_char_metric, x_encode_char): Deleted.
15321 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15322 (x_compute_glyph_string_overhangs): Adjusted for the change of
15323 `struct face'.
15324 (x_draw_glyph_string_foreground)
15325 (x_draw_composite_glyph_string_foreground): Likewise.
15326 (x_draw_glyph_string): Likewise. Use font->underline_position and
15327 font->underline_thickness.
15328 (x_new_font): Renamed from x_new_fontset2.
15329 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15330 (x_check_font): Call `check' method of a font driver.
15331 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15332 (x_query_font, x_get_font_repertory): Deleted.
15333 (x_find_ccl_program): Renamed and moved to xfont.c.
15334 (x_redisplay_interface): Adjusted for the change of `struct
15335 redisplay_interface'.
15336
15337 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15338 conditionals. Don't check enable_font_backend. Delete all codes
15339 used only when USE_FONT_BACKEND is not defined. Surround non-used
15340 code by "#ifdef OLD_FONT" and "endif".
15341 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15342
15343 * w32font.h (struct w32font_info): New member.
15344 (FONT_COMPAT): New macro.
15345 (w32font_open_internal): Prototype adjusted.
15346
15347 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15348 OLD_FONT" and "endif".
15349
15350 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15351 conditionals. Don't check enable_font_backend. Delete all codes
15352 used only when USE_FONT_BACKEND is not defined.
15353 (w32font_open): Return a font-object. Make a font-object by
15354 font_make_object. Adjusted for the change of struct w32font_info.
15355 (w32font_close): Don't free struct font. Adjusted for the change
15356 of struct w32font_info.
15357 (w32font_encode_char, w32font_text_extents, w32font_draw):
15358 Adjusted for the change of struct w32font_info.
15359 (w32font_draw): Likewise.
15360 (w32font_list_internal): Return a list, not vector.
15361 (w32font_open_internal): Change the 4th arg to font-object.
15362 Adjusted for the change of struct w32font_info and font-object format.
15363 (add_font_name_to_list): Don't downcase names.
15364 (w32_enumfont_pattern_entity): Make a font-entity by
15365 font_make_entity. Adjusted for the format change of font-entity.
15366 Use FONT_SET_STYLE to set a style-related font property. If a
15367 font is scalable, set avgwidth property to 0. Set font-entity
15368 property by font_put_extra.
15369 (font_matches_spec): Adjusted for the format change of font-entity.
15370 (w32_weight_table, w32_decode_weight): New variables.
15371 (w32_encode_weight): New function.
15372 (fill_in_logfont): Adjusted for the format change of font-spec.
15373 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15374 weight value.
15375 (w32font_driver): Adjusted for the change of struct font_driver.
15376
15377 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15378 conditionals. Don't check enable_font_backend. Surround non-used
15379 code by "#ifdef OLD_FONT" and "endif".
15380 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15381 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15382
15383 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15384 conditionals. Don't check enable_font_backend. Delete all codes
15385 used only when USE_FONT_BACKEND is not defined. Surround non-used
15386 code by "#ifdef OLD_FONT" and "endif".
15387
15388 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15389 (uniscribe_open): Return value changed to font-object.
15390 Adjusted for the format change of font-object.
15391 (uniscribe_otf_capability): Adjusted for the change of struct font.
15392 (add_opentype_font_name_to_list): Don't downcase names.
15393 (uniscribe_font_driver): Adjusted for the change of struct
15394 font_driver.
15395
15396 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15397
15398 * dispnew.c (update_frame_1): Check if tty output is still valid
15399 before flushing it.
15400
15401 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15402
15403 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15404 to Gtk+ menus.
15405
15406 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15407
15408 * dired.c (file_name_completion): Tweak the code so as to always do it
15409 in a single pass. Tighten the scope of some variables.
15410
15411 * dired.c (Qdefault_directory): New var.
15412 (file_name_completion): Use it instead of Fexpand_file_name.
15413 (syms_of_dired): Initialize it.
15414
15415 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15416
15417 * fileio.c (double_dollars): Remove dead code.
15418
15419 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15420
15421 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15422 Mention w32-get-true-file-attributes in doc string.
15423
15424 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15425
15426 2008-05-09 Glenn Morris <rgm@gnu.org>
15427
15428 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15429 2008-04-23.
15430
15431 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15432
15433 Support for reporting owner and group of each file on MS-Windows:
15434 * dired.c (stat_uname, stat_gname): New functions, with special
15435 implementation for w32.
15436 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15437
15438 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15439 (dflt_group_name): New static variable.
15440 (dflt_group): Rename from the_group.
15441 (init_user_info): Init dflt_group fields. Get user's group name
15442 from LookupAccountSid.
15443 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15444 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15445 New initialization states.
15446 (globals_of_w32): Initialize them to zero. Initialize the default
15447 group name to "None".
15448 (GetFileSecurity_Name): New global var, the name of the function
15449 to call for GetFileSecurity.
15450 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15451 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15452 (get_file_security, get_security_descriptor_owner)
15453 (get_security_descriptor_group, is_valid_sid)
15454 (get_file_security_desc, get_rid, get_name_and_id)
15455 (get_file_owner_and_group): New functions.
15456 (stat): Use get_file_security_desc and get_file_owner_and_group to
15457 report the owner and primary group of each file. Don't ignore the
15458 high 32 bits of file's size, now that st_size is 64-bit wide.
15459 Fix test when to get true file attributes.
15460 (init_user_info): Use get_rid instead of equivalent inline code.
15461 (fstat): Don't ignore the high 32 bits of file's size.
15462
15463 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15464
15465 * image.c (png_load): Use correct bit-depth for setting background
15466 color.
15467
15468 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15469
15470 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15471 epa-hook.elc.
15472
15473 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15474
15475 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15476
15477 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15478
15479 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15480 because the original parameters are in pure storage now.
15481 (mac_window): Remove unused params. Update callers.
15482
15483 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15484
15485 * lread.c (substitute_object_recurse): Use lower-level primitives.
15486 Don't signal errors when traversing sub-char-tables.
15487 Don't loop over all the possible characters when traversing char-tables.
15488
15489 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15490 just like we do in print.c.
15491
15492 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15493
15494 * minibuf.c (Ftry_completion): Remove code left over from when we used
15495 scmp instead of Fcompare_strings.
15496
15497 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15498
15499 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15500
15501 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15502
15503 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15504 Create bitmap context in native byte order.
15505
15506 * macterm.c (XDrawLine)
15507 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15508 context in native byte order.
15509
15510 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15511
15512 * config.in: Regenerate.
15513
15514 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15515 New definitions for Image I/O support.
15516 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15517 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15518 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15519 (mac_data_provider_release_data, image_load_image_io)
15520 [USE_MAC_IMAGE_IO]: New functions.
15521 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15522 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15523 (init_image_func_pointer) [MAC_OSX]: Remove function.
15524 (image_load_quartz2d) [MAC_OSX]: Check availability of
15525 CGImageCreateWithPNGDataProvider at compile time.
15526 Use lowercase `false' for boolean constant.
15527 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15528 Use image_load_image_io.
15529 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15530 Don't check MyCGImageCreateWithPNGDataProvider.
15531 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15532 Don't call init_image_func_pointer.
15533
15534 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15535
15536 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15537 Make variable non-static.
15538 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15539 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15540
15541 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15542 (RED_FROM_ULONG): Mask off higher bits.
15543 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15544
15545 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15546 Include AvailabilityMacros.h.
15547 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15548 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15549
15550 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15551
15552 * chartab.c (Fset_char_table_range): If range is t, really set all
15553 chars to that value.
15554
15555 2008-05-03 Eli Zaretskii <eliz@gnu.org>
15556
15557 * dired.c (Ffile_attributes): Don't allow the device number become
15558 negative.
15559
15560 2008-05-02 Daiki Ueno <ueno@unixuser.org>
15561
15562 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15563
15564 2008-05-02 Juri Linkov <juri@jurta.org>
15565
15566 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15567 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15568 DEFAULT argument as a list of default values in docstrings.
15569
15570 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
15571
15572 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15573
15574 2008-05-01 Martin Rudalics <rudalics@gmx.at>
15575
15576 * dispnew.c (change_frame_size_1): Preserve small windows when
15577 shrinking frames by calling set_window_height|width with third
15578 arg 2.
15579
15580 * window.h (struct window): Replace field too_small_ok by field
15581 resize_proportionally.
15582
15583 * window.c (make_window): Initialize resize_proportionally.
15584 (enlarge_window): Temporarily set resize_proportionally to make
15585 sure that shrink_windows does scale the window proportionally.
15586 (shrink_windows): When window has resize_proportionally set try
15587 to shrink it proportionally by stealing from other windows.
15588 (struct saved_window, Fset_window_configuration)
15589 (compare_window_configurations): Handle resize_proportionally.
15590 (WINDOW_TOTAL_SIZE): New macro.
15591 (window_min_size, shrink_windows, size_window): Use it.
15592 (check_min_window_sizes): Remove. Invalid values of
15593 window-min-height|width are handled by window_min_size_2 now.
15594 (size_window, Fsplit_window, enlarge_window)
15595 (adjust_window_trailing_edge, grow_mini_window): Don't call
15596 check_min_window_sizes.
15597 (window_min_size_2, window_min_size_1, window_min_size):
15598 New argument safe_p for retrieving "safe" minimum sizes.
15599 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15600 (adjust_window_trailing_edge, grow_mini_window):
15601 Adjust arguments of window_min_size... functions.
15602 (shrink_windows): Argument min_size removed. New argument
15603 safe_p allows shrinking windows to their safe minimum sizes.
15604 Calculate minimum size and decide whether a window shall be
15605 deleted for each window individually.
15606 (size_window): When nodelete_p equals 2, tell shrink_windows to
15607 delete windows only if their new minimum size is no more safe.
15608 (shrink_window_lowest_first): Call window_min_size_1 to make
15609 sure to preserve modeline of bottom-most window when resizing
15610 the minibuffer.
15611 (Fset_window_configuration, Fcurrent_window_configuration)
15612 (compare_window_configurations): Do not handle
15613 window-min-height|width any more.
15614 (syms_of_window): Clarify window-min-height|width doc-strings.
15615
15616 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15617
15618 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15619 some more. Copy some of the code from Ftry_completions.
15620 Remove special case code that dates back to initial revision when the
15621 slash was only added when necessary and that can't trigger nowadays.
15622
15623 2008-04-27 Kenichi Handa <handa@m17n.org>
15624
15625 * font.c (font_prop_validate): Signal `error' instead of `font'.
15626
15627 2008-04-29 Jason Rumney <jasonr@gnu.org>
15628
15629 * w32fns.c (Fw32_battery_status): New defun.
15630 (syms_of_w32fns): Defsubr it.
15631
15632 2008-04-28 Andreas Schwab <schwab@suse.de>
15633
15634 * dired.c (file_name_completion): Fix another mixing of encoded
15635 and decoded names.
15636
15637 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
15638
15639 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15640
15641 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
15642
15643 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15644
15645 2008-04-27 Andreas Schwab <schwab@suse.de>
15646
15647 * dired.c (file_name_completion): Fix inappropriate mixing of
15648 encoded and decoded names.
15649
15650 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15651
15652 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15653
15654 2008-04-26 Eli Zaretskii <eliz@gnu.org>
15655
15656 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15657 2008-03-31, it's not needed anymore with `struct stat' definition
15658 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15659 for the same reasons.
15660
15661 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15662
15663 * m/sparc.h: Additional redefinitions for GNU/Linux.
15664
15665 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15666
15667 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15668 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15669 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15670 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15671 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15672 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15673 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15674 Likewise.
15675
15676 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15677 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15678 (mac_ax_number_of_characters): Add externs.
15679 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15680 [USE_MAC_TSM]: Likewise.
15681 (mac_handle_text_input_event) [MAC_OSX]:
15682 Handle kEventTextInputOffsetToPos for no active input area case.
15683 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15684 (mac_handle_document_access_event)
15685 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15686 (install_application_handler) [MAC_OSX]: Register handlers for
15687 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15688 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15689 Register mac_handle_document_access_event.
15690
15691 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15692 Make functions non-static.
15693
15694 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15695
15696 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15697 (read_file_name_completion_ignore_case, insert_default_directory)
15698 (Qdefault_directory): Move to minibuffer.el.
15699 (Fread_file_name): Call the new `read-file-name' instead.
15700
15701 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15702
15703 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15704 Make function non-static.
15705 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15706 Remove function.
15707 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15708 Move to mactoolbox.c.
15709 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15710
15711 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15712 (mac_rect_make): New macro.
15713
15714 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15715 instead of float.
15716 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15717 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15718 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15719 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15720 CGRectMake.
15721 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15722 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15723 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15724 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15725 instead of WindowRef in argument type.
15726 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15727 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15728 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15729 instead of DISPLAY. All uses changed.
15730 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15731 (x_calc_absolute_position): Simplify so as not to use
15732 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15733
15734 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15735 instead of WindowRef in argument type.
15736 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15737 [TARGET_API_MAC_CARBON]: Remove externs.
15738 (create_apple_event, mac_event_parameters_to_lisp)
15739 [TARGET_API_MAC_CARBON]: Add externs.
15740
15741 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15742 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15743 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15744 is clicked.
15745 (x_activate_menubar): Remove extern for saved_menu_event_location.
15746 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15747 Move from mac.c.
15748
15749 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15750
15751 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15752 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15753
15754 2008-04-23 Jason Rumney <jasonr@gnu.org>
15755
15756 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15757 attributes only for local files.
15758
15759 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15760 default to Qlocal.
15761
15762 2008-04-22 Juri Linkov <juri@jurta.org>
15763
15764 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15765 read-buffer-to-switch instead of using the letter "B".
15766
15767 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15768
15769 * fileio.c (Qdefault_directory): New variable.
15770 (Fread_file_name): Use it to pass `dir' to the completion functions.
15771
15772 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15773
15774 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15775
15776 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15777
15778 * keyboard.c (Vpre_help_message): Remove.
15779 (show_help_echo): Remove default C code.
15780
15781 * dired.c (directory_files_internal, file_name_completion):
15782 Only call ENCODE_FILE if the string is indeed decoded.
15783
15784 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15785
15786 * Makefile.in (TOOLKIT_DEFINES): Remove.
15787 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15788
15789 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15790
15791 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15792 (mactoolbox.o): New target.
15793
15794 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15795 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15796
15797 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15798 Use mac_set_frame_window_background instead of XSetWindowBackground.
15799 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15800 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15801 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15802 instead of SetWindowTitleWithCFString.
15803 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15804 Move function to mactoolbox.c.
15805 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15806 Use mac_set_window_modified instead of SetWindowModified.
15807 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15808 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15809 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15810 FrontNonFloatingWindow. Use mac_activate_window instead of
15811 ActivateWindow. Use mac_active_non_floating_window instead of
15812 ActiveNonFloatingWindow.
15813 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15814 Use mac_show_hourglass and mac_hide_hourglass.
15815 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15816 instead of GetGlobalMouse.
15817 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15818 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15819 Use mac_bring_window_to_front instead of BringToFront.
15820 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15821 mactoolbox.c.
15822 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15823 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15824 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15825 mactoolbox.c.
15826
15827 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15828 (XtPointer): Move typedef from macmenu.c.
15829 (enum button_type): Move enum from macmenu.c.
15830 (widget_value): Move typedef from macmenu.c.
15831 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15832 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15833 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15834 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15835 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15836 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15837 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15838 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15839 (Selection): Move typedef from macselect.c.
15840 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15841 macterm.c.
15842 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15843 (mac_is_window_collapsed, mac_bring_window_to_front)
15844 (mac_send_window_behind, mac_hide_window, mac_show_window)
15845 (mac_collapse_window, mac_front_non_floating_window)
15846 (mac_active_non_floating_window, mac_activate_window)
15847 (mac_move_window_structure, mac_move_window, mac_size_window)
15848 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15849
15850 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15851 (enum mac_menu_kind): Move enum to mactoolbox.c.
15852 (min_menu_id): Move variable to mactoolbox.c.
15853 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15854 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15855 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15856 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15857 [TARGET_API_MAC_CARBON]: Likewise.
15858 (XtPointer): Move typedef to macgui.h.
15859 (enum button_type): Move enum to macgui.h.
15860 (widget_value): Move typedef to macgui.h.
15861 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15862 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15863 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15864 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15865 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15866 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15867 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15868 (popup_activated_flag): Make variable non-static.
15869 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15870 (add_menu_item, fill_menu, dispose_menus):
15871 Move functions to mactoolbox.c.
15872 (restore_show_help_function, menu_target_item_handler)
15873 (install_menu_target_item_handler, mac_handle_dialog_event)
15874 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15875 [TARGET_API_MAC_CARBON]: Likewise.
15876 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15877 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15878 (find_and_call_menu_selection, name_is_separator): Make function
15879 non-static.
15880 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15881 to mactoolbox.c.
15882 (set_frame_menubar): Don't call install_menu_quit_handler.
15883 (menu_item_selection): New variable.
15884 (mac_menu_show): Use create_and_show_popup_menu.
15885 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15886 selection but set variable menu_item_selection. All uses changed.
15887 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15888 Call install_menu_quit_handler. Move to mactoolbox.c.
15889
15890 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15891 (Selection): Move typedef to macgui.h.
15892 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15893 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15894 Make variables non-static.
15895 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15896 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15897 Make functions non-static.
15898 (Vmac_service_selection) [MAC_OSX]: Likewise.
15899 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15900 (mac_valid_selection_target_p, mac_clear_selection)
15901 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15902 (mac_put_selection_value, mac_selection_has_target_p)
15903 (mac_get_selection_value, mac_get_selection_target_list)
15904 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15905 Move functions to mactoolbox.c.
15906 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15907 Likewise.
15908 (copy_scrap_flavor_data, mac_handle_service_event)
15909 (install_service_handler) [MAC_OSX]: Likewise.
15910 (syms_of_macselect) <Vmac_dnd_known_types>:
15911 Use mac_dnd_default_known_types.
15912
15913 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15914 Move to mactoolbox.c.
15915 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15916 (Fx_selection_owner_p): Add EXFUN.
15917 (install_window_handler, remove_window_handler, XSetWindowBackground):
15918 Remove externs.
15919 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15920 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15921 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15922 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15923 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15924 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15925 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15926 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15927 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15928 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15929 (mac_valid_selection_target_p, mac_clear_selection)
15930 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15931 (mac_put_selection_value, mac_selection_has_target_p)
15932 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15933 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15934 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15935 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15936 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15937 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15938 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15939 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15940 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15941
15942 * mactoolbox.c: New file.
15943
15944 2008-04-18 Jason Rumney <jasonr@gnu.org>
15945
15946 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15947
15948 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15949
15950 * character.c (Fmultibyte_char_to_unibyte):
15951 Return latin1 chars unchanged.
15952
15953 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15954 relocated if it points to `name'.
15955
15956 2008-04-17 Kenichi Handa <handa@m17n.org>
15957
15958 * data.c (Faset): Allow setting a multibyte character in an
15959 ASCII-only unibyte string.
15960
15961 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15962
15963 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15964
15965 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15966 done in config.h.
15967
15968 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
15969
15970 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15971 (Fchar_direction): Add usage in the docstring.
15972
15973 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
15974
15975 * keyboard.c (read_key_sequence): Remove always-true checks.
15976
15977 2008-04-14 Jason Rumney <jasonr@gnu.org>
15978
15979 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15980 compatibility struct, for better underline positioning.
15981
15982 2008-04-13 David Hansen <david.hansen@gmx.net>
15983
15984 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15985 string.
15986
15987 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15988
15989 * m/hp800.h (XUINT, XSET): Remove.
15990
15991 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
15992
15993 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15994 previous change.
15995
15996 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15997
15998 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15999 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16000
16001 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * keymap.h (map_keymap_canonical): Declare.
16004 * xmenu.c (single_keymap_panes): Use it.
16005
16006 2008-04-11 Glenn Morris <rgm@gnu.org>
16007
16008 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16009 set the target's value to that of the alias.
16010
16011 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16012
16013 * term.c (set_tty_color_mode): Left over typo.
16014
16015 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
16016
16017 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16018 only after check for file name handler functions. Signal, when
16019 native functionality is not supported.
16020 (syms_of_fileio): Declare it unconditionally.
16021
16022 2008-04-10 Jason Rumney <jasonr@gnu.org>
16023
16024 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16025 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16026
16027 * w32.c (logon_network_drive): Also logon to remote drives that
16028 are mapped to drive letters.
16029
16030 2008-04-10 Glenn Morris <rgm@gnu.org>
16031
16032 * xdisp.c (truncate-partial-width-windows): Doc fix.
16033
16034 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16035
16036 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16037 Move functions to minibuffer.el.
16038 (syms_of_fileio): Don't declare them.
16039
16040 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16041
16042 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16043 (syms_of_minibuf): Remove its initialization.
16044
16045 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16046
16047 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
16048
16049 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16050
16051 2008-04-09 Jason Rumney <jasonr@gnu.org>
16052
16053 * makefile.w32-in (distclean): Delete makefile too.
16054 (maintainer-clean): New target.
16055
16056 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16057
16058 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16059 for new font backend and composite cases.
16060
16061 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16062
16063 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16064 Most of the code moved to run_timers.
16065 (do_pending_atimers): Call run_timers.
16066 (run_timers): New function.
16067
16068 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16069 run atimers.
16070
16071 * process.c (wait_reading_process_output): The same as above.
16072
16073 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16074
16075 * minibuf.c (last_exact_completion): Remove variable.
16076 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16077 (complete_and_exit_1, complete_and_exit_2)
16078 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16079 (Fdisplay_completion_list, display_completion_list_1)
16080 (Fminibuffer_completion_help, Fself_insert_and_exit)
16081 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16082 minibuffer.el.
16083 (syms_of_minibuf): Remove corresponding initializations.
16084
16085 * keyboard.c (Qdeactivate_mark): New var.
16086 (command_loop_1): Use it to call `deactivate-mark'.
16087 (syms_of_keyboard): Initialize it.
16088
16089 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16090 to another frame.
16091 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16092 Don't call set_tty_color_mode.
16093 (store_frame_param): Reset previous_frame rather than call
16094 set_tty_color_mode.
16095 * term.c (set_tty_color_mode): Rewrite.
16096 * dispextern.h (set_tty_color_mode): New type.
16097 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16098
16099 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16100
16101 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16102 for generic chars, which do not exist any more in emacs-unicode.
16103
16104 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
16105
16106 * coding.c (detect_coding_emacs_mule)
16107 (Ffind_operation_coding_system): Fix typo.
16108
16109 2008-04-08 Jason Rumney <jasonr@gnu.org>
16110
16111 * w32uniscribe.c (SNAME): Extract only symbol name.
16112
16113 * w32font.h (struct w32_metric_cache): New struct.
16114 (w32font_info): Use it.
16115 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16116 (CACHE_BLOCKSIZE): New constants.
16117
16118 * w32font.c (Qja, Qko, Qzh): New symbols.
16119 (syms_of_w32font): Initialise them.
16120 (font_matches_spec): Use them to filter by language.
16121 (recompute_cached_metrics): Remove function.
16122 (compute_metrics, clear_cached_metrics): New functions.
16123 (w32font_encode_char): Use them to manage metric cache.
16124 (w32font_text_extents): Cache metrics for all glyphs on demand.
16125 Delay converting glyph indices to WORD until needed.
16126 (w32font_open_internal): Initialize metric cache to empty.
16127 (registry_to_w32_charset): Charset should always be a symbol.
16128 (fill_in_logfont, list_all_matching_fonts): Family should
16129 always be a symbol.
16130
16131 2008-04-06 Jason Rumney <jasonr@gnu.org>
16132
16133 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16134 Give up if glyph indices not supported. Use uniscribe obtained
16135 ABC widths for individual metrics. Map glyph clusters back to
16136 characters using fClusterStart flag. Return number of glyphs
16137 produced, not chars processed.
16138 (uniscribe_shape): Map char at FROM to current glyph.
16139
16140 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16141
16142 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16143 Use SetMenuItemHierarchicalMenu.
16144
16145 2008-04-05 Jason Rumney <jasonr@gnu.org>
16146
16147 * image.c (pbm_load): Allow color values up to 65535.
16148 Throw an error if max_color_idx is outside the supported range.
16149 Report an error when image size is invalid.
16150 Read two bytes at a time when raw images have max_color_idx above 255.
16151
16152 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16153
16154 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16155 append "CCL: Quitted" when the CCL program is quitted.
16156 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16157
16158 * ccl.h (struct ccl_program): New member quit_silently.
16159
16160 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16161
16162 * search.c (compile_pattern_1): Treat non-nil and non-string of
16163 search-spaces-regexp as nil.
16164
16165 * minibuf.c (Fassoc_string): Tweak docstring.
16166
16167 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16168
16169 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16170 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16171 2008-03-14 to force inode be positive.
16172
16173 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16174 _S_* ones, since we now use our own sys/stat.h.
16175 (stat, fstat): Don't mangle the inode number.
16176 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16177
16178 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16179
16180 * frame.h (struct frame): Give one more bit to `visible' since we use
16181 values larger than 1 to indicate obscured frames on ttys.
16182
16183 * keymap.c (Qkeymap_canonicalize): New var.
16184 (Fmap_keymap_internal): New fun.
16185 (describe_map): Use keymap-canonicalize.
16186
16187 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16188 (Fundo_boundary): Set them.
16189 (syms_of_undo): Initialize them.
16190 (record_point): Use them instead of last_point_position*.
16191 (last_undo_buffer): Change type.
16192
16193 2008-04-04 Jason Rumney <jasonr@gnu.org>
16194
16195 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16196 (recompute_cached_metrics): Don't set ascent and descent per char.
16197
16198 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16199 (uniscribe_check_otf): Add GC protection before consing.
16200 Rearrange loop for counting features.
16201
16202 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16203
16204 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16205 buffer with byte-size of source buffer.
16206
16207 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16208
16209 * callint.c (Fcall_interactively): Handle temporary region even
16210 when shift-select-mode is off.
16211
16212 2008-04-03 Jason Rumney <jasonr@gnu.org>
16213
16214 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16215
16216 2008-04-03 Kenichi Handa <handa@m17n.org>
16217
16218 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16219 (CATEGORY_MASK_UTF_16): Likewise.
16220 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16221 binary file.
16222 (detect_coding): Add null-byte detection for a binary file.
16223 (detect_coding_system): Likewise.
16224
16225 2008-04-03 Jason Rumney <jasonr@gnu.org>
16226
16227 * w32uniscribe.c: New file.
16228
16229 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16230
16231 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16232
16233 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16234 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16235 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16236 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16237 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16238 (Qphonetic): New symbols.
16239 (syms_of_w32font): Initialize them.
16240 (font_supported_scripts): Use them.
16241 (w32font_list_family): List all charsets.
16242 (w32font_text_extents, recompute_cached_metrics): Fix metric
16243 calculations.
16244 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16245 Give opentype fonts their own format.
16246 (font_matches_spec): New arguments backend and logfont.
16247 Handle :otf spec for uniscribe backend.
16248 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16249 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16250
16251 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16252 font backend.
16253 (globals_of_w32fns): Initialize uniscribe font backend.
16254
16255 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16256 dependencies.
16257 (w32uniscribe.$(O)): New file to build.
16258 (FONT_OBJ): Include w32uniscribe.$(O).
16259 (LIBS): Add uniscribe libraries.
16260
16261 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16262
16263 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16264
16265 * callint.c (Vshift_select_mode): New var.
16266 (Finteractive): Document new ^ spec.
16267 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16268 is present.
16269
16270 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16271 (command_loop_1): Avoid running the direct display versions of
16272 forward-char and backward-char if shift-selection may occur.
16273 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16274 shift-translation takes place.
16275
16276 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16277 avoid clobbering by define-minor-mode.
16278
16279 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16280 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16281
16282 * syntax.c (Fforward_word): Add ^ interactive spec.
16283
16284 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16285 (Fscroll_right): Add ^ interactive spec.
16286
16287 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16288
16289 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16290
16291 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16292
16293 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16294
16295 2008-03-31 Juri Linkov <juri@jurta.org>
16296
16297 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16298
16299 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16300
16301 * gtkutil.c (xg_set_geometry): Fix indentation.
16302 (xg_resize_outer_widget): Remove.
16303 (x_wm_size_hint_off): Fix indentation.
16304 (xg_frame_set_char_size): Call flush_and_sync after
16305 gtk_window_resize.
16306 (x_wm_set_size_hint): Pass NULL as geometry window to
16307 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16308 Add menu bar and tool bar height to base height.
16309 (xg_update_frame_menubar, free_frame_menubar)
16310 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16311 (update_frame_tool_bar, free_frame_tool_bar):
16312 Change xg_resize_outer_widget to xg_frame_set_char_size.
16313
16314 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16315
16316 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16317 (Fdbus_call_method): New parameter TIMEOUT.
16318 (dbus-send-signal): Optimize UNGCPRO call.
16319
16320 2008-03-29 Juri Linkov <juri@jurta.org>
16321
16322 * window.c (Fdisplay_buffer): Move call to
16323 Vsplit_window_preferred_function out of conditions that check
16324 if window is eligible for vertical splitting.
16325 When Vsplit_window_preferred_function is non-nil, call it and use
16326 its non-nil return value as window. Otherwise, continue doing
16327 vertical splitting using Fsplit_window with arg horflag=nil.
16328 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16329 default value from `split-window' to nil.
16330
16331 2008-03-29 Juri Linkov <juri@jurta.org>
16332
16333 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16334 for interactive code letters 'b' and 'B'.
16335
16336 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16337
16338 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16339 multibyte string.
16340
16341 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16342
16343 * keyboard.c (pending_funcalls): New var.
16344 (timer_check): Run it.
16345 (syms_of_keyboard): Initialize it.
16346 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16347 (Vdelete_terminal_functions): New vars.
16348 (syms_of_terminal): Initialize them.
16349 (Fdelete_terminal): Run delete-terminal-functions.
16350 * xdisp.c (safe_eval): Rewrite.
16351 (safe_call2): New fun.
16352 * frame.c (Qdelete_frame_functions): New var.
16353 (syms_of_frame): Initialize it.
16354 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16355 * lisp.h (safe_call2, pending_funcalls): Declare.
16356
16357 2008-03-28 Andreas Schwab <schwab@suse.de>
16358
16359 * indent.c (Fmove_to_column): Move declaration before statements.
16360
16361 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16362
16363 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16364 (struct frame): Use bit fields for boolean vars.
16365
16366 * process.c (server_accept_connection): Simplify naming.
16367 (emacs_get_tty_pgrp): Use SDATA.
16368
16369 * coding.c (decode_coding_object): Fix last change.
16370
16371 2008-03-27 Jason Rumney <jasonr@gnu.org>
16372
16373 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16374
16375 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16376
16377 * charset.c (Fdefine_charset_internal): Change the way of
16378 registering charsets in Vcharset_order_list.
16379 (syms_of_charset): Make the charset `eight-bit' supplementary.
16380
16381 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16382
16383 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16384 operations, to avoid having the difference between pointers
16385 overflow.
16386
16387 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16388
16389 * indent.c (check_display_width): New fun.
16390 (scan_for_column): Use it.
16391
16392 * data.c (syms_of_data): Mark most-positive-fixnum and
16393 most-negative-fixnum as constants.
16394
16395 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16396
16397 * indent.c (scan_for_column): Extract from current_column_1.
16398 Merge with the same code from Fmove_to_column.
16399 (current_column_1, Fmove_to_column): Use it.
16400
16401 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16402
16403 * keymap.c (map_keymap_internal): New fun.
16404 (map_keymap): Use it.
16405 (Fmap_keymap_internal): New fun.
16406 (Fmap_keymap): Remove left-out test from before make_save_value.
16407
16408 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16409
16410 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16411 Use XCAR/XCDR.
16412
16413 * process.h (struct Lisp_Process): Remove filter_multibyte.
16414 * process.c (QCfilter_multibyte): Remove.
16415 (setup_process_coding_systems): Don't use filter_multibyte.
16416 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16417 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16418 (Fset_process_filter_multibyte): Change the coding-system to
16419 approximate the previous behavior.
16420 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16421 coding-system.
16422
16423 * coding.c (decode_coding_object): When not decoding into a buffer,
16424 obey the coding system's preference of (uni|multi)byte.
16425
16426 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16427
16428 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16429 every char is changed and has a different byte-length.
16430 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16431 Fix int -> EMACS_INT.
16432
16433 2008-03-23 David Hansen <david.hansen@gmx.net>
16434
16435 * dbusbind.c (xd_read_message): Remove extra copying of message
16436 strings. Check for NULL `interface' or `member'.
16437
16438 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16439
16440 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16441 cFileName a file name that includes `?' characters, use the 8+3
16442 alias in cAlternateFileName instead.
16443
16444 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16445
16446 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16447
16448 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16449
16450 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16451 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16452 work on current_buffer only instead (that was already the case
16453 for some of the code anyway).
16454 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16455 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16456 (SET_PT, SET_PT_BOTH): Adjust.
16457 * intervals.h (set_point, temp_set_point, set_point_both)
16458 (temp_set_point_both): Remove redundant declarations.
16459
16460 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16461
16462 * fileio.c (Finsert_file_contents):
16463 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16464 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16465 when buffer != current_buffer anyway.
16466
16467 2008-03-20 Andreas Schwab <schwab@suse.de>
16468
16469 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16470 as default.
16471
16472 2008-03-19 Jason Rumney <jasonr@gnu.org>
16473
16474 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16475 (syms_of_w32fns): Initialize them.
16476 (HOURGLASS_ID): New constant.
16477 (x_window_to_frame): Don't check hourglass_window.
16478 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16479 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16480 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16481 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16482 Only change the cursor if hourglass is not active.
16483 (Fx_create_frame): Initialize frame's current_cursor.
16484 (hourglass_atimer): Remove.
16485 (hourglass_started): New function.
16486 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16487 (show_hourglass): Adapt to w32, changing argument to frame.
16488
16489 * w32term.h (struct w32_output): Remove hourglass_window.
16490 Add current_cursor.
16491
16492 * eval.c (call_debugger, Fsignal):
16493 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16494 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16495 (Fexecute_extended_command, cancel_hourglass_unwind):
16496 * minibuf.c (read_minibuf):
16497 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16498
16499 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16500
16501 * window.c (run_funs): New fun.
16502 (run_window_configuration_change_hook): Use it to run the buffer-local
16503 and the global part of the hook.
16504
16505 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16506 (unwind_format_mode_line): Restore selected window.
16507 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16508
16509 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16510
16511 * editfns.c (Fchar_equal): Check they are valid characters.
16512
16513 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16514
16515 2008-03-17 Andreas Schwab <schwab@suse.de>
16516
16517 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16518 against a charset.
16519
16520 * lisp.h (Fbuffer_list): Declare.
16521
16522 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16523
16524 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16525 handlebox_widget is != 0.
16526
16527 2008-03-16 Juri Linkov <juri@jurta.org>
16528
16529 * callint.c (Fcall_interactively): For interactive code letters
16530 'b' and 'B' put the buffer list into the list of default "future"
16531 values of the minibuffer.
16532
16533 2008-03-16 Andreas Schwab <schwab@suse.de>
16534
16535 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16536 modifiers.
16537
16538 * regex.c (re_match_2_internal): Correct matching of a charset
16539 against latin-1 characters.
16540
16541 2008-03-16 Kenichi Handa <handa@m17n.org>
16542
16543 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16544 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16545 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16546 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16547 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16548 CHAR_STRING_ADVANCE.
16549 (produce_chars): Fix for the case that the source and the
16550 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16551 instead of CHAR_STRING_ADVANCE.
16552 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16553 STRING_CHAR_ADVANCE.
16554
16555 2008-03-15 Andreas Schwab <schwab@suse.de>
16556
16557 * regex.c (re_match_2_internal): Correct matching of eight bit
16558 characters in unibyte strings.
16559
16560 2008-03-15 Martin Rudalics <rudalics@gmx.at>
16561
16562 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16563 at end of range when it coincides with the end of the buffer.
16564
16565 2008-03-14 Eli Zaretskii <eliz@gnu.org>
16566
16567 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16568
16569 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16570
16571 2008-03-14 Jason Rumney <jasonr@gnu.org>
16572
16573 * editfns.c (initial_tz): New variable.
16574 (syms_of_editfns): Initialize it.
16575 (Fset_time_zone_rule): Set it when first called.
16576 Use it when TZSTRING is nil.
16577
16578 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16579 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16580 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16581 (globals_of_w32fns): Initialize them.
16582 (compute_tip_xy): Use them to position tooltips.
16583
16584 2008-03-14 Glenn Morris <rgm@gnu.org>
16585
16586 * emacs.c (main): Revert previous change.
16587 (standard_args): Revert -internal-script back to -scriptload,
16588 and remove the long-option form.
16589
16590 2008-03-13 Glenn Morris <rgm@gnu.org>
16591
16592 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16593 Remove option -enable-font-backend.
16594
16595 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16596
16597 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16598
16599 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16600
16601 * xterm.c (x_connection_closed): For GTK: If this is the last
16602 terminal just exit without closing the display.
16603
16604 2008-03-11 Jason Rumney <jasonr@gnu.org>
16605
16606 * w32font.c (w32font_full_name): Use floor to round.
16607
16608 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16609
16610 * sound.c (alsa_configure): Declare vol at beginning of block.
16611
16612 * fontset.c (Ffontset_info): Remove extra semicolon.
16613
16614 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16615
16616 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16617 size of resulting string.
16618
16619 2008-03-10 Jason Rumney <jasonr@gnu.org>
16620
16621 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16622
16623 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16624
16625 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16626 Don't pretend as if characters with display property haven't been
16627 consumed for string-replacing-string case.
16628
16629 2008-03-08 Kim F. Storm <storm@cua.dk>
16630
16631 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16632 (get_next_display_element, next_element_from_string)
16633 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16634
16635 2008-03-08 Andreas Schwab <schwab@suse.de>
16636
16637 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16638
16639 2008-03-06 Jason Rumney <jasonr@gnu.org>
16640
16641 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16642 when charset not specified. Only translate ANSI to unicode when
16643 font_type is truetype.
16644 (w32font_coverage_ok): New function.
16645 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16646
16647 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16648
16649 * lread.c (Fread_char): Resolve modifiers.
16650 (Fread_char_exclusive): Likewise.
16651
16652 * character.c (char_resolve_modifier_mask): New function.
16653 (char_string): Use char_resolve_modifier_mask.
16654 (Fchar_resolve_modifiers): New function.
16655 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16656 function.
16657
16658 2008-03-04 Jason Rumney <jasonr@gnu.org>
16659
16660 * makefile.w32-in: Always include w32font.c in the build.
16661 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16662
16663 2008-03-04 Andreas Schwab <schwab@suse.de>
16664
16665 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16666 (versionclean): Likewise.
16667
16668 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
16669
16670 * .cvsignore: Add oo.
16671
16672 2008-03-03 Andreas Schwab <schwab@suse.de>
16673
16674 * coding.c (decode_coding_object): Inhibit gap shrinking while
16675 decoding in place.
16676
16677 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16678
16679 * w32term.c: Remove unused include "gnu.h".
16680 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16681
16682 * gnu.h: Rename to ...
16683 * emacs-icon.h: ... this.
16684 * xterm.c: Use emacs-icon.h instead of gnu.h.
16685 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16686
16687 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
16688
16689 * w32font.c: Include math.h.
16690
16691 2008-03-03 Jason Rumney <jasonr@gnu.org>
16692
16693 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16694 Compute options separately.
16695 (w32font_open_internal): Set glyph_idx before caching metrics.
16696
16697 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16698 Define if system headers don't.
16699 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16700 (w32font_encode_char): Don't declare here.
16701
16702 * w32font.c (Quniscribe, QCformat): New symbols.
16703 (syms_of_w32font): Define them.
16704 (w32font_has_char): Indicate uncertainty.
16705 (w32font_encode_char): Encode as glyph point. Make static.
16706 (recompute_cached_metrics): New function.
16707 (w32font_open_internal): Use it. Set font to use glyph points
16708 initially. Set format based on type of font.
16709 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16710 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16711 on it. Set format based on information available here.
16712 (add_font_entity_to_list): Identify backend based on opentype_only.
16713
16714 2008-03-02 Andreas Schwab <schwab@suse.de>
16715
16716 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16717
16718 * coding.c (decode_coding_big5, produce_chars):
16719 Fix typos in last change.
16720
16721 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16722
16723 * gnu.h: New icon.
16724
16725 2008-03-02 Kenichi Handa <handa@m17n.org>
16726
16727 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16728 `dos', don't decode '\r' if that is the last in the source.
16729 (decode_coding_utf_16, decode_coding_emacs_mule)
16730 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16731 (decode_coding_raw_text, decode_coding_charset): Likewise.
16732 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16733
16734 2008-03-01 Jason Rumney <jasonr@gnu.org>
16735
16736 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16737
16738 2008-03-01 Kim F. Storm <storm@cua.dk>
16739
16740 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16741
16742 2008-03-01 Jason Rumney <jasonr@gnu.org>
16743
16744 * w32font.c (w32font_full_name): New function.
16745 (w32font_open_internal): Use it.
16746
16747 2008-03-01 Kim F. Storm <storm@cua.dk>
16748
16749 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16750
16751 2008-03-01 Jason Rumney <jasonr@gnu.org>
16752
16753 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16754
16755 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16756
16757 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16758 xg_frame_resized when the event is for the edit widget.
16759
16760 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16761
16762 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16763 set_char_size.
16764 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16765 operations on widgets here. Just set frame size if needed.
16766 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16767 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16768 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16769 the whole frame.
16770 (xg_create_tool_bar): Move attachment of the tool bar to
16771 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16772 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16773
16774 2008-03-01 Jason Rumney <jasonr@gnu.org>
16775
16776 * w32fns.c (w32_msg_pump): Disable debug code.
16777
16778 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16779
16780 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16781
16782 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16783
16784 * xdisp.c (next_overlay_string): Don't set
16785 overlay_strings_at_end_processed_p if we're currently reading from
16786 a display string.
16787
16788 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16789
16790 * xdisp.c (get_overlay_strings_1): Fix typo.
16791
16792 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16793
16794 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16795
16796 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16797
16798 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16799
16800 * xdisp.c (display_mode_element): Cancel the previous change.
16801 (decode_mode_spec): Likewise.
16802 (handle_auto_composed_prop): Don't make composition if it->string
16803 is a string.
16804
16805 2008-02-27 Kim F. Storm <storm@cua.dk>
16806
16807 * lisp.h (GLYPH): Change type from int to struct with separate char
16808 and face_id members.
16809 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16810 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16811 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16812 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16813 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16814 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16815 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16816 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16817 handle new Lisp glyph code encoding, either an integer or a cons.
16818
16819 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16820 (GLYPH_ALIAS): Delete.
16821 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16822 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16823 (GLYPH_FROM_CHAR): Replace macro by ...
16824 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16825
16826 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16827 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16828 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16829 (GLYPH_INVALID_P): New macro.
16830 (spec_glyph_lookup_face): Update prototype.
16831
16832 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16833 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16834 new glyph code encoding.
16835 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16836 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16837
16838 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16839 Adapt to new glyph type and new glyph code encoding.
16840
16841 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16842
16843 * indent.c (current_column, current_column_1, Fmove_to_column)
16844 (compute_motion): Adapt to new glyph code encoding.
16845
16846 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16847
16848 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
16849
16850 * process.c (wait_reading_process_output): Check for window
16851 changes caused by timers.
16852 Suggested by Johan Bockgård.
16853
16854 2008-02-27 Glenn Morris <rgm@gnu.org>
16855
16856 * emacs.c (USAGE1): Add `--disable-font-backend'.
16857
16858 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16859
16860 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16861 is made to the buffer.
16862
16863 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16864
16865 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16866 (face_at_string_position):
16867 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16868 (face_at_string_position):
16869 * xdisp.c (display_string, next_overlay_change):
16870 * buffer.h (overlays_at):
16871 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16872 Update callers.
16873
16874 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
16875
16876 * editfns.c (Fformat): Doc fix.
16877
16878 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
16879
16880 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16881 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16882 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16883
16884 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16885
16886 * buffer.c (Fbuffer_swap_text): New function.
16887 (syms_of_buffer): Defsubr it.
16888
16889 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
16890
16891 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16892
16893 2008-02-25 Jason Rumney <jasonr@gnu.org>
16894
16895 * w32font.c (w32font_draw): Draw one character at a time when padding.
16896
16897 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16898
16899 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16900 Handle a nil arg. Use run_window_configuration_change_hook.
16901 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16902 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16903 Use run_window_configuration_change_hook.
16904
16905 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16906
16907 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16908 1-pixel width.
16909
16910 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16911
16912 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16913 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16914 if the glyph in the font is zero pixel with.
16915
16916 * dispextern.h (struct glyph_string): New member padding_p.
16917
16918 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16919
16920 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16921
16922 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16923
16924 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16925
16926 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16927
16928 2008-02-25 Jason Rumney <jasonr@gnu.org>
16929
16930 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16931
16932 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16933
16934 Allow fine-grained image-cache flushing.
16935 * dispextern.h (struct image): Add `dependencies' field.
16936 (clear_image_caches): Change arg to Lisp_Object.
16937 * image.c (make_image): Initialize `dependencies' field.
16938 (clear_image_cache): Change arg to allow fine-grained flushing.
16939 Perform the flush even if image-cache-eviction-delay is nil.
16940 (clear_image_caches): Change arg to Lisp_Object.
16941 (Fclear_image_cache): Expand meaning of the argument.
16942 (mark_image): Mark `dependencies' field.
16943 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16944 (lface_hash): Use XHASH rather than XFASTINT.
16945 (face_at_buffer_position): Fix int -> EMACS_INT position.
16946 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16947 (select_frame_for_redisplay): Remove code duplication.
16948 (redisplay_internal): Adapt arg to call to clear_image_caches.
16949
16950 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16951
16952 * s/vms4-0.h:
16953 * s/vms4-2.h:
16954 * s/vms4-4.h:
16955 * s/vms5-5.h: Remove, unused.
16956
16957 * s/irix5-2.h:
16958 * s/irix6-0.h:
16959 * s/riscos5.h:
16960 * s/mach-bsd4-3.h:
16961 * m/mips4.h: Remove files for obsolete systems.
16962
16963 * Makefile.in:
16964 * filelock.c:
16965 * unexmips.c:
16966 * m/hp9000s300.h:
16967 * m/iris4d.h:
16968 * s/aix3-1.h:
16969 * s/hpux.h:
16970 * s/msdos.h:
16971 * s/usg5-0.h:
16972 * s/usg5-2-2.h:
16973 * s/usg5-2.h:
16974 * s/usg5-3.h: Remove references to obsolete variables.
16975
16976 * s/irix5-0.h: Remove, move all the contents ...
16977 * s/irix6-5.h: ... here. Simplify.
16978 * config.in: Regenerate.
16979
16980 2008-02-24 Jason Rumney <jasonr@gnu.org>
16981
16982 * w32term.c (x_draw_glyph_string_background): Clear the background
16983 manually when cleartype is in use.
16984 (x_draw_glyph_string_foreground): Draw text transparently when
16985 cleartype is in use.
16986
16987 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16988 a font into it unless we have to.
16989
16990 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16991
16992 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16993 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16994
16995 2008-02-18 Jason Rumney <jasonr@gnu.org>
16996
16997 * w32fns.c (Fw32_shell_execute): Encode parameters.
16998
16999 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17000
17001 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17002
17003 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
17004
17005 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17006
17007 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17008
17009 * xterm.c (x_set_offset): Don't change the gravity if
17010 CHANGE_GRAVITY is -1.
17011
17012 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
17013
17014 * fileio.c (auto_save_error_occurred): New var.
17015 (auto_save_error): Set it.
17016 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17017 error occurred.
17018
17019 2008-02-23 Eli Zaretskii <eliz@gnu.org>
17020
17021 * w32.c (globals_of_w32): Add initializations for
17022 g_b_init_get_sid_sub_authority and
17023 g_b_init_get_sid_sub_authority_count.
17024
17025 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17026
17027 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17028 (font_parse_xlfd): Use them for sanity check.
17029 (Finternal_set_font_style_table): Make sure the table is bijective.
17030
17031 Consolidate the image_cache to the terminal struct.
17032 * termhooks.h (P_): Remove redundant def.
17033 (struct terminal): New field `image_cache'.
17034 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17035 of FRAME_X_IMAGE_CACHE.
17036 * xterm.h (struct x_display_info): Remove image_cache field.
17037 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17038 * w32term.h (struct w32_display_info): Remove image_cache field.
17039 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17040 * macterm.h (struct mac_display_info): Remove image_cache field.
17041 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17042 * xterm.c (x_term_init):
17043 * w32term.c (w32_term_init):
17044 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17045 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17046 Remove declarations.
17047 (clear_image_caches, mark_image_cache): New declarations.
17048 * xfaces.c (clear_face_cache):
17049 * xdisp.c (redisplay_internal): Use clear_image_caches.
17050 * image.c (clear_image_cache): Don't check that a frame is on
17051 a window-system before checking if it shares the same cache.
17052 (clear_image_caches): New function.
17053 (Fclear_image_cache): Use it.
17054 (mark_image): Move from allo.c.
17055 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17056 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17057 (mark_object): Don't call mark_image_cache for frames.
17058 (mark_terminals): Call mark_image_cache.
17059
17060 * lisp.h (Fdelete_terminal): Declare.
17061
17062 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17063 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17064 wrong_type_argument.
17065
17066 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17067
17068 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17069 malayalam.el, and tamil.el. Add sinhala.el.
17070
17071 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17072
17073 * xterm.c (x_connection_closed): Consolidate identical tests.
17074 (x_delete_terminal): Don't crash if called via x_connection_closed.
17075
17076 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17077
17078 * xdisp.c (decode_mode_spec): New arg string.
17079 (display_mode_element): Adjust for the above change.
17080
17081 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17082
17083 * callint.c (Fcall_interactively): Use AREF.
17084
17085 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17086
17087 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17088
17089 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17090
17091 * xfns.c (Fx_show_tip): Set string to " " if empty.
17092
17093 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17094
17095 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17096 with Qt.
17097
17098 2008-02-17 Kenichi Handa <handa@m17n.org>
17099
17100 * ftfont.c (ftfont_shape): Return Lispy number.
17101
17102 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17103 for GCs.
17104 (Finternal_set_font_selection_order): Call font_update_sort_order
17105 only when enable_font_backend is set.
17106 (realize_x_face): Set face->font_info to that of default face only
17107 when enable_font_backend is set.
17108
17109 * xdisp.c (handle_composition_prop): Set it->c to the fist
17110 character of the composed region.
17111 (fill_composite_glyph_string): Set base_face->font_info to
17112 s->font_info. Get a face for ascii from base_face->ascii_face.
17113 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17114 with a face already decided.
17115 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17116 non-negative.
17117 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17118 call font_prepare_composition unconditionally.
17119
17120 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17121
17122 * xterm.h (struct x_display_info): New member font.
17123
17124 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17125 (x_set_mouse_face_gc, x_new_font): Likewise.
17126 (x_term_init): Setup display_info->font.
17127 (x_delete_terminal): Free display_info->font.
17128
17129 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17130
17131 * ftxfont.c (ftxfont_default_fid): Delete it.
17132 (ftxfont_open): Set xfont->fid to 0.
17133 (ftxfont_end_for_frame): Clear data specific to the frame and the
17134 font-driver.
17135
17136 * xftfont.c (xftfont_default_fid): Delete it.
17137 (xftfont_open): Set xfont->fid to 0.
17138
17139 * fontset.c (FONTSET_OBJLIST): New macro.
17140 (fontset_find_font): Update font-object list of the fontset.
17141 (free_realized_fontset): New function.
17142 (free_face_fontset): Call free_realized_fontset.
17143 (Ffont_info): Call font_close_object only when enable_font_backend
17144 is set.
17145
17146 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17147 [HAVE_NTGUI]: Include w32term.h.
17148 [MAC_OS]: Include macterm.ch.
17149 (font_otf_ValueRecord): Use make_number.
17150 (font_finish_cache): Fix handling of reference count.
17151 (font_clear_cache): Update num_fonts.
17152 (font_open_entity): Update smallest_char_width and
17153 smallest_font_height of the frame.
17154 (font_close_object): Update num_fonts.
17155 (Fclear_font_cache): Fix finding the target cache data.
17156
17157 2008-02-16 Glenn Morris <rgm@gnu.org>
17158
17159 * fontset.c (Finternal_char_font): Fix compilation warning.
17160
17161 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17162
17163 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17164 instead of char arrays. Enlarge the size of array passed to
17165 get_token_information.
17166
17167 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17168 warnings.
17169
17170 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17171
17172 * .gdbinit: Don't set `args', it breaks gdb --args.
17173
17174 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17175
17176 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17177 within a narrowed buffer.
17178
17179 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17180
17181 * coding.c (decode_coding_object, encode_coding_object):
17182 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17183
17184 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17185
17186 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17187 hardcoding 1.
17188 (detect_coding_system):
17189 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17190 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17191 * insdel.c (insert_from_gap):
17192 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17193 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17194 (string_to_multibyte):
17195 * character.c (chars_in_text, multibyte_chars_in_text):
17196 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17197
17198 * character.h (FETCH_STRING_CHAR_ADVANCE)
17199 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17200 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17201 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17202
17203 * casefiddle.c (casify_region): Only call after-change and composition
17204 functions on the part of the region that was changed.
17205
17206 * keyboard.c (read_avail_input):
17207 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17208
17209 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17210
17211 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17212 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17213
17214 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17215
17216 * w32menu.c (push_submenu_start, push_submenu_end)
17217 (push_left_right_boundary, push_menu_pane, push_menu_item):
17218 * keyboard.c (read_key_sequence): Don't pass args with side effects
17219 to AREF, it fails when compiling with -DENABLE_CHECKING.
17220
17221 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17222
17223 * Makefile.in (${lispsource}international/charprop.el):
17224 Delete this target.
17225
17226 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17227 emacs-unicode-2.
17228
17229 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17230
17231 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17232
17233 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17234
17235 * frame.c (Qnoelisp): New symbol.
17236 (syms_of_frame): Initialize it.
17237 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17238 harmless Elisp code, from a strong `force' from x_connection_closed.
17239 * frame.h (Qnoelisp): Declare.
17240 * xterm.c (x_connection_closed): Pass `noelisp'.
17241
17242 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17243 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17244 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17245 rather than `int' for the type of `type'.
17246
17247 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17248
17249 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17250
17251 * Makefile.in (GNUC): Remove support for gcc-1.x.
17252
17253 2008-02-10 Richard Stallman <rms@gnu.org>
17254
17255 * lisp.h (ASET): Use AREF, not ASLOT.
17256
17257 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17258
17259 * lisp.h (ASET): Check bounds.
17260
17261 2008-02-10 Glenn Morris <rgm@gnu.org>
17262
17263 * buffer.c (mode-name): Doc fix.
17264
17265 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17266
17267 * Makefile.in:
17268 * emacs.c:
17269 * gmalloc.c:
17270 * keyboard.c:
17271 * lisp.h:
17272 * m/ibm370aix.h:
17273 * process.c:
17274 * regex.c:
17275 * s/hpux.h:
17276 * sysdep.c:
17277 * sysselect.h:
17278 * systty.h:
17279 * unexec.c:
17280 * w32term.c:
17281 * xsmfns.c:
17282 * xterm.c: Remove code that deals with obsolete variables.
17283
17284 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17285
17286 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17287 nothing else needs it anymore.
17288
17289 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17290
17291 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17292 instead of unibyte_char_to_multibyte.
17293
17294 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17295
17296 * s/gnu-linux.h: Remove commented out code.
17297
17298 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17299
17300 * Makefile.in: Update what RMS says about using autoconf.
17301 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17302 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17303 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17304 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17305
17306 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17307
17308 * keymap.c (Fkey_description): Move side effect outside of macro call.
17309
17310 * xfaces.c (Finternal_make_lisp_face):
17311 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17312
17313 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17314 (syms_of_fontset): Use ASET.
17315
17316 * fns.c (concat): Move side effect outside of macro call.
17317 (hash_clear): Use ASET.
17318
17319 2008-02-08 Richard Stallman <rms@gnu.org>
17320
17321 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17322 If FORCE, and frame has a surrogate minibuffer for another frame,
17323 delete the other frame first.
17324
17325 2008-02-07 Timo Savola <timo.savola@iki.fi>
17326
17327 * xterm.c (x_detect_focus_change): Handle embed client message.
17328 (handle_one_xevent): Ditto.
17329 (handle_one_xevent): If embedded and we get a button press/release,
17330 request focus.
17331 (xembed_set_info, xembed_send_message): New functions.
17332 (x_make_frame_visible): Call xembed_set_info if embedded.
17333 (x_make_frame_invisible): Call xembed_set_info if embedded.
17334 (x_term_init): Initialize Xatom_XEMBED.
17335 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17336 (x_iconify_frame): Ditto.
17337
17338 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17339 (enum xembed_info, enum xembed_message, enum xembed_focus)
17340 (enum xembed_modifier, enum xembed_accelerator): New.
17341 (xembed_set_info, xembed_send_message): Declare.
17342 (FRAME_X_EMBEDDED_P): New.
17343
17344 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17345 gtk_plug_new.
17346
17347 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17348 window ID of a frame.
17349 (x_window): Reparent frame if embedded.
17350 (Fx_create_frame): Don't set border width if embedded.
17351
17352 * emacs.c (USAGE3): Add --parent-id.
17353 (standard_args): Ditto.
17354
17355 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17356
17357 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17358
17359 2008-02-07 Jim Meyering <meyering@redhat.com>
17360
17361 Use "do...while (0)", not "if (1)...else" in macro definitions.
17362 The latter provokes a warning from gcc about the empty else, when
17363 followed by ";". Also, without that trailing semicolon, it would
17364 silently swallow up any following statement.
17365 * syntax.h (SETUP_SYNTAX_TABLE)
17366 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17367 * buffer.h (DECODE_POSITION): Likewise.
17368 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17369 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17370 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17371 (FETCH_CHAR_ADVANCE): Likewise.
17372 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17373
17374 2008-02-07 Jim Meyering <meyering@redhat.com>
17375
17376 * lread.c [lint]: Don't include <sys/inode.h>.
17377
17378 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17379
17380 * xselect.c (x_handle_dnd_message):
17381 * xmenu.c (digest_single_submenu, xmenu_show):
17382 * xdisp.c (with_echo_area_buffer_unwind_data)
17383 (format_mode_line_unwind_data, unwind_format_mode_line)
17384 (display_menu_bar):
17385 * eval.c (Ffetch_bytecode):
17386 * doc.c (store_function_docstring):
17387 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17388 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17389 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17390
17391 2008-02-07 Kenichi Handa <handa@m17n.org>
17392
17393 * ftxfont.c (ftxfont_open): Don't set
17394 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17395
17396 * ftfont.c (ftfont_open): Fix previous change.
17397
17398 2008-02-06 Jason Rumney <jasonr@gnu.org>
17399
17400 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17401 Use cached metrics for ASCII characters.
17402 (w32font_open_internal): Don't set font's owning_frame.
17403 Cache metrics for ASCII characters.
17404
17405 * w32font.h (struct w32font_info): Add ascii_metrics.
17406 Remove owning_frame.
17407
17408 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17409
17410 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17411 to negative value.
17412
17413 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17414
17415 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17416
17417 * charset.c (syms_of_charset): Set QCtest and Qeq.
17418
17419 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17420
17421 * process.c (Fstart_process):
17422 * callproc.c (Fcall_process): Handle the case where
17423 Funhandled_file_name_directory returns nil.
17424
17425 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17426 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17427 * font.c (check_gstring): Use them and AREF to access the vector before
17428 we know it's really a gstring.
17429 (Ffont_shape_text): Fix typo.
17430 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17431
17432 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17433 Declare.
17434
17435 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17436
17437 2008-02-05 Jason Rumney <jasonr@gnu.org>
17438
17439 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17440 Set smallest_font_height and smallest_char_width in display info.
17441
17442 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17443
17444 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17445
17446 2008-02-05 Miles Bader <miles@gnu.org>
17447
17448 * xfaces.c (get_lface_attributes, merge_named_face)
17449 (lookup_named_face, lookup_derived_face, realize_named_face):
17450 Revert 2008-02-01 change by cyd@stupidchicken.com.
17451
17452 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17453
17454 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17455 fallback fonts.
17456 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17457
17458 2008-02-04 Jason Rumney <jasonr@gnu.org>
17459
17460 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17461 set full_name.
17462 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17463
17464 2008-02-03 Jason Rumney <jasonr@gnu.org>
17465
17466 * makefile.w32-in (OBJ1): Include font.o here.
17467 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17468
17469 2008-02-02 Jason Rumney <jasonr@gnu.org>
17470
17471 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17472
17473 2008-02-01 Jason Rumney <jasonr@gnu.org>
17474
17475 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17476
17477 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17478
17479 2008-02-01 Andreas Schwab <schwab@suse.de>
17480
17481 * Makefile.in (shortlisp, lisp): Update for rename of
17482 ../lisp/language/myanmar.el.
17483
17484 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17485
17486 * xfaces.c (get_lface_attributes): Delete function.
17487 (merge_named_face, lookup_named_face, lookup_derived_face)
17488 (realize_named_face): Call lface_from_face_name directly, and use
17489 the fact that merge_face_vectors does not alter its FROM argument.
17490
17491 2008-02-01 Jason Rumney <jasonr@gnu.org>
17492
17493 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17494 input in the default locale. Handle non-Unicode multibyte input.
17495
17496 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17497
17498 * fontset.c (reorder_font_vector): Exclude nil elements from the
17499 font group. Don't try multiple fonts.
17500 (fontset_font): Adjust for the above change.
17501 (Finternal_char_font): Return nil if the found font doesn't
17502 contain the character ch.
17503
17504 * Makefile.in (lisp, shortlisp): Add cham.el.
17505
17506 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17507
17508 * font.h (FONTP): Make it return 1 also for a font-object.
17509
17510 * .gdbinit (xfontset): New function.
17511
17512 * font.c (font_find_for_lface): Check if the character C is
17513 supported or not only for the first font.
17514
17515 * fontset.c (reorder_font_vector): Fix typo.
17516 (fontset_find_font): Don't add a font-spec specifying a script.
17517 Use 0 (not Qt) for the indication of empty font-group. Change the
17518 format of RFONT-DEF. Return Qt if no font in the font-group
17519 support the character.
17520 (fontset_font): Adjust for the above change. If no font was
17521 found the character, remember that.
17522 (face_for_char): Adjust for the change of RFONT-DEF.
17523 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17524 no font for the target.
17525 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17526
17527 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17528
17529 * font.c (font_load_for_face): Handle the case that the font in
17530 face->lface is a string.
17531
17532 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17533
17534 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17535
17536 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17537
17538 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17539 Fix previous change. If the frame is not on a window system,
17540 signal an error.
17541
17542 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17543
17544 * coding.c (decode_coding_object, encode_coding_object): Adjust
17545 marker positions after conversion.
17546
17547 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17548
17549 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17550
17551 * font.c (font_find_for_lface): Fix the handling of the return
17552 value of font_has_char.
17553 (Ffont_shape_text): Fix previous change.
17554
17555 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17556 (fontset_ref_and_range): Delete it.
17557 (fontset_find_font): Call char_table_ref_and_range instead of
17558 FONTSET_REF_AND_RANGE.
17559 (make_fontset): Don't setup font groups of Latin here.
17560 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17561 (new_fontset_from_font): Make the specified font the default for
17562 all Latin characters.
17563
17564 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17565
17566 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17567 is on a window system before accessing the fontset of the frame.
17568
17569 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17570
17571 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17572
17573 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17574 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17575
17576 * font.c (Ffont_shape_text): If the font driver doesn't have a
17577 shaper function, make zero-width glyphs to have at least one-pixel
17578 width. Fix setting of `to' field of glyphs.
17579
17580 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17581
17582 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17583 glyphs.
17584
17585 * font.h (struct font_driver): Improve docstring of member `shape'.
17586
17587 2008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * composite.c (syms_of_composite): Fix docstring of
17590 auto-composition-function.
17591
17592 * font.h (LGLYPH_SIZE): New macro.
17593
17594 * font.c (Ffont_fill_gstring): Stop filling when a character not
17595 supported by the font is found.
17596 (Ffont_shape_text): When a shape callback function returns nil,
17597 try at most two more times with larger gstring.
17598 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17599
17600 * xdisp.c (handle_auto_composed_prop): Change the argument to
17601 auto-composition-function.
17602
17603 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17604 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17605 Lispy glyph and store it in the lgstring.
17606
17607 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17608
17609 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17610
17611 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17612
17613 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17614
17615 * fontset.c (Vfont_encoding_charset_alist): New variable.
17616 (syms_of_fontset): DEFVAR it.
17617 (reorder_font_vector, fontset_find_font): Optimize for the case of
17618 no need of reordering.
17619 (face_for_char): Map the charset property by
17620 Vfont_encoding_charset_alist.
17621
17622 2008-02-01 Jason Rumney <jasonr@gnu.org>
17623
17624 * w32font.c (logfonts_match): Don't check adstyle here.
17625 (font_matches_spec): Check here against physical font instead.
17626 (add_font_entity_to_list): Avoid some substitutions.
17627
17628 * font.c (font_parse_fcname): Default weight and slant to normal.
17629 (font_score): Prefer normal fonts if weight or slant unspecified.
17630 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17631 match freetype scores.
17632
17633 2008-02-01 Jason Rumney <jasonr@gnu.org>
17634
17635 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17636 font, as it may have been deleted.
17637 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17638 most common hyphenless variation.
17639 (logfonts_match): Check generic family.
17640 (font_matches_spec): Don't check generic family here.
17641 (fill_in_logfont): Set generic family based on adstyle.
17642
17643 * w32font.h (w32font_get_cache): Update declaration.
17644
17645 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17646
17647 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17648
17649 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17650 If none of the new drivers are available, call font_update_drivers
17651 with the old drivers.
17652
17653 * w32font.c (w32font_get_cache): Adjust the argument type.
17654
17655 * xfont.c (xfont_get_cache): Adjust the argument type.
17656
17657 * font.h (struct font_driver): Change argument type of get_cache.
17658
17659 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17660
17661 * font.c (Ffont_get): Fix arguments to Fassoc.
17662 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17663 (font_clear_cache): New function.
17664 (font_list_entities, font_matching_entity): Use font_get_cache.
17665 (font_update_drivers): Call font_clear_cache when finishing a driver.
17666
17667 * fontset.c (fontset_find_font): Fix previous change.
17668
17669 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17670
17671 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17672 dpyinfo->font_table.
17673 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17674 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17675
17676 * font.c (font_at): Handle the case that the arg C is negative.
17677 Handle the unibyte case.
17678 (Ffont_at): Call font_at with the arg C -1.
17679
17680 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17681 the position here, and call font_at with the arg C -1.
17682 Don't check the range of the existing composition at the point.
17683
17684 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17685
17686 * fontset.c (fontset_add): New args charset_id and family.
17687 Change caller.
17688 (load_font_get_repertory, fontset_find_font): Assume that
17689 font_spec is always a font-spec object.
17690 (Fset_fontset_font): Always store a font-spec object in a fontset.
17691
17692 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17693 instead of get_property_and_range.
17694
17695 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17696
17697 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17698 (xftfont_open): Don't keep locking face.
17699 (xftfont_close): Don't unlock face.
17700 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17701
17702 * fontset.c (fontset_find_font): Don't prefer a font of
17703 supplementary charset.
17704
17705 2008-02-01 Kenichi Handa <handa@m17n.org>
17706
17707 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17708 script, langsys_tag to langsys, new member script.
17709 (OTF_TAG_STR): Terminate by '\0'.
17710 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17711 listing to the script specified in that property. Fix arg to
17712 OTF_check_features.
17713
17714 2008-02-01 Jason Rumney <jasonr@gnu.org>
17715
17716 * w32font.h: New file.
17717
17718 * w32font.c: Include it.
17719 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17720 (w32font_open): Set owning_frame.
17721 (w32font_text_extents): Use owning_frame.
17722 (struct font_callback_data): Add opentype_only field.
17723 (add_font_entity_to_list): Use it to filter fonts.
17724 Don't check against full name.
17725 (w32font_list_internal): New function.
17726 (w32font_list): Use it.
17727 (w32font_match_internal): New function.
17728 (w32font_match): Use it.
17729 (w32font_open_internal): New function.
17730 (w32font_open): Use it.
17731 (w32font_get_cache, w32font_close, w32font_has_char)
17732 (w32font_encode_char, w32font_text_extents, w32font_draw):
17733 Make non-static.
17734
17735 * makefile.w32-in (w32font.o): Depend on w32font.h.
17736
17737 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17738
17739 * charset.c (Fdefine_charset_internal): Record a supplementary
17740 charset at the tail of Vcharset_order_list.
17741
17742 * font.c (Ffont_shape_text): Fix the return value.
17743
17744 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17745
17746 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17747
17748 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17749
17750 * ftfont.c (struct OpenTypeSpec): New struct.
17751 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17752 (ftfont_get_open_type_spec): New function.
17753 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17754
17755 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17756
17757 2008-02-01 Jason Rumney <jasonr@gnu.org>
17758
17759 * w32font.c (add_font_entity_to_list): Compare only the beginning
17760 of full name.
17761
17762 2008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17765 Never return HANDLED_RECOMPUTE_PROPS.
17766
17767 2008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * font.c (font_gstring_produce): Delete it.
17770
17771 * composite.h (COMPOSITION_METHOD):
17772 Handle COMPOSITION_WITH_GLYPH_STRING.
17773
17774 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17775
17776 * xfont.c (Qx): Delete.
17777 (syms_of_xfont): Don't initialize Qx.
17778
17779 * composite.h (enum composition_method):
17780 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17781
17782 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17783
17784 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17785 (choose_face_font): Accept new form of font-spec.
17786
17787 * frame.h (font_driver_list): Declare it unconditionally.
17788 (struct frame): Define members font_driver_list and font_data_list
17789 unconditionally.
17790
17791 * fontset.c: Include "font.h" unconditionally.
17792 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17793 (Fset_fontset_font): Accept a font-spec object.
17794
17795 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17796 PIXEL_SIZE part a wild card.
17797
17798 * dispextern.h (struct glyph_string): Define members clip and
17799 num_clips unconditionally.
17800 (struct face): Define members font_info and extra unconditionally.
17801
17802 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17803 ftfont_info only when HAVE_LIBOTF is defined.
17804
17805 2008-02-01 Andreas Schwab <schwab@suse.de>
17806
17807 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17808 and end.
17809
17810 2008-02-01 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32font.c (w32font_driver): Add new fields.
17813
17814 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17815
17816 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17817 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17818 (LIBES): Add @M17N_FLT_CFLAGS@.
17819
17820 * composite.c (compose_text): Don't treat the new style
17821 composition specially.
17822
17823 * emacs.c (main): Call syms_of_font unconditionally.
17824
17825 * font.h (FONT_ENTITY_NOT_LOADABLE)
17826 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17827 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17828 (struct font_driver): New member shape.
17829 (font_registry_charsets): Extern it.
17830 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17831 (font_otf_capability, font_drive_otf): Delete their externs.
17832
17833 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17834 (font_charset_alist, font_registry_charsets): Move from xfont.c
17835 and rename.
17836 (font_prop_validate_otf): New function.
17837 (font_property_table): Register it for QCotf.
17838 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17839 (font_drive_otf): Delete.
17840 (font_prepare_composition): New arg F. Adjust for the change of
17841 lispy gstring.
17842 (font_find_for_lface): New arg C.
17843 (font_load_for_face): Adjust for the change of font_find_for_lface.
17844 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17845 lispy gstring.
17846 (Ffont_shape_text): New function.
17847 (Fopen_font): If the font size is not given, use 12-pixel.
17848 (Ffont_at): New arg STRING.
17849 (syms_of_font): Initalize font_charset_alist.
17850 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17851 conditionally.
17852
17853 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17854 fonts of the same font-spec. Change the format of RFONT-DEF.
17855 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17856 Adjust for the change of RFONT-DEF.
17857 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17858
17859 * ftfont.h: New file.
17860
17861 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17862 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17863 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17864 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17865 font_otf_capability and font_drive_otf, set ftfont_shape.
17866 (ftfont_list): Adjust for the change of :otf property value.
17867 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17868 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17869 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17870 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17871 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17872 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17873
17874 * w32term.c (x_draw_composite_glyph_string_foreground):
17875 Adjust for the change of lispy gstring.
17876
17877 * xdisp.c (handle_composition_prop): Adjust for the change of
17878 lispy gstring. Call a function for auto-composition with the
17879 third arg it->window.
17880 (fill_composite_glyph_string): Adjust for the change of lispy string.
17881 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17882
17883 * xfaces.c (set_font_frame_param): Adjust for the change of
17884 font_find_for_lface.
17885
17886 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17887 (xfont_registry_charsets): Likewise. Change caller.
17888 (syms_of_xfont): Don't handle x_font_charset_alist.
17889
17890 * xftfont.c: Include "ftfont.h".
17891 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17892 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17893 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17894 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17895 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17896 Set xftfont_driver.shape to xftfont_shape.
17897
17898 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17899 the change of lispy gstring.
17900
17901 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17902
17903 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17904
17905 2008-02-01 Jason Rumney <jasonr@gnu.org>
17906
17907 * w32font.c (w32font_draw): Fill background manually.
17908
17909 2008-02-01 Jason Rumney <jasonr@gnu.org>
17910
17911 * font.c (Qfontp): Remove unused symbol.
17912 (QCantialias): New symbol.
17913 (syms_of_font): Define it.
17914 (font_property_table): Set a validator for QCantialias.
17915
17916 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17917 Define if not already.
17918 (QCfamily): Share with xfaces.c.
17919 (Qstandard, Qsubpixel, Qnatural): New symbols.
17920 (syms_of_w32font): Define them. Don't define QCfamily here.
17921 (w32_antialias_type, lispy_antialias_type): New functions.
17922 (w32_enumfont_pattern_entity): New arg requested_font.
17923 Set antialias parameter if non-default was requested.
17924 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17925
17926 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17927
17928 * lread.c (read1): Undo the previous change.
17929
17930 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17931
17932 * frame.c (Fdelete_frame): Call font_update_drivers only when
17933 USE_FONT_BACKEND is defined.
17934
17935 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17936
17937 * font.h (struct font_bitmap): New member bits_per_pixel.
17938 (struct font_driver): New members start_for_frame and end_for_frame.
17939 (struct font_data_list): New struct.
17940 (font_put_frame_data, font_get_frame_data): Extern them.
17941
17942 * frame.h (struct frame): New member font_data_list.
17943
17944 * font.c (font_update_drivers): Call driver->start_for_frame and
17945 driver->end_for_frame at proper timings.
17946 (font_put_frame_data, font_get_frame_data): New functions.
17947 (Ffont_spec): Add usage in the docstring.
17948
17949 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17950 (Fdelete_frame): Call font_update_drivers.
17951
17952 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17953 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17954 (xftfont_get_xft_draw): New function.
17955 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17956 (xftfont_end_for_frame): New function.
17957 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17958
17959 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17960 Change argument. Cache GCs in the per-frame data.
17961 (struct ftxfont_frame_data): New struct.
17962 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17963 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17964 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17965 (ftxfont_end_for_frame): New function.
17966 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17967
17968 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17969
17970 2008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * xselect.c (Vselection_coding_system)
17973 (Vnext_selection_coding_system): Delete them.
17974 (syms_of_xselect): Don't declare selection-coding-system and
17975 next-selection-coding-system. They are declared in select.el.
17976
17977 2008-02-01 Jason Rumney <jasonr@gnu.org>
17978
17979 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17980
17981 * w32fns.c: Include imm.h.
17982 (get_composition_string_fn, get_ime_context_fn): New optional
17983 system functions.
17984 (globals_of_w32fns): Load them from imm32.dll.
17985 (ignore_ime_char): New flag.
17986 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17987 WM_IME_ENDCOMPOSITION messages.
17988
17989 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17990 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17991
17992 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17993
17994 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17995 (READCHAR_REPORT_MULTIBYTE): New macro.
17996 (readchar): New 2nd arg MULTIBYTE.
17997 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17998 Make symbol's name multibyte according to the multibyteness of the
17999 source.
18000
18001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18002
18003 * xfaces.c (face_for_overlay_string): Call lookup_face with
18004 correct arguments (fix of synching with the trunk).
18005
18006 2008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18009 (font_prop_validate_non_neg, font_prop_validate_spacing):
18010 Delete argument prop_index.
18011 (font_property_table): Change arguments to validater. Change Callers.
18012 (font_lispy_object): Delete.
18013 (font_at): Use font_find_object instead fo font_lispy_object.
18014
18015 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18016
18017 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18018 and file names.
18019
18020 2008-02-01 Jason Rumney <jasonr@gnu.org>
18021
18022 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18023 (font_matches_spec): Remove debug output.
18024 (add_font_entity_to_list): Avoid using substituted fonts.
18025
18026 2008-02-01 Jason Rumney <jasonr@gnu.org>
18027
18028 * doc.c (Fsnarf_documentation):
18029 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18030
18031 2008-02-01 Miles Bader <miles@gnu.org>
18032
18033 * dispextern.h (struct glyph_row): Only define "clip" field if
18034 HAVE_WINDOW_SYSTEM is defined.
18035
18036 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18037
18038 Fix up multi-tty merge.
18039
18040 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18041 and indentation.
18042
18043 * xfaces.c (free_realized_face, clear_face_gcs):
18044 Include font_done_for_face in the input_blocked section, just in case.
18045
18046 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18047 (get_char_face_and_encoding): Undo last change and remove the *other*
18048 duplicate definition (i.e. keep the one that's better scoped and that
18049 includes code for the font-backend).
18050
18051 * terminal.c (create_terminal): Default keyboard_coding to
18052 `no-conversion' and terminal_coding to `undecided'.
18053
18054 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18055
18056 * fontset.c (free_realized_fontsets): Check that the table entry does
18057 contain a fontset before trying to compare it to `base'.
18058
18059 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18060 syms_of_charset, and syms_of_coding earlier because init_window_once
18061 now needs Vcoding_system_hash_table to be setup.
18062
18063 * coding.h (default_buffer_file_coding): Remove.
18064
18065 * coding.c (default_buffer_file_coding): Remove.
18066 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18067 than ->symbol, and use the terminal-local coding system.
18068 (syms_of_coding): Don't setup the coding-systems that are not
18069 terminal-local.
18070 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18071
18072 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18073 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18074
18075 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18076 in chartab.c and were re-added here by mistake.
18077 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18078
18079 * doc.c (Fsnarf_documentation):
18080 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18081 src to etc.
18082
18083 * ChangeLog.10: Add mistakenly removed entry.
18084
18085 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18086
18087 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18088
18089 2008-02-01 Miles Bader <miles@gnu.org>
18090
18091 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18092 Add extra args to FACE_FOR_CHAR.
18093
18094 2008-02-01 Kenichi Handa <handa@m17n.org>
18095
18096 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18097 in sequence.
18098
18099 * chartab.c (map_sub_char_table, map_char_table): If the range
18100 contains just one character, call the function with that character
18101 even if the depth is not 3.
18102
18103 2008-02-01 Jason Rumney <jasonr@gnu.org>
18104
18105 * w32font.c (w32font_text_extents): Calculate metrics for the
18106 whole string.
18107
18108 2008-02-01 Jason Rumney <jasonr@gnu.org>
18109
18110 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18111
18112 2008-02-01 Jason Rumney <jasonr@gnu.org>
18113
18114 * w32term.c (x_set_glyph_string_clipping): Use
18115 get_glyph_string_clip_rects.
18116 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18117 Adjust for the change of struct glyph_string.
18118
18119 * w32font.c (w32font_draw): Do clipping here.
18120
18121 2008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * xftfont.c (xftfont_draw): Adjust for the change of struct
18124 glyph_string.
18125
18126 * xterm.c (x_set_glyph_string_clipping): Use
18127 get_glyph_string_clip_rects.
18128 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18129 Adjust for the change of struct glyph_string.
18130
18131 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18132 the resulting clip(s}.
18133 (expose_overlaps): Add arg r. Change callers. Set it to
18134 row->clip temporarily.
18135 (expose_window): Redraw rows overlapping the exposed area.
18136
18137 * dispextern.h (struct glyph_row): New member clip.
18138 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18139 clip_height, new member clip, and num_clips.
18140
18141 2008-02-01 Kenichi Handa <handa@m17n.org>
18142
18143 * data.c (Fchar_or_string_p): Fix docstring.
18144
18145 2008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18148 create a temporary XftDraw object.
18149
18150 2008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * font.c (Ffontp): Fix docstring.
18153
18154 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18155 strong evidence of ISO-2022.
18156
18157 2008-02-01 Kenichi Handa <handa@m17n.org>
18158
18159 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18160 SYNTAX_ENTRY_FOLLOW_PARENT.
18161
18162 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18163
18164 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18165 its type.
18166 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18167 Update to the new type of weak_hash_tables and next_weak.
18168
18169 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18170 a plain C pointer to Lisp_Hash_Table.
18171
18172 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18173 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18174 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18175 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18176 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18177 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18178 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18179 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18180 (GC_EQ): Remove since they've been identical to their non-GC_
18181 alter-egos ever since the markbit was eradicated.
18182
18183 * alloc.c:
18184 * buffer.c:
18185 * buffer.h:
18186 * data.c:
18187 * fileio.c:
18188 * filelock.c:
18189 * fns.c:
18190 * frame.h:
18191 * lisp.h:
18192 * macterm.c:
18193 * print.c:
18194 * process.c:
18195 * w32fns.c:
18196 * w32menu.c:
18197 * w32term.c:
18198 * xfns.c:
18199 * xmenu.c:
18200 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18201
18202 2008-02-01 Kenichi Handa <handa@m17n.org>
18203
18204 * chartab.c (map_sub_char_table): Make it work for the top-level
18205 char-table. Fix handling of parent char-table.
18206 (map_char_table): Adjust for the above change.
18207
18208 2008-02-01 Jason Rumney <jasonr@gnu.org>
18209
18210 * w32font.c (Qgdi): Rename from Qw32.
18211
18212 2008-02-01 Jason Rumney <jasonr@gnu.org>
18213
18214 * w32bdf.c (get_quoted_string): Make function static.
18215
18216 2008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18219 bigger ascent and descent than those of the font, use them as
18220 font's ascent and descent.
18221
18222 2008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * Makefile.in (${lispsource}international/charprop.el): Move this
18225 target within "#ifdef HAVE_UNIDATA" and "#endif".
18226
18227 2008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18230 (shortlisp): Add ../lisp/language/tai-viet.el.
18231
18232 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18233
18234 * Makefile.in (${lispsource}international/charprop.el): Depend on
18235 temacs${EXEEXT}.
18236
18237 2008-02-01 Jason Rumney <jasonr@gnu.org>
18238
18239 * w32font.c (w32font_close): Delete the GDI font object.
18240
18241 * w32menu.c: Include character.h.
18242
18243 * w32proc.c: Likewise.
18244
18245 * w32select.c: Likewise.
18246
18247 * makefile.w32-in (w32proc.o): Depend on character.h.
18248
18249 2008-02-01 Jason Rumney <jasonr@gnu.org>
18250
18251 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18252
18253 * w32menu.c (syms_of_w32menu): Likewise.
18254
18255 * w32proc.c (syms_of_ntproc): Likewise.
18256
18257 * w32select.c (syms_of_w32select): Likewise.
18258
18259 * w32term.c (syms_of_w32term): Likewise.
18260
18261 2008-02-01 Jason Rumney <jasonr@gnu.org>
18262
18263 * w32font.c (w32font_draw): Delete brush after using it.
18264
18265 2008-02-01 Jason Rumney <jasonr@gnu.org>
18266
18267 * w32font.c (w32font_open): Don't set font_idx.
18268 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18269 to font settings.
18270 (w32font_draw): Fill background explicitly.
18271
18272 2008-02-01 Jason Rumney <jasonr@gnu.org>
18273
18274 * w32term.c (w32_initialize): Don't call w32font_initialize.
18275
18276 * w32font.c (w32font_info): Remove subranges.
18277 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18278 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18279 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18280 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18281 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18282 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18283 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18284 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18285 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18286 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18287 New symbols.
18288 (font_callback_data): New struct.
18289 (w32font_list, w32font_match): Use it.
18290 (w32font_open): Don't populate subranges.
18291 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18292 (w32font_encode_char): Always return unicode code-point as-is.
18293 (w32font_text_extents): Supply a transformation matrix to
18294 GetGlyphOutline. Never look up by glyph index. Avoid looping
18295 twice. Use unicode version of GetTexExtentPoint32 instead of
18296 glyph index version.
18297 (set_fonts_frame): Remove.
18298 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18299 set frame parameter. Use backward compatible fake foundries.
18300 Save generic family in extra slot under QCfamily. Make width slot
18301 constant. Save QCspacing value. Save list of scripts instead of
18302 binary subranges.
18303 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18304 (add_font_entity_to_list): Use font_callback_data struct. Filter
18305 unwanted fonts.
18306 (add_one_font_entity_to_list): Use font_callback_data struct.
18307 (w32_registry): Default to iso10646_1.
18308 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18309 string font registries. Don't fill in font name if it is a generic
18310 family name, fill family instead. Use spacing, family and script
18311 extra info to fill pitch, family and charset fields.
18312 (list_all_matching_fonts): Use font_callback_data struct.
18313 (unicode_range_for_char): Remove.
18314 (font_supported_scripts): New function.
18315 (w32font_initialize): Remove.
18316 (syms_of_w32font): Update which symbols are defined.
18317
18318 2008-02-01 Jason Rumney <jasonr@gnu.org>
18319
18320 * font.c (font_pixel_size): Reverse assq_no_quit args.
18321
18322 * w32term.h (FONT_WIDTH): Report max width, not average.
18323 (FONT_MAX_WIDTH): Remove.
18324 (FONT_AVG_WIDTH): New macro.
18325
18326 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18327 redefinition of FONT_WIDTH.
18328
18329 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18330 (w32_cache_char_metrics): Use FONT_WIDTH.
18331
18332 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18333
18334 2008-02-01 Jason Rumney <jasonr@gnu.org>
18335
18336 * w32font.c (w32font_open): Make lfHeight negative.
18337
18338 * w32fns.c (x_default_font_parameter): Use new style font name.
18339 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18340
18341 2008-02-01 Jason Rumney <jasonr@gnu.org>
18342
18343 * w32font.c (QCsubranges): New symbol.
18344 (w32font_open, w32font_has_char): Get subranges from subproperty
18345 of extra.
18346 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18347 (syms_of_w32font): Define :subranges symbol.
18348
18349 * font.c (font_put_extra): Expose externally.
18350
18351 * font.h (font_put_extra): Move declaration from font.c.
18352
18353 * font.c (Ffont_get): Use font driver to determine otf capability.
18354 (adjust_anchor): Check if driver defines anchor_point before using.
18355
18356 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18357 (w32font_draw): Use options.
18358 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18359 Fix detection of truetype fonts.
18360 (registry_to_w32_charset): Handle charsets other than iso8859-1
18361 expressed as lisp symbols.
18362 (w32_registry): Express charset as lisp symbol.
18363 (fill_in_logfont): Reverse pixel and point height logic.
18364 Don't set width here. Set quality to default.
18365
18366 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18367 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18368
18369 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18370 Remove redundant loop and allocation.
18371
18372 * makefile.w32-in (font.o, w32font.o): New objects.
18373 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18374 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18375
18376 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18377 STORE_XCHARB a valid l-value.
18378
18379 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18380 calculations for non-Truetype fonts.
18381 (x_draw_glyph_string): Sync with xterm.c.
18382 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18383 Remove redundant code.
18384 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18385
18386 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18387 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18388
18389 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18390 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18391
18392 * w32font.c: New file for w32 font backend.
18393
18394 2008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * term.c: Don't include "buffer.h" twice.
18397
18398 2008-02-01 Kenichi Handa <handa@m17n.org>
18399
18400 * character.c (Funibyte_string): New function.
18401 (syms_of_character): Defsubr it.
18402
18403 2008-02-01 Jason Rumney <jasonr@gnu.org>
18404
18405 * w32term.c [USE_FONT_BACKEND]:
18406 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18407 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18408 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18409 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18410 (x_free_frame_resources): Sync with xterm.c.
18411
18412 2008-02-01 Andreas Schwab <schwab@suse.de>
18413
18414 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18415 char-table size.
18416
18417 2008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18420
18421 2008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18424 font_otf_gpos, add font_drive_otf.
18425
18426 * fontset.c (fontset_find_font): Pay attention to font size
18427 specified for a font.
18428 (reorder_font_vector): Check contents of font_def.
18429
18430 * font.c (struct otf_list): Delete it.
18431 (otf_list): Make it a lisp variable.
18432 (otf_open): Use lispy otf_list.
18433 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18434 (check_otf_features): New function.
18435 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18436 New functions.
18437 (font_drive_otf): New function merging font_otf_gsub and
18438 font_otf_gpos.
18439 (font_open_for_lface): New arg spec. Change argument order.
18440 (font_load_for_face): Adjust for the change of font_open_for_lface.
18441 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18442 Ffont_otf_gpos.
18443 (syms_of_font): Staticpro otf_list. Delete defsubr of
18444 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18445
18446 * xfaces.c (set_font_frame_param): Adjust for the change of
18447 font_open_for_lface.
18448
18449 * font.h (font_open_for_lface): Adjust prototype.
18450 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18451 member otf_drive.
18452 (font_otf_gsub, font_otf_gpos): Delete externs.
18453 (font_drive_otf): Extern it.
18454
18455 2008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * font.c (font_at): If the window W is not on a window system,
18458 return Qnil.
18459
18460 * coding.c (produce_chars, encode_coding): Don't call
18461 insert_from_gap if no characters to produce.
18462
18463 2008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18466 Fclear_face_cache.
18467
18468 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18469
18470 2008-02-01 Miles Bader <miles@gnu.org>
18471
18472 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18473 Parse "--disable-font-backend" option.
18474 (standard_args): Add "--disable-font-backend" option.
18475
18476 2008-02-01 Kenichi Handa <handa@m17n.org>
18477
18478 * fontset.c (fontset_find_font): New function.
18479 (fontset_font): Use fontset_find_font.
18480 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18481 Register the specified font for all Latin characters.
18482 (new_fontset_from_font): Register the specified font for all Latin
18483 characters.
18484 (dump_fontset): For a realized fontset, include the base fontset
18485 name in the returned vector.
18486
18487 2008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 * character.h (CHAR_STRING): Cast C to unsigned on calling
18490 char_string.
18491
18492 * character.c (char_string): Type of arg C changed to unsigned.
18493 Signal an error if C is an invalid character code.
18494
18495 * editfns.c (general_insert_function, Fchar_to_string):
18496 Use CHARACTERP, not INTEGERP.
18497
18498 2008-02-01 Kenichi Handa <handa@m17n.org>
18499
18500 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18501 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18502
18503 * regex.c (analyse_first): Fix for multibyte characters in "case
18504 charset:" and "case categoryspec:".
18505
18506 2008-02-01 Andreas Schwab <schwab@suse.de>
18507
18508 * Makefile.in (LIBES): Move standard libraries to the end.
18509
18510 2008-02-01 Kenichi Handa <handa@m17n.org>
18511
18512 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18513 nonzero, don't shrink the buffer nextb.
18514
18515 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18516
18517 * coding.c (coding_alloc_by_making_gap): New arg offset.
18518 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18519 offset.
18520 (decode_coding_iso_2022): Update coding->safe_charsets.
18521 (decode_coding_gap): Temporarily set
18522 current_buffer->text->inhibit_shrinking to 1.
18523
18524 2008-02-01 Kenichi Handa <handa@m17n.org>
18525
18526 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18527 indexing into elements of s->cmp and s->char2b.
18528
18529 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18530
18531 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18532
18533 2008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18536 target_multibyte instead of multibyte.
18537 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18538 (bcmp_translate): Change the argument name from multibyte to
18539 target_multibyte.
18540
18541 2008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 These changes are to compile a regexp into a pattern that can be
18544 used both for multibyte and unibyte targets.
18545
18546 * Makefile.in (search.o): Depend on charset.h.
18547
18548 * character.c (multibyte_char_to_unibyte_safe): New function.
18549
18550 * search.c: Include "charset.h".
18551 (compile_pattern_1): Delete argument multibyte. Don't set
18552 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18553 (compile_pattern): Don't compare cp->buf.target_multibyte.
18554 Compare cp->buf.charset_unibyte.
18555 (compile_pattern): Set cp->buf.target_multibyte.
18556
18557 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18558
18559 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18560
18561 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18562 multibyte. Change callers.
18563 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18564 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18565 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18566 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18567 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18568 (regex_compile): Make the compiled pattern usable both for
18569 multibyte and unibyte targets.
18570 (analyse_first): Make the fastmap usable both for multibyte and
18571 unibyte targets.
18572 (TRANSLATE_VIA_MULTIBYTE): Delete.
18573 (re_match_2_internal): Pay attention to the case that the
18574 multibyteness of bufp and target may be different.
18575
18576 2008-02-01 Kenichi Handa <handa@m17n.org>
18577
18578 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18579 empty box occupy at least one column width.
18580
18581 2008-02-01 Miles Bader <miles@gnu.org>
18582
18583 * Makefile.in: Remove redundant HAVE_XFT clause.
18584
18585 2008-02-01 Kenichi Handa <handa@m17n.org>
18586
18587 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18588
18589 2008-02-01 Kenichi Handa <handa@m17n.org>
18590
18591 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18592 being nil.
18593
18594 2008-02-01 Kenichi Handa <handa@m17n.org>
18595
18596 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18597
18598 2008-02-01 Kenichi Handa <handa@m17n.org>
18599
18600 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18601
18602 2008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * search.c (simple_search): Fix previous change.
18605
18606 2008-02-01 Kenichi Handa <handa@m17n.org>
18607
18608 * xftfont.c (ftfont_font_format): Extern declaration.
18609
18610 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18611
18612 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18613 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18614
18615 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18616 (ftfont_font_format): Fix previous change.
18617
18618 * font.h (Ffont_xlfd_name): EXFUN it.
18619
18620 * font.c (font_parse_xlfd): Fix the array size of `f'.
18621 (register_font_driver): Use EQ to compare driver->type.
18622
18623 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18624 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18625 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18626
18627 2008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18630 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18631
18632 2008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * xfont.c (xfont_open): Set font->format.
18635
18636 * xftfont.c (xftfont_open): Set font->format.
18637
18638 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18639 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18640 (ftfont_open): Set font->format.
18641 (ftfont_font_format): New function.
18642
18643 * font.h (struct font): New member format.
18644
18645 * font.c (Qopentype): New variable.
18646 (syms_of_font): Defsym it.
18647 (Fquery_font): Change the format of the last element of the return
18648 value.
18649
18650 2008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18653 last resort.
18654
18655 2008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * coding.c (detect_coding_charset): Fix detection of multi-byte
18658 charset.
18659
18660 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18661
18662 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18663
18664 2008-02-01 Kenichi Handa <handa@m17n.org>
18665
18666 * xdisp.c (get_next_display_element): Set it->face_id for the
18667 first component of a composition.
18668 (x_produce_glyphs): Check if the font is changed or not for composition.
18669
18670 2008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * fontset.c (Qlatin): New variable.
18673 (syms_of_fontset): Define it as a lisp symbol.
18674 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18675
18676 2008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * font.c (font_unparse_fcname): Pay attention to the case that
18679 some of font property is a null string.
18680
18681 2008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * term.c: Include "composite.h".
18684 (encode_terminal_code): Output all components of composition.
18685 Check the size of encode_terminal_src.
18686 (produce_glyphs): For composition, call produce_composite_glyph.
18687 (append_composite_glyph, produce_composite_glyph): New functions.
18688
18689 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18690 is not found, get font_info from the current ascii face.
18691
18692 2008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18695 buffer-file-name to Qnil before calling insert_from_buffer.
18696
18697 * font.c (font_unparse_fcname): Pay attention to the case that
18698 foundry is a null string.
18699
18700 2008-02-01 Kenichi Handa <handa@m17n.org>
18701
18702 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18703
18704 * font.c (Qunicode_sip): New variable.
18705 (syms_of_font): Declare it as a Lisp symbol.
18706
18707 * font.h (Qunicode_sip): Extern it.
18708
18709 2008-02-01 Kenichi Handa <handa@m17n.org>
18710
18711 * composite.c (get_composition_id): Pay attention to TAB component.
18712
18713 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18714 TAB. Adjust for the change of s->char2b which always points to
18715 the first element of allocated memory.
18716
18717 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18718
18719 * xdisp.c (handle_composition_prop): Set it->c to the first
18720 non-TAB component.
18721 (fill_composite_glyph_string): Change argument.
18722 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18723 (x_produce_glyphs): Fix handling of left/right padding.
18724
18725 2008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * coding.c (detect_coding_system): Fix for handling off
18728 inhibit_iso_escape_detection. Fix for the case that no coding
18729 system is defined for a specific coding category.
18730
18731 2008-02-01 Kenichi Handa <handa@m17n.org>
18732
18733 * font.c (font_matching_entity): Delete unused local var.
18734
18735 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18736 opening a font.
18737
18738 * fileio.c (Finsert_file_contents): On recovering a file, assume
18739 Unix-like eol.
18740 (choose_write_coding_system): On auto-saving a file, force
18741 Unix-like eol.
18742
18743 * coding.c (setup_coding_system): Fix setting of
18744 coding->common_flags based on eol_type.
18745 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18746 inherit from it.
18747
18748 2008-02-01 Kenichi Handa <handa@m17n.org>
18749
18750 * alloc.c (NSTATICS): Increas to 0x600.
18751
18752 2008-02-01 Kenichi Handa <handa@m17n.org>
18753
18754 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18755 (ftfont_list): Don't check :name property.
18756 (ftfont_match): New function.
18757 (ftfont_pattern_entity): If the pattern doesn't contain
18758 FC_SPACING, don't assume FC_MONO.
18759
18760 * font.h (struct font_driver): New member `match'.
18761 (font_update_drivers): Adjust prototype.
18762
18763 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18764 property of FONT.
18765 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18766 them unconditionally.
18767 (font_matching_entity): New function.
18768 (font_open_by_name): Try font_matching_entity if exact match is
18769 not found.
18770 (font_update_drivers): Delete the arg FONT. Return a list of
18771 actually used backends. Don't free faces, font caches here.
18772 Don't store data in frame parameters. Don't call x_set_font.
18773 (Ffont_spec): Store :name property as is.
18774 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18775 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18776 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18777 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18778 Call font->driver->otf_gsub instead of font_otf_gsub.
18779
18780 * frame.c (x_set_font_backend): Do more works that were done in
18781 font_update_drivers before.
18782
18783 * xfont.c (xfont_match): New function.
18784 (xfont_driver): Set xfont_driver.match to xfont_match.
18785 (xfont_draw): Set font in GC if necessary.
18786
18787 * ftxfont.c (ftxfont_match): New function.
18788 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18789
18790 * xftfont.c (xftfont_match): New function.
18791 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18792
18793 2008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * font.h (struct font): New member scalable.
18796 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18797 (font_otf_gsub): Adjust prototype.
18798
18799 * font.c (font_otf_capability): Fix handling of the default langsys.
18800 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18801 Check the contents of SPEC.
18802 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18803 (check_gstring): New function.
18804 (REPLACEMENT_CHARACTER): New macro.
18805 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18806 glyph codes of GSTRING.
18807 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18808 (font_prepare_composition): Set cmp->glyph_len.
18809 (font_open_entity): Set font->scalable.
18810 (Ffont_get): Handle :otf property.
18811 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18812 functions.
18813 (Fquery_font): Use font->font.full_name.
18814 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18815 Sfont_otf_alternates.
18816
18817 * ftfont.c (ftfont_open): Set font->font.full_name and
18818 font->font.name properly. Fix calculation of font->font.height
18819 and font->min_width.
18820
18821 * ftxfont.c (ftxfont_create_gcs): New function.
18822 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18823 (ftxfont_draw_backgrond): Fix filling region.
18824 (ftxfont_default_fid): New function.
18825 (ftxfont_open): Set xfont->fid to the return value of
18826 ftxfont_default_fid.
18827 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18828 (ftxfont_done_face): Free only GCs that are created by
18829 ftxfont_create_gcs.
18830 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18831
18832 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18833 Clip to src->width, etc (not src->clip_XXX).
18834
18835 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18836 FontBackend frame parameter.
18837
18838 2008-02-01 Kenichi Handa <handa@m17n.org>
18839
18840 * font.h (struct font_driver_list): New member `on'.
18841 (Fclear_font_cache): EXFUN it.
18842 (font_update_drivers): Extern it.
18843
18844 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18845 (font_list_entities): Check driver_list->on.
18846 (register_font_driver): Initalize `on' member to 0.
18847 (font_update_drivers): New function.
18848 (Fclear_font_cache): Check driver_list->on.
18849
18850 * frame.h (Qfont_backend): Extern it.
18851 (x_set_font_backend): Extern it.
18852
18853 * frame.c (Qfont_backend): New variable.
18854 (frame_parms): New element for font-backend.
18855 (x_set_font_backend): New function.
18856
18857 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18858 FontBackend frame parameter.
18859 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18860 x_set_font_backend.
18861
18862 * xfont.c (xfont_list): Don't try listing by :name property if the
18863 name is not for XLFD.
18864
18865 2008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18868 (LGLYPH_SET_TO): New macros.
18869 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18870 element of G is vector or not.
18871 (font_at): Extern it.
18872
18873 * font.c: Include window.h.
18874 (font_lispy_object): New function.
18875 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18876 end of valid glyph.
18877 (font_close_object): Fix getting (struct font *).
18878 (font_at): New function.
18879 (Ffont_get): If FONT is a font-object, get entity from it.
18880 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18881 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18882 range check.
18883 (Ffont_at): New function.
18884 (syms_of_font): Defsubr Sfont_at.
18885
18886 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18887 before the entry for Qcomposition.
18888 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18889 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18890 the font in gstring.
18891 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18892 LGLYPH_FORM (g) to detect the end of valid glyph.
18893 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18894 we are composing with gstring.
18895
18896 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18897 Check if adjustment is vector or not.
18898
18899 * Makefile.in (font.o): Make it depends on window.h.
18900
18901 2008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18904 adjustment is vector or not.
18905
18906 2008-02-01 Miles Bader <miles@gnu.org>
18907
18908 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18909
18910 2008-02-01 Kenichi Handa <handa@m17n.org>
18911
18912 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18913 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18914 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18915
18916 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18917 (DEVICE_DELTA): Fix typo.
18918 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18919 LGLYPH format.
18920
18921 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18922 the change of LGLYPH format.
18923
18924 2008-02-01 Kenichi Handa <handa@m17n.org>
18925
18926 * ftfont.c (ftfont_list): Fix typo.
18927 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18928
18929 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18930
18931 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18932
18933 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18934 xftface_info is non-NULL.
18935
18936 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18937
18938 * ftfont.c (ftfont_list): Move misplaced #endif.
18939
18940 2008-02-01 Kenichi Handa <handa@m17n.org>
18941
18942 * ftfont.c (ftfont_list): Pay attention to the case that
18943 FC_CAPABILITY is not defined.
18944
18945 2008-02-01 Kenichi Handa <handa@m17n.org>
18946
18947 * xftfont.c (xftfont_open): Set charset related members to -1.
18948
18949 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18950 QCname.
18951 (ftfont_open): Set charset related members to -1.
18952
18953 * fontset.c (Votf_script_alist): New variable.
18954 (syms_of_fontset): Initialize it.
18955 (fontset_font): Delete unused variable.
18956
18957 * fontset.h (Votf_script_alist): Extern it.
18958
18959 * font.c (font_find_for_lface): Optimize code.
18960
18961 * font.h (font_close_object, font_merge_old_spec): Extern them.
18962
18963 2008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18966 (syms_of_font): Initialize them.
18967 (font_pixel_size): Allow float value in dpi.
18968 (font_prop_validate_type): Delete.
18969 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18970 Change caller.
18971 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18972 (font_prop_validate_extra): Delete.
18973 (font_prop_validate_spacing): New function.
18974 (font_property_table): Add elements for all known properties.
18975 (get_font_prop_index): Rename from check_font_prop_name. New
18976 argument FROM. Change caller.
18977 (font_prop_validate): Validate all known properties.
18978 (font_put_extra): Delete argument force. Change caller.
18979 (font_expand_wildcards): Make it static. Fix the way of shrinking
18980 the possible range.
18981 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18982 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18983 Change caller.
18984 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18985 (font_parse_fcname): Delete argument merge. Fix parsing of point
18986 size. Don't validate properties values here. Change caller.
18987 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18988 (font_open_by_name): Delete unused variable.
18989 (Ffont_spec): Likewise. Validate property values.
18990 (Ffont_match_p): New function.
18991
18992 * font.h (QCscalable): Extern it.
18993 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18994
18995 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18996
18997 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18998 (xfont_list_pattern): New function.
18999 (xfont_list): Use xfont_list_pattern.
19000
19001 2008-02-01 Kenichi Handa <handa@m17n.org>
19002
19003 * font.h (Flist_fonts): EXFUN it.
19004
19005 2008-02-01 Jason Rumney <jasonr@gnu.org>
19006
19007 * w32term.c (w32_initialize): Add back smoothing_type and
19008 smoothing_enabled definitions.
19009
19010 2008-02-01 Kenichi Handa <handa@m17n.org>
19011
19012 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19013 s->face->font on determining underline position.
19014
19015 2008-02-01 Kenichi Handa <handa@m17n.org>
19016
19017 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19018 (font_has_char): Accept font-object too.
19019 (font_find_for_lface): Try at first with a size specified in face.
19020
19021 2008-02-01 Kenichi Handa <handa@m17n.org>
19022
19023 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19024 font_open_by_name.
19025
19026 2008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * font.h (QCspacing, QCdpi): Extern them.
19029 (enum font_spacing): New enum.
19030 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19031
19032 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19033 (QCspacing, QCdpi): New variables.
19034 (syms_of_font): Initialize them.
19035 (font_pixel_size): New function.
19036 (font_put_extra): New function.
19037 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19038 in FONT_EXTRA.
19039 (font_parse_fcname): Handle enumerated values (e.g. bold).
19040 Fix handling font size. Add QCname property that contains only
19041 unknown properties.
19042 (font_score): Change argument. Change caller. Pay attention to
19043 FONT_PIXEL_SIZE_QUANTUM.
19044 (font_sort_entites, font_list_entities, font_find_for_lface)
19045 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19046 (Ffont_spec): Add QCname property that contains only unknown properties.
19047
19048 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19049 include weight in listing pattern, instead check weight of each
19050 listed font. Don't include scalable in pattern. Pay attention to
19051 FONT_PIXEL_SIZE_QUANTUM.
19052
19053 2008-02-01 Kenichi Handa <handa@m17n.org>
19054
19055 * font.c (font_parse_fcname): Fix parsing of point-size.
19056 (font_unparse_fcname): Produce symbolic names for style properties.
19057 (font_list_entities): Handle float size correctly.
19058 (font_open_by_name): Prefer `normal' property values if the name
19059 doesn't specify them.
19060
19061 * fontset.c (Finternal_char_font): Use font_get_name, not
19062 Ffont_xlfd_name.
19063
19064 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19065 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19066 pattern. Don't force scalable.
19067
19068 * xftfont.c (xftfont_open): For generating a name, start from
19069 96-byte buffer.
19070
19071 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19072
19073 * frame.h (x_new_fontset2): Fix prototype.
19074
19075 2008-02-01 Kenichi Handa <handa@m17n.org>
19076
19077 * font.h (struct font_driver): Delete member parse_name.
19078 (font_match_p, font_get_spec, font_parse_fcname)
19079 (font_unparse_fcname): Extern them.
19080 (font_get_name): Adjust prototype.
19081
19082 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19083 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19084 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19085 unnecessary checks for weight, slant, and swidth.
19086 (font_parse_fcname): New function.
19087 (font_unparse_fcname): New function.
19088 (font_parse_name): New function.
19089 (font_match_p): New function.
19090 (font_get_name): Change return value to Lisp string.
19091 (font_get_spec): New function.
19092 (Qunspecified, Qignore_defface): Don't extern them.
19093 (font_find_for_lface): Assume that LFACE is fully specified.
19094 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19095 object, use it for FACE.
19096 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19097 driver->parse_name.
19098 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19099
19100 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19101 prototype.
19102
19103 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19104 argument F. Don't call Fnew_fontset. Instead, directly call
19105 make_fontset.
19106
19107 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19108
19109 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19110 of x_new_fontset2.
19111
19112 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19113 (Qsans__serif): New variables.
19114 (ftfont_generic_family_list): New variable.
19115 (syms_of_ftfont): Initialize the above variables.
19116 (ftfont_pattern_entity): Delete argument NAME.
19117 (ftfont_list_generic_family): New function.
19118 (ftfont_parse_name): Delete this function.
19119 (ftfont_list): Try generic family only when FcFontList found no font.
19120 (ftfont_list_family): Fix args to FcObjectSetBuild.
19121
19122 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19123 object in attrs[LFACE_FONT_INDEX].
19124 (set_lface_from_font_name): Cancel all changes for font-backend.
19125 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19126 function.
19127 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19128 font object in QCfont attribute.
19129 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19130 (realize_default_face) [USE_FONT_BACKEND]: Call
19131 set_lface_from_font_and_fontset.
19132
19133 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19134 "fixed", and signal error here if no suitable font was found.
19135
19136 * xfont.c (xfont_parse_name): Delete this function.
19137
19138 * xftfont.c (xftfont_open): Change coding style of error
19139 handling. Generate fontconfig's fontname pattern.
19140
19141 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19142 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19143
19144 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19145 Both args FONTSET and FONT_OBJECT must be existing ones.
19146
19147 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19148
19149 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19150
19151 2008-02-01 Kenichi Handa <handa@m17n.org>
19152
19153 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19154
19155 * font.h (struct font): Fix typo.
19156
19157 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19158 XLFD_XXX_INDEX.
19159 (enum xlfd_field_mask): New enum.
19160 (intern_font_field): Changed argument. Change caller. If digits
19161 are followed by non-digits, return a symbol.
19162 (font_expand_wildcards): New function.
19163 (font_parse_xlfd): Fix wildcard handling.
19164 (Ffont_spec): If :name is specified, reflect the info in the other
19165 properties.
19166
19167 * ftfont.c (ftfont_pattern_entity): Fix typo.
19168 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19169 locale.
19170
19171 2008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19174
19175 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19176 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19177 registry doesn't specify encoding part.
19178 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19179 (font_open_by_name): At first try parsing the name.
19180 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19181 as Lisp symbols.
19182
19183 * fontset.c (reorder_font_vector): Pay attention to the case that
19184 the 3rd element of font_def is nil.
19185 (fontset_font): For the default fontset, append one more fontset
19186 elements for a script-based font specification. Don't add script
19187 attribute on finding a font.
19188 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19189 font name.
19190 (fontset_ascii_font): If a font can't be opened, return nil.
19191
19192 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19193 (ftfont_pattern_entity): New function.
19194 (ftfont_get_cache): Assume that freetype_font_cache is already
19195 initialized.
19196 (ftfont_list): Handle the case that a file is specified in font
19197 name. Use ftfont_pattern_entity to generate entities.
19198 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19199 (syms_of_ftfont): Initialize freetype_font_cache.
19200
19201 * xftfont.c (xftfont_open): Make the font name fontconfig's
19202 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19203 (xftfont_close): Free font->font.name if not NULL.
19204
19205 * xfont.c (xfont_list): If script is specified for a font, return
19206 null_vector.
19207 (xfont_list_family): Declare argument type.
19208
19209 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19210 name, set LFACE_FONT (lface) to nil.
19211
19212 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19213 return Qnil.
19214
19215 2008-02-01 Kenichi Handa <handa@m17n.org>
19216
19217 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19218 (standard_args): Add "-enable-font-backend".
19219
19220 2008-02-01 Kenichi Handa <handa@m17n.org>
19221
19222 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19223 (struct xftdraw_list, xftdraw_list): Delete them.
19224 (register_xftdraw, check_xftdraw): Delete them.
19225 (xftfont_prepare_face): Don't call register_xftdraw.
19226 (xftfont_done_face): Don't call check_xftdraw.
19227 (xftfont_draw): Get background color only when with_background is
19228 nonzero.
19229
19230 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19231
19232 2008-02-01 Kenichi Handa <handa@m17n.org>
19233
19234 These changes are for the new font handling codes.
19235
19236 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19237 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19238 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19239 (FONTSRC, FONTOBJ): New variables.
19240 (obj): Add $(FONTOBJ).
19241 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19242 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19243 @LIBOTF_LIBS@.
19244 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19245 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19246
19247 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19248
19249 * character.h (Vscript_representative_chars): Extern it.
19250
19251 * character.c (Vscript_representative_chars): New variable.
19252 (syms_of_character): Declare it as a Lisp variable.
19253
19254 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19255 enable_font_backend is nonzero, accept the composition method
19256 COMPOSITION_WITH_GLYPH_STRING.
19257
19258 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19259 enumeration COMPOSITION_WITH_GLYPH_STRING.
19260
19261 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19262 members clip_x, clip_y, clip_width, and clip_height.
19263 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19264
19265 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19266 --enable-font-backend. Call syms_of_font.
19267
19268 * fns.c (assoc_no_quit): New function.
19269
19270 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19271 (face_for_font, new_fontset_from_font)
19272 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19273
19274 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19275 (fontset_font, fontset_ascii, face_for_char)
19276 (make_fontset_for_ascii_face, Ffont_info)
19277 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19278 is nonzero, use font-backend mechanism.
19279 (find_font_encoding): Make it non-static.
19280 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19281 New functions.
19282
19283 * frame.h (struct frame): New members resx and resy.
19284 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19285 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19286
19287 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19288 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19289
19290 * lisp.h (assoc_no_quit): Extern it.
19291
19292 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19293 Through out the file, use FONT_INFO_FROM_FACE instead of
19294 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19295 rif->per_char_metric.
19296 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19297 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19298 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19299 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19300 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19301 nonzero, use font-backend mechanism.
19302 (get_per_char_metric): New function.
19303
19304 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19305 (set_lface_from_font_name)
19306 (set_font_frame_param, free_realized_face)
19307 (prepare_face_for_display, clear_face_gcs)
19308 (Finternal_set_font_selection_order, realize_x_face)
19309 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19310 font-backend mechanism.
19311 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19312 (load_face_font) [USE_FONT_BACKEND]: Abort.
19313 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19314 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19315
19316 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19317 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19318 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19319 nonzero, register all available font drivers. Call
19320 x_default_font_parameter for deciding a font.
19321 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19322
19323 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19324 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19325 (x_set_glyph_string_clipping_exactly)
19326 (x_compute_glyph_string_overhangs)
19327 (x_draw_glyph_string_foreground)
19328 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19329 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19330 enable_font_backend is nonzero, use font-backend mechanism.
19331 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19332
19333 2008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19336 system_eol_type.
19337 (syms_of_coding): Initialize system_eol_type.
19338
19339 * process.c (Fset_process_coding_system): Inherit system's eol
19340 format if necessary.
19341
19342 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19343
19344 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19345
19346 2008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * coding.c (decode_eol): Pay attention to buffer relocation in
19349 del_range_2.
19350 (decode_coding): Call decode_eol before restoring undo_list.
19351
19352 2008-02-01 Kenichi Handa <handa@m17n.org>
19353
19354 * charset.c (Fdefine_charset_internal): Fix setting of
19355 emacs_mule_bytes.
19356
19357 2008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * keyboard.c (read_char): Check if C is a character or not before
19360 looking up Vkeyboard_translate_table.
19361
19362 2008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19365 condition to terminate the loop.
19366
19367 2008-02-01 Kenichi Handa <handa@m17n.org>
19368
19369 * coding.c (produce_composition): Compare charbuf[i] instead of
19370 args[i] against 0.
19371 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19372
19373 2008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19376 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19377 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19378 detect_coding.
19379 (emacs_mule_char): Handle old style (Emacs 20) component character
19380 of a composition.
19381 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19382 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19383 composition rule.
19384 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19385
19386 2008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * coding.c (encode_coding_ccl): Allocate destination dynamically
19389 when necessary.
19390
19391 2008-02-01 Kenichi Handa <handa@m17n.org>
19392
19393 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19394 the loop. When quitted, show a proper error message.
19395
19396 2008-02-01 Kenichi Handa <handa@m17n.org>
19397
19398 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19399 src->clip_head and src->clip_tail temporarily instead of src->hl.
19400
19401 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19402 character sequence.
19403 (Fccl_execute_on_string): Use ASET, not XSET.
19404
19405 2008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19408
19409 2008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * coding.c (decode_coding): Fix the condition of terminating the
19412 decoding loop.
19413
19414 2008-02-01 Kenichi Handa <handa@m17n.org>
19415
19416 * data.c (Faset): On setting a character bigger than 255 in a
19417 unibyte string, signal an error instead of make the string multibyte.
19418
19419 2008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19422 made by a mapping table.
19423
19424 2008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19427 not.
19428 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19429 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19430
19431 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19432 s->face is NULL or not.
19433
19434 2008-02-01 Kenichi Handa <handa@m17n.org>
19435
19436 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19437 (x_draw_glyph_string): Fix drawing of right_overhang and
19438 left_overhang around/on cursor.
19439
19440 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19441
19442 2008-02-01 Kenichi Handa <handa@m17n.org>
19443
19444 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19445
19446 2008-02-01 Kenichi Handa <handa@m17n.org>
19447
19448 * coding.c (Fdefine_coding_system_internal)
19449 (Fdefine_coding_system_alias): Avoid a duplicated element in
19450 Vcoding_system_alist.
19451
19452 2008-02-01 Kenichi Handa <handa@m17n.org>
19453
19454 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19455
19456 * coding.c (Qcoding_system_define_form): New variable.
19457 (syms_of_coding): Intern and staticpro it.
19458 (Fcoding_system_p): Check Qcoding_system_define_form.
19459 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19460
19461 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19462 Fcoding_system_p.
19463 (CHECK_CODING_SYSTEM): If ID is not available, call
19464 Fcheck_coding_system.
19465 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19466 Try also Fcheck_coding_system.
19467
19468 2008-02-01 Kenichi Handa <handa@m17n.org>
19469
19470 * coding.c (code_conversion_restore): GCPRO arg.
19471
19472 2008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * character.c (lisp_string_width): Check multibyteness of STRING.
19475
19476 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19477
19478 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19479 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19480 (decode_mac_font_name): Use decode_coding_c_string instead of
19481 decode_coding.
19482 (x_load_font): Initialize fontp->fontset to -1. Set
19483 fontp->encoding_type.
19484
19485 2008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * search.c (search_buffer): Give up BM search on case-fold-search
19488 if one of a target character has a case-equivalence of different
19489 byte length even if that target charcter is an ASCII.
19490 (simple_search): Fix calculation of byte length of matched text.
19491 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19492
19493 2008-02-01 Kenichi Handa <handa@m17n.org>
19494
19495 * coding.c (decode_coding): Fix handling of invalid bytes.
19496
19497 2008-02-01 Kenichi Handa <handa@m17n.org>
19498
19499 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19500 Unicode characters.
19501
19502 2008-02-01 Kenichi Handa <handa@m17n.org>
19503
19504 * coding.c (encode_coding_object): If a pre-write-conversion
19505 function makes a new buffer, kill it.
19506
19507 2008-02-01 Kenichi Handa <handa@m17n.org>
19508
19509 * coding.c (QCascii_compatible_p): New variable.
19510 (syms_of_coding): Initialize it.
19511 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19512 calling string_char.
19513 (record_conversion_result): Add `default:' case.
19514 (coding_charset_list): Delete unused variable `coding_type'.
19515 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19516 property in the plist of the coding system.
19517 (Fcoding_system_put): Check QCascii_compatible_p.
19518
19519 2008-02-01 Miles Bader <miles@gnu.org>
19520
19521 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19522 removed calculation of frame `f', as it's now used.
19523
19524 2008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19527 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19528 (UNIDATA): New variable.
19529 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19530 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19531 $(RUN_TEMACS) unconditionally.
19532
19533 2008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19536 (admindir): New variable.
19537 ($(lispsource)international/charprop.el): New target.
19538
19539 2008-02-01 Miles Bader <miles@gnu.org>
19540
19541 * character.c (chars-in-region): Remove obsolete function.
19542 (syms_of_character): Remove its initialization.
19543
19544 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19545
19546 * w32select.c (validate_coding_system)
19547 (setup_windows_coding_system): New functions.
19548 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19549 setup_windows_coding_system.
19550 (setup_config, Fw32_get_clipboard_data): Use
19551 validate_coding_system.
19552 (Fx_selection_exists): Move call to setup_config to a place
19553 where signals are allowed.
19554
19555 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19556 (Fcheck_coding_system): Add declarations.
19557
19558 2008-02-01 Kenichi Handa <handa@m17n.org>
19559
19560 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19561
19562 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19563
19564 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19565 string as the second argument for x_new_fontset.
19566
19567 2008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19570 (encode_coding_object): Use safe_call instead of call2.
19571
19572 2008-02-01 Kenichi Handa <handa@m17n.org>
19573
19574 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19575
19576 * Makefile.in (lisp): Include charprop.el.
19577
19578 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19579
19580 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19581 Not sure if it's unnecessary.
19582
19583 2008-02-01 Steven Tamm <steventamm@mac.com>
19584
19585 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19586 some possibly unnecessary fontset checking code that crashed
19587 when creating a new frame.
19588
19589 2008-02-01 Kenichi Handa <handa@m17n.org>
19590
19591 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19592 lookup_face.
19593
19594 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19595
19596 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19597
19598 2008-02-01 Kenichi Handa <handa@m17n.org>
19599
19600 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19601 (coding_charset_list): New function.
19602
19603 * coding.h (coding_charset_list): Extern it.
19604
19605 2008-02-01 Kenichi Handa <handa@m17n.org>
19606
19607 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19608 concatenation of family and registry.
19609
19610 2008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * character.h (BYTE8_STRING): Fix typo.
19613
19614 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19615 string to multibyte (sync to HEAD).
19616
19617 * casefiddle.c (casify_region): Handle changes in byte-length
19618 using replace_range_2 (sync to HEAD).
19619
19620 2008-02-01 Andreas Schwab <schwab@suse.de>
19621
19622 * chartab.c (map_char_table): GCPRO table and arg.
19623
19624 2008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19627 already at limit.
19628
19629 2008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19632 instead of fast_c_string_match_ignore_case.
19633 (find_font_encoding): Change argument to Lisp_Object. Use
19634 fast_string_match_ignore_case instead of
19635 fast_c_string_match_ignore_case. Change caller.
19636
19637 2008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * xdisp.c (get_next_display_element): In unibyte case, decide to
19640 display in octal form by checking a character by
19641 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19642
19643 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19644
19645 * character.c (unibyte_has_multibyte_table): New variable.
19646
19647 * character.h (unibyte_has_multibyte_table): Extern it.
19648 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19649
19650 2008-02-01 Kenichi Handa <handa@m17n.org>
19651
19652 * coding.c (encode_coding_iso_2022): Fix handling of charset
19653 annotation.
19654
19655 2008-02-01 Kenichi Handa <handa@m17n.org>
19656
19657 * coding.c (setup_coding_system): If coding_system is nil, use
19658 Qundecided.
19659 (Fterminal_coding_system): Return nil if terminal coding system is
19660 `undecided'.
19661 (syms_of_coding): Define coding-system `undecided' here. Setup
19662 terminal_coding as `undecided'.
19663
19664 2008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * xdisp.c (message_dolog, set_message_1): Call
19667 unibyte_char_to_multibyte with arg type int.
19668
19669 * lread.c (read1): Fix reading of a char-table.
19670
19671 * print.c (print_object): Include sub char-table in circularities
19672 detection.
19673
19674 2008-02-01 Kenichi Handa <handa@m17n.org>
19675
19676 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19677 Append the found sequences in car of ARGS instead of prepending.
19678
19679 2008-02-01 Kenichi Handa <handa@m17n.org>
19680
19681 * fileio.c (report_file_error): Make a unibyte string from
19682 strerror (errorno).
19683 (Fsubstitute_in_file_name): Fix the arg to
19684 unibyte_char_to_multibyte. It is evaluated twice.
19685
19686 2008-02-01 Kenichi Handa <handa@m17n.org>
19687
19688 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19689
19690 2008-02-01 Kenichi Handa <handa@m17n.org>
19691
19692 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19693 BOM is not found.
19694 (detect_coding, detect_coding_system): Optimization for ISO-2022
19695 when no 8-bit data is found.
19696
19697 2008-02-01 Jason Rumney <jasonr@gnu.org>
19698
19699 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19700
19701 2008-02-01 Kenichi Handa <handa@m17n.org>
19702
19703 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19704 CHARS.
19705
19706 2008-02-01 Steven Tamm <steventamm@mac.com>
19707
19708 * macterm.c (mac_encode_char): Add charset argument and update
19709 to use encoding_type.
19710 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19711 switch to pure fontset.
19712 (decode_mac_font_name): Temporarily remove decoding.
19713 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19714 (x_load_font): Temporarily remove encoding.
19715
19716 2008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * xfaces.c (Fface_font): If frame is not on a window system,
19719 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19720 refer to face->font.
19721 (split_font_name_into_vector, build_font_name_from_vector)
19722 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19723 when HAVE_WINDOW_SYSTEM is defined.
19724
19725 2008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19728 (x_produce_glyphs): Fix setting of members of cmp in case
19729 cmp->glyph_len is zero.
19730
19731 * fontset.c (Fset_fontset_font): Fix docstring.
19732 (Ffontset_info): Make it backward compatible. New arg ALL.
19733
19734 2008-02-01 Kim F. Storm <storm@cua.dk>
19735
19736 * process.c (read_process_output): Grow decoding_buf when needed;
19737 this could cause a crash in allocate_string and compact_small_strings.
19738
19739 2008-02-01 Kenichi Handa <handa@m17n.org>
19740
19741 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19742
19743 2008-02-01 Kenichi Handa <handa@m17n.org>
19744
19745 * coding.c (setup_coding_system): Set coding->common_flags
19746 correctly for raw-text.
19747 (consume_chars): On encoding unibyte text by raw-text, don't check
19748 multibyte form.
19749 (encode_coding): On encoding by raw-text, never use translation tables.
19750
19751 * fileio.c (e_write): Short cut for the case of no encoding.
19752
19753 2008-02-01 Kenichi Handa <handa@m17n.org>
19754
19755 * coding.c (detect_coding, detect_coding_system): Delete unused
19756 variables.
19757
19758 2008-02-01 Kenichi Handa <handa@m17n.org>
19759
19760 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19761 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19762
19763 2008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * coding.c (Ffind_coding_systems_region_internal): Include
19766 raw-text and no-conversion in the result.
19767
19768 2008-02-01 Kenichi Handa <handa@m17n.org>
19769
19770 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19771 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19772 FONT_DEF.
19773 (font_def_arg, add_arg, from_arg, to_arg): New args.
19774 (set_fontset_font): Change argument.
19775 (Fset_fontset_font): Fix for the case that TARGET is a script
19776 name and charset name.
19777 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19778
19779 2008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * fontset.c (fontset_font): Rename from fontset_face. Change return
19782 value.
19783 (face_suitable_for_char_p, face_for_char): Adjust for the change
19784 of fontset_font.
19785 (make_fontset_for_ascii_face): Fix setting of the fontset element
19786 for ASCII.
19787 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19788 to get a font name.
19789 (Ffontset_info): Adjust for the change of fontset_font.
19790
19791 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19792
19793 * character.h (LEADING_CODE_LATIN_1_MIN)
19794 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19795
19796 2008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * editfns.c (check_translation): New function.
19799 (Ftranslate_region_internal): Handle M:N mapping.
19800
19801 2008-02-01 Kenichi Handa <handa@m17n.org>
19802
19803 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19804
19805 2008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19808 goto invalid_code.
19809 (decode_coding_iso_2022): Fix handling of invalid designation.
19810
19811 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19812 after calling code_conversion_save.
19813
19814 2008-02-01 Kenichi Handa <handa@m17n.org>
19815
19816 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19817
19818 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19819
19820 * fontset.c: Include "intervals.h".
19821 (fontset_face): Fix comparing of Lisp_Objects.
19822 (free_face_fontset, new_fontset_from_font_name): Fix
19823 Lisp_Object/int mixup.
19824
19825 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19826
19827 * coding.c: Add many prototypes for static functions.
19828 (get_translation_table): Allow max_lookup to be NULL.
19829 (decode_coding, Ffind_coding_systems_region_internal)
19830 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19831 get_translation_table with max_lookup NULL.
19832
19833 2008-02-01 Kenichi Handa <handa@m17n.org>
19834
19835 * coding.c (get_translation_table): Declare it as Lisp_Object.
19836 (LOOKUP_TRANSLATION_TABLE): New macro.
19837 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19838 instead of CHAR_TABLE_REF.
19839
19840 2008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19843 annotation data format.
19844 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19845 Change arguments FROM and TO to single argument NCHARS. Change caller.
19846 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19847 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19848 (decode_coding_ccl, decode_coding_charset): Pay attention to
19849 coding->charbuf_used.
19850 (get_translation): New function.
19851 (produce_chars): New arguments translation_table and last_block.
19852 Translate characters here. Return number of carryover chars.
19853 Change caller.
19854 (produce_composition): New argument pos. Change caller.
19855 Adjust for the change of annotation data format.
19856 (produce_charset, produce_annotation): Likewise.
19857 (decode_coding, encode_coding): Don't call translate_chars.
19858 (consume_chars): New arg translation_table. Change caller.
19859 (translate_chars): Delete.
19860 (syms_of_coding): Make translation-table's number of extra slots 2.
19861
19862 2008-02-01 Kenichi Handa <handa@m17n.org>
19863
19864 * search.c (simple_search): Fix setting this_pos_byte in backward
19865 search.
19866
19867 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19868 byte sequence.
19869 (detect_coding_ccl): Fix setting of the variable valids.
19870
19871 2008-02-01 Kenichi Handa <handa@m17n.org>
19872
19873 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19874
19875 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19876
19877 * editfns.c (Ftranslate_region_internal): Rename from
19878 Ftranslate_region. Accept a char-table in TABLE.
19879 (syms_of_editfns): Defsubr Stranslate_region_internal.
19880
19881 * xfaces.c (set_lface_from_font_name): If a font is specified for
19882 a frame, generate a fontset from the font.
19883 (build_scalable_font_name): If the scalable font is requested for
19884 a specific size, don't change that size.
19885 (try_font_list): Try a scalable font also in the case that a
19886 pattern string is specified.
19887
19888 2008-02-01 Kenichi Handa <handa@m17n.org>
19889
19890 * xfaces.c (Fface_font): New optional arg CHARACTER.
19891
19892 2008-02-01 Kenichi Handa <handa@m17n.org>
19893
19894 * charset.h (CHARSET_OFFSET): New macro.
19895
19896 2008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19899
19900 * fontset.c (fontset_face): Handle the case that repertory is a
19901 char-table.
19902 (find_font_encoding): Return nil for unknown encoding.
19903 (Fset_fontset_font): Ignore a font of unknown encoding.
19904
19905 2008-02-01 Kenichi Handa <handa@m17n.org>
19906
19907 * keymap.c (describe_vector): Handle default value of a char table.
19908
19909 * fontset.c (fontset_face): Handle fallback fonts correctly.
19910 (Ffontset_info): Return infomation about fallback fonts.
19911
19912 2008-02-01 Kenichi Handa <handa@m17n.org>
19913
19914 * fontset.c (FONTSET_DEFAULT): New macro.
19915 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19916 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19917 the case that it is nil.
19918 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19919 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19920
19921 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19922 subset or superset.
19923
19924 2008-02-01 Kenichi Handa <handa@m17n.org>
19925
19926 * emacs.c (main): Call init_charset after syms_of_XXX.
19927
19928 * charset.c (Vcharset_map_directory): Delete.
19929 (Vcharset_map_path): New variable.
19930 (load_charset_map_from_file): Use Vcharset_map_path instead.
19931 (init_charset): Initialize Vcharset_map_path.
19932 (syms_of_charset): Delete declaration of "charset-map-directory",
19933 add declaration of "charset-map-path".
19934
19935 2008-02-01 Kenichi Handa <handa@m17n.org>
19936
19937 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19938 ASCII only string.
19939
19940 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19941
19942 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19943 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19944
19945 2008-02-01 Kenichi Handa <handa@m17n.org>
19946
19947 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19948
19949 * coding.c (QCmnemonic, QCdefalut_char)
19950 (QCdecode_translation_table, QCencode_translation_table)
19951 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19952 (get_translation_table): Return a list of translation tables if
19953 necessary.
19954 (decode_coding): Call get_translation_table with ENCODEP 0.
19955 (char_encodable_p): If translation_table is non-nil, always call
19956 translate_char.
19957 (Fdefine_coding_system_internal): Accept list of translation
19958 tables as :encode-translation-table and :decode-translation-table.
19959 (Fcoding_system_put): New function.
19960 (syms_of_coding): Declare new symbols. Defsubr
19961 Scoding_system_put.
19962 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19963 typically JISX0212.
19964
19965 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19966 when the charset is superset type.
19967
19968 * character.c (translate_char): Accept list of translation tables.
19969
19970 2008-02-01 Kenichi Handa <handa@m17n.org>
19971
19972 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19973 (CODING_ATTR_TRANS_TBL): New macro.
19974
19975 * coding.c (get_translation_table): New function.
19976 (translate_chars): Fix the bug of skipping annotation data.
19977 (decode_coding, encode_coding): Utilize get_translation_table.
19978 (char_encodable_p, Funencodable_char_position): Translate char if
19979 necessary.
19980 (Ffind_coding_systems_region_internal)
19981 (Fcheck_coding_systems_region): Setup translation table for encode
19982 in a coding system attribute vector in advance.
19983 (Fdefine_coding_system_internal): Allow a symbol as translation
19984 table. For shift-jis type coding system, allow 4th charset.
19985
19986 2008-02-01 Kenichi Handa <handa@m17n.org>
19987
19988 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19989
19990 * xdisp.c (get_next_display_element): Pass -1 as POS to
19991 FACE_FOR_CHAR if displaying a C-string.
19992
19993 2008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * composite.c (get_composition_id): Handle xoff and yoff in a
19996 composition rule.
19997
19998 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19999 (struct composition): New member lbearing and rbearing.
20000
20001 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20002 (x_get_glyph_overhangs): Handle a composition glyph.
20003 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20004
20005 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20006 composition glyph.
20007
20008 2008-02-01 Kenichi Handa <handa@m17n.org>
20009
20010 * print.c: Include charset.h.
20011 (Vprint_charset_text_property): New variable.
20012 (Qdefault): Extern it.
20013 (PRINT_STRING_NON_CHARSET_FOUND)
20014 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20015 (print_check_string_result): New variable.
20016 (print_check_string_charset_prop): New function.
20017 (print_prune_charset_plist): New variable.
20018 (print_prune_string_charset): New function.
20019 (print_object): Call print_prune_string_charset if
20020 Vprint_charset_text_property is not t.
20021 (print_interval): Print nothing if interval->plist is nil.
20022 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20023 variable. Init and staticpro print_prune_charset_plist.
20024
20025 2008-02-01 Kenichi Handa <handa@m17n.org>
20026
20027 * fontset.c (new_fontset_from_font_name): Use the specified font
20028 for all characters in the new fontset.
20029
20030 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20031 OBJECT args.
20032
20033 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20034 OBJECT args for composition too.
20035
20036 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20037 OBJECT args.
20038
20039 2008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20042
20043 * fontset.c (reorder_font_vector): Adjust for the change of
20044 FONT_DEF format.
20045 (fontset_face): New arg id. Change caller.
20046 (face_for_char): New args pos and object.
20047 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20048 (fs_query_fontset): Check NAME by Fassoc too.
20049 (Fset_fontset_font): Allow non-XLFD font name.
20050 (Ffontset_info): Adjust for the change of FONT_DEF format.
20051
20052 * fontset.h (face_for_char): Adjust prototype.
20053
20054 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20055 (append_space, extend_face_to_end_of_line)
20056 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20057 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20058
20059 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20060 POS and OBJECT args.
20061
20062 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20063 POS and OBJECT args.
20064
20065 2008-02-01 Jason Rumney <jasonr@gnu.org>
20066
20067 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20068 of GlobalAlloc'ed memory.
20069
20070 2008-02-01 Kenichi Handa <handa@m17n.org>
20071
20072 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20073
20074 * charset.h (charset_table_used): Delete extern.
20075
20076 * charset.c (charset_table_used): Make it static.
20077 (map_charset_chars): Fix args to c_function with.
20078
20079 * chartab.c (map_sub_char_table_for_charset): Fix args to
20080 c_function with.
20081
20082 * coding.h (enum coding_result_code): Delete
20083 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20084
20085 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20086 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20087 (Vlast_code_conversion_error): New variables.
20088 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20089 (ONE_MORE_BYTE): Record error if any instead of signaling an
20090 error. If non-ASCII multibyte char is found, return the negative
20091 value of the code. All callers changed to check it.
20092 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20093 (record_conversion_result): New function. Change all codes setting
20094 coding->result to call this function.
20095 (detect_coding_utf_8, decode_coding_utf_8)
20096 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20097 Don't use the local variable incomplete.
20098 (emacs_mule_char): Change the second arg to `const'.
20099 (decode_coding): Fix of flushing out unprocessed data.
20100 (make_conversion_work_buffer): Fix making of a work buffer.
20101 (decode_coding_object): Return coding->dst_object.
20102
20103 * fontset.c (set_fontset_font): Fix args.
20104
20105 * lisp.h (CHARACTERBITS): Define as 22.
20106
20107 * process.c (send_process): Be sure to set coding->src_multibyte.
20108
20109 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20110
20111 2008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * xdisp.c (handle_auto_composed_prop): Give limit to
20114 Fnext_single_char_property_change.
20115
20116 2008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * composite.c (syms_of_composite): Don't make the composition hash
20119 table weak.
20120
20121 * fontset.c (Fset_fontset_font): Fix docstring.
20122
20123 * lisp.h (detect_coding_system): Adjust prototype.
20124
20125 * fileio.c (kill_workbuf_unwind): Delete this function.
20126 (Finsert_file_contents): Adjust the call of detect_coding_system.
20127 Get conversion_buffer by code_conversion_save. Use the macro
20128 CODING_MAY_REQUIRE_DECODING. After decoding, update
20129 coding_system.
20130
20131 * coding.h (make_conversion_work_buffer): Delete extern.
20132 (code_conversion_save): Extern it.
20133
20134 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20135 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20136 (decode_coding_utf_8): Don't do eol converion.
20137 (detect_coding_utf_16): Check coding->src_chars, not
20138 coding->src_bytes. Add heuristics for those that have no signature.
20139 (decode_coding_emacs_mule, decode_coding_iso_2022)
20140 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20141 Don't do eol converion.
20142 (adjust_coding_eol_type): Return a new coding system.
20143 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20144 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20145 each change.
20146 (decode_coding): Pay attention to undo_list. Do eol conversion for
20147 all types of coding-systems (if necessary).
20148 (Vcode_conversion_work_buf_list): Delete it.
20149 (Vcode_conversion_reused_workbuf): Rename from
20150 Vcode_conversion_reused_work_buf.
20151 (Vcode_conversion_workbuf_name): New variable.
20152 (reused_workbuf_in_use): New variable.
20153 (make_conversion_work_buffer): Delete the arg DEPTH.
20154 (code_conversion_restore): Change argument to cons.
20155 (code_conversion_save): Delete the argument BUFFER. Change callers.
20156 (detect_coding_system): New argument src_chars. Change callers.
20157 Fix for utf-16 detection.
20158 (init_coding_once): Don't use ISO_carriage_return.
20159 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20160 reused_workbuf_in_use.
20161
20162 2008-02-01 Kenichi Handa <handa@m17n.org>
20163
20164 * keymap.c (store_in_keymap): Pay attention to the case that idx
20165 is a cons specifying a character range.
20166
20167 2008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20170 HANDLED_RECOMPUTE_PROPS.
20171
20172 * coding.c (Fdefine_coding_system_internal): Fix checking of
20173 ascii compatibility.
20174
20175 2008-02-01 Kenichi Handa <handa@m17n.org>
20176
20177 * charset.c (find_charsets_in_text): Delete unused locale variable.
20178 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20179
20180 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20181 Resync charset_list to Vemacs_mule_charset_list.
20182
20183 * keymap.c (store_in_keymap): Pay attention to the case that idx
20184 is a cons specifying a character range.
20185
20186 2008-02-01 Kenichi Handa <handa@m17n.org>
20187
20188 * composite.c (update_compositions): Bind inhibit-read-only, etc
20189 to t before calling remove-list-of-text-properties.
20190
20191 * print.c (print_object): Always print ASCII chars as is.
20192
20193 2008-02-01 Kenichi Handa <handa@m17n.org>
20194
20195 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20196
20197 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20198 is a char table.
20199
20200 2008-02-01 Kenichi Handa <handa@m17n.org>
20201
20202 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20203
20204 2008-02-01 Kenichi Handa <handa@m17n.org>
20205
20206 * xfaces.c (set_lface_from_font_name): Fix for the case that
20207 FONTNAME is not fontset name.
20208
20209 2008-02-01 Kenichi Handa <handa@m17n.org>
20210
20211 * fns.c (base64_encode_1): Fix previous change.
20212
20213 2008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * fontset.c (set_fontset_font): New function.
20216 (Fset_fontset_font): If a font is specified for a charset, use
20217 map_charset_chars to store the font spec in a fontset.
20218
20219 2008-02-01 Kenichi Handa <handa@m17n.org>
20220
20221 * fontset.c (fontset_face): Create a fallback fontset on demand.
20222 (make_fontset): Don't create a fallback fontset here.
20223 (free_face_fontset): Free a fallback fontset (if any) too.
20224 (n_auto_fontsets): Delete this variable.
20225 (auto_fontset_alist): New variable.
20226 (new_fontset_from_font_name): Check auto_fontset_alist.
20227 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20228 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20229 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20230 Defsubr Sfontset_list_all.
20231
20232 2008-02-01 Kenichi Handa <handa@m17n.org>
20233
20234 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20235
20236 2008-02-01 Kenichi Handa <handa@m17n.org>
20237
20238 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20239
20240 2008-02-01 Kenichi Handa <handa@m17n.org>
20241
20242 * editfns.c (Fgoto_char): Fix docstring.
20243
20244 2008-02-01 Kenichi Handa <handa@m17n.org>
20245
20246 * insdel.c (insert_from_gap): Adjust intervals correctly.
20247
20248 2008-02-01 Jason Rumney <jasonr@gnu.org>
20249
20250 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20251 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20252 (w32_initialize): Try to load it.
20253 (x_get_font_repertory): Use it if available.
20254 (w32_encode_char): Add shortcut for unicode output.
20255
20256 * w32fns.c (w32_load_system_font): Default charset to -1.
20257 (x_to_w32_charset): Match all fonts for unicode.
20258 (w32_to_x_charset): New parameter matching. Don't return partial
20259 or wildcard charsets.
20260 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20261 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20262 (w32_to_x_font): Match charset to real charset.
20263 (enum_font_cb2): Always list unicode versions.
20264
20265 * makefile.w32-in (temacs): Increase EMHEAP.
20266
20267 2008-02-01 Jason Rumney <jasonr@gnu.org>
20268
20269 * w32term.c (w32_encode_char): New charset parameter.
20270 font_info.encoding becomes encoding_type.
20271 (x_get_font_repertory): New function. Warning: stub only!
20272 (x_new_font): Return quickly if font already set.
20273 (x_new_fontset): fontsetname parameter is Lisp_Object.
20274 Use new fs_query_fontset. Try new_fontset_from_font_name.
20275 Use fontset_name for return value.
20276
20277 * w32term.h: Declare x_get_font_repertory.
20278
20279 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20280 place of find_charset_in_text. Use encode_coding_object in place
20281 of encode_coding.
20282 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20283 decode_coding.
20284
20285 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20286 of x_new_fontset.
20287 (w32_load_system_font): Initialize charset as unicode.
20288 font_info.encoding becomes encoding_type.
20289 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20290 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20291 (syms_of_w32fns): Set get_font_repertory_func.
20292
20293 * w32console.c: Include character.h. Use terminal_encode_buffer
20294 from term.c.
20295 (write_glyphs): Use new version of encode_terminal_code. Use
20296 encode_coding_object in place of encode_coding.
20297
20298 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20299 encoding becomes encoding_type.
20300
20301 * term.c (terminal_encode_buffer): Make externally visible.
20302
20303 * makefile.w32-in: Add character.h dependancies.
20304 (character.o, chartab.o): New targets.
20305
20306 2008-02-01 Kenichi Handa <handa@m17n.org>
20307
20308 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20309 CODING_ID_EOL_TYPE.
20310
20311 2008-02-01 Andreas Schwab <schwab@suse.de>
20312
20313 * coding.c (produce_chars): Revert last change.
20314
20315 2008-02-01 Kenichi Handa <handa@m17n.org>
20316
20317 * charset.h (charset_unicode): Extern it.
20318
20319 * charset.c (string_xstring_p): Check by (C >= 0x100).
20320 (find_charsets_in_text): Change format of the arc CHARSETS. New
20321 arg MULTIBYTE.
20322 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20323 change of find_charsets_in_text.
20324 (Fsplit_char): Fix doc. Never return unknown.
20325
20326 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20327
20328 * coding.c (Fdefine_coding_system_alias): Update
20329 Vcoding_system_list.
20330
20331 * fontset.c (load_font_get_repertory): Pay attention to the case
20332 that ENCODING of a font is specified by a char-table.
20333
20334 * xterm.c (x_get_font_repertory): Handle the case that the
20335 encoding of font is other than Unicode.
20336
20337 2008-02-01 Kenichi Handa <handa@m17n.org>
20338
20339 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20340 if a character is encodable by the terminal coding system. If
20341 not, produces proper number of `?'s. Update
20342 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20343 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20344
20345 2008-02-01 Kenichi Handa <handa@m17n.org>
20346
20347 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20348 variables.
20349 (encode_terminal_code): Change argument. Encode multiple
20350 characters at once. Store the result of encoding in
20351 terminal_encode_buffer.
20352 (write_glyphs, insert_glyphs): Adjust for the change of
20353 encode_terminal_code.
20354 (term_init): Initialize terminal_encode_buffer and
20355 terminal_encode_buf_size.
20356
20357 * coding.c (consume_chars): If coding->src_object is nil, don't
20358 check annotation.
20359
20360 2008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * character.c (char_string): Use ASCII_CHAR_P instead of
20363 SINGLE_BYTE_CHAR_P.
20364
20365 2008-02-01 Kenichi Handa <handa@m17n.org>
20366
20367 * xdisp.c (handle_auto_composed_prop): Check if the last
20368 characters of auto-composed region is newly composed with the
20369 following characters.
20370 (handle_composition_prop): Fix checking of point being inside
20371 composition.
20372
20373 2008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * fns.c (concat): Don't change multibyteness of the result by
20376 concatenating an 8-bit character.
20377
20378 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20379 multibyteness of the result when newelt is an 8-bit character.
20380
20381 2008-02-01 Dave Love <fx@gnu.org>
20382
20383 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20384 EMACS_INT.
20385
20386 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20387
20388 * xfaces.c (face_numeric_value): Declare dim size_t.
20389 (Finternal_lisp_face_equal_p): Remove unused f.
20390
20391 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20392 (MATRIX_ROW): Remove unused vars.
20393 (draw_glyphs, x_insert_glyphs, fast_find_position)
20394 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20395 byte/char counts.
20396
20397 * regex.c (regex_compile): Remove unused var.
20398
20399 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20400
20401 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20402 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20403
20404 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20405
20406 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20407
20408 * fileio.c (Fwrite_region): Remove unused var.
20409
20410 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20411 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20412
20413 * composite.c (Fremove_list_of_text_properties): Declare.
20414
20415 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20416 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20417 (coding_inherit_eol_type): Remove unused attrs.
20418 (detect_coding): Cast arg of detect_eol.
20419
20420 * charset.c (syms_of_charset): Remove unused var p.
20421 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20422 byte/char counts.
20423
20424 * casetab.c (set_case_table): Remove unused var.
20425
20426 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20427 unused vars.
20428
20429 2008-02-01 Dave Love <fx@gnu.org>
20430
20431 * xterm.c (x_bitmap_mask): Declare.
20432
20433 2008-02-01 Dave Love <fx@gnu.org>
20434
20435 * xterm.c (x_term_init): Fix type error.
20436
20437 * lisp.h: Add Funibyte_char_to_multibyte.
20438
20439 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20440 (Fset_coding_system_priority): Doc fix.
20441
20442 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20443
20444 * indent.c (check_composition): Make start and end EMACS_INT.
20445
20446 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20447
20448 * xdisp.c (handle_composition_prop, check_point_in_composition):
20449 Make buffer positions EMACS_INT.
20450
20451 * composite.c (find_composition, run_composition_function)
20452 (update_compositions, Ffind_composition_internal): Make buffer
20453 positions EMACS_INT.
20454
20455 * composite.h (find_composition, update_compositions): Make
20456 position args EMACS_INT.
20457
20458 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20459
20460 * intervals.c (get_property_and_range):
20461 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20462
20463 * unexalpha.c: Don't include varargs.h.
20464
20465 2008-02-01 Dave Love <fx@gnu.org>
20466
20467 * coding.h (ENCODE_UTF_8): New.
20468
20469 * Makefile.in (gtkutil.o): Depend on coding.h.
20470
20471 * coding.c (Fset_coding_system_priority): Doc fix.
20472
20473 2008-02-01 Kenichi Handa <handa@m17n.org>
20474
20475 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20476 the case of auto saving.
20477
20478 2008-02-01 Andreas Schwab <schwab@suse.de>
20479
20480 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20481 `range' from GC.
20482
20483 2008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20486
20487 2008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * fileio.c (choose_write_coding_system): Return a decided coding system.
20490 (Fwrite_region): Set Vlast_coding_system_used to the return value
20491 of choose_write_coding_system.
20492
20493 2008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * charset.c (Fset_charset_priority): Pay attention to duplicated
20496 arguments.
20497
20498 * coding.c (QCcategory): New variable.
20499 (syms_of_coding): Defsym it. Set all elements of
20500 Vcoding_category_table and their symbol values.
20501 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20502 coding-category-XXX, and coding-category-list.
20503 (Fdefine_coding_system_internal): Add category in the plist.
20504
20505 2008-02-01 Kenichi Handa <handa@m17n.org>
20506
20507 * callproc.c (Fcall_process): Handle carryover correctly.
20508
20509 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20510 (raw_text_coding_system): Check NILP (coding_system).
20511 (coding_inherit_eol_type): Check NILP (coding_system) and
20512 NILP (parent).
20513 (consume_chars): Fix for the case of raw-text.
20514
20515 * process.c (read_process_output): Handle carryover correctly.
20516
20517 2008-02-01 Dave Love <fx@gnu.org>
20518
20519 * regex.c (re_search_2): Fix last change.
20520
20521 2008-02-01 Kenichi Handa <handa@m17n.org>
20522
20523 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20524 target_multibyte. Even in a unibyte case, return a converted
20525 multibyte char.
20526 (GET_CHAR_AFTER): New macro.
20527 (PATFETCH): Translate via multibyte char.
20528 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20529 (SETUP_MULTIBYTE_RANGE): New macro.
20530 (regex_compile): Setup compiled code so that its multibyteness
20531 matches that of a target. Fix the handling of "[X-YZ]" using
20532 SETUP_MULTIBYTE_RANGE.
20533 (analyse_first) <charset>: For filling fastmap for all multibyte
20534 characters, don't check by BASE_LEADING_CODE_P.
20535 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20536 the same as RE_MULTIBYTE_P (bufp) now.
20537 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20538 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20539 (TRANSLATE_VIA_MULTIBYTE): New macro.
20540 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20541 It is the same as RE_MULTIBYTE_P (bufp) now.
20542 <exactn>: Translate via multibyte.
20543 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20544 translate it.
20545 <charset, charset_not>: Fetch a character by
20546 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20547 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20548 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20549 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20550 by GET_CHAR_AFTER.
20551 (bcmp_translate): Likewise.
20552
20553 * search.c (compile_pattern): Check the member target_multibyte,
20554 not the member multibyte of buf.
20555
20556 * lread.c (read1): While reading a string, set force_singlebyte
20557 and force_multibyte correctly.
20558
20559 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20560 up of unibyte_to_multibyte_table.
20561
20562 2008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * coding.c (setup_coding_system): If coding has
20565 post-read-conversion or pre-write-conversion, set
20566 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20567 respectively.
20568 (decode_coding_gap): Run post-read-conversion if any.
20569
20570 * fileio.c (Finsert_file_contents): Even if we read into a
20571 unibyte buffer, check if we must decode the result or not.
20572
20573 2008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * coding.c (make_conversion_work_buffer): Change the work buffer
20576 name to the same one as that of Emacs 21.
20577
20578 2008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 * coding.h (make_conversion_work_buffer): Adjust prototype.
20581 (code_conversion_restore): Don't extern it.
20582
20583 * coding.c (detected_mask): Delete unused variable.
20584 (decode_coding_iso_2022): Pay attention to the byte sequence of
20585 CTEXT extended segment, and retain those bytes as is.
20586 (decode_coding_ccl): Delete unused variable `valids'.
20587 (setup_coding_system): Delete unused variable `category'.
20588 (consume_chars): Delete unused variable `category'. Make it work
20589 for non-multibyte case.
20590 (make_conversion_work_buffer): Change argument.
20591 (saved_coding): Delete unused variable.
20592 (code_conversion_restore): Don't check saved_coding->destination.
20593 (code_conversion_save): New function.
20594 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20595 instead of record_unwind_protect.
20596 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20597 (detect_coding_system): Delete unused variable `mask'.
20598 (Fdefine_coding_system_internal): Delete unused variable id.
20599
20600 * fileio.c (kill_workbuf_unwind): New function.
20601 (Finsert_file_contents): On replacing, call
20602 make_conversion_work_buffer with correct args, and call
20603 record_unwind_protect with the first arg kill_workbuf_unwind.
20604
20605 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20606
20607 2008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20610 (fontset_add): Fix for the case that TO is less than TO1.
20611 (Ffontset_info): Don't use fallback fontset on checking the
20612 default fontset.
20613 (dump_fontset): New function for debugging.
20614
20615 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20616 coding_type is Qcharset.
20617
20618 2008-02-01 Kenichi Handa <handa@m17n.org>
20619
20620 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20621 (map_char_table): Don't inherit the value from the parent on
20622 initializing VAL. Adjust for the above change.
20623
20624 2008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * coding.c (Qsignature, Qendian): Delete these variables.
20627 (syms_of_coding): Don't initialize them.
20628 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20629 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20630 detect_info->found.
20631 (decode_coding_utf_16): Don't detect BOM here.
20632 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20633 is NOT utf_16_without_bom.
20634 (setup_coding_system): For a coding system of type utf-16, check
20635 if the attribute :endian is Qbig or not (not nil or not), and set
20636 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20637 (detect_coding): If coding type is utf-16 and BOM detection is
20638 required, detect it.
20639 (Fdefine_coding_system_internal): For a coding system of type
20640 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20641
20642 2008-02-01 Kenichi Handa <handa@m17n.org>
20643
20644 * coding.c (coding_set_source): Fix for the case that the current
20645 buffer is different from coding->src_object.
20646 (decode_coding_object): Don't use the conversion work buffer if
20647 DST_OBJECT is a buffer.
20648
20649 2008-02-01 Dave Love <fx@gnu.org>
20650
20651 * lread.c (read_emacs_mule_char) [len==2]: Index
20652 emacs_mule_charset correctly.
20653
20654 2008-02-01 Dave Love <fx@gnu.org>
20655
20656 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20657 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20658 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20659 treated specially.)
20660 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20661 (detected_mask): Remove Big5 bits.
20662
20663 2008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 The following changes are to make the font rescaling facility
20666 compatible with Emacs 21.
20667
20668 * xfaces.c (Vface_font_rescale_alist): Rename from
20669 Vface_resizing_fonts.
20670 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20671 (font_rescale_ratio): Rename from font_resizing_ratio.
20672 (split_font_name): Set font->rescale_ratio.
20673 (better_font_p): Pay attention to font->rescale_ratio.
20674 (build_scalable_font_name): Likewise. Change RESX, and RESY
20675 fields.
20676 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20677
20678 2008-02-01 Kenichi Handa <handa@m17n.org>
20679
20680 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20681 (Qutf_16_le): Remove these variables.
20682 (syms_of_coding): Don't DEFSYM them.
20683 (decode_coding_utf_16): Fix handling of BOM.
20684 (encode_coding_utf_16): Fix handling of BOM.
20685
20686 2008-02-01 Kenichi Handa <handa@m17n.org>
20687
20688 * fileio.c (Finsert_file_contents): On replacing, before decoding
20689 the file into the work buffer, set point of the work buffer to the end.
20690
20691 2008-02-01 Dave Love <fx@gnu.org>
20692
20693 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20694
20695 2008-02-01 Dave Love <fx@gnu.org>
20696
20697 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20698 and fix C types.
20699
20700 2008-02-01 Kenichi Handa <handa@m17n.org>
20701
20702 * xdisp.c (SKIP_GLYPHS): New macro.
20703 (set_cursor_from_row): Pay attention to string display properties.
20704
20705 * category.c (copy_category_entry): Fix for the case that RANGE
20706 is an integer.
20707
20708 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20709
20710 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20711
20712 2008-02-01 Kenichi Handa <handa@m17n.org>
20713
20714 * charset.c (Fcharset_id_internal): New function.
20715 (syms_of_charset): Defsubr it.
20716
20717 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20718 with the last arg charset_list acquired from coding.
20719 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20720 the attribute coding_attr_ccl_valids.
20721
20722 * coding.h (enum define_coding_ccl_arg_index): Set the first
20723 member coding_arg_ccl_decoder to coding_arg_max.
20724
20725 * ccl.h (ccl_driver): Adjust prototype.
20726
20727 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20728 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
20729 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20730 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20731 last arg Qnil.
20732
20733 2008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20736 call encode_char.
20737
20738 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20739
20740 2008-02-01 Dave Love <fx@gnu.org>
20741
20742 * composite.c (syms_of_composite): Make composition_hash_table weak.
20743
20744 2008-02-01 Kenichi Handa <handa@m17n.org>
20745
20746 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20747 (font_name_registry): Don't extern them.
20748 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20749
20750 * fontset.h (Qfontset): Don't extern it.
20751 (new_fontset_from_font_name): Extern it.
20752
20753 * fontset.c: Give 8 extra slots to fontset objects.
20754 (Qfontset_info): New variable.
20755 (syms_of_fontset): Defsym it.
20756 (FONTSET_FALLBACK): New macro.
20757 (fontset_face): Try also the default fontset.
20758 (make_fontset): Realize a fallback fontset from the default fontset.
20759 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20760 using split_font_name_into_vector and build_font_name_from_vector.
20761 (Fset_fontset_font): Access the elements of font_spec by enum
20762 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20763 name by using split_font_name_into_vector.
20764 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20765 generate a proper font name from the fontset name. Update
20766 Vfontset_alias_alist.
20767 (n_auto_fontsets): New variable.
20768 (new_fontset_from_font_name): New function.
20769 (Ffont_info): Store the information about fonts generated from the
20770 default fontset in the first extra slot of the returned char-table.
20771
20772 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20773 (font_name_registry): Delete function.
20774 (split_font_name_into_vector): New function.
20775 (build_font_name_from_vector): New function.
20776 (font_list): The argument REGISTRY is now a list of registry names.
20777 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20778 specifies an explicit font name, return the name as is. Make a
20779 list of registy names.
20780
20781 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20782 of x_new_fontset.
20783 (Fx_create_frame): Don't call x_new_fontset here. Just use
20784 x_list_fonts to check the existence of fonts.
20785
20786 * xterm.h (x_new_fontset): Adjust prototype.
20787
20788 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20789 string. Use new_fontset_from_font_name to create a fontset from a
20790 font name.
20791
20792 2008-02-01 Kenichi Handa <handa@m17n.org>
20793
20794 * syntax.c (Vfind_word_boundary_function_table): New name for
20795 Vnext_word_boundary_function_table.
20796 (find-word-boundary-function-table): New name for
20797 next-word-boundary-function-table.
20798
20799 2008-02-01 Dave Love <fx@gnu.org>
20800
20801 * Makefile.in: Fix some dependencies.
20802
20803 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20804 set it to nil before returning.
20805
20806 * composite.c (update_compositions): Fix type error.
20807
20808 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20809
20810 2008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * xterm.c (x_new_font): Optimize for the case that the font is
20813 already set for the frame.
20814
20815 2008-02-01 Kenichi Handa <handa@m17n.org>
20816
20817 * chartab.c (char_table_ascii): Check if the char table contents
20818 is sub-char-table or not.
20819 (char_table_set, char_table_set_range): Fix argument to
20820 char_table_ascii.
20821
20822 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20823 (detect_coding_utf_8, detect_coding_utf_16)
20824 (detect_coding_emacs_mule, detect_coding_iso_2022)
20825 (detect_coding_sjis, detect_coding_big5)
20826 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20827 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20828 sequence is valid in this coding system. Change callers.
20829 (MAX_ANNOTATION_LENGTH): New macro.
20830 (ADD_ANNOTATION_DATA): New macro.
20831 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20832 ADD_ANNOTATION_DATA. Change the format of annotation data.
20833 (ADD_CHARSET_DATA): New macro.
20834 (emacs_mule_char): New argument ID. Change callers.
20835 (decode_coding_emacs_mule, decode_coding_iso_2022)
20836 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20837 Produce charset annotation data in coding->charbuf.
20838 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20839 to charset annotation data in coding->charbuf.
20840 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20841 coding->common_flags if the coding system is iso-2022 based and
20842 uses designation.
20843 (produce_composition): Adjust for the new annotation data format.
20844 (produce_charset): New function.
20845 (produce_annotation): Handle charset annotation.
20846 (handle_composition_annotation, handle_charset_annotation): New
20847 functions.
20848 (consume_chars): Handle charset annotation. Utilize the above two
20849 functions.
20850 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20851 buffer, get the deleted text as a string and set
20852 coding->src_object to that string.
20853 (detect_coding, detect_coding_system): Use the new struct
20854 coding_detection_info.
20855
20856 * coding.h (struct coding_detection_info): New structure.
20857 (struct coding_system): Adjust prototype of the member `detector'.
20858 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20859
20860 2008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20863
20864 2008-02-01 Dave Love <fx@gnu.org>
20865
20866 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20867 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20868 to new local and nullify apropos_accumulate before returning.
20869 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20870
20871 2008-02-01 Kenichi Handa <handa@m17n.org>
20872
20873 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20874 correctly.
20875
20876 2008-02-01 Dave Love <fx@gnu.org>
20877
20878 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20879
20880 2008-02-01 Kenichi Handa <handa@m17n.org>
20881
20882 The following changes are to make character composition happen
20883 automatically on displaying.
20884
20885 * Makefile.in (lisp, shortlisp): Add composite.elc.
20886
20887 * composite.h (Qauto_composed, Vauto_composition_function)
20888 (Qauto_composition_function): Extern them.
20889
20890 * composite.c (Vcomposition_function_table)
20891 (Qcomposition_function_table): Delete variables.
20892 (Qauto_composed, Vauto_composition_function)
20893 (Qauto_composition_function): New variables.
20894 (run_composition_function): Don't call
20895 compose-chars-after-function.
20896 (update_compositions): Clear `auto-composed' text property.
20897 (compose_chars_in_text): Delete this function.
20898 (syms_of_composite): Staticpro Qauto_composed and
20899 Qauto_composition_function. Declare Vauto_composition_function as
20900 a Lisp variable.
20901
20902 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20903
20904 * xdisp.c (it_props): Add an entry for Qauto_composed.
20905 (handle_auto_composed_prop): New function.
20906
20907 * xselect.c (selection_data_to_lisp_data): Don't call
20908 compose_chars_in_text.
20909
20910 2008-02-01 Dave Love <fx@gnu.org>
20911
20912 * keyboard.c (read_char): Modify checking around use of
20913 Vkeyboard_translate_table.
20914
20915 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20916 and fix C types.
20917
20918 2008-02-01 Kenichi Handa <handa@m17n.org>
20919
20920 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20921 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20922 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20923 the case that the last byte is '\r' correctly.
20924 (decode_coding): Flush out the unprocessed data correctly.
20925 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20926
20927 2008-02-01 Dave Love <fx@gnu.org>
20928
20929 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20930 Add XK_ISO... case.
20931 (xaw_scroll_callback): Revert last change.
20932
20933 2008-02-01 Kenichi Handa <handa@m17n.org>
20934
20935 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20936
20937 2008-02-01 Kenichi Handa <handa@m17n.org>
20938
20939 * xfaces.c (Vface_resizing_fonts): New variable.
20940 (struct font_name): New member `resizing_ratio'.
20941 (font_resizing_ratio): New function.
20942 (split_font_name): Set font->resizing_ratio.
20943 (better_font_p): Pay attention to font->resizing_ratio.
20944 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20945 RESX, and RESY fields.
20946 (try_alternative_families): Try scalable fonts if
20947 Vscalable_fonts_allowed is not Qt.
20948 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20949
20950 2008-02-01 Dave Love <fx@gnu.org>
20951
20952 * xterm.c (xaw_scroll_callback): Cast correctly.
20953
20954 2008-02-01 Dave Love <fx@gnu.org>
20955
20956 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20957 (lispy_kana_keys): Comment out.
20958 (make_lispy_event) [XK_kana_A]: Comment out.
20959
20960 * xterm.c (xaw_scroll_callback): Cast call_data.
20961 (XTread_socket): Deal with ASCII keysyms.
20962 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20963
20964 2008-02-01 Dave Love <fx@gnu.org>
20965
20966 * xterm.c (Vx_keysym_table): New.
20967 (syms_of_xterm): Initialize it.
20968 (XTread_socket): Use it.
20969 From head: Eliminate incorrect optimization that tried to avoid
20970 decoding the output of X*LookupString.
20971 (x_get_font_repertory): Delete charset declaration.
20972
20973 2008-02-01 Kenichi Handa <handa@m17n.org>
20974
20975 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20976 return 0.
20977 (Fdefine_coding_system_internal): Setup
20978 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20979
20980 2008-02-01 Dave Love <fx@gnu.org>
20981
20982 * coding.c (Fcheck_coding_system): Doc fix.
20983
20984 * editfns.c (Finsert_byte): Return a proper value.
20985
20986 2008-02-01 Kenichi Handa <handa@m17n.org>
20987
20988 * coding.c (decode_coding): Fix args to translate_chars. Pay
20989 attention to Vstandard_translation_table_for_decode.
20990 (encode_coding): Fix args to translate_chars. Pay attention to
20991 Vstandard_translation_table_for_encode.
20992
20993 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20994 SINGLE_BYTE_CHAR_P.
20995
20996 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20997 not by SINGLE_BYTE_CHAR_P.
20998
20999 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21000 SINGLE_BYTE_CHAR_P.
21001
21002 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21003 SINGLE_BYTE_CHAR_P.
21004
21005 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21006 by SINGLE_BYTE_CHAR_P.
21007
21008 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21009 SINGLE_BYTE_CHAR_P.
21010
21011 2008-02-01 Dave Love <fx@gnu.org>
21012
21013 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21014
21015 2008-02-01 Dave Love <fx@gnu.org>
21016
21017 * fns.c (Flanginfo): Fix typo.
21018
21019 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21020
21021 2008-02-01 Kenichi Handa <handa@m17n.org>
21022
21023 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21024 (detect_coding_emacs_mule, detect_coding_iso_2022)
21025 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21026 incomplete byte sequence. Don't update *mask when correctly detected.
21027 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21028 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21029 (detect_coding, detect_coding_system): Adjust for the changes above.
21030
21031 2008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * character.c (char_string): Rename from
21034 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21035 (string_char): Rename from string_char.
21036
21037 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21038 if C is greater than MAX_3_BYTE_CHAR.
21039 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21040 string_char instead of string_char_with_unification.
21041
21042 2008-02-01 Dave Love <fx@gnu.org>
21043
21044 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21045
21046 2008-02-01 Kenichi Handa <handa@m17n.org>
21047
21048 * keymap.c (push_key_description): Pay attention to force_multibyte.
21049
21050 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21051
21052 2008-02-01 Dave Love <fx@gnu.org>
21053
21054 * charset.c (define_charset_internal): Rename `supprementary'.
21055
21056 * Makefile.in (lisp, shortlisp): Remove latin-N.
21057
21058 2008-02-01 Dave Love <fx@gnu.org>
21059
21060 * xfns.c (x_window, x_window): Use use_xim.
21061
21062 * xterm.c (use_xim): Initialize.
21063 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21064 (x_term_init): Maybe set use_xim.
21065
21066 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21067
21068 2008-02-01 Kenichi Handa <handa@m17n.org>
21069
21070 * search.c (search_buffer): Fix case-fold-search of multibyte
21071 characters.
21072 (boyer_moore): Rename the last argument to char_high_bits.
21073
21074 2008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * xdisp.c (display_string): Fix for the case of zero width glyph.
21077
21078 * xfns.c (x_set_font): Change the error message of the case that
21079 x_new_fontset returns Qt.
21080
21081 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21082 (Finternal_set_lisp_face_attribute): Use signal_error for the
21083 error of invalid fontset.
21084
21085 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21086 fontset, return Qt.
21087
21088 2008-02-01 Dave Love <fx@gnu.org>
21089
21090 * unexelf.c (unexec): Make .got handling not SGI-specific.
21091
21092 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21093
21094 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21095
21096 * keyboard.c (read_key_sequence): Fix type error.
21097
21098 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21099 type error.
21100
21101 * fontset.c (fontset_add): Return Lisp_Object.
21102
21103 2008-02-01 Dave Love <fx@gnu.org>
21104
21105 * charset.h (charset_ordered_list_tick): Declare extern.
21106
21107 2008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 The following changes (and some of 2008-02-01 changes of mine) are
21110 for handling syntax, category, and case conversion for unibyte
21111 characters by converting them to multibyte on the fly. With these
21112 changes, we don't have to setup syntax and case tables for unibyte
21113 characters in each language environment.
21114
21115 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21116 multibyte if necessary.
21117
21118 * bytecode.c (Fbyte_code): Likewise.
21119
21120 * character.h (LEADING_CODE_LATIN_1_MIN)
21121 (LEADING_CODE_LATIN_1_MAX): New macros.
21122 (unibyte_to_multibyte_table): Extern it.
21123 (unibyte_char_to_multibyte): New macro.
21124 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21125 (CHAR_LEADING_CODE): New macro.
21126 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21127
21128 * character.c (unibyte_to_multibyte_table): New variable.
21129 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21130 (multibyte_char_to_unibyte): If C is an eight-bit character,
21131 convert it to the corresponding byte value.
21132
21133 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21134 not 1, signals an error. Update the elements of
21135 unibyte_to_multibyte_table.
21136 (init_charset_once): Initialize unibyte_to_multibyte_table.
21137 (syms_of_charset): Define the charset `iso-8859-1'.
21138
21139 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21140 as is without converting it to unibyte. In a unibyte buffer,
21141 convert C to multibyte before checking the syntax.
21142
21143 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21144
21145 * minibuf.c (Fminibuffer_complete_word): Use the macro
21146 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21147
21148 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21149
21150 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21151 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21152 that is zero, convert an eight-bit char to multibyte.
21153 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21154 non-emacs case.
21155 (PATFETCH): Convert an eight-bit char to multibyte.
21156 (HANDLE_UNIBYTE_RANGE): New macro.
21157 (regex_compile): Setup the compiled pattern for multibyte chars
21158 even if the given regex string is unibyte. Use PATFETCH_RAW
21159 instead of PATFETCH in many places. To handle `charset'
21160 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21161 only for ASCII chars.
21162 (analyse_first) <exactn>: Simplify because the compiled pattern
21163 is multibyte.
21164 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21165 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21166 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21167 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21168 multibyte always 1.
21169 (re_search_2): In emacs, set the locale variable multibyte to 1,
21170 otherwise to 0. New local variable target_multibyte. Check it
21171 to decide the multibyteness of STR1 and STR2. If
21172 target_multibyte is zero, convert unibyte chars to multibyte
21173 before translating and checking fastmap.
21174 (TARGET_CHAR_AND_LENGTH): New macro.
21175 (re_match_2_internal): In emacs, set the locale variable multibyte
21176 to 1, otherwise to 0. New local variable target_multibyte. Check
21177 it to decide the multibyteness of STR1 and STR2. Use
21178 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21179 <charset, charset_not>: If multibyte is nonzero, check fastmap
21180 only for ASCII chars. Call bcmp_translate with
21181 target_multibyte, not with multibyte.
21182 <begline>: Declare the local variable C as `unsigned'.
21183 (bcmp_translate): Change the last arg name to target_multibyte.
21184
21185 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21186 the regexp pattern and the matching target. Set cp->buf.multibyte
21187 to the multibyteness of the regexp pattern. Set
21188 cp->but.target_multibyte to the multibyteness of the matching target.
21189 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21190 FETCH_STRING_CHAR_ADVANCE.
21191 (Freplace_match): Convert unibyte chars to multibyte.
21192
21193 * syntax.c (char_quoted, back_comment, scan_words)
21194 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21195 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21196 unibyte chars to multibyte.
21197 (skip_chars): Delete the arg syntaxp, and move the code for
21198 handling syntaxes to skip_syntaxes. Change callers.
21199 Fix the case that the multibyteness of STRING and the current
21200 buffer doesn't match.
21201 (skip_syntaxes): New function.
21202 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21203 SINGLE_BYTE_CHAR_P.
21204
21205 2008-02-01 Kenichi Handa <handa@m17n.org>
21206
21207 * xfaces.c (QCfontset): New variable.
21208 (LFACE_FONTSET): New macro.
21209 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21210 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21211 (Finternal_set_lisp_face_attribute)
21212 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21213 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21214 check also LFACE_FONTSET_INDEX.
21215 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21216 attrs[LFACE_FONT_INDEX].
21217 (syms_of_xfaces): Intern and staticpro QCfontset.
21218
21219 * dispextern.h (enum lface_attribute_index): New member
21220 LFACE_FONTSET_INDEX.
21221
21222 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21223
21224 2008-02-01 Kenichi Handa <handa@m17n.org>
21225
21226 * coding.c (coding_set_destination): Fix coding->destination for
21227 the case converting a region.
21228 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21229 (encode_coding_object): Fix coding->dst_pos and
21230 coding->dst_pos_byte for the case converting a region.
21231
21232 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21233
21234 * character.h (BYTE8_STRING): New macro.
21235
21236 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21237
21238 2008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21241 characters by octal form.
21242
21243 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21244
21245 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21246 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21247 _fetch_multibyte_char_len.
21248 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21249
21250 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21251
21252 * casefiddle.c (casify_object): Simplify. Handle the case that
21253 the case conversion change the byte length.
21254 (casify_region): Likewise.
21255
21256 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21257
21258 * character.c (_fetch_multibyte_char_len): Delete this variable.
21259 (syms_of_character): Setup Vprintable_chars.
21260
21261 * editfns.c (Fchar_equal): Fix for the unibyte case.
21262 (Finsert_byte): New function.
21263 (syms_of_editfns): Defsubr it.
21264
21265 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21266 of direct code 0x3ffff.
21267
21268 * search.c (Freplace_match): Fix for the unibyte case.
21269
21270 2008-02-01 Kenichi Handa <handa@m17n.org>
21271
21272 * lread.c (safe_to_load_p): Fix the logic.
21273
21274 * syntax.c (scan_words): Don't treat characters belonging to
21275 different scripts as constituting a word.
21276
21277 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21278
21279 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21280
21281 * emacs.c (main): In the case of --unibyte, instead of aborting on
21282 finding non-empty buffer, make it unibyte.
21283
21284 2008-02-01 Kenichi Handa <handa@m17n.org>
21285
21286 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21287 to create a fontset.
21288
21289 2008-02-01 Dave Love <fx@gnu.org>
21290
21291 * character.c (Funibyte_char_to_multibyte): Doc fix.
21292
21293 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21294
21295 2008-02-01 Kenichi Handa <handa@m17n.org>
21296
21297 * fontset.c (fontset_add): Make the type `int'.
21298 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21299
21300 * character.c (unibyte_char_to_multibyte)
21301 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21302 charset_unibyte, not charset_primary.
21303
21304 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21305
21306 * charset.c (charset_unibyte): Rename from charset_primary.
21307 (Funibyte_charset): Rename from Fprimary_charset.
21308 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21309 (syms_of_charset): Adjust for the above changes.
21310
21311 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21312 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21313 it->multibyte_p is zero.
21314
21315 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21316 Delete extern.
21317
21318 2008-02-01 Kenichi Handa <handa@m17n.org>
21319
21320 * coding.c (Fdefine_coding_system_internal): Fix category setting
21321 for a coding system of type iso-2022.
21322
21323 2008-02-01 Kenichi Handa <handa@m17n.org>
21324
21325 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21326
21327 2008-02-01 Kenichi Handa <handa@m17n.org>
21328
21329 * syntax.c (Vnext_word_boundary_function_table): New variable.
21330 (next-word-boundary-function-table): Declare it as a Lisp variable
21331 in syms_of_syntax.
21332 (scan_words): Call functions in Vnext_word_boundary_function_table
21333 if any.
21334
21335 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21336
21337 * fontset.c (fs_load_font): If fontp->charset is not negative,
21338 return fontp without setting its members.
21339
21340 2008-02-01 Dave Love <fx@gnu.org>
21341
21342 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21343
21344 * m/sparc.h (HAVE_ALLOCA): Delete.
21345
21346 * s/irix6-5.h: Don't include strings.h.
21347 (bcopy, bzero, bcmp): Don't undef.
21348
21349 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21350
21351 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21352 (TIOCSIGSEND): Don't test IRIX6.
21353 (bcopy, bzero, bcmp): Define conditionally.
21354
21355 2008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * buffer.c (Qas, Qmake, Qto): New variables.
21358 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21359 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21360
21361 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21362 we are inserting a process output into a multibyte buffer.
21363
21364 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21365 multibyte_char_to_unibyte.
21366
21367 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21368 by the primary charset, make it eight-bit char.
21369 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21370
21371 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21372 (charset_8_bit__control, charset_8_bit_graphic)
21373 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21374 (define_charset_internal): New function.
21375 (syms_of_charset): Call define_charset_internal for pre-defined
21376 charsets.
21377
21378 * charset.h (charset_8_bit): Extern it.
21379
21380 * coding.c (make_conversion_work_buffer): Adjust for the change
21381 of Fset_buffer_multibyte.
21382 (encode_coding_raw_text): Increment p0 in the loop.
21383
21384 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21385
21386 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21387 for the change of Fset_buffer_multibyte.
21388
21389 * fns.c (Fstring_to_multibyte): New function.
21390 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21391
21392 2008-02-01 Dave Love <fx@gnu.org>
21393
21394 * xfns.c (x_put_x_image): Declare args.
21395
21396 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21397 (try_font_list): Declare an arg.
21398
21399 * xdisp.c (message2_nolog, set_message): Declare an arg.
21400
21401 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21402
21403 * syntax.c (scan_sexps_forward): Declare an arg.
21404
21405 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21406 Declare an arg.
21407
21408 * lisp.h (Fnew_fontset): Declare.
21409
21410 * keymap.c (push_key_description): Call CHARACTERP correctly.
21411
21412 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21413 (face_for_char): Delete unused vars.
21414 (Fset_fontset_font): Doc fix. Delete unused vars.
21415
21416 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21417
21418 * composite.c (update_compositions): Declare arg.
21419
21420 * cm.c (calccost, cmgoto): Declare args.
21421
21422 * charset.c: Remove `emacs' conditional. Doc fixes.
21423 (map_char_table_for_charset): Declare.
21424
21425 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21426
21427 * ccl.c: Remove `emacs' conditional.
21428
21429 2008-02-01 Kenichi Handa <handa@m17n.org>
21430
21431 The following changes are to allow specifying multiple font
21432 patterns for a character range (specified by script or charset).
21433
21434 * Makefile.in (abbrev.o): Depend on syntax.h.
21435 (xfaces.o): Depend on charset.h.
21436
21437 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21438 SINGLE_BYTE_CHAR_P.
21439
21440 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21441
21442 * character.h (Vchar_script_table): Extern it.
21443
21444 * character.c (Vscript_alist): Delete.
21445 (Vchar_script_table, Qchar_script_table): New variable.
21446 (syms_of_character): Declare Vchar_script_table as a lisp variable
21447 and initialize it.
21448
21449 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21450 have property char-table-extra-slots, make no extra slot.
21451
21452 * dispextern.h (struct face): Delete member `charset'.
21453 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21454 SINGLE_BYTE_CHAR_P.
21455 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21456 Add prototypes.
21457 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21458 (generate_ascii_font_name): Rename from generate_ascii_font.
21459
21460 * fontset.h (get_font_repertory_func): New prototype.
21461 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21462 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21463
21464 * fontset.c (Qprepend, Qappend): New variables.
21465 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21466 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21467 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21468 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21469 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21470 (load_font_get_repertory): New functions.
21471 (fontset_set): Delete.
21472 (fontset_face): New arg FACE. Return face ID, not face.
21473 Complete re-write to handle new fontset structure. Change caller.
21474 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21475 (face_for_char): Don't call lookup_face.
21476 (make_fontset_for_ascii_face): New arg FACE.
21477 (fs_load_font): New arg CHARSET_ID. Don't check
21478 Vfont_encoding_alist here.
21479 (find_font_encoding): New function.
21480 (list_fontsets): Use STRINGP, not ! NILP.
21481 (accumulate_script_ranges): New function.
21482 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21483 re-written to handle new fontset structure.
21484 (Ffontset_font): Return a copy of element.
21485 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21486 docstring of font-encoding-alist.
21487
21488 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21489 (Fset_fotset_font): Fix arguments to 5.
21490
21491 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21492
21493 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21494 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21495 (highlight_trailing_whitespace): Adjust for the change of
21496 lookup_named_face.
21497
21498 * xfaces.c: Include charset.h.
21499 (load_face_font): Delete argument C. Change caller.
21500 (generate_ascii_font_name): Rename from generate_ascii_font.
21501 (font_name_registry): New function.
21502 (cache_face): Store ascii faces before non-ascii faces in buckets.
21503 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21504 Lookup only ascii faces.
21505 (lookup_non_ascii_face): New function.
21506 (lookup_named_face): Delete argument C. Change caller.
21507 (lookup_derived_face): Delete argument C. Change caller.
21508 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21509 a string, just call font_list with it.
21510 (choose_face_font): Delete arguments FACE and C. New arg
21511 FONT_SPEC. Change caller.
21512 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21513 Change caller.
21514 (realize_non_ascii_face): New function.
21515 (realize_x_face): Call load_face_font here.
21516 (realize_tty_face): Delete argument C. Change caller.
21517 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21518 get a face ID.
21519 (dump_realized_face): Don't print charset of FACE.
21520
21521 * xfns.c (x_set_font): Always call x_new_fontset and
21522 store_frame_parameter.
21523 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21524 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21525
21526 * xterm.h (x_get_font_repertory): Extern it.
21527
21528 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21529 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21530 it->multibyte_p is zero.
21531 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21532 (x_new_fontset): If FONTSETNAME doesn't match any existing
21533 fontsets, create a new one.
21534 (x_get_font_repertory): New function.
21535
21536 2008-02-01 Kenichi Handa <handa@m17n.org>
21537
21538 * coding.c (Ffind_coding_systems_region_internal): Detect an
21539 ASCII only string correctly.
21540
21541 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21542 version is 0.
21543
21544 2008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 * lread.c: Include "coding.h".
21547 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21548 (load_each_byte, unread_char): New variables.
21549 (readchar_backlog): Delete.
21550 (readchar): Return a character unless load_each_byte is nonzero.
21551 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21552 cons. If unread_char is not -1, simply return it.
21553 (unreadchar): Handle the case that readcharfun is
21554 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21555 (read_multibyte): Delete.
21556 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21557 (read_emacs_mule_char): New functions.
21558 (Fload): Even if the file doesn't have the extension ".elc", if
21559 safe_to_load_p returns a positive version number, assume that the
21560 file contains bytecompiled code. If the version is less than 22,
21561 load the file while decoding multibyte sequences by emacs-mule.
21562 (readevalloop): Don't use readchar_backlog.
21563 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21564 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21565 (read_escape): Delete the arg BYTEREP.
21566 (read1): Set load_each_byte to 1 temporarily while handling
21567 #@NUMBER. Don't call read_multibyte.
21568 (read_vector): Call Fread with a cons. If readcharfun is
21569 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21570 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21571 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21572 and Qload_force_doc_strings.
21573
21574 2008-02-01 Kenichi Handa <handa@m17n.org>
21575
21576 * xdisp.c (face_before_or_after_it_pos): Call
21577 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21578
21579 2008-02-01 Kenichi Handa <handa@m17n.org>
21580
21581 * character.h (TRAILING_CODE_P): New macro.
21582 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21583 (string_char_with_unification): Fix prototype.
21584 (Vscript_alist): Extern it.
21585
21586 * character.c (Vscript_alist): New variable.
21587 (string_char_with_unification, str_as_unibyte)
21588 (string_escape_byte8): Add `const' to local variables.
21589 (syms_of_character): Declare script-alist as a Lisp variable.
21590
21591 * charset.h (Vcharset_ordered_list): Extern it.
21592 (charset_ordered_list_tick): Extern it.
21593 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21594 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21595 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21596 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21597 (Funify_charset): Adjust for the change of Funify_charset.
21598
21599 * charset.c (charset_ordered_list_tick): New variable.
21600 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21601 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21602 deunify instead of unify a charset.
21603 (string_xstring_p): Add `const' to local variables.
21604 (find_charsets_in_text): Add `const' to arguments and local variables.
21605 (encode_char): Adjust for the change of Funify_charset. Fix
21606 detecting of invalid code.
21607 (Fset_charset_priority): Increment charset_ordered_list_tick.
21608 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21609 and TO_CODE.
21610
21611 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21612 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21613 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21614 (decode_coding_ccl, consume_chars)
21615 (Ffind_coding_systems_region_internal)
21616 (Fcheck_coding_systems_region): Add `const' to local variables.
21617
21618 * print.c (print_object): Use octal form for printing the
21619 contents of a bool vector.
21620
21621 2008-02-01 Dave Love <fx@gnu.org>
21622
21623 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21624 <version == 20>: Refuse to load.
21625
21626 2008-02-01 Dave Love <fx@gnu.org>
21627
21628 * fns.c: Move coding.h.
21629 (Qcodeset, Qdays, Qmonths): New.
21630 (concat): Use CHARACTERP instead of INTEGERP.
21631 (Flocale_codeset): Delete.
21632 (Flanginfo): New function.
21633 (syms_of_fns): Change accordingly.
21634
21635 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21636
21637 2008-02-01 Dave Love <fx@gnu.org>
21638
21639 * casetab.c (init_casetab_once, init_casetab_once): Fix
21640 CHAR_TABLE_SET call.
21641
21642 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21643
21644 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21645
21646 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21647 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21648 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21649
21650 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21651
21652 * coding.c (ENCODE_DESIGNATION, decode_eol)
21653 (make_conversion_work_buffer, code_conversion_restore)
21654 (Fdefine_coding_system_internal): Convert Lisp types.
21655 (code_conversion_restore): Use EQ, not ==.
21656 (Fencode_coding_string): Fix code_convert_string call.
21657
21658 * coding.h (code_convert_region): Fix prototype.
21659
21660 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21661
21662 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21663 (Ffontset_info): Convert Lisp types.
21664
21665 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21666
21667 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21668
21669 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21670
21671 * chartab.c: Include "...h", not <...h> in some cases.
21672
21673 * callproc.c (Fcall_process): Remove unused variables.
21674
21675 2008-02-01 Dave Love <fx@gnu.org>
21676
21677 * coding.c (Fset_coding_system_priority): Allow null arg list.
21678
21679 2008-02-01 Dave Love <fx@gnu.org>
21680
21681 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21682 (Fself_insert_and_exit): Use CHARACTERP.
21683
21684 * callproc.c (Fcall_process): Remove unused vars.
21685
21686 * xterm.c (XTread_socket): Add extra dead keysyms.
21687
21688 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21689
21690 * dispextern.h: Remove prototypes for redraw_frame,
21691 redraw_garbaged_frames.
21692
21693 * cmds.c (Fself_insert_command): Use CHARACTERP.
21694
21695 * chartab.c (make_sub_char_table): Remove unused var.
21696 (Fset_char_table_default, Fmap_char_table): Doc fix.
21697
21698 * keymap.c (access_keymap): Remove generic char code.
21699 (push_key_description): Use CHARACTERP.
21700
21701 2008-02-01 Dave Love <fx@gnu.org>
21702
21703 * charset.c: Doc fixes.
21704 (Funify_charset): Extra checking.
21705
21706 2008-02-01 Dave Love <fx@gnu.org>
21707
21708 * lread.c: Remove some unused variables.
21709 (safe_to_load_p): If safe, return the magic number version byte.
21710 (Fload): Maybe use load-with-code-conversion.
21711
21712 2008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * category.c (Fmodify_category_entry): Don't modify the contents
21715 of category_set for characters out of the range. Avoid
21716 unnecessary modification.
21717
21718 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21719 Vchar_unify_table. The default value of the table is now nil.
21720
21721 * character.c (syms_of_character): Setup Vchar_width_table for
21722 eight-bit-control and raw-byte chars.
21723
21724 * charset.h (enum define_charset_arg_index): Delete
21725 charset_arg_parents and add charset_arg_subset and
21726 charset_arg_superset.
21727 (enum charset_attr_index): Delete charset_parents and add
21728 charset_subset and charset_superset.
21729 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21730 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21731 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21732 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21733 (CHARSET_SUPERSET): New macros.
21734 (charset_work): Extern it.
21735 (ENCODE_CHAR): Use charset_work.
21736 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21737 (map_charset_chars): Extern it.
21738
21739 * charset.c (load_charset_map): Set the default value of encoder
21740 and deunifier char-tables to nil.
21741 (map_charset_chars): Change argument. Change callers. Use
21742 map_char_table_for_charset instead of map_char_table.
21743 (Fmap_charset_chars): New optional args from_code and to_code.
21744 (Fdefine_charset_internal): Adjust for the change of
21745 `define-charset' (:parents -> :subset or :superset).
21746 (charset_work): New variable.
21747 (encode_char, syms_of_charset): Adjust for the change of
21748 Fdefine_charset_internal.
21749 (Ffind_charset_string): Setup the vector `charsets' correctly.
21750
21751 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21752 the previous change.
21753 (char_table_ref_and_range): Adjust for the above change.
21754 (map_sub_char_table_for_charset): New function.
21755 (map_char_table_for_charset): New function.
21756
21757 * keymap.c (describe_vector): Handle a char-table directly here.
21758 (describe_char_table): Delete.
21759
21760 * lisp.h (map_charset_chars): Delete.
21761
21762 2008-02-01 Dave Love <fx@gnu.org>
21763
21764 * fns.c (count_combining): Comment out (unused).
21765 (Flocale_codeset): New.
21766 (syms_of_fns): Defsubr it.
21767
21768 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21769 (size_t): Remove.
21770
21771 2008-02-01 Dave Love <fx@gnu.org>
21772
21773 * Makefile.in (chartab.o): Depend on charset.h.
21774
21775 2008-02-01 Kenichi Handa <handa@m17n.org>
21776
21777 * character.c (syms_of_character): Set the default value of
21778 Vprintable_chars to Qnil.
21779
21780 2008-02-01 Dave Love <fx@gnu.org>
21781
21782 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21783
21784 2008-02-01 Kenichi Handa <handa@m17n.org>
21785
21786 * charset.c (load_charset_map): Handle the case that from < to
21787 correctly.
21788
21789 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21790 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21791 Pay attention to raw-8-bit chars.
21792
21793 2008-02-01 Kenichi Handa <handa@m17n.org>
21794
21795 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21796 It is not bytecompiled now.
21797
21798 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21799 (charset_jisx0208): New variables.
21800 (Fdefine_charset_internal): Setup them if appropriate.
21801 (init_charset_once): Initialize them to -1.
21802
21803 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21804 (charset_jisx0208): Extern them.
21805
21806 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21807 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21808 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21809 (setup_iso_safe_charsets): Fix arguments to Fassq.
21810 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21811 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21812 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21813 (encode_coding_iso_2022): Change the 1st arg to
21814 ENCODE_ISO_CHARACTER to a variable.
21815
21816 2008-02-01 Kenichi Handa <handa@m17n.org>
21817
21818 * charset.h (enum define_charset_arg_index): New enums
21819 charset_arg_min_code and charset_arg_max_code.
21820 (struct charset): New member char_index_offset.
21821
21822 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21823 Take charset->char_index_offset into account.
21824 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21825 args[charset_arg_max_code]. Setup charset.char_index_offset.
21826 (syms_of_charset): Fix args to Fdefine_charset_internal.
21827
21828 2008-02-01 Dave Love <fx@gnu.org>
21829
21830 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21831
21832 2008-02-01 Dave Love <fx@gnu.org>
21833
21834 * coding.c: Doc fixes.
21835 (Fcoding_system_aliases): Fix return value.
21836 (Qmac): Remove (duplicated) definition.
21837
21838 2008-02-01 Dave Love <fx@gnu.org>
21839
21840 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21841 New functions.
21842
21843 * character.c (Fstring): Doc fix.
21844
21845 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21846
21847 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
21848 (font-encoding-alist): Doc fix.
21849
21850 2008-02-01 Dave Love <fx@gnu.org>
21851
21852 * term.c (costs_set): Declare static, non-initialized for pcc.
21853 (encode_terminal_code): Remove unused var.
21854
21855 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21856 for K&R.
21857
21858 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21859
21860 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21861 (suffixes): Move out of make_subsidiaries for K&R.
21862
21863 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21864
21865 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21866
21867 2008-02-01 Dave Love <fx@gnu.org>
21868
21869 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21870
21871 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21872
21873 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21874
21875 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21876
21877 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21878
21879 2008-02-01 Kenichi Handa <handa@m17n.org>
21880
21881 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21882 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21883
21884 2008-02-01 Kenichi Handa <handa@m17n.org>
21885
21886 * coding.c (decode_coding_charset): Adjust for the change of
21887 Fdefine_coding_system_internal.
21888 (Fdefine_coding_system_internal): For a coding system of
21889 `charset' type, store a list of charset IDs in
21890 `charset_attr_charset_valids' element of coding attributes.
21891
21892 2008-02-01 Kenichi Handa <handa@m17n.org>
21893
21894 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21895 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21896 caller. Handle 2-byte and 3-byte charsets correctly.
21897 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21898 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21899 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21900 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21901 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21902 sequence.
21903 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21904 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21905 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21906 and alt&rule composition.
21907 (decode_coding_iso_2022): Handle composition correctly.
21908 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21909
21910 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21911 re-defining a charset. If the charset has :emacs-mule-id, setup
21912 emacs_mule_bytes.
21913 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21914
21915 2008-02-01 Kenichi Handa <handa@m17n.org>
21916
21917 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21918 (encode_coding_big5, encode_coding_charset): If coding requires safe
21919 encoding, produce a character specified by
21920 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21921
21922 2008-02-01 Dave Love <fx@gnu.org>
21923
21924 * xterm.c (XSetIMValues): Declare.
21925
21926 * process.c: Conditionally include sys/wait.h, pty.h.
21927
21928 * print.c (print_object): Fix print format for 64-bit systems.
21929
21930 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21931
21932 * buffer.c (emacs_strerror): Declare.
21933
21934 * fontset.c (Fclear_face_cache): Declare.
21935 (accumulate_font_info): Comment-out (unused).
21936 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21937 variables.
21938
21939 * character.h (string_escape_byte8): Declare.
21940
21941 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21942 unused vars.
21943 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21944 (Fmap_charset_chars): Doc fix.
21945
21946 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21947 (Fset_coding_system_priority, Fset_coding_system_priority)
21948 (Fdefine_coding_system_internal): Doc fix.
21949
21950 2008-02-01 Dave Love <fx@gnu.org>
21951
21952 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21953
21954 2008-02-01 Kenichi Handa <handa@m17n.org>
21955
21956 * character.c (string_escape_byte8): Make multibyte string with
21957 correct size.
21958
21959 * charset.c (Fmake_char): Delete unnecessary code.
21960
21961 2008-02-01 Kenichi Handa <handa@m17n.org>
21962
21963 * xfns.c (x_encode_text): Allocate coding.destination here, and
21964 call encode_coding_object with dst_object Qnil.
21965
21966 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21967 multibyte form correctly.
21968
21969 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21970 against Vfont_encoding_alist.
21971
21972 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21973 handling of charset list.
21974 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21975 (decode_coding_object): Move point to coding->dst_pos before
21976 calling post-read-conversion function.
21977 (encode_coding_object): Give correct arguments to
21978 pre-write-conversion. Ignore the return value of
21979 pre-write-conversion function. Pay attention to the case that
21980 pre-write-conversion changes the current buffer. If dst_object is
21981 Qt, even if coding->src_bytes is zero, allocate at least one byte
21982 to coding->destination.
21983
21984 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21985
21986 * charset.c (Fmake_char): Make it more backward compatible.
21987 (Fmap_charset_chars): Fix docstring.
21988
21989 2008-02-01 Dave Love <fx@gnu.org>
21990
21991 * coding.c: Doc fixes.
21992 (Fdefine_coding_system_alias): Use names, not symbols, in
21993 coding-system-alist.
21994
21995 2008-02-01 Kenichi Handa <handa@m17n.org>
21996
21997 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21998 of calling free_realized_face.
21999
22000 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
22001
22002 * charset.c (read_hex): Don't treat SPC as a comment starter.
22003 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22004 (Fdecode_char): Fix typo.
22005
22006 2008-02-01 Kenichi Handa <handa@m17n.org>
22007
22008 * charset.h (struct charset): New member `code_space_mask'.
22009
22010 * coding.c (coding_set_source): Delete the local variable beg_byte.
22011 (encode_coding_charset, Fdefine_coding_system_internal):
22012 Delete the local variable charset.
22013 (Fdefine_coding_system_internal): Setup
22014 attrs[coding_attr_charset_valids] correctly.
22015
22016 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22017 member to check if CODE is valid or not.
22018 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22019 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22020 is within the range of charset->min_code and carset->max_code.
22021
22022 2008-02-01 Dave Love <fx@gnu.org>
22023
22024 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22025
22026 * dispextern.h (generate_ascii_font): Fix return type.
22027
22028 * xfaces.c (generate_ascii_font): Fix arg declaration.
22029
22030 * coding.c (coding_inherit_eol_type)
22031 (Fset_terminal_coding_system_internal)
22032 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22033
22034 2008-02-01 Kenichi Handa <handa@m17n.org>
22035
22036 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22037 multiple charsets correctly.
22038
22039 2008-02-01 Kenichi Handa <handa@m17n.org>
22040
22041 * search.c (boyer_moore): Fix handling of multibyte character
22042 translation.
22043
22044 * xdisp.c (display_mode_element): When the variable `elt' is
22045 changed, update `this' and `lisp_string'.
22046
22047 2008-02-01 Kenichi Handa <handa@m17n.org>
22048
22049 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22050
22051 * callproc.c (Fcall_process): Be sure to give the current buffer
22052 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22053
22054 * charset.c (struct charset_map_entries): New struct.
22055 (load_charset_map): Rename from parse_charset_map. New args
22056 entries and n_entries. Change caller.
22057 (load_charset_map_from_file): Rename from load_charset_map.
22058 Change caller. New arg control_flag. Call load_charset_map at
22059 the tail.
22060 (load_charset_map_from_vector): New function.
22061 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22062 (encode_char): If the charset is compact, change a character index
22063 to a code point.
22064
22065 * coding.c (coding_alloc_by_making_gap): Check the case that the
22066 source and destination are the same correctly.
22067 (decode_coding_raw_text): Set coding->consumed_char and
22068 coding->consumed to 0.
22069 (produce_chars): If coding->chars_at_source is nonzero, update
22070 coding->consumed_char and coding->consumed before calling
22071 alloc_destination.
22072 (Fdefine_coding_system_alias): Register ALIAS in
22073 Vcoding_system_alist.
22074 (syms_of_coding): Define `no-conversion' coding system at the tail.
22075
22076 * fileio.c (Finsert_file_contents): Set coding_system instead of
22077 val. If the current buffer is multibyte, always call
22078 decode_coding_gap.
22079
22080 * xfaces.c (try_font_list): Give higher priority to fontset's
22081 family than face's family.
22082
22083 2008-02-01 Kenichi Handa <handa@m17n.org>
22084
22085 * callproc.c (Fcall_process): Be sure to give the current buffer
22086 to decode_coding_c_string.
22087
22088 * xfaces.c (try_font_list): Give a family specified in a fontset
22089 higher priority than a family specified in a face.
22090
22091 2008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22094 Fix arguments to insert_from_buffer.
22095
22096 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22097
22098 2008-02-01 Kenichi Handa <handa@m17n.org>
22099
22100 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22101 (decode_coding_gap): Set coding->dst_multibyte correctly.
22102
22103 2008-02-01 Kenichi Handa <handa@m17n.org>
22104
22105 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22106 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22107 (encode_coding_utf_16): Substitute coding->default_char for
22108 non-Unicode characters.
22109 (decode_coding): Don't call record_insert here.
22110 (setup_coding_system): Initialize `surrogate' of
22111 coding->spec.utf_16 to 0.
22112 (EMIT_ONE_BYTE): Fix for multibyte case.
22113
22114 * insdel.c (insert_from_gap): Call record_insert.
22115
22116 2008-02-01 Kenichi Handa <handa@m17n.org>
22117
22118 * casefiddle.c (casify_region): Fix multibyte case.
22119
22120 * character.c (c_string_width): Add return type `int'.
22121 (char_string_with_unification): Delete arg ADVANCED.
22122
22123 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22124 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22125 (CHAR_STRING_ADVANCE): Make it do-while statement.
22126
22127 * chartab.c (sub_char_table_set_range): Optimize for the case
22128 DEPTH == 3. Add workaround code for a GCC optimization bug.
22129
22130 * charset.c (parse_charset_map): Remove an unused variable.
22131
22132 * coding.c: Delete unused variables.
22133
22134 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22135 earlier. If inserted is zero and the coding system doesn't
22136 require flushing, don't call decode_coding_gap.
22137
22138 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22139
22140 2008-02-01 Kenichi Handa <handa@m17n.org>
22141
22142 The following changes are for using Unicode as an internal
22143 character model, and use UTF-8 format for buffer/string
22144 representation.
22145
22146 * .gdbinit (xchartable): Adjust for the change of char table structure.
22147 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22148
22149 * Makefile.in (obj): Add character.o and chartab.o.
22150 (lisp, shortlisp): Remove utf-8.elc.
22151 (*.o): For many files, change dependency on charset.h to
22152 character.h, and add dependency on character.h.
22153 (character.o, chartab.o): New targets.
22154
22155 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22156 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22157 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22158 of "charset.h".
22159
22160 * dired.c, filelock.c: Include "character.h".
22161
22162 * alloc.c: Include "character.h" instead of "charset.h".
22163 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22164 (syms_of_alloc): Remove defsubr for Smake_char_table.
22165
22166 * buffer.c: Include "character.h" instead of "charset.h", don't
22167 include "coding.h".
22168 (Fset_buffer_multibyte): Adjust for UTF-8.
22169
22170 * buffer.h: EXFUN Fbuffer_live_p.
22171
22172 * callproc.c: Include "character.h" instead of "charset.h".
22173 (Fcall_process): Big change for the new code-conversion APIs.
22174
22175 * casetab.c: Include "character.h" instead of "charset.h".
22176 (set_canon, set_identity, shuffle): Adjust for the new
22177 map_char_table spec.
22178 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22179 accessing the char table structure.
22180
22181 * chartab.c: New file that implements char table.
22182
22183 * category.c: Include "character.h".
22184 (copy_category_entry): New function.
22185 (copy_category_table): Call map_char_table and copy_category_entry.
22186 (Fmake_category_table): Initialize all top-level slots.
22187 (char_category_set): New function.
22188 (modify_lower_category_set): Delete.
22189 (Fmodify_category_entry): Call char_table_ref_and_range.
22190
22191 * category.h (CATEGORY_SET): Just call char_category_set.
22192
22193 * ccl.c: Include "character.h".
22194 (Qccl, Qcclp): New variables.
22195 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22196 it's less than 256.
22197 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22198 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22199 and DST type.
22200 (ccl_driver): Change types of argument, adjust code accordingly.
22201 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22202 ccl_driver.
22203 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22204
22205 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22206 New members src_multibyte, dst_multibyte, consumed, and produced.
22207 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22208 (CODING_SPEC_CCL_PROGRAM): New macro.
22209 (ccl_driver): Update prototype.
22210 (Qccl, Qcclp, Fccl_program_p): Extern them.
22211 (CHECK_CCL_PROGRAM): New macro.
22212
22213 * character.c, character.h, chartab.c: New files.
22214
22215 * charset.c: Mostly re-written. Move character and multibyte sequence
22216 handling codes to character.c.
22217
22218 * charset.h: Mostly re-written. Move character and multibyte sequence
22219 handling codes to character.h.
22220
22221 * coding.c, coding.h: Mostly re-written.
22222
22223 * composite.c: Include "character.h" instead of "charset.h".
22224 (CHAR_WIDTH): Move to character.h.
22225 (HASH_KEY, HASH_VALUE): Delete.
22226
22227 * composite.h (enum composition_method): Change order of enumeration
22228 symbols.
22229
22230 * data.c: Include "character.h" instead of "charset.h".
22231 (Faref): Call CHAR_TABLE_REF for a char table.
22232 (Faset): Call CHAR_TABLE_SET for a char table.
22233
22234 * dispextern.h (free_realized_face, check_face_attribytes)
22235 (generate_ascii_font): Extern them.
22236 (free_realized_multibyte_face): Delete extern.
22237
22238 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22239 table structure.
22240
22241 * editfns.c: Include "character.h" instead of "charset.h".
22242 (Fchar_to_string): Always call CHAR_STRING.
22243
22244 * emacs.c (main): Call init_charset_once, init_charset,
22245 syms_of_chartab, and syms_of_character.
22246
22247 * fileio.c: Include "character.h" instead of "charset.h".
22248 (Finsert_file_contents): Big change for the new code-conversion API.
22249 (choose_write_coding_system, Fwrite_region): Likewise.
22250 (build_annotations_2): Delete.
22251 (e_write): Big change for the new code-conversion API.
22252
22253 * fns.c: Include "character.h" instead of "charset.h".
22254 (copy_sub_char_table): Move to chartab.c.
22255 (Fcopy_sequence): Call copy_char_table for a char table.
22256 (concat): Delete codes calling count_multibyte.
22257 (string_char_to_byte, string_byte_to_char): Adjust for the new
22258 multibyte form.
22259 (internal_equal): Adjust for the change of char table structure.
22260 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22261 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22262 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22263 (char_table_translate, optimize_sub_char_table)
22264 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22265 chartab.c.
22266 (char_table_ref_and_index): Delete.
22267 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22268 (Fmd5): Call preferred_coding_system instead of accessing
22269 Vcoding_category_list. Adjust for the new code-conversion API.
22270 (syms_of_fns): Move defsubr for char table related functions to
22271 chartab.c.
22272
22273 * fontset.c: Mostly re-written.
22274
22275 * fontset.h (struct font_info): Change type of the member encoding_type.
22276 (enum FONT_SPEC_INDEX): New enum.
22277 (fontset_font_pattern, fs_load_font): Update prototype.
22278 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22279
22280 * indent.c: Include "character.h" instead of "charset.h".
22281 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22282
22283 * insdel.c: Include "character.h" instead of "charset.h".
22284 (copy_text): Don't refer to Vnonascii_translation_table.
22285 (insert_from_gap): New function.
22286
22287 * keyboard.c: Include "character.h" instead of "charset.h".
22288 (command_loop_1): Never call direct_output_forward_char before
22289 a non-ASCII character.
22290 (read_char): If Vkeyboard_translate_table is a char table, always
22291 translate a character.
22292
22293 * keymap.c: Include "character.h".
22294 (store_in_keymap): Handle the case that IDX is a cons.
22295 (Fdefine_key): Handle the case that KEY is a cons and the car part
22296 is also a cons (range).
22297 (push_key_description): Adjust for the new character code.
22298 (describe_vector): Call describe_char_table for a char table.
22299 (describe_char_table): New function.
22300
22301 * keymap.h (describe_char_table): Extern it.
22302
22303 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22304 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22305 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22306 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22307 Delete.
22308 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22309 structure.
22310 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22311 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22312 (CHARTAB_SIZE_BITS_3): New macros.
22313 (chartab_size): Extern it.
22314 (struct Lisp_Char_Table): Re-design.
22315 (struct Lisp_Sub_Char_Table): New structure.
22316 (HASH_KEY, HASH_VALUE): Move from fns.c.
22317 (CHARACTERBITS): Define as 22.
22318 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22319 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22320 (GC_SUB_CHAR_TABLE_P): New macro.
22321 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22322 (code_convert_string_norecord): Deleted extern.
22323 (init_character_once, syms_of_character, init_charset)
22324 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22325
22326 * lread.c: Include "character.h".
22327 (read_multibyte): New arg NBYTES.
22328 (read_escape): Change the meaning of returned *BYTEREP.
22329 (to_multibyte): Delete.
22330 (read1): Adjust the handling of char table and string.
22331
22332 * print.c: Include "character.h" instead of "charset.h".
22333 (print_string): Convert 8-bit raw bytes to octal form by
22334 string_escape_byte8.
22335 (print_object): Adjust for the new multibyte form. Print 8-bit
22336 raw bytes always in octal form. Handle sub char table correctly.
22337
22338 * process.c: Include "character.h" instead of "charset.h".
22339 (read_process_output, send_process): Adjust for the new
22340 code-conversion API.
22341
22342 * puresize.h (BASE_PURESIZE): Increase.
22343
22344 * regex.c: Include "character.h" instead of "charset.h".
22345 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22346 (regex_compile): Accept a range whose starting and ending
22347 character have different leading bytes.
22348 (analyse_first): Adjust for the above change.
22349
22350 * search.c: Include "character.h" instead of "charset.h".
22351 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22352 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22353
22354 * syntax.c: Include "character.h" instead of "charset.h".
22355 (syntax_parent_lookup): Delete.
22356 (Fmodify_syntax_entry): Accept a cons as CHAR.
22357 (skip_chars): Adjust for the new multibyte form.
22358 (init_syntax_once): Call char_table_set_range instead of directly
22359 accessing the structure of a char table.
22360
22361 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22362 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22363 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22364 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22365
22366 * term.c: Include "buffer.h" and "character.h".
22367 (encode_terminal_code, write_glyphs): Adjust for the new
22368 code-conversion API.
22369 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22370
22371 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22372
22373 * xdisp.c: Include "character.h".
22374 (get_next_display_element): Adjust for the new multibyte form.
22375 (disp_char_vector): Adjust for the new char table structure.
22376 (decode_mode_spec_coding): Adjust for the new structure of
22377 coding system.
22378 (decode_mode_spec): Adjust for the new code-conversion API.
22379
22380 * xfaces.c: Include "character.h" instead of "charset.h".
22381 (load_face_font): Adjust for the change of choose_face_font and
22382 FS_LOAD_FONT.
22383 (generate_ascii_font): New function.
22384 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22385 (set_font_frame_param): Adjust for the change of choose_face_font.
22386 (free_realized_face): Make it public.
22387 (free_realized_faces_for_fontset): Rename from
22388 free_realized_multibyte_face. Free also faces realized for ASCII.
22389 (choose_face_font): Change arguments. Adjust for the change of
22390 fontset_font_pattern and FS_LOAD_FONT.
22391
22392 * xfns.c: Include "character.h".
22393 (x_encode_text): Adjust for the new code-conversion API.
22394
22395 * xselect.c: Don't include "charset.h".
22396 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22397
22398 * xterm.c: Include "character.h".
22399 (x_encode_char): New argument CHARSET. Change caller.
22400 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22401 Call ENCODE_CHAR instead of SPLIT_CHAR.
22402 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22403 CHAR_WIDTH instead of CHARSET_WIDTH.
22404 (XTread_socket): Adjust for the new code-conversion API.
22405 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22406 (x_load_font): Adjust for the change of struct font.
22407
22408 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22409
22410 * xfaces.c (face_at_buffer_position): Remove unused vars.
22411
22412 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22413
22414 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22415 Fix overflow checking.
22416
22417 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22418
22419 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22420 Cancel previous change.
22421
22422 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22423
22424 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22425 ccl->eight_bit_control. Fix check for buffer overflow.
22426 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22427 (ccl_driver): Initialize extra_bytes to 0.
22428
22429 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22430
22431 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22432 return it ORed with ctrl_modifier.
22433
22434 2008-01-29 Miles Bader <miles@gnu.org>
22435
22436 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22437
22438 2008-01-28 Jason Rumney <jasonr@gnu.org>
22439
22440 * w32.c (stat): Don't double check for networked drive.
22441
22442 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22443
22444 * window.c (run_window_configuration_change_hook): New function.
22445 Code extracted from set_window_buffer. Set the selected frame.
22446 (set_window_buffer): Use it.
22447 * window.h (run_window_configuration_change_hook): Declare.
22448 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22449
22450 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22451
22452 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22453
22454 * Makefile.in: Remove references to unused macros.
22455
22456 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22457
22458 * w32.c (g_b_init_get_sid_sub_authority)
22459 (g_b_init_get_sid_sub_authority_count): New static variables.
22460 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22461 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22462 (init_user_info): Use them to retrieve uid and gid.
22463 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22464 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22465 st_uid and st_gid of the file.
22466
22467 2008-01-26 Jason Rumney <jasonr@gnu.org>
22468
22469 * w32.c (logon_network_drive): New function.
22470 (stat): Use it.
22471
22472 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22473
22474 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22475 invisible text covered with an ellipsis.
22476
22477 2008-01-25 Richard Stallman <rms@gnu.org>
22478
22479 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22480 jump back to beginning. Move some other initializations after that.
22481 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22482 New variables.
22483 (syms_of_xdisp): Init them.
22484
22485 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22486
22487 * buffer.c (reset_buffer_local_variables):
22488 Implement `permanent-local-hook'.
22489 (Qpermanent_local_hook): New variable.
22490 (syms_of_buffer): Init and staticpro it.
22491
22492 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22493
22494 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22495
22496 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22497
22498 * fns.c (Fclrhash): Return TABLE.
22499
22500 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22501
22502 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22503 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22504 is set even without positional changes.
22505 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22506
22507 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22508
22509 2008-01-23 Jason Rumney <jasonr@gnu.org>
22510
22511 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22512
22513 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22514 the unicode range available in MULE by locale-coding-system.
22515 Improve dbcs lead byte detection. Set event timestamp and modifiers
22516 earlier.
22517
22518 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22519
22520 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22521 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22522 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22523 when used on child processes.
22524
22525 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22526
22527 * dbusbind.c (Fdbus_method_return_internal): Rename from
22528 Fdbus_method_return.
22529 (Fdbus_unregister_object): Move to dbus.el.
22530 (Fdbus_call_method, Fdbus_method_return_internal)
22531 (Fdbus_send_signal): Improve debug messages.
22532
22533 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22534
22535 * undo.c (undo_inhibit_record_point): New variable.
22536 (syms_of_undo): Initialize it.
22537 (record_point): Don't record point when undo_inhibit_record_point
22538 is set.
22539
22540 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22541
22542 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22543
22544 * xdisp.c (Qauto_hscroll_mode): New var.
22545 (syms_of_xdisp): Initialize it.
22546 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22547 window's buffer.
22548 (hscroll_windows): Don't check automatic_hscrolling_p here.
22549
22550 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22551 vscroll if we're setting window-buffer to the value it already has.
22552
22553 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22554
22555 * m/intel386.h: Remove references to XENIX.
22556
22557 2008-01-17 Andreas Schwab <schwab@suse.de>
22558
22559 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22560 instead of HAVE_X86_64_LIB64_DIR.
22561 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22562
22563 2008-01-17 Glenn Morris <rgm@gnu.org>
22564
22565 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22566 to HAVE_X86_64_LIB64_DIR.
22567
22568 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22569
22570 * s/irix3-3.h:
22571 * s/irix4-0.h:
22572 * s/386-ix.h:
22573 * s/domain.h:
22574 * s/hpux9-x11r4.h:
22575 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22576
22577 * sysdep.c: Remove code containing references to symbols defined
22578 by unsupported systems.
22579
22580 2008-01-16 Glenn Morris <rgm@gnu.org>
22581
22582 * coding.c (select-safe-coding-system-function): Doc fix.
22583
22584 2008-01-15 Glenn Morris <rgm@gnu.org>
22585
22586 * config.in: Revert 2008-01-13 change: this is a generated file.
22587
22588 2008-01-13 Tom Tromey <tromey@redhat.com>
22589
22590 * lisp.h: Fix typo.
22591
22592 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22593
22594 * m/sequent-ptx.h:
22595 * m/sequent.h:
22596 * s/ptx.h:
22597 * s/ptx4-2.h:
22598 * s/ptx4.h: Remove files for systems no longer supported.
22599
22600 * callproc.c (Fcall_process): Fix previous change.
22601
22602 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22603
22604 * unexsunos4.c: Remove file, system not supported anymore.
22605
22606 * m/mips.h:
22607 * m/intel386.h:
22608 * callproc.c:
22609 * config.in:
22610 * ecrt0.c:
22611 * emacs.c:
22612 * fileio.c:
22613 * frame.c:
22614 * getpagesize.h:
22615 * keyboard.c:
22616 * lread.c:
22617 * process.c:
22618 * puresize.h:
22619 * sysdep.c:
22620 * systty.h:
22621 * syswait.h:
22622 * unexec.c:
22623 * xdisp.c:
22624 * alloc.c: Remove code containing references to symbols defined by
22625 unsupported systems.
22626
22627 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22628
22629 * coding.c (detect_coding_mask): Fix previous change.
22630
22631 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22632
22633 * coding.c (detect_coding_iso2022): New arg
22634 latin_extra_code_state. Allow Latin extra codes only
22635 when *latin_extra_code_state is nonzero.
22636 (detect_coding_mask): If there is a NULL byte, detect the encoding
22637 as UTF-16 or binary. If Latin extra codes exist, detect the
22638 encoding as ISO-2022 only when there's no other proper encoding is
22639 found.
22640
22641 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22642
22643 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22644 #ifdef MAC_OS.
22645
22646 2008-01-08 Richard Stallman <rms@gnu.org>
22647
22648 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22649
22650 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
22651
22652 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22653 menu bar in parentheses.
22654
22655 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22656
22657 * m/7300.h:
22658 * m/acorn.h:
22659 * m/alliant-2800.h:
22660 * m/alliant.h:
22661 * m/alliant1.h:
22662 * m/alliant4.h:
22663 * m/altos.h:
22664 * m/amdahl.h:
22665 * m/apollo.h:
22666 * m/att3b.h:
22667 * m/aviion-intel.h:
22668 * m/aviion.h:
22669 * m/celerity.h:
22670 * m/clipper.h:
22671 * m/cnvrgnt.h:
22672 * m/convex.h:
22673 * m/cydra5.h:
22674 * m/delta88k.h:
22675 * m/dpx2.h:
22676 * m/dual.h:
22677 * m/elxsi.h:
22678 * m/f301.h:
22679 * m/gould-np1.h:
22680 * m/gould.h:
22681 * m/i860.h:
22682 * m/ibmps2-aix.h:
22683 * m/ibmrt-aix.h:
22684 * m/ibmrt.h:
22685 * m/irist.h:
22686 * m/is386.h:
22687 * m/isi-ov.h:
22688 * m/mega68.h:
22689 * m/mg1.h:
22690 * m/news-r6.h:
22691 * m/news-risc.h:
22692 * m/news.h:
22693 * m/nh3000.h:
22694 * m/nh4000.h:
22695 * m/ns16000.h:
22696 * m/ns32000.h:
22697 * m/nu.h:
22698 * m/orion.h:
22699 * m/orion105.h:
22700 * m/paragon.h:
22701 * m/pfa50.h:
22702 * m/plexus.h:
22703 * m/pyramid.h:
22704 * m/pyrmips.h:
22705 * m/sh3el.h:
22706 * m/sps7.h:
22707 * m/sr2k.h:
22708 * m/stride.h:
22709 * m/sun1.h:
22710 * m/sun2.h:
22711 * m/sun3-68881.h:
22712 * m/sun3-fpa.h:
22713 * m/sun3-soft.h:
22714 * m/sun3.h:
22715 * m/sun386.h:
22716 * m/symmetry.h:
22717 * m/tad68k.h:
22718 * m/tahoe.h:
22719 * m/targon31.h:
22720 * m/tek4300.h:
22721 * m/tekxd88.h:
22722 * m/tower32.h:
22723 * m/tower32v3.h:
22724 * m/ustation.h:
22725 * m/wicat.h:
22726 * m/xps100.h:
22727 * s/cxux.h:
22728 * s/cxux7.h:
22729 * s/dgux.h:
22730 * s/dgux4.h:
22731 * s/dgux5-4-3.h:
22732 * s/dgux5-4r2.h:
22733 * s/esix.h:
22734 * s/esix5r4.h:
22735 * s/hiuxmpp.h:
22736 * s/hiuxwe2.h:
22737 * s/iris3-5.h:
22738 * s/iris3-6.h:
22739 * s/isc2-2.h:
22740 * s/isc3-0.h:
22741 * s/isc4-0.h:
22742 * s/isc4-1.h:
22743 * s/newsos5.h:
22744 * s/newsos6.h:
22745 * s/osf1.h:
22746 * s/osf5-0.h:
22747 * s/riscix1-1.h:
22748 * s/riscix12.h:
22749 * s/sco4.h:
22750 * s/sco5.h:
22751 * s/sunos4-0.h:
22752 * s/sunos4-1.h:
22753 * s/sunos413.h:
22754 * s/sunos4shr.h:
22755 * s/umax.h:
22756 * s/unipl5-2.h:
22757 * s/xenix.h:
22758 * cxux-crt0.s:
22759 * unexapollo.c:
22760 * unexconvex.c:
22761 * unexenix.c:
22762 * unexsni.c: Remove files for systems no longer supported.
22763
22764 * m/intel386.h: Remove references to unsupported systems.
22765
22766 * w32.c (get_emacs_configuration): Remove reference to i860.
22767
22768 * sysdep.c: Remove dead code.
22769
22770 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22771
22772 * s/rtu.h:
22773 * m/masscomp.h: Remove files. Platform is obsolete.
22774
22775 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22776
22777 * dbusbind.c (Fdbus_method_return): New function.
22778 (xd_read_message): Add the serial number to the event.
22779 (Fdbus_register_method): Activate the function.
22780
22781 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22782
22783 * keyboard.c (read_key_sequence): Fix typo.
22784
22785 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22786
22787 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22788 (xd_signature, xd_append_arg): Handle element type detection for
22789 empty arrays.
22790 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22791 SDATA () calls; this must be solved more general.
22792 (Fdbus_register_signal): Use SBYTES instead of strlen.
22793
22794 2008-01-03 Magnus Henoch <magnus@zemdatav>
22795
22796 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22797 unsigned int for byte values (necessary for big-endian platform).
22798 (Fdbus_call_method): Handle the case of no returned arguments.
22799
22800 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22801
22802 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22803
22804 2007-12-31 Magnus Henoch <mange@freemail.hu>
22805
22806 * dbusbind.c (xd_signature): Signature of variant is just "v".
22807
22808 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22809
22810 * dbusbind.c: Fix several errors and compiler warnings.
22811 Reported by Tom Tromey <tromey@redhat.com>.
22812 (XD_ERROR, XD_DEBUG_MESSAGE)
22813 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22814 (xd_append_arg): Part for basic D-Bus types rewritten.
22815 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22816 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22817 appropriate.
22818 (xd_read_message): Return Qnil. Don't signal an error; it is not
22819 useful during event reading.
22820 (Fdbus_register_signal): Signal an error if the check for
22821 FUNCTIONP fails.
22822 (Fdbus_register_method): New function. The implementation is not
22823 complete, the call of the function signals an error therefore.
22824 (Fdbus_unregister_object): New function, renamed from
22825 Fdbus_unregister_signal. The initial check signals an error, if
22826 the object is not well formed.
22827
22828 2007-12-30 Richard Stallman <rms@gnu.org>
22829
22830 * textprop.c (get_char_property_and_overlay):
22831 Signal error if POSITION is out of range in a buffer.
22832
22833 2007-12-29 Martin Rudalics <rudalics@gmx.at>
22834
22835 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22836 because the original parameters are in pure storage now.
22837
22838 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22839
22840 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22841
22842 2007-12-22 Eli Zaretskii <eliz@gnu.org>
22843
22844 * callint.c (syms_of_callint) <command-history>: Add reference to
22845 history-length in the doc string.
22846
22847 2007-12-17 Jason Rumney <jasonr@gnu.org>
22848
22849 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22850 before passing as wParam.
22851
22852 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
22853
22854 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22855 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22856 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22857 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22858 as number.
22859 (Fdbus_call_method): Fix docstring.
22860
22861 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
22862
22863 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22864 New macros.
22865 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22866 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22867 Simplify.
22868 (xd_signature): New function.
22869 (xd_append_arg): Compute also signatures. Major rewrite.
22870 (xd_retrieve_arg): Make debug messages friendly.
22871 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22872 Check for signatures of arguments.
22873
22874 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
22875
22876 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22877 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22878 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22879 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22880 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22881 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22882 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22883 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22884 (xd_retrieve_value): Remove. Functionality included in ...
22885 (xd_append_arg): New function.
22886 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22887
22888 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
22889
22890 * dbusbind.c (top): Include <stdio.h>.
22891 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22892 dbus_message_new_method_call and dbus_message_new_signal.
22893 (Fdbus_register_signal): Rename unique_name to uname.
22894 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22895 non-existing unique name. Fix typos in matching rule. Return an
22896 object which is useful in Fdbus_unregister_signal.
22897 (Fdbus_unregister_signal): Reimplementation, in order to remove
22898 only the corresponding entry.
22899 (Vdbus_registered_functions_table): Change the order of entries.
22900 Apply these changes in xd_read_message and Fdbus_register_signal.
22901
22902 2007-12-16 Andreas Schwab <schwab@suse.de>
22903
22904 * fileio.c (Finsert_file_contents): Fix overflow check to not
22905 depend on undefined integer overflow.
22906
22907 2007-12-14 Jason Rumney <jasonr@gnu.org>
22908
22909 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22910 for characters above 127.
22911
22912 2007-12-13 Jason Rumney <jasonr@gnu.org>
22913
22914 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22915 before dereferencing array.
22916 (lookup_vk_code): Remove zero comparison.
22917
22918 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
22919
22920 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22921 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22922 Use `unsigned int' instead of `uint'.
22923 (xd_read_message, Fdbus_register_signal): Split expressions into
22924 multiple lines before operators "&&" and "||", according to the
22925 GNU Coding Standards.
22926
22927 2007-12-14 Eli Zaretskii <eliz@gnu.org>
22928
22929 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22930
22931 2007-12-12 Juri Linkov <juri@jurta.org>
22932
22933 * buffer.c (Frename_buffer): In interactive spec replace
22934 `read-buffer' with `read-string' that uses `buffer-name-history'
22935 as history, and the current buffer's name as default.
22936
22937 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22938
22939 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22940 manipulating the backtrace manually.
22941 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22942 (struct backtrace, backtrace_list): Remove.
22943 (command_loop_1): Remove dead var `no_direct'.
22944
22945 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22946 preserve non-built-in buffer-local variables.
22947 (Fkill_all_local_variables): Don't re-create&re-set permanent
22948 buffer-local variables.
22949
22950 2007-12-09 Juri Linkov <juri@jurta.org>
22951
22952 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22953 Lisp code that uses `read-buffer' with current buffer as default.
22954
22955 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
22956
22957 * dbusbind.c (xd_read_message): Generate an event for every
22958 registered handler. There might be several handlers registered
22959 for the same signal.
22960 (Fdbus_register_signal): Don't overwrite a registration for the
22961 same signal. Add a new registration if handlers are different.
22962 (Vdbus_registered_functions_table): Rework doc string.
22963
22964 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
22965
22966 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22967 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22968 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22969 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22970 Unify argument lists.
22971 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22972 arguments and hash table keys. Use unique name for service.
22973 (Fdbus_unregister_signal): Remove checks.
22974 (Vdbus_registered_functions_table): Fix doc string.
22975
22976 2007-12-05 Magnus Henoch <mange@freemail.hu>
22977
22978 * process.c (make_process): Initialize pty_flag to 0.
22979
22980 2007-12-05 Jason Rumney <jasonr@gnu.org>
22981
22982 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22983 specified XBMs.
22984
22985 2007-12-05 Richard Stallman <rms@gnu.org>
22986
22987 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22988
22989 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22990
22991 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22992 New variable.
22993 (mac_try_close_socket) [MAC_OSX]: New function.
22994 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22995 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22996
22997 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22998 Use mac_try_close_socket.
22999
23000 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23001
23002 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23003 reloc_base.
23004 (copy_dysymtab): Compute relocation base here.
23005 (rebase_reloc_address) [__ppc64__]: New function.
23006 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23007 changed.
23008
23009 2007-12-05 Jason Rumney <jasonr@gnu.org>
23010
23011 * w32proc.c (sys_spawnve): Quote args with wildcards.
23012
23013 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23014
23015 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23016 __objc_* sections.
23017 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23018
23019 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
23020
23021 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23022 Move check for Vdbus_registered_functions_table to
23023 xd_read_queued_messages.
23024 (xd_read_queued_messages): Protect xd_read_message calls by
23025 internal_condition_case_1.
23026
23027 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
23028
23029 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23030 Qdbus_system_bus and Qdbus_session_bus, respectively.
23031 (Vdbus_intern_symbols): Remove.
23032 (Vdbus_registered_functions_table): New hash table.
23033 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23034 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23035 Rewrite in order to manage registered functions by hash table
23036 Vdbus_registered_functions_table.
23037
23038 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23039
23040 * xterm.c: Update URL to Window Manager Specification in comment.
23041
23042 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
23043
23044 * config.in (HAVE_DBUS): Add.
23045
23046 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23047 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23048 (obj): Add $(DBUS_OBJ).
23049 (LIBES): Add $(DBUS_LIBS).
23050 (dbusbind.o): New target.
23051
23052 * dbusbind.c: New file.
23053
23054 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23055
23056 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23057 (Qdbus_event): New Lisp symbol.
23058 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23059 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
23060 (keys_of_keyboard): Define dbus-event.
23061
23062 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23063
23064 2007-12-01 Richard Stallman <rms@gnu.org>
23065
23066 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23067
23068 2007-11-30 Jason Rumney <jasonr@gnu.org>
23069
23070 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23071 (w32con_reset_terminal_modes): Clear screen buffer.
23072 (w32_face_attributes): Don't use color indexes that are out of range.
23073 Only reverse the default colors.
23074
23075 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23076 WINDOWSNT.
23077
23078 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23079
23080 2007-11-29 Jason Rumney <jasonr@gnu.org>
23081
23082 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23083 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23084 if the terminal colors are initialized.
23085 (unspecified_fg, unspecified_bg): Remove unused declarations.
23086
23087 2007-11-29 Andreas Schwab <schwab@suse.de>
23088
23089 * keyboard.c (apply_modifiers): Fix typo.
23090
23091 2007-11-29 Richard Stallman <rms@gnu.org>
23092
23093 * keymap.c (Fcurrent_local_map): Doc fix.
23094
23095 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23096
23097 * s/gnu-kfreebsd.h: New file.
23098
23099 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23100
23101 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23102 Don't cast redundantly.
23103
23104 * keyboard.c (KEY_TO_CHAR): New macro.
23105 (parse_modifiers, apply_modifiers): Accept integer arguments.
23106 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23107 for chars and symbol keys.
23108 After doing such remapping, apply function-key-map again.
23109
23110 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23111
23112 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23113 compiled anymore.
23114
23115 2007-11-26 Andreas Schwab <schwab@suse.de>
23116
23117 * process.c (list_processes_1): Fix indentation level of the
23118 command column.
23119
23120 2007-11-23 Andreas Schwab <schwab@suse.de>
23121
23122 * editfns.c (Fformat): Handle %c specially since it requires the
23123 argument to be of type int.
23124
23125 2007-11-23 Markus Triska <markus.triska@gmx.at>
23126
23127 * emacs.c (main): Call init_editfns before init_process, since
23128 init_process sets Vprocess_connection_type depending on OS release.
23129
23130 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23131
23132 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23133 (find_symbol_value): Use do_symval_forwarding.
23134
23135 * data.c (set_internal): Set the value in the `cons-cell' (for
23136 Buffer_Local_values) not only for frame-local variables.
23137
23138 2007-11-22 Andreas Schwab <schwab@suse.de>
23139
23140 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23141 values to sprintf.
23142 * keymap.c (Fsingle_key_description): Likewise.
23143 * print.c (print_object): Likewise.
23144
23145 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23146
23147 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23148 file for image is nil.
23149
23150 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23151
23152 * term.c: Include stdarg.h.
23153 (fatal): Implement using varargs.
23154 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23155
23156 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23157
23158 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23159 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23160 Update call to buffer_slot_type_mismatch.
23161 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23162 (buffer_slot_type_mismatch): Update.
23163 * buffer.c (buffer_local_types): Remove.
23164 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23165 (defvar_per_buffer): Set the type in the buffer_objfwd.
23166
23167 2007-11-21 Jason Rumney <jasonr@gnu.org>
23168
23169 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23170 CreateFileMapping returns NULL on failure.
23171
23172 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23173
23174 * search.c (Fset_match_data): Remove the `evaporate' feature.
23175 (unwind_set_match_data): Don't use the `evaporate' feature.
23176
23177 2007-11-21 Jason Rumney <jasonr@gnu.org>
23178
23179 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23180
23181 * w32console.c (w32con_write_glyphs): Remove unused variables.
23182
23183 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23184
23185 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23186
23187 * s/darwin.h (MULTI_KBOARD): Remove.
23188
23189 * macfns.c (x_create_tip_frame, Fx_create_frame)
23190 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23191
23192 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23193
23194 * buffer.c (Fbuffer_local_value): Remove redundant test.
23195 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23196 than in `current-buffer' to match the comment.
23197 Do the swap using swap_in_global_binding.
23198
23199 * data.c (store_symval_forwarding, set_internal):
23200 * eval.c (specbind): Remove dead code.
23201
23202 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23203 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23204 Since we do not want to see internal Lisp_*fwd objects here.
23205
23206 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23207
23208 * sysdep.c (init_system_name): Use getaddrinfo if available.
23209
23210 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23211 (x_scroll_bar_note_movement): start, end, with, height in struct
23212 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23213
23214 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23215
23216 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23217
23218 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23219
23220 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23221 This undoes Richard's change of 14-Oct-2002.
23222
23223 * alloc.c (allocate_other_vector):
23224 * lisp.h (allocate_other_vector): Remove.
23225
23226 * window.c (struct save_window_data): Move non-lisp data to the end
23227 and make it `int' rather than Lisp_Object.
23228 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23229 Done wrap/unwrap integer values.
23230 (Fset_window_configuration, compare_window_configurations):
23231 Update use of fields to their new types.
23232
23233 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23234 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23235 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23236 (SET_SCROLL_BAR_X_WINDOW): Remove.
23237 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23238 Access the new x_window field directly.
23239 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23240 Don't wrap/unwrap integers into Lisp_Objects.
23241 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23242 (x_scroll_bar_report_motion):
23243 Don't wrap/unwrap integers into Lisp_Objects.
23244 (x_term_init): Use SDATA.
23245 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23246 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23247 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23248 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23249 * xfns.c (x_set_background_color):
23250 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23251 Access the new x_window field directly.
23252
23253 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23254 (allocate_pseudovector): Make non-static.
23255
23256 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23257 (allocate_pseudovector): Declare.
23258 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23259
23260 2007-11-15 Andreas Schwab <schwab@suse.de>
23261
23262 * editfns.c (Fformat): Correctly format EMACS_INT values.
23263 Also take precision into account when formatting an integer.
23264
23265 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23266
23267 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23268
23269 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23270 (syms_of_keyboard): Defsubr it.
23271
23272 * data.c (swap_in_global_binding): Fix longstanding bug where
23273 store_symval_forwarding was not called with the right second argument,
23274 thus causing objfwd-ing from being dropped.
23275
23276 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23277
23278 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23279 (Fx_display_pixel_height, Fx_display_planes)
23280 (Fx_display_color_cells, Fx_server_max_request_size)
23281 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23282 (Fx_display_visual_class, Fx_display_save_under):
23283 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23284 (Fx_display_pixel_height, Fx_display_planes)
23285 (Fx_display_color_cells, Fx_server_max_request_size)
23286 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23287 (Fx_display_mm_height, Fx_display_mm_width)
23288 (Fx_display_backing_store, Fx_display_visual_class)
23289 (Fw32_select_font, Fx_display_save_under):
23290 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23291 (Fx_display_pixel_height, Fx_display_planes)
23292 (Fx_display_color_cells, Fx_server_max_request_size)
23293 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23294 (Fx_display_save_under): Fix typos in docstrings.
23295
23296 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23297
23298 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23299 corresponding to deleted entries; they are an implementation detail.
23300 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23301 Remove variables.
23302 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23303 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23304 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23305 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23306 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23307 (Fw32_define_rgb_color, Fw32_load_color_file)
23308 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23309 Fix typos in docstrings.
23310 (Fx_server_version): Reflow docstring.
23311 (Fw32_shell_execute): Doc fixes.
23312
23313 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23314
23315 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23316 if w32_parse_hot_key returned nil.
23317
23318 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23319
23320 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23321
23322 2007-11-09 Jason Rumney <jasonr@gnu.org>
23323
23324 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23325
23326 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23327
23328 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23329 Remove W32_SCROLL_BAR_CLICK_EVENT.
23330
23331 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23332 Add MULTIMEDIA_KEY_EVENT.
23333
23334 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23335 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23336 (make_lispy_event) [WINDOWSNT]: Use it to translate
23337 MULTIMEDIA_KEY_EVENT.
23338
23339 * w32term.h (WM_APPCOMMAND): Define if not already.
23340 (GET_APPCOMMAND_LPARAM): Likewise.
23341
23342 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23343 WM_APPCOMMAND.
23344
23345 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23346 (syms_of_w32fns): Export and initialize it.
23347 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23348
23349 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23350
23351 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23352 twice.
23353
23354 * xdisp.c (handle_face_prop): Fix last change.
23355
23356 2007-11-09 Richard Stallman <rms@gnu.org>
23357
23358 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23359 not just for after-strings and before-strings.
23360 Call face_for_overlay_string and pass the overlay to it.
23361 (handle_display_prop): Determine whether property came from an overlay.
23362 Pass OVERLAY arg to handle_single_display_spec.
23363 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23364 (load_overlay_strings): Fill in it->string_overlays.
23365 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23366
23367 * xfaces.c (face_for_overlay_string): Function renamed from
23368 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23369
23370 * dispextern.h (struct it): New elt string_overlays.
23371 New elt from_overlay, also in stack.
23372 Rearrange a few elements.
23373 (face_for_overlay_string): Decl renamed from
23374 face_at_buffer_position_no_overlays, and add argument.
23375
23376 2007-11-09 Richard Stallman <rms@gnu.org>
23377
23378 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23379 to get the base face for an overlay string.
23380
23381 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23382
23383 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23384
23385 * xdisp.c (handle_stop): Move some code out of loop.
23386
23387 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23388
23389 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23390 Fix conversion from Lisp object to ATSUFontID.
23391
23392 2007-11-09 Jason Rumney <jasonr@gnu.org>
23393
23394 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23395
23396 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23397
23398 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23399 Don't assume regions are aligned to page boundary.
23400 (print_load_command_name): Add LC_UUID if defined.
23401
23402 2007-11-09 Richard Stallman <rms@gnu.org>
23403
23404 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23405
23406 2007-11-07 Jason Rumney <jasonr@gnu.org>
23407
23408 * s/windows95.h: Remove.
23409
23410 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23411
23412 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23413 abort with a message on unhandled store_type values.
23414
23415 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23416
23417 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23418 Remove HAVE_X11R5 and HAVE_X11R4.
23419
23420 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23421
23422 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23423
23424 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23425
23426 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23427 Don't set s->stippled_p here, since it has already been set by
23428 x_set_glyph_string_gc from x_draw_glyph_string.
23429
23430 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23431
23432 * sunfns.c: Remove file.
23433
23434 * m/sun386.h:
23435 * m/sun2.h:
23436 * m/sparc.h: Remove Sun windows code.
23437
23438 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23439
23440 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23441 (init_keyboard): Set current_kboard's window-system to nil.
23442 (tty_read_avail_input): Typo.
23443 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23444
23445 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23446
23447 * s/usg5-4.h:
23448 * s/usg5-3.h:
23449 * s/ptx.h:
23450 * m/is386.h:
23451 * m/ibmps2-aix.h:
23452 * Makefile.in: Remove all mentions of X10.
23453
23454 * dispnew.c (syms_of_display): Don't mention version 10.
23455
23456 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23457
23458 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23459 ($(BLD)/abbrev.$(O)): Remove.
23460
23461 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23462
23463 Rewrite abbrev.c in Elisp.
23464 * image.c (Qcount): Don't declare as extern.
23465 (syms_of_image): Initialize and staticpro `Qcount'.
23466 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23467 * emacs.c (main): Don't call syms_of_abbrev.
23468 * Makefile.in (obj): Remove abbrev.o.
23469 (abbrev.o): Remove.
23470 * abbrev.c: Remove.
23471
23472 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23473
23474 * window.c (window_min_size_2): Don't count header-line.
23475
23476 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23477
23478 * frame.h (struct frame): Move all bit fields after the first bit
23479 field to take advantage of the available space. Group all the
23480 chars together to reduce wasted space due to padding.
23481
23482 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23483
23484 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23485
23486 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23487 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23488 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23489 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23490 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23491 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23492 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23493 (last_marked, mark_object_loop_halt): Make static.
23494
23495 * frame.c (syms_of_frame) <delete-frame-functions>:
23496 Fix typo in docstring.
23497
23498 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23499
23500 * w32.c (init_environment): Fix tiny memory leak.
23501 (w32_get_resource): Remove unused variable `ok'.
23502
23503 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23504
23505 Make `window-system' into a keyboard-local variable (rather than
23506 frame-local as done originally by multi-tty).
23507
23508 * keyboard.h (struct kboard): Add Vwindow_system.
23509 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23510 (mark_kboards): Mark Vwindow_system.
23511
23512 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23513 (init_display): Don't set the obsolete `window-system' frame-param.
23514
23515 * xterm.c (x_term_init):
23516 * w32term.c (w32_create_terminal):
23517 * term.c (init_tty): Set Vwindow_system.
23518 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23519 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23520
23521 * xfns.c (Fx_create_frame, x_create_tip_frame):
23522 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23523 * macfns.c (Fx_create_frame):
23524 Don't set the obsolete `window-system' frame-param.
23525
23526 * frame.h (Qwindow_system): Remove.
23527 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23528 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23529
23530 2007-10-24 Richard Stallman <rms@gnu.org>
23531
23532 * frame.c (x_figure_window_size): For fullscreen case,
23533 set USPosition | PPosition without clobbering rest of window_prompting.
23534
23535 * keyboard.c (Fcurrent_idle_time): Doc fix.
23536
23537 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23538
23539 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23540
23541 * process.c (unwind_request_sigio): Only define if __ultrix__.
23542
23543 * callproc.c (child_setup): Remove spurious *.
23544
23545 * lisp.h (Fget_text_property): Declare.
23546 (have_menus_p): Declare it here rather than in sys-dep header files.
23547 * macterm.h (have_menus_p):
23548 * msdos.h (have_menus_p):
23549 * xterm.h (have_menus_p): Remove.
23550
23551 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23552 (Fmake_variable_frame_local): Just check the variable's const-ness
23553 rather than checking nil or t.
23554
23555 2007-10-22 Jason Rumney <jasonr@gnu.org>
23556
23557 * w32fns.c: Include math.h.
23558 (w32_abort): Declaration moved to nt/config.nt.
23559
23560 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23561 (abort): Redefinition moved to nt/config.nt.
23562
23563 * m/windowsnt.h: Remove.
23564
23565 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
23566
23567 * emacs.c (Fdump_emacs): Fix typo in message.
23568 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23569 <installation-directory>: Reflow docstring.
23570
23571 2007-10-22 Juri Linkov <juri@jurta.org>
23572
23573 * minibuf.c: Allow minibuffer default to be a list of default values.
23574 With empty input use the first element of this list as returned default.
23575 (string_to_object)
23576 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23577 (read_minibuf): If defalt is cons, set histstring to its car.
23578 (Fread_string): If default_value is cons, set val to its car.
23579 (Fread_buffer): If def is cons, use its car.
23580 (Fcompleting_read): If defalt is cons, set val to its car.
23581
23582 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
23583
23584 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23585
23586 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
23587
23588 * doc.c (Fdocumentation): Check for advice in all cases.
23589
23590 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
23591
23592 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23593
23594 2007-10-19 Richard Stallman <rms@gnu.org>
23595
23596 * doc.c (Fdocumentation): Check for and handle an advised function.
23597
23598 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
23599
23600 * process.c (Fset_process_filter): Doc fix.
23601
23602 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23603
23604 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23605 which caused key-translation-map to applied repeatedly (thus breaking
23606 double-mode).
23607
23608 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23609
23610 * xselect.c (x_own_selection, x_handle_selection_clear)
23611 (x_clear_frame_selections):
23612 * w32menu.c (list_of_panes, list_of_items):
23613 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23614 * textprop.c (validate_plist, interval_has_all_properties)
23615 (interval_has_some_properties, interval_has_some_properties_list)
23616 (add_properties, text_property_list):
23617 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23618 * minibuf.c (Fassoc_string):
23619 * macselect.c (x_own_selection, x_clear_frame_selections)
23620 (Fx_disown_selection_internal):
23621 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23622 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23623
23624 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
23625
23626 * process.c: Link to libs for calling res_init() if available.
23627 (Fmake_network_process): Call res_init() before getaddrinfo or
23628 gethostbyname, if possible.
23629
23630 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23631
23632 * lread.c (read1): Set pvectype for char_tables.
23633
23634 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23635 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23636 Add type checks.
23637 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23638
23639 * alloc.c (free_misc): Use XMISCTYPE.
23640 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23641
23642 2007-10-17 Glenn Morris <rgm@gnu.org>
23643
23644 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23645 (syms_of_minibuf): Add Qcompletion_ignore_case.
23646 * dired.c (Qcompletion_ignore_case): Change to external.
23647 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23648 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23649 (Fread_file_name): Use it rather than intern'ing.
23650
23651 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23652 (Fread_coding_system): Ignore case of user input.
23653
23654 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23655
23656 * xdisp.c (handle_display_prop): Ignore display specs after
23657 replacing one when string text is being replaced.
23658 (handle_single_display_spec): Pretend as if characters with display
23659 property haven't been consumed only when buffer text is being replaced.
23660
23661 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23662
23663 * xfns.c (Fx_create_frame, Fx_display_list):
23664 * window.c (window_fixed_size_p, enlarge_window)
23665 (shrink_window_lowest_first):
23666 * macterm.c (init_font_name_table):
23667 * macfns.c (Fx_create_frame, Fx_display_list):
23668 * lread.c (close_load_descs):
23669 * keyboard.c (read_char_x_menu_prompt):
23670 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23671 * coding.c (code_convert_region_unwind): Test the type of an object
23672 rather than just !NILP before extracting data from it.
23673
23674 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23675
23676 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23677 (XMISCANY): New macro.
23678 (XMISCTYPE): Use it.
23679 (struct Lisp_Misc_Any): New type.
23680 (union Lisp_Misc): Use it.
23681 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23682 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23683 (find_symbol_value, set_internal, default_value, Fset_default)
23684 (Fmake_variable_buffer_local, Fmake_local_variable)
23685 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23686 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23687 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23688 * alloc.c (allocate_buffer): Set the size and tag.
23689 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23690 Use XMISCANY.
23691 (die): Follow the GNU convention for error messages.
23692 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23693 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23694 tag any more.
23695 (set_buffer_internal_1):
23696 * frame.c (store_frame_param):
23697 * eval.c (specbind):
23698 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23699
23700 * doc.c (Fsnarf_documentation): Simplify.
23701
23702 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23703
23704 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23705 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23706
23707 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23708
23709 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23710
23711 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23712
23713 * eval.c (do_autoload): Don't save autoloads.
23714
23715 * data.c (Ffset): Save autoload of the function being set.
23716
23717 2007-10-07 John Paul Wallington <jpw@pobox.com>
23718
23719 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23720 parameter before setting up faces.
23721
23722 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23723
23724 * ccl.c (Fregister_code_conversion_map):
23725 * keyboard.c (append_tool_bar_item): Reformat last change.
23726
23727 * lisp.h (eabs): Rename from `abs'. All callers changed.
23728
23729 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23730
23731 * buffer.c (add_overlay_mod_hooklist):
23732 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23733 * fontset.c (make_fontset):
23734 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23735 (append_tool_bar_item):
23736 * macmenu.c (grow_menu_items):
23737 * w32menu.c (grow_menu_items):
23738 * xmenu.c (grow_menu_items): Use larger_vector.
23739
23740 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23741
23742 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23743 selected frame'' on MSDOS).
23744
23745 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23746
23747 * frame.c (Qexplicit_name): New variable.
23748 (x_report_frame_params): Report it in parameter alist.
23749 (syms_of_frame): Intern and staticpro it.
23750
23751 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23752
23753 * macfns.c (x_create_tip_frame): Set terminal for frame.
23754
23755 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23756
23757 * frame.c (Qenvironment): Remove.
23758 (syms_of_frame) <Qenvironment>: Don't initialize.
23759 (Fdelete_frame): Don't treat the `environment' param specially.
23760 * frame.h (Qenvironment): Don't declare.
23761 * callproc.c (set_initial_environment): Don't set unused frame param.
23762
23763 * frame.c (Fframe_with_environment): Remove.
23764 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23765
23766 * lisp.h (Fframe_with_environment): Don't declare.
23767
23768 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23769
23770 * indent.c (indent_tabs_mode, last_known_column)
23771 (last_known_column_modified): Make static.
23772 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23773
23774 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23775
23776 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23777
23778 2007-10-09 Jason Rumney <jasonr@gnu.org>
23779
23780 * w32term.c (x_set_window_size): Disable code that attempts to tell
23781 Lisp code about a size change before it actually happens.
23782
23783 2007-10-09 Richard Stallman <rms@gnu.org>
23784
23785 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23786 return HANDLED_RETURN.
23787
23788 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23789
23790 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23791 when there's an unread command event.
23792
23793 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23794 window autoselection act appropriately when leaving selected frame.
23795 (syms_of_frame): Initialize focus_follows_mouse.
23796 * frame.h (focus_follows_mouse): Extern it.
23797 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23798 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23799 * msdos.c (dos_rawgetc): Likewise.
23800 * w32term.c (w32_read_socket): Likewise.
23801 * xterm.c (handle_one_xevent): Likewise.
23802 * xdisp.c (syms_of_xdisp): In doc-string of
23803 mouse-autoselect-window mention focus-follows-mouse.
23804
23805 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23806
23807 * macterm.c (mac_load_query_font): Fix missing return value.
23808 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23809 Add BLOCK_INPUT.
23810
23811 2007-10-08 Richard Stallman <rms@gnu.org>
23812
23813 * xdisp.c (get_window_cursor_type): Implement documented behavior
23814 for cursor-in-non-selected-windows = t.
23815
23816 2007-10-08 Jason Rumney <jasonr@gnu.org>
23817
23818 * w32.c (w32_get_resource): Always close registry keys.
23819
23820 2007-10-08 Jason Rumney <jasonr@gnu.org>
23821
23822 * makefile.w32-in (LIBS): Add COMCTL32.
23823
23824 * w32fns.c (globals_of_w32fns): Init common controls.
23825
23826 2007-10-08 Richard Stallman <rms@gnu.org>
23827
23828 * image.c (our_memory_buffer): Rename from omfib_buffer.
23829
23830 2007-10-08 Richard Stallman <rms@gnu.org>
23831
23832 * buffer.c (Foverlays_at): Doc fix.
23833
23834 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23835
23836 * fns.c (Fplist_put): Preserve uneven tail data.
23837
23838 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23839
23840 * termhooks.h (enum event_kind): Remove trailing comma.
23841
23842 * frame.h (enum): Remove trailing comma.
23843
23844 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23845
23846 * w32proc.c (delete_child): Don't terminate threads of zombies.
23847
23848 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23849
23850 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23851
23852 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23853 last-repeatable-command.
23854 (init_kboard): Initialize Vlast_repeatable_command.
23855 (command_loop_1): Set it to real_this_command unless that was
23856 bound to an input event.
23857 (mark_kboards): Mark it.
23858
23859 2007-10-08 Richard Stallman <rms@gnu.org>
23860
23861 * eval.c (condition-case): Doc fix.
23862
23863 2007-10-08 Masatake YAMATO <jet@gyve.org>
23864
23865 * xfaces.c (tty_supports_face_attributes_p): Fix code
23866 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23867 was copied and not edited.
23868
23869 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23870
23871 Add new `input-decode-map' keymap and use it for terminal
23872 escape sequences.
23873 * keyboard.h (struct kboard): Add Vinput_decode_map.
23874 Remove Vlocal_key_translation_map.
23875 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23876 (init_kboard): Init input-decode-map.
23877 Replace local-key-translation-map back with key-translation-map.
23878 (syms_of_keyboard): Declare input-decode-map.
23879 Remove local-key-translation-map. Update docstrings.
23880 (mark_kboards): Mark Vinput_decode_map.
23881 Don't mark Vlocal_key_translation_map.
23882 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23883 Replace local-key-translation-map back with key-translation-map.
23884 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23885 Bind in input-decode-map rather than function-key-map.
23886
23887 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23888 This was made redundant by the previous introduction of XSETPVECTYPE.
23889
23890 2007-10-09 Richard Stallman <rms@gnu.org>
23891
23892 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23893
23894 2007-09-29 Richard Stallman <rms@gnu.org>
23895
23896 * eval.c (internal_condition_case_2, internal_condition_case_1)
23897 (internal_condition_case): Reenable abort if x_catching_errors ()
23898 to see if that really happens and why.
23899
23900 2007-10-06 Andreas Schwab <schwab@suse.de>
23901
23902 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23903
23904 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
23905
23906 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23907
23908 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23909
23910 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23911
23912 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23913
23914 * window.h (struct window):
23915 * window.c (struct save_window_data, struct saved_window):
23916 * termhooks.h (struct terminal):
23917 * process.h (struct Lisp_Process):
23918 * frame.h (struct frame):
23919 * buffer.h (struct buffer):
23920 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23921 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23922 The size field of (pseudo)vectors is now unsigned.
23923 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23924
23925 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23926 Turn `count' into an integer.
23927
23928 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23929 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23930 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23931 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23932 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23933
23934 * alloc.c (allocate_pseudovector): New fun.
23935 (ALLOCATE_PSEUDOVECTOR): New macro.
23936 (allocate_window, allocate_terminal, allocate_frame)
23937 (allocate_process): Use it.
23938 (mark_vectorlike): New function.
23939 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23940 (mark_terminals): Use it.
23941 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23942 (Fmake_byte_code): Use XSETPVECTYPE.
23943
23944 * frame.c (Fframe_parameters): Minor simplification.
23945
23946 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23947
23948 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23949
23950 * buffer.c (Fget_buffer_create, init_buffer_once):
23951 * lread.c (defsubr):
23952 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23953
23954 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23955 defined differently in the m/*.h files.
23956 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23957 (XSETPVECTYPE): New macro.
23958 (XSETPSEUDOVECTOR): Use it.
23959
23960 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23961 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23962
23963 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23964 * lread.c (defvar_per_buffer):
23965 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23966
23967 * window.c (candidate_window_p): Only consider as visible frames that
23968 are on the same terminal.
23969
23970 * m/ibms390x.h (MARKBIT): Remove unused macro.
23971
23972 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
23973
23974 * lread.c (Fload): Fix typo in docstring.
23975
23976 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23977
23978 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23979 of a non-zero value can't yield zero.
23980
23981 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23982
23983 * term.c (term_clear_mouse_face, term_mouse_highlight)
23984 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23985
23986 * print.c (safe_debug_print): Use XHASH.
23987
23988 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23989 Lisp elements such as tags.
23990 (XHASH): New macro.
23991 (EQ): Use it.
23992 (SREF, SSET, STRING_COPYIN): Use SDATA.
23993 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23994
23995 * alloc.c (mark_terminal): Remove left-over declaration.
23996 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23997 (allocate_vectorlike): Remove type argument. Adjust callers.
23998 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23999 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24000
24001 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24002 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24003 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24004 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24005 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24006 Use them.
24007
24008 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24009 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24010 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24011
24012 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24013
24014 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24015 loaded by default.
24016
24017 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24018
24019 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24020 on this tty.
24021 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24022
24023 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24024 Update all users.
24025 (handle_one_term_event): Use Gpm_DrawPointer.
24026 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24027 Signal errors instead of returning nil. Always return nil.
24028 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24029 Make it a noop if gpm-mouse was not activated.
24030 (syms_of_term): Update names.
24031
24032 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24033
24034 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24035 (init_sys_modes): Check that gpm_tty is the current tty.
24036
24037 * alloc.c (allocate_terminal): Set the vector size to only count the
24038 lisp fields. Initialize those to nil.
24039 (mark_object): Don't treat terminals specially.
24040 (mark_terminal): Remove.
24041 (mark_terminals): Use mark_object instead.
24042
24043 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24044 the GC to the beginning.
24045
24046 * indent.h:
24047 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24048
24049 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24050
24051 2007-09-25 Jason Rumney <jasonr@gnu.org>
24052
24053 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24054
24055 * w32console.c (create_w32cons_output): Remove.
24056
24057 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24058
24059 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24060 (reset_sys_modes): Use reset_terminal_modes_hook.
24061
24062 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24063
24064 * eval.c (do_autoload): Don't output any message.
24065
24066 2007-09-24 Juri Linkov <juri@jurta.org>
24067
24068 * emacs.c (standard_args): Change priority of "--no-splash"
24069 from 40 to 3. Add "--no-desktop" with the same priority.
24070
24071 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24072
24073 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24074 and optimize the case where they are all 1.
24075
24076 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
24077
24078 * lisp.h (abs): Define if not defined.
24079 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24080 Don't define `abs', since it's defined in lisp.h.
24081
24082 2007-09-22 Eli Zaretskii <eliz@gnu.org>
24083
24084 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24085 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24086 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24087 (init_tty): Use DEV_TTY instead of "/dev/tty".
24088 [WINDOWSNT]: No need to protect from NAME arg being null.
24089
24090 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24091
24092 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24093 up the tty state.
24094
24095 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24096
24097 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24098 (gpm_tty): Change its type.
24099 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24100 (gpm_tty): Change its type and initialize it.
24101 (Fterm_open_connection): Check the frame is indeed a tty.
24102 Use the new gpm_tty.
24103 (Fterm_close_connection): Use the new gpm_tty.
24104 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24105 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24106
24107 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
24108
24109 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24110 underline_color, to draw strike-through.
24111
24112 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24113
24114 * lisp.h (allocate_terminal): Declare.
24115
24116 * window.c (candidate_window_p): Consider frames that are being placed
24117 by the user as somewhere between visible and iconified.
24118 (window_loop): Prefer windows on the current frame.
24119 (Fselect_window): Move the use of select-frame to the beginning so we
24120 can just delegate all the work (it'll call us back anyway).
24121
24122 * frame.c (Qdisplay_environment_variable):
24123 * frame.h (Qdisplay_environment_variable): Delete.
24124
24125 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24126 of the first arg, since that value may be a union.
24127
24128 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24129 parameter rather than Qdisplay_environment_variable. If all else
24130 fails, look for DISPLAY in initial-environment.
24131
24132 2007-09-21 Glenn Morris <rgm@gnu.org>
24133
24134 * Makefile.in (emacstool): Remove target.
24135 (lisp, shortlisp): Remove termdev.elc.
24136
24137 2007-09-21 Markus Triska <markus.triska@gmx.at>
24138
24139 * xterm.c (x_delete_display): Compile session management conditionally.
24140
24141 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24142
24143 * callproc.c (getenv_internal_1): New function.
24144 (getenv_internal): Use it.
24145 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24146
24147 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24148 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24149 (Fset_terminal_parameter): Work with dead terminals as well.
24150 (Fmodify_terminal_parameters): Remove.
24151
24152 * terminal.c (get_terminal): Handle terminals.
24153 Make sure the terminal returned is live.
24154 (create_terminal): Use allocate_terminal.
24155 (mark_terminals): Move to alloc.c.
24156 (delete_terminal): Use terminal->name as liveness status.
24157 NULL out fields after freeing their contents.
24158 Don't deallocate the object.
24159 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24160 rather than an int.
24161 (Fterminal_live_p): Accept non-integer arguments.
24162 (Fterminal_list): Return terminal objects rather than an ints.
24163
24164 * alloc.c (enum mem_type): New member for `terminal' objects.
24165 (allocate_terminal): New function.
24166 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24167 Handle terminals.
24168 (mark_terminal): New fun.
24169 (mark_terminals): Move from terminal.c.
24170
24171 * term.c (get_tty_terminal): Don't treat output_initial specially.
24172 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24173 (delete_tty): Use terminal->name as liveness status.
24174
24175 * termhooks.h (struct terminal): Make it into a pseudovector.
24176 Remove `deleted' replaced by checking `name's nullness.
24177
24178 * print.c (print_object): Handle terminals.
24179
24180 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24181 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24182
24183 * frame.c (make_terminal_frame):
24184 * keyboard.c (tty_read_avail_input):
24185 * w32term.c (x_delete_terminal):
24186 * xfns.c (Fx_create_frame, x_create_tip_frame):
24187 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24188
24189 2007-09-20 Glenn Morris <rgm@gnu.org>
24190
24191 * process.c (Fmake_network_process): Doc fix.
24192
24193 2007-09-19 Jason Rumney <jasonr@gnu.org>
24194
24195 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24196
24197 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24198
24199 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24200 Fix a C warning regarding variable constness.
24201
24202 * xterm.c (handle_one_xevent): Fix a C warning.
24203
24204 2007-09-18 Jason Rumney <jasonr@gnu.org>
24205
24206 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24207
24208 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24209
24210 * gtkutil.c (gdpy_def): New variable.
24211 (xg_initialize): Initialize gdpy_def.
24212 (xg_display_close): If no other display exists, set gdpy_def to a
24213 new connection.
24214
24215 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24216
24217 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24218 when we have no file name for the icon.
24219 (xg_tool_bar_expose_callback): Remove.
24220 (xg_create_tool_bar): Don't connect expose signal to
24221 xg_tool_bar_expose_callback.
24222 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24223
24224 2007-09-16 Andreas Schwab <schwab@suse.de>
24225
24226 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24227 values instead of zapping them.
24228
24229 2007-09-14 Glenn Morris <rgm@gnu.org>
24230
24231 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24232 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24233 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24234 scope and rename to omfib_buffer for clarity.
24235 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24236
24237 2007-09-14 Kenichi Handa <handa@m17n.org>
24238
24239 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24240
24241 2007-09-13 Jason Rumney <jasonr@gnu.org>
24242
24243 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24244
24245 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24246
24247 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24248 (mac_term_init): Call here instead, passing rif.
24249
24250 2007-09-13 Glenn Morris <rgm@gnu.org>
24251
24252 * s/hpux.h: No longer define `static' as nothing.
24253
24254 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24255
24256 * callint.c (Fcall_interactively): Remove unused var `fun'.
24257
24258 2007-09-12 Romain Francoise <romain@orebokech.com>
24259
24260 * window.c (prefer_window_split_horizontally, display_buffer):
24261 Revert 2007-09-08 change.
24262
24263 2007-09-12 Glenn Morris <rgm@gnu.org>
24264
24265 * alloca.c: Remove file.
24266 * Makefile.in (alloca): Do not undef.
24267 (allocaobj, alloca.o): Remove.
24268 (otherobj): Remove allocaobj.
24269 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24270 * regex.c (C_ALLOCA): Remove all references and code that was only
24271 used when this was defined.
24272 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24273 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24274 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24275
24276 * Makefile.in (SOURCES, unlock, relock): Delete.
24277
24278 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24279 (menu_grab_callback): All uses changed.
24280
24281 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24282 (x_reply_selection_request): All uses changed.
24283
24284 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24285
24286 * lread.c (load_warn_old_style_backquotes): Change message to look
24287 better when it appears in the middle of byte-compiler messages.
24288
24289 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24290
24291 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24292
24293 * xterm.c (x_create_terminal): Add comment.
24294
24295 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24296
24297 2007-09-10 Richard Stallman <rms@gnu.org>
24298
24299 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24300
24301 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24302
24303 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24304 (DEFUN): Document `intspec', use it instead of `prompt'.
24305
24306 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24307
24308 * data.c (Finteractive_form): If the interactive specification starts
24309 with a `(', use it as a Lisp form.
24310
24311 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24312 name and file modes.
24313
24314 * callint.c (Fcall_interactively): Comment fixes.
24315
24316 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24317
24318 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24319 and compiled functions.
24320
24321 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24322
24323 * window.c (prefer_window_split_horizontally): New variable.
24324 (display_buffer): Consider splitting window horizontally depending
24325 on prefer_window_split_horizontally.
24326
24327 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24328
24329 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24330
24331 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24332
24333 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24334
24335 * frame.c (x_set_frame_parameters): Check number is positive before
24336 using XFASTINT.
24337
24338 * window.c (freeze_window_start): Don't presume selected_window holds
24339 a window object.
24340 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24341
24342 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24343
24344 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24345
24346 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24347
24348 * window.c (Vsplit_window_preferred_function): New var.
24349 (Fdisplay_buffer): Use it.
24350 (syms_of_window): Export, and initialize it.
24351
24352 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24353
24354 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24355
24356 2007-09-06 Glenn Morris <rgm@gnu.org>
24357
24358 * gtkutil.c (menu_grab_callback) <cnt>:
24359 * xselect.c (x_reply_selection_request) <cnt>: Move static
24360 variable to file scope.
24361
24362 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24363
24364 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24365 consistent values of selected_frame and selected_window.
24366
24367 2007-09-04 Jason Rumney <jasonr@gnu.org>
24368
24369 * w32console.c (initialize_w32_display): Zero unused hooks.
24370
24371 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24372
24373 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24374 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24375
24376 2007-09-04 Jason Rumney <jasonr@gnu.org>
24377
24378 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24379 in w32console.c. Set up input. Remove XXX comments that have been
24380 confirmed as correct.
24381
24382 * s/ms-w32.h (MULTI_KBOARD): Define.
24383
24384 * w32console.c (one_and_only_w32cons): Remove.
24385 (initialize_w32_display): Take terminal argument.
24386
24387 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24388 initialize_w32_display.
24389 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24390
24391 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24392
24393 * keyboard.c (discard_mouse_events): Discard it.
24394 (make_lispy_event): Translate it to a lisp event.
24395 (lispy_wheel_names): Add wheel-left and right events.
24396 (syms_of_keyboard): Enlarge wheel_syms.
24397
24398 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24399 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24400
24401 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24402
24403 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24404 from WM_MOUSEHWHEEL.
24405 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24406
24407 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24408 terminal.
24409
24410 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24411 keyboard for the terminal.
24412
24413 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24414
24415 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24416 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24417 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24418 and resume-tty-function to resume-tty-hook.
24419 (Fsuspend_tty, Fresume_tty): Use new names.
24420
24421 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24422
24423 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24424 if it starts with "n:".
24425
24426 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24427
24428 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24429
24430 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24431
24432 * frame.h:
24433 * frame.c (Qterm_environment_variable): Remove.
24434 (syms_of_frame): Don't init and staticpro it.
24435
24436 * callproc.c (getenv_internal): Remove special case for $TERM.
24437
24438 * callproc.c (Vinitial_environment): New variable.
24439 (set_initial_environment): Initialize it.
24440 (syms_of_callproc): Declare it.
24441 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24442 TERM under which a process runs is never related to the TERM in which
24443 Emacs is running.
24444
24445 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24446
24447 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24448 * s/darwin.h: ... do it here.
24449
24450 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24451
24452 * lisp.h (set_initial_environment): Rename from set_global_environment.
24453
24454 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24455 removed by mistake on the multi-tty branch.
24456
24457 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24458 (Fmodify_frame_parameters): Return a value.
24459
24460 * image.c (png_load): Comment-out var only used in commented-out code.
24461
24462 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24463 before passing it to mark_object.
24464
24465 * xfaces.c (internal_resolve_face_name): Return a value.
24466 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24467
24468 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24469 (x_icon): Comment-out var only used in commented-out code.
24470
24471 2007-08-29 Romain Francoise <romain@orebokech.com>
24472
24473 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24474 QUIT hasn't been provided.
24475
24476 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24477
24478 * callproc.c (child_setup, getenv_internal): Use the
24479 display-environment-variable and term-environment-variable frame params.
24480 (set_initial_environment): Initialise Vprocess_environment.
24481
24482 * config.in: Disable multi-keyboard support on a mac.
24483
24484 * frame.c (Qterm_environment_variable)
24485 (Qdisplay_environment_variable): New variables.
24486 (syms_of_frame): Intern and staticpro them.
24487 (Fmake_terminal_frame): Disable output method test.
24488
24489 * frame.h: Declare them here.
24490
24491 * macfns.c (x_set_mouse_color): Get rif from the frame.
24492 (x_set_tool_bar_lines): Don't use updating_frame.
24493 (mac_window): Add 2 new parameters for consistency with other systems.
24494 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24495 frame parameters following what is done in X11 and w32. Don't use
24496 FRAME_MAC_DISPLAY_INFO.
24497 (Fx_open_connection, start_hourglass): Remove window-system check.
24498 (x_create_tip_frame): Get the keyboard from the terminal.
24499
24500 * macmenu.c: Reorder includes.
24501 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24502
24503 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24504 terminal parameter.
24505 (x_clear_frame): Add a frame parameter.
24506 (note_mouse_movement): Get rif from the frame.
24507 (mac_term_init): Initialize the terminal.
24508 (mac_initialize): Make static and move terminal initialization ...
24509 (mac_create_terminal): ... to this new function.
24510
24511 * macterm.h (struct mac_display_info): Add terminal.
24512 (mac_initialize): Delete declaration.
24513
24514 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24515
24516 * sysdep.c: Comment out text after #endif.
24517
24518 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24519 is defined. Better initialize ttys in windows. Use terminal
24520 specific mouse_position_hook.
24521
24522 * termhooks.h (union display_info): Add mac_display_info.
24523
24524 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24525 Set the default minibuffer frame, window_system and the rest of the
24526 frame parameters following what is done in X11.
24527
24528 * w32term.c (w32_initialize): Make static.
24529
24530 * xselect.c (x_handle_selection_clear): Only access
24531 terminal->kboard when MULTI_KBOARD is defined.
24532
24533 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24534 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24535
24536 2007-08-29 Jason Rumney <jasonr@gnu.org>
24537
24538 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24539 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24540
24541 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24542 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24543
24544 * keyboard.c (restore_kboard_configuration): Only define when
24545 MULTI_KBOARD defined.
24546
24547 * makefile.w32-in: Update dependancies from Makefile.in.
24548 (OBJ1): Add terminal.$(O)
24549
24550 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24551 Don't define function body.
24552 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24553
24554 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24555
24556 * w32.c (request_sigio, unrequest_sigio): Remove.
24557
24558 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24559 (w32con_clear_frame, w32con_clear_end_of_line)
24560 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24561 (w32con_delete_glyphs, w32con_set_terminal_window)
24562 (scroll_line, w32_sys_ring_bell): Add frame arg.
24563 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24564 Add terminal arg.
24565 (PICK_FRAME): Remove.
24566 (w32con_write_glyphs): Use frame specific terminal coding.
24567 (one_and_only_w32cons): New global variable.
24568 (initialize_w32_display): Use it for storing hooks.
24569 (create_w32cons_output): New function.
24570
24571 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24572 arg a frame.
24573
24574 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24575 Set window_system.
24576 (x_set_tool_bar_lines): Don't use updating_frame.
24577 (Fx_create_frame): Set terminal and ref count.
24578 (Fx_open_connection): Remove window-system check.
24579
24580 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24581
24582 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24583 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24584 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24585 Add frame arg.
24586 (x_delete_terminal, w32_create_terminal): New functions.
24587 (w32_term_init): Create a terminal.
24588 (w32_initialize): Move terminal specific initialization to
24589 w32_create_terminal.
24590
24591 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24592 (w32_clear_rect, w32_clear_area): Use background from frame.
24593 (w32_display_info): Add terminal.
24594 (w32_sys_ring_bell, x_delete_display): Declare here.
24595
24596 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24597
24598 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24599
24600 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24601
24602 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24603 Fix get_named_tty calls for the controlling tty.
24604
24605 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24606
24607 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24608
24609 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24610
24611 * term.c (tty_insert_glyphs): Add missing first parameter.
24612
24613 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24614
24615 * buffer.c (Fbuffer_list, Fbury_buffer):
24616 Take frame->buried_buffer_list into account.
24617
24618 * cm.c (current_tty): New variable, for cmputc().
24619 (cmputc): Use it.
24620 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24621 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24622 (cmgoto): Add tty parameter. Pass it on to calccost().
24623 Use emacs_tputs() instead of tputs().
24624
24625 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24626 tputs().
24627 (current_tty): New variable, for cmputc().
24628 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24629
24630 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24631 (internal_condition_case, internal_condition_case_1)
24632 (internal_condition_case_2): Don't abort when x_catching_errors.
24633
24634 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24635 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24636 prevent crashes caused by bogus longjmps in read_char.
24637
24638 * keymap.h (Fset_keymap_parent): Add EXFUN.
24639
24640 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24641 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24642 Remove redundant definition.
24643
24644 * macfns.c (x_set_mouse_color, x_make_gc):
24645 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24646
24647 * w32term.c (x_free_frame_resources):
24648 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24649 (w32_initialize): Use the accessor macros for terminal characteristics.
24650
24651 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24652 Use the accessor macros for terminal characteristics.
24653 * msdos.c (internal_terminal_init): Use the accessor macros for
24654 terminal characteristics.
24655 (ScreenVisualBell, internal_terminal_init):
24656 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24657
24658 * termopts.h (no_redraw_on_reenter): Declare.
24659
24660 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24661 (mark_terminals, mark_ttys): Declare.
24662 (Fgarbage_collect): Call them.
24663 (mark_object): Mark buried_buffer_list.
24664
24665 * prefix-args.c: Include stdlib.h for exit.
24666
24667 * syssignal.h: Add comment.
24668
24669 * indent.c: Include stdio.h.
24670
24671 * window.h (Vinitial_window_system): Declare.
24672 (Vwindow_system): Delete declaration.
24673
24674 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24675
24676 * image.c (lookup_image): Don't initialize `c' until the xasserts
24677 have been run.
24678
24679 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24680 FRAME_FOREGROUND_PIXEL.
24681
24682 * print.c (print_preprocess): Don't lose print_depth levels while
24683 iterating.
24684
24685 * widget.c (update_from_various_frame_slots):
24686 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24687
24688 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24689 frames.
24690 (window_internal_height): Remove bogus make_number call.
24691 (init_window_once): Call make_terminal_frame with two zero parameters.
24692
24693 * fileio.c (Fread_file_name): Update comment.
24694
24695 * callint.c (Fcall_interactively):
24696 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24697 Make sure it is correctly unwound.
24698
24699 * xsmfns.c (x_session_close): New function.
24700
24701 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24702 Delete declarations.
24703
24704 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24705 (x_output): Remove background_pixel and foreground_pixel fields.
24706 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24707 (x_delete_device, x_session_close): Declare.
24708
24709 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24710 (read_filtered_event): Call `read_char' with a local
24711 `wrong_kboard_jmpbuf'.
24712
24713 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24714 Don't call single_kboard_state. Use FRAME_RIF.
24715
24716 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24717 systems.
24718
24719 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24720 (Fframe_with_environment, Fset_input_meta_mode)
24721 (Fset_quit_char): EXFUN.
24722 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24723 (init_sys_modes, reset_sys_modes): Update prototypes.
24724 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24725
24726 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24727 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24728 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24729 Delete declarations.
24730 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24731 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24732 New declarations.
24733
24734 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24735 already does that during init_display(). Call syms_of_keymap
24736 before syms_of_keyboard. Call `syms_of_terminal'.
24737 Call set_initial_environment, not set_process_environment.
24738 (shut_down_emacs): Call reset_all_sys_modes() instead of
24739 reset_sys_modes().
24740
24741 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24742 (internal_resolve_face_name, resolve_face_name_error): New functions.
24743 (resolve_face_name): Protect against loops and errors thrown by Fget.
24744 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24745 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24746
24747 * scroll.c: Replace CURTTY() with local variables throughout the
24748 file (where applicable).
24749 (calculate_scrolling, calculate_direct_scrolling)
24750 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24751 characteristics.
24752
24753 * keymap.c (Vfunction_key_map): Remove.
24754 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24755 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24756 (Vkey_translation_map): Remove.
24757 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24758 (Fdescribe_buffer_bindings)
24759 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24760 Update for terminal-local key-translation-map.
24761
24762 * Makefile.in (callproc.o): Update dependencies.
24763 (lisp, shortlisp): Add termdev.elc.
24764 (obj): Add terminal.o.
24765 (terminal.o): Add dependencies.
24766 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24767 (data.o, fns.o): Add termhooks.h dependency.
24768 (SOME_MACHINE_LISP): Add dnd.elc.
24769 (minibuf.o): Fix typo.
24770 Update dependencies.
24771
24772 * data.c (do_symval_forwarding, store_symval_forwarding)
24773 (find_symbol_value): Use the selected frame's keyboard, not
24774 current_kboard.
24775
24776 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24777 Vwindow_system.
24778
24779 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24780 Fmenu_bar_open.
24781 (syms_of_xmenu): Update defsubr.
24782 (mouse_position_for_popup, Fx_popup_menu)
24783 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24784 (set_frame_menubar, free_frame_menubar)
24785 (create_and_show_popup_menu, xmenu_show)
24786 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24787 an X frame.
24788
24789 * xselect.c (x_own_selection): Abort if not an X frame.
24790 (some_frame_on_display): Check if it is an X frame.
24791 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24792
24793 * coding.c: Include frame.h and termhooks.h.
24794 (terminal_coding, keyboard_coding): Delete.
24795 (Fset_terminal_coding_system_internal)
24796 (Fset_keyboard_coding_system_internal)
24797 (Fkeyboard_coding_system)
24798 (Fterminal_coding_system): Add a terminal parameter.
24799 Get terminal_coding from the terminal.
24800 (init_coding_once): Don't call setup_coding_system here.
24801
24802 * dispextern.h (set_scroll_region, turn_off_insert)
24803 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24804 (tty_clear_end_of_line, tty_setup_colors)
24805 (delete_tty, updating_frame)
24806 (produce_special_glyphs, produce_glyphs, write_glyphs)
24807 (insert_glyphs): Remove.
24808 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24809 (tty_turn_off_highlight, get_tty_size): Add declaration.
24810 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24811
24812 * frame.h (enum output_method): Add output_initial.
24813 (struct x_output): Delete.
24814 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24815 Access foreground_pixel and background_pixel directly from the frame.
24816 (tty_display): Delete.
24817 (struct frame): Add buried_buffer_list, foreground_pixel,
24818 background_pixel and terminal. Delete kboard.
24819 (union output_data): Add tty.
24820 (FRAME_KBOARD): Get the kboard from the terminal.
24821 (FRAME_INITIAL_P): New macro.
24822 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24823 (Qterm_environment_variable, Qdisplay_environment_variable)
24824 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24825 New declarations.
24826
24827 * termchar.h (tty_output, tty_display_info): New structures.
24828 (tty_list): Declare.
24829 (FRAME_TTY, CURTTY): New macros.
24830 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24831 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24832 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24833 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24834
24835 * callproc.c: Include frame.h and termhooks.h, for terminal
24836 parameters.
24837 (add_env): New function.
24838 (child_setup): Use it.
24839 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24840 (getenv_internal): Fix get_terminal_param call.
24841 (Fgetenv_internal, egetenv): Update doc.
24842 (syms_of_callproc): Initialize Vprocess_environment to nil.
24843 Register and initialize them. Remove obsolete defvars. Update doc
24844 strings.
24845 (child_setup): Handle Vlocal_environment_variables.
24846 (getenv_internal): Add terminal parameter.
24847 Handle Vlocal_environment_variables.
24848 (Fgetenv_internal): Add terminal parameter.
24849 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24850 environment in a frame (not terminal) parameter. Update doc strings.
24851 (set_initial_environment): Rename from set_global_environment.
24852 Store Emacs environment in initial frame parameter.
24853
24854 * xdisp.c (redisplay_internal): Update references to
24855 `previous_terminal_frame'.
24856 (display_mode_line, Fformat_mode_line): Replace calls to
24857 `push_frame_kboard' with `push_kboard'.
24858 (get_glyph_string_clip_rects): Add extra parentheses and
24859 braces to prevent compiler warnings.
24860 (calc_pixel_width_or_height): Add xassert to check that the
24861 frame is alive. Don't call `lookup_image' on a termcap frame.
24862 (message2_nolog, message3_nolog, redisplay_internal)
24863 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24864 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24865 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24866 (Fx_display_pixel_width, Fx_display_pixel_height)
24867 (Fx_display_planes, Fx_display_color_cells)
24868 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24869 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24870 (Fx_display_backing_store, Fx_display_visual_class)
24871 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24872 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24873
24874 * xfns.c (x_set_foreground_color x_set_background_color)
24875 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24876 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24877 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24878 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24879 terminal that is being deleted.
24880 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24881 frame parameter, and make sure it overrides any user-supplied setting.
24882 (Fx_close_connection, Fx_synchronize): Unify argument names with
24883 the rest of the DEFUNs.
24884
24885 * dispnew.c (Fsend_string_to_terminal): Update call to
24886 `get_tty_terminal'.
24887 (Fredraw_frame, Fsend_string_to_terminal)
24888 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24889 FRAME_TERMCAP_P and FRAME_TTY.
24890 (window_change_signal): Don't believe width/height values that are
24891 impossibly small.
24892 (Vinitial_window_system): Rename from Vwindow_system.
24893 (termscript, Wcm, rif): Delete.
24894
24895 * termhooks.h (struct terminal): New struct containing the
24896 previously global text display hooks and new members NAME,
24897 DELETED and PARAM_ALIST.
24898 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24899 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24900 (FRAME_RIF): New macros.
24901 (get_terminal_param, get_device): New declarations.
24902 (termscript): Delete declaration.
24903
24904 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24905 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24906 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24907 FRAME_FOREGROUND_PIXEL.
24908 (x_fully_uncatch_errors): Disable definition.
24909 (x_scroll_bar_expose): Fix reference to foreground pixel.
24910 (XTread_socket): Disable loop on all X displays.
24911 (x_delete_terminal): Don't set terminal->deleted and let
24912 delete_terminal delete the frames on the terminal.
24913 (x_delete_display): Doc update to reflect changes in
24914 delete_terminal.
24915 (x_display_info) <terminal>: Move member earlier in the struct.
24916 (deleting_tty): Remove old variable.
24917 (Fsuspend_tty): Call clear_tty_hooks.
24918 (Fresume_tty, init_tty): Call set_tty_hooks.
24919 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24920 errors on X frames.
24921 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24922 (handle_one_xevent): Initialize `f' to NULL.
24923 (x_delete_terminal, x_create_terminal): New functions.
24924 (XTset_terminal_modes, XTreset_terminal_modes)
24925 (XTread_socket, x_connection_closed, x_term_init)
24926 (x_term_init, x_delete_display): Add terminal parameter.
24927 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24928 X connections.
24929
24930 * frame.c: Include termchar.h.
24931 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24932 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24933 (Qdisplay_environment_variable): New vars.
24934 (Fframep): Deal with output_initial.
24935 (Fframe-live-p): Doc fix.
24936 (Fwindow-system): New function.
24937 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24938 (make_terminal_frame): Don't create frames on a terminal that is
24939 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24940 (store_frame_param): Check for found_for_frame before calling XFRAME.
24941 (Fmake_terminal_frame): Handle NULL tty names correctly.
24942 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24943 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24944 frames to refer to a deleted frame in their 'environment parameter.
24945 (Fframe_with_environment): New function.
24946 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24947 (get_future_frame_param): New function.
24948 (Fmake_terminal_frame): Use it.
24949 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24950
24951 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24952 * sysdep.c (reset_sys_modes): Update for renames.
24953
24954 * keyboard.c (tty_read_avail_input): New function.
24955 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24956 (syms_of_keyboard): Defsubr them.
24957 (Fset_input_meta_mode, Fset_quit_char): New functions.
24958 (Fset_input_mode): Split to above functions.
24959 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24960 parameter. Use it in call to `read_char'.
24961 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24962 Set wrong_kboard_jmpbuf correctly in recursive calls.
24963 Use current_kboard to access Vkeyboard_translate_table.
24964 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24965 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24966 Update longjmp invocations. Remember the original current_kboard,
24967 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24968 changes it. Comment out unnecessary calls to
24969 `record_single_kboard_state' and `any_kboard_state'.
24970 Update recursive calls.
24971 (wrong_kboard_jmpbuf): Remove global variable.
24972 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24973 Handle deleted interrupted_kboards correctly; that is a legal
24974 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24975 and read_char calls. Abort if interrupted_kboard died in read_char.
24976 (any_kboard_state, single_kboard_state)
24977 (push_frame_kboard): Remove function.
24978 (pop_kboard): Switch out of single_kboard mode if the kboard has
24979 been deleted. Remove unused variable. Help debugging by not
24980 changing current_kboard unnecessarily. Set current_kboard to the
24981 kboard of the selected frame when the stored kboard object has
24982 been deleted before pop_kboard.
24983 (temporarily_switch_to_single_kboard): Change first parameter to a
24984 frame pointer. Throw an error when caller wants to change kboards
24985 while in single_kboard mode. Don't push_kboard if we weren't in
24986 single kboard state. Don't pop_kboard if we popped into any
24987 kboard state.
24988 (restore_kboard_configuration): Abort if pop_kboard changed the
24989 kboard in single_kboard mode. Call pop_kboard only after setting
24990 up single_kboard mode.
24991 (Frecursive_edit): Switch to single_kboard mode only in nested
24992 command loops.
24993 (cmd_error, command_loop, command_loop_1, timer_check):
24994 Comment out unnecessary call to `any_kboard_state' and
24995 `record_single_kboard_state'.
24996 (delete_kboard): Exit single_kboard mode if we have just deleted
24997 that kboard. Use FRAME_KBOARD.
24998 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24999 `fatal_error_signal'.
25000 (record_single_kboard_state): Don't push_kboard if we weren't in
25001 single kboard state. Don't pop_kboard if we popped into any
25002 kboard state.
25003 (push_frame_kboard): Rename to push_kboard.
25004 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25005 (read_avail_input): Read input from all terminals.
25006 (mark_kboards): Also mark Vkeyboard_translate_table.
25007 (kbd_buffer_store_event_hold): Simplify condition.
25008 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25009 (Vkeyboard_translate_table): Move to struct kboard.
25010 (init_kboard): Initialize Vkeyboard_translate_table.
25011 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25012 Vkeyboard_translate_table. Update doc strings. Update docs of
25013 local-function-key-map and function-key-map.
25014
25015 * terminal.c: New file.
25016
25017 * term.c: Include errno.h.
25018 (Vring_bell_function, device_list, initial_device)
25019 (next_device_id, ring_bell, update_begin, update_end)
25020 (set_terminal_window, cursor_to, raw_cursor_to)
25021 (clear_to_end, clear_frame, clear_end_of_line)
25022 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25023 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25024 (syms_of_term): Move their initialization to terminal.c.
25025 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25026 (Ftty_display_color_cells)
25027 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25028 (clear_tty_hooks, set_tty_hooks)
25029 (init_tty, maybe_fatal): New functions.
25030 (Ftty_type): Return nil if terminal is not on a tty instead of
25031 throwing an error. Doc update.
25032 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25033 Doc update. Initialize new subrs and variables.
25034 (delete_tty): Use terminal->deleted.
25035 (tty_set_terminal_modes): Rename from set_terminal_modes.
25036 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25037 (set_scroll_region): Rename to `tty_set_scroll_region'.
25038 (turn_on_insert): Rename to `tty_turn_on_insert'.
25039 (turn_off_insert): Rename to `tty_turn_off_insert'.
25040 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25041 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25042 (toggle_highligh): Rename to `tty_toggle_highlight'.
25043 (background_highlight): Rename to `tty_background_highlight'.
25044 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25045 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25046 (tty_set_scroll_region, tty_background_highlight)
25047 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25048 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25049 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25050 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25051 Add static modifier.
25052 (tty_reset_terminal_modes, tty_set_terminal_window)
25053 (tty_set_scroll_region, tty_background_highlight)
25054 (tty_highlight_if_desired, tty_cursor_to)
25055 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25056 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25057 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25058 renames.
25059
25060 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25061
25062 * keyboard.c: Qrtl is new.
25063 (parse_tool_bar_item): Handle :rtl keyword.
25064 (syms_of_keyboard): Intern :rtl keyword.
25065
25066 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25067
25068 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25069 so no Lisp code is executed.
25070 (file_for_image, find_rtl_image): New functions.
25071 (xg_get_image_for_pixmap): Use file_for_image.
25072 (update_frame_tool_bar): If direction is RTL, use RTL image if
25073 defined. Use Gtk stock images if defined.
25074
25075 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25076
25077 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25078 for nonexistent or zero-width glyph in composition glyph.
25079
25080 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25081
25082 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25083
25084 * xdisp.c (Finvisible_p): New function.
25085 (syms_of_xdisp): defsubr it.
25086
25087 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
25088
25089 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25090 Doc fixes.
25091
25092 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25093
25094 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25095
25096 2007-08-24 Martin Rudalics <rudalics@gmx.at>
25097
25098 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25099 whether decoding has modified buffer contents.
25100
25101 2007-08-24 Jason Rumney <jasonr@gnu.org>
25102
25103 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25104 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25105 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25106 (init_svg_functions) [HAVE_NTGUI]: New function.
25107 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25108 (svg_load_image): Use them.
25109 (svg_load_image) [HAVE_NTGUI]: Implement background.
25110
25111 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25112
25113 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25114 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25115 (LIBX): Remove @RSVG_LIBS@.
25116 (LIBES): Add $(RSVG_LIBS).
25117
25118 * image.c (svg_load_image): Blend with specified background if exists.
25119 Use IMAGE_BACKGROUND. Add Mac OS Support.
25120
25121 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25122 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25123 Remove macros.
25124 [MAC_OSX] (socket_callback): Do nothing.
25125 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25126 ReceiveNextEvent.
25127 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25128 socket_callback.
25129 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25130
25131 2007-08-22 Glenn Morris <rgm@gnu.org>
25132
25133 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25134
25135 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25136
25137 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25138
25139 * image.c: Add support for SVG images. Some additional comments
25140 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25141 (svg_image_p): New function to test for SVG image.
25142 (svg_load): New function to load SVG image.
25143 (svg_load_image): New function, helper for svg_load.
25144 (Qsvg): New Lisp_object.
25145 (svg_keyword_index): New enum.
25146 (svg_format): New static `image_keyword' struct.
25147 (svg_type): New static `image_type' struct.
25148 (librsvg/rsvg.h): Include it.
25149
25150 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25151
25152 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25153
25154 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25155
25156 * lread.c (Qold_style_backquotes): New var.
25157 (syms_of_lread): Init and staticpro it.
25158 (load_warn_old_style_backquotes): New fun.
25159 (Fload): Use them to warn about old style backquotes.
25160 (end_of_file_error, Fload): Remove unused vars.
25161
25162 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25163
25164 * lread.c (Vold_style_backquotes): New var.
25165 (syms_of_lread): Init and export it to Elisp.
25166 (read1): Set it when we find an old-style (back)quote.
25167
25168 2007-08-22 Jason Rumney <jasonr@gnu.org>
25169
25170 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25171
25172 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25173
25174 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25175
25176 2007-08-19 Richard Stallman <rms@gnu.org>
25177
25178 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25179
25180 2007-08-19 Andreas Schwab <schwab@suse.de>
25181
25182 * alloc.c (pure): Round PURESIZE up.
25183
25184 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25185
25186 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25187 active frame.
25188
25189 2007-08-16 Richard Stallman <rms@gnu.org>
25190
25191 * eval.c (Fcommandp): Add parens to clarify.
25192
25193 * minibuf.c (Fall_completions): Use enum for type of table.
25194
25195 * emacs.c (USAGE2): Improve text.
25196
25197 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25198
25199 * term.c (tty_default_color_capabilities): Declare static
25200 variables in file scope, to avoid HPUX compiler problem.
25201
25202 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25203
25204 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25205 to gtk_toolbar_insert.
25206
25207 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25208
25209 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25210
25211 * insdel.c (reset_var_on_error): New fun.
25212 (signal_before_change, signal_after_change):
25213 Use it to reset (after|before)-change-functions to nil in case of error.
25214 Bind inhibit-modification-hooks to t.
25215 Don't bind (after|before)-change-functions to nil while they run.
25216
25217 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25218
25219 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25220 filling pixmap with stippled background.
25221
25222 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25223
25224 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25225 Don't use invisible frame as parent window for repositioning.
25226
25227 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25228
25229 * print.c (new_backquote_output): Rename from old_backquote_output.
25230 (print): Inverse its logic (according to its name) so as to match the
25231 behavior of new_backquote_flag in lread.c.
25232
25233 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25234
25235 * gmalloc.c (posix_memalign): New function.
25236
25237 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25238 ActivateControl/DeactivateControl here.
25239 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25240 frame-notice-user-settings is non-nil.
25241 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25242 for kEventParamFMFontStyle.
25243 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25244 mac_pass_command_to_system and mac_pass_control_to_system here.
25245 (XTread_socket): Call ActivateControl/DeactivateControl here.
25246 (XTread_socket) [TARGET_API_MAC_CARBON]:
25247 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25248 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25249 for window repositioning.
25250
25251 2007-08-08 Glenn Morris <rgm@gnu.org>
25252
25253 * Replace `iff' in doc-strings and comments.
25254
25255 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25256
25257 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25258
25259 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25260
25261 * fileio.c (Finsert_file_contents): Run format-decode and
25262 after_insert_file_functions on entire buffer when REPLACE is
25263 non-nil and inhibit modification_hooks and point_motion_hooks.
25264 For consistency, run after_insert_file_functions iff something
25265 got inserted. Move signal_after_change and update_compositions
25266 after code running after_insert_file_functions. Make sure that
25267 undo_list doesn't record intermediate steps of the decoding process.
25268
25269 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25270
25271 * emacs.c (main)
25272 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25273 Call malloc_enable_thread on interactive startup.
25274
25275 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25276 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25277 [USE_PTHREAD]: Conditionalize with it.
25278 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25279 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25280 New functions.
25281
25282 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25283
25284 * xdisp.c (redisplay_window): When restoring original buffer
25285 position, make sure it is still valid.
25286
25287 * image.c (png_load): Ignore png-supplied background color.
25288
25289 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25290
25291 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25292 Use kCFAbsoluteTimeIntervalSince1970.
25293
25294 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25295 New variable.
25296 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25297 event loop should be quit.
25298 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25299 Quit dialog event loop if quit_dialog_event_loop is set.
25300
25301 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25302 (Selection): New typedef. Use instead of ScrapRef.
25303 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25304 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25305 (mac_clear_selection): Rename from clear_scrap.
25306 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25307 scrap_has_target_type. All uses changed.
25308 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25309 (mac_selection_has_target_p): New functions.
25310 (mac_put_selection_value): Rename from put_scrap_string.
25311 (mac_get_selection_value): Rename from get_scrap_string.
25312 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25313 (put_scrap_private_timestamp, scrap_has_target_type)
25314 (get_scrap_private_timestamp): Remove functions.
25315 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25316 (x_own_selection, x_get_local_selection):
25317 Use mac_valid_selection_value_p.
25318 (x_own_selection): Don't use put_scrap_private_timestamp.
25319 Record OWNERSHIP-INFO into Vselection_alist instead.
25320 (x_get_local_selection): Don't check type if request is local.
25321 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25322 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25323
25324 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25325
25326 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25327 add comment explaining why.
25328
25329 2007-08-03 Richard Stallman <rms@gnu.org>
25330
25331 * fileio.c (Fvisited_file_modtime): Use make_time.
25332
25333 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25334
25335 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25336 build.
25337
25338 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25339
25340 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25341
25342 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25343
25344 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25345
25346 2007-07-30 Richard Stallman <rms@gnu.org>
25347
25348 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25349
25350 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25351
25352 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25353
25354 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25355
25356 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25357 remote default-directory.
25358
25359 * buffer.c (mode-line-format): Update doc string.
25360
25361 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25362
25363 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25364 scroll bar gap.
25365 (x_scroll_bar_create): Set bar->fringe_extended_p.
25366 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25367 on frame edge. Check fringe background extension. Don't clear
25368 extended fringe background area.
25369
25370 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25371 (w32_fill_area): Enclose multiple statements with do ... while (0).
25372
25373 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25374 Extend fringe background to scroll bar gap.
25375 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25376 Set bar->fringe_extended_p.
25377 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25378 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25379 background extension. Don't clear extended fringe background area.
25380
25381 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25382 New member fringe_extended_p.
25383
25384 2007-07-25 Glenn Morris <rgm@gnu.org>
25385
25386 * Relicense all FSF files to GPLv3 or later.
25387
25388 * COPYING: Switch to GPLv3.
25389
25390 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25391
25392 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25393
25394 * data.c (Finteractive_form): Check for the presence of an
25395 `interactive-form' symbol property more thoroughly.
25396
25397 * data.c (Finteractive_form): Use an `interactive-form' property if
25398 present, analogous to the function-documentation property.
25399
25400 2007-07-24 Jason Rumney <jasonr@gnu.org>
25401
25402 * w32fns.c (x_real_positions): Get real position from OS instead of
25403 calculating it.
25404
25405 2007-07-23 Jason Rumney <jasonr@gnu.org>
25406
25407 * filelock.c (current_lock_owner): Allow for @ sign in username.
25408
25409 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25410
25411 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25412 remote default-directory.
25413
25414 * buffer.c (mode-line-format): Describe above case in doc string.
25415
25416 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25417
25418 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25419 Define if not defined.
25420
25421 2007-07-18 Jason Rumney <jasonr@gnu.org>
25422
25423 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25424
25425 2007-07-18 Richard Stallman <rms@gnu.org>
25426
25427 * data.c (Fsetq_default): Doc fix.
25428
25429 * eval.c (Fsetq): Doc fix.
25430
25431 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25432
25433 * coding.c (Ffind_operation_coding_system):
25434 * eval.c (For, Fand): Doc fixes.
25435 Reported by Johan Bockgård.
25436
25437 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25438
25439 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25440
25441 * xterm.h: Declare x_ewmh_activate_frame.
25442
25443 * xterm.c (x_ewmh_activate_frame): New function.
25444 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25445
25446 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25447
25448 * window.c (Fdisplay_buffer): If largest or LRU window is the
25449 only window, split it even if it is not eligible for splitting.
25450 This restores the original behavior broken by the 2007-07-15
25451 change.
25452
25453 2007-07-17 Glenn Morris <rgm@gnu.org>
25454
25455 * abbrev.c (abbrev_check_chars): New function.
25456 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25457 Call abbrev_check_chars to check abbrev characters are word
25458 constituents. Doc fix.
25459
25460 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25461
25462 * process.c (Fstart_process, Fmake_network_process)
25463 (read_process_output): Fix up last changes.
25464
25465 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25466
25467 * makefile.w32-in (clean): Don't delete *~.
25468
25469 2007-07-16 Andreas Schwab <schwab@suse.de>
25470
25471 * window.c (Fdisplay_buffer): Use NILP.
25472 (Fset_window_scroll_bars): Likewise.
25473
25474 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25475
25476 * window.c (window_min_size_2): New function.
25477 (window_min_size_1, size_window, Fdisplay_buffer)
25478 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25479 windows without mode- or header-lines when window-min-height is
25480 too small.
25481 (size_window): Reset nodelete_p after testing it, following an
25482 earlier note by Kim F. Storm.
25483 (display_buffer): Do not set split_height_threshold to twice the
25484 value of window_min_height to avoid changing the value of a
25485 customizable variable. Rather explicitly check whether the
25486 height of the window that shall be splitted is at least as large
25487 as split_height_threshold.
25488 (Fwindow_full_width_p): New defun.
25489 (syms_of_window): Defsubr it.
25490
25491 * window.h: Add EXFUN for Fwindow_full_width_p.
25492
25493 2007-07-14 Jason Rumney <jasonr@gnu.org>
25494
25495 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25496
25497 2007-07-14 Richard Stallman <rms@gnu.org>
25498
25499 * eval.c (maybe_call_debugger): New function.
25500 (find_handler_clause): Use maybe_call_debugger.
25501 Call it when the handler says `debug'.
25502 Eliminate DEBUGGER_VALUE_PTR.
25503 (Fsignal): Eliminate debugger_value.
25504 (Qdebug): New variable.
25505 (syms_of_eval): Initialize it.
25506
25507 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25508
25509 * eval.c (Fprogn):
25510 * keyboard.c (Ftrack_mouse):
25511 * print.c (Fwith_output_to_temp_buffer):
25512 * window.c (Fsave_window_excursion): Doc fix.
25513
25514 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25515
25516 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25517
25518 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25519
25520 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25521 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25522 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25523 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25524 Remove unused encoding_carryover.
25525 * process.c: Adjust all functions accordingly.
25526
25527 2007-07-12 Richard Stallman <rms@gnu.org>
25528
25529 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25530
25531 2007-07-11 Jason Rumney <jasonr@gnu.org>
25532
25533 * makefile.w32-in (LIBS): Include OLE32.
25534
25535 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25536 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25537
25538 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25539
25540 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25541 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25542 from a Lisp_Object into a bare pointer.
25543 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25544 Adjust the code correspondingly.
25545
25546 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25547
25548 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25549 (term_show_mouse_face): Remove unused var `j'.
25550 (handle_one_term_event): Remove unused vars `i' and `j'.
25551 Don't cast return value of ttyname since it's not necessary.
25552
25553 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25554
25555 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25556 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25557
25558 * fns.c (map_char_table): Use an array of int for `indices' rather than
25559 an array of Lisp_Objects (which are only ever integers anyway).
25560 (Fmap_char_table): Update caller.
25561 * lisp.h: Update prototype.
25562 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25563 * fontset.c (Ffontset_info):
25564 * casetab.c (set_case_table): Update callers.
25565
25566 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25567
25568 * keymap.c (struct accessible_keymaps_data)
25569 (struct where_is_internal_data): New structures.
25570 (accessible_keymaps_1, where_is_internal_1): Use them to change
25571 interface to adhere to the one used by map_keymap.
25572 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25573 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25574
25575 * keymap.h (map_keymap_function_t): More informative prototype.
25576
25577 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25578
25579 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25580 (looking_at_1): Don't change search_regs and last_thing_searched
25581 if `inhibit-changing-match-data' is non-nil.
25582 (string_match_1, search_buffer, set_search_regs): Likewise.
25583 (syms_of_search): Add Lisp level definition for
25584 `inhibit-changing-match-data' and set it to nil.
25585 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25586 start and end of the match, instead of using values in search_regs.
25587
25588 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25589
25590 * minibuf.c (Fcompleting_read): New value `confirm-only'
25591 for `require-match'.
25592
25593 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25594
25595 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25596 part of the 2007-06-27 change to syms_of_fileio.
25597
25598 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25599
25600 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25601 Check WINDOWP before using XWINDOW. Consolidate return statements.
25602
25603 2007-06-27 Richard Stallman <rms@gnu.org>
25604
25605 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25606
25607 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
25608
25609 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25610
25611 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25612
25613 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25614 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25615 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25616 (_free_internal, memalign): Use them.
25617 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25618 Initialize to PTHREAD_MUTEX_INITIALIZER.
25619 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25620 (morecore_nolock): Rename from morecore. All uses changed.
25621 Use only nolock versions of internal allocation functions.
25622 (_malloc_internal_nolock, _realloc_internal_nolock)
25623 (_free_internal_nolock): New functions created from
25624 _malloc_internal, _realloc_internal, and _free_internal.
25625 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25626 Copy hook value to automatic variable before its use.
25627 (memalign): Copy hook value to automatic variable before its use.
25628
25629 2007-06-26 Kenichi Handa <handa@m17n.org>
25630
25631 * coding.c (Ffind_operation_coding_system): Docstring improved.
25632 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25633
25634 2007-06-25 David Kastrup <dak@gnu.org>
25635
25636 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25637 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25638 cater for additional parameter.
25639
25640 * keymap.h: Adjust number of parameters to `current-active-maps'.
25641
25642 * doc.c (Fsubstitute_command_keys): Adjust call of
25643 `current-active-maps'.
25644
25645 2007-06-25 David Kastrup <dak@gnu.org>
25646
25647 * callint.c (Fcall_interactively): Make the parsing of interactive
25648 specs somewhat more readable.
25649
25650 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25651
25652 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25653 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25654 if extended background has already been filled.
25655
25656 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25657
25658 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25659 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25660
25661 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25662 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25663 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25664 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25665 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25666 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25667 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25668 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25669 Run timers during dialog popup.
25670 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25671
25672 2007-06-21 Jason Rumney <jasonr@gnu.org>
25673
25674 * image.c (convert_mono_to_color_image): Swap fore and background.
25675
25676 2007-06-20 Jason Rumney <jasonr@gnu.org>
25677
25678 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25679 (w32_free_bdf_font): Unmap memory not handle.
25680
25681 2007-06-20 Sam Steingold <sds@gnu.org>
25682
25683 * gmalloc.c (__morecore): Fix the declaration to comply with the
25684 definition.
25685
25686 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
25687
25688 * w32term.c (w32_delete_display): Remove leftover declaration.
25689 (w32_define_cursor, w32_initialize): Make static.
25690
25691 * w32.c (_wsa_errlist): Fix typo in error message.
25692 (init_environment): Ignore any environment variable from the
25693 registry having a null value.
25694
25695 2007-06-20 Glenn Morris <rgm@gnu.org>
25696
25697 * Makefile.in (LIBGIF): Default to -lgif.
25698
25699 2007-06-17 Jason Rumney <jasonr@gnu.org>
25700
25701 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25702 unicode strings.
25703
25704 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
25705
25706 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25707 Fix typo in docstring.
25708
25709 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25710
25711 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25712 and their keybindings.
25713
25714 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25715
25716 * composite.c (update_compositions): Fix last fix.
25717
25718 2007-06-14 Jason Rumney <jasonr@gnu.org>
25719
25720 * w32.c (get_process_times_fn): New function pointer.
25721 (globals_of_w32): Intialize it if present in kernel32.dll.
25722 (w32_get_internal_run_time): New function.
25723
25724 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25725
25726 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25727
25728 * composite.c (update_compositions): Check the validness of
25729 compositions.
25730
25731 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25732
25733 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25734 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25735
25736 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25737 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25738
25739 * macgui.h (USE_MAC_TOOLBAR): New define.
25740
25741 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25742 Return immediately unless popup is activated.
25743
25744 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25745 background to scroll bar gap.
25746 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25747 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25748 scroll bars on frame edge. Check fringe background extension.
25749 Don't clear extended fringe background area.
25750 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25751 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25752 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25753 [USE_MAC_TOOLBAR]: New macros.
25754 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25755 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25756 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25757 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25758 [USE_MAC_TOOLBAR]: New functions.
25759 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25760 manually if previous repositioning has failed.
25761 (mac_handle_keyboard_event): Use precomputed event kind.
25762 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25763 as tool bar item click. Handle mouse movement over tool bar items.
25764
25765 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25766 toolbar_win_gravity.
25767 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25768 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25769 Add externs.
25770
25771 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25772 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25773
25774 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25775
25776 * image.c (search_image_cache): Remove unused variable.
25777
25778 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25779
25780 * xfns.c, xmenu.c: Link to xaw3d if available.
25781
25782 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25783
25784 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25785 frame_foreground and frame_background.
25786
25787 * image.c (lookup_image): Save frame foreground and background colors.
25788 (search_image_cache): Check if saved and current frame colors match.
25789
25790 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25791
25792 * regex.c (regex_compile): Remove the `regnum' counter.
25793 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25794
25795 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25796
25797 * term.c: Include intervals.h to declare Fget_text_property.
25798
25799 2007-06-10 Jason Rumney <jasonr@gnu.org>
25800
25801 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25802
25803 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25804
25805 * callint.c (Fcall_interactively):
25806 * editfns.c (Fdelete_and_extract_region):
25807 * fileio.c (Fread_file_name):
25808 * fns.c (Fmapconcat):
25809 * keyboard.c (cmd_error_internal):
25810 * keymap.c (Fkey_description):
25811 * lread.c (openp):
25812 * minibuf.c (read_minibuf):
25813 * search.c (wordify):
25814 * sunfns.c (sel_read):
25815 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25816 * xfns.c (x_default_scroll_bar_color_parameter):
25817 * xmenu.c (menu_help_callback):
25818 * xselect.c (Fx_get_atom_name):
25819 * xterm.c (x_term_init): Use empty_unibyte_string.
25820
25821 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25822
25823 * alloc.c (init_strings): Initialize canonical empty strings.
25824 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25825 canonical empty string when the requested size is 0.
25826
25827 * emacs.c (empty_unibyte_string): Rename from empty_string.
25828 (empty_multibyte_string): New canonical empty string.
25829 (syms_of_emacs): Don't initialize empty_string.
25830
25831 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25832 string, if appropriate.
25833 (empty_unibyte_string, empty_multibyte_string): New externs.
25834 (empty_string): Remove extern.
25835
25836 * lread.c (syms_of_lread): Use empty_unibyte_string.
25837
25838 2007-06-07 Jason Rumney <jasonr@gnu.org>
25839
25840 * s/ms-w32.h: Don't define HAVE_TZNAME.
25841
25842 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25843
25844 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25845
25846 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25847
25848 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25849 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25850
25851 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25852 Don't call next handler.
25853 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25854 Remove argument. Install handler to application.
25855 (set_frame_menubar): Don't change deep_p.
25856 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25857 FRAME_OUTER_TO_INNER_DIFF_Y.
25858 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25859 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25860 [HAVE_DIALOGS]: New macros.
25861 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25862 Use them.
25863 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25864
25865 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25866 init_service_handler. All callers changed. Return OSStatus value.
25867
25868 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25869 All callers changed so as not to call SetPortWindowPort.
25870 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25871 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25872 mac_draw_string_common.
25873 (mac_draw_image_string_qd): Likewise.
25874 (mac_draw_string_common): Use them. Add INLINE.
25875 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25876 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25877 GetGlobalMouse.
25878 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25879 and FRAME_OUTER_TO_INNER_DIFF_Y.
25880 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25881 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25882 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25883 repositioning window to mac_handle_window_event.
25884 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25885 saving window location to mac_handle_window_event
25886 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25887 (install_menu_target_item_handler): Remove argument in extern.
25888 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25889 Also accept command events.
25890 (do_keystroke): New function created from XTread_socket.
25891 (init_command_handler): Remove functions.
25892 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25893 and save window location by kEventWindowShowing and kEventWindowHiding
25894 handlers here. Don't call next handler for window state change and
25895 focus events.
25896 (mac_handle_application_event, mac_handle_keyboard_event)
25897 [TARGET_API_MAC_CARBON]: New functions.
25898 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25899 kEventWindowShowing and kEventWindowHiding events. Move installation
25900 of mouse, font, text input and menu target item handlers to
25901 install_application_handler.
25902 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25903 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25904 New function.
25905 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25906 Register it.
25907 (XTread_socket) [TARGET_API_MAC_CARBON]:
25908 Consolidate SendEventToEventTarget calls.
25909 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25910 Move application activation handler to mac_handle_application_event.
25911 Move keyboard handler to mac_handle_keyboard_event.
25912 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25913 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25914 init_command_handler. Call install_application_handler.
25915
25916 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25917 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25918
25919 2007-06-07 Glenn Morris <rgm@gnu.org>
25920
25921 * emacs.c (main): Use `emacs-copyright' in --version output.
25922
25923 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
25924
25925 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25926
25927 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25928
25929 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25930
25931 * macgui.h: Replace WindowPtr with WindowRef.
25932
25933 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25934 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25935 Replace ControlHandle with ControlRef.
25936 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25937
25938 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25939 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25940 Replace ControlHandle with ControlRef.
25941 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25942 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25943
25944 * macterm.h (struct scroll_bar): Rename member control_handle_low
25945 and control_handle_high to control_ref_low and control_ref_high.
25946 All uses changed.
25947 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25948 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25949 respectively. All uses changed.
25950 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25951 (install_window_handler, remove_window_handler): Replace WindowPtr
25952 with WindowRef in externs.
25953
25954 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
25955
25956 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25957
25958 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
25959
25960 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25961
25962 * frame.c (Fmouse_position, Fmouse_pixel_position):
25963 Condition on HAVE_GPM too.
25964
25965 * term.c (term_mouse_highlight): Remove unused variables.
25966 (Fterm_open_connection): Set gpm_zerobased to 1.
25967 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25968 Use zero based co-ordinates.
25969 (handle_one_term_event): Report a drag as mouse movement too.
25970
25971 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25972
25973 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
25974
25975 * image.c (search_image_cache): New function. Require background
25976 color match if background color is unspecified in the image spec.
25977 (uncache_image, lookup_image): Use it.
25978
25979 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
25980
25981 * window.c (Fshrink_window): Reflow docstring.
25982
25983 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
25984
25985 * Version 22.1 released.
25986
25987 2007-06-01 Richard Stallman <rms@gnu.org>
25988
25989 * xfns.c (x_encode_text): Add GCPRO.
25990
25991 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25992
25993 * xfns.c (x_set_name_internal): Save encoded name before
25994 x_encode_text in case string data is relocated.
25995
25996 2007-05-31 Richard Stallman <rms@gnu.org>
25997
25998 * buffer.c (syms_of_buffer): Doc fix.
25999
26000 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
26001
26002 * sysdep.c (init_sys_modes): Add rather than replace with
26003 O_NONBLOCK.
26004
26005 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26006 term_mouse_moveto.
26007
26008 * termhooks.h (term_mouse_moveto): New extern.
26009
26010 * term.c (mouse_face_window): Rename...
26011 (Qmouse_face_window): ...to this.
26012 (term_show_mouse_face, term_clear_mouse_face)
26013 (term_mouse_highlight): Use Qmouse_face_window.
26014 (term_mouse_moveto): New function.
26015 (term_mouse_position): Make it work.
26016 (syms_of_term): Uncomment assignment to mouse_position_hook.
26017 Staticpro Qmouse_face_window.
26018
26019 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26020
26021 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26022 around current_column call.
26023
26024 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26025
26026 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26027 * xdisp.c (next_element_from_buffer):
26028 * window.c (delete_window):
26029 * term.c (term_mouse_highlight):
26030 * msdos.c (getdefdir):
26031 * macterm.c (mac_create_bitmap_from_bitmap_data)
26032 (init_font_name_table):
26033 * fns.c (Fsxhash):
26034 * data.c (Fmake_local_variable):
26035 * ccl.c (ccl_driver): Likewise.
26036
26037 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26038
26039 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26040 Call mac_wakeup_from_rne on window size change.
26041
26042 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
26043
26044 * image.c (uncache_image): Fix typo.
26045
26046 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26047
26048 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26049
26050 2007-05-22 Richard Stallman <rms@gnu.org>
26051
26052 * xterm.c (x_connection_closed): Remove NO_RETURN.
26053
26054 2007-05-22 Martin Rudalics <rudalics@gmx.at>
26055
26056 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26057
26058 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
26059
26060 * image.c (uncache_image): New function.
26061 (Fimage_refresh): New function.
26062
26063 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26064
26065 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26066
26067 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26068
26069 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26070 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26071
26072 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26073
26074 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26075 conditional on [HAVE_GPM_H].
26076
26077 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26078
26079 * syntax.c (skip_chars): Update syntax-table only after we checked that
26080 the new location is valid.
26081
26082 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26083
26084 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26085 mac_get_window_bounds.
26086
26087 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
26088
26089 * Makefile.in (LIBGPM): Allow it to be set from configure.
26090 If set then link Emacs with it.
26091
26092 * config.in: Regenerate.
26093
26094 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26095 New externs.
26096
26097 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26098 Include gpm.h.
26099 (handle_one_term_event, term_gpm): New externs.
26100
26101 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26102 and allow it to be interrupted by SIGIO.
26103
26104 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26105 (wait_reading_process_output): Wait on gpm_fd too.
26106 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26107 (add_gpm_wait_descriptor_called_flag): New variable.
26108 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26109
26110 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26111 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26112 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26113 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26114 (make_lispy_event): Add case GPM_CLICK_EVENT.
26115 (read_avail_input): Handle mouse input.
26116
26117 * term.c (write_glyphs_with_face): New function.
26118 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26119 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26120 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26121 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26122 (last_mouse_x, last_mouse_y): New variables.
26123 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26124 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26125 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26126 (Fterm_close_connection): New functions.
26127 (term_init): Initialise mouse_face_window.
26128
26129 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26130
26131 * xdisp.c (redisplay_window): If first window line is a
26132 continuation line, recompute the new window start instead of
26133 recentering.
26134
26135 2007-05-18 Glenn Morris <rgm@gnu.org>
26136
26137 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26138 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26139
26140 2007-05-17 Glenn Morris <rgm@gnu.org>
26141
26142 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26143
26144 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26145
26146 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26147 dead key repeat and up events.
26148
26149 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26150
26151 * image.c (pbm_load): Check image size for monochrome pbm.
26152
26153 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26154
26155 * xterm.c (XTread_socket): Revert last change.
26156
26157 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26158
26159 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26160
26161 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26162
26163 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26164
26165 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26166 mixup (YAILOM).
26167
26168 2007-05-07 Andreas Schwab <schwab@suse.de>
26169
26170 * keymap.c (Flookup_key): Fix typo in last change.
26171
26172 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26173
26174 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26175 mapping for unibyte strings.
26176
26177 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26178
26179 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26180 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26181
26182 2007-04-29 Richard Stallman <rms@gnu.org>
26183
26184 * insdel.c (replace_range): For undo, record insertion first.
26185
26186 2007-04-29 Andreas Schwab <schwab@suse.de>
26187
26188 * lisp.h (VECSIZE): Use OFFSETOF.
26189
26190 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26191
26192 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26193 disabled lines.
26194
26195 2007-04-28 Richard Stallman <rms@gnu.org>
26196
26197 * lread.c (read_escape): In a string, \s is always space.
26198
26199 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26200
26201 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26202
26203 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26204 submenu for menu bar items.
26205
26206 See ChangeLog.10 for earlier changes.
26207
26208 ;; Local Variables:
26209 ;; coding: utf-8
26210 ;; add-log-time-zone-rule: t
26211 ;; End:
26212
26213 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26214
26215 This file is part of GNU Emacs.
26216
26217 GNU Emacs is free software: you can redistribute it and/or modify
26218 it under the terms of the GNU General Public License as published by
26219 the Free Software Foundation, either version 3 of the License, or
26220 (at your option) any later version.
26221
26222 GNU Emacs is distributed in the hope that it will be useful,
26223 but WITHOUT ANY WARRANTY; without even the implied warranty of
26224 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26225 GNU General Public License for more details.
26226
26227 You should have received a copy of the GNU General Public License
26228 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26229
26230 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40