]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Fix redisplay bugs due to uninitialized glyphs in frame glyph pool.
[gnu-emacs] / src / ChangeLog
1 2010-08-06 Eli Zaretskii <eliz@gnu.org>
2
3 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
4
5 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6
7 * .gdbinit (pgx): Display the avoid_cursor_p flag.
8
9 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
10
11 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
12 subprocesses, only MSDOS does not define HAVE_SOCKETS.
13 (socket_options): Use const char* for name.
14
15 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
16
17 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
18
19 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
20 Don't declare xmalloc_widget_value and digest_single_submenu.
21
22 * w32font.c (Qlatin): Remove declaration.
23
24 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
25
26 * dired.c (compile_pattern): Restore declaration.
27
28 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
29
30 Remove extern declarations in .c files, .h files have them.
31 * data.c:
32 * dired.c:
33 * editfns.c:
34 * filelock.c:
35 * fns.c:
36 * font.c:
37 * fontset.c:
38 * frame.c:
39 * fringe.c:
40 * ftfont.c:
41 * gtkutil.c:
42 * indent.c:
43 * keyboard.c:
44 * keymap.c:
45 * lread.c:
46 * menu.c:
47 * print.c:
48 * search.c:
49 * sound.c:
50 * window.c:
51 * xdisp.c:
52 * xfaces.c:
53 * xfns.c:
54 * xfont.c:
55 * xftfont.c:
56 * xmenu.c:
57 * xterm.c: Remove declarations.
58
59 Cleanup syssignal.h.
60 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
61 (main_thread): Move down to remove #ifdef.
62 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
63 Remove conditional definition following unconditional ones.
64
65 * lisp.h: Remove HAVE_SHM code, unused.
66 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
67 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
68 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
69 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
70 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
71 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
72 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
73 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
74 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
75 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
76 (Qwindow_scroll_functions, Vafter_load_alist)
77 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
78 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
79 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
80 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
81 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
82 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
83 (initial_argv, last_nonmenu_event, load_in_progress)
84 (noninteractive_need_newline, scroll_margin): Add declarations.
85
86 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
87 declarations, menu.h has them.
88 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
89 (Vinput_method_function, Qinput_method_function)
90 (Qevent_symbol_element_mask, last_event_timestamp):
91 * dispextern.h (Voverflow_newline_into_fringe):
92 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
93 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
94 (syms_of_w32font, syms_of_nsfont):
95 * fontset.h (find_font_encoding, Qlatin):
96 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
97 (Vtool_bar_mode, set_frame_menubar):
98 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
99 * xterm.h (Qx_gtk_map_stock):
100 * keymap.h (meta_prefix_char): Add declarations.
101
102 * term.c: Remove dead code.
103
104 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
105 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
106 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
107 which is what was there before BSD_PGRPS was removed.
108
109 2010-08-05 Eli Zaretskii <eliz@gnu.org>
110
111 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
112
113 * unexcoff.c: Renamed from unexec.c.
114
115 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
116
117 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
118
119 2010-08-03 Johan Bockgård <bojohan@gnu.org>
120
121 * data.c (Flocal_variable_p): Handle variable aliases correctly.
122 (Bug#6744)
123
124 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
125
126 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
127 to TRUE if depth of screen is < 16.
128
129 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
130 USE_GTK_TOOLTIP.
131 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
132 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
133 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
134 USE_GTK_TOOLTIP.
135 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
136
137 * xterm.h (USE_GTK_TOOLTIP): New define.
138 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
139
140 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
141 to Control-D (Bug#6771).
142
143 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
144
145 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
146 Wording by Drew Adams <drew.adams@oracle.com>.
147
148 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
149
150 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
151 ttip_lbl.
152
153 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
154 calling gtk_widget_queue_draw.
155 (x_free_frame_resources): Call xg_free_frame_widgets.
156
157 * xfns.c (x_gtk_use_system_tooltips): New variable.
158 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
159 new gtkutil tooltip functions to show the tooltip.
160 (Fx_hide_tip): Call xg_hide_tooltip.
161 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
162
163 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
164 (xg_show_tooltip, xg_hide_tooltip): Declare.
165
166 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
167 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
168 New functions.
169 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
170 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
171 Remove code that is commented out.
172
173 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
174
175 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
176
177 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
178
179 * xselect.c (x_own_selection): Use list4.
180
181 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
182
183 * buffer.c (Qwindow): Do not define, already defined in data.c.
184 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
185
186 2010-07-29 Chad Brown <yandros@mit.edu>
187
188 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
189 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
190 * config.in: Undef HAVE_DIRENT_H.
191 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
192 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
193
194 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
195
196 Rename s/usg5-4.h -> s/usg5-4-common.h.
197 * s/usg5-4.h: Rename file to ...
198 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
199 * s/unixware.h:
200 * s/sol2-6.h:
201 * s/irix6-5.h: Update includes accordingly.
202
203 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
204
205 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
206
207 * xterm.h (struct x_output): Add toolbar_top_height,
208 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
209 Remove toolbar_height.
210 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
211 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
212 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
213 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
214
215 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
216
217 * xfns.c (x_set_tool_bar_position): New function.
218 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
219 (x_frame_parm_handlers): Add x_set_tool_bar_position.
220 (syms_of_xfns): If USE_GTK, provide move-toolbar.
221
222 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
223 and FRAME_TOOLBAR_LEFT_WIDTH.
224
225 * gtkutil.h (xg_change_toolbar_position): Declare.
226
227 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
228 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
229 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
230 (xg_create_frame_widgets): Create a hobox for placing widgets
231 vertically. Use gtk_box_pack_start.
232 (xg_height_or_width_changed): Renamed from xg_height_changed.
233 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
234 (xg_update_frame_menubar, free_frame_menubar): Change to
235 xg_height_or_width_changed.
236 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
237 size correctly. Remove hardcoded 4, instead use handlebox size -
238 toolbar size.
239 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
240 size correctly. Use handlebox size + toolbar size as additional size.
241 (xg_pack_tool_bar): POS is a new parameter.
242 Set orientation of tool bar based on pos.
243 Only make handlebox_widget if NULL.
244 Check if tool bar goes to vbox or hbox depending on pos.
245 (xg_update_tool_bar_sizes): New function.
246 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
247 height, call xg_update_tool_bar_sizes instead.
248 (free_frame_tool_bar): Remove from hbox or vbox depending on
249 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
250 (xg_change_toolbar_position): New function.
251
252 * frame.h (struct frame): Add tool_bar_position.
253 (Qbottom): Declare.
254
255 * frame.c (Qtool_bar_position): New variable.
256 (make_frame): Set tool_bar_position to Qtop.
257 (frame_parms): Add tool-bar-position.
258 (x_report_frame_params): Store tool_bar_position.
259 (x_set_fringe_width): Reset wm size hint after fringe changes.
260
261 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
262
263 Make lisp_time_argument declaration work on all systems.
264 * lisp.h (lisp_time_argument): Move declaration ...
265 * systime.h (lisp_time_argument): ... here
266 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
267
268 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
269
270 * vm-limit.c (POINTER): Add typedef for it.
271 (start_of_data): Change return type from POINTER to char *.
272
273 * frame.h (Qtty_color_mode): Move declaration out of ifdef
274 HAVE_WINDOW_SYSTEM.
275
276 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
277
278 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
279 Remove reference to __osf__, unused.
280
281 * mem-limits.h: Remove duplicated includes.
282 (NULL): Remove definition, unused.
283 (POINTER): Remove definition.
284 (start_of_data): Use char* in prototype, as the function
285 definition does.
286
287 Remove extern declarations from .c files, and them to .h files.
288 * keyboard.h (Qhelp_echo, waiting_for_input)
289 (input_available_clear_time, ignore_mouse_drag_p)
290 (Vdouble_click_time, real_this_command, Vthis_original_command):
291 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
292 (Voverriding_local_map_menu_flag):
293 * lisp.h (Qinteractive_form, use_file_dialog)
294 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
295 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
296 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
297 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
298 (Qfunction, debug_on_next_call, Qfield)
299 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
300 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
301 (Qfile_directory_p, Qinsert_file_contents)
302 (Qcompletion_ignore_case, Qcompletion_ignore_case)
303 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
304 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
305 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
306 (Qminibuffer_prompt)
307 (Vtemporary_file_directory,char_ins_del_vector, Qface):
308 * xterm.h (gray_bitmap_width, gray_bitmap_height)
309 (gray_bitmap_bits, xic_create_fontsetname):
310 * coding.h (Vtranslation_table_for_input): Add extern declarations.
311
312 * xsmfns.c (Vuser_login_name):
313 * xrdb.c (Vdouble_click_time):
314 * xfaces.c (xic_create_fontsetname):
315 * w32select.c (waiting_for_input):
316 * print.c (minibuffer_auto_raise):
317 * msdos.c (Qhelp_echo):
318 * macros.c (real_this_command):
319 * keymap.c (Voverriding_local_map):
320 * xterm.c (poll_for_input_1, gray_bitmap_width)
321 (gray_bitmap_height, gray_bitmap_bits;
322 * xmenu.c ( Voverriding_local_map)
323 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
324 (use_file_dialog, Xt_app_con):
325 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
326 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
327 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
328 (Qtool_bar_lines, ignore_mouse_drag_p):
329 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
330 (Qrear_nonsticky, nconc2):
331 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
332 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
333 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
334 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
335 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
336 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
337 (gc_in_progress):
338 * doc.c (Voverriding_local_map, Qremap):
339 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
340 (Vcompletion_regexp_list):
341 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
342 (Qcompletion_ignore_case):
343 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
344 (Vhistory_length, Vthis_original_command, real_this_command)
345 (Qface, Qminibuffer_prompt, history_delete_duplicates):
346 * image.c (Qrisky_local_variable):
347 * fontset.c (QCname):
348 * fns.c (minibuffer_auto_raise, QCname):
349 * dispnew.c (char_ins_del_cost):
350 * composite.c (font_fill_lglyph_metrics):
351 * cmds.c (Qface, Vtranslation_table_for_input):
352 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
353 * ccl.c (charset_unicode):
354 * callproc.c (Vtemporary_file_directory):
355 * buffer.c (emacs_strerror): Remove extern declarations.
356
357 * data.c (Qwindow): Make non-static, used from other files too.
358 * frame.c (validate_x_resource_name): Remove shadow definition for i.
359
360 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
361 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
362 * s/usg5-4.h (COFF):
363 * s/template.h:
364 * s/msdos.h (COFF, NO_REMAP):
365 * s/ms-w32.h (NO_REMAP):
366 * s/hpux10-20.h (NO_REMAP):
367 * m/sparc.h (SEGMENT_MASK):
368 * m/m68k.h (NO_REMAP):
369 * m/intel386.h (SEGMENT_MASK):
370 * m/arm.h (NO_REMAP):
371 * m/alpha.h (COFF):
372 * m/template.h: Remove references to unused defines.
373
374 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
375
376 * xsettings.c (Ftool_bar_get_system_style): Also check for
377 Qtext_image_horiz.
378
379 * xdisp.c (Qtext_image_horiz): Define.
380 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
381 to documentation of tool-bar-style.
382
383 * lisp.h (Qtext_image_horiz): Declare.
384
385 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
386 style text_image_horiz.
387
388 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
389
390 * emacs.c (Fkill_emacs): Remove return statement.
391
392 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
393 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
394 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
395 local extern declarations.
396
397 * xmenu.c: Do not included lwlib.h, not needed.
398
399 * m/iris4d.h (XUINT, XSET): Remove, not needed.
400
401 * process.c: Move definitions earlier to minimize #ifdefs.
402
403 * xterm.h (x_get_customization_string, x_load_resources)
404 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
405 (x_check_errors, x_property_data_to_lisp, defined_color)
406 (xic_set_xfontset, x_defined_color): Use const.
407
408 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
409 (x_text_icon, x_check_errors, x_connection_closed): Use const.
410
411 * xselect.c (selection_data_to_lisp_data)
412 (x_property_data_to_lisp):
413 * xrdb.c (x_get_string_resource, file_p)
414 (x_get_customization_string, magic_file_p, search_magic_path)
415 (get_system_app, get_user_app, x_load_resources, x_get_resource)
416 (x_get_string_resource): Use const.
417
418 * xfns.c: Include xlwmenu.h when USE_LUCID.
419 (x_defined_color, xic_set_xfontset): Use const.
420 (Fx_hide_tip): Remove local extern declaration.
421
422 * xfaces.c (Qmouse_face): Remove declaration.
423 (face_color_gray_p, tty_defined_color, defined_color)
424 (face_color_gray_p, face_color_supported_p). Add const.
425
426 * xdisp.c (do_mouse_tracking): Remove declaration.
427 (add_to_log): Use const.
428
429 * minibuf.c (Qmouse_face): Remove declaration.
430
431 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
432
433 * keyboard.h (do_mouse_tracking): Add declaration.
434
435 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
436 (QCdata, QCtype, Qcenter): Remove declarations.
437
438 * frame.c (x_get_resource_string, x_get_string_resource)
439 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
440 (x_default_parameter): Use const.
441
442 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
443 (QCheight, QCsize, QCname): Remove declarations.
444
445 * emacs.c (main): Remove local extern declaration.
446
447 * editfns.c (region_limit, syms_of_editfns): Remove local extern
448 declarations.
449
450 * dispnew.c: Remove duplicate #include <unistd.h>.
451 (update_window, update_frame_1, init_display): Remove local extern
452 declarations.
453
454 * dispextern.h (add_to_log): Remove declaration.
455 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
456 (x_frame_get_and_record_arg, x_default_parameter): Add const.
457
458 * dired.c (scmp): Add const.
459 (directory_files_internal): Remove local extern declaration.
460
461 * data.c (Finteractive_form): Use const.
462
463 * composite.c (syms_of_composite): Remove local extern declarations.
464
465 * charset.c (add_to_log): Remove declaration.
466
467 * character.c (strwidth, parse_str_to_multibyte): Add const.
468
469 * character.h (strwidth, parse_str_to_multibyte): Likewise.
470
471 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
472
473 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
474 (Lisp_Subr): Make doc and intspec constant.
475 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
476 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
477 (QCheight, QCsize, QCname, QCwidth, QCforeground)
478 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
479 (display_arg): Add declarations.
480
481 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
482
483 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
484
485 * window.c (Fwindow_height): Doc fix (bug#6518).
486
487 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
488
489 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
490
491 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
492
493 * keyboard.c (Ftop_level, Fexit_recursive_edit)
494 (Fabort_recursive_edit): Remove return statements in NO_RETURN
495 functions.
496
497 * frame.h (Qtty_color_mode): Add declaration.
498
499 * lisp.h (Ftop_level, Fexit_recursive_edit)
500 (Fabort_recursive_edit): Mark as NO_RETURN.
501
502 2010-07-26 Kenichi Handa <handa@m17n.org>
503
504 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
505 number of glyphs gets smaller than the original length. (Bug#6621)
506
507 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
508
509 * lread.c (unreadpure, mapatoms_1): Make static.
510
511 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
512
513 * terminfo.c (tparam): Fix prototype of tparm.
514
515 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
516
517 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
518 find start of text segment.
519 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
520 is defined.
521
522 * callproc.c (set_initial_environment): Avoid unbalanced braces.
523
524 2010-07-25 Ken Brown <kbrown@cornell.edu>
525
526 * vm-limit.c (check_memory_limits): Fix previous change;
527 accidentally reverted an earlier change.
528
529 2010-07-25 Ken Brown <kbrown@cornell.edu>
530
531 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
532 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
533
534 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
535
536 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
537 * dired.c (opendir, readdir): Fix prototypes.
538 * editfns.c (w32_get_internal_run_time): Fix prototypes.
539 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
540 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
541 (telldir): Remove declaration.
542 * ralloc.c (real_morecore, __morecore): Fix prototypes.
543 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
544 * syssignal.h (strsignal): Fix prototype.
545 * term.c (tparam): Fix prototype.
546 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
547 (term_get_fkeys): Set inside "#ifndef DOS_NT".
548 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
549 and __morecore.
550 * w32gui.h (XParseGeometry): Fix prototype.
551 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
552 * w32term.c (my_set_focus): Declare inside #if 0.
553 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
554 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
555 (drain_message_queue, get_next_msg, post_msg, parse_button)
556 (ClipboardSequence_Proc): Fix prototypes.
557 (wait_for_sync): Remove declaration.
558
559 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
560
561 * w32fns.c (w32_to_x_color): Remove, unused.
562
563 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
564
565 * lisp.h: Remove leftover P_.
566
567 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
568
569 * ecrt0.c, unexalpha.c: Remove files, unused.
570
571 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
572
573 * cmds.c (internal_self_insert): Make static.
574 * lisp.h (internal_self_insert): Remove declaration.
575
576 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
577
578 * alloc.c (free_float):
579 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
580 * frame.c (delete_frame_handler):
581 * ralloc.c (reorder_bloc):
582 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
583 Remove unused static functions.
584
585 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
586 it is called only from NS code.
587
588 * w32term.c (my_set_focus): #ifdef away; it is called only from
589 "#ifdef 0" code.
590
591 * w32fns.c (x_edge_detection):
592 * xfaces.c (may_use_scalable_font_p):
593 Remove obsolete static declarations.
594
595 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
596
597 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
598 (emacs_blocked_realloc, uninterrupt_malloc):
599 * fringe.c (w32_reset_fringes):
600 * image.c (convert_mono_to_color_image, lookup_rgb_color)
601 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
602 * sound.c (be2hs, do_play_sound):
603 * vm-limit.c (get_lim_data, ret_lim_data):
604 * w32term.c (x_free_frame_resources):
605 * xfaces.c (x_create_gc, x_free_gc):
606 Convert definitions to standard C.
607
608 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
609
610 * eval.c (Feval, Ffuncall): Use the new names.
611
612 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
613 (DEFUN): Add braces around the union initialisation and use ## to
614 specify the right union alternative and avoid a cast.
615
616 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
617
618 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
619
620 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
621
622 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
623
624 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
625
626 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
627 is related to the menu bar (Bug#6499).
628 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
629
630 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
631
632 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
633
634 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
635
636 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
637 i.e. don't put back ButtonRelease (Bug#6608).
638
639 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
640 instead of Window. Call xg_event_is_for_menubar when
641 USE_GTK (Bug#6499).
642
643 * gtkutil.h (xg_event_is_for_menubar): Declare.
644
645 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
646
647 2010-07-16 Eli Zaretskii <eliz@gnu.org>
648
649 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
650 when it's the same as the old foreground. (Bug#6609)
651
652 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
653
654 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
655 widget is non-null (Bug#6645).
656
657 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
658
659 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
660 Convert old-style definition.
661
662 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
663 timestamp argument.
664
665 2010-07-15 Eli Zaretskii <eliz@gnu.org>
666
667 * fringe.c (update_window_fringes): Restore mistakenly reverted
668 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
669
670 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
671
672 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
673 (SET_SAVED_KEY_EVENT): Remove (not used).
674 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
675 remove size parameter.
676 (handle_one_xevent): Check popup_activated () for menu for Xt also.
677 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
678 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
679 ButtonRelease.
680 (x_set_window_size_1): scroll_bar_actual_width is always
681 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
682
683 * xdisp.c (pending_menu_activation): Remove extern declaration.
684 (prepare_menu_bars): Remove setting of pending_menu_activation.
685
686 * xmenu.c (pending_menu_activation): Remove.
687 (x_activate_menubar): Set popup_activated_flag for Xt also.
688 Remove setting of pending_menu_activation.
689 (set_frame_menubar): Remove check of pending_menu_activation.
690 Declare menubar_size before code. Correct spelling in comment.
691
692 2010-07-14 Kenichi Handa <handa@m17n.org>
693
694 * font.c (font_open_entity): Cancel previous change.
695 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
696
697 2010-07-13 Eli Zaretskii <eliz@gnu.org>
698
699 Remove subprocesses #ifdefs.
700 * process.c <inhibit_sentinels>: Move to the common part.
701 (Fwaiting_for_user_input_p): Move to the common part; return nil
702 if async subprocesses aren't supported.
703 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
704 MS-DOS. Remove "#ifdef subprocesses".
705 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
706 (gettimeofday): Remove "#ifdef subprocesses".
707 (wait_without_blocking): Remove function.
708 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
709 Remove "#ifdef subprocesses".
710 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
711 compiled on MS-DOS.
712 * callproc.c (Fcall_process) [!MSDOS]: Don't call
713 wait_for_termination on MS-DOS.
714 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
715 initialization of inhibit_sentinels.
716 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
717 subprocesses" conditional.
718 * callproc.c (Fcall_process) [!subprocesses]: Don't call
719 wait_for_termination, since `buffer' cannot be an integer when
720 async subprocesses are not supported
721 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
722 for ifdefing away the call to Fprocess_status.
723
724 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
725 away the entire body of the function.
726
727 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
728
729 Remove subprocesses #ifdefs from term.c.
730 * process.c (add_keyboard_wait_descriptor)
731 (delete_keyboard_wait_descriptor): Move to common section, do
732 nothing when subprocesses is not defined.
733 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
734 Remove subprocesses #ifdefs.
735
736 Convert maybe_fatal to standard C.
737 * lisp.h (verror): Declare.
738 * eval.c (verror): New function containing the code from ...
739 (error): ... this. Call verror.
740 * term.c (vfatal): New function containing the code from ...
741 (fatal): ... this. Call vfatal.
742 (maybe_fatal): Convert to standard C, use variable number of
743 arguments. Declare as non-return.
744 (init_tty): Fix maybe_fatal call.
745
746 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
747
748 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
749 (_scroll_bar_note_movement): Convert definitions to standard C.
750 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
751 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
752
753 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
754
755 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
756 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
757 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
758 (xaw_jump_callback, xaw_scroll_callback)
759 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
760 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
761 definitions to standard C.
762 * xmenu.c (menubar_id_to_frame, popup_get_selection)
763 (popup_activate_callback, popup_deactivate_callback)
764 (menu_highlight_callback, menubar_selection_callback)
765 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
766 (free_frame_menubar, popup_selection_callback, as)
767 (create_and_show_popup_menu, dialog_selection_callback)
768 (create_and_show_dialog):
769 * xfns.c (hack_wm_protocols, x_window):
770 * xfaces.c (x_update_menu_appearance):
771 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
772 (char_to_pixel_size, round_size_to_char, get_wm_shell)
773 (set_frame_size, update_wm_hints, setup_frame_gcs)
774 (update_various_frame_slots, update_from_various_frame_slots)
775 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
776 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
777 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
778
779 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
780
781 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
782
783 2010-07-12 Eli Zaretskii <eliz@gnu.org>
784
785 * process.c (setup_process_coding_systems): Move to the part
786 shared by non-subprocesses systems, and make its body empty when
787 subprocesses is not defined.
788 (close_process_descs): Move to the part shared by non-subprocesses
789 systems.
790 (wait_reading_process_output) [!subprocesses]: Convert arg list to
791 ANSI C.
792
793 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
794
795 * editfns.c (transpose_markers): Convert old-style definition.
796 * emacs.c (abort, shut_down_emacs, fixup_locale)
797 (synchronize_system_time_locale)
798 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
799 * floatfns.c (extract_float, matherr, init_floatfns)
800 (syms_of_floatfns): Likewise.
801 * fns.c (make_hash_table): Likewise.
802 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
803 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
804 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
805 (ftfont_variation_glyphs): Likewise.
806 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
807 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
808 * lread.c (read_filtered_event): Likewise.
809 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
810 * process.c (wait_reading_process_output): Likewise.
811 * scroll.c (do_line_insertion_deletion_costs): Likewise.
812 * search.c (search_buffer, boyer_moore): Likewise.
813 * syntax.c (scan_sexps_forward): Likewise.
814 * xdisp.c (try_scrolling): Likewise.
815 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
816 (face_at_string_position): Likewise.
817 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
818 * xselect.c (x_get_window_property, receive_incremental_selection)
819 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
820 Likewise.
821 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
822
823 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
824
825 * callproc.c (child_setup): Remove subprocesses conditional.
826 Remove code dealing with SET_EMACS_PRIORITY, unused.
827
828 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
829 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
830
831 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
832 (__do_global_dtors, __main): Use void in definition.
833 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
834 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
835 the only users from ...
836 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
837 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
838 (HAVE_VOLATILE): Remove, unused.
839
840 Convert more function definitions to standard C.
841 * xdisp.c (window_box_edges, handle_single_display_spec)
842 (display_string): Convert definition to standard C.
843 * scroll.c (do_direct_scrolling, scrolling_1):
844 * dispnew.c (allocate_matrices_for_frame_redisplay)
845 (mirrored_line_dance):
846 * coding.c (code_convert_string):
847 * charset.c (map_charset_chars):
848 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
849 (Fregister_ccl_program, Fregister_code_conversion_map):
850 * keyboard.c (kbd_buffer_nr_stored): Likewise.
851 (head_table): Make static and const.
852
853 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
854
855 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
856 (PROFILING_LDFLAGS): Set from substitution.
857 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
858 CFLAGS last.
859
860 2010-07-12 Kenichi Handa <handa@m17n.org>
861
862 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
863 (shortlisp): Likewise.
864
865 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
866
867 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
868 of FONT_ENTITY_INDEX.
869 (Ffont_get): If KEY is :otf and the font-object doesn't have the
870 property, get the property value dynamically.
871 (Ffont_put): Accept font-entity and font-object too.
872 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
873 return value changed.
874 (syms_of_font): Adjusted for the above change.
875
876 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
877
878 * blockinput.h: Remove obsolete comment.
879
880 * lisp.h: Include <stddef.h>.
881 (OFFSETOF): Don't define.
882 (VECSIZE): Use offsetof instead of OFFSETOF.
883 (PSEUDOVECSIZE): Likewise.
884 * process.c (conv_sockaddr_to_lisp): Likewise.
885 * alloc.c: Don't include <stddef.h>.
886 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
887
888 * process.c: Remove obsolete comment.
889
890 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
891
892 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
893
894 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
895
896 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
897 index, rindex.
898 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
899 * editfns.c (Fuser_full_name, Fformat): Likewise.
900 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
901 * fileio.c (Ffile_symlink_p): Likewise.
902 * filelock.c (current_lock_owner): Likewise.
903 * font.c (font_parse_name, font_parse_family_registry): Likewise.
904 * fontset.c (fontset_pattern_regexp): Likewise.
905 * lread.c (read1): Likewise.
906 * sysdep.c (init_system_name): Likewise.
907 * xfns.c (select_visual): Likewise.
908 * s/hpux10-20.h (index, rindex): Don't define.
909 * s/ms-w32.h (index): Likewise.
910 * s/usg5-4.h: Likewise.
911
912 * callproc.c (relocate_fd): Use F_DUPFD if defined.
913
914 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
915 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
916 (egetenv): Likewise.
917 * doprnt.c (doprnt): Likewise.
918 * editfns.c (set_time_zone_rule, format2): Likewise.
919 * emacs.c (decode_env_path): Likewise.
920 * eval.c (signal_error, error): Likewise.
921 * insdel.c (replace_range_2): Likewise.
922 * keyboard.c (cmd_error_internal): Likewise.
923 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
924 * print.c (write_string, write_string_1, print_error_message):
925 Likewise.
926 * vm-limit.c (warn_function, memory_warnings): Likewise.
927 * xdisp.c (message1, message1_nolog, message_with_string)
928 (vmessage, message, message_nolog): Likewise.
929 * emacs.c: Remove duplicate declaration.
930 * keyboard.h: Likewise.
931 * lisp.h: Update prototypes.
932
933 * eval.c: Fix indentation problem.
934
935 * keyboard.c: Include "process.h"
936
937 * eval.c: Remove obsolete noinline declaration.
938 * fns.c: Likewise.
939
940 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
941
942 * doprnt.c (doprnt): Take a va_list argument instead of count and
943 pointer.
944 * eval.c (error): Change to a standard-C variadic function.
945 * xdisp.c (vmessage): Renamed from message, made static, and
946 changed to take a va_list argument.
947 (message): New variadic wrapper.
948 (message_nolog): Now a variadic function, calling vmessage.
949 * lisp.h: Include stdarg.h for va_list.
950 (doprnt, error, message, message_nolog): Decls updated.
951
952 2010-07-11 Eli Zaretskii <eliz@gnu.org>
953
954 * process.c (syms_of_process) <delete-exited-processes>: Define
955 even if !subprocesses.
956 (delete_exited_processes): Ditto.
957
958 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
959 (delete_exited_processes): Don't define.
960
961 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
962
963 * frame.c (make_frame): Initialize menu_bar_lines and
964 tool_bar_lines members.
965 (make_initial_frame, make_terminal_frame): Initialize
966 menu_bar_lines using value of menu-bar-mode.
967
968 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
969
970 2010-07-10 Eli Zaretskii <eliz@gnu.org>
971
972 * process.c: Reshuffle #include's. Condition some of the global
973 and static variables on `subprocesses'.
974 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
975 Leave only one implementation.
976 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
977 (kill_buffer_processes, Flist_system_processes)
978 (Fprocess_attributes, init_process, syms_of_process): Unify the
979 implementations for with subprocesses and without them.
980
981 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
982
983 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
984 correct size for Motif.
985 (free_frame_menubar): Call x_set_window_size to update frame size.
986
987 * xfns.c (x_window): Set borderWidth to 0 for pane and
988 EmacsFrame. Frame size calculation is wrong otherwise.
989
990 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
991
992 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
993 allows to suppress errors when polling in Emacs' main loop.
994 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
995 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
996 (Fdbus_method_error_internal, Fdbus_send_signal)
997 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
998 (Fdbus_register_method): Use it. (Bug#6579)
999
1000 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1001
1002 * alloc.c: Convert DEFUNs to standard C.
1003 * buffer.c:
1004 * bytecode.c:
1005 * callint.c:
1006 * callproc.c:
1007 * casefiddle.c:
1008 * casetab.c:
1009 * category.c:
1010 * character.c:
1011 * charset.c:
1012 * chartab.c:
1013 * cmds.c:
1014 * coding.c:
1015 * composite.c:
1016 * data.c:
1017 * dbusbind.c:
1018 * dired.c:
1019 * dispnew.c:
1020 * doc.c:
1021 * dosfns.c:
1022 * editfns.c:
1023 * emacs.c:
1024 * eval.c:
1025 * fileio.c:
1026 * filelock.c:
1027 * floatfns.c:
1028 * fns.c:
1029 * font.c:
1030 * fontset.c:
1031 * frame.c:
1032 * fringe.c:
1033 * image.c:
1034 * indent.c:
1035 * insdel.c:
1036 * keyboard.c:
1037 * keymap.c:
1038 * lread.c:
1039 * macros.c:
1040 * marker.c:
1041 * menu.c:
1042 * minibuf.c:
1043 * msdos.c:
1044 * nsfns.m:
1045 * nsmenu.m:
1046 * nsselect.m:
1047 * print.c:
1048 * process.c:
1049 * search.c:
1050 * sound.c:
1051 * syntax.c:
1052 * term.c:
1053 * terminal.c:
1054 * textprop.c:
1055 * undo.c:
1056 * w16select.c:
1057 * w32console.c:
1058 * w32fns.c:
1059 * w32font.c:
1060 * w32menu.c:
1061 * w32proc.c:
1062 * w32select.c:
1063 * window.c:
1064 * xdisp.c:
1065 * xfaces.c:
1066 * xfns.c:
1067 * xmenu.c:
1068 * xselect.c:
1069 * xsettings.c:
1070 * xsmfns.c: Likewise.
1071
1072 2010-07-08 Eli Zaretskii <eliz@gnu.org>
1073
1074 * process.c (kbd_is_on_hold, hold_keyboard_input)
1075 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1076
1077 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1078
1079 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1080 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1081 unless USE_LUCID.
1082
1083 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1084
1085 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1086 declaration.
1087
1088 Clean up include guards.
1089 * tparam.c: Remove include guards for config.h, string.h and code
1090 that assumes #ifndef emacs.
1091 * termcap.c:
1092 * unexalpha.c:
1093 * sysdep.c:
1094 * filemode.c:
1095 * filelock.c:
1096 * bidi.c: Likewise.
1097
1098 Remove prefix-args.c
1099 * prefix-args.c: Remove file.
1100 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1101 * Makefile.in (temacs${EXEEXT}): Remove references to
1102 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1103 (mostlyclean): Remove reference to prefix-args.
1104 (prefix-args): Remove.
1105
1106 Simplify cstart_of_data, start_of_code and related code.
1107 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1108 (start_of_data): Merge into start_of_data function.
1109 * sysdep.c (start_of_text): Remove. Move simplified versions of
1110 it in the only users: unexaix.c and unexec.c.
1111 (read_input_waiting): Remove local declaration of quit_char.
1112 (start, etext): Remove declarations.
1113 (start_of_data): Merge with the version in mem-limits.h and move
1114 to vm-limits.c.
1115 * vm-limit.c (start_of_data): Merged and simplified version of the
1116 code formerly in mem-limits.h and sysdep.c.
1117 * unexec.c (start): New declaration, moved from sysdep.c.
1118 (start_of_text): Simplified version of the code formerly in sysdep.c.
1119 * unexaix.c (start_of_text): Simplified version of the code
1120 formerly in sysdep.c.
1121 * m/alpha.h (HAVE_TEXT_START): Remove.
1122 (TEXT_START): Move ...
1123 * unexalpha.c (TEXT_START): ... here.
1124 * s/hpux10-20.h (TEXT_START): Remove.
1125 * s/darwin.h (TEXT_START):
1126 * m/mips.h (TEXT_START):
1127 * m/macppc.h (HAVE_TEXT_START):
1128 * m/m68k.h (TEXT_START):
1129 * m/iris4d.h (TEXT_START):
1130 * m/intel386.h (TEXT_START):
1131 * m/ibmrs6000.h (TEXT_START):
1132 * m/ia64.h (HAVE_TEXT_START):
1133 * s/msdos.h (TEXT_START): Likewise.
1134
1135 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1136
1137 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1138 (overrun_check_free, xstrdup, allocate_string)
1139 (allocate_string_data, compact_small_strings, Fmake_string)
1140 (make_unibyte_string, make_multibyte_string)
1141 (make_string_from_bytes, make_specified_string, make_float)
1142 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1143 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1144 memcpy, memmove, memset, memcmp.
1145 * atimer.c (start_atimer, set_alarm): Likewise.
1146 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1147 (mmap_realloc, init_buffer_once): Likewise.
1148 * callint.c (Fcall_interactively): Likewise.
1149 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1150 (getenv_internal_1): Likewise.
1151 * casefiddle.c (casify_object): Likewise.
1152 * ccl.c (ccl_driver): Likewise.
1153 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1154 * charset.c (load_charset_map_from_file)
1155 (load_charset_map_from_file, load_charset_map_from_vector)
1156 (Fdefine_charset_internal): Likewise.
1157 * cm.c (Wcm_clear): Likewise.
1158 * coding.c (decode_eol, decode_coding_object)
1159 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1160 * data.c (Faset): Likewise.
1161 * dired.c (directory_files_internal, file_name_completion_stat):
1162 Likewise.
1163 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1164 (clear_glyph_row, copy_row_except_pointers)
1165 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1166 (save_current_matrix, restore_current_matrix)
1167 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1168 (mirror_line_dance, scrolling_window): Likewise.
1169 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1170 Likewise.
1171 * doprnt.c (doprnt): Likewise.
1172 * editfns.c (Fuser_full_name, make_buffer_string_both)
1173 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1174 * emacs.c (sort_args): Likewise.
1175 * eval.c (Fapply, Ffuncall): Likewise.
1176 * fileio.c (Ffile_name_directory, make_temp_name)
1177 (Fexpand_file_name, search_embedded_absfilename)
1178 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1179 (auto_save_error): Likewise.
1180 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1181 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1182 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1183 (Fmake_hash_table): Likewise.
1184 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1185 * ftfont.c (ftfont_text_extents): Likewise.
1186 * getloadavg.c (getloadavg): Likewise.
1187 * image.c (define_image_type, make_image, make_image_cache)
1188 (x_create_x_image_and_pixmap, xbm_image_p)
1189 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1190 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1191 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1192 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1193 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1194 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1195 Likewise.
1196 * indent.c (scan_for_column, compute_motion): Likewise.
1197 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1198 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1199 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1200 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1201 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1202 (store_user_signal_events, menu_bar_items, tool_bar_items)
1203 (process_tool_bar_item, append_tool_bar_item)
1204 (read_char_minibuf_menu_prompt, read_key_sequence)
1205 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1206 Likewise.
1207 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1208 Likewise.
1209 * lisp.h (STRING_COPYIN): Likewise.
1210 * lread.c (Fload, read1, oblookup): Likewise.
1211 * msdos.c (Frecent_doskeys): Likewise.
1212 * nsfns.m (Fx_create_frame): Likewise.
1213 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1214 Likewise.
1215 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1216 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1217 Likewise.
1218 * nsmenu.m (ns_update_menubar): Likewise.
1219 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1220 * print.c (print_unwind, printchar, strout, print_string)
1221 (print_error_message): Likewise.
1222 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1223 (Fmake_network_process, Fnetwork_interface_list)
1224 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1225 (init_process): Likewise.
1226 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1227 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1228 Likewise.
1229 * scroll.c (do_scrolling, do_direct_scrolling)
1230 (scrolling_max_lines_saved): Likewise.
1231 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1232 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1233 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1234 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1235 (emacs_set_tty): Likewise.
1236 * term.c (encode_terminal_code, calculate_costs)
1237 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1238 Likewise.
1239 * termcap.c (tgetst1, gobble_line): Likewise.
1240 * termhooks.h (EVENT_INIT): Likewise.
1241 * tparam.c (tparam1): Likewise.
1242 * unexalpha.c (unexec): Likewise.
1243 * unexec.c (write_segment): Likewise.
1244 * unexmacosx.c (unexec_write_zero): Likewise.
1245 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1246 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1247 * w32font.c (w32font_list_family, w32font_text_extents)
1248 (w32font_list_internal, w32font_match_internal)
1249 (w32font_open_internal, compute_metrics, Fx_select_font):
1250 Likewise.
1251 * w32menu.c (set_frame_menubar, add_menu_item)
1252 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1253 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1254 * w32uniscribe.c (uniscribe_list_family): Likewise.
1255 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1256 * window.c (make_window, replace_window, set_window_buffer)
1257 (Fsplit_window): Likewise.
1258 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1259 (add_to_log, message3, x_consider_frame_title)
1260 (append_space_for_newline, extend_face_to_end_of_line)
1261 (decode_mode_spec_coding, init_glyph_string): Likewise.
1262 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1263 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1264 (face_attr_equal_p, make_realized_face, make_face_cache)
1265 (free_realized_faces, lookup_named_face, smaller_face)
1266 (face_with_height, lookup_derived_face)
1267 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1268 (Finternal_set_font_selection_order, realize_default_face)
1269 (compute_char_face, face_at_buffer_position)
1270 (face_for_overlay_string, face_at_string_position, merge_faces):
1271 Likewise.
1272 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1273 (Fx_window_property, x_create_tip_frame)
1274 (Fx_backspace_delete_keys_p): Likewise.
1275 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1276 (xfont_text_extents): Likewise.
1277 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1278 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1279 * xselect.c (x_queue_event, x_get_window_property)
1280 (receive_incremental_selection): Likewise.
1281 * xsmfns.c (x_session_check_input): Likewise.
1282 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1283 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1284 Likewise.
1285 * character.h (BCOPY_SHORT): Removed.
1286 * config.in: Regenerate.
1287 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1288 * emacs.c (main) [PROFILING]: Don't declare
1289 dump_opcode_frequencies.
1290 * lisp.h (safe_bcopy): Remove declaration.
1291 (memset) [!HAVE_MEMSET]: Declare.
1292 (memcpy) [!HAVE_MEMCPY]: Likewise.
1293 (memmove) [!HAVE_MEMMOVE]: Likewise.
1294 (memcmp) [!HAVE_MEMCMP]: Likewise.
1295 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1296 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1297 Don't define.
1298 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1299 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1300 (BCOPY_DOWNWARD_SAFE): Don't define.
1301 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1302 (memcpy) [!HAVE_MEMCPY]: Define.
1303 (memmove) [!HAVE_MEMMOVE]: Define.
1304 (memcmp) [!HAVE_MEMCMP]: Define.
1305
1306 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1307
1308 * process.c (kbd_is_on_hold): New variable.
1309 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1310 New functions.
1311 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1312 select on empty input mask.
1313 (init_process): Initialize kbd_is_on_hold to 0.
1314
1315 * process.h (hold_keyboard_input, unhold_keyboard_input)
1316 (kbd_on_hold_p): Declare.
1317
1318 * keyboard.c (input_available_signal): Declare.
1319 (kbd_buffer_nr_stored): New function.
1320 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1321 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1322 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1323 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1324 (tty_read_avail_input): If input is on hold, return.
1325 Don't read more that free slots in kbd_buffer (Bug#6571).
1326
1327 2010-07-07 Eli Zaretskii <eliz@gnu.org>
1328
1329 * msdos.h:
1330 * msdos.c:
1331 * dosfns.c:
1332 * w16select.c: Convert function definitions to ANSI C.
1333
1334 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1335 Remove unused prototypes.
1336
1337 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1338
1339 * coding.c, sysdep.c: Convert some more functions to standard C.
1340
1341 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
1342
1343 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1344 (encode_coding_object): Use SPECPDL_INDEX.
1345 (syms_of_coding): Use DOS_NT.
1346
1347 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1348
1349 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1350
1351 Make the function member of Lisp_Subr use standard C prototypes.
1352 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1353 (DECL_ALIGN): Add a cast for the function.
1354 * eval.c (Feval, Ffuncall): Use the proper type for each type
1355 function call.
1356
1357 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
1358
1359 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1360 fringe face id, so face-remapping-alist works (Bug#6091).
1361
1362 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
1363
1364 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1365 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1366 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1367
1368 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1369
1370 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1371 * lisp.h: Declare x_get_keysym_name.
1372 * keyboard.c (modify_event_symbol): Don't declare
1373 x_get_keysym_name here.
1374
1375 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1376
1377 * ecrt0.c: Revert conversion to standard C.
1378
1379 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1380
1381 * vm-limit.c (memory_warnings):
1382 * keyboard.c (modify_event_symbol):
1383 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1384 (round2, emacs_rint):
1385 * process.c (send_process, old_sigpipe): Convert function
1386 definitions and declarations to standard C.
1387
1388 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
1389
1390 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1391 * xdisp.c: Convert function definitions to standard C.
1392
1393 * cm.c (cmputc): Arg C is now int, not char.
1394 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1395
1396 2010-07-05 James Cloos <cloos@jhcloos.com>
1397
1398 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1399
1400 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1401 _NET_WM_ICON_NAME atoms.
1402
1403 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1404 and _NET_WM_ICON_NAME properties, too, matching what is
1405 done in the Gtk+ case.
1406
1407 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1410
1411 * xsmfns.c (SSDATA): New macro.
1412 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1413 passed to strlen/strcpy/strcat.
1414 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1415 7:th arg to XChangeProperty to (unsigned char *)
1416
1417 * xsettings.c (something_changedCB, parse_settings)
1418 (apply_xft_settings): Reformat prototype.
1419 (something_changedCB, init_gconf): Remove unused variable i.
1420 (read_settings): Remove unused variable long_len.
1421
1422 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1423 (xg_get_image_for_pixmap, create_dialog)
1424 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1425 (menuitem_highlight_callback, make_menu_item)
1426 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1427 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1428 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1429 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1430 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1431 (xg_tool_bar_item_expose_callback): Reformat prototype.
1432 (xg_update_menubar): GList *group => GSList *group.
1433 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1434 before use.
1435 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1436 to GTK_IMAGE (wimage).
1437
1438 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1439
1440 * atimer.c: Use "" instead of <> for local includes for
1441 consistency with the rest of the code.
1442
1443 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1444 * xrdb.c (get_system_name):
1445 * window.c (shrink_windows):
1446 * syntax.c (forw_comment):
1447 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1448 (ins_del_costs):
1449 * mem-limits.h (start_of_data):
1450 * lread.c (readevalloop):
1451 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1452 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1453 * frame.c (x_get_focus_frame):
1454 * floatfns.c (fmod_float):
1455 * fileio.c (choose_write_coding_system):
1456 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1457 (malloc_initialize_hook, sort_args, synchronize_locale):
1458 * doprnt.c (doprnt):
1459 * dired.c (compile_pattern):
1460 * data.c (fmod_float):
1461 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1462 (map_char_table_for_charset):
1463 * charset.c (define_charset_internal):
1464 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1465 to standard C.
1466
1467 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1468 Stefan Monnier <monnier@iro.umontreal.ca>
1469
1470 * lread.c (read1): Fix up last change to not mess up `c'.
1471
1472 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1473
1474 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1475
1476 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1477
1478 Fix prototypes.
1479
1480 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
1481 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
1482 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1483 arg, as required by internal_condition_case_1.
1484 * print.c (strout): Use const char* for arg PTR.
1485 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1486 (analyse_first): Fix "const const".
1487 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
1488 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
1489 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
1490
1491 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1492
1493 * alloc.c: Convert function definitions to standard C.
1494 * atimer.c:
1495 * bidi.c:
1496 * bytecode.c:
1497 * callint.c:
1498 * callproc.c:
1499 * casefiddle.c:
1500 * casetab.c:
1501 * category.c:
1502 * ccl.c:
1503 * character.c:
1504 * charset.c:
1505 * chartab.c:
1506 * cmds.c:
1507 * coding.c:
1508 * composite.c:
1509 * data.c:
1510 * dbusbind.c:
1511 * dired.c:
1512 * dispnew.c:
1513 * doc.c:
1514 * doprnt.c:
1515 * ecrt0.c:
1516 * editfns.c:
1517 * fileio.c:
1518 * filelock.c:
1519 * filemode.c:
1520 * fns.c:
1521 * font.c:
1522 * fontset.c:
1523 * frame.c:
1524 * fringe.c:
1525 * ftfont.c:
1526 * ftxfont.c:
1527 * gtkutil.c:
1528 * indent.c:
1529 * insdel.c:
1530 * intervals.c:
1531 * keymap.c:
1532 * lread.c:
1533 * macros.c:
1534 * marker.c:
1535 * md5.c:
1536 * menu.c:
1537 * minibuf.c:
1538 * prefix-args.c:
1539 * print.c:
1540 * ralloc.c:
1541 * regex.c:
1542 * region-cache.c:
1543 * scroll.c:
1544 * search.c:
1545 * sound.c:
1546 * strftime.c:
1547 * syntax.c:
1548 * sysdep.c:
1549 * termcap.c:
1550 * terminal.c:
1551 * terminfo.c:
1552 * textprop.c:
1553 * tparam.c:
1554 * undo.c:
1555 * unexelf.c:
1556 * window.c:
1557 * xfaces.c:
1558 * xfns.c:
1559 * xfont.c:
1560 * xftfont.c:
1561 * xgselect.c:
1562 * xmenu.c:
1563 * xrdb.c:
1564 * xselect.c:
1565 * xsettings.c:
1566 * xsmfns.c:
1567 * xterm.c: Likewise.
1568
1569 2010-07-03 Eli Zaretskii <eliz@gnu.org>
1570
1571 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1572 frames other than the initial one. Fix reversal of colors when
1573 `reverse' is specified in the frame parameters. Call
1574 update_face_from_frame_parameter instead of
1575 internal-set-lisp-face-attribute. Initialize screen colors from
1576 initial_screen_colors[] when f->default_face_done_p is zero,
1577 instead of depending on being called with default-frame-alist as
1578 the alist argument.
1579
1580 * xfaces.c (update_face_from_frame_parameter): Move out of
1581 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1582 with HAVE_WINDOW_SYSTEM.
1583
1584 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1585 to menu-bar-mode, if not set in the frame parameters or in
1586 default-frame-alist.
1587
1588 * w32console.c (sys_tputs): Adjust argument list to prototype in
1589 term.c.
1590
1591 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1592
1593 * lisp.h (memory_warnings): Fix prototype.
1594
1595 * cm.h (evalcost): Fix prototype.
1596
1597 * cm.c (evalcost): Fix arg type.
1598
1599 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1600
1601 * term.c (term_clear_mouse_face, Fidentity):
1602 * syssignal.h (signal_handler_t):
1603 * lisp.h (memory_warnings):
1604 * coding.h (preferred_coding_system):
1605 * cm.h (evalcost):
1606 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1607
1608 2010-07-02 Eli Zaretskii <eliz@gnu.org>
1609
1610 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1611 from prototypes.
1612
1613 * msdos.h (load_pixmap): Don't define away.
1614
1615 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1616
1617 * lisp.h:
1618 * atimer.h: Remove define for P_.
1619
1620 * alloc.c: Remove __P and P_ from .c and .m files.
1621 * atimer.c:
1622 * buffer.c:
1623 * callint.c:
1624 * category.c:
1625 * charset.c:
1626 * chartab.c:
1627 * cm.c:
1628 * coding.c:
1629 * composite.c:
1630 * data.c:
1631 * dired.c:
1632 * dispnew.c:
1633 * doc.c:
1634 * editfns.c:
1635 * emacs.c:
1636 * eval.c:
1637 * fileio.c:
1638 * filelock.c:
1639 * fns.c:
1640 * font.c:
1641 * fontset.c:
1642 * frame.c:
1643 * ftfont.c:
1644 * ftxfont.c:
1645 * gmalloc.c:
1646 * gtkutil.c:
1647 * image.c:
1648 * indent.c:
1649 * intervals.c:
1650 * keyboard.c:
1651 * keymap.c:
1652 * lread.c:
1653 * marker.c:
1654 * menu.c:
1655 * minibuf.c:
1656 * print.c:
1657 * process.c:
1658 * scroll.c:
1659 * search.c:
1660 * sound.c:
1661 * strftime.c:
1662 * syntax.c:
1663 * sysdep.c:
1664 * term.c:
1665 * terminal.c:
1666 * textprop.c:
1667 * unexalpha.c:
1668 * w32console.c:
1669 * w32fns.c:
1670 * w32font.c:
1671 * w32menu.c:
1672 * w32term.c:
1673 * w32uniscribe.c:
1674 * window.c:
1675 * xdisp.c:
1676 * xfaces.c:
1677 * xfns.c:
1678 * xfont.c:
1679 * xftfont.c:
1680 * xmenu.c:
1681 * xselect.c:
1682 * xterm.c: Likewise.
1683
1684 Remove P_ and __P macros.
1685 * atimer.h: Remove P_ and __P macros.
1686 * buffer.h:
1687 * category.h:
1688 * ccl.h:
1689 * character.h:
1690 * charset.h:
1691 * cm.h:
1692 * coding.h:
1693 * composite.h:
1694 * dispextern.h:
1695 * disptab.h:
1696 * dosfns.h:
1697 * font.h:
1698 * fontset.h:
1699 * frame.h:
1700 * gtkutil.h:
1701 * indent.h:
1702 * intervals.h:
1703 * keyboard.h:
1704 * keymap.h:
1705 * lisp.h:
1706 * macros.h:
1707 * md5.h:
1708 * menu.h:
1709 * msdos.h:
1710 * nsterm.h:
1711 * puresize.h:
1712 * region-cache.h:
1713 * syntax.h:
1714 * syssignal.h:
1715 * systime.h:
1716 * termhooks.h:
1717 * w32font.h:
1718 * w32term.h:
1719 * widget.h:
1720 * window.h:
1721 * xgselect.h:
1722 * xsettings.h:
1723 * xterm.h: Likewise.
1724
1725 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1726
1727 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1728
1729 Cleanup old code.
1730 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1731 * syssignal.h: Remove code for Lynx, not supported anymore.
1732 * vm-limit.c: Remove unused code the depends on emacs not being
1733 defined and NO_LIM_DATA being defined.
1734 * mem-limits.h: Remove dead code.
1735
1736 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1737
1738 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1739
1740 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1741 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1742
1743 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1744 parameters, they are already absolute.
1745
1746 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1747 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
1748
1749 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
1750
1751 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1752 Update FRAME_TOOLBAR_HEIGHT.
1753
1754 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1755 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1756
1757 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
1758
1759 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1760 check default-frame-alist.
1761
1762 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1763
1764 * process.c (create_process): Avoid using invalid file descriptors.
1765
1766 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1767
1768 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1769
1770 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1771 Improve documentation. Return font regardless of use_system_font.
1772 (syms_of_xsettings): Improve documentation for font-use-system-font.
1773
1774 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
1775
1776 * xfaces.c (realize_face): Garbage the frame if a face is removed
1777 (Bug#6593).
1778
1779 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1780
1781 * keyboard.c: Remove duplicate <setjmp.h>.
1782 (read_key_sequence): Remove volatile qualifiers.
1783
1784 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1785
1786 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1787 (struct glyph_row): New members left_fringe_offset and
1788 right_fringe_offset.
1789
1790 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1791 specially.
1792 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1793 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1794
1795 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
1796 Take account of bitmap offset.
1797 (draw_window_fringes): Take account of window vscroll.
1798 (update_window_fringes): Likewise. Extend top-aligned top indicator
1799 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1800 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1801 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1802
1803 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
1804
1805 * w32fns.c (Qtooltip): Declare.
1806 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1807
1808 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1809
1810 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1811 grab on just Press (Bug#6499).
1812
1813 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
1814
1815 * frame.c (Qtooltip): New var.
1816 (delete_frame): Use it. Fix faulty if statement. Don't update
1817 mode line for tooltip frames. Suggested by Martin Rudalics.
1818
1819 * xfns.c (x_create_tip_frame):
1820 * w32fns.c (x_create_tip_frame): Use it.
1821
1822 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
1823
1824 * xftfont.c (xftfont_open): Check font width one by one also when
1825 spacing is dual.
1826
1827 * ftfont.c (ftfont_open): Ditto.
1828
1829 2010-06-30 Glenn Morris <rgm@gnu.org>
1830
1831 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1832
1833 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1834
1835 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1836 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1837 * s/darwin.h (SYSTEM_MALLOC):
1838 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1839
1840 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1841
1842 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1843 (ns_get_screen): Don't assign integer to f.
1844 (Fx_display_color_cells): Declarations before statements.
1845
1846 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1847
1848 * xfns.c (x_default_font_parameter): Remove got_from_system
1849 (Bug#6526).
1850
1851 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1852 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1853 defines based on what configure finds.
1854
1855 * xterm.c (XTflash): Use gtk_widget_get_window.
1856 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1857 gtk_adjustment_get_page_size.
1858 (handle_one_xevent): Use gtk_widget_get_mapped.
1859 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1860 messages.
1861
1862 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1863
1864 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1865 HAVE_GTK_FILE_SELECTION_NEW.
1866
1867 * gtkutil.c (xg_display_open, xg_display_close): Remove
1868 HAVE_GTK_MULTIDISPLAY, it is always defined.
1869 (xg_display_open): Return type is void.
1870 (gtk_widget_set_has_window)
1871 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1872 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1873 (gtk_adjustment_set_page_increment)
1874 (gtk_adjustment_get_step_increment): #define these if not found
1875 by configure.
1876 (remove_submenu): New define based on Gtk+ version.
1877 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1878 gtk_widget_get_window.
1879 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1880 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1881 (create_dialog): Use gtk_dialog_get_action_area and
1882 gtk_dialog_get_content_area.
1883 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1884 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1885 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1886 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1887 g_object_ref and g_object_unref.
1888 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1889 gtk_widget_get_sensitive.
1890 (xg_update_submenu): Use remove_submenu.
1891 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1892 properties instead to get old x and y position.
1893 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1894 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
1895 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
1896 (xg_get_tool_bar_widgets): New function.
1897 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1898 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1899 (toolbar_set_orientation): New #define based on if configure
1900 finds gtk_orientable_set_orientation.
1901 (xg_create_tool_bar): Call toolbar_set_orientation.
1902 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1903 instead of gtk_box_pack_start_defaults.
1904
1905 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
1906
1907 * cmds.c (Fdelete_backward_char): Move into Lisp.
1908
1909 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1910
1911 * s/freebsd.h (BSD4_2): Remove redundant definition.
1912 bsd-common.h defines it already.
1913
1914 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
1915
1916 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1917 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1918 tool-bar-mode, which are now set using these X resources at
1919 startup, to determine the defaults (Bug#2249).
1920
1921 * w32fns.c (Fx_create_frame):
1922 * nsfns.m (Fx_create_frame): Likewise.
1923
1924 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1925
1926 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
1927
1928 * gtkutil.c (xg_update_scrollbar_pos):
1929 Avoid C99 mid-block variable declaration.
1930
1931 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1932
1933 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1934
1935 * gtkutil.h (xg_show_scroll_bar): Remove.
1936
1937 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1938 if height is less than scroll bar min size.
1939 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1940
1941 * xfns.c (x_default_font_parameter): Try to open font from system
1942 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1943
1944 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
1945
1946 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1947
1948 2010-06-20 Eli Zaretskii <eliz@gnu.org>
1949
1950 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1951 most-positive-fixnum, be extra accurate when scrolling window
1952 start, to avoid missing the cursor line.
1953
1954 2010-06-19 Eli Zaretskii <eliz@gnu.org>
1955
1956 * xdisp.c (try_scrolling): Compute the limit for searching point
1957 in forward scroll from scroll_max, instead of an arbitrary limit
1958 of 10 screen lines. See
1959 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1960 and
1961 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1962 for details.
1963
1964 2010-06-16 Glenn Morris <rgm@gnu.org>
1965
1966 * editfns.c (Fbyte_to_string): Pacify compiler.
1967
1968 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1969
1970 * lread.c (read1): Phase out old-style backquotes a bit more.
1971
1972 2010-06-12 Eli Zaretskii <eliz@gnu.org>
1973
1974 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1975 bidimirror.h.
1976
1977 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1978
1979 * bidi.c (bidi_initialize): Remove explicit initialization of
1980 bidi_type_table; include biditype.h instead. Don't support
1981 entries whose second codepoint is zero. Initialize bidi_mirror_table.
1982 (bidi_mirror_char): Use bidi_mirror_table.
1983
1984 * biditype.h: New file.
1985
1986 * bidimirror.h: New file.
1987
1988 * window.c (syms_of_window): Doc fix (bug#6409).
1989
1990 2010-06-12 Romain Francoise <romain@orebokech.com>
1991
1992 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1993 ediff-hook.
1994
1995 2010-06-10 Glenn Morris <rgm@gnu.org>
1996
1997 * editfns.c (Fbyte_to_string): Pacify compiler.
1998
1999 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2000
2001 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2002
2003 * alloc.c (Fmake_byte_code): Don't access undefined argument
2004 (Bug#6517).
2005
2006 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
2007
2008 * xdisp.c (next_element_from_image): Ensure that after-strings are
2009 read the next time we hit handle_stop (Bug#1336).
2010
2011 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2012
2013 * lread.c (read1): Signal error if #s is not followed by paren.
2014
2015 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
2016
2017 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2018
2019 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2020
2021 2010-06-15 Glenn Morris <rgm@gnu.org>
2022
2023 * editfns.c (Fbyte_to_string): Pacify compiler.
2024
2025 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2026
2027 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2028 Check `object's type before accessing its guts.
2029
2030 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2031
2032 * s/usg5-4.h: Fix previous change.
2033 Suggested by Lawrence Mitchell <wence@gmx.li>
2034
2035 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2036
2037 * minibuf.c (Fall_completions): Add more checks.
2038
2039 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
2040
2041 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2042
2043 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2044
2045 * lread.c (X_OK): Remove, unused.
2046
2047 * dispnew.c: Remove obsolete comment.
2048
2049 Remove INCLUDED_FCNTL.
2050 * xterm.c (INCLUDED_FCNTL):
2051 * callproc.c (INCLUDED_FCNTL):
2052 * alloc.c (INCLUDED_FCNTL):
2053 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2054 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2055
2056 2010-06-07 Martin Rudalics <rudalics@gmx.at>
2057
2058 * window.c (Fselect_window): Move `record_buffer' up to the
2059 beginning of this function, so the buffer gets recorded
2060 even if the selected window does not change.
2061 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2062
2063 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
2064
2065 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2066 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2067
2068 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2069
2070 Remove BSTRING related code, all platforms define it.
2071 * s/usg5-4.h (BSTRING): Remove definition.
2072 * s/template.h (BSTRING):
2073 * s/msdos.h (BSTRING):
2074 * s/ms-w32.h (BSTRING):
2075 * s/hpux10-20.h (BSTRING):
2076 * s/gnu-linux.h (BSTRING):
2077 * s/darwin.h (BSTRING):
2078 * s/cygwin.h (BSTRING):
2079 * s/bsd-common.h (BSTRING):
2080 * s/aix4-2.h (BSTRING): Likewise.
2081 * sysdep.c: Remove code depending on BSTRING not being defined.
2082
2083 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
2084
2085 Remove obsolete macro BASE_LEADING_CODE_P.
2086 * character.h (BASE_LEADING_CODE_P): Remove.
2087 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2088 * buffer.c (Fset_buffer_multibyte):
2089 * indent.c (scan_for_column, compute_motion):
2090 * insdel.c (count_combining_before, count_combining_after):
2091 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2092
2093 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
2094
2095 Turn `directory-sep-char' into a noop.
2096
2097 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2098 (DIRECTORY_SEP): Define unconditionally.
2099
2100 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2101
2102 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2103 call dostounix_filename directly.
2104
2105 * fileio.c (CORRECT_DIR_SEPS): Remove.
2106 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2107 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2108 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2109 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2110
2111 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2112 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2113
2114 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2115
2116 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2117 (Bug#6346)
2118
2119 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2120
2121 * ccl.c (Fccl_program_p): Fix typo in docstring.
2122
2123 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2124
2125 Move UNEXEC definition to autoconf.
2126 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2127 * s/sol2-10.h (UNEXEC):
2128 * s/irix6-5.h (UNEXEC):
2129 * s/hpux10-20.h (UNEXEC):
2130 * s/gnu-linux.h (UNEXEC):
2131 * s/darwin.h (UNEXEC):
2132 * s/cygwin.h (UNEXEC):
2133 * s/bsd-common.h (UNEXEC):
2134 * s/aix4-2.h (UNEXEC):
2135 * m/alpha.h (UNEXEC): Likewise.
2136 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2137
2138 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
2139
2140 Remove obsolete pre-unicode2 macros.
2141 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2142 * composite.c (composition_reseat_it):
2143 * data.c (Faset):
2144 * fns.c (Ffillarray):
2145 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2146 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2147
2148 2010-06-03 Juri Linkov <juri@jurta.org>
2149
2150 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2151 (Fswitch_to_buffer): Remove unused variable `err'.
2152
2153 2010-06-03 Glenn Morris <rgm@gnu.org>
2154
2155 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2156
2157 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2158 now that AH_BOTTOM does it.
2159
2160 * m/hp800.h (HAVE_ALLOCA):
2161 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2162
2163 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2164 Remove NOT_C_CODE tests, it is always true now.
2165
2166 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2167
2168 Fix config.h includes.
2169 * xsettings.c:
2170 * xgselect.c:
2171 * nsterm.m:
2172 * nsselect.m:
2173 * nsimage.m:
2174 * nsfont.m:
2175 * nsfns.m:
2176 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2177 other files do.
2178
2179 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2180
2181 * s/sol2-6.h: Remove obsolete comments.
2182
2183 Remove unnecessary alloca.h includes.
2184 * keymap.c: Do not include alloca.h, config.h does that.
2185 * sysdep.c: Likewise. Do not define fwrite, not used.
2186
2187 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2188
2189 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2190 the HAVE_TERMIO where it belongs (bug#6149).
2191
2192 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2193
2194 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2195 of bug#6305).
2196
2197 2010-05-30 Eli Zaretskii <eliz@gnu.org>
2198
2199 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2200 state is always cached (bug#6306).
2201
2202 2010-05-29 Eli Zaretskii <eliz@gnu.org>
2203
2204 Fix cursor motion in bidi-reordered continued lines.
2205 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2206 only after finding point's row. Fix the logic. Rewrite the loop
2207 over continuation lines in bidi-reordered buffers. Return
2208 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2209 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2210
2211 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
2212
2213 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2214
2215 2010-05-28 Kenichi Handa <handa@m17n.org>
2216
2217 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2218 Don't sheck SPEC if it is nil.
2219 (font_list_entities): Call font_delete_unmatched if
2220 Vface_ignored_fonts is non-nil. (Bug#6287)
2221
2222 2010-05-28 Glenn Morris <rgm@gnu.org>
2223
2224 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2225
2226 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2227
2228 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2229 whether to trash.
2230 (internal_delete_file, Frename_file): Callers changed.
2231 (delete_by_moving_to_trash): Doc fix.
2232 (Fdelete_directory_internal): Don't move to trash.
2233
2234 * callproc.c (delete_temp_file):
2235 * buffer.c (Fkill_buffer): Callers changed.
2236
2237 * lisp.h: Update prototype.
2238
2239 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * xdisp.c (redisplay_window): After redisplay, check if point is
2242 still valid before setting it (Bug#6177).
2243
2244 2010-05-27 Glenn Morris <rgm@gnu.org>
2245
2246 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2247 Convert comments to Makefile format.
2248
2249 * Makefile.in (bootstrap-clean): No more Makefile.c.
2250
2251 2010-05-26 Glenn Morris <rgm@gnu.org>
2252
2253 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2254 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2255
2256 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2257 Remove.
2258 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2259
2260 2010-05-26 Kenichi Handa <handa@m17n.org>
2261
2262 * composite.c (composition_compute_stop_pos): Fix condition for
2263 backward scanning.
2264
2265 2010-05-25 Glenn Morris <rgm@gnu.org>
2266
2267 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2268 Move before TEMACS_LDFLAGS.
2269 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2270 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2271
2272 * Makefile.in (NOT_C_CODE): No longer define.
2273 (config.h): No longer include.
2274
2275 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2276 variables it may reference.
2277
2278 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2279 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2280
2281 2010-05-25 Kenichi Handa <handa@m17n.org>
2282
2283 * dispextern.h (struct composition_it): New members rule_idx and
2284 charpos.
2285
2286 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2287 that the character positions of IT point the last character of the
2288 current grapheme cluster.
2289 (next_element_from_composition): Don't change character positions
2290 of IT.
2291 (append_composite_glyph): Set glyph->charpos to
2292 it->cmp_it.charpos.
2293
2294 * composite.c (autocmp_chars): Change the first argument to RULE,
2295 and try composition with RULE only.
2296 (composition_compute_stop_pos): Record the index number of the
2297 composition rule in CMP_IT->rule_idx.
2298 (composition_reseat_it): Call autocmp_chars repeatedly until the
2299 correct rule of the composition is found.
2300 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2301 is at the last character of the current grapheme cluster when
2302 CMP_IT->reversed_p is nonzero.
2303
2304 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2305
2306 * editfns.c (Fbyte_to_string): New function.
2307
2308 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2309
2310 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2311 Suggested by Masatake YAMATO <yamato@redhat.com>.
2312
2313 2010-05-23 Eli Zaretskii <eliz@gnu.org>
2314
2315 * dispextern.h (init_iterator): Sync prototype with changed definition.
2316
2317 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2318
2319 * s/netbsd.h: If terminfo is found, use it in preference to
2320 termcap. (Bug#6190) [Backport from trunk]
2321
2322 2010-05-19 Eli Zaretskii <eliz@gnu.org>
2323
2324 Redesign and reimplement bidi-aware edge positions of glyph rows.
2325
2326 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2327 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2328 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2329 and maxpos members instead of start.pos and end.pos, respectively.
2330
2331 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2332 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2333 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
2334 (try_window_reusing_current_matrix, try_window_id):
2335 Use ROW->minpos rather than ROW->start.pos.
2336 (init_from_display_pos, init_iterator): Use EMACS_INT for
2337 character and byte positions.
2338 (find_row_edges): Rename from find_row_end. Accept additional
2339 arguments for minimum and maximum buffer positions seen by
2340 display_line for this row. Don't use iterator to find the
2341 position following the maximum one; instead, increment the
2342 position found by display_line directly. Fix logic; eol_pos
2343 should be tested before the rest. Handle the case of characters
2344 delivered from display vector (bug#6036). Fix tests related to
2345 it->method. Handle the truncated_on_right_p rows.
2346 (RECORD_MAX_MIN_POS): New macro.
2347 (display_line): Use it to record the minimum and maximum buffer
2348 positions for glyphs in the row being assembled. Record the
2349 position of the newline that terminates the line. If word wrap is
2350 in effect, restore minimum and maximum positions seen up to the
2351 wrap point, when iterator returns to it.
2352 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2353 row and cursor not already at point. Restore original pre-bidi
2354 code for unidirectional buffers.
2355
2356 * dispnew.c (increment_row_positions, check_matrix_invariants):
2357 Increment and check row->start.pos and row->end.pos, in addition
2358 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2359
2360 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2361 Display truncated_on_left_p and truncated_on_right_p flags.
2362 Formatting fixes.
2363 (pmtxrows): Display the ordinal number of each row. Don't display
2364 rows beyond the last one.
2365
2366 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2367 it is not copied by bidi_copy_it.
2368
2369 2010-05-22 Eli Zaretskii <eliz@gnu.org>
2370
2371 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2372 (Bug#6237)
2373
2374 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
2375
2376 * image.c (Fimage_flush): Rename from image-refresh.
2377
2378 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
2379
2380 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2381 just one window.
2382
2383 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2384 (clear_image_cache): If the number of cached images is unusually
2385 large, decrease the cache eviction delay (Bug#6230).
2386
2387 2010-05-21 Glenn Morris <rgm@gnu.org>
2388
2389 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2390 Move these rules to ns.mk.
2391 * ns.mk: New file.
2392
2393 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2394
2395 * Makefile.in (CANNOT_DUMP): New, set by configure.
2396 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2397
2398 2010-05-20 Juri Linkov <juri@jurta.org>
2399
2400 * fileio.c (Fdelete_file): Change interative spec to use
2401 `read-file-name' like in `find-file-read-args' where the default
2402 value is `default-directory' instead of `buffer-file-name'.
2403 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2404
2405 2010-05-20 Kevin Ryde <user42@zip.com.au>
2406
2407 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2408 (Voverriding_terminal_local_map, Vsystem_key_alist)
2409 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2410
2411 2010-05-20 Glenn Morris <rgm@gnu.org>
2412
2413 * Makefile.in (DEPDIR): New constant.
2414 (DEPFLAGS): Set with configure, not cpp.
2415 (MKDEPDIR): New, set by configure.
2416 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2417 (clean): Use $DEPDIR.
2418 (deps_frag): Include from configure.
2419 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2420 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2421
2422 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2423 reallocation of the cache. (Bug#6210)
2424
2425 2010-05-19 Glenn Morris <rgm@gnu.org>
2426
2427 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2428
2429 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2430 (GNULIB_VAR): Remove.
2431 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2432
2433 * m/ibms390x.h (LINKER):
2434 * m/macppc.h (LINKER) [GNU_LINUX]:
2435 * s/aix4-2.h (ORDINARY_LINK):
2436 * s/cygwin.h (LINKER):
2437 * s/darwin.h (ORDINARY_LINK):
2438 * s/gnu.h (ORDINARY_LINK):
2439 * s/netbsd.h (LINKER):
2440 * s/usg5-4.h (ORDINARY_LINK):
2441 Move to configure.
2442
2443 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2444
2445 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
2446
2447 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2448 prevent stack overflow if number of arguments is too large
2449 (Bug#6214).
2450
2451 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2452
2453 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2454
2455 2010-05-18 Glenn Morris <rgm@gnu.org>
2456
2457 * s/gnu-linux.h: Combine two conditionals.
2458
2459 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
2460 $(POST_ALLOC_OBJ).
2461
2462 * Makefile.in (RALLOC_OBJ): New, set by configure.
2463 (rallocobj): Replace with the previous variable.
2464 (otherobj): Use $RALLOC_OBJ.
2465
2466 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2467 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2468
2469 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2470 (gmallocobj, vmlimitobj): Replace with previous two variables.
2471 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2472
2473 2010-05-17 Glenn Morris <rgm@gnu.org>
2474
2475 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2476 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2477
2478 2010-05-16 Glenn Morris <rgm@gnu.org>
2479
2480 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2481
2482 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2483
2484 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2485 trailing "/".
2486
2487 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2488 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2489
2490 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2491 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2492 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2493 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2494 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2495
2496 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2497 Remove ${STARTFLAGS}, nothing ever sets it.
2498
2499 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2500
2501 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2502
2503 2010-05-16 Glenn Morris <rgm@gnu.org>
2504
2505 * Makefile.in (LIBX_BASE): Always define.
2506
2507 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2508
2509 * Makefile.in (LIBXT): Always define.
2510
2511 2010-05-15 Glenn Morris <rgm@gnu.org>
2512
2513 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
2514
2515 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2516 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2517
2518 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
2519
2520 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
2521 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2522
2523 * emacs.c (main): Initialize initial-environment and
2524 process-environment before generating from env, not after.
2525
2526 Handle --version reasonably in CANNOT_DUMP configuration.
2527 * emacs.c (emacs_version, emacs_copyright): New string variables.
2528 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2529 (syms_of_emacs): Defvar them, and initialize them from the C
2530 string variables.
2531 (main): If initialization hasn't been done, print initial version
2532 info from the C strings, instead of starting an interactive session.
2533
2534 2010-05-15 Eli Zaretskii <eliz@gnu.org>
2535
2536 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2537 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2538 (bidi_paragraph_init): Remove redundant assertion that we are at
2539 the beginning of a line after call to bidi_find_paragraph_start.
2540
2541 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2542 (syms_of_xdisp): Defsubr it.
2543
2544 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2545
2546 * Makefile.in: Fix MSDOS-related comments.
2547
2548 2010-05-15 Glenn Morris <rgm@gnu.org>
2549
2550 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2551 (really-lwlib, really-oldXMenu): Always define.
2552 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2553
2554 * Makefile.in: Simplify cpp conditional.
2555
2556 * Makefile.in (${ns_appdir}): Simplify using umask.
2557
2558 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2559
2560 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2561
2562 * eval.c (specbind): Remove left-over duplicate test.
2563 Disallow let-binding frame-local vars. Add comment.
2564
2565 2010-05-14 Eli Zaretskii <eliz@gnu.org>
2566
2567 Make the cache of bidi iterator states dynamically allocated.
2568 * bidi.c (bidi_cache_shrink): New function.
2569 (bidi_init_it): Call it.
2570 (bidi_cache_iterator_state): Enlarge the cache if needed.
2571
2572 * bidi.c (bidi_move_to_visually_next): Rename from
2573 bidi_get_next_char_visually. All callers changed.
2574
2575 2010-05-14 Kenichi Handa <handa@m17n.org>
2576
2577 * dispextern.h (struct composition_it): New member reversed_p.
2578
2579 * composite.c (composition_compute_stop_pos): Search backward if
2580 ENDPOS < CHARPOS.
2581 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2582 Set CMP_IT->reversed_p.
2583 (composition_update_it): Pay attention to CMP_IT->reversed_p.
2584
2585 * xdisp.c (set_iterator_to_next):
2586 Call composition_compute_stop_pos with negative ENDPOS if we are
2587 scanning backward. Call composition_compute_stop_pos if scan
2588 direction is changed.
2589 (next_element_from_buffer): Call composition_compute_stop_pos with
2590 negative ENDPOS if we are scanning backward.
2591 (next_element_from_composition): Pay attention to
2592 IT->cmp_it.reversed_p.
2593
2594 2010-05-14 Kenichi Handa <handa@m17n.org>
2595
2596 * font.c (font_range): Return the range for the font found at first.
2597
2598 2010-05-14 Glenn Morris <rgm@gnu.org>
2599
2600 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2601
2602 * Makefile.in (mktime, X11, register): Move undefs to configure.
2603
2604 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2605 (MSDOS_X_OBJ): New variable.
2606 (MSDOS_SUPPORT_REAL): New constant.
2607 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2608 (obj): Use MSDOS_X_OBJ.
2609 (lisp): Use MSDOS_SUPPORT as a variable.
2610
2611 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2612 (GPM_MOUSE_SUPPORT): Now it's a constant.
2613 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2614 not cpp.
2615
2616 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
2617 (ns_appresdir): Remove, unused.
2618
2619 * Makefile.in (SHELL): Move outside cpp section.
2620
2621 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2622
2623 2010-05-13 Glenn Morris <rgm@gnu.org>
2624
2625 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2626 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2627
2628 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2629 HAVE_WINDOW_SYSTEM must be too.
2630
2631 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2632 (lisp): Remove WINNT_SUPPORT.
2633
2634 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2635 Let configure set these variables (to empty) in this case as well.
2636
2637 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2638 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2639
2640 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2641 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2642 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2643 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2644 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
2645 the values output by configure.
2646 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2647
2648 2010-05-12 Glenn Morris <rgm@gnu.org>
2649
2650 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2651 (LINKER_WAS_SPECIFIED): Remove.
2652
2653 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2654 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2655 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2656 * s/cygwin.h (LIB_GCC):
2657 * s/freebsd.h (LIB_GCC):
2658 * s/gnu-linux.h (LIB_GCC):
2659 * s/msdos.h (LIB_GCC):
2660 * s/netbsd.h (LIB_GCC):
2661 Move to configure.
2662
2663 2010-05-11 Karel Klic <kklic@redhat.com>
2664
2665 * ftfont.c: Fix incorrect parentheses of #if condition for
2666 definining M17N_FLT_USE_NEW_FEATURE.
2667
2668 2010-05-11 Glenn Morris <rgm@gnu.org>
2669
2670 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2671 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2672
2673 2010-05-10 Eli Zaretskii <eliz@gnu.org>
2674
2675 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2676 unibyte buffers. See
2677 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2678
2679 2010-05-10 Glenn Morris <rgm@gnu.org>
2680
2681 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2682 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2683 (LIBES): Use LIBS_SYSTEM as a variable.
2684 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2685 * s/aix4-2.h (LIBS_SYSTEM):
2686 * s/freebsd.h (LIBS_SYSTEM):
2687 * s/hpux10-20.h (LIBS_SYSTEM):
2688 * s/sol2-6.h (LIBS_SYSTEM):
2689 * s/unixware.h (LIBS_SYSTEM):
2690 Move to configure.
2691
2692 * s/aix4-2.h (MAIL_USE_LOCKF):
2693 * s/bsd-common.h (MAIL_USE_FLOCK):
2694 * s/darwin.h (MAIL_USE_FLOCK):
2695 * s/gnu-linux.h (MAIL_USE_FLOCK):
2696 * s/irix6-5.h (MAIL_USE_FLOCK):
2697 * s/template.h (MAIL_USE_FLOCK):
2698 Move to configure.
2699
2700 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
2701
2702 * Version 23.2 released.
2703
2704 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
2705
2706 * composite.c (autocmp_chars): Save point as marker before calling
2707 auto-composition-function (Bug#5984).
2708
2709 * lisp.h (restore_point_unwind): Add prototype.
2710
2711 * fileio.c (restore_point_unwind): Remove static attribute.
2712
2713 2010-05-08 Kenichi Handa <handa@m17n.org>
2714
2715 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2716 new feature of libotf and m17n-flt.
2717 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2718 Call OTF_check_features even if no specific feature is given.
2719 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2720 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2721 that OUT is NULL. Use OTF_drive_gsub_with_log and
2722 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2723 OTF_drive_gpos.
2724 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
2725 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2726 Setup mflt_enable_new_feature and mflt_try_otf.
2727
2728 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2729
2730 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2731
2732 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2733 box and toolbar (Bug #6139).
2734 (xg_create_tool_bar): Remove comment (Bug #6139).
2735 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2736 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2737
2738 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
2739
2740 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2741 Update dependencies.
2742
2743 2010-05-08 Eli Zaretskii <eliz@gnu.org>
2744
2745 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2746 R2L lines.
2747
2748 2010-05-08 Glenn Morris <rgm@gnu.org>
2749
2750 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2751
2752 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2753 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2754 (termcapobj): Replace with TERMCAP_OBJ.
2755 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2756 (LIBES): Use LIBS_TERMCAP as a variable.
2757
2758 * s/freebsd.h (osreldate.h): No longer include, since this file
2759 does not use __FreeBSD_version any more.
2760
2761 * s/aix4-2.h (TERMINFO):
2762 * s/cygwin.h (TERMINFO):
2763 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2764 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2765 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2766 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2767 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2768 * s/irix6-5.h (TERMINFO):
2769 * s/netbsd.h (LIBS_TERMCAP):
2770 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2771 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2772 * s/usg5-4.h (TERMINFO):
2773 Move to configure.
2774
2775 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * eval.c (unbind_to): Don't unbind a local binding into the global
2778 binding when the local binding disappeared. Inversely, don't unbind
2779 a global binding into a newly created local binding.
2780 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2781 can specify the frame to use, when applicable. Adjust callers.
2782
2783 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
2784 Stefan Monnier <monnier@iro.umontreal.ca>
2785
2786 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2787
2788 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2789
2790 * w32fns.c: Include w32.h.
2791 (Fw32_shell_execute): Decode the error message before passing it
2792 to `error'. (Bug#6126)
2793
2794 * msdos.c (dos_set_window_size):
2795 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2796 instead of `XSYMBOL (foo)->value'.
2797
2798 2010-05-07 Eli Zaretskii <eliz@gnu.org>
2799
2800 Fix the MS-DOS build, broken by autoconfiscation.
2801
2802 * Makefile.in: Don't use Make-style comments past the "start of
2803 cpp stuff" line.
2804 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2805
2806 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2807 edited directly by msdos/sed1v2.inp).
2808
2809 2010-05-07 Glenn Morris <rgm@gnu.org>
2810
2811 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2812 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2813 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2814 move out of cpp section.
2815 * s/freebsd.h (LD_SWITCH_SYSTEM):
2816 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2817 * s/netbsd.h (LD_SWITCH_SYSTEM):
2818 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2819
2820 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2821
2822 Define LIB_STANDARD and START_FILES using autoconf.
2823 * s/usg5-4.h (LIB_STANDARD):
2824 * s/netbsd.h (START_FILES):
2825 * s/irix6-5.h (LIB_STANDARD):
2826 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2827 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2828 * s/freebsd.h (START_FILES):
2829 * s/darwin.h (START_FILES):
2830 * s/cygwin.h (START_FILES):
2831 * s/aix4-2.h (LIB_STANDARD):
2832 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2833 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2834 autoconf, not cpp.
2835
2836 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2837
2838 Remove NEED_BSDTTY and NEED_UNISTD_H.
2839 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2840 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2841 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2842 <sys/ptyio.h> and <unistd.h>.
2843
2844 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2845
2846 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2847 * s/gnu.h (START_FILES): Remove empty definition.
2848
2849 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2850
2851 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2852
2853 2010-05-06 Glenn Morris <rgm@gnu.org>
2854
2855 * Makefile.in (CPP, LN_S): Remove unused variables.
2856
2857 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2858
2859 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2860
2861 2010-05-05 Lawrence Mitchell <wence@gmx.li>
2862
2863 * m/sparc.h: Fix typo in earlier change.
2864
2865 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2866
2867 Misc tweaks.
2868 * eval.c (Fdefvaralias): Remove unintended nested if.
2869 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2870
2871 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
2872
2873 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2874
2875 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2876
2877 Remove BSD_PGRPS.
2878 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2879 * s/gnu-linux.h (BSD_PGRPS): Remove.
2880 * term.c (dissociate_if_controlling_tty):
2881 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2882 (init_sys_modes, reset_sys_modes):
2883 * emacs.c (main):
2884 * callproc.c (Fcall_process, child_setup): Remove code depending
2885 on BSD_PGRPS.
2886
2887 Remove POSIX_SIGNALS.
2888 * s/usg5-4.h (POSIX_SIGNALS):
2889 * s/netbsd.h (POSIX_SIGNALS):
2890 * s/msdos.h (POSIX_SIGNALS):
2891 * s/ms-w32.h (POSIX_SIGNALS):
2892 * s/hpux11.h (POSIX_SIGNALS):
2893 * s/gnu.h (POSIX_SIGNALS):
2894 * s/gnu-linux.h (POSIX_SIGNALS):
2895 * s/freebsd.h (POSIX_SIGNALS):
2896 * s/darwin.h (POSIX_SIGNALS):
2897 * s/cygwin.h (POSIX_SIGNALS):
2898 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2899 * s/unixware.h:
2900 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2901 * process.c (create_process):
2902 * syssignal.h:
2903 * sysdep.c (wait_for_termination, init_signals):
2904 * process.c (create_process):
2905 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2906 remove all code that assumes the contrary.
2907
2908 2010-05-04 Glenn Morris <rgm@gnu.org>
2909
2910 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2911 variable.
2912 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2913 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2914 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2915 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2916 LD_SWITCH_SYSTEM_tmp.
2917 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2918 New variables, set by configure.
2919
2920 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2921 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2922 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2923 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2924 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2925
2926 * s/aix4-2.h (C_SWITCH_SYSTEM):
2927 * m/alpha.h (C_SWITCH_MACHINE):
2928 Move to configure.in.
2929 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2930 New variables, set by configure.
2931 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2932 $c_switch_machine and $c_switch_system.
2933
2934 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2935
2936 * s/hpux10-20.h (LIB_STANDARD): New definition.
2937 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2938 on it, not used anymore.
2939
2940 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
2941
2942 * eval.c (internal_condition_case_n): Rename from
2943 internal_condition_case_2.
2944 (internal_condition_case_2): New function.
2945
2946 * xdisp.c (safe_call): Use internal_condition_case_n.
2947
2948 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2949 (internal_delete_file, Frename_file): Callers changed.
2950
2951 * buffer.c (Fkill_buffer):
2952 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2953
2954 * lisp.h: Update prototypes.
2955
2956 2010-05-03 Glenn Morris <rgm@gnu.org>
2957
2958 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2959 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2960 (LIBXT): Set with configure, not cpp.
2961 (LIBX): Remove.
2962 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2963
2964 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2965
2966 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2967 The FreeBSD is not needed, the default works, Solaris version is
2968 not needed, and the remaining case is not supported by configure.
2969
2970 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2971
2972 * xsmfns.c (CHDIR_OPT): New define.
2973 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2974 restarting emacs.
2975
2976 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2977 shut_down_emacs.
2978
2979 * emacs.c (USAGE1): Mention --chdir.
2980 (main): Handle --chdir.
2981 (standard_args): Add --chdir.
2982 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2983 #5552).
2984
2985 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2986
2987 Remove LD_SWITCH_MACHINE.
2988 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2989 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2990
2991 Clean up IRIX code.
2992 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2993 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2994
2995 Clean up AIX code.
2996 * m/ibmrs6000.inp: Remove file, unused.
2997 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2998 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2999 definition ...
3000 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3001
3002 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3003 unused.
3004
3005 2010-05-01 Eli Zaretskii <eliz@gnu.org>
3006
3007 Emulate POSIX_SIGNALS on MS-Windows.
3008
3009 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3010 (SIG_SETMASK, SIG_UNBLOCK): Define.
3011
3012 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3013 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3014 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3015
3016 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3017 New stubs.
3018
3019 Miscellaneous fixes of bidi display.
3020
3021 * xdisp.c (find_row_end): New function, refactored from display_line.
3022 (display_line): Use it.
3023 (extend_face_to_end_of_line): In almost-filled rows, extend only
3024 if the row is R2L and not continued.
3025 (display_line): Fix prepending of truncation glyphs to R2L rows.
3026 Preserve overlay and string info in row->end.
3027 (insert_left_trunc_glyphs): Support addition of left truncation
3028 glyphs to R2L rows.
3029 (set_cursor_from_row): Don't place cursor on the vertical border
3030 glyph between adjacent windows. Fix a crash when a display string
3031 is continued to the next line. Don't return zero if cursor was
3032 found by `cursor' property of a display string.
3033 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3034 test for that explicitly.
3035
3036 2010-05-01 Glenn Morris <rgm@gnu.org>
3037
3038 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3039 for clarity.
3040 (OTHER_OBJ): Remove.
3041 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3042 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3043
3044 2010-05-01 Karel Klíč <kklic@redhat.com>
3045
3046 * fileio.c (Ffile_selinux_context): Context functions may return null.
3047
3048 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3049
3050 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
3051
3052 2010-04-30 Glenn Morris <rgm@gnu.org>
3053
3054 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3055 (OTHER_OBJ): Define as a separate variable, for clarity.
3056
3057 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3058
3059 * xsettings.c: include limits.h and update file comment.
3060
3061 2010-04-30 Glenn Morris <rgm@gnu.org>
3062
3063 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3064 Set with configure, not cpp.
3065 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3066
3067 * Makefile.in (mallocobj): Remove.
3068 (otherobj): Simplify using @OTHER_OBJ@.
3069
3070 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3071 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3072 Don't bother making nsgui.h dependency platform-specific.
3073
3074 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3075
3076 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3077
3078 * process.c (read_process_output, exec_sentinel): Don't burp if the
3079 sentinel/filter kills the current buffer (bug#6060).
3080
3081 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
3082 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3083 Remove unused var `args'.
3084 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3085 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3086 * doc.c (store_function_docstring): Use XSETCAR.
3087
3088 2010-04-28 Glenn Morris <rgm@gnu.org>
3089
3090 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3091 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3092
3093 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3094
3095 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3096 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3097
3098 * Makefile.in (FONT_OBJ): New, set by configure.
3099 (FONT_DRIVERS): Use $FONT_OBJ.
3100
3101 * Makefile.in (LIBXMU): Set with configure, not cpp.
3102 * s/aix4-2.h (LIBXMU):
3103 * s/hpux10-20.h (LIBXMU):
3104 Remove definition, now set in configure.
3105
3106 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3107
3108 * m/amdx86-64.h [i386]: Move this test to configure.in.
3109
3110 2010-04-27 Glenn Morris <rgm@gnu.org>
3111
3112 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3113 * s/unixware.h (NEED_LIBW): Remove definition.
3114
3115 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3116 (TOOLKIT_LIBW): New, set by configure.
3117 (@X_TOOLKIT_TYPE@): No longer define it.
3118
3119 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3120 (MOTIF_LIBW): Set with configure, not cpp.
3121 * s/aix4-2.h (LIB_MOTIF):
3122 * s/gnu-linux.h (LIB_MOTIF):
3123 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3124
3125 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3126
3127 Reduce CPP usage.
3128 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3129 (obj): Use autoconf for unexec instead of cpp.
3130 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3131 definitions and undefs. Inline definitions in the only user.
3132 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
3133
3134 2010-04-27 Glenn Morris <rgm@gnu.org>
3135
3136 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3137 since the defaults (set by the system file) are fine in most cases.
3138 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3139 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3140 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3141 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3142 Remove definitions, since they are set correctly in s/gnu-linux.h.
3143 * s/freebsd.h (START_FILES, LIB_STANDARD):
3144 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3145 * s/hpux10-20.h (START_FILES):
3146 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3147 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3148
3149 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3150 (MOTIF_LIBW): Use $LIBXP.
3151 (otherobj): Use $WIDGET_OBJ.
3152
3153 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3154
3155 * Makefile.in (LIBS_MACHINE): Remove, unused.
3156
3157 Use autoconf instead of cpp for LIB_MATH.
3158 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3159 * s/cygwin.h (LIB_MATH): Likewise.
3160 * Makefile.in (LIB_MATH): Do not define with cpp.
3161 (LIBES): Use autoconf for LIB_MATH.
3162
3163 2010-04-26 Kenichi Handa <handa@m17n.org>
3164
3165 * composite.c (Ffind_composition_internal): Fix the return value
3166 for an automatic composition.
3167
3168 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3169
3170 Remove all NO_ARG_ARRAY uses.
3171 * fns.c (concat2, concat3, nconc2):
3172 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3173 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3174 * m/xtensa.h (NO_ARG_ARRAY):
3175 * m/template.h (NO_ARG_ARRAY):
3176 * m/sparc.h (NO_ARG_ARRAY):
3177 * m/sh3.h (NO_ARG_ARRAY):
3178 * m/mips.h (NO_ARG_ARRAY):
3179 * m/macppc.h (NO_ARG_ARRAY):
3180 * m/iris4d.h (NO_ARG_ARRAY):
3181 * m/intel386.h (NO_ARG_ARRAY):
3182 * m/ibms390x.h (NO_ARG_ARRAY):
3183 * m/ibms390.h (NO_ARG_ARRAY):
3184 * m/ibmrs6000.h (NO_ARG_ARRAY):
3185 * m/ia64.h (NO_ARG_ARRAY):
3186 * m/hp800.h (NO_ARG_ARRAY):
3187 * m/arm.h (NO_ARG_ARRAY):
3188 * m/amdx86-64.h (NO_ARG_ARRAY):
3189 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3190
3191 2010-04-25 Eli Zaretskii <eliz@gnu.org>
3192
3193 * xdisp.c (display_line): Don't assume 2nd call to
3194 get_next_display_element cannot return zero. (Bug#6030)
3195 (iterate_out_of_display_property): New function, body from pop_it.
3196 (pop_it): Use it.
3197
3198 2010-04-24 Glenn Morris <rgm@gnu.org>
3199
3200 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3201 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3202 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3203 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3204
3205 2010-04-24 Eli Zaretskii <eliz@gnu.org>
3206
3207 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3208 use `get_next_display_element' and `set_iterator_to_next' to
3209 advance to the next character, when looking for the character that
3210 begins the next row.
3211
3212 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
3213 definition of "struct Lisp_Symbol".
3214
3215 2010-04-24 Glenn Morris <rgm@gnu.org>
3216
3217 * Makefile.in (CRT_DIR): New variable, set by configure.
3218 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3219 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3220
3221 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3222
3223 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3224
3225 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3226
3227 Remove redundant flags.
3228 * s/freebsd.h (C_SWITCH_SYSTEM):
3229 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3230 * s/netbsd.h (C_SWITCH_SYSTEM):
3231 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3232 of these.
3233
3234 Simplify m/intel386.h.
3235 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3236 user: ecrt0.c.
3237 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3238 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3239 the only user: s/unixware.h.
3240 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3241 from m/intel386.h.
3242 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3243 moved here from m/intel386.h.
3244
3245 * m/mips.h: Remove #if 0 code.
3246
3247 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3248
3249 Fix display of composed characters from L2R scripts in bidi buffers.
3250 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3251 After advancing IT past the composition, resync the bidi iterator
3252 with IT's position. (Bug#5977)
3253
3254 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3255
3256 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3257 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3258
3259 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3260
3261 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3262
3263 2010-04-23 Eli Zaretskii <eliz@gnu.org>
3264
3265 Support `display' text properties and overlay strings in bidi buffers.
3266 * xdisp.c (pop_it): When the stack is popped after displaying
3267 from a string, bidi-iterate to exit from the text portion covered
3268 by the `display' property or overlay. (Bug#5988, bug#5920)
3269
3270 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3271
3272 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3273 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3274
3275 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3276 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3277
3278 Simplify STARTFILES definition.
3279 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3280 relying on Makefile.in to define it.
3281 * s/cygwin.h (START_FILES): Likewise.
3282 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3283
3284 Clean up Solaris code.
3285 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3286 (LIB_MOTIF): Remove, configure takes care of this.
3287 (NOT_USING_MOTIF): Remove, unused.
3288 * xrdb.c: Remove #if 0-ed #include.
3289 (SYSV): Remove conditional for old SysV.
3290 * sysdep.c (closedir): Remove conditional code for Solaris,
3291 Solaris has closedir.
3292
3293 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3294
3295 * xsettings.c (read_and_apply_settings): Check if current_font is
3296 NULL before strcmp (Bug#6001).
3297
3298 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3299
3300 Clean up HP-UX files.
3301 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3302 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3303 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3304 * s/hpux10-20.h: ... to the only user, here.
3305
3306 2010-04-21 Eli Zaretskii <eliz@gnu.org>
3307
3308 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3309 use buffer-local values of paragraph-start and paragraph-separate.
3310 <paragraph_start_re, paragraph_separate_re>: Rename from
3311 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3312 (Bug#5992)
3313
3314 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3315
3316 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3317 current_tool_bar_style are new.
3318 (store_config_changed_event): Rename from store_font_changed_event.
3319 (XSETTINGS_TOOL_BAR_STYLE): New define.
3320 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3321 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3322 HAVE_XFT.
3323 (something_changedCB): store_font_changed_event is now
3324 store_config_changed_event.
3325 (parse_settings): Rename from parse_xft_settings. Read
3326 non-xft xsettings outside #ifdef HAVE_XFT.
3327 (read_settings): Renamed from read_xft_settings.
3328 (apply_xft_settings): Take current settings as parameter. Do not
3329 call read_(xft)_settings.
3330 (read_and_apply_settings): New function.
3331 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3332 read_and_apply_settings if there are settings to be read.
3333 (init_xsettings): Renamed from init_xfd_settings.
3334 Call read_and_apply_settings unconditionally.
3335 (xsettings_initialize): Call init_xsettings.
3336 (Ftool_bar_get_system_style): New function.
3337 (syms_of_xsettings): Define Qmonospace_font_name and
3338 Qtool_bar_style. Initialize current_tool_bar_style to nil.
3339 defsubr Stool_bar_get_system_style. Fprovide on
3340 dynamic-setting.
3341 Move misplaced HAVE_GCONF
3342
3343 * xsettings.h (Ftool_bar_get_system_style): Declare.
3344
3345 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3346 Qtext, Qboth, Qboth_horiz are new.
3347 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3348 Vtool_bar_style, tool_bar_max_label_size.
3349
3350 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3351
3352 * keyboard.c: QClabel is new.
3353 (parse_tool_bar_item): Take out QClabel from tool bar items.
3354 Try to construct a label if ther is no QClabel.
3355 (syms_of_keyboard): Intern :label as QClabel.
3356
3357 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3358 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3359 New.
3360
3361 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3362 dynamic-setting.el.
3363
3364 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3365 (xg_make_tool_item, xg_show_toolbar_item): New function.
3366 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3367 Call xg_make_tool_item to make a tool bar item.
3368 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3369
3370 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3371 into account for toolbars.
3372
3373 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3374
3375 * data.c (make_blv): Declarations before code (Bug#5993).
3376
3377 2010-04-21 Glenn Morris <rgm@gnu.org>
3378
3379 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3380 Define using autoconf, not cpp.
3381 (LIBXSM): New variable, set by autoconf.
3382 (LIBXT): Use $LIBXSM.
3383
3384 2010-04-21 Dan Nicolaescu <local_user@dannlt>
3385
3386 Remove NOMULTIPLEJOBS, unused.
3387 * s/template.h (NOMULTIPLEJOBS):
3388 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3389
3390 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3391 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3392 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3393 detects -znocombreloc and passes it to the linker
3394 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3395
3396 2010-04-21 Glenn Morris <rgm@gnu.org>
3397
3398 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3399
3400 2010-04-21 Karel Klíč <kklic@redhat.com>
3401
3402 * Makefile.in (LIBSELINUX_LIBS): New.
3403 (LIBES): Add $LIBSELINUX_LIBS.
3404 * eval.c, lisp.h (call7): New function.
3405 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3406 (Ffile_selinux_context, Fset_file_selinux_context):
3407 New functions.
3408 (Fcopy_file): New parameter preserve-selinux-context.
3409 (Frename_file): Preserve selinux context when renaming by copy-file.
3410
3411 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
3412 Eli Zaretskii <eliz@gnu.org>
3413
3414 Don't depend on cm.c or termcap.c on Windows, use stubs.
3415 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3416 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3417 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3418 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3419 (sys_tputs, sys_tgetstr): New stubs.
3420 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3421 (tputs, tgetstr): New; define to sys_*.
3422
3423 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
3424
3425 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3426
3427 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3428
3429 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3430 Just signal a warning rather than an error when inside a let.
3431 (Fmake_variable_frame_local): Add the same test.
3432
3433 * font.c (syms_of_font): Make the style table vars read-only.
3434
3435 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3436 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3437
3438 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3439
3440 2010-04-20 Eli Zaretskii <eliz@gnu.org>
3441
3442 Fix R2L paragraph display on TTY.
3443
3444 * xdisp.c (unproduce_glyphs): New function.
3445 (display_line): Use it when produced glyphs are discarded from R2L
3446 glyph rows.
3447 (append_composite_glyph): In R2L rows, prepend the glyph rather
3448 than appending it.
3449
3450 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3451 rather than append it. Set up the resolved_level and bidi_type
3452 attributes of the appended glyph.
3453 (produce_special_glyphs): Mirror the backslash continuation
3454 character in R2L lines.
3455
3456 Implement display of R2L paragraphs in GUI sessions.
3457
3458 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3459 append_stretch_glyph.
3460 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3461 off-by-one error in computing x at end of text in the row.
3462 (append_stretch_glyph): In reversed row, prepend the glyph rather
3463 than append it. Set resolved_level and bidi_type of the glyph.
3464 (extend_face_to_end_of_line): If the row is reversed, prepend a
3465 stretch glyph whose width is such that the rightmost glyph will be
3466 drawn at the right margin of the window. Fix off-by-one error on
3467 TTY frames in testing whether a line needs face extension. Fix
3468 face extension at ZV. If this is the last glyph row, use
3469 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3470 region face.
3471 (set_cursor_from_row, display_line): Use
3472 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3473 row->continuation_lines_width.
3474 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3475 are at ZV. Fixes a crash when reseated to ZV by
3476 try_window_reusing_current_matrix.
3477 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3478 which happens with R2L glyph rows. Fixes a crash when inserting a
3479 character at end of an R2L line.
3480 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3481 treat them as having zero-width characters. Improve comments.
3482 Don't reverse pos_before and pos_after for reversed glyph rows.
3483 Set cursor.x to negative value when the cursor might be on the
3484 left fringe.
3485 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3486 left fringe, not the right one.
3487 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3488 (erase_phys_cursor): For reversed cursor_row, support cursor on
3489 the left fringe.
3490
3491 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3492 of continuation indicators on the fringes.
3493 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3494 left fringe.
3495
3496 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3497 draw cursor on the left fringe.
3498
3499 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3500 cursor on the left fringe.
3501
3502 * dispnew.c (update_text_area): Handle reversed desired rows when
3503 the cursor is on the left fringe.
3504 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3505 below, not by 0, for when the cursor is on the left fringe.
3506
3507 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3508
3509 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3510 widget is a scrollbar.
3511
3512 2010-04-20 Kenichi Handa <handa@m17n.org>
3513
3514 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3515 only when the arg CHARSET_LIST is nil.
3516
3517 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3518
3519 Make variable forwarding explicit rather the using special values.
3520 Basically, this makes the structure of buffer-local values and object
3521 forwarding explicit in the type of Lisp_Symbols rather than use
3522 special Lisp_Objects for that. This tends to lead to slightly more
3523 verbose code, but is more C-like, simpler, and makes it easier to make
3524 sure we handled all cases, among other things by letting the compiler
3525 help us check it.
3526 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3527 Removing forwarding objects.
3528 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3529 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3530 explicit rather than hiding them inside Lisp_Object "values".
3531 (XFWDTYPE): New macro.
3532 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3533 (XBUFFER_LOCAL_VALUE): Remove.
3534 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3535 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3536 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3537 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3538 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3539 Remove the Lisp_Misc_* header.
3540 (struct Lisp_Buffer_Local_Value): Redefine.
3541 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3542 (struct Lisp_Misc_Any): Add filler to get the right size.
3543 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3544 Lisp_Intfwd.
3545 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3546 (DEFVAR_KBOARD): Allocate a forwarding object.
3547 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3548 (let_shadows_global_binding_p): New function.
3549 (union Lisp_Val_Fwd): New type.
3550 (make_blv): New function.
3551 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3552 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3553 (swap_in_symval_forwarding, find_symbol_value, Fset)
3554 (let_shadows_buffer_binding_p, set_internal, default_value)
3555 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3556 (Fkill_local_variable, Fmake_variable_frame_local)
3557 (Flocal_variable_p, Flocal_variable_if_set_p)
3558 (Fvariable_binding_locus):
3559 * xdisp.c (select_frame_for_redisplay):
3560 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3561 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3562 * frame.c (store_frame_param):
3563 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3564 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3565 value structure.
3566 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3567 (clone_per_buffer_values): Only adjust markers into the current buffer.
3568 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3569 (Fbuffer_local_value, set_buffer_internal_1)
3570 (swap_out_buffer_local_variables):
3571 Adapt to the new symbol value structure.
3572 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3573 (defvar_per_buffer): Take a new arg for the fwd object.
3574 (buffer_lisp_local_variables): Return a proper alist (different fix
3575 for bug#4138).
3576 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3577 (Fgarbage_collect): Don't handle buffer_defaults specially.
3578 (mark_object): Handle new symbol value structure rather than the old
3579 special Lisp_Misc_* objects.
3580 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3581 * term.c (set_tty_color_mode):
3582 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3583 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3584 a buffer_local_flags.
3585 * print.c (print_object): Get rid of impossible forwarding objects.
3586
3587 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3588
3589 * bidi.c (bidi_get_type, bidi_get_category)
3590 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
3591 (bidi_type_of_next_char, bidi_level_of_next_char):
3592 Declare static. Use `INLINE' rather than `inline'.
3593
3594 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
3595
3596 * dired.c (Ffile_attributes): Fix typo in docstring.
3597
3598 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3599
3600 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3601 NSInteger (Bug#5811).
3602
3603 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3604
3605 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3606 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3607
3608 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3609
3610 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3611
3612 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
3613
3614 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3615 terminal frames (Bug#5837).
3616
3617 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3618
3619 * .gdbinit (xsubchartable): New command.
3620
3621 2010-04-19 Eli Zaretskii <eliz@gnu.org>
3622
3623 * xdisp.c (display_line): Don't write beyond the last glyph row in
3624 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
3625 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3626 and
3627 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3628
3629 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3630
3631 * alloc.c (Fpurecopy): Hash-cons if requested.
3632 (syms_of_alloc): Update purify-flag docstring.
3633
3634 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3635
3636 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3637 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3638
3639 2010-04-17 Eli Zaretskii <eliz@gnu.org>
3640
3641 Fix a crash when an NSM character is inserted at BEGV.
3642
3643 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3644 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3645 NEUTRAL_B or UNKNOWN_BT.
3646
3647 2010-04-16 Eli Zaretskii <eliz@gnu.org>
3648
3649 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3650 other rows with cursor unless they are different from this row and
3651 this row is part of a continued line. (Bug#5943)
3652
3653 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3654
3655 * s/freebsd.h: Restore osreldate.h include.
3656 Suggested by Naohiro Aota.
3657
3658 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3659
3660 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3661
3662 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3663
3664 * s/cygwin.h: Avoid linking against static libgcc.
3665
3666 2010-04-15 Juri Linkov <juri@jurta.org>
3667
3668 * window.c: Add Qscroll_command.
3669 Remove Vscroll_preserve_screen_position_commands.
3670 (window_scroll_pixel_based, window_scroll_line_based): Check the
3671 `scroll-command' property on the last command instead of searching
3672 the last command in Vscroll_preserve_screen_position_commands.
3673 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3674 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3675 (scroll-preserve-screen-position): Doc fix.
3676 (Vscroll_preserve_screen_position_commands): Remove variable.
3677
3678 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3679
3680 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3681
3682 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3683
3684 Reduce cpp use in Makefile.in.
3685 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3686 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3687 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3688 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3689 (CRT0_COMPILE): Remove, inline it in the only user.
3690
3691 2010-04-14 Juri Linkov <juri@jurta.org>
3692
3693 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3694 `scroll-up-command' and `M-v' from `scroll-down' to
3695 `scroll-down-command'.
3696
3697 2010-04-14 Juri Linkov <juri@jurta.org>
3698
3699 * window.c (Vscroll_preserve_screen_position_commands): New variable
3700 with the default value as the list of Qscroll_down and Qscroll_up.
3701 (window_scroll_pixel_based, window_scroll_line_based): Search the
3702 last command in the list Vscroll_preserve_screen_position_commands
3703 instead of comparing with Qscroll_up and Qscroll_down.
3704
3705 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3706
3707 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3708 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3709 does that.
3710
3711 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3712 to zero.
3713
3714 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3715
3716 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3717
3718 Try to solve the problem of spurious EOF chars in long lines of text
3719 sent to interactive subprocesses.
3720 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3721 (system_process_attributes): Remove unused var `ttotal'.
3722 * process.c (send_process): Don't bother breaking long line with EOF
3723 chars when talking to ttys any more.
3724 (wait_reading_process_output): Output a warning when called in such
3725 a way that it could block without being interruptible.
3726
3727 Try to detect file modification within the same second.
3728 * buffer.h (struct buffer): New field modtime_size.
3729 * buffer.c (reset_buffer): Initialize it.
3730 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3731 (Fverify_visited_file_modtime): Check it.
3732 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3733 (Fset_visited_file_modtime): Set (or clear) it.
3734
3735 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3736
3737 * process.c (status_notify): Remove unused var `ro'.
3738
3739 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3740
3741 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3742 more than one visual (Bug#5938).
3743
3744 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3745
3746 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3747 Undefine.
3748
3749 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3750
3751 Remove C_SWITCH_SYSTEM_TEMACS.
3752 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3753 (malloc, realloc, free): Use emacs, not temacs for conditional
3754 definition.
3755
3756 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3757 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3758
3759 Use autoconf, not cpp for some variables.
3760 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3761 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3762 (ALL_CFLAGS): Use them as make variables.
3763 (really-lwlib, really-oldXMenu): Do not pass them.
3764
3765 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3766
3767 * xmenu.c (apply_systemfont_to_dialog): New.
3768 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3769
3770 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3771
3772 * process.c (exec_sentinel): Preserve current-buffer.
3773
3774 * process.c (read_process_output): Move the save-current-buffer to
3775 apply to both the filter and the non-filter branches.
3776
3777 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3778
3779 * s/msdos.h (UNEXEC): New definition.
3780
3781 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3782
3783 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3784 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3785
3786 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3787 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3788 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3789 TRY_WINDOW_CHECK_MARGINS.
3790
3791 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
3792 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3793 width only when it is for padding.
3794
3795 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3796
3797 * xfns.c (Fx_show_tip): Call try_window in a loop until
3798 fonts_changed_p is zero (Bug#2423).
3799
3800 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3801
3802 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3803 the end of TEXT_AREA. (Bug#5856)
3804
3805 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3806
3807 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3808 HAVE_GCONF.
3809
3810 2010-04-08 Eli Zaretskii <eliz@gnu.org>
3811
3812 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3813 prev.orig_type, for resolving type of NSM. (Bug#5858)
3814
3815 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3816
3817 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3818 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3819 in current_font.
3820 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
3821 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3822 New functions.
3823 (syms_of_xsettings): Initialize current_font.
3824 defsubr Sfont_get_system_normal_font.
3825
3826 * xsettings.h (Ffont_get_system_normal_font,
3827 xsettings_get_system_normal_font): Declare.
3828
3829 * xfns.c (extern xlwmenu_default_font): Remove.
3830 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3831 to xlwmenu.c.
3832
3833 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3834 menu items in UTF-8.
3835
3836 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3837 (apply_systemfont_to_menu): New function.
3838 (set_frame_menubar, create_and_show_popup_menu): Call
3839 apply_systemfont_to_menu.
3840
3841 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3842
3843 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3844 FRAME_LINE_TO_PIXEL_Y.
3845
3846 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3847 pixelwidth/height.
3848
3849 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3850
3851 Simplify code for HP machines.
3852 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3853 for GNU_LINUX, not needed.
3854 (UNEXEC, NEED_BSDTTY): Move definitions...
3855 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3856
3857 * m/iris4d.h (UNEXEC): Move definition ...
3858 * s/irix6-5.h (UNEXEC): ... here.
3859
3860 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3861
3862 * xfns.c (set_machine_and_pid_properties): New function.
3863 (Fx_create_frame): Call set_machine_and_pid_properties.
3864
3865 2010-04-03 Eli Zaretskii <eliz@gnu.org>
3866
3867 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3868 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3869 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3870
3871 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3872 in this function. (Bug#5703)
3873
3874 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
3875
3876 * nsterm.h: Fix last change.
3877
3878 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3879
3880 * m/intel386.h (NO_REMAP): Move definition ...
3881 * s/msdos.h (NO_REMAP): ... here.
3882
3883 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3884
3885 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3886 used on those platforms.
3887
3888 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3889
3890 Remove extern errno declarations.
3891 * xterm.c:
3892 * xrdb.c:
3893 * w32term.c:
3894 * unexec.c:
3895 * unexaix.c:
3896 * sysdep.c:
3897 * process.c:
3898 * lread.c:
3899 * keyboard.c:
3900 * floatfns.c:
3901 * filelock.c:
3902 * fileio.c:
3903 * emacs.c (main):
3904 * ecrt0.c:
3905 * dispnew.c:
3906 * callproc.c:
3907 * buffer.c: Remove errno extern declarations.
3908 * s/netbsd.h (NEED_ERRNO): Remove.
3909
3910 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3911
3912 Remove all uses of LIBX11_SYSTEM.
3913 * Makefile.in (LIBX11_SYSTEM): Remove.
3914 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3915 instead.
3916
3917 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3918
3919 Remove support for DJGPP v1.x (bug#5813).
3920
3921 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
3922 * s/msdos.h:
3923 * unexec.c (make_hdr, copy_text_and_data):
3924 * sysdep.c (wait_for_termination, sys_subshell):
3925 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
3926 (IT_set_terminal_modes, __write, _rename, gethostname)
3927 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3928 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3929 the value of __DJGPP__.
3930 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3931 compatibility code.
3932 * lread.c:
3933 * gmalloc.c (memalign):
3934 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3935 * emacs.c (main):
3936 * dosfns.c (init_dosfns):
3937 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3938
3939 2010-04-01 Eli Zaretskii <eliz@gnu.org>
3940
3941 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3942 string with `cursor' property comes from an `after-string'
3943 overlay. (Bug#5816)
3944
3945 2010-04-01 Glenn Morris <rgm@gnu.org>
3946
3947 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3948 Define as Makefile variables.
3949 (LIBX): Use above variables rather than directly using autoconf.
3950
3951 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3952
3953 Clean up BSD_SYSTEM use.
3954 * xterm.c:
3955 * process.c:
3956 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3957 for including <sys/ioctl.h>.
3958 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3959 code is only used for MSDOS.
3960
3961 2010-03-31 Juri Linkov <juri@jurta.org>
3962
3963 * image.c: Add `Qextension_data'.
3964 (syms_of_image): Initialize and staticpro `Qextension_data'.
3965 (Fimage_metadata): Rename from `Fimage_extension_data'.
3966 (gif_load): Put GIF extension data to the property
3967 `Qextension_data'.
3968
3969 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3972 * nsterm.h: Fix prototype.
3973
3974 2010-03-31 Eli Zaretskii <eliz@gnu.org>
3975
3976 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3977 trailing whitespace in right-to-left rows.
3978
3979 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3980
3981 Get rid of the direct_output optimizations.
3982 * keyboard.c (nonundocount): Remove extern declaration.
3983 (command_loop_1): Remove brittle optimisation for cheap and
3984 common operations.
3985 * xdisp.c (redisplay_internal): Don't bother checking
3986 redisplay_performed_directly_p any more.
3987 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3988 any more.
3989 * dispnew.c (redisplay_performed_directly_p)
3990 (direct_output_for_insert, direct_output_forward_char):
3991 * dispextern.h (redisplay_performed_directly_p)
3992 (direct_output_for_insert, direct_output_forward_char): Remove.
3993 * cmds.c (nonundocount): Make it static.
3994
3995 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
3996
3997 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3998
3999 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
4000
4001 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4002 invisible (Bug#5766).
4003
4004 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
4005
4006 * xdisp.c (x_consider_frame_title, update_window_cursor):
4007 Remove HAVE_NS conditionals.
4008 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
4009
4010 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4011 filename for the title.
4012 (ns_set_doc_edited): Do nothing if the selected window is a
4013 minibuffer window.
4014
4015 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4016 ns_set_doc_edited.
4017
4018 * nsterm.m: Remove unneeded prototype.
4019
4020 2010-03-31 Glenn Morris <rgm@gnu.org>
4021
4022 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4023 in the DOC file. (Bug#5336)
4024
4025 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
4026
4027 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4028
4029 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4030
4031 * window.c (keys_of_window): Remove redundant/overridden bindings.
4032
4033 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4034
4035 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4036 Restore original behavior when the iterator is not bidi_p.
4037
4038 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4039
4040 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4041
4042 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4043
4044 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4045 are outside the range of cached character positions.
4046
4047 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
4048
4049 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4050
4051 2010-03-30 Eli Zaretskii <eliz@gnu.org>
4052
4053 Initial support for bidirectional editing.
4054
4055 * Makefile.in (obj): Include bidi.o.
4056 (bidi.o): New target.
4057
4058 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4059 ($(BLD)/bidi.$(O)): New target.
4060
4061 * bidi.c: New file.
4062
4063 * buffer.h (struct buffer): New members bidi_display_reordering
4064 and bidi_paragraph_direction.
4065
4066 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4067 and bidi_paragraph_direction.
4068 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4069 and bidi-paragraph-direction.
4070 (Fbuffer_swap_text): Swap the values of
4071 bidi_display_reordering and bidi_paragraph_direction.
4072
4073 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4074 (bidi_type_t, bidi_dir_t): New types.
4075 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4076 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4077 prev_stop, base_level_stop, and eol_pos.
4078 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4079 (IT_STACK_SIZE): Enlarge to 5.
4080 (struct glyph_row): New member reversed_p.
4081 <string_buffer_position>: Update prototype.
4082 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4083 glyph_row if bidi_it.paragraph_dir == R2L.
4084 (struct glyph): New members resolved_level and bidi_type.
4085
4086 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4087 processing or buffer's direction is right-to-left.
4088 (prepare_desired_row): Preserve the reversed_p flag.
4089 (row_equal_p): Compare the reversed_p attributes as well.
4090
4091 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4092 bidi_init_it and set it->paragraph_embedding from the current
4093 buffer's value of bidi_paragraph_direction.
4094 (reseat_1): Initialize bidi_it.first_elt.
4095 (set_iterator_to_next, next_element_from_buffer): Use the value of
4096 paragraph_embedding to determine the paragraph direction.
4097 (set_iterator_to_next): Under bidi reordering, call
4098 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4099 new_paragraph flag is set in the bidi iterator.
4100 (next_element_from_buffer): If bidi_it.first_elt is set,
4101 initialize paragraph direction and find the first character to
4102 display in the visual order. If reseated to a middle of a line,
4103 prime the bidi iterator starting at the line's beginning. Handle
4104 the situation where we overstepped stop_charpos due to
4105 non-linearity of the bidi iteration. Likewise for when we back up
4106 beyond the previous stop_charpos. When moving across stop_charpos,
4107 record it in prev_stop.
4108 (display_line): Set row->end and it->start for the next row to the
4109 next character in logical order. Always extend reversed_p rows to
4110 the end of line, even if they end at ZV. Copy the reversed_p flag
4111 to the next glyph row. Keep calling set_cursor_from_row for
4112 bidi-reordered rows even if we already have a possible candidate
4113 for cursor position. Set row_end after all the row's glyphs have
4114 been produced, by looping over the glyphs. Record the position
4115 after EOL in it->eol_pos, and use it to set end_pos of the last
4116 row produced for a continued line.
4117 <Qright_to_left, Qleft_to_right>: New variables.
4118 (syms_of_xdisp): Initialize and staticpro them.
4119 (string_buffer_position_lim): New function.
4120 (string_buffer_position): Most of code moved to
4121 string_buffer_position_lim. Last argument and return value are
4122 now EMACS_INT; all callers changed.
4123 (set_cursor_from_row): Rewritten to support bidirectional text and
4124 reversed glyph rows.
4125 (text_outside_line_unchanged_p, try_window_id): Disable
4126 optimizations if we are reordering bidirectional text and the
4127 paragraph direction can be affected by the change.
4128 (append_glyph, append_composite_glyph)
4129 (produce_image_glyph, append_stretch_glyph): Set the
4130 resolved_level and bidi_type members of each glyph.
4131 (append_glyph): If the glyph row is reversed, prepend the glyph
4132 rather than appending it.
4133 (handle_stop_backwards): New function.
4134 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4135 (reseat): call handle_stop_backwards to recompute prev_stop and
4136 base_level_stop for the new position.
4137 (handle_invisible_prop): Under bidi iteration, skip invisible text
4138 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4139 paragraph direction. Update IT->prev_stop after skipping
4140 invisible text.
4141 (move_it_in_display_line_to): New variables prev_method
4142 and prev_pos. Compare for strict equality in
4143 BUFFER_POS_REACHED_P.
4144 (try_cursor_movement): Examine all the candidate rows that occlude
4145 point, to return the best match. If rows are bidi-reordered
4146 and point moved backwards, back up to the row that is not a
4147 continuation line, and start looking for a suitable row from
4148 there.
4149
4150 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4151 rather than appending, if the glyph_row's reversed_p flag is set.
4152 Set the resolved_level and bidi_type members of each glyph.
4153
4154 * .gdbinit (pbiditype): New command.
4155 (pgx): Use it to display bidi level and type of the glyph.
4156 (pitx): Display some bidi information about the iterator.
4157 (prowlims, pmtxrows): New commands.
4158
4159 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4160
4161 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4162 * s/usg5-4.h (LIBS_DEBUG):
4163 * s/irix6-5.h (C_DEBUG_SWITCH):
4164 * s/gnu-linux.h (LIBS_DEBUG):
4165 * s/darwin.h (LIBS_DEBUG):
4166 * s/bsd-common.h (LIBS_DEBUG):
4167 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4168 * m/iris4d.h (LIBS_DEBUG):
4169 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4170
4171 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4172 (LIBS_DEBUG): Remove definition.
4173
4174 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
4175
4176 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4177 Windows.
4178
4179 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4180
4181 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4182 `connect' (Bug#5723).
4183
4184 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
4185
4186 * process.c (Fmake_network_process): Call `select' for interrupted
4187 `connect' rather than creating new socket (Bug#5173).
4188
4189 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
4190
4191 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4192
4193 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4194
4195 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4196
4197 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4198
4199 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4200 XLoadQueryFont.
4201
4202 2010-03-24 Kenichi Handa <handa@m17n.org>
4203
4204 * coding.c (decode_coding_ccl): Fix previous change for the
4205 multibyte case.
4206 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4207 case that the output buffer is fullfilled.
4208 (encode_coding): Setup ccl program here.
4209
4210 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4211
4212 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4213
4214 Simplify LIBS_MACHINE definitions.
4215 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4216 * m/iris4d.h (LIBS_MACHINE): Likewise.
4217 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4218 * s/aix4-2.h (LIBS_SYSTEM): ... here.
4219 * s/netbsd.h: Remove commented out code.
4220
4221 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4222
4223 Remove dead code dealing with POSIX_SIGNALS.
4224 * atimer.c (set_alarm): Remove dead code, all USG systems define
4225 POSIX_SIGNALS.
4226 * data.c (arith_error): Likewise.
4227 * keyboard.c (input_available_signal, handle_user_signal)
4228 (interrupt_signal): Likewise.
4229 * process.c (sigchld_handler): Likewise.
4230 (create_process): Remove if 0 code. Remove HPUX conditional when
4231 !defined (POSIX_SIGNALS), it cannot be true.
4232 * syssignal.h: Remove USG5_4 and USG conditionals when
4233 !POSIX_SIGNALS, they cannot be true.
4234
4235 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4236 NO_SOCK_SIGIO, not used anymore.
4237
4238 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4239
4240 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4241 support vax on BSDs.
4242
4243 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4244 * s/aix4-2.h (ORDINARY_LINK): ... here.
4245
4246 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4247
4248 * Makefile.in (abs_builddir): Define.
4249 (bootstrap_exe): Use it.
4250 (VPATH): Use $(srcdir) instead of @srcdir@.
4251
4252 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4253
4254 * Makefile.in (bootstrap_exe): Use an absolute name.
4255
4256 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4257
4258 Remove support for old GNU/Linux using libc version 5.
4259 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4260 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4261
4262 Consolidate redundant definitions in s/bsd-common.h.
4263 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4264 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4265 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4266 doing it in all files that include this one.
4267 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4268 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4269 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4270 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4271 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4272 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4273 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4274 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4275 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4276
4277 Consolidate redundant definitions.
4278 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4279 it's undefined in all files that include this one.
4280 (POSIX_SIGNALS): Define here instead of doing it in all files that
4281 include this one.
4282 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4283 (POSIX_SIGNALS): Do not define.
4284 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4285 (POSIX_SIGNALS): Do not define.
4286 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4287 (POSIX_SIGNALS): Do not define.
4288
4289 Remove support for old UNIX System V systems.
4290 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4291 * s/usg-5-4-2.h: Remove.
4292
4293 Remove support for Solaris on PPC and for old versions.
4294 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4295 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4296 that cancel each other.
4297 * s/sol2-3.h:
4298 * s/sol2-4.h:
4299 * s/sol2-5.h: Remove.
4300 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4301 (NO_REMAP): Remove, unused.
4302 (UNEXEC): Move definition ...
4303 * s/aix4-2.h (UNEXEC): ... here.
4304
4305 * s/openbsd.h: Remove support for non-ELF and for systems that do
4306 not support shared libraries.
4307 * s/netbsd.h:
4308 * s/freebsd.h: Likewise.
4309
4310 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4311
4312 Remove non-working support for lynxos 3.0.
4313 * s/lynxos.h: Remove file.
4314
4315 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4316 COFF_BSD_SYMBOLS, nothing defines it anymore.
4317
4318 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4319
4320 Remove obsolete uses of HAVE_SHM.
4321 * emacs.c (standard_args):
4322 (Fdump_emacs):
4323 (syms_of_emacs): Remove code depending on HAVE_SHM.
4324
4325 * alloc.c: Remove HAVE_SHM dependent definition.
4326
4327 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4328
4329 2010-03-18 Glenn Morris <rgm@gnu.org>
4330
4331 * emacs.c (USAGE4): Hard-code bug address.
4332 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4333 (bug_reporting_address): Remove.
4334 (main): Don't call bug_reporting_address.
4335
4336 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4337 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4338
4339 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
4340
4341 * xfns.c (Fx_create_frame):
4342 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4343 on left.
4344
4345 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4346
4347 * editfns.c (Fformat): Account for string precision when computing
4348 field width (Bug#5710).
4349
4350 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
4351
4352 * xfns.c (Fx_create_frame): Set default to Qright.
4353
4354 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4355 all window systems.
4356
4357 2010-03-12 Eli Zaretskii <eliz@gnu.org>
4358
4359 These changes remove termcap.c from the build on Posix platforms.
4360 * Makefile.in (termcapobj): Move termcap.o from here...
4361 (MSDOS_OBJ): ...to here.
4362 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4363 now identical to when LIBS_TERMCAP is defined.
4364
4365 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4366
4367 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4368
4369 * config.in: Regenerated. (See top-level ChangeLog.)
4370
4371 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
4372
4373 * Branch for 23.2.
4374
4375 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4376
4377 Cleanup setup of gl_state in various parts of the code.
4378 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4379 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4380 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4381 (skip_chars):
4382 * regex.c (regex_compile): Use it.
4383 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4384 it's now set in regex_compile when/if we need it.
4385
4386 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4387
4388 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4389 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4390 (QUIT): Use it to consolidate code and remove redundancy.
4391 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4392
4393 * regex.c (regex_compile): Setup gl_state as well.
4394
4395 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4396 (in_classes): Use CONSP before XCAR/XCDR.
4397
4398 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
4399
4400 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4401 definitions, so that keyboard macros are correctly handled
4402 (Bug#5481).
4403
4404 2010-03-02 Eli Zaretskii <eliz@gnu.org>
4405
4406 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4407 text that could be relocated inside the call to emacs_mule_char.
4408 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4409 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4410
4411 2010-03-02 Kenichi Handa <handa@m17n.org>
4412
4413 * character.c (parse_str_as_multibyte): Fix handling of the
4414 multibyte form of raw-bytes.
4415 (str_as_multibyte): Likewise.
4416
4417 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4418 form of raw-bytes.
4419
4420 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
4421
4422 * charset.c (load_charset_map_from_file)
4423 (load_charset_map_from_vector): Zero out allocated
4424 charset_map_entries before using them.
4425
4426 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4427
4428 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4429
4430 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
4431
4432 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4433 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
4434
4435 2010-02-26 Kenichi Handa <handa@m17n.org>
4436
4437 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4438
4439 * xdisp.c (reseat_to_string): Fix previous change.
4440
4441 2010-02-26 David Reitter <david.reitter@gmail.com>
4442
4443 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4444 Lisp_Object (Bug#4736).
4445
4446 2010-02-25 Kenichi Handa <handa@m17n.org>
4447
4448 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4449
4450 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4451
4452 * xterm.c (XTflash): Move declarations before statements.
4453
4454 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4455 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4456 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4457 (xg_create_tool_bar): Remove unused variables.
4458 (x_wm_set_size_hint): Move declarations before statements.
4459 (xg_create_frame_widgets): Remove variable grav.
4460
4461 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
4462
4463 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4464
4465 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4466
4467 * term.c (fatal): Add a final \n if needed (bug#5596).
4468
4469 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
4470
4471 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4472
4473 2010-02-18 Glenn Morris <rgm@gnu.org>
4474
4475 * callint.c (Finteractive): Doc fix.
4476
4477 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4478
4479 * coding.c (record_conversion_result):
4480 Handle CODING_RESULT_INSUFFICIENT_DST.
4481 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4482 memory allocation error.
4483
4484 2010-02-17 Kenichi Handa <handa@m17n.org>
4485
4486 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4487 Fix for the case that the output buffer is fullfilled.
4488 (decode_coding): Setup ccl program here. Keep looping when the
4489 decoder stopped because the output buffer is
4490 fullfilled (bug#5534).
4491
4492 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4493
4494 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4495
4496 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
4497 bug #5571.
4498 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
4499 overdrawn.
4500
4501 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4502
4503 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4504 doing_interact here.
4505 (ice_connection_closed): New function.
4506 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4507 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4508 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4509 returns I/O error.
4510 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4511 bug #5512.
4512
4513 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
4514
4515 * nsfont.m (nsfont_open): The system's value for the font descent
4516 is negative, so round it down to avoid clipping.
4517
4518 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
4519
4520 * charset.c (load_charset_map_from_file)
4521 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
4522 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
4523
4524 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
4525
4526 * charset.c (load_charset_map_from_file): Allocate large
4527 charset_map_entries structure on the heap rather than the stack.
4528 (Bug#5526).
4529
4530 2010-01-31 Kenichi Handa <handa@m17n.org>
4531
4532 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
4533 size in NAME is invalid, return -1 (Bug#5396).
4534
4535 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
4536
4537 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4538 <deactivated@gmail.com> (Bug#3605).
4539
4540 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
4541
4542 * fileio.c (Frename_file): Correctly rename symlinks to
4543 directories (Bug#5496).
4544
4545 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4546
4547 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4548
4549 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4550
4551 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4552
4553 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * frame.c (DEFAULT_ROWS): Change default to 35.
4556
4557 * xfns.c (x_default_font_parameter): Change default XFT font to
4558 monospace-10 (Bug#3643).
4559
4560 2010-01-29 Eli Zaretskii <eliz@gnu.org>
4561
4562 * w32inevt.c (key_event): Remove unnecessary comparison of
4563 event->uChar.AsciiChar with 128.
4564
4565 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
4566
4567 * fileio.c (Frename_file): Fix last change (Bug#5487).
4568
4569 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4570
4571 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4572
4573 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4574
4575 * xfns.c (Fx_create_frame): Remove window size matching code from
4576 2010-01-15.
4577 (x_get_current_desktop, x_get_desktop_workarea): Remove.
4578
4579 2010-01-27 Jason Rumney <jasonr@gnu.org>
4580
4581 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
4582 (key_event): Use unicode for characters 128 and higher (Bug#4567).
4583
4584 2010-01-27 Kenichi Handa <handa@m17n.org>
4585
4586 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4587 pattern string (Bug#4209).
4588
4589 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
4590
4591 * fileio.c (Frename_file): Call copy-directory and
4592 delete-directory for directories, in order to handle cross-device
4593 renaming (Bug#3353).
4594
4595 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4596
4597 * xfns.c (Fx_create_frame): If frame height is too big, try
4598 sizes 24 and 10. Bug #3643.
4599
4600 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4602 Try and fix bug#788, hopefully for real this time.
4603 * keymap.c (shadow_lookup): Add `remap' arg.
4604 (describe_map, describe_vector): Update calls to shadow_lookup.
4605 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4606 `remapped' so this flag is applicable to `sequence'. Be careful to
4607 perform remapping during shadow_lookup check of remapped_sequences.
4608
4609 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4610
4611 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4612 png_check_sig, which has been removed in libpng 1.4.
4613
4614 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4615
4616 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4617 lacks this header file).
4618
4619 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4620
4621 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4622 as in Emacs 22.
4623
4624 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4625
4626 * lisp.h (make_pure_string): String pointer arg now points to const.
4627
4628 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4629 args now point to const.
4630
4631 2010-01-22 Eli Zaretskii <eliz@gnu.org>
4632
4633 * lread.c (Fload): Don't treat files without .elc extension as
4634 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4635 them. (bug#5303)
4636
4637 2010-01-20 Kenichi Handa <handa@m17n.org>
4638
4639 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4640 treat the source as actual byte sequence.
4641
4642 2010-01-19 Alan Mackenzie <acm@muc.de>
4643
4644 Fix spurious before-change-functions invocation from (insert ?\n).
4645 * textprop.c (set_text_properties): Rename parameter
4646 `signal_after_change_p' to `coherent_change_p', and make the
4647 invocation of `modify_region' conditional on it.
4648
4649 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4650
4651 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4652 for debug purpose.
4653 (syms_of_xsettings): Declare xft-settings.
4654
4655 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
4656
4657 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4658
4659 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4660
4661 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4662
4663 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
4664
4665 * emacs.c (standard_args): Adjust arg priorities to reflect how
4666 they are processed in startup.el.
4667
4668 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4669
4670 * Makefile.in (lisp, shortlisp): Update.
4671
4672 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4673
4674 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4675 code, link the new kboard into all_kboard before running Lisp code,
4676 and protect the new terminal with GCPRO (Bug#5365).
4677 (x_term_init): Remove unused var `atom'.
4678 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4679
4680 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4681
4682 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4683 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4684 to find out usable size of the desktop. Don't make frames larger than
4685 this. Bug #3643.
4686
4687 2010-01-15 Kenichi Handa <handa@m17n.org>
4688
4689 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4690
4691 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
4692
4693 * nsterm.m (Qnone): Define.
4694
4695 * nsfns.m (Qnone): Move definition to nsterm.m.
4696
4697 2010-01-14 Kenichi Handa <handa@m17n.org>
4698
4699 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4700 systems.
4701
4702 2010-01-14 Kenichi Handa <handa@m17n.org>
4703
4704 Make auto-composition work on all buffers even if they are
4705 fundamental mode.
4706
4707 * composite.c (Vauto_composition_mode): New variable.
4708 (composition_compute_stop_pos): Check Vauto_composition_mode
4709 instead of Vauto_composition_function.
4710 (composition_adjust_point, Ffind_composition_internal): Likewise.
4711 (syms_of_composite): Declare Lisp variable
4712 "auto-composition-mode" here.
4713
4714 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
4715
4716 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4717 during call to vendor-specific-keysyms (Bug#5365).
4718
4719 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4720
4721 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4722 Call SIGNAL_THREAD_CHECK (Bug#5333).
4723
4724 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4725 Call SIGNAL_THREAD_CHECK.
4726
4727 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4728
4729 Try to fix bug#5314. This is probably not the final word, tho.
4730 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4731 recent-auto-save-p as a side-effect.
4732 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4733 * buffer.c (Fkill_buffer, reset_buffer):
4734 * editfns.c (Fsubst_char_in_region):
4735 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4736 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4737
4738 2010-01-13 Kenichi Handa <handa@m17n.org>
4739
4740 Display buffer name, etc. in mode line by composing correctly.
4741
4742 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4743 STRING is not nil.
4744 (display_mode_element): Adjust for the change of
4745 decode_mode_spec and display_line.
4746 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4747 (display_string): Handle the case that STRING is non-null and
4748 LISP_STRING is not nil.
4749
4750 * xterm.c (x_draw_composite_glyph_string_foreground):
4751 Pay attention to s->face->overstrike.
4752
4753 * composite.c (composition_reseat_it): Don't check PT if STRING is
4754 non nil.
4755
4756 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4757
4758 * keyboard.c (read_char): Don't apply previous change when current
4759 buffer is unchanged by command execution.
4760
4761 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4762
4763 * keyboard.c (read_char): Return after executing from special map.
4764
4765 2010-01-12 Glenn Morris <rgm@gnu.org>
4766
4767 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4768 bug-gnu-emacs rather than emacs-pretest-bug.
4769
4770 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
4771
4772 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4773 initializing the Lisp variables that depend on them.
4774
4775 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4776
4777 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4778 Clear areas that will not be updated after change of menu bar lines.
4779 Clear the menu bar window's current matrix when the window gets empty.
4780
4781 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
4782
4783 * intervals.h, textprop.c (extend_property_ranges): Return value
4784 and args changed. Discard properties that begin at or after the
4785 new end (Bug#5306).
4786
4787 * editfns.c (Fformat): Caller changed.
4788
4789 * nsterm.m (ns_set_default_prefs): Delete function.
4790 (syms_of_nsterm): Initialize ns_command_modifier,
4791 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4792 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4793
4794 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4795 position (Bug#4040).
4796
4797 2010-01-09 Eli Zaretskii <eliz@gnu.org>
4798
4799 * editfns.c (Ffloat_time): Doc fix.
4800
4801 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4802
4803 * xfns.c (Fx_create_frame): Don't create frame larger than display
4804 by default bug#3643.
4805
4806 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4807
4808 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4809 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4810 windows above internal border.
4811
4812 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4813 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4814 windows above internal border.
4815
4816 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4817 tool bar windows specially.
4818
4819 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4820
4821 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4822 specially.
4823 (XTflash): Take account of menu bar height.
4824
4825 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4826 specially.
4827
4828 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4829
4830 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
4831 also be true before we can return early (bug #5339).
4832
4833 2010-01-06 David Reitter <david.reitter@gmail.com>
4834
4835 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4836 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4837 (Bug#3233).
4838
4839 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4840
4841 * font.c (font_open_entity): Enable chache and call cached_font_ok
4842 for the driver if defined.
4843 (QCuser_spec): New symbol.
4844 (font_spec_from_name): Save name as user-spec.
4845 (font_load_for_lface): Keep user-spec instead of name.
4846 (font_open_by_name): Save name as user-spec.
4847 (syms_of_font): Initialize QCuser_spec.
4848 (font_clear_prop): Clear name if it exists in font (bug#5157).
4849
4850 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4851 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4852 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4853
4854 * font.h (struct font_driver): Add cached_font_ok.
4855
4856 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4857
4858 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4859
4860 * xterm.c (x_new_font): Move code for setting rows/cols before
4861 resizing ...
4862 (x_set_window_size): ... to here. Bug #2568.
4863
4864 * gtkutil.c (xg_clear_under_internal_border): New function.
4865 (xg_frame_resized, xg_frame_set_char_size):
4866 Call xg_clear_under_internal_border.
4867 (xg_update_scrollbar_pos): Clear under old scroll bar position.
4868
4869 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
4870
4871 * keyboard.c (read_key_sequence): Catch keyboard switch after
4872 making a new tty frame (Bug#5095).
4873
4874 2010-01-05 Kenichi Handa <handa@m17n.org>
4875
4876 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4877
4878 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4879
4880 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4881 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4882 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4883
4884 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
4885
4886 * dbusbind.c (xd_add_watch): Improve debug message.
4887 (xd_remove_watch): Improve debug message. If DATA is the session
4888 bus, unset D-Bus session environment.
4889 (Fdbus_init_bus): Pass the bus as argument to
4890 dbus_connection_set_watch_functions. (Bug#5283)
4891
4892 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
4893
4894 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4895
4896 * lread.c (syms_of_lread): Make it clearer that these are the
4897 names of loaded files (Bug#5068).
4898
4899 * eval.c (run_hook_with_args): Handle the case where the global
4900 value has the obsolete single-function form (Bug#5026).
4901
4902 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * minibuf.c (Fall_completions): Minor optimization.
4905
4906 2009-12-26 Eli Zaretskii <eliz@gnu.org>
4907
4908 * .gdbinit (pgx): Fix display of composite glyphs.
4909 Display cmp.from and cmp.to as well.
4910 (pitx): Fix last change.
4911
4912 2009-12-25 Kenichi Handa <handa@m17n.org>
4913
4914 * composite.h (composition_adjust_point): Update prototype.
4915
4916 * composite.c (composition_reseat_it): Don't make a composition
4917 spanning over point.
4918 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4919 composable characters.
4920 (composition_adjust_point): New arg NEW_PT. Callers changed.
4921
4922 * keyboard.c (command_loop_1): Force redisplay if the last point
4923 was within a composition.
4924 (adjust_point_for_property): Don't adjust point for automatic
4925 composition when called after buffer modification.
4926
4927 2009-12-19 Eli Zaretskii <eliz@gnu.org>
4928
4929 * .gdbinit (pitx): Don't use enum names, use their values.
4930 Remove reference to non-existing value GET_FROM_COMPOSITION.
4931 (pgx): Don't use enum names, use their values.
4932 (pitmethod): New helper command.
4933 (pitx): Use it to display iteration method.
4934 (pgrowit): New command.
4935
4936 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4937
4938 Update dependencies in Makefile.in.
4939
4940 * Makefile.in (alloc.o): Depend on termhooks.h.
4941 (atimer.o): Depend on blockinput.h.
4942 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4943 and frame.h.
4944 (callint.o): Depend on systime.h, coding.h, and composite.h.
4945 (callproc.o): Depend on buffer.h.
4946 (casefiddle.o): Don't depend on charset.h.
4947 (casetab.o): Depend on character.h.
4948 (ccl.o): Depend on composite.h.
4949 (chartab.o): Depend on ccl.h.
4950 (cm.o): Depend on dispextern.h.
4951 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4952 (coding.o): Don't depend on $(INTERVALS_H).
4953 (composite.o): Don't depend on dispextern.h explicitly (it's in
4954 $(INTERVALS_H)). Depend on ccl.h.
4955 (data.o): Depend on systime.h, coding.h, composite.h,
4956 dispextern.h, font.h, and ccl.h.
4957 (dired.o): Depend on composite.h.
4958 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4959 composite.h (it's in $(INTERVALS_H)).
4960 (doc.o): Depend on systime.h, coding.h, and composite.h.
4961 (editfns.o): Don't depend explicitly on dispextern.h.
4962 (emacs.o): Depend on frame.h and coding.h.
4963 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4964 (fileio.o): Depend on frame.h and commands.h. Don't depend
4965 explicitly on dispextern.h.
4966 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4967 composite.h.
4968 (fns.o): Don't depend on termhooks.h.
4969 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4970 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4971 coding.h, $(INTERVALS_H), window.h, xterm.h.
4972 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4973 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4974 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4975 fontset.h, ccl.h, and ftfont.h.
4976 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4977 (gtkutil.o): Depend on dispextern.h and composite.h.
4978 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4979 termhooks.h, and ccl.h.
4980 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4981 (intervals.o): Depend on systime.h and coding.h.
4982 (keyboard.o): Depend on composite.h and coding.h.
4983 (keymap.o): Depend on coding.h and frame.h.
4984 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4985 (macros.o): Depend on systime.h, coding.h, and composite.h.
4986 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4987 and atimer.h.
4988 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4989 dispextern.h explicitly.
4990 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4991 Don't depend explicitly on dispextern.h and composite.h.
4992 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4993 (regex.o): Don't depend on charset.h.
4994 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4995 (search.o): Don't depend explicitly on composite.h.
4996 (sound.o): Depend on atimer.h and systime.h.
4997 (syntax.o): Don't depend explicitly on composite.h.
4998 (sysdep.o): Depend on coding.h and composite.h.
4999 (term.o): Depend on xterm.h and buffer.h.
5000 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5001 (textprop.o): Don't depend on dispextern.h explicitly.
5002 (undo.o): Depend on dispextern.h.
5003 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5004 dispextern.h and composite.h explicitly.
5005 (xdisp.o): Depend on ccl.h.
5006 (xfaces.o): Depend on coding.h and ccl.h.
5007 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5008 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5009 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5010 ftfont.h.
5011 (xgselect.o): New dependency.
5012 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5013 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5014 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5015 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5016 (xsmfns.o): Depend on frame.h and dispextern.h.
5017 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5018 sysselect.h.
5019
5020 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5021
5022 * font.c (Fclear_font_cache): Pass correct cache argument to
5023 font_clear_cache.
5024
5025 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5026
5027 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5028 twice.
5029
5030 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
5031
5032 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5033 calling file-remote-p. Reported by Jim Meyering.
5034
5035 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
5036
5037 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
5038 avoid compiler warnings. (Bug #5217)
5039
5040 2009-12-14 Kenichi Handa <handa@m17n.org>
5041
5042 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5043 in 8-bit encoding.
5044
5045 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
5046
5047 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5048 tooltip windows.
5049
5050 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5051
5052 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5053 Xatom_net_window_type.
5054
5055 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5056 Xatom_net_window_type.
5057
5058 * xterm.c (my_log_handler): New function.
5059 (x_term_init): Set my_log_handler as log handler during gtk_init
5060 so we can filter out buggy messages. (Bug #5120).
5061
5062 * xterm.c (xg_scroll_callback): Parameter list changed,
5063 use parameter GtkScrollType to determine scroll/line/page.
5064 Only allow dragging if a button < 4 is grabbed (bug #5177).
5065 (xg_end_scroll_callback): New function.
5066 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5067 xg_create_scroll_bar.
5068
5069 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5070 (scroll_end_callback): Remove.
5071 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5072 button-release-event. Replace value-changed event with change-value,
5073 bug #5177.
5074 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5075 bug #5177.
5076
5077 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5078 (xg_create_scroll_bar): Add GCallback end_callback.
5079
5080 * xftfont.c (QClcdfilter): New variable.
5081 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5082 (syms_of_xftfont): Initialize QClcdfilter.
5083
5084 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5085
5086 * xsettings.c (struct xsettings): Add member seen.
5087 (parse_xft_settings): Update member seen with what we have read.
5088 Return non-zero if Xft-settings have been parsed, 0 otherwise.
5089 (apply_xft_settings): Only update Xft settings with what member seen
5090 indicates as new.
5091
5092 2009-12-12 Eli Zaretskii <eliz@gnu.org>
5093
5094 * dispextern.h (struct text_pos): Use EMACS_INT.
5095 (struct glyph): Use EMACS_INT for charpos.
5096 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5097 region_beg_charpos, region_end_charpos,
5098 redisplay_end_trigger_charpos, and also for
5099 iterator_stack_entry.end_charpos and
5100 iterator_stack_entry.stop_charpos.
5101
5102 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5103
5104 * gtkutil.c (scroll_end_callback): New function (bug #5177).
5105 (xg_create_scroll_bar): Call scroll_end_callback on button release
5106 event (bug #5177).
5107 (xg_event_is_for_scrollbar): != replaced with ==.
5108
5109 2009-12-12 Kenichi Handa <handa@m17n.org>
5110
5111 * ftfont.c (struct ftfont_info): New member matrix.
5112 (ftfont_open): Setup xftfont_info->matrix.
5113 (MFLTFontFT): New member matrix.
5114 (FLOOR, CEIL, ROUND): New macros.
5115 (ftfont_get_metrics): Handle matrix transformation.
5116 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5117
5118 * xftfont.c (struct xftfont_info): New member matrix.
5119 (xftfont_open): Setup xftfont_info->matrix.
5120
5121 2009-12-10 Kenichi Handa <handa@m17n.org>
5122
5123 * xdisp.c (append_space_for_newline): Consider face-remapping.
5124
5125 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5126
5127 * xsettings.c: Include "keyboard.h".
5128
5129 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5130
5131 Fix implicit function declarations.
5132 * cmds.c: Include "frame.h".
5133 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5134 * frame.h: Move declaration of delete_frame outside of
5135 HAVE_WINDOW_SYSTEM.
5136
5137 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5138
5139 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5140
5141 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5142 GTK builds.
5143
5144 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5145
5146 * unexelf.c (unexec): Don't search for .data twice.
5147
5148 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
5149
5150 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5151 if push failed.
5152 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5153 of push_display_prop (Bug#5000).
5154
5155 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5156 value of font_list_entities (Bug#5085).
5157
5158 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
5159
5160 Fix `string-to-number' to deal consistently with integers and floats.
5161 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5162 trailing characters, not just whitespace.
5163 (read1): Pass new arg 0 to keep old behavior.
5164 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5165 trailing chars, as it is already done for integers. Doc fixes.
5166 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5167
5168 2009-12-04 Eli Zaretskii <eliz@gnu.org>
5169
5170 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5171 Delete unused enumeration value.
5172
5173 2009-12-03 Eli Zaretskii <eliz@gnu.org>
5174
5175 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5176
5177 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5178
5179 * process.c (Fmake_network_process): Fix up the tests for
5180 "connectionless socket", so they DTRT for seqpacket sockets as well.
5181
5182 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * process.c (Qseqpacket): New symbol.
5185 (HAVE_SEQPACKET): New macro.
5186 (Fmake_network_process): Accept new :type `seqpacket'.
5187 (init_process): Add `seqpacket' feature when applicable.
5188 (syms_of_process): Initialize Qseqpacket.
5189
5190 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5191
5192 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5193 if entity is Qnil.
5194
5195 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5196
5197 * print.c (print_preprocess): Preprocess the key_and_value table of
5198 hashtables, even tho they're "hidden" (bug#5082).
5199
5200 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5201
5202 * frame.c (frame_make_pointer_invisible)
5203 (frame_make_pointer_visible): Declare f before statements.
5204
5205 2009-11-28 Eli Zaretskii <eliz@gnu.org>
5206
5207 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5208 omitted dependencies on lisp.h.
5209
5210 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5211
5212 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5213 is NULL.
5214
5215 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5216
5217 * frame.c (frame_make_pointer_invisible)
5218 (frame_make_pointer_visible): Just return if there isn't any selected
5219 frame.
5220
5221 * search.c (simple_search): Remove warning by making *p const.
5222
5223 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5224
5225 * xdisp.c (power_letter): Remove duplicate const.
5226
5227 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5228
5229 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5230
5231 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
5232 defaults (bug #5025).
5233
5234 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5235
5236 * insdel.c (adjust_markers_for_delete): Move it in the
5237 right direction! (bug#4803)
5238
5239 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5240
5241 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5242
5243 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5244
5245 2009-11-24 Glenn Morris <rgm@gnu.org>
5246
5247 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5248
5249 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5250
5251 * Makefile.in: Must create deps for ecrt0.o in its rule.
5252
5253 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5254 because that is what Gtk+ font dialog understands.
5255
5256 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5257 of Fcopy_sequence.
5258 (font_open_by_name): Put name given into QCname for font-object returned.
5259
5260 * frame.c (x_set_font): Save original font name as frame parameter
5261 font-parameter.
5262
5263 * xsettings.c (set_default_xft_settings): New function.
5264 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5265 is found.
5266
5267 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5268
5269 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5270 searching backwards through multibyte buffer.
5271
5272 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5273
5274 * xterm.c: #include xgselect.h.
5275 (x_initialize): Call xgselect_initialize.
5276
5277 * xsettings.c (something_changedCB): C++ comments => C comments.
5278 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5279 does that now.
5280
5281 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5282 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5283 (scroll_bar_button_cb): Remove.
5284 (create_menus): C++ comments => C comments. Don't bind grab-notify
5285 event.
5286 (xg_create_scroll_bar): Don't bind button-press-event and
5287 button-release-event.
5288
5289 * process.c: Include xgselect.h if defined (USE_GTK) ||
5290 defined (HAVE_GCONF).
5291 (wait_reading_process_output): Call xg_select for the same condition.
5292
5293 * xgselect.c (xg_select): New function to better integrate with
5294 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5295
5296 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5297
5298 * Makefile.in (XOBJ): Add xgselect.o.
5299
5300 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5301
5302 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5303 Remove ignored second argument. All callers changed.
5304 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5305 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5306 * xdisp.c (string_char_and_length): Likewise.
5307
5308 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5309
5310 * xterm.c (x_new_font):
5311 * print.c (print_object):
5312 * cmds.c (Fself_insert_command): Move declarations before statements.
5313
5314 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5315
5316 * s/cygwin.h: Remove unneeded linker flags.
5317
5318 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5319
5320 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5321
5322 * xsettings.h: Declare xsettings_get_system_font.
5323
5324 * xsettings.c (xsettings_get_system_font): New function.
5325 (init_gconf): No use initiating gconf unless we have Xft also.
5326 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5327 HAVE_GCONF.
5328
5329 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5330 add a blank entry so it doesn't collapse into nothing.
5331
5332 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5333
5334 * lread.c (Funintern): Comment out last change.
5335
5336 2009-11-19 Richard Stallman <rms@gnu.org>
5337
5338 * lread.c (Funintern): Error if symbol is t or nil.
5339
5340 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5341
5342 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5343 representation of Lisp integers.
5344 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5345
5346 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5347
5348 * lisp.h: Remove declaration of Ffont_get_system_font.
5349 * xfns.c: Move include of "xsettings.h".
5350 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5351
5352 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5353
5354 * xsettings.c (something_changedCB, Ffont_get_system_font):
5355 Check use_system_font.
5356 (syms_of_xsettings): DEFVAR font-use-system-font.
5357
5358 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5359
5360 * xfns.c (x_default_font_parameter): Remove dead assignment.
5361
5362 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5363
5364 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5365
5366 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
5367 not have FC_LCD_*. #define them if not there.
5368
5369 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
5370
5371 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5372
5373 * xterm.c (handle_one_xevent): Call xft_settings_event for
5374 ClientMessage, PropertyNotify and DestroyNotify.
5375 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5376 Call xsettings_initialize.
5377
5378 * xftfont.c (xftfont_fix_match): New function.
5379 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5380 Call xftfont_fix_match after XftFontMatch.
5381
5382 * xfont.c (xfont_driver): Initialize all members.
5383
5384 * xfns.c (x_default_font_parameter):
5385 Try font from Ffont_get_system_font.
5386 Do not get font from x_default_parameter if we got one from
5387 Ffont_get_system_font.
5388 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
5389
5390 * w32font.c (w32font_driver): Initialize all members.
5391
5392 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5393
5394 * lisp.h: Declare syms_of_xsettings.
5395
5396 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5397 Handle CONFIG_CHANGED_EVENT.
5398
5399 * ftfont.c (ftfont_filter_properties): New function.
5400
5401 * frame.c (x_set_font): Remove unused variable lval.
5402
5403 * font.h (struct font_driver): Add filter_properties.
5404
5405 * font.c (font_put_extra): Don't return if val is nil, it means
5406 boolean option is off.
5407 (font_parse_fcname): Collect all extra properties in extra_props
5408 and call filter_properties for all drivers with extra_props and
5409 font as parameter.
5410 (font_open_entity): Do not use cache, it does not pick up new
5411 fontconfig settings like hinting.
5412 (font_load_for_lface): If spec had a name in it, store it in entity.
5413
5414 * emacs.c (main): Call syms_of_xsettings.
5415
5416 * config.in: HAVE_GCONF is new.
5417
5418 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5419 xsettings.o is new.
5420
5421 2009-11-17 Kenichi Handa <handa@m17n.org>
5422
5423 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5424 back to the default font in case that no suitable font is found.
5425
5426 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5427
5428 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5429 Suggested by Chad Brown <yandros@mit.edu>.
5430 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5431
5432 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5433
5434 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5435
5436 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5437
5438 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5439
5440 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5441
5442 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5443 has a parent.
5444
5445 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5446 dependency files in deps/. Include those files into Makefile.
5447
5448 * config.in: Generated (AUTO_DEPEND).
5449
5450 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
5451
5452 * dbusbind.c (Vdbus_registered_objects_table): Rename from
5453 Vdbus_registered_functions_table, because it contains also
5454 properties. Fix docstring.
5455 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
5456
5457 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5458
5459 * alloc.c (mark_object): Don't reprocess marked strings.
5460 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5461 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5462
5463 2009-11-13 Kenichi Handa <handa@m17n.org>
5464
5465 * category.c (word_boundary_p): Adjust for the change of the
5466 semantics of Vword_combining_categories.
5467 (Vword_combining_categories): Describe the slight change of the
5468 semantics.
5469
5470 2009-11-13 Eli Zaretskii <eliz@gnu.org>
5471
5472 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5473
5474 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5475
5476 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5477
5478 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5479
5480 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
5481
5482 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5483
5484 2009-11-11 David Reitter <david.reitter@gmail.com>
5485
5486 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5487 variables to fix 2009-11-09 change.
5488
5489 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5490
5491 * process.c (ifflag_def): Make flag_sym constant.
5492 (Fnetwork_interface_info): Use a constant pointer.
5493 (ifflag_table):
5494 * xfns.c (cursor_bits):
5495 * xdisp.c (power_letter):
5496 * termcap.c (speeds, esctab):
5497 * sysdep.c (baud_convert):
5498 * keyboard.c (lispy_accent_codes, modifier_names):
5499 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5500 (jpeg_format, tiff_format, gif_format, svg_format)
5501 (interlace_start, interlace_increment, gs_format):
5502 * gtkutil.c (separator_names):
5503 * fringe.c (swap_nibble):
5504 * fns.c (base64_value_to_char, base64_char_to_value):
5505 * fileio.c (make_temp_name_tbl):
5506 * coding.c (suffixes): Make constant.
5507
5508 * frame.c (make_initial_frame):
5509 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5510 build_string.
5511 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5512
5513 * s/freebsd.h:
5514 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5515
5516 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5517 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5518
5519 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5520 * xterm.c (syms_of_xterm):
5521 * xfaces.c (syms_of_xfaces):
5522 * xdisp.c (syms_of_xdisp):
5523 * lread.c (syms_of_lread):
5524 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5525 build_string.
5526
5527 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5528
5529 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5530
5531 * fns.c (Fplist_get): Merge the active and the commented out code.
5532
5533 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5534
5535 * keyboard.h: Declare timer_check.
5536
5537 * keyboard.c (timer_check_2): New function that does what the old
5538 timer_check did.
5539 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5540 returned, i.e. don't return -1 with timers pending.
5541
5542 * process.c: Remove extern declaration of timer_check.
5543
5544 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5545 even if timer_check returned -1.
5546
5547 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5548 xg_dialog_data.
5549 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5550 the event loop.
5551 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5552 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5553 Destroy the dialog after xg_dialog_run.
5554
5555 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5556
5557 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5558
5559 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5560
5561 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5562
5563 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
5564
5565 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5566
5567 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5568
5569 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5570 w32menu.c, and nsmenu.m.
5571 Simplify the obsolete case where position is nil.
5572 (cleanup_popup_menu): New function, moved from nsmenu.m.
5573 (struct skp): Remove slot `notreal'.
5574 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5575 adjust callers.
5576 (single_menu_item): Adjust call to parse_menu_item.
5577 (syms_of_menu): Defsubr x-popup-menu.
5578 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5579 (keymap_panes): Don't export any more.
5580 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5581 (xmenu_show): Declare.
5582 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5583 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5584 * keyboard.h (parse_menu_item): Update declaration.
5585 * xmenu.c (Fx_popup_menu): Remove.
5586 (syms_of_xmenu): Don't defsubr x-popup-menu.
5587 * w32menu.c (Fx_popup_menu): Remove.
5588 (syms_of_w32menu): Don't defsubr x-popup-menu.
5589 * nsmenu.m (cleanup_popup_menu): Remove.
5590 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5591 moved to menu.c's Fx_popup_menu.
5592 (Fx_popup_menu): Remove.
5593 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5594 menu_items (it's done in menu.c already).
5595
5596 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5597
5598 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5599 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5600
5601 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
5602
5603 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
5604 xmenu_show. Hide any tooltip before opening a menu.
5605 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5606 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5607
5608 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5609
5610 Let integers use up 2 tags to give them one extra bit and thus double
5611 their range.
5612 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5613 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5614 New macros.
5615 (enum Lisp_Type): Use them. Give explicit values.
5616 (Lisp_Type_Limit): Remove.
5617 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5618 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5619 Pay attention to USE_2_TAGS_FOR_INTS.
5620 (INTEGERP): Use LISP_INT_TAG_P.
5621 * fns.c (internal_equal): Simplify the default case.
5622 (sxhash): Use case_Lisp_Int.
5623 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5624 any more.
5625 (Ftype_of): Use case_Lisp_Int.
5626 (store_symval_forwarding): Take into account the fact that Ints can
5627 now have more than one tag.
5628 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5629 buffer_slot_type_mismatch):
5630 * xfaces.c (face_attr_equal_p):
5631 * print.c (print_object):
5632 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5633 Use case_Lisp_Int.
5634
5635 2009-11-06 Eli Zaretskii <eliz@gnu.org>
5636
5637 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5638
5639 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5640 warning.
5641
5642 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5643
5644 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5645
5646 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5647
5648 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5649 ButtonPressRelease and MotionNotify (bug#4870).
5650
5651 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5652
5653 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5654
5655 * xterm.c (syms_of_xterm):
5656 * xselect.c (syms_of_xselect):
5657 * xmenu.c (syms_of_xmenu):
5658 * xfns.c (syms_of_xfns):
5659 * xfaces.c (syms_of_xfaces):
5660 * xdisp.c (syms_of_xdisp):
5661 * window.c (syms_of_window):
5662 * w32fns.c (syms_of_w32fns):
5663 * undo.c (syms_of_undo):
5664 * textprop.c (syms_of_textprop):
5665 * terminal.c (syms_of_terminal):
5666 * syntax.c (syms_of_syntax):
5667 * sound.c (syms_of_sound):
5668 * search.c (syms_of_search):
5669 * print.c (syms_of_print):
5670 * minibuf.c (syms_of_minibuf):
5671 * macros.c (syms_of_macros):
5672 * keymap.c (syms_of_keymap, initial_define_key)
5673 (initial_define_lispy_key):
5674 * keyboard.c (syms_of_keyboard):
5675 * insdel.c (syms_of_insdel):
5676 * image.c (syms_of_image):
5677 * fringe.c (syms_of_fringe):
5678 * frame.c (syms_of_frame):
5679 * fontset.c (syms_of_fontset):
5680 * fns.c (syms_of_fns):
5681 * fns.c (syms_of_fns):
5682 * fileio.c (syms_of_fileio):
5683 * fileio.c (syms_of_fileio):
5684 * eval.c (syms_of_eval):
5685 * doc.c (syms_of_doc):
5686 * dispnew.c (syms_of_display):
5687 * dired.c (syms_of_dired):
5688 * dbusbind.c (syms_of_dbusbind):
5689 * data.c (syms_of_data):
5690 * composite.c (syms_of_composite):
5691 * coding.c (syms_of_coding):
5692 * cmds.c (syms_of_cmds):
5693 * charset.c (define_charset_internal, syms_of_character):
5694 * ccl.c (syms_of_ccl):
5695 * category.c (syms_of_category, init_category_once):
5696 * casetab.c (syms_of_casetab):
5697 * casefiddle.c (syms_of_casefiddle):
5698 * callint.c (syms_of_callint):
5699 * bytecode.c (syms_of_bytecode):
5700 * buffer.c (keys_of_buffer, syms_of_buffer):
5701 * alloc.c (syms_of_alloc):
5702 * process.c (syms_of_process, init_process):
5703 * lread.c (syms_of_lread, init_obarray):
5704 * font.c (build_style_table):
5705 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5706 intern_c_string, calls to make_pure_string with
5707 make_pure_c_string. Use pure_cons instead of Fcons.
5708
5709 * process.c (socket_options): Make it const.
5710 (set_socket_option, init_process): Use a const pointer.
5711
5712 * lread.c (intern_c_string): New function.
5713 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5714 (defvar_int): Uset it. Make the name const char*.
5715
5716 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5717 (defvar_int): Update prototypes.
5718 (DEFUN, EXFUN): Support for prototypes is now required.
5719 (intern_c_string): New prototype.
5720 (struct Lisp_Subr): Make symbol_name constant.
5721
5722 * font.c (struct table_entry): Remove unused member. Make NAMES
5723 constant.
5724 (weight_table, slant_table, width_table): Make constant.
5725
5726 * emacs.c (struct standard_args): Make name and longname constant.
5727
5728 * character.h (DEFSYM): Use intern_c_string.
5729
5730 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5731
5732 * alloc.c (make_pure_c_string): New function.
5733
5734 * eval.c (Fautoload): Purecopy all arguments.
5735
5736 2009-11-05 Kenichi Handa <handa@m17n.org>
5737
5738 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5739 the buffer in case of replace.
5740
5741 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5742
5743 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5744
5745 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5746
5747 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5748 when applicable (bug#4851).
5749
5750 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5751 (P_): Support for prototypes is now required.
5752
5753 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
5754
5755 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5756 (Bug#4827).
5757
5758 2009-10-30 Eli Zaretskii <eliz@gnu.org>
5759
5760 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
5761
5762 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5763
5764 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5765
5766 * lread.c (Fload): Purecopy the file name when building
5767 Vpreloaded_file_list.
5768
5769 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5770
5771 * w32fns.c (syms_of_w32fns): Change default value of
5772 w32-scroll-lock-modifier to nil. (Bug#2827)
5773
5774 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5775
5776 * minibuf.c (Fall_completions): Fix typos in docstring.
5777
5778 2009-10-26 Andreas Schwab <schwab@redhat.com>
5779
5780 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5781
5782 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
5783
5784 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5785 For delta < 0, skip check that only makes sense when the mini-window
5786 is going to be enlarged. (Bug#4534)
5787
5788 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
5789
5790 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5791 string in menu maps (Bug#4471).
5792
5793 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
5794
5795 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5796 FRAME_NS_VIEW on terminal frames (Bug#4765).
5797
5798 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5799
5800 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5801 DBUS_TYPE_UINTnn separately to get proper sign extension.
5802
5803 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5804 can properly handle unsigned types.
5805 (make_uid, make_gid): Remove.
5806
5807 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5808 types again.
5809
5810 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
5811 (system_process_attributes): Likewise.
5812
5813 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5814
5815 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5816
5817 * eval.c (Fautoload): Purecopy the filename. Simplify.
5818
5819 * category.c (Fdefine_category): Purecopy docstring.
5820
5821 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5822
5823 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5824
5825 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5826
5827 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
5828
5829 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5830 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5831 (Bug#4775).
5832
5833 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5834
5835 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5836 (init_fileio_once):
5837 * lisp.h (init_fileio_once): Remove.
5838 * emacs.c (main): Don't call init_fileio_once.
5839
5840 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5841
5842 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5843
5844 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5845
5846 * doprnt.c (doprnt): Fix overflow check.
5847
5848 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5849
5850 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5851
5852 * xterm.h (x_wait_for_event): Declare it.
5853
5854 * xterm.c (pending_event_wait): New variable.
5855 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5856 see pending_event_wait.eventtype.
5857 (handle_one_xevent): Don't change gravity when parent changes.
5858 (x_new_font): Call change_frame_size with new rows/columns before we
5859 try to resize the frame.
5860 (x_wait_for_event): New function.
5861 (x_set_window_size_1): Don't change gravity unless change_gravity
5862 is set.
5863 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5864 don't change frame size, instead wait for the ConfigureNotify.
5865 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5866 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5867 (x_initialize): Initialize pending_event_wait.
5868
5869 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5870 size.
5871
5872 * widget.c (EmacsFrameSetValues): Add comment.
5873 (EmacsFrameSetCharSize): Just call x_set_window_size.
5874
5875 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5876 x_wait_for_event.
5877 (flush_and_sync): Remove again.
5878 (xg_get_font_name): Suggest monospace if no previous font is known.
5879
5880 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5881
5882 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
5883 8th bit, since that only made sense in the ASCII world (bug#4751).
5884
5885 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5886
5887 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5888 processing pending events when event is filtered for input method.
5889 (Bug#3681)
5890
5891 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
5892
5893 * fns.c: Add #endif accidentally removed in previous change.
5894
5895 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5896
5897 * fns.c: Remove code for unsupported system: MAC_OS.
5898 * image.c: Likewise. Include setjmp.h.
5899
5900 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5901
5902 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5903 pixel -1 (bug #4742).
5904
5905 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5906
5907 * process.c (create_pty): Remove conditionals for no longer
5908 supported systems: UNIPLUS and RTU.
5909
5910 * xterm.c:
5911 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5912
5913 * alloc.c: Do not define struct catchtag.
5914 * eval.c: Move struct catchtag definition ...
5915 * lisp.h: ... here.
5916
5917 * image.c: Move png.h #include earlier to avoid warnings.
5918
5919 * xterm.c:
5920 * xsmfns.c:
5921 * xselect.c:
5922 * xrdb.c:
5923 * xmenu.c:
5924 * xftfont.c:
5925 * xfont.c:
5926 * xfns.c:
5927 * xfaces.c:
5928 * xdisp.c:
5929 * window.c:
5930 * widget.c:
5931 * w32xfns.c:
5932 * w32uniscribe.c:
5933 * w32term.c:
5934 * w32select.c:
5935 * w32reg.c:
5936 * w32proc.c:
5937 * w32menu.c:
5938 * w32inevt.c:
5939 * w32heap.c:
5940 * w32font.c:
5941 * w32fns.c:
5942 * w32console.c:
5943 * w32.c:
5944 * w16select.c:
5945 * vm-limit.c:
5946 * unexsol.c:
5947 * unexec.c:
5948 * unexcw.c:
5949 * unexaix.c:
5950 * undo.c:
5951 * tparam.c:
5952 * textprop.c:
5953 * terminfo.c:
5954 * terminal.c:
5955 * termcap.c:
5956 * term.c:
5957 * syntax.c:
5958 * sound.c:
5959 * sheap.c:
5960 * search.c:
5961 * scroll.c:
5962 * region-cache.c:
5963 * regex.c:
5964 * ralloc.c:
5965 * process.c:
5966 * print.c:
5967 * nsterm.m:
5968 * nsselect.m:
5969 * nsmenu.m:
5970 * nsimage.m:
5971 * nsfont.m:
5972 * nsfns.m:
5973 * msdos.c:
5974 * minibuf.c:
5975 * menu.c:
5976 * marker.c:
5977 * macros.c:
5978 * keymap.c:
5979 * keyboard.c:
5980 * intervals.c:
5981 * insdel.c:
5982 * indent.c:
5983 * gtkutil.c:
5984 * ftxfont.c:
5985 * ftfont.c:
5986 * fringe.c:
5987 * frame.c:
5988 * fontset.c:
5989 * font.c:
5990 * fns.c:
5991 * floatfns.c:
5992 * filelock.c:
5993 * fileio.c:
5994 * emacs.c:
5995 * editfns.c:
5996 * dosfns.c:
5997 * doprnt.c:
5998 * doc.c:
5999 * dispnew.c:
6000 * dired.c:
6001 * dbusbind.c:
6002 * data.c:
6003 * composite.c:
6004 * coding.c:
6005 * cmds.c:
6006 * cm.c:
6007 * chartab.c:
6008 * charset.c:
6009 * character.c:
6010 * ccl.c:
6011 * category.c:
6012 * casetab.c:
6013 * casefiddle.c:
6014 * callproc.c:
6015 * callint.c:
6016 * bytecode.c:
6017 * buffer.c:
6018 * atimer.c: Include setjmp.h. (Bug#4643)
6019
6020 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6021
6022 Remove leftover table unibyte_to_multibyte_table.
6023 * character.c (unibyte_to_multibyte_table): Remove.
6024 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6025 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6026 * character.h (UNIBYTE_TO_CHAR): New macro.
6027 (MAKE_CHAR_MULTIBYTE): Use it.
6028 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6029 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6030 (message_dolog, set_message_1):
6031 * search.c (Freplace_match):
6032 * editfns.c (Fcompare_buffer_substrings):
6033 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6034 (concat):
6035 * insdel.c (copy_text, count_size_as_multibyte):
6036 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6037 * term.c (produce_glyphs):
6038 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6039 * regex.c (RE_CHAR_TO_MULTIBYTE):
6040 * cmds.c (internal_self_insert):
6041 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6042
6043 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6044
6045 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6046
6047 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6048
6049 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
6050
6051 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6052
6053 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6054
6055 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6056 still needed under Tiger.
6057
6058 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6059
6060 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6061 __Apple__.
6062
6063 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6064
6065 2009-10-15 Kenichi Handa <handa@m17n.org>
6066
6067 * print.c (print_object): Escape a symbol like "2E10" too.
6068
6069 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6070
6071 Cleanups and changes for 64-bit compile under Snow Leopard.
6072 Based on suggestions by Erik Charlebois.
6073
6074 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6075
6076 * nsfont.m (ns_char_width): Replace deprecated call.
6077 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6078 cast argument.
6079 (nsfont_open): Use ns_char_width() everywhere.
6080 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
6081
6082 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6083
6084 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6085 where appropriate.
6086
6087 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6088 where appropriate.
6089 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6090 Use stringWithUTF8String.
6091 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6092
6093 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6094 Add formal protocol mention to inheritance.
6095 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6096
6097 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6098 Fix printf format.
6099 (ns_query_color): Use CGFloat where appropriate.
6100 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
6101 (EmacsScroller-mouseDown:): Use long format in printf, and cast
6102 argument.
6103
6104 * config.in (NS_HAVE_NSINTEGER): Drop.
6105
6106 * dbusbind.c (dbus-method-return-internal)
6107 (dbus-method-error-internal): Use long format in printf, and cast
6108 argument.
6109
6110 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6111 in printf, and cast argument.
6112
6113 * process.c (list_processes_1): Use long format in printf, and
6114 cast argument.
6115
6116 2009-10-11 Glenn Morris <rgm@gnu.org>
6117
6118 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6119
6120 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6121
6122 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6123 menu bar with a small width so it doesn't enlarge the frame.
6124
6125 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
6126
6127 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6128
6129 2009-10-06 Glenn Morris <rgm@gnu.org>
6130
6131 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6132 SOME_MACHINE_LISP (this enters indirectly via DOC).
6133
6134 2009-10-05 Eli Zaretskii <eliz@gnu.org>
6135
6136 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6137
6138 2009-10-04 Eli Zaretskii <eliz@gnu.org>
6139
6140 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6141 Doc fix.
6142
6143 2009-10-03 Martin Rudalics <rudalics@gmx.at>
6144
6145 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6146
6147 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
6148
6149 * lisp.h (Qdelete_directory_internal): Remove, because it is not
6150 used anymore outside fileio.c.
6151
6152 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6153
6154 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
6155
6156 * lisp.h (Qdelete_directory_internal):
6157 Declare, instead of Qdelete_directory.
6158
6159 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6160
6161 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6162
6163 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6164
6165 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
6166
6167 * fileio.c (Fdelete_directory_internal): Rename from
6168 Fdelete_directory. It is not a command anymore. It has no file
6169 name handler.
6170
6171 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6172
6173 * xdisp.c (get_next_display_element): Use an enum in last change.
6174
6175 2009-09-28 Kenichi Handa <handa@m17n.org>
6176
6177 * xdisp.c (get_next_display_element): Pay attention to
6178 unibyte_display_via_language_environment in handling
6179 Vnobreak_char_display.
6180
6181 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6182
6183 * nsterm.h (ns_app_name): New extern variable.
6184
6185 * nsterm.m (ns_app_name): New variable.
6186 (ns_term_init): Set and use it.
6187 (ns_term_shutdown): Use it.
6188
6189 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6190 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6191
6192 * nsfns.m (ns_set_name_iconic, ns_set_name)
6193 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6194 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6195
6196 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6197 Remove double-casting in client_data comparison.
6198
6199 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6200
6201 * keyboard.c (make_lispy_event): Remember last wheel direction.
6202 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6203
6204 2009-09-26 Glenn Morris <rgm@gnu.org>
6205
6206 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6207 internal.elc. Add term/pc-win.elc.
6208 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6209 term/x-win.elc.
6210 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6211 term/w32-win.elc.
6212 (NS_SUPPORT): New.
6213 (lisp): Add NS_SUPPORT.
6214 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6215
6216 2009-09-25 David Reitter <david.reitter@gmail.com>
6217
6218 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6219 on Mac OS X 10.6+ (bug#4513).
6220
6221 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6222
6223 * frame.c (xrdb_get_resource): Return nil for empty string resources;
6224 some parts of Emacs code (like font selection) don't grok them.
6225 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6226
6227 2009-09-24 Andreas Schwab <schwab@redhat.com>
6228
6229 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6230
6231 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
6232
6233 * dired.c (Fdirectory_files): Fix typo in docstring.
6234
6235 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6236
6237 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6238 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6239 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6240 under GNUstep.
6241 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6242
6243 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6244 glyph advancement.
6245
6246 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6247
6248 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
6249 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
6250
6251 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6252 deleted (bug #4492).
6253
6254 * nsfont.m (Vns_reg_to_script): New lisp variable.
6255 (syms_of_nsfont): Declare it.
6256 (ns_registry_to_script): New function.
6257 (ns_get_req_script): Call it.
6258 (ns_findfonts): Don't give up on non-unicode registry.
6259
6260 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6261
6262 2009-09-20 Tom Tromey <tromey@redhat.com>
6263
6264 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6265 batch mode (bug#4228).
6266
6267 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
6268
6269 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
6270 carefully. (Bug #4339)
6271
6272 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
6273
6274 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
6275
6276 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6277
6278 * emacs.c (inhibit_x_resources): Update doc string for NS.
6279 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
6280 legacy code for -NXHost. Fix error printf in daemon case.
6281
6282 * nsterm.h (ns_no_defaults): Remove.
6283
6284 * nsterm.m (ns_no_defaults): Remove.
6285 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6286 (ns_use_qd_smoothing): Remove legacy variable.
6287 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6288 don't update the NSWindow itself.
6289 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
6290 state detection and store user rect ourselves. (Bug #3581)
6291
6292 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6293 ns_use_qd_smoothing.
6294
6295 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6296 platform versions. Drop support for emacs-20-style face specs.
6297 (x-close-connection): Drop PSFlush() under OS X.
6298 (x-focus-frame): Activate the app first. (Bug #4180)
6299
6300 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
6301
6302 * emacs.c (inhibit_x_resources): New variable.
6303 (main) [HAVE_NS]: Don't process --quick command line option.
6304 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6305
6306 * lisp.h (inhibit_x_resources): Declare it extern.
6307
6308 * w32reg.c (x_get_string_resource):
6309 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6310
6311 2009-09-17 Eli Zaretskii <eliz@gnu.org>
6312
6313 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6314 Add lisp/term/internal.elc.
6315
6316 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6317
6318 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6319 (bug#4461).
6320
6321 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6322
6323 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6324
6325 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6326 (OBJECTS_MACHINE): Remove, unused.
6327
6328 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6329
6330 * frame.c (x_get_resource_string): Remove unused.
6331
6332 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6333
6334 * xterm.c (x_new_font): Call change_frame_size before calling
6335 x_set_window_size, in case frame size won't change.
6336
6337 * frame.c (x_set_font): Remove dead code.
6338
6339 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6340
6341 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6342
6343 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6344
6345 * lread.c (Fload): Don't output a message after loading an obsolete
6346 package any more (done in Lisp now).
6347
6348 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
6349
6350 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6351
6352 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6353
6354 * keymap.c (Fwhere_is_internal): Use nconc2.
6355
6356 2009-09-11 Alan Mackenzie <acm@muc.de>
6357
6358 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6359 batch mode.
6360
6361 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6362
6363 * xdisp.c (display_mode_element): Detect cycles.
6364
6365 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 * keymap.c (where_is_internal): Don't erroneously return nil right after
6368 filling the cache.
6369 (where_is_internal_1): Fix up typo.
6370
6371 2009-09-11 Glenn Morris <rgm@gnu.org>
6372
6373 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6374 share a common doc-string.
6375
6376 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6377
6378 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6379 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6380
6381 * keymap.c (QCadvertised_binding): New constant.
6382 (syms_of_keymap): Initialize it.
6383 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6384 if applicable.
6385
6386 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6389 (parse_menu_item): Streamline since bindings are recomputed all the
6390 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6391 more and don't support lmenu's menu-alias any more either.
6392
6393 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6394 (where_is_internal): Strip it down to only traverse the keymaps.
6395 Move the cache handling from Fwhere_is_internal to here.
6396 (Fwhere_is_internal): Move the handling of remapping and the choice of
6397 the best binding from where_is_internal to here.
6398 Unify the cached/noncached paths, so remapping is also handled
6399 correctly when the cache is used, and so the cache can be used to
6400 speed up remap-handling when applicable.
6401 Give preference to non-remapped bindings.
6402 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6403 non-remapped bindings.
6404 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6405 command remapping.
6406
6407 * xdisp.c (display_mode_element): Move list length limit from 50 to
6408 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6409
6410 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
6411
6412 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6413
6414 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6415
6416 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6417 (Bug#4334)
6418
6419 * keymap.c (where_is_internal): Filter out shadowed remappings.
6420 Assume that where_is_internal returns unshadowed bindings to simplify
6421 the code and get rid of the gotos. Use ASIZE.
6422
6423 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6424
6425 * xterm.c (x_focus_changed): If we get a focusout and pointer
6426 is invisible, make it visible.
6427
6428 * xterm.h: Remove condition for declaration of
6429 x_*_window_to_frame.
6430
6431 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6432
6433 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6434 initial terminal as well.
6435
6436 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6437
6438 * xterm.h: Rename x_non_menubar_window_to_frame to
6439 x_menubar_window_to_frame.
6440
6441 * xterm.c: Remove declarations also in xterm.h.
6442 (XTmouse_position): Do not return valid positions
6443 for clicks in the menubar and the toolbar for Gtk+.
6444
6445 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6446 if the widget for the event has the same top level as a frame,
6447 return the frame.
6448 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6449 internal windows, bug #4122.
6450 (x_non_menubar_window_to_frame): Remove.
6451
6452 2009-09-02 Glenn Morris <rgm@gnu.org>
6453
6454 * buffer.c (default-major-mode): Move most of the doc from here...
6455 (major-mode): ... to here.
6456
6457 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
6458
6459 * process.c (wait_reading_process_output): Keep the descriptor
6460 when pty is used by a non-child process, e.g., in I/O buffer of
6461 GDB this allows inferior to be restarted.
6462
6463 2009-08-29 Eli Zaretskii <eliz@gnu.org>
6464
6465 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6466 both branches into one.
6467
6468 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6469
6470 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6471 (main): Use enable-multibyte-characters rather than
6472 default-enable-multibyte-characters. Output a warning message when
6473 running a unibyte session.
6474
6475 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6476
6477 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6478 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6479 (copy_data_segment): Also copy __program_vars section.
6480 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6481 (dump_it) [LC_DYLD_INFO]: Use it.
6482
6483 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6484
6485 2009-08-28 Eli Zaretskii <eliz@gnu.org>
6486
6487 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6488 $(SRC)/buildobj.h.
6489 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6490 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6491 $(SRC)/buildobj.h.
6492 (clean): Add buildobj.h.
6493
6494 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6495
6496 * print.c (print_object): Set escapeflag to 1 when printing
6497 hashtable keys and values.
6498
6499 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6500
6501 * lread.c (read_integer): Use doubles (and potentially return a float
6502 number) as we do in string-to-number.
6503 (read1): Use strtol to read integers, signal errors on strtol's
6504 overflow and use floats if strtol's output is too large for
6505 Elisp integers.
6506
6507 2009-08-27 Eli Zaretskii <eliz@gnu.org>
6508
6509 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6510 (make-buildobj-SH): Fix last change.
6511 (SRC): Move to before where it's first used.
6512
6513 2009-08-27 Kenichi Handa <handa@m17n.org>
6514
6515 * process.c (send_process): Use encode_coding_object instead of
6516 encode_coding_string to perform eol-conversion even if the string
6517 is unibyte.
6518
6519 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6520 character.
6521
6522 * cmds.c (Fself_insert_command): Avoid unnecessay
6523 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
6524
6525 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6526
6527 * callproc.c (Fcall_process): Remove always true #if.
6528
6529 * lisp.h: Replace #if 0 code for checking with text pointing to
6530 the --enable-checking configure flag.
6531
6532 * emacs.c (main): Mention the --enable-profiling configure flag
6533 instead of using CFLAGS.
6534
6535 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
6536
6537 * Makefile.in (buildobj.h): New target.
6538 (doc.o): Depend on it.
6539 (temacs${EXEEXT}): Don't generate buildobj.lst.
6540 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6541 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6542 ($(BLD)/doc.$(O)): Depend on it.
6543 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6544 provided by Eli Zaretskii.)
6545 ($(TEMACS)): Don't generate buildobj.lst.
6546 * doc.c: Include buildobj.h.
6547 (buildobj): New static variable.
6548 (Fsnarf_documentation): Use it, instead of opening and reading
6549 buildobj.lst.
6550
6551 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
6552
6553 * dbusbind.c (Fdbus_call_method)
6554 (Fdbus_call_method_asynchronously): Use English numeric format for
6555 timeout values in doc string.
6556
6557 2009-08-25 Kenichi Handa <handa@m17n.org>
6558
6559 * alloc.c (mark_char_table): New function.
6560 (mark_object): Use mark_char_table for a char-table.
6561
6562 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6563 (CHAR_TABLE_REF): Use it.
6564
6565 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
6566
6567 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6568 before invoking the newly build emacs to check for load-path
6569 shadowing.
6570
6571 2009-08-22 Glenn Morris <rgm@gnu.org>
6572
6573 * Makefile.in (bootstrap_exe): New variable.
6574 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6575 Use ${bootstrap_exe}.
6576
6577 2009-08-22 Eli Zaretskii <eliz@gnu.org>
6578
6579 * coding.h (encode_coding_string): Don't encode unibyte strings.
6580 (Bug#4047)
6581
6582 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
6583
6584 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6585
6586 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6587 intended as hotfix only.
6588 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6589
6590 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6591
6592 * nsterm.m (ns_get_color): Update documentation properly for last
6593 change, and clean up loose ends in the code left by it. Fix
6594 longstanding bug with 16-bit hex parsing, and add support for
6595 yet another X11 format (rgb:r/g/b) for compatibility.
6596 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6597 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6598
6599 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6600
6601 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6602
6603 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
6604
6605 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6606 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6607 (xd_initialize, xd_pending_messages): Check, whether
6608 $DBUS_SESSION_BUS_ADDRESS is set.
6609
6610 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6611
6612 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6613
6614 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6615
6616 2009-08-20 Glenn Morris <rgm@gnu.org>
6617
6618 * emacs.c (system-type): Doc fix.
6619
6620 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6621
6622 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6623 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6624
6625 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
6626
6627 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6628 New functions.
6629 (xd_initialize): Revert change from 2009-08-16.
6630
6631 2009-08-18 Kenichi Handa <handa@m17n.org>
6632
6633 * fontset.c (Ffontset_font): If a nil element is found in a
6634 font-group vector, return nil.
6635
6636 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * process.c (status_notify): Don't perform redisplay.
6639 (Fdelete_process, list_processes_1, process_send_signal):
6640 Expliticly perform redisplay.
6641 (wait_reading_process_output): Always check process status, but
6642 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6643
6644 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
6645
6646 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
6647 (XFLOAT_INIT): New macro for storing a float value.
6648 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6649 * fns.c (sxhash): Copy out the value of a float in order to
6650 examine its bytes.
6651 * dbusbind.c (xd_append_arg): Likewise.
6652
6653 * emacs.c (main): Don't call syms_of_data twice.
6654
6655 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
6656
6657 * dbusbind.c (xd_initialize): Add connection file descriptor to
6658 input_wait_mask, in order to let select() detect, whether a new
6659 message has been arrived.
6660 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
6661
6662 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
6663
6664 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6665 New functions.
6666
6667 * lisp.h (xd_pending_messages): Declare.
6668
6669 * keyboard.c (readable_events): Call xd_pending_messages.
6670
6671 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
6672
6673 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
6674
6675 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6676
6677 * buffer.c (set_buffer_internal_1)
6678 (swap_out_buffer_local_variables): Check for unbound local
6679 variables (Bug#4138).
6680
6681 2009-08-14 Eli Zaretskii <eliz@gnu.org>
6682
6683 * process.c (create_pty): Fix last change.
6684
6685 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
6686
6687 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6688 (xbm_load_image): Caller changed.
6689 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
6690
6691 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
6692
6693 * process.c (create_pty): New function.
6694 (Fstart_process): Use it to allow Emacs to just associate a pty
6695 with the buffer. See associated change in gdb-mi.el.
6696 (list_processes_1): Deal with no program name.
6697 (start_process_unwind): Use pid == -2 to mean no process.
6698
6699 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6700
6701 * cmds.c (nonundocount): New global variable.
6702 (keys_of_cmds): Initialize it.
6703 (Fself_insert_command): Use it to combine upto 20 sequential chars
6704 into a single undo entry, just like the Qself_insert_command code in
6705 keyboard.c does.
6706 Call frame_make_pointer_invisible, also like the Qself_insert_command
6707 code in keyboard.c does.
6708 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6709 than its own local replacement for it.
6710
6711 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
6712
6713 * fns.c (concat): Don't re-set string length to its current value.
6714
6715 * coding.h (decode_coding_string, encode_coding_string):
6716 Use SBYTES macro.
6717
6718 * doprnt.c (doprnt_lisp): Delete unused function.
6719 (doprnt): Merge with doprnt1, discarding lispstrings code.
6720 * lisp.h (doprnt_lisp): Don't declare.
6721
6722 2009-08-07 Juri Linkov <juri@jurta.org>
6723
6724 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6725
6726 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6727
6728 * print.c (syms_of_print): Undo previous change.
6729
6730 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6731
6732 * lread.c (read1, syms_of_lread): Read hashtables back from the
6733 readable format.
6734
6735 * print.c (print_preprocess, print_object): Print hashtables fully
6736 and readably.
6737 (syms_of_print): Provide 'hashtable-print-readable.
6738
6739 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6740
6741 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6742 no family set.
6743 (nsfont_open): Handle case when entity has no family.
6744
6745 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6746
6747 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6748 element, not a list, for match case.
6749
6750 2009-07-28 Kenichi Handa <handa@m17n.org>
6751
6752 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6753 rigidly.
6754
6755 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6756 font_parse_xlfd. Check font properties more rigidly.
6757
6758 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6759
6760 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6761 bsd-common.h.
6762
6763 2009-07-27 Kenichi Handa <handa@m17n.org>
6764
6765 * xfaces.c (face_with_height): Call font_clear_prop.
6766
6767 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
6768
6769 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6770
6771 * xterm.c (x_term_init): Use Qx.
6772
6773 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6774
6775 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
6776 (ns_get_color): Revert 2009-07-16 change.
6777
6778 2009-07-25 Eli Zaretskii <eliz@gnu.org>
6779
6780 * lread.c (syms_of_lread) <force_load_messages>: New variable.
6781 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
6782
6783 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
6784
6785 * coding.h (decode_coding_string, encode_coding_string):
6786 Use SCHARS macro.
6787
6788 * lread.c: Rewrite 2009-07-21 changes.
6789 (load_depth): Delete.
6790 (Qload_in_progress): New variable.
6791 (load_unwind): Don't reference load_depth or load_in_progress.
6792 (Fload): Likewise; specbind Qload_in_progress instead.
6793 (init_lread): Don't initialize load_depth.
6794 (syms_of_lread): Initialize and protect Qload_in_progress.
6795
6796 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6797
6798 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6799
6800 2009-07-23 Yavor Doganov <yavor@gnu.org>
6801
6802 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6803
6804 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6805
6806 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
6807 Bugs 3792, 3720, 2402.
6808 (ns_lookup_indexed_color): Check for bad index.
6809 (ns_index_color): Init unused slot to 0.
6810 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6811 Bug 3714, possibly 3082.
6812
6813 2009-07-22 Jason Rumney <jasonr@gnu.org>
6814
6815 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6816 Position IME window at cursor (Bug#2570).
6817 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6818 (globals_of_w32fns): Dynamically load functions required above.
6819
6820 * w32term.c (w32_draw_window_cursor): Send message to reposition
6821 any IME window.
6822
6823 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6824
6825 * fileio.c: Revert 2009-07-16 changes.
6826 (Vauto_save_include_big_deletions): New variable.
6827 (Fdo_auto_save): Disable auto-save only if
6828 auto-save-include-big-deletions is nil.
6829
6830 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
6831
6832 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6833 the overflowed pixels into account (Bug#3879).
6834
6835 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
6836
6837 * lread.c (load_depth): New variable.
6838 (Fload, load_unwind, init_lread): Set it to the load recursion
6839 depth; set load_in_progress as a simple boolean based on the
6840 current load_depth. (Bug#3892)
6841
6842 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6843
6844 * nsfont.m (ns_has_attribute): Remove.
6845 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6846
6847 2009-07-18 Juri Linkov <juri@jurta.org>
6848
6849 * process.c (Fset_process_query_on_exit_flag): Mention killing
6850 a buffer in docstring.
6851
6852 2009-07-17 Kenichi Handa <handa@m17n.org>
6853
6854 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6855
6856 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6857
6858 * nsfns.m (Fns_set_alpha): Remove function.
6859 (syms_of_nsfns): Don't defsubr it.
6860
6861 * nsterm.m (ns_get_color): Remove incompatible color formats.
6862 (ns_color_to_lisp): Generate #rrggbb color format string.
6863
6864 2009-07-16 Richard Stallman <rms@gnu.org>
6865
6866 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6867 (Fset_buffer_auto_saved): Handle save_length = -2.
6868
6869 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
6870
6871 * xterm.c (Qx_gtk_map_stock): New var.
6872
6873 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6874 of calling intern each time.
6875
6876 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6877
6878 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6879 does tiling.
6880
6881 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6882
6883 2009-07-14 Kenichi Handa <handa@m17n.org>
6884
6885 * font.c (font_vconcat_entity_vectors): New function.
6886 (struct font_sort_data): New member font_driver_preference.
6887 (font_compare): Check font_driver_preference.
6888 (font_sort_entities): The format of the first argument changed.
6889 (font_delete_unmatched): Likewise.
6890 (font_list_entities): The return type changed.
6891 (font_select_entity): The format of the second argument changed.
6892 (font_find_for_lface): Adjuste for the above changes.
6893 Don't suppress the checking of C even if the repertory supports it.
6894 (Flist_fonts): Adjust for the above changes.
6895
6896 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6897 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
6898 Reject a font who has adstyle property that is different from a
6899 langname derived from registry property.
6900 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
6901
6902 2009-07-13 Eli Zaretskii <eliz@gnu.org>
6903
6904 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6905 local copy of dirfilename.
6906
6907 2009-07-13 Kenichi Handa <handa@m17n.org>
6908
6909 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6910 against max_char.
6911
6912 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6913 calling XSYMBOL (sym).
6914
6915 2009-07-11 Eli Zaretskii <eliz@gnu.org>
6916
6917 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6918 New function.
6919 (directory_files_internal) [WINDOWSNT]:
6920 Bind w32-get-true-file-attributes to either t or nil, depending whether
6921 the filesystem of the directory is fast or slow.
6922
6923 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6924 file name.
6925 (is_slow_fs): New function.
6926 (stat): Use it to determine whether to issue more system calls to
6927 get accurate file attributes, when w32-get-true-file-attributes is
6928 `local'.
6929
6930 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6931
6932 * xfns.c (Fx_select_font): Remember last font selected in
6933 x_last_font_name and use that the next time. Also try the frame
6934 parameter font-parameter as default to the font dialog.
6935
6936 2009-07-10 Kenichi Handa <handa@m17n.org>
6937
6938 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6939
6940 2009-07-09 Eli Zaretskii <eliz@gnu.org>
6941
6942 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6943
6944 * w32.c (stat): Treat UNC file names as residing on remote
6945 drives. (Bug#3542)
6946
6947 2009-07-09 Kenichi Handa <handa@m17n.org>
6948
6949 * fontset.c (fontset_find_font): Fix previous change.
6950
6951 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
6952
6953 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6954 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6955 error flag.
6956
6957 2009-07-08 Kenichi Handa <handa@m17n.org>
6958
6959 * fontset.c (fontset_find_font): Fix the logic of handling
6960 charset_matched.
6961 (font_for_char): Delete unused var.
6962 (generate_ascii_font_name): Delete it.
6963
6964 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6965
6966 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6967 (encode_coding_sjis): Fix the code range check.
6968
6969 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
6970
6971 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6972 (Fexpand_file_name): Copy string data properly (Bug#3772).
6973
6974 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6975
6976 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6977 first MapNotify.
6978
6979 2009-07-07 Kenichi Handa <handa@m17n.org>
6980
6981 * character.h (unibyte_has_multibyte_table): Delete extern.
6982 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6983
6984 * charset.c (Fset_charset_priority): Update charset_unibyte.
6985 (syms_of_charset): Initialize charset_unibyte.
6986
6987 * character.c (unibyte_has_multibyte_table): Delete it.
6988 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6989 charset_unibyte.
6990 (multibyte_char_to_unibyte_safe): Likewise.
6991 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6992
6993 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6994 (x_produce_glyphs): Likewise.
6995
6996 * .gdbinit (xcharset): Fix the treating $arg0.
6997
6998 2009-07-04 Eli Zaretskii <eliz@gnu.org>
6999
7000 Emulation of `getloadavg' on MS-Windows.
7001 * w32.c: Include float.h.
7002 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7003 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7004 (get_native_system_info, get_system_times): New functions.
7005 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7006 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7007 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7008 g_b_init_get_system_times, and num_of_processors.
7009
7010 2009-07-03 Jason Rumney <jasonr@gnu.org>
7011
7012 * w32term.c (w32_initialize): Use standard types.
7013
7014 2009-07-03 Eli Zaretskii <eliz@gnu.org>
7015
7016 * dired.c (Ffile_attributes): Decode user and group names by the
7017 locale's encoding. (Bug#3443)
7018
7019 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7020
7021 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7022 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7023
7024 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7025
7026 * term.c (init_tty): Remove spurious #ifdef.
7027
7028 * m/mips.h: Mention this file is also used for netbsd.
7029 * m/pmax.h: Remove file.
7030
7031 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7032
7033 * xterm.h (struct x_display_info): Add invisible_cursor.
7034 (struct x_output): Add current_cursor.
7035
7036 * xterm.c (XTtoggle_invisible_pointer): New function.
7037 (x_define_frame_cursor): Don't define cursor if invisible or the
7038 same as before. Set current_cursor.
7039 (x_create_terminal): Set toggle_invisible_pointer_hook.
7040
7041 * xfns.c (make_invisible_cursor): New function.
7042 (x_set_mouse_color): Call make_invisible_cursor.
7043 Set current_cursor.
7044 (x_window): Set current_cursor.
7045
7046 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7047
7048 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7049 inserting a character.
7050 (read_avail_input): Call frame_make_pointer_visible.
7051
7052 * frame.c (Vmake_pointer_invisible): New variable.
7053 (frame_make_pointer_invisible, frame_make_pointer_visible):
7054 New functions.
7055 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7056
7057 * frame.h: Declare frame_make_pointer_invisible and
7058 frame_make_pointer_visible.
7059 (struct frame): Add pointer_invisible.
7060
7061 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7062
7063 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7064 frame isn't visible.
7065 (xg_frame_resized): If width/height is -1, get size of window
7066 from X server.
7067
7068 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7069 for MapNotify.
7070
7071 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
7072 here or call change_frame_size. Just call flush_and_sync.
7073 (flush_and_sync): Reintroduce.
7074
7075 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
7076
7077 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
7078
7079 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7080 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7081
7082 * frame.h: Declare Qsticky.
7083
7084 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7085
7086 * nsfns.m (ns_frame_parm_handlers): Ditto.
7087
7088 * frame.c: Declare Qsticky.
7089 (frame_parms): Add sticky.
7090
7091 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7092
7093 * xterm.h: Declare x_set_sticky.
7094
7095 * xterm.c (x_set_sticky): New function.
7096
7097 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7098 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7099 xg_tool_bar_proxy_help_callback.
7100
7101 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7102
7103 * frame.c: Qmaximized is new.
7104 (x_set_frame_parameters): Do not handle fullscreen specially.
7105 Only set width and height if explicitly set.
7106 (x_set_fullscreen): Handle Qmaximized.
7107 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7108 (syms_of_frame): Initialize Qmaximized.
7109
7110 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7111 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
7112
7113 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
7114 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7115 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
7116 set gravity to NorthWestGravity when USE_GTK.
7117 (set_wm_state): New function.
7118 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
7119 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7120 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
7121 or the case when no window manager is running. That means remove calls
7122 to x_real_positions and x_fullscreen_adjust.
7123
7124 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7125 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7126 flush_and_sync.
7127 (xg_height_changed): New function.
7128 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
7129 and gtk_window_set_policy. Set frame gravity after parsing the
7130 geometry string.
7131 (xg_update_frame_menubar, free_frame_menubar)
7132 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7133 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7134 Remove calls to xg_frame_set_char_size.
7135
7136 2009-07-01 Kenichi Handa <handa@m17n.org>
7137
7138 * keyboard.c (decode_keyboard_code): New function.
7139 (tty_read_avail_input): Decode the input bytes if necessary.
7140
7141 * coding.c (setup_coding_system):
7142 Initialize coding->carryover_bytes to 0.
7143 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7144 use Qno_conversion.
7145
7146 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7147
7148 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7149
7150 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
7151
7152 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
7153
7154 2009-06-30 Jason Rumney <jasonr@gnu.org>
7155
7156 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7157 is already loaded.
7158 Set user model ID if supported (bug#1849).
7159
7160 2009-06-29 Jim Meyering <meyering@redhat.com>
7161
7162 Remove useless if-before-xfree test.
7163 * nsfont.m (nsfont_close): Remove useless test.
7164 * term.c (delete_tty): Likewise.
7165 * w32.c (system_process_attributes): Likewise.
7166 * w32font.c (w32font_close): Likewise.
7167 * xfaces.c (x_free_gc): Likewise.
7168 * xselect.c (buffer): Likewise.
7169
7170 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7171
7172 * process.c (send_process): Keep decoded string in a local
7173 variable and protect it from GC. (Bug#3521)
7174
7175 2009-06-28 Eli Zaretskii <eliz@gnu.org>
7176
7177 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7178 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7179
7180 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
7181
7182 * xdisp.c (start_display, handle_face_prop)
7183 (move_it_vertically_backward, cursor_row_fully_visible_p)
7184 (redisplay_window, try_window_id, produce_image_glyph):
7185 Delete some #ifdef-ed out code chunks that are now obsolete.
7186
7187 * xterm.c (x_update_window_begin, x_new_focus_frame)
7188 (x_scroll_bar_handle_click, handle_one_xevent)
7189 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7190 (x_make_frame_visible, x_make_frame_invisible)
7191 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7192 code chunks that are now obsolete.
7193
7194 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
7195
7196 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7197 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7198 for hours, when optimzation is enabled.
7199 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7200 (xd_read_message): Make them static.
7201
7202 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7203
7204 * term.c (turn_on_face): Allow simultaneously bold and dim
7205 terminal faces (Bug#3530).
7206
7207 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
7208
7209 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7210
7211 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7212 truncation glyphs (Bug#3686).
7213
7214 2009-06-27 Glenn Morris <rgm@gnu.org>
7215
7216 * m/pmax.h: Restore file, with only netbsd portions.
7217
7218 2009-06-26 David Reitter <david.reitter@gmail.com>
7219
7220 * nsterm.m (keydown): Avoid infinite loop.
7221
7222 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7223
7224 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7225 the arg FORCE_SYMBOL.
7226
7227 2009-06-25 Kenichi Handa <handa@m17n.org>
7228
7229 * fontset.c (fontset_find_font): When a usable rfont_def is found
7230 in a fallback font-group, make it the first element of the group.
7231
7232 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7235
7236 2009-06-24 Kenichi Handa <handa@m17n.org>
7237
7238 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7239 set for C.
7240 (fontset_font): Record the availability of a font for C both in
7241 the realized fontsets of the current one and the default one.
7242
7243 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7244
7245 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7246 conditional, it is always defined on AIX.
7247
7248 2009-06-23 Miles Bader <miles@gnu.org>
7249
7250 * window.c (Vrecenter_redisplay): New variable.
7251 (syms_of_window): Initialize it.
7252 (Qtty): New extern declaration.
7253 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7254
7255 2009-06-23 Jim Meyering <meyering@redhat.com>
7256
7257 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7258 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
7259 pointer dereferences are guaranteed to be valid.
7260
7261 2009-06-23 Kenichi Handa <handa@m17n.org>
7262
7263 * emacs.c (main): Call init_font ().
7264
7265 * font.h (Vfont_log): Extern it.
7266 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7267
7268 * font.c (font_sort_entities, font_list_entities)
7269 (font_matching_entity, font_open_entity)
7270 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7271 (Vfont_log): Delete static.
7272 (font_log_env_checked): Delete this variable.
7273 (font_add_log): Don't check font_log_env_checked.
7274 (font_deferred_log): Check Vfont_log.
7275 (init_font): New function.
7276
7277 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7278
7279 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7280
7281 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7282
7283 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7284
7285 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7286 (face_for_char): Don't call font_deferred_log here.
7287 (font_for_char): Likewise.
7288
7289 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
7290
7291 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7292 rather than its background_width for drawing the overline and
7293 underline (Bug#489).
7294
7295 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7296 rather than its background_width for drawing the overline and
7297 underline (Bug#489).
7298 (xg_default_icon_file): New variable.
7299 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7300 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
7301
7302 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7303 (load_overlay_strings): Remove externs.
7304 (fast_find_position): Function deleted.
7305 (mouse_face_from_buffer_pos): New function, based on
7306 fast_find_position. Correctly handle before-strings,
7307 display-strings, and after-strings (Bug#1220).
7308 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7309
7310 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7311
7312 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
7313 (move_it_in_display_line_to, move_it_in_display_line_to)
7314 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7315
7316 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
7317
7318 * Branch for 23.1.
7319
7320 2009-06-21 Jason Rumney <jasonr@gnu.org>
7321
7322 * w32term.c (keyboard_codepage): New static variable.
7323 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7324 (w32_read_socket) [WM_CHAR]: Use it to decode character
7325 input (bug#3237).
7326 (w32_initialize): Initialize it.
7327 (codepage_for_locale): New function.
7328
7329 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
7330
7331 * process.c (status_message): Pass Faset index argument as a lisp
7332 object, so as to work with USE_LISP_UNION_TYPE.
7333
7334 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7335
7336 * coding.c (Ffind_coding_systems_region_internal):
7337 Cache checked characters.
7338
7339 2009-06-18 Kenichi Handa <handa@m17n.org>
7340
7341 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
7342
7343 2009-06-18 Andreas Schwab <aschwab@redhat.com>
7344
7345 * xdisp.c (redisplay_internal): Check that the frame is still
7346 live after redisplay of its windows.
7347 (redisplay_windows): Check that the window is still live.
7348
7349 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7350
7351 * coding.c (detect_coding_utf_16): Fix previous change.
7352
7353 2009-06-16 Kenichi Handa <handa@m17n.org>
7354
7355 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7356 UTF-16 by checking the dispersion of Eth and Oth bytes.
7357
7358 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7359
7360 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7361
7362 2009-06-15 Kenichi Handa <handa@m17n.org>
7363
7364 * process.c (status_message): Fix previous change. Be sure to
7365 decode a localized string.
7366
7367 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7368
7369 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7370 add comment explaining why.
7371
7372 2009-06-14 Sidney Markowitz <sidney@sidney.com>
7373
7374 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
7375
7376 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7377
7378 * nsfont.m (ns_attribute_value): Remove.
7379 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7380 (ns_has_attribute): Shrink the normal range.
7381 (ns_findfonts): Don't worry about requested spec in determining
7382 need for synthItal.
7383 (ns_get_covering_families): Retain scriptToFamilies.
7384
7385 2009-06-14 Seiji Zenitani <zenitani@mac.com>
7386
7387 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7388
7389 2009-06-11 Kenichi Handa <handa@m17n.org>
7390
7391 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7392 overhang for the static composition case.
7393
7394 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7395
7396 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7397 overhang for the automatic composition case.
7398
7399 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7400 composition case.
7401
7402 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
7403
7404 * xdisp.c (get_next_display_element): When handling wrap-prefix
7405 and line-prefix, treat \n as a control character (bug#3502).
7406
7407 2009-06-10 Kenichi Handa <handa@m17n.org>
7408
7409 * font.c (font_parse_family_registry): Fix for one-char foundry.
7410 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7411
7412 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7413
7414 * process.c (status_message): Fix handling of multibyte signal
7415 string (Bug#3499).
7416
7417 2009-06-09 Jim Meyering <meyering@redhat.com>
7418
7419 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7420 color name is missing.
7421
7422 2009-06-09 Kenichi Handa <handa@m17n.org>
7423
7424 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7425 FROM-CODE and TO-CODE are codepoints of CHARSET.
7426
7427 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7428
7429 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7430
7431 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7432
7433 Changes to support :script/:lang/:otf in NS font driver.
7434 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7435 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7436 indicate not part of font driver interface, and change callers.
7437 (ns_get_family): Remove pointless null check.
7438 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7439 ns_spec_to_descriptor, ns_descriptor_to_entity.
7440 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7441 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7442 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7443 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7444 (ns_get_req_script, ns_accumulate_script_ranges)
7445 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7446 New functions.
7447 (nsfont_list, nsfont_match): Use ns_findfonts.
7448 (nsfont_open): Use font descriptor instead of traits.
7449 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7450 (dump_glyphstring): Rename to ns_dump_glyphstring.
7451
7452 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7453
7454 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7455
7456 * fontset.c (fontset_from_font): Remove NS-specific code.
7457
7458 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
7459
7460 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7461 nonactive windows.
7462
7463 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
7464
7465 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
7466
7467 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7468
7469 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7470
7471 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
7472
7473 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7474 account for the overflowing of newlines into the last glyph on the
7475 display line (Bug#3482).
7476
7477 2009-06-05 David Reitter <david.reitter@gmail.com>
7478
7479 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7480 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
7481 Fns_selection_exists_p, Fns_selection_owner_p.
7482
7483 2009-06-03 Jason Rumney <jasonr@gnu.org>
7484
7485 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7486 available. (Bug#3379)
7487
7488 2009-05-29 Kenichi Handa <handa@m17n.org>
7489
7490 * coding.c (get_translation_table):
7491 Check Venable_character_translation.
7492
7493 2009-05-26 David Reitter <david.reitter@gmail.com>
7494
7495 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7496 (x_make_frame_visible): Move frame to front rather than calling
7497 ns_raise_frame().
7498 (keyDown:): Do not swallow events that aren't re-sent if frame
7499 isn't key window.
7500 (drawRect:): Do not set visibility/iconified flags because
7501 drawRect may be called by NSView even if the frame is hidden.
7502
7503 * nsfns.m (Fx_create_frame): Follow other ports in
7504 determining visibility; default to t. Ensure async_visible is set.
7505
7506 2009-05-23 Eli Zaretskii <eliz@gnu.org>
7507
7508 * dired.c (Ffile_attributes): Doc fix.
7509
7510 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7513
7514 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7515
7516 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7517 and xfont_scratch_props.
7518 (syms_of_xfont): Do it here instead.
7519 (xfont_find_ccl_program): Delete, unused.
7520 (xfont_open): Delete unused var `i'.
7521
7522 2009-05-21 Kenichi Handa <handa@m17n.org>
7523
7524 * fontset.c (Qlatin): Don't make it static.
7525
7526 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7527 New functions.
7528 (xfont_scripts_cache, xfont_scratch_props): New variables.
7529 (Qlatin, Vscalable_fonts_allowed): Extern it.
7530 (xfont_list_pattern): Argument changed. Callers changed.
7531 Check Vscalable_fonts_allowed. Check the support of a script.
7532 (xfont_list): Don't reject a font spec with :script property.
7533 (xfont_has_char): Fix setting of encoding.
7534 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7535 xfont_scratch_props.
7536
7537 2009-05-19 Kenichi Handa <handa@m17n.org>
7538
7539 * font.c (font_sort_entities): Rename from font_sort_entites.
7540 Callers changed.
7541
7542 2009-05-18 Kenichi Handa <handa@m17n.org>
7543
7544 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7545
7546 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7547
7548 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7549 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7550
7551 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7552
7553 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7554 (x_delete_terminal): Dissociate resource database from display and
7555 then call XrmDestroyDatabase before closing display.
7556
7557 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7558
7559 * nsterm.m (ns_read_socket): Remove unused variable.
7560 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7561 whether selected frame is viable before raising it (based on patch
7562 by David Reitter), and improve commentary.
7563 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
7564
7565 2009-05-15 Kenichi Handa <handa@m17n.org>
7566
7567 * font.c (Ffont_spec): Check arguments.
7568
7569 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7572 weight when testing attributes (Bug#3282).
7573
7574 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7575
7576 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7577 what we expect to get in the next ConfigureNotify event.
7578
7579 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7580 before Xft one (Bug#1696).
7581
7582 2009-05-07 David Reitter <david.reitter@gmail.com>
7583
7584 * nsfns.m (Fx_display_planes): Compute bitplanes using
7585 NSBitsPerPixelFromDepth (Bug#3207).
7586
7587 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
7588
7589 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7590
7591 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
7592
7593 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7594
7595 2009-05-07 David Reitter <david.reitter@gmail.com>
7596
7597 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7598 Respect mouse face background.
7599
7600 2009-05-07 David Reitter <david.reitter@gmail.com>
7601
7602 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7603 Mouse movement/highlight: bracket drawing operations
7604 in ns_update_begin and ns_update_end.
7605
7606 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7607
7608 * nsfns.m (ns_get_screen): Rewrite.
7609 Don't presume selected-frame is of type `ns'.
7610
7611 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7612 all drivers.
7613
7614 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7615
7616 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7617
7618 * keyboard.h (add_user_signal): Fix typo in extern.
7619
7620 * lisp.h (add_user_signal): Remove extern.
7621
7622 * unexelf.c (unexec): Consider a section to precede the .bss section
7623 if its addresses overlap that of .bss.
7624 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7625 instead of dumping process.
7626
7627 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7628
7629 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7630
7631 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7632
7633 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7634
7635 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7636
7637 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7638 any statements.
7639
7640 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7641
7642 * process.c (read_process_output): Make sure the current buffer is
7643 always restored.
7644
7645 * coding.c (record_conversion_result): Don't modify
7646 Vlast_code_conversion_error for successful result.
7647 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7648
7649 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7650
7651 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
7652 (load_charset_map): Remove unnecessary code.
7653
7654 2009-04-30 David Reitter <david.reitter@gmail.com>
7655
7656 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
7657 through f24.
7658
7659 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
7660
7661 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7662
7663 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7664 face_at_buffer_position.
7665 (face_before_or_after_it_pos, get_next_display_element)
7666 (note_mouse_highlight): Update face_at_buffer_position call.
7667
7668 * term.c (term_mouse_highlight):
7669 * msdos.c (IT_note_mouse_highlight):
7670 * fontset.c (Finternal_char_font):
7671 * font.c (font_at, font_range): Update face_at_buffer_position call.
7672
7673 * dispextern.h (face_at_buffer_position): Update prototype.
7674
7675 2009-04-30 Kenichi Handa <handa@m17n.org>
7676
7677 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
7678
7679 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7680
7681 * callproc.c (Fcall_process): Fix GC protection. Make sure
7682 current buffer is always restored.
7683
7684 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7685
7686 * atimer.c (init_atimer): Also clear stopped_atimers.
7687
7688 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7689
7690 * process.c (create_process): Clean up merger residues of
7691 2008-07-17 change.
7692
7693 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
7694
7695 * lread.c (Vread_circle): New variable.
7696 (read1): Disable recursive read if Vread_circle is nil.
7697
7698 2009-04-29 Kenichi Handa <handa@m17n.org>
7699
7700 * fontset.h (set_default_ascii_font): Delete extern.
7701
7702 * fontset.c (set_default_ascii_font): Delete this unused function.
7703
7704 * frame.c (x_set_font): When ARG is a font-object, check if the
7705 font-object matches with the ASCII font-spec of the frame's
7706 fontset. If not, create a new fontset for the frame. (Bug #3075)
7707
7708 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7709
7710 * fns.c (Flocale_info): Protect vector from GC during decoding.
7711
7712 * process.c (Fstart_process): Protect argv strings from GC during
7713 encoding.
7714
7715 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7716
7717 * sysdep.c: Include <ctype.h>.
7718
7719 2009-04-27 David Reitter <david.reitter@gmail.com>
7720
7721 * nsfont.m (nsfont_open): Remove unused variable shrink.
7722 Remove commented-out code.
7723
7724 2009-04-26 Johan Bockgård <bojohan@gnu.org>
7725
7726 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7727
7728 2009-04-25 Jason Rumney <jasonr@gnu.org>
7729
7730 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7731
7732 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7733
7734 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7735 Swap bytes in short integer if fringe bitmap width > 8.
7736
7737 2009-04-23 Kenichi Handa <handa@m17n.org>
7738
7739 * xfaces.c (Fx_list_fonts): If a font size is specified in
7740 PATTERN, set it in returned scalable fonts.
7741
7742 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
7743
7744 * keyboard.c (Fset_input_meta_mode): Doc fix.
7745
7746 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7747
7748 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
7749
7750 * coding.c (Fterminal_coding_system): Doc fix.
7751
7752 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7753 (Fx_display_pixel_height, Fx_display_planes)
7754 (Fx_display_color_cells, Fx_server_max_request_size)
7755 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7756 (Fx_display_mm_height, Fx_display_mm_width)
7757 (Fx_display_backing_store, Fx_display_visual_class)
7758 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7759 Doc fixes, replacing "terminal id" with "terminal object".
7760 (check_x_display_info): Handle terminal objects instead of
7761 terminal ids.
7762
7763 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7764 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
7765 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7766 Doc fixes, replacing "terminal id" with "terminal object".
7767
7768 2009-04-21 Kenichi Handa <handa@m17n.org>
7769
7770 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
7771 (font_score): Check AVGWIDTH too.
7772
7773 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7774 worst case.
7775 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7776 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
7777
7778 2009-04-19 Jason Rumney <jasonr@gnu.org>
7779
7780 The following changes fix Bug#3005 for wide glyphs on each platform,
7781 without reintroducing Bug#1258 for stretch glyphs.
7782
7783 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7784 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7785 get_phys_cursor_geometry.
7786
7787 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
7788 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7789 using get_phys_cursor_geometry.
7790
7791 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7792 correctly calculated.
7793
7794 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7795
7796 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7797 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
7798 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7799 is deprecated.
7800
7801 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7802
7803 * font.c (font_put_frame_data): Use xfree instead of free.
7804
7805 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
7806
7807 * w32font.c (Qja, Qko): Remove declarations.
7808 (syms_of_w32font): Don't DEFSYM them.
7809
7810 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
7811
7812 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7813
7814 * font.h (Qja, Qko): Extern them.
7815
7816 * ftfont.c (Qja, Qko): Remove declarations.
7817
7818 * xfont.c (Qja, Qko): Remove declarations.
7819
7820 2009-04-17 Kenichi Handa <handa@m17n.org>
7821
7822 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7823 string from a vector to handle Latin-1 characters correctly.
7824
7825 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7826 entity even if the cache hits.
7827
7828 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7829
7830 * search.c (boyer_moore): Use zero as marker value for a possible
7831 match instead of depending on overflow behavior. (Bug#2844)
7832
7833 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7834 * lisp.h: Adjust prototypes.
7835
7836 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
7837
7838 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7839 change (Bug#3003).
7840
7841 2009-04-16 Kenichi Handa <handa@m17n.org>
7842
7843 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
7844
7845 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7846 adstyle.
7847
7848 * ftfont.c (Qja, Qko): Don't make them static.
7849 (enum ftfont_cache_for): New enum.
7850 (fc_charset_table): Undo the previous change.
7851 (ftfont_get_latin1_charset): Delete it.
7852 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7853 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
7854 non-scarable font, try to get AVERAGE_WIDTH.
7855 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7856 Change ft_face_cache from a list of a hash-table. Don't check
7857 `ja' and `ko' adstyle here.
7858 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7859 FTFONT_CACHE_FOR_CHARET.
7860 (ftfont_get_charset): Undo the previous change.
7861 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
7862 (ftfont_close): Likewise.
7863 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7864
7865 * font.c (font_sort_entites): Change the meaning of the arg
7866 BEST-ONLY. Don't optimize for VEC of lenght 1.
7867 (font_select_entity): Just return the value of font_sort_entites.
7868
7869 * xfaces.c (merge_face_vectors): Reflect font properties in
7870 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7871 font_clear_prop if a face attribute doesn't change.
7872
7873 * charset.h (charset_ksc5601): Extern it.
7874
7875 * charset.c (charset_ksc5601): New variable.
7876 (Fdefine_charset_internal): Set charset_ksc5601.
7877 (init_charset_once): Initialize charset_ksc5601 to -1.
7878
7879 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7880
7881 * fileio.c (history_delete_duplicates): Remove unused declaration.
7882
7883 * callint.c (history_delete_duplicates): New declaration.
7884 (Fcall_interactively): Remove command history duplicates when
7885 history_delete_duplicates is true.
7886
7887 2009-04-14 Eli Zaretskii <eliz@gnu.org>
7888
7889 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7890
7891 2009-04-14 Kenichi Handa <handa@m17n.org>
7892
7893 * font.c (Ffont_info): Fix docstring. Fix the second element of
7894 the returned value (bug#2949).
7895
7896 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
7897
7898 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7899
7900 2009-04-14 Kenichi Handa <handa@m17n.org>
7901
7902 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7903 encoding charset is ascii_compatible.
7904
7905 * charset.c (Fdefine_charset_internal): Make charset
7906 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7907 code_offset is 0, and covers all ASCII characters.
7908
7909 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7910
7911 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7912 (ns_string_to_pasteboard_internal):
7913 * nsmenu.m (process_dialog):
7914 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7915 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7916 * lisp.h (Fx_load_color_file): Declare.
7917
7918 2009-04-13 Kenichi Handa <handa@m17n.org>
7919
7920 * font.c (font_delete_unmatched): Preserve the order of list elements.
7921 (font_select_entity): Suppress the code to optimize for the same
7922 kind of fonts.
7923 (font_load_for_lface): Get a font that supports at least ASCII
7924 characters.
7925
7926 * ftfont.c (Qja, Qko): New variables.
7927 (fc_charset_table): Delete uniquifier data for iso8859-1.
7928 (ftfont_get_latin1_charset): New function.
7929 (get_adstyle_property): New function.
7930 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7931 bitmap fonts.
7932 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7933 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7934 `ko' or `ja'.
7935 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
7936 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
7937 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7938 property.
7939 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7940 (syms_of_ftfont): DEFSYM Qja and Qko.
7941
7942 2009-04-09 Kenichi Handa <handa@m17n.org>
7943
7944 * charset.c (map_charset_chars): For a charset of `superset'
7945 method, fix calculation of code range.
7946
7947 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7948 from the list of extra properties.
7949 (font_clear_prop): Be sure to delete `:name' font property.
7950
7951 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7952
7953 * dispnew.c (redraw_overlapping_rows): Fix detection of
7954 overlapping for topmost and bottommost rows.
7955
7956 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
7957
7958 2009-04-06 Jason Rumney <jasonr@gnu.org>
7959
7960 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7961
7962 2009-04-06 Kenichi Handa <handa@m17n.org>
7963
7964 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7965
7966 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7967
7968 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7969
7970 * ftfont.c (ftfont_open): Fix checking of the return value of
7971 FT_Load_Char. Fix setting font->underline_thickness.
7972
7973 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
7974
7975 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7976 (Fterminal_parameters, Fterminal_parameter)
7977 (Fset_terminal_parameter): In doc string, refer to terminal
7978 objects rather than terminal ids.
7979
7980 2009-04-04 Eli Zaretskii <eliz@gnu.org>
7981
7982 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7983 ret_lim_data. (Bug#2867)
7984
7985 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
7986
7987 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7988 so they don't get wider than the window, matching 2006-01-23
7989 change to the partner function in xdisp.c (Bug#2800).
7990
7991 2009-04-03 Kenichi Handa <handa@m17n.org>
7992
7993 * print.c (print_object): Make each lowest sub_char_table start a
7994 new line (Bug#2866).
7995
7996 2009-04-02 Kenichi Handa <handa@m17n.org>
7997
7998 * fontset.c (fontset_font): Record no-font when a fontset
7999 explicitly tells not to try another font-specs.
8000
8001 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8002
8003 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8004
8005 2009-03-30 Kenichi Handa <handa@m17n.org>
8006
8007 * fontset.c (fontset_from_font): Specify only registry in a
8008 font-spec for all characters supported by that registry.
8009
8010 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8011 even if HAVE_M17N_FLT is not defined.
8012
8013 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8014
8015 * ftfont.c: Conditionalize prototyping and use of
8016 ftfont_variation_glyphs.
8017
8018 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8019
8020 * frame.c (delete_frame): Work around compiler bug.
8021
8022 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8023 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8024 Some more EMACS_INT.
8025 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8026
8027 * xdisp.c (dump_glyph): Fix typo.
8028
8029 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8030 (adjust_markers_gap_motion, adjust_markers_for_delete)
8031 (adjust_markers_for_insert, adjust_point)
8032 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8033 (make_gap, copy_text, count_size_as_multibyte, insert)
8034 (insert_and_inherit, insert_before_markers)
8035 (insert_before_markers_and_inherit, insert_1)
8036 (count_combining_before, count_combining_after, insert_1_both)
8037 (insert_from_string, insert_from_string_before_markers)
8038 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8039 (insert_from_buffer_1, adjust_after_replace)
8040 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8041 (replace_range_2, del_range, del_range_1, del_range_byte)
8042 (del_range_both, del_range_2, modify_region)
8043 (prepare_to_modify_buffer, signal_before_change)
8044 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8045 for buffer positions and sizes.
8046 * lisp.h: Adjust prototypes accordingly.
8047
8048 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8049 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8050 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8051
8052 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8053
8054 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8055
8056 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8057 lines and columns so we keep the same pixel height and width.
8058
8059 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8060 the property _NET_WM_STATE has changed.
8061 (x_handle_net_wm_state): New function to update frame parameter
8062 fullscreen.
8063 (x_term_init): Initialize atoms for _NET_WM_STATE.
8064
8065 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8066
8067 2009-03-27 Kevin Ryde <user42@zip.com.au>
8068
8069 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8070 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8071 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8072 (Fgpm_mouse_stop): Pass that new parameter.
8073 * termhooks.h (close_gpm): Adjust prototype.
8074
8075 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8076
8077 * lisp.h (Fx_focus_frame): Declare.
8078
8079 * callint.c (Fcall_interactively): For '^' just delegate the work to
8080 handle-shift-selection.
8081 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8082
8083 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
8084
8085 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8086
8087 * data.c (Qinteractive_form): New variable.
8088 (Finteractive_form): Use it.
8089
8090 * eval.c (Fcommandp): Use Qinteractive_form.
8091
8092 2009-03-24 Jason Rumney <jasonr@gnu.org>
8093
8094 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8095 Calculate total size precisely. Decode environment variables
8096 before substituting. (Bug#38)
8097
8098 2009-03-24 Kenichi Handa <handa@m17n.org>
8099
8100 * font.c (find_font_encoding): Return Qnil for unsupported
8101 encoding (Bug#2722).
8102
8103 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8104
8105 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8106 that gdpy is set.
8107
8108 2009-03-22 Alan Mackenzie <acm@muc.de>
8109
8110 * callint.c (Finteractive): Clarify the doc string - even
8111 promptless elements need \n separators.
8112
8113 2009-03-22 Jason Rumney <jasonr@gnu.org>
8114
8115 * w32term.c (syms_of_w32term): Doc fix for
8116 x-use-underline-position-properties.
8117
8118 2009-03-21 Eli Zaretskii <eliz@gnu.org>
8119
8120 * w32.c (getpwuid): Change argument type to unsigned.
8121 (struct w32_id): Change type of `rid' member to unsigned.
8122 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8123 argument ID to unsigned. All callers changed.
8124 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8125
8126 2009-03-20 Eli Zaretskii <eliz@gnu.org>
8127
8128 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8129 negative, produce a float value.
8130
8131 * dired.c (make_uid, make_gid): New functions.
8132 (Ffile_attributes): Use them to avoid negative UID and GID.
8133
8134 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
8135
8136 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8137 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8138 Fix typos in docstrings.
8139
8140 2009-03-19 Kenichi Handa <handa@m17n.org>
8141
8142 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
8143 changed, use font_load_for_lface to get a new font object.
8144 Call free_realized_fontset after handling ASCII font change.
8145
8146 * frame.c (x_set_font): Handle the case that ARG is a cons.
8147
8148 2009-03-19 Glenn Morris <rgm@gnu.org>
8149
8150 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8151
8152 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
8153
8154 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8155
8156 2009-03-19 Kenichi Handa <handa@m17n.org>
8157
8158 * charset.c (load_charset_map_from_file): When a mapfile can't be
8159 loaded, signal an error.
8160
8161 2009-03-18 Eli Zaretskii <eliz@gnu.org>
8162
8163 * dired.c (Ffile_attributes): Make sure UID and GID are always
8164 positive, even if the value is too large for a positive EMACS_INT.
8165 Doc fix.
8166
8167 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8168
8169 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8170
8171 * xmenu.c (xdialog_show): Move Fredisplay call ...
8172 (Fx_popup_dialog): ... here.
8173
8174 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8175
8176 * dired.c (file_name_completion): Disable the first optimization just
8177 installed, since it is not implemented correctly.
8178
8179 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8180
8181 * dired.c (file_name_completion): Check completion-ignored-extensions
8182 only if the entry can affect bestmatch.
8183 Stop the search early, as Ftry_completion already does.
8184
8185 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
8186
8187 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
8188
8189 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
8190
8191 * keyboard.c (parse_menu_item): Don't display remappings as menu
8192 equivalent bindings (Bug#788).
8193
8194 2009-03-15 Jason Rumney <jasonr@gnu.org>
8195
8196 * w32term.h (WM_EMACS_PAINT): New message.
8197 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8198 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8199 before passing to lisp thread. (Bug#950)
8200
8201 2009-03-14 David Reitter <david.reitter@gmail.com>
8202
8203 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8204 variable as it was never reset.
8205 (ns_term_init): Remove initialization of Lisp-settable defaults
8206 and ns_expand_space.
8207 (-setPanelFromDefaultValues): Remove ns_expand_space.
8208 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8209 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
8210 i.e. no additional spacing, similar to Carbon port.
8211
8212 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8213 * nsfns.m (ns-popup-prefs-panel): Remove.
8214
8215 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8216
8217 * sound.c (alsa_configure): Remove call to deprecated
8218 snd_pcm_sw_params_set_xfer_align.
8219
8220 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
8221
8222 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8223 after clicking in a detached tool bar.
8224 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8225
8226 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8227
8228 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8229 int/Lisp_Object mixup).
8230
8231 2009-03-13 Kenichi Handa <handa@m17n.org>
8232
8233 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
8234 Handle NAME nil and t correctly. Callers changed.
8235 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8236 (set_fontset_font): Change ARG to a vector. Handle range_list in
8237 ARG correctly.
8238 (Fset_fontset_font): Fix the case that TARGET is both a script
8239 name and charset name. Adjust the arg to set_fontset_font for
8240 the above change.
8241 (fontset_from_font): Fix previous change.
8242 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
8243 entry. If FONTSET is the default fontset, don't set the extra
8244 slot of the returning char-table.
8245
8246 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
8247
8248 * nsfns.m (Fx_close_connection): Doc fix.
8249 (Fns_do_applescript): Reflow docstring.
8250 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8251 (Fx_display_pixel_width, Fx_display_pixel_height)
8252 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8253 Fix typos in docstrings.
8254 (Fns_set_alpha): Fix typos in error messages.
8255
8256 2009-03-12 David Reitter <david.reitter@gmail.com>
8257
8258 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
8259 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8260 were used for such events.
8261
8262 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8263 (toggleToolbar, performDragOperation, runHelp): Use it.
8264
8265 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
8266 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8267
8268 2009-03-11 Kenichi Handa <handa@m17n.org>
8269
8270 * font.h (font_open_by_spec): Extern it.
8271
8272 * font.c (font_open_by_spec): New function.
8273 (font_open_by_name): Use font_open_by_spec.
8274
8275 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8276 fontset of the frame.
8277
8278 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8279 modify the default font of frames that use this fontset.
8280 (num_auto_fontsets): New variable.
8281 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8282 name. Be sure to set FONTSET_ASCII to the correct font name.
8283 (update_auto_fontset_alist): New function.
8284
8285 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
8286
8287 * makefile.w32-in: Update dependencies.
8288
8289 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8290
8291 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8292
8293 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8296
8297 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
8298
8299 * lread.c (Feval_buffer): Doc fix.
8300
8301 2009-03-09 Kenichi Handa <handa@m17n.org>
8302
8303 * charset.c (Qfile_name_handler_alist): Extern it.
8304 (load_charset_map_from_file): Temporarily bind
8305 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8306
8307 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
8308
8309 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8310 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
8311
8312 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8313
8314 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8315 (x_set_window_size): Change back to calculated method of setting
8316 toolbar height under Cocoa. (Bug#2546)
8317 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8318 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8319
8320 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8321
8322 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8323 accelerator in parens under GNUstep.
8324
8325 2009-03-06 Kenichi Handa <handa@m17n.org>
8326
8327 These changes are to detect incorrect composition sequence without
8328 looking ahead the source. (Bug#2370)
8329
8330 * coding.h: Include "composite.h".
8331 (enum compisition_state): New enum.
8332 (struct compisition_status): New struct.
8333 (struct iso_2022_spec): New member cmp_status.
8334 (struct emacs_mule_spec): New struct.
8335 (struct coding_system): New members ctext_extended_segment_len and
8336 embedded_utf_8. Change the union member
8337 spec.emacs_mule_full_support to spec.emacs_mule.
8338
8339 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8340 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
8341 (MAX_ANNOTATION_LENGTH): Define to 5.
8342 (ADD_COMPOSITION_DATA): New arg nbytes.
8343 (emacs_mule_char): New arg cmp_status.
8344 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8345 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8346 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8347 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8348 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8349 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8350 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8351 (EMACS_MULE_COMPOSITION_END): New macro.
8352 (emacs_mule_finish_composition): New function.
8353 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8354 (decode_coding_emacs_mule): Avoid long looking ahead while
8355 handling composition.
8356 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8357 (ENCODE_COMPOSITION_RULE): New macro.
8358 (finish_composition): New function.
8359 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8360 (DECODE_COMPOSITION_START): New implementation.
8361 (DECODE_COMPOSITION_END): Likewise.
8362 (STORE_COMPOSITION_RULE): New macro.
8363 (decode_coding_iso_2022): Avoid long looking ahead while handling
8364 composition, CTEXT extended segment, and embedded UTF-8.
8365 (setup_coding_system): For a coding of type iso-2022, reset
8366 CODING_ISO_EXTSEGMENT_LEN (coding) and
8367 CODING_ISO_EMBEDDED_UTF_8 (coding).
8368 (get_translation): Delete arguments last_block, from_nchars,
8369 to_nchars. Callers changed.
8370 (produce_chars): Don't modify charbuf. Adjusted for the change of
8371 get_translation.
8372 (produce_composition): Adjust for the new annotation sequence.
8373 (handle_composition_annotation): Likewise.
8374 (consume_chars): Adjust for the change of get_translation.
8375
8376 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8377
8378 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
8379
8380 2009-03-05 Kenichi Handa <handa@m17n.org>
8381
8382 * font.c (font_select_entity): New function.
8383 (font_find_for_lface): Use font_select_entity to select a font.
8384
8385 * fontset.c (fontset_find_font): If a font found without
8386 restricting to the characters C doesn't support C, try to find a
8387 font with C restriction.
8388
8389 2009-03-04 Nikolaj Schumacher <me@nschum.de>
8390
8391 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
8392
8393 2009-03-04 Jason Rumney <jasonr@gnu.org>
8394
8395 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
8396 characters that have already been read. (Bug#2569)
8397
8398 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8399 Log an error message if check_image_size failed.
8400 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
8401 (gs_load): Mention max-image-size in size error message. (Bug#2560)
8402
8403 2009-03-02 Eli Zaretskii <eliz@gnu.org>
8404
8405 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8406 when decoding process output.
8407
8408 2009-03-01 Richard M Stallman <rms@gnu.org>
8409
8410 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8411
8412 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8413
8414 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8415
8416 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8417 (decode_coding_emacs_mule, decode_coding_iso_2022)
8418 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8419 (decode_coding_raw_text, decode_coding_charset)
8420 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8421 Honor inhibit-eol-conversion. (Bug #2186)
8422
8423 2009-02-28 Jason Rumney <jasonr@gnu.org>
8424
8425 * coding.c (detect_coding_charset): If not checking latin extra,
8426 fail on characters between 0x80 and 0xA0. (Bug#2354)
8427
8428 2009-02-28 Eli Zaretskii <eliz@gnu.org>
8429
8430 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
8431 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
8432
8433 2009-02-27 Glenn Morris <rgm@gnu.org>
8434
8435 * callint.c (Finteractive): Doc fix.
8436
8437 2009-02-27 Kenichi Handa <handa@m17n.org>
8438
8439 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8440
8441 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
8442
8443 * font.c (font_style_to_value): Set value for unknown symbols to
8444 100 instead of 255.
8445 (weight_table, slant_table, width_table): Treat "unspecified" as
8446 the default value.
8447
8448 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
8449
8450 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8451
8452 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
8453
8454 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8455 error as soon as a recursive load is detected.
8456
8457 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8458
8459 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8460 before caching.
8461
8462 2009-02-24 Kenichi Handa <handa@m17n.org>
8463
8464 * fontset.c (fontset_find_font): Fix the condition for checking
8465 unavailable font.
8466
8467 2009-02-24 Glenn Morris <rgm@gnu.org>
8468
8469 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8470 whitespace that confuses documentation.
8471
8472 2009-02-23 Miles Bader <miles@gnu.org>
8473
8474 * process.c (Flist_system_processes, Fprocess_attributes)
8475 (syms_of_process): Rename `system-process-attributes' to
8476 `process-attributes'.
8477
8478 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8479
8480 * coding.h (struct coding_system): Make safe_charsets a pointer to
8481 unsigned char.
8482 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8483 being 255.
8484 (SAFE_CHARSET_P): Likewise.
8485 (setup_iso_safe_charsets): Properly setup safe_charsets.
8486 (Fdefine_coding_system_internal): Likewise.
8487 (setup_coding_system): Likewise. Remove unneeded casts.
8488 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8489 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8490 unneeded casts.
8491
8492 * insdel.c (del_range_2): Don't modify gap contents when called
8493 from decode_coding_object. (Bug#1809)
8494
8495 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
8496
8497 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8498 Qfont_object.
8499 (Ftype_of): Recognize font objects.
8500
8501 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8502
8503 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8504 moved to data.c.
8505
8506 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8507
8508 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8509 async_iconified. Based on a patch by Christian Lynbech
8510 <christian.lynbech@tieto.com>.
8511 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8512
8513 2009-02-20 Glenn Morris <rgm@gnu.org>
8514
8515 * syntax.c (Fskip_chars_forward): Fix doc typo.
8516
8517 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
8518
8519 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8520
8521 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
8522
8523 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8524
8525 2009-02-19 Kenichi Handa <handa@m17n.org>
8526
8527 * coding.c (detect_coding): Preserve coding->mode.
8528 Don't overflow coding->carryover. (Bug#2370)
8529
8530 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8531
8532 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8533
8534 2009-02-18 Kenichi Handa <handa@m17n.org>
8535
8536 * font.c (font_check_otf_features): Fix handling of `nil' element.
8537 (Ffont_spec): Describe :lang and :otf in the docstring.
8538
8539 2009-02-16 Andreas Schwab <schwab@suse.de>
8540
8541 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8542 string.
8543
8544 2009-02-16 Kenichi Handa <handa@m17n.org>
8545
8546 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
8547 (Bug#1723)
8548
8549 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
8550
8551 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8552
8553 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8554 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8555
8556 2009-02-14 Eli Zaretskii <eliz@gnu.org>
8557
8558 * msdos.c (MAX_SCREEN_BUF): New macro.
8559 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8560 Encode the entire run of glyphs sharing the same face, instead of
8561 doing that one glyph at a time (fixes a bug with displaying
8562 double-size characters).
8563
8564 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8565
8566 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8567
8568 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8569 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
8570 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
8571
8572 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
8573 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
8574
8575 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8576
8577 * keyboard.c (adjust_point_for_property): Allow stopping between two
8578 invisible areas.
8579
8580 2009-02-12 Jason Rumney <jasonr@gnu.org>
8581
8582 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8583 (add_font_entity_to_list): Call check_face_name even when family
8584 is unspecified.
8585
8586 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8587 Release DC when finished. Use NULL window to refer to desktop.
8588 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
8589
8590 * w32font.c (add_font_entity_to_list): Fix check for substituted
8591 raster fonts. (Bug#2219)
8592
8593 2009-02-12 Kenichi Handa <handa@m17n.org>
8594
8595 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8596 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8597 (autocmp_chars): Use fast_looking_at. Don't compose more
8598 characters than MAX_COMPOSITION_COMPONENTS.
8599 (find_automatic_composition): While looking forward and backward,
8600 check static composition. Fix where to stop looking forward.
8601 (composition_adjust_point): Fix checking of static composition.
8602 (Fcomposition_get_gstring): Pay attention to
8603 MAX_COMPOSITION_COMPONENTS.
8604
8605 * lisp.h (fast_looking_at): Extern it.
8606
8607 * search.c (fast_looking_at): New function.
8608
8609 * term.c (encode_terminal_code): Adjust for the change of
8610 <struct glyph>.u.cmp.to.
8611 (append_composite_glyph): Likewise.
8612
8613 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
8614 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8615 composition.
8616 (append_composite_glyph): Adjust for the change of
8617 <strcut glyph>.u.cmp.to.
8618
8619 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * casetab.c (init_casetab_once):
8622 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8623 * font.c (font_update_lface):
8624 * fontset.c (Fnew_fontset):
8625 * ftfont.c (ftfont_drive_otf):
8626 * xfont.c (xfont_open):
8627 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8628
8629 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8630
8631 * fileio.c (Fwrite_region): !NILP -> CONSP.
8632
8633 2009-02-10 Andreas Schwab <schwab@suse.de>
8634
8635 * process.c (send_process): Properly relocate pointer into data
8636 when using encoded data. (Bug#2272)
8637
8638 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8639
8640 * coding.c (detect_coding_charset): Fix previous change.
8641
8642 2009-02-08 Jason Rumney <jasonr@gnu.org>
8643
8644 * w32fns.c (w32_hide_hourglass): Handle case where frame
8645 disappeared while hourglass was displayed. (Bug #2193)
8646
8647 2009-02-07 Andreas Schwab <schwab@suse.de>
8648
8649 * unexelf.c (unexec): Fix error message.
8650
8651 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8652
8653 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
8654 when modal window is active. (Bug #2152)
8655 (applicationShouldTerminate:): Remove now-unneeded while loop
8656 around NSRunAlertPanel.
8657
8658 * nsmenu.m (popupSession): New file-global variable.
8659 (pop_down_menu): End the popupSession before closing dialog.
8660 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8661 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8662 don't query NSApp for events (just sleep instead).
8663
8664 2009-02-07 Eli Zaretskii <eliz@gnu.org>
8665
8666 * coding.c (syms_of_coding) <translation-table-for-input>:
8667 Modify doc string to discourage use for character code unification.
8668
8669 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8670
8671 * atimer.c (run_timers): Update pending_atimers.
8672
8673 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
8674
8675 * image.c (svg_load_image): Fix last change.
8676
8677 * xfns.c (Fx_create_frame): Signal an error if no font is
8678 found (Bug#2147).
8679
8680 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
8681
8682 * character.c (syms_of_character) <script-representative-chars>:
8683 Fix typo in docstring.
8684
8685 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8686
8687 * nsmenu.m (pop_down_menu): New function.
8688 (ns_popup_dialog): Call it on unwind.
8689 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8690 call timer_check() (Bug#2154).
8691 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8692 handling_signal is set.
8693 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8694
8695 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
8696
8697 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8698
8699 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8700
8701 * keyboard.c (poll_for_input_1, handle_async_input):
8702 Set handling_signal under HAVE_NS.
8703
8704 2009-02-04 Glenn Morris <rgm@gnu.org>
8705
8706 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8707
8708 2009-02-04 Kenichi Handa <handa@m17n.org>
8709
8710 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8711
8712 * charset.c (Fchar_charset): New optional arg restriction.
8713
8714 * coding.h (coding_system_charset_list): Extern it.
8715
8716 * coding.c (coding_system_charset_list): New function.
8717
8718 * composite.c: Include coding.h and termhooks.h.
8719 (composition_gstring_p): Fix for the terminal case.
8720 (composition_gstring_width): Likewise.
8721 (fill_gstring_body): Likewise.
8722 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8723 the frame.
8724 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8725 is within a composition.
8726 (Fcomposition_get_gstring): Fix the terminal case.
8727
8728 * term.c (encode_terminal_code): Fix handling of composition.
8729 (produce_composite_glyph): For static composition, get pixel_width
8730 from struct composition.
8731
8732 2009-02-02 Andreas Schwab <schwab@suse.de>
8733
8734 * unexelf.c (unexec): Handle unaligned bss offset.
8735
8736 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8737
8738 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8739 XT,w32read_socket changes to ns_read_socket.
8740
8741 * keyboard.c (handle_interrupt): Don't call
8742 quit_throw_to_read_char() under NS.
8743
8744 * blockinput.h: Remove NS-specific code.
8745
8746 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8747
8748 * dispnew.c (window_change_signal): Don't try to get the size of a
8749 suspended tty frame.
8750 * term.c (Fresume_tty): Resize if the size has changed while the
8751 tty was suspended.
8752
8753 * alloc.c (mark_stack): Properly conditionalize previous change.
8754
8755 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8756
8757 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8758 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8759 Remove; this code is not used on Windows.
8760
8761 2009-01-30 Eli Zaretskii <eliz@gnu.org>
8762
8763 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8764 EOLs that also has stray ^M characters.
8765
8766 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
8767
8768 * atimer.c (run_timers, alarm_signal_handler):
8769 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8770 * w32inevt.c (w32_console_read_socket):
8771 * w32term.c (w32_read_socket):
8772 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8773
8774 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
8775
8776 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8777 Initialize it as a relative filename pattern.
8778 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8779 (Fcall_process_region): Simplify temp file creation using
8780 temporary-file-directory.
8781
8782 2009-01-29 Eli Zaretskii <eliz@gnu.org>
8783
8784 * msdos.c: Rename pending_signals to msdos_pending_signals.
8785 (sig_suspender, sigprocmask): Adjust.
8786
8787 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * keyboard.c (pending_signals): New var.
8790 (poll_for_input, input_available_signal, init_keyboard): Set it.
8791 (process_pending_signals): New function.
8792
8793 * lisp.h (QUIT): Check pending_signals instead of
8794 interrupt_input_pending. Use process_pending_signals.
8795
8796 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
8797
8798 * process.c (wait_reading_process_output): Use process_pending_signals.
8799
8800 * sysdep.c (emacs_write): Use process_pending_signals.
8801
8802 * xterm.c (XTread_socket): Update pending_signals.
8803
8804 * w32term.c (w32_read_socket): Update pending_signals.
8805
8806 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8807
8808 2009-01-29 Kenichi Handa <handa@m17n.org>
8809
8810 * xftfont.c (xftfont_has_char): New function.
8811 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8812
8813 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8814
8815 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8816 under GNUstep.
8817 (ns_query_color): New declaration.
8818
8819 * nsterm.m (ns_confirm_quit): New variable.
8820 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8821 (EmacsApp-applicationShouldTerminate:): Use it.
8822 (EmacsPrefsController): Let user set it.
8823 (ns_query_color): New function.
8824 (ns_defined_color): Use it.
8825 (ns_initialize): Drop.
8826 (ns_term_init): Add two lines from ns_initialize(), and set
8827 input_interrupt_mode to nil.
8828
8829 * image.c (svg_load_image): Don't right-shift background RGB when
8830 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
8831
8832 2009-01-28 Kenichi Handa <handa@m17n.org>
8833
8834 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8835 (fontset_get_font_group): Remember that no font-group is specified
8836 for C.
8837
8838 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * fns.c (concat): Check for string overflow (bug#1787).
8841
8842 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8843 Quadruple undo limits (bug#1501).
8844
8845 2009-01-27 Kenichi Handa <handa@m17n.org>
8846
8847 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8848 directly use GT_Get_Char_index.
8849
8850 * xftfont.c (struct xftfont_info): New member `index'.
8851
8852 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
8853 (Ffontset_font): Adjust for the change of fontset entry.
8854
8855 2009-01-26 Kenichi Handa <handa@m17n.org>
8856
8857 * fontset.c (fontset_find_font): Fix handling of non-cons return
8858 value of fontset_get_font_group.
8859 (fontset_font): Revert last change.
8860
8861 2009-01-26 Jason Rumney <jasonr@gnu.org>
8862
8863 * w32font.c (w32font_list_internal): Return quickly if registry is
8864 unknown. Simplify final return.
8865 (add_font_entity_to_list): Break complex logic down into more
8866 manageable chunks. Move unknown registry check to
8867 w32font_list_internal.
8868
8869 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8870
8871 Changes to remove Feval calls from GUI under NS.
8872
8873 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8874 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8875 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8876
8877 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8878 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8879 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8880 instead of NON_ASCII_KEYSTROKE_EVENT.
8881 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8882 (EmacsApp-applicationShouldTerminate:): Query user.
8883 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8884 instead of Feval.
8885
8886 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8887
8888 * keyboard.c (kbd_buffer_get_event): Check for it.
8889 (keys_of_keyboard): Define lispy keys for
8890 ns-put/unput-working-text.
8891
8892 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8893 versions.
8894 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8895
8896 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
8897
8898 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
8899 setting current_buffer directly. (Bug#2044)
8900
8901 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
8902
8903 * fontset.c (fontset_font): If we know there is no font, don't do
8904 any work. (Bug#1952, bug#1990).
8905
8906 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
8907
8908 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8909
8910 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
8911 (ns_no_defaults): New declaration.
8912 (main): Use it.
8913
8914 * nsterm.h (ns_no_defaults): New declaration.
8915
8916 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
8917
8918 * nsterm.m (ns_no_defaults): New variable.
8919 (ns_initialize): Don't read defaults when ns_no_defaults.
8920 (EmacsView-readSelectionFromPasteboard:)
8921 (writeSelectionToPasteboard:types:): New stubbed-out methods for
8922 NSServicesRequests protocol. (Bug#1435)
8923 (ns_dumpglyphs_stretch): New function.
8924 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
8925 of 2008-11-15 to other terms. (Bug#615)
8926
8927 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8928
8929 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8930
8931 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8932 call for Sparc64.
8933
8934 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8935
8936 * nsfns.m:
8937 * nsgui.h:
8938 * nsmenu.m:
8939 * nsselect.m:
8940 * nsterm.h:
8941 * nsterm.m: Remove '23' comments that indicated code added during
8942 update from emacs-20 -> emacs-23.
8943
8944 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8945
8946 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
8947 ns_alternate_modifier. (Bug#1217)
8948
8949 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8950 Display all shortcuts, including those w/o super modifier.
8951
8952 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8953
8954 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * fileio.c (Vwrite_region_post_annotation_function)
8957 (Vwrite_region_annotation_buffers): New vars.
8958 (build_annotations_unwind): Just reset
8959 Vwrite_region_annotation_buffers.
8960 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8961 Call write-region-post-annotation-function.
8962 (build_annotations): Add to Vwrite_region_annotation_buffers if
8963 buffer changes.
8964
8965 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8966
8967 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8968 Tiger.
8969 * nsfns.m (ns_do_applescript):
8970 Conditionalize typeUTF16ExternalRepresentation on Tiger.
8971
8972 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8973
8974 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8975
8976 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8977
8978 * nsmenu.m (NSMENUPROFILE): Change #if style.
8979
8980 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8981
8982 * nsterm.m (x_set_frame_alpha): Add prototype.
8983 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8984 handle Ctrl-tab. (Bug#1841)
8985 (ns_get_color): Use unsigned long long for scanned hex string value.
8986 (ns_term_shutdown): Abort on non SIGTERM signals.
8987 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
8988 (EmacsPrefsController-setPanelFromDefaultValues): New function.
8989 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
8990 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
8991 (ns_defined_color): Fix settings of the XColor variable fields:
8992 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
8993
8994 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
8995 DPI. (Bug#1316)
8996 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8997 values in onTiger section.
8998
8999 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9002 Check return value of font_spec_from_name.
9003 (Fx_list_fonts): Doc fix. (Bug#1951)
9004
9005 * font.c (font_spec_from_name): Return Qnil if font name could not
9006 be parsed.
9007 (font_parse_name): Treat a `?' character as part of an XLFD.
9008
9009 * fns.c (Fsubstring): Doc fix.
9010
9011 2009-01-19 Kenichi Handa <handa@m17n.org>
9012
9013 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
9014 (ftfont_list): Likewise.
9015
9016 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
9017
9018 * dbusbind.c (Fdbus_register_signal):
9019 * process.c (conv_sockaddr_to_lisp):
9020 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9021
9022 * callproc.c (Fgetenv_internal): Doc fix.
9023
9024 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
9025
9026 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9027 it is not even used.
9028
9029 2009-01-16 Glenn Morris <rgm@gnu.org>
9030
9031 * font.c (Ffont_variation_glyphs): Silence compiler.
9032
9033 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
9034
9035 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9036 Reported by David Robinow <drobinow@gmail.com>.
9037
9038 2009-01-15 Kenichi Handa <handa@m17n.org>
9039
9040 * coding.c (detect_coding_system): Fix handling of null_byte_found.
9041
9042 2009-01-14 Jason Rumney <jasonr@gnu.org>
9043
9044 * frame.c (x_set_font): Always store a font to the font parameter,
9045 never a fontset. (Bug#1562)
9046
9047 2009-01-14 Kenichi Handa <handa@m17n.org>
9048
9049 * coding.c (TWO_MORE_BYTES): New macro.
9050 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
9051
9052 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
9053
9054 * font.c (font_clear_prop): If clearing the family, clear the font
9055 width index too.
9056
9057 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
9058
9059 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
9060
9061 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9062 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9063 functions, use sizeof.
9064
9065 2009-01-12 Martin Rudalics <rudalics@gmx.at>
9066
9067 * keyboard.c (read_char): Fix case where last_nonmenu_event
9068 returned a bad value with submenus. (Bug#447)
9069
9070 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9073 family, clear the font width index too.
9074
9075 2009-01-11 Jason Rumney <jasonr@gnu.org>
9076
9077 * keyboard.c (cmd_error_internal): Exit when errors occur before
9078 frame creation and not in daemon mode. (Bug#1836)
9079
9080 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
9081
9082 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9083 of a display vector, backtrack.
9084 (try_window_reusing_current_matrix): Check glyph type before
9085 referencing charpos member.
9086
9087 2009-01-10 Eli Zaretskii <eliz@gnu.org>
9088
9089 Fix Bug #876:
9090
9091 * coding.c (inhibit_null_byte_detection): New variable.
9092 (detect_coding, detect_coding_system): Don't pay attention to null
9093 bytes if inhibit_null_byte_detection is non-zero.
9094 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
9095 <inhibit-iso-escape-detection>: Doc fix.
9096
9097 2009-01-09 Jason Rumney <jasonr@gnu.org>
9098
9099 * w32font.c (add_font_entity_to_list): Don't report unknown
9100 Windows charset as any unrecognized registry. (Bug#1548)
9101 Only report Unicode Plane 2 fonts as unicode-sip.
9102
9103 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
9104
9105 * xfaces.c (Fx_font_family_list): Delete function.
9106 Move compatibility version to faces.el.
9107
9108 * font.c (Ffont_family_list): Return a list of strings, not symbols.
9109
9110 2009-01-09 Martin Rudalics <rudalics@gmx.at>
9111
9112 * frame.c (x_set_frame_parameters): Remember requested value for
9113 fullscreen before it's reset by the parameter handler.
9114
9115 2009-01-09 Glenn Morris <rgm@gnu.org>
9116
9117 * keyboard.c (last_command_char): For clarity, rename to...
9118 (last_command_event): ... and update all users.
9119 (last_input_char): For clarity, rename to...
9120 (last_input_event): ... and update all users.
9121 (last-command-char, last-input-char): Move to subr.el as aliases.
9122 * cmds.c, commands.h: Update for last_command_char rename.
9123
9124 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
9125
9126 * font.c (font_open_for_lface): Handle unspecified height attribute.
9127
9128 2009-01-08 Jason Rumney <jasonr@gnu.org>
9129
9130 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9131 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9132 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9133 Don't declare.
9134 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
9135 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9136
9137 2009-01-07 Kenichi Handa <handa@m17n.org>
9138
9139 * fileio.c (Finsert_file_contents): In the case of replace,
9140 remember the coding system used for decoding in
9141 coding_system (Bug#1039).
9142
9143 * coding.c (decode_coding_utf_8): Check byte_after_cr before
9144 breaking the loop. (Bug#870)
9145 (decode_coding_utf_16, decode_coding_emacs_mule)
9146 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9147 (decode_coding_charset): Likewise.
9148
9149 2009-01-05 Martin Rudalics <rudalics@gmx.at>
9150
9151 * frame.c (x_set_frame_parameters): Make sure height (width) get
9152 applied when fullwidth (fullheight) is set. (Bug#1522)
9153
9154 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
9155
9156 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9157 (utc_base): Declare as ULONGLONG, not long double.
9158 (convert_time_raw): Delete.
9159 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9160 (initialize_utc_base): New function.
9161 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9162 (convert_from_time_t): Use initialize_utc_base; compute result with
9163 64-bit arithmetic.
9164 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9165
9166 2009-01-03 Eli Zaretskii <eliz@gnu.org>
9167
9168 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
9169 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9170 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9171 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9172 [!subprocesses]: Define.
9173 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9174 (Flist_system_processes, Fsystem_process_attributes)
9175 [!subprocesses]: Call list_system_processes and
9176 system_process_attributes instead of returning Qnil.
9177
9178 * dosfns.c (system_process_attributes, list_system_processes):
9179 New functions.
9180
9181 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9182
9183 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9184 Don't use the default (no-op) implementation.
9185
9186 2009-01-03 Jason Rumney <jasonr@gnu.org>
9187
9188 * keyboard.c (parse_modifiers_uncached): Wheel events are
9189 clicks (bug#687).
9190
9191 * w32term.c (x_query_colors, x_query_color): New functions.
9192
9193 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9194 (svg_load_image): Cast returned pointers from dynamically loaded
9195 functions. Eliminate W32 specific code.
9196
9197 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9198
9199 * nsfns.m (x_set_foreground_color, x_set_background_color)
9200 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9201 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9202 x_ prefix instead of ns_. Update references.
9203 (syms_of_nsfns): Add a FIXME comment.
9204
9205 * nsterm.m (x_set_cursor_type): New prototype.
9206 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9207
9208 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9209 for Solaris instead of incorrectly providing Qutime and Qcutime.
9210
9211 2009-01-02 Eli Zaretskii <eliz@gnu.org>
9212
9213 * w32.c (process_times): Compute sum of utime and stime.
9214 (system_process_attributes): Add Qtime to the alist.
9215
9216 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9217 and add them to the alist.
9218
9219 * process.c (top level) <Qtime, Qctime>: New variables.
9220 (syms_of_process): staticpro them.
9221 (Fsystem_process_attributes): Add their documentation to the doc
9222 string.
9223
9224 * process.h: Declare Qtime and Qctime.
9225
9226 2009-01-02 Jason Rumney <jasonr@gnu.org>
9227
9228 * image.c (Qgobject): New symbol.
9229 (syms_of_image): Initialize it.
9230 (init_svg_functions): Load some functions from gobject library.
9231
9232 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9233
9234 * frame.c (make_terminal_frame): Remove redundant code and useless
9235 block.
9236
9237 2009-01-01 Andreas Schwab <schwab@suse.de>
9238
9239 * process.c (conv_sockaddr_to_lisp): Add workaround for
9240 getsockname bug on BSD.
9241
9242 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
9243
9244 * xfns.c (x_create_tip_frame): Set border width of the X window.
9245
9246 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9247
9248 2009-01-01 Jason Rumney <jasonr@gnu.org>
9249
9250 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
9251 Don't block input, as per earlier xterm.c changes.
9252
9253 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9254
9255 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9256 (ns_appkit_version_int): New function.
9257 (x-server-version): Use ns_appkit_version_int and follow 21+
9258 convention of returning 3 integers.
9259
9260 2008-12-30 Kenichi Handa <handa@m17n.org>
9261
9262 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9263 (CHAR_SURROGATE_PAIR_P): New macro.
9264
9265 * font.h (struct font_driver): New member get_variation_glyphs.
9266
9267 * font.c (font_range): Don't require a font for a variation selector.
9268 (Ffont_variation_glyphs): New function.
9269 (syms_of_font): Defsubr it.
9270
9271 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9272 ftfont_variation_glyphs.
9273 (setup_otf_gstring): New function.
9274 (ftfont_drive_otf): Use it.
9275 (ftfont_shape_by_flt): Handle variation selector.
9276 (ftfont_variation_glyphs): New function.
9277
9278 2008-12-30 Martin Rudalics <rudalics@gmx.at>
9279
9280 * frame.c (Vemacs_iconified): Remove.
9281
9282 2008-12-30 Jason Rumney <jasonr@gnu.org>
9283
9284 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9285 WINDOWSNT too, as related changes have already been synced. (Bug#117)
9286
9287 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
9288
9289 * indent.c (Fvertical_motion): Don't advance iterator if we have
9290 reseated to the desired position.
9291
9292 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9293 checking for pos match.
9294
9295 2008-12-30 Kenichi Handa <handa@m17n.org>
9296
9297 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9298 just get the low 8-bit of the code.
9299
9300 * font.c (font_intern_prop): Validate str as multibyte.
9301
9302 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9303
9304 * dispextern.h (struct face): Move lface and hash from the middle
9305 of bitfields.
9306
9307 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9308
9309 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9310
9311 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9312 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9313 instead of intervals.h.
9314
9315 2008-12-26 Andreas Schwab <schwab@suse.de>
9316
9317 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9318 cons.
9319
9320 2008-12-26 Martin Rudalics <rudalics@gmx.at>
9321
9322 * textprop.c (Qminibuffer_prompt): New variable.
9323 (syms_of_textprop): Initialize it.
9324 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9325 in minibuffer-prompt face. (Bug#1662)
9326
9327 2008-12-25 Jason Rumney <jasonr@gnu.org>
9328
9329 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9330
9331 2008-12-24 Jason Rumney <jasonr@gnu.org>
9332
9333 * ralloc.c (r_alloc_reset_variable): New function.
9334
9335 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9336 record of what points where. (Bug#716)
9337
9338 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9339
9340 * minibuf.c (read_minibuf): Follow the non-interactive case when
9341 running as a daemon, before detaching.
9342
9343 2008-12-22 Andreas Schwab <schwab@suse.de>
9344
9345 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9346 * gtkutil.c (free_widget_value): Use xfree instead of free.
9347
9348 2008-12-22 Martin Rudalics <rudalics@gmx.at>
9349
9350 * frame.c (delete_frame): New function derived from
9351 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9352 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9353 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9354 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9355 * frame.h: Extern delete_frame.
9356 * window.c (window_loop):
9357 * terminal.c (delete_terminal):
9358 * xterm.c (x_connection_closed):
9359 * xfns.c (Fx_hide_tip):
9360 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
9361
9362 2008-12-21 Jason Rumney <jasonr@gnu.org>
9363
9364 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9365 when character maps to .notdef character.
9366
9367 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9370
9371 2008-12-20 Jason Rumney <jasonr@gnu.org>
9372
9373 * frame.c (Fmake_terminal_frame): Raise an error when called from
9374 a graphical frame on Windows. (Bug#1325)
9375
9376 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9377
9378 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9379
9380 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
9381
9382 * minibuf.c (Fread_buffer): Doc fix.
9383
9384 2008-12-20 Jason Rumney <jasonr@gnu.org>
9385
9386 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9387 server name in UNC paths. (Bug#719)
9388
9389 * coding.c (decode_coding): Clear chars_at_source flag when using
9390 charbuf. (Bug#1035)
9391
9392 2008-12-19 Daniel Engeler <engeler@gmail.com>
9393
9394 * sysdep.c (serial_configure): Fix typo.
9395
9396 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9397
9398 * sysdep.c: Include alloca.h.
9399 (system_process_attributes): Add implementation for Solaris.
9400
9401 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
9402
9403 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9404
9405 Reorganize implementation of Flist_system_processes and
9406 Fsystem_process_attributes. No functional changes.
9407 * process.c: Don't #include pwd.h, grp.h and limits.h.
9408 (Flist_system_processes): Just call list_system_processes.
9409 (Fsystem_process_attributes): Just call system_process_attributes.
9410 (procfs_list_system_processes, time_from_jiffies)
9411 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9412 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9413
9414 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9415 (list_system_processes): Rename from
9416 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9417 Provide a do nothing implementation.
9418 (system_process_attributes): Rename from
9419 procfs_list_system_processes.
9420 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9421 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
9422
9423 * w32.c (list_system_processes): Rename from
9424 w32_list_system_processes.
9425 (system_process_attributes): Rename from
9426 w32_system_process_attributes.
9427
9428 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9429
9430 * process.h (w32_list_system_processes)
9431 (w32_system_process_attributes): Remove.
9432 (list_system_processes, system_process_attributes):
9433 New prototypes.
9434
9435 2008-12-19 Kenichi Handa <handa@m17n.org>
9436
9437 * xfont.c (xfont_decode_coding_xlfd): New function.
9438 (xfont_encode_coding_xlfd): New function.
9439 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9440 (xfont_list): Decode and encode XLFD by iso-8859-1.
9441 (xfont_match): Likewise.
9442 (xfont_list_family): Likewise.
9443 (xfont_open): Likewise.
9444
9445 * ftfont.c (ftfont_open): Generate a multibyte string if given
9446 names are utf-8.
9447
9448 * xftfont.c (xftfont_open): Generate a multibyte string if given
9449 names are utf-8.
9450
9451 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9452
9453 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9454 changed.
9455 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9456 clicked on a detached tool bar button.
9457
9458 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9459
9460 * emacs.c (main): Print and error and exit when no data is read
9461 from the pipe.
9462
9463 2008-12-17 Jason Rumney <jasonr@gnu.org>
9464
9465 * w32font.c (w32font_has_char): Always return -1.
9466
9467 2008-12-16 Kenichi Handa <handa@m17n.org>
9468
9469 * font.c (font_open_entity): Fix previous change.
9470
9471 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9472
9473 * process.c: Include <limits.h>.
9474
9475 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
9476
9477 * font.c (font_update_drivers): Fix mistake in reconstructing the
9478 driver list.
9479
9480 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
9481
9482 * font.c (font_clear_cache): Fix format of font cache data.
9483
9484 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
9485
9486 * xftfont.c (xftfont_open): Free Xft font pattern if
9487 XftFontOpenPattern fails.
9488
9489 * xterm.c (x_free_frame_resources): Remove extraneous call to
9490 free_frame_faces.
9491
9492 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9493
9494 * xterm.c (x_delete_display): Move xim_close_dpy call to
9495 x_delete_terminal.
9496 (x_delete_terminal): Call xim_close_dpy.
9497
9498 2008-12-13 Jason Rumney <jasonr@gnu.org>
9499
9500 * w32font.c (intern_font_name): New function.
9501 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9502 (w32font_open_internal, Fx_select_font): Decode font name.
9503 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9504
9505 * w32font.h (intern_font_name): Declare new function.
9506
9507 * w32uniscribe.c (add_opentype_font_name_to_list):
9508 Use intern_font_name.
9509
9510 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * frame.c (Fdelete_frame): Call free_font_driver_list.
9513
9514 * font.c (free_font_driver_list): Implement missing function.
9515
9516 * w32term.c (w32_term_init): Don't initialize the image cache
9517 here; it will be done in init_frame_faces.
9518
9519 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9520 (struct x_display_info): Remove unused member null_pixel. New
9521 member xim_callback_data.
9522
9523 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9524 (xim_initialize): Save pointer to callback function data.
9525 (xim_close_dpy): Free callback function data. Call XCloseIM,
9526 reverting 2008-11-04 change by David Smith.
9527 (x_term_init): Don't initialize the image cache here; it will be
9528 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9529 (x_delete_display): Free x_dnd_atoms member.
9530
9531 2008-12-13 Kenichi Handa <handa@m17n.org>
9532
9533 * font.c (font_rescale_ratio): Moved from xfaces.c.
9534 Argument type changed. Handle a font-spec too.
9535 (font_score): Check Vface_font_rescale_alist.
9536 (font_open_entity): Likewise. (Bug#1547)
9537
9538 * xfaces.c (font_rescale_ratio): Moved to font.c.
9539
9540 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
9541
9542 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9543
9544 2008-12-12 Jason Rumney <jasonr@gnu.org>
9545
9546 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9547 Vwindow_system_version to the real w32 major version.
9548
9549 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9550
9551 * term.c (init_tty): Move setting the terminal name before the
9552 potential user: maybe_fatal.
9553
9554 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
9555
9556 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9557 all callers changed. Call free_frame_faces to free the face cache.
9558
9559 2008-12-11 Jason Rumney <jasonr@gnu.org>
9560
9561 * w32font.c (fill_in_logfont): Don't assume symbol script means
9562 SYMBOL_CHARSET. (Bug#547)
9563
9564 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9565 size for surrogates. (Bug#1096, bug#872)
9566
9567 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9568
9569 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9570
9571 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9572
9573 * process.c (Fsystem_process_attributes, syms_of_process):
9574 Fix typo in name of Ssystem_process_attributes.
9575 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9576
9577 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
9578
9579 * syntax.c (Fmodify_syntax_entry): Doc fix.
9580
9581 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9582
9583 * font.c (Ffont_spec): Move usage to end of docstring.
9584
9585 2008-12-10 Jason Rumney <jasonr@gnu.org>
9586
9587 * w32font.c (Qcham): New symbol.
9588 (font_supported_scripts): Add cham, and comments for other new
9589 scripts in bitfield from OpenType spec.
9590 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9591 contain characters beyond the bmp.
9592
9593 2008-12-10 Kenichi Handa <handa@m17n.org>
9594
9595 * ftfont.c (fc_charset_table): Add "unicode-sip".
9596 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
9597 Qunicode_sip.
9598
9599 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
9600
9601 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9602 (Fcoding_system_put): Use QCdefault_char.
9603 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9604
9605 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
9606
9607 * xftfont.c (syms_of_xftfont): Fix typo.
9608
9609 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9610
9611 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9612
9613 * emacs.c (main): Close daemon_pipe on exec.
9614
9615 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
9616
9617 * termchar.h (struct tty): New members termcap_term_buffer and
9618 termcap_strings_buffer.
9619
9620 * term.c (encode_terminal_code): Free any previous memory blocks
9621 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
9622 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9623 All callers changed.
9624 (init_tty): Store termcap data and string buffers in new struct
9625 tty members termcap_term_buffer and termcap_strings_buffer.
9626 (delete_tty): Free them.
9627 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
9628
9629 2008-12-07 Seiji Zenitani <zenitani@mac.com>
9630
9631 * nsfns.m (ns_set_background_color): Remove code duplication.
9632 It was a substitute for face-transparency on OS X 10.3.
9633
9634 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * coding.c (make_conversion_work_buffer): Disable buffer
9637 modification hooks in the work buffer.
9638
9639 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9640
9641 * process.c (procfs_system_process_attributes): If `nread' has a
9642 negative value, assign zero to it.
9643
9644 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
9645
9646 * eval.c (Vdebug_on_error): Doc fix.
9647
9648 2008-12-05 Kenichi Handa <handa@m17n.org>
9649
9650 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9651 second character is a combining character.
9652
9653 2008-12-05 Eli Zaretskii <eliz@gnu.org>
9654
9655 * process.c (procfs_system_process_attributes): Don't use cmd,
9656 cmdsize, and q without initializing them first.
9657
9658 2008-12-04 Jason Rumney <jasonr@gnu.org>
9659
9660 * w32font.c (w32font_draw): Initialize orig_clip before getting
9661 it, and delete it when finished.
9662
9663 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9664
9665 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9666 case when running as a daemon before detaching.
9667
9668 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
9669
9670 * w32.c (init_environment): Don't unload library shell32.dll.
9671
9672 2008-12-03 Kenichi Handa <handa@m17n.org>
9673
9674 * font.c (font_at): Set `multibyte' at first.
9675
9676 * coding.c (decode_coding_charset): Check type of an element of
9677 vector VALIDS.
9678 (encode_coding_emacs_mule): Be sure to set `code'.
9679
9680 * fontset.c (face_for_char): Handle invalid charset property correctly.
9681 (font_for_char): Likewise.
9682
9683 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * font.c (Fopen_font): Compute pixel size correctly.
9686 (font_update_lface): Handle fonts with corrupted size specs,
9687 i.e. non-int and non-float.
9688
9689 * ftfont.c (ftfont_match): Initialize entity variable.
9690 (ftfont_resolve_generic_family): Avoid using uninitialized var.
9691 (ftfont_list_family): Initialize list var earlier.
9692
9693 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9694
9695 * xterm.c (x_draw_glyph_string): Fall back on
9696 underline_minimum_offset for underline position.
9697
9698 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9699
9700 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9701
9702 * character.c (c_string_width): Specify the type for LEN.
9703
9704 2008-12-03 Kenichi Handa <handa@m17n.org>
9705
9706 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
9707 (decode_coding_utf_8): Likewise.
9708 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
9709 (produce_chars): Initialize consumed_chars to 0.
9710
9711 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9712
9713 * keyboard.c (make_lispy_position): Only use PT if the selected
9714 window is current.
9715
9716 2008-12-02 Andreas Schwab <schwab@suse.de>
9717
9718 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9719
9720 * doprnt.c (doprnt1): Fix size of charbuf.
9721
9722 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
9723
9724 * keyboard.c (timer_check): Revert last change.
9725
9726 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
9727
9728 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9729
9730 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
9731
9732 * makefile.w32-in: Update dependencies.
9733 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9734
9735 2008-12-01 Andreas Schwab <schwab@suse.de>
9736
9737 * font.c (register_font_driver): Use xmalloc.
9738 (font_put_frame_data): Likewise.
9739
9740 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
9741
9742 * xfaces.c (realize_x_face): Make abort condition clearer.
9743
9744 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9745
9746 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
9747
9748 * keyboard.c (timer_check): After a timer runs, ensure that the
9749 selected window's buffer is current.
9750
9751 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
9752
9753 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9754 It was accidentally restored by the Unicode merge.
9755
9756 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9757
9758 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
9759
9760 * w32proc.c: Include "coding.h".
9761 (Fw32_short_file_name): Encode filename passed to Windows API.
9762 (Fw32_long_file_name): Encode filename passed to Windows API and
9763 decode back the result. (Bug#1433)
9764
9765 2008-11-29 Kenichi Handa <handa@m17n.org>
9766
9767 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9768 not before accessing it.
9769
9770 * charset.c (Fdefine_charset_internal): After calculating
9771 min_char, max_char, and fastmap, copy the charset structure again.
9772 (encode_char): Fix the previous change.
9773
9774 2008-11-28 Seiji Zenitani <zenitani@mac.com>
9775
9776 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9777
9778 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9779
9780 * nsterm.m (x_set_frame_alpha): New function.
9781
9782 2008-11-27 Eli Zaretskii <eliz@gnu.org>
9783
9784 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9785
9786 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
9787
9788 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9789 pointer to check_face_name.
9790
9791 2008-11-27 Kenichi Handa <handa@m17n.org>
9792
9793 * category.h (SET_CATEGORY_SET): Call set_category_set.
9794 (set_category_set): Extern it.
9795
9796 * category.c (hash_get_category_set): New function.
9797 (Fmodify_category_entry): Adjusted for the change of
9798 char_table_ref_and_range. Call hash_get_category_set to get a
9799 category set to store in the table.
9800
9801 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9802 Funify_charset.
9803
9804 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
9805 (DECODE_CHAR): Check if the decoder vector is ready.
9806 (ENCODE_CHAR): Check if the encoder char-table is ready.
9807 (maybe_unify_char): Extern it.
9808
9809 * charset.c (Vchar_unified_charset_table): Delete it.
9810 (inhibit_load_charset_map): New variable.
9811 (temp_charset_work): New variable.
9812 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9813 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9814 New macros.
9815 (load_charset_map): Meaning of control_flag changed. If
9816 inhibit_load_charset_map is nonzero, setup a table in
9817 temp_charset_work.
9818 (load_charset): New argument control_flag.
9819 (map_charset_for_dump): New function.
9820 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9821 map_charset_for_dump.
9822 (Fdefine_charset_internal): If the charset method is MAP, load
9823 mapping tables by calling load_charset.
9824 (Funify_charset): Don't load a mapping table but directly set
9825 Vchar_unify_table.
9826 (maybe_unify_char): New function.
9827 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9828 Handle the case of inhibit_load_charset_map being nonzero.
9829 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9830 Handle the case of inhibit_load_charset_map being nonzero.
9831 (Fclear_charset_maps): Just free temp_charset_work.
9832 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9833 variable.
9834
9835 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9836 change of char_table_ref_and_range.
9837 (char_table_ref_and_range): Change the meaning of argument FROM
9838 and TO. Now the caller must provide initial values for *FROM
9839 and *TO.
9840
9841 * fontset.c (fontset_add): Adjusted for the change of
9842 char_table_ref_and_range.
9843 (fontset_get_font_group): Likewise.
9844 (Ffontset_info): Likewise.
9845
9846 * keymap.c (describe_vector): Adjusted for the change of
9847 char_table_ref_and_range. For char-table, put boundary between
9848 non-ASCII and 8-bit characters.
9849
9850 * print.c (print_object): For bool-vector, delete unnecessary
9851 check of ASCII_BYTE_P.
9852
9853 2008-11-26 Jason Rumney <jasonr@gnu.org>
9854
9855 * w32font.c (w32font_open_internal): Don't include external
9856 leading in font height. (Bug#879)
9857
9858 2008-11-26 Glenn Morris <rgm@gnu.org>
9859
9860 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9861 redefinition with ifdef. (Bug#1383)
9862
9863 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9864
9865 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9866
9867 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9868
9869 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9870 New EmacsView methods.
9871 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9872 Fixes bug #1048,1357,1414.
9873
9874 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9875
9876 Fix bug #1362.
9877 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9878 is not an indexed color.
9879 * nsterm.m (free_indexed_color): Add argument checking.
9880 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9881
9882 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
9883
9884 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9885 Document confirm-after-completion value for
9886 minibuffer-completion-confirm.
9887
9888 2008-11-24 Jason Rumney <jasonr@gnu.org>
9889
9890 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9891 warning.
9892
9893 2008-11-23 Jason Rumney <jasonr@gnu.org>
9894
9895 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9896 restored before returning.
9897
9898 * w32font.c (check_face_name): New function.
9899 (add_font_entity_to_list): Use it to filter out common substituted
9900 fonts. (Bug#642)
9901
9902 2008-11-22 Martin Rudalics <rudalics@gmx.at>
9903
9904 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9905 confirm-nonexistent-file-or-buffer in doc-string.
9906
9907 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9908
9909 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9910 Fix copy/paste typo. Add checks.
9911
9912 2008-11-21 Kenichi Handa <handa@m17n.org>
9913
9914 * coding.c (detect_coding_iso_2022): Reject invalid composition
9915 sequence.
9916 (DECODE_COMPOSITION_START): If the current source is the last
9917 block, and the current composition doesn't end, regard this
9918 sequence as invalid.
9919 (decode_coding_iso_2022): Handle invalid composition sequence.
9920
9921 2008-11-20 Martin Rudalics <rudalics@gmx.at>
9922
9923 * window.c (coordinates_in_window): Don't return
9924 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9925 line when the window is not the rightmost one. (Bug#1372)
9926
9927 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9928
9929 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9930
9931 2008-11-15 Eli Zaretskii <eliz@gnu.org>
9932
9933 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9934 and bright_bg if noninteractive is non-zero.
9935
9936 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9937
9938 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9939 x_draw_glyph_string_background.
9940
9941 * w32term.c (x_draw_glyph_string): Likewise.
9942
9943 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
9944
9945 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9946 the next glyph string once past the overhang width.
9947
9948 * nsterm.m (ns_draw_glyph_string): Likewise.
9949
9950 * w32term.c (x_draw_glyph_string): Likewise.
9951
9952 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9953
9954 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9955 double file close.
9956
9957 2008-11-14 Martin Rudalics <rudalics@gmx.at>
9958
9959 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9960 dedicated status of window before attempting to display another
9961 buffer in it.
9962
9963 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
9964
9965 * msdos.c (Fmsdos_long_file_names):
9966 (syms_of_msdos) <dos-unsupported-char-glyph>:
9967 * dosfns.c (Fint86): Fix typos in docstrings.
9968
9969 2008-11-14 Eli Zaretskii <eliz@gnu.org>
9970
9971 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9972
9973 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9974
9975 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9976
9977 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9978
9979 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9980
9981 * frame.h: Negative alpha means "don't touch".
9982
9983 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9984
9985 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9986
9987 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9988
9989 * hftctl.c:
9990 * chpdef.h:
9991 * acldef.h: Remove files used only for systems no longer supported.
9992
9993 * Makefile.in: Fix .o alphabetical ordering.
9994 (hftctl.o): Remove dependency, file removed.
9995 (keymap.o, print.o): Depend on charset.h.
9996
9997 2008-11-10 Kenichi Handa <handa@m17n.org>
9998
9999 * character.c (Fget_byte): Fix and make it faster for unibyte target.
10000
10001 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
10002
10003 * dired.c (file_name_completion): If completion_ignore_case is
10004 enabled, ignore case when checking completion-regexp-list.
10005
10006 2008-11-08 Eli Zaretskii <eliz@gnu.org>
10007
10008 * vm-limit.c (get_lim_data): Fix last change.
10009
10010 2008-11-08 Kenichi Handa <handa@m17n.org>
10011
10012 * character.c (Fget_byte): New function.
10013 (syms_of_character): Defsubr Fget_byte.
10014
10015 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
10016
10017 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10018 cursor position is valid after scrolling.
10019
10020 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
10021
10022 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10023
10024 2008-11-06 Glenn Morris <rgm@gnu.org>
10025
10026 * xterm.c (handle_one_xevent): Don't let popup menus cause
10027 mouse-autoselect-window related window switching. (Bug#1261)
10028
10029 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10030
10031 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10032
10033 2008-11-04 Andreas Schwab <schwab@suse.de>
10034
10035 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10036
10037 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
10038
10039 * xfns.c (Fx_wm_set_size_hint): New function.
10040
10041 2008-11-03 Martin Rudalics <rudalics@gmx.at>
10042
10043 * textprop.c (Fprevious_single_char_property_change): Return 0
10044 when there's no change in a string. (Bug#1301)
10045
10046 2008-11-02 Martin Rudalics <rudalics@gmx.at>
10047
10048 * frame.c (do_switch_frame): New argument NORECORD passed to
10049 Fselect_window.
10050 (Fselect_frame): New argument NORECORD passed to
10051 do_switch_frame.
10052 (Fset_frame_selected_window): New argument NORECORD passed to
10053 Fselect_frame.
10054 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10055 in call of do_switch_frame.
10056 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10057 Handle NORECORD argument in call of Fselect_frame.
10058 * lisp.h (do_switch_frame, Fselect_frame)
10059 (Fset_frame_selected_window): Adjust declarations.
10060 * window.c (select_frame_norecord): New function.
10061 (run_window_configuration_change_hook): Use it and call
10062 Fselect_frame with NORECORD set.
10063 (Fselect_window): Pass NORECORD to Fselect_frame.
10064 (Fset_window_configuration): Handle NORECORD argument in call of
10065 do_switch_frame.
10066 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10067 Fset_frame_selected_window.
10068 * keyboard.c (command_loop_1): Handle NORECORD in call of
10069 Fselect_frame (currently ifdefd).
10070
10071 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10072
10073 * emacs.c (USAGE2): Untabify.
10074
10075 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10076
10077 * composite.c (fill_gstring_header): Fix copy/paste typo.
10078
10079 2008-10-31 Martin Rudalics <rudalics@gmx.at>
10080
10081 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10082 (Fother_window): Rename argument and rewrite doc-string.
10083 (select_window_norecord): Fix return value. (Bug#1276)
10084
10085 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
10086
10087 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10088 new frames overriding foreground for tooltips. Based on similar patch
10089 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10090
10091 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
10092
10093 * emacs.c (Fdaemon_initialized): Initialize nfd.
10094
10095 2008-10-29 Martin Rudalics <rudalics@gmx.at>
10096
10097 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10098 (Fwindow_text_height): Clarify doc-strings.
10099 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10100 doc-string of window-scroll-functions.
10101
10102 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10103
10104 * category.c (syms_of_category): Fix typo in docstring.
10105
10106 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
10107
10108 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10109 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10110 Fix typos in docstrings.
10111
10112 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10113
10114 * emacs.c (daemon_pipe): Make non-static.
10115 (IS_DAEMON): Move definition ...
10116 * lisp.h (IS_DAEMON): ... here.
10117 (daemon_pipe): Declare.
10118 (is_daemon): Remove.
10119 * dispnew.c (init_display): Use IS_DAEMON.
10120
10121 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10122
10123 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10124 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10125
10126 * emacs.c (is_daemon): Remove.
10127 (main): Don't set is_daemon.
10128 (IS_DAEMON): New macro.
10129 (Fdaemonp, Fdaemon_initialized): Use it.
10130 (Fdaemon_initialized): Write a char into the pipe to make sure the
10131 parent exits.
10132 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10133
10134 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
10135
10136 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10137 over-sized glyph, draw it with the default glyph width.
10138
10139 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10140 glyph, draw it with the default glyph width.
10141
10142 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10143 glyph, draw it with the default glyph width.
10144
10145 * xdisp.c (try_scrolling): When computing the distance from the
10146 scroll margin to PT, try moving some distance past the window
10147 bottom before giving up.
10148
10149 2008-10-27 Martin Rudalics <rudalics@gmx.at>
10150
10151 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10152 (Fset_window_buffer): Explain in doc-string that a window can be
10153 "strongly" dedicated to its buffer.
10154
10155 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10156
10157 * emacs.c (daemon_name): New variable.
10158 (main): Deal with --daemon=SERVER_NAME.
10159 (Fdaemonp): Return a name if one was passed to --daemon.
10160
10161 2008-10-26 Romain Francoise <romain@orebokech.com>
10162
10163 * emacs.c (daemon_pipe): New variable.
10164 (main): Create a pipe before forking, make the parent exit only after
10165 the child has closed its end of the pipe. Move closing the
10166 descriptors ...
10167 (Fdaemon_initialized): ... here. New function.
10168
10169 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10170
10171 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10172 the previous unoptimized table.
10173
10174 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10175 the distinction between non-nil and non-t value of `dedicated'.
10176
10177 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
10178
10179 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
10180 read_char_minibuf_menu_text is large enough to hold the menu string.
10181
10182 2008-10-25 Martin Rudalics <rudalics@gmx.at>
10183
10184 * window.c (Fget_buffer_window, Fdelete_windows_on)
10185 (Freplace_buffer_in_windows): Make buffer argument optional and
10186 rename to buffer_or_name.
10187
10188 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
10189
10190 * xdisp.c (handle_single_display_spec, handle_display_prop):
10191 Undo 2005-05-16 change.
10192 (handle_stop): Pop iterator if it's loaded with an empty string.
10193 (get_overlay_strings_1): Don't save iterator if it's loaded with
10194 an empty string (bug#1201).
10195
10196 2008-10-24 Kenichi Handa <handa@m17n.org>
10197
10198 * ftfont.c (ftfont_otf_features): Fix previous change.
10199 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10200 calling ftfont_otf_features.
10201
10202 2008-10-24 Kenichi Handa <handa@m17n.org>
10203
10204 * font.c (font_match_p): Fix for the case that a vector of
10205 characters is in script-representative-chars.
10206
10207 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
10208
10209 * dbusbind.c (xd_in_read_queued_messages): New variable.
10210 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
10211 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10212 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
10213 macro. (Bug#1186)
10214
10215 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
10216
10217 * s/sol2-10.h: New file.
10218
10219 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10220
10221 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10222 poor beast has survived 9+ years and the jump from xterm.c!).
10223
10224 2008-10-23 Martin Rudalics <rudalics@gmx.at>
10225
10226 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10227 Reword doc-string.
10228 (Fbury_buffer): In doc-string say what happens to the buffer's window.
10229
10230 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
10231
10232 * character.c (syms_of_character) <script-representative-chars>:
10233 <unicode-category-table>: Doc fixes.
10234
10235 2008-10-23 Noah Friedman <friedman@splode.com>
10236
10237 * coding.c (make_conversion_work_buffer): Check that
10238 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10239 Fget_buffer_create.
10240
10241 2008-10-23 Kenichi Handa <handa@m17n.org>
10242
10243 * font.c (font_add_log): Check the values of extra properties.
10244
10245 2008-10-22 Martin Rudalics <rudalics@gmx.at>
10246
10247 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10248 Reword doc-string.
10249 (Fset_window_parameter): Use NILP.
10250 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
10251 (Frecenter): Use "selected" instead of "current" window in doc-strings.
10252
10253 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10254
10255 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10256
10257 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10258
10259 * nsfns.m (ns_appkit_version): New function.
10260 (x-server-version): Use it.
10261 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10262 (x-server-vendor): Don't check_ns().
10263
10264 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10265
10266 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
10267
10268 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10269 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10270
10271 2008-10-22 Kenichi Handa <handa@m17n.org>
10272
10273 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10274 scripts.
10275
10276 * category.c (word_boundary_p): Check scripts instead of charset.
10277 Handle nil value in word-separating-categories and
10278 word-combining-categories.
10279 (syms_of_category): Fix docstrings of word-separating-categories
10280 and word-combining-categories.
10281
10282 2008-10-21 Eli Zaretskii <eliz@gnu.org>
10283
10284 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10285 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10286
10287 2008-10-21 Martin Rudalics <rudalics@gmx.at>
10288
10289 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10290 Rename arg "buffer" to "buffer_or_name".
10291 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10292 it optional.
10293 (no_switch_window): Remove since the return value is not used.
10294 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
10295 Consider window as dedicated when Fwindow_dedicated_p returns a
10296 non-nil value.
10297 * lisp.h: Remove prototype for no_switch_window.
10298
10299 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10300
10301 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
10302 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
10303
10304 2008-10-21 Kenichi Handa <handa@m17n.org>
10305
10306 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10307 check Vlatin_extra_code_table.
10308
10309 2008-10-20 Eli Zaretskii <eliz@gnu.org>
10310
10311 * fileio.c (Fset_file_modes): Doc fix.
10312
10313 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
10314
10315 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10316 in arrays.
10317
10318 2008-10-19 Martin Rudalics <rudalics@gmx.at>
10319
10320 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10321 Mention kill-buffer in doc-string.
10322 (Fset_window_buffer): Reinsert tem check removed in last commit.
10323 (Fenlarge_window, Fshrink_window): Have argument names and
10324 doc-string follow Elisp manual more closely.
10325
10326 2008-10-18 Eli Zaretskii <eliz@gnu.org>
10327
10328 * fileio.c (Fset_file_modes): Doc fix.
10329
10330 2008-10-18 Martin Rudalics <rudalics@gmx.at>
10331
10332 * window.c (Fwindow_width, Fset_window_start)
10333 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
10334 (Fdelete_windows_on, Freplace_buffer_in_windows):
10335 Make doc-strings follow code and Elisp manual more closely.
10336 (Fwindow_dedicated_p): Make window argument optional.
10337 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10338 (Fset_window_buffer): Respect any non-nil dedicated value for
10339 window. Rename "buffer" argument to "buffer_or_name".
10340
10341 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
10342
10343 * m/sh3.h: New file, machine description for SuperH.
10344
10345 2008-10-17 Martin Rudalics <rudalics@gmx.at>
10346
10347 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10348
10349 2008-10-17 Kenichi Handa <handa@m17n.org>
10350
10351 * ftfont.c (ftfont_otf_features): Fix indexing
10352 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10353
10354 2008-10-16 Magnus Henoch <mange@freemail.hu>
10355
10356 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10357 (Fdbus_call_method_asynchronously): Ditto.
10358 This change makes C-h f display the argument list.
10359
10360 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
10361
10362 * fileio.c (Fexpand_file_name): Doc fix.
10363
10364 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10365 of :foreground and :background equivalent to unspecified (20.x
10366 compatibility).
10367
10368 2008-10-15 Eli Zaretskii <eliz@gnu.org>
10369
10370 * buffer.c (syms_of_buffer): Doc fix.
10371
10372 2008-10-14 Kenichi Handa <handa@m17n.org>
10373
10374 * font.c (font_clear_prop): When clearing font width, clear the
10375 average width field too.
10376
10377 2008-10-12 Andreas Schwab <schwab@suse.de>
10378
10379 * ftfont.c (ftfont_shape_by_flt): Make static.
10380 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10381
10382 * font.c: Don't include <m17n-flt.h>.
10383
10384 2008-10-10 Eli Zaretskii <eliz@gnu.org>
10385
10386 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10387
10388 2008-10-09 Eli Zaretskii <eliz@gnu.org>
10389
10390 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10391 away code.
10392
10393 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
10394
10395 * dispnew.c (update_text_area): Avoid looping due to large glyph
10396 overhangs (bug#1070).
10397
10398 2008-10-09 Kenichi Handa <handa@m17n.org>
10399
10400 * fontset.c (face_for_char): If face->fontset is negative, just
10401 return ascii_face.
10402
10403 * font.c (font_delete_unmatched): Fix previous change.
10404 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
10405
10406 2008-10-09 Martin Rudalics <rudalics@gmx.at>
10407
10408 * frame.c (Fraise_frame): On text-only terminals select frame in
10409 order to make it visible. (Bug#1061)
10410
10411 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
10412
10413 * fontset.c (fontset_find_font): Check frame validity.
10414
10415 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
10416
10417 * gtkutil.c (xg_display_open): Reset default display if none exists.
10418 (xg_display_close): Allow Emacs to close all displays (bug#985).
10419
10420 2008-10-06 Andreas Schwab <schwab@suse.de>
10421
10422 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
10423
10424 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
10425
10426 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
10427
10428 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
10429
10430 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10431 during initialization.
10432
10433 2008-10-04 Eli Zaretskii <eliz@gnu.org>
10434
10435 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10436 whole thing on MSDOS frames as well as on a TTY.
10437
10438 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10439 well as for TTY.
10440 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10441 well as on a TTY.
10442
10443 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10444 as well as for TTY.
10445
10446 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10447
10448 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10449 MSDOS frames as well.
10450
10451 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10452
10453 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10454 correct arguments.
10455 * menu.c (find_and_return_menu_selection): Add cast.
10456
10457 2008-10-03 Glenn Morris <rgm@gnu.org>
10458
10459 * emacs.c (USAGE1): Add --daemon.
10460
10461 2008-10-02 Eli Zaretskii <eliz@gnu.org>
10462
10463 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10464 100, so it's in percents as advertised.
10465
10466 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10467
10468 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10469 (ns_output.current_cursor, ns_output.desired_cursor)
10470 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10471 (FRAME_NEW_CURSOR_COLOR): Remove.
10472
10473 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
10474 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
10475 enumeration (HOLLOW_BOX_CURSOR, etc.).
10476
10477 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10478 (draw_window_cursor): Simplify code.
10479 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10480 Don't change cursor type. In latter, call rehighlight instead of doing
10481 updates manually.
10482 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10483 Use core Emacs cursor types.
10484
10485 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
10486
10487 2008-10-02 Martin Rudalics <rudalics@gmx.at>
10488
10489 * process.c (Faccept_process_output): Fix doc-string.
10490
10491 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10492
10493 * gmalloc.c (__sbrk): Also define for uClibc.
10494
10495 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10496 for uClibc.
10497
10498 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10499
10500 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10501 styles.
10502 (nsfont_open): Reenable the cache.
10503
10504 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10505
10506 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10507 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10508
10509 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10510
10511 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10512 a suspended terminal.
10513
10514 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
10515
10516 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10517
10518 2008-09-30 Eli Zaretskii <eliz@gnu.org>
10519
10520 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10521
10522 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
10523
10524 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10525 in a continued line coincides with a line beginning.
10526
10527 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10528
10529 * nsfont.m (nsfont_trait_distance): Fix bug.
10530 (nsfont_list): Return a list rather than a vector (syncs with Handa
10531 changes of 2008-05-14).
10532 (nsfont_open): Improve logging.
10533
10534 2008-09-29 Andreas Schwab <schwab@suse.de>
10535
10536 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10537
10538 2008-09-28 Martin Rudalics <rudalics@gmx.at>
10539
10540 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10541 name as char-resolve-modifiers.
10542 Reported by: Markus Triska <markus.triska@gmx.at>
10543
10544 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10545
10546 * dispnew.c (init_display): Return earlier when running as a daemon.
10547
10548 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10549
10550 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10551
10552 2008-09-27 Eli Zaretskii <eliz@gnu.org>
10553
10554 * composite.c (Fcomposition_get_gstring)
10555 (Fcompose_region_internal, Fcompose_string_internal)
10556 (Ffind_composition_internal): Doc fix.
10557 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10558 (syms_of_composite) <auto-composition-function>: Doc fix.
10559 (syms_of_composite) <composition-function-table>: Doc fix.
10560
10561 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
10562
10563 * search.c (wordify): New argument for lax word-ends.
10564 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10565
10566 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10567
10568 * lisp.h (is_daemon): Declare.
10569 * dispnew.c (init_display): Do not try to initialize the terminal
10570 when running as a daemon.
10571
10572 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
10573
10574 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10575 x_display_pixel_height.
10576
10577 2008-09-22 Martin Rudalics <rudalics@gmx.at>
10578
10579 * undo.c (record_point): Don't call Fundo_boundary for first
10580 change. (Bug#731)
10581
10582 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
10583
10584 * emacs.c (Fdaemonp): Doc fix.
10585
10586 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10587
10588 * emacs.c (main): Place #ifdef in the proper place.
10589
10590 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10591
10592 * emacs.c (standard_args): Add --daemon.
10593 (main): Disconnect from the terminal when --daemon is passed.
10594 (is_daemon): New variable.
10595 (Fdaemonp): New function.
10596 (syms_of_emacs): Defsubr it.
10597
10598 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
10599
10600 * xdisp.c (get_next_display_element): Handle string display
10601 correctly when checking for the end of a box run.
10602
10603 2008-09-20 Glenn Morris <rgm@gnu.org>
10604
10605 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10606 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10607 (Frename_file): Avoid copying to trash if a rename involves
10608 a delete. (Bug#964).
10609
10610 2008-09-20 Eli Zaretskii <eliz@gnu.org>
10611
10612 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10613 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10614 frames as well as termcap frames.
10615 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10616 get_named_tty.
10617
10618 2008-09-19 Eli Zaretskii <eliz@gnu.org>
10619
10620 * process.c (procfs_system_process_attributes): Fix cmdline in
10621 case /proc/PID/cmdline is empty.
10622
10623 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10624 x_display_pixel_height.
10625
10626 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
10627
10628 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10629
10630 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10631 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10632
10633 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10634
10635 * dispextern.h (struct it): Move line_wrap away from the middle of
10636 bitfields. Move voffset in struct iterator_stack_entry after the
10637 bitfields. Move tab_width near after another short.
10638
10639 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10640
10641 * frame.h (struct frame): Move alpha from the middle of bitfields.
10642
10643 * window.h (struct window): Move frozen_window_start_p after the
10644 rest of the bitfields to reduce padding.
10645
10646 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
10647
10648 * xterm.h (x_display_info): Remove `height' and `width' members.
10649
10650 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10651
10652 * w32term.h (w32_display_info): Remove `height', `width',
10653 `height_in', and `width_in' members.
10654
10655 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10656 New functions.
10657 (x_calc_absolute_position): Use them.
10658 (x_term_init): Omit removed `height' and `width' members.
10659
10660 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10661 New functions.
10662 (w32_read_socket, x_calc_absolute_position): Use them.
10663 (w32_initialize_display_info, w32_term_init): Omit removed members
10664 of w32_display_info.
10665
10666 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10667 New functions.
10668 (ns_initialize_display_info): Omit removed members of ns_display_info.
10669
10670 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10671 New functions.
10672 (x_calc_absolute_position): Use them.
10673 (x_term_init): Omit removed `height' and `width' members.
10674
10675 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10676 (compute_tip_xy):
10677 * frame.c (x_fullscreen_adjust):
10678 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10679 x_display_pixel_width.
10680
10681 2008-09-18 Kenichi Handa <handa@m17n.org>
10682
10683 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10684 (composition_compute_stop_pos): Fix handling of static composition.
10685 (Fcomposition_get_gstring): Check FROM and TO at first.
10686
10687 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
10690 mixup (YAILOM).
10691
10692 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
10693
10694 * indent.c (Fvertical_motion): Use position reported by iterator
10695 instead of PT for determining screen motion (bug#943).
10696
10697 2008-09-17 Romain Francoise <romain@orebokech.com>
10698
10699 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10700
10701 2008-09-17 Kenichi Handa <handa@m17n.org>
10702
10703 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10704
10705 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10706 if necessary.
10707
10708 2008-09-16 Kenichi Handa <handa@m17n.org>
10709
10710 * coding.c (make_conversion_work_buffer): Avoid calling
10711 Fget_buffer_create if it is not necessary.
10712
10713 2008-09-15 Martin Rudalics <rudalics@gmx.at>
10714
10715 * window.c (Fselect_window): Don't update window_select_count and
10716 use_time when norecord is not nil.
10717
10718 2008-09-14 Kenichi Handa <handa@m17n.org>
10719
10720 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10721 specpdl_ptr.
10722
10723 2008-09-12 Kenichi Handa <handa@m17n.org>
10724
10725 * indent.c (scan_for_column): Don't handle automatic composition
10726 if the current buffer is not associated with a window.
10727
10728 * composite.c (composition_reseat_it): If the current buffer is
10729 not associated with a window, ignore the automatic composition.
10730 (find_automatic_composition): Likewise.
10731
10732 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10733
10734 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10735 (Fgpm_mouse_stop): Use it.
10736 * termhooks.h (close_gpm): Declare.
10737 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10738 connection if Gpm_GetEvent fails.
10739
10740 * window.c (set_window_buffer): Always preserve current-buffer.
10741
10742 2008-09-12 Glenn Morris <rgm@gnu.org>
10743
10744 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10745
10746 2008-09-11 Glenn Morris <rgm@gnu.org>
10747
10748 * charset.c (charset-map-path): Doc fix.
10749
10750 2008-09-10 Kenichi Handa <handa@m17n.org>
10751
10752 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10753
10754 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10755 compose a grapheme cluster with the preceding base glyph.
10756
10757 * composite.c (composition_compute_stop_pos): Fix previous change.
10758 Reset cmp_it->id to -1 at first.
10759
10760 2008-09-10 Glenn Morris <rgm@gnu.org>
10761
10762 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10763
10764 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
10765
10766 * keyboard.c (read_key_sequence): Reapply translation maps when
10767 switching keyboards.
10768
10769 2008-09-09 Kenichi Handa <handa@m17n.org>
10770
10771 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10772 characters.
10773
10774 * composite.c (FORWARD_CHAR): Fix calculation
10775 of (POSITION).pos_byte.
10776 (composition_compute_stop_pos): Limit the search of composition to
10777 at most 500 characters ahead. If we reach the limit or find a
10778 newline, set cmp_it->ch to -2 and return 0.
10779 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10780
10781 2008-09-08 Kenichi Handa <handa@m17n.org>
10782
10783 * indent.c (Fvertical_motion): Be sure to set
10784 it_overshoot_expected if it.cmp_it.id is non-negative.
10785
10786 2008-09-07 Andreas Schwab <schwab@suse.de>
10787
10788 * callproc.c (Fcall_process): Don't hold references to string data
10789 across garbage collection. Move initialisation of new_argv down
10790 to avoid compiler bug.
10791
10792 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10793
10794 * process.c (Fsystem_process_attributes): Doc fix.
10795
10796 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
10797
10798 * callproc.c (Fcall_process): Canonicalize current directory name.
10799
10800 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10801 iterator advances to the next line if the current line ends in a
10802 continued tab.
10803
10804 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10805
10806 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10807 member to point to cmp_from.
10808
10809 * xdisp.c: Doc fix for references to gidx data member.
10810
10811 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10812
10813 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10814
10815 2008-09-07 Kenichi Handa <handa@m17n.org>
10816
10817 * composite.c (FORWARD_CHAR): Check STOP after
10818 incrementing (POSITION).pos.
10819
10820 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10821
10822 * process.c (Fsystem_process_attributes): Doc fix.
10823
10824 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
10825
10826 * keyboard.c (Ftop_level): Doc fix.
10827
10828 2008-09-06 Eli Zaretskii <eliz@gnu.org>
10829
10830 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10831 minibuffer, don't let lower part of menu invade the echo area.
10832
10833 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10834 "char *q" to access menu text and advance through it. Revert the
10835 change that displayed ">" instead of ASCII character 0x10.
10836
10837 2008-09-05 Eli Zaretskii <eliz@gnu.org>
10838
10839 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10840 toggle boxes and radio buttons on MS-DOS as well.
10841
10842 2008-09-05 Kenichi Handa <handa@m17n.org>
10843
10844 * composite.c (autocmp_chars): Check lookback count.
10845 (composition_compute_stop_pos): Set cmp_it->lookback.
10846 (composition_reseat_it): Check lookback count.
10847 (struct position_record): New struct.
10848 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10849 (find_automatic_composition): New function.
10850 (composition_adjust_point): Use find_automatic_composition.
10851
10852 * dispextern.h (struct composition_it): New member lookback.
10853
10854 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
10855
10856 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10857 if moving by a single line.
10858
10859 2008-09-02 Andreas Schwab <schwab@suse.de>
10860
10861 * xterm.c (x_delete_display): Fix merge error.
10862
10863 * fileio.c (Fexpand_file_name): Remove unused variables.
10864
10865 2008-09-02 Eli Zaretskii <eliz@gnu.org>
10866
10867 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10868 storage on all platforms, not just on DOS_NT.
10869
10870 2008-09-02 Jason Rumney <jasonr@gnu.org>
10871
10872 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10873 Ensure mouse is not grabbed after menu is finished.
10874
10875 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
10876
10877 * xfaces.c (Finternal_set_alternative_font_family_alist)
10878 (Finternal_set_alternative_font_registry_alist): Properly copy
10879 entire alist structure.
10880
10881 2008-09-01 Kenichi Handa <handa@m17n.org>
10882
10883 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
10884 representative chars of the script is a vector.
10885 (ftfont_list): Handle the case where the representative chars of
10886 the script is a vector.
10887
10888 * character.c (syms_of_character): Docstring of
10889 script-representative-chars fixed.
10890
10891 2008-08-31 Eli Zaretskii <eliz@gnu.org>
10892
10893 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10894 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10895 the menu. Allocate larger buffer for `text', to account for
10896 possible ^C characters.
10897
10898 2008-08-31 Martin Rudalics <rudalics@gmx.at>
10899
10900 * xdisp.c (prepare_menu_bars): Don't call
10901 Vwindow_size_change_functions with arg Qt.
10902
10903 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10904
10905 * font.h (font_range):
10906 * fileio.c (report_file_error):
10907 * composite.c (composition_update_it): Yet another int/Lisp_Object
10908 mixup (YAILOM).
10909
10910 2008-08-30 Glenn Morris <rgm@gnu.org>
10911
10912 * data.c (Fmake_variable_frame_local): Doc fix.
10913
10914 * frame.c (Fmodify_frame_parameters): Doc fix.
10915
10916 2008-08-30 Eli Zaretskii <eliz@gnu.org>
10917
10918 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10919 needed by GetTokenInformation.
10920 (w32_system_process_attributes): Check return values of all system
10921 APIs.
10922
10923 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10924 only when the state changes.
10925 (IT_update_begin, IT_update_end): Add termscript trace.
10926
10927 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10928 clipboard is unavailable. Set dst to NULL if it doesn't point to
10929 malloc'ed data.
10930 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10931 passing random values to xfree.
10932
10933 * dispnew.c (init_display): Set `tty's association in frame's
10934 parameters alist to the name of the terminal device, if that is known.
10935
10936 2008-08-29 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10939
10940 2008-08-29 Eli Zaretskii <eliz@gnu.org>
10941
10942 * composite.c (fill_gstring_body): Avoid compiler warnings.
10943
10944 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10945 LGLYPH_SET_CODE to avoid compiler warnings.
10946
10947 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
10948
10949 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10950
10951 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10952 LGLYPH_SET_CODE.
10953
10954 2008-08-29 Kenichi Handa <handa@m17n.org>
10955
10956 * fileio.c (report_file_error): Don't downcase the first character
10957 of errstring if it is still unibyte.
10958
10959 2008-08-29 Kenichi Handa <handa@m17n.org>
10960
10961 These changes are to re-implement the automatic composition so
10962 that it doesn't use text properties.
10963
10964 * Makefile.in (ftfont.o): Depend on composite.h.
10965 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10966
10967 * character.h (Vunicode_category_table): Extern it.
10968
10969 * character.c (Vunicode_category_table): New variable.
10970 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10971
10972 * chartab.c (optimize_sub_char_table): Perform more greedy
10973 optimization.
10974
10975 * composite.h (enum composition_method):
10976 Delete COMPOSITION_WITH_GLYPH_STRING.
10977 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10978 (Vcomposition_function_table): Extern it.
10979 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10980 (composition_gstring_put_cache, composition_gstring_from_id)
10981 (composition_gstring_p, composition_gstring_width)
10982 (composition_compute_stop_pos, composition_reseat_it)
10983 (composition_update_it, composition_adjust_point): Extern them.
10984 (Fcomposition_get_gstring): EXFUN it.
10985
10986 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
10987 (Vcomposition_function_table)
10988 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
10989 (gstring_hash_table, gstring_work, gstring_work_headers):
10990 New variables.
10991 (gstring_lookup_cache, composition_gstring_put_cache)
10992 (composition_gstring_from_id, composition_gstring_p)
10993 (composition_gstring_width, fill_gstring_header)
10994 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10995 (composition_reseat_it, composition_update_it)
10996 (composition_adjust_point, Fcomposition_get_gstring): New functions.
10997 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10998 and gstring_work_headers. DEFVAR_LISP composition-function-table.
10999 Defsubr composition_get_gstring.
11000
11001 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11002 cmp_id.
11003 (struct glyph_string): Delete the member gidx. New members
11004 cmp_id, cmp_from, and cmp_to.
11005 (enum it_method): Delete GET_FROM_COMPOSITION.
11006 (struct composition_it): New struct.
11007 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11008 Delete c, len, cmp_id, cmp_len in u.comp.
11009
11010 * font.h (enum lgstring_indices): Delete it.
11011 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
11012 (enum lglyph_indices): Likewise.
11013 (font_range): Adjust extern.
11014 (font_fill_lglyph_metrics): Extern it.
11015
11016 * font.c (QCf): New variable.
11017 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11018 (font_prepare_composition): Delete this function.
11019 (font_range): Type and arguments changed.
11020 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11021 (font_fill_lglyph_metrics): New function.
11022 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
11023 (syms_of_font): DEFSYM QCf. Delete defsubr for
11024 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11025 Defsubr Sfont_shape_gstring.
11026
11027 * fontset.h (font_for_char): Extern it.
11028
11029 * fontset.c (font_for_char): New function.
11030
11031 * ftfont.c: Include composite.h.
11032 (ftfont_resolve_generic_family): Add langset "en" to pattern.
11033 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11034
11035 * indent.c: Include composite.h and dispextern.h.
11036 (check_composition): Delete this function.
11037 (scan_for_column): Handle composition by
11038 composition_compute_stop_pos, composition_reseat_it, and
11039 composition_update_it.
11040 (compute_motion): Likewise.
11041 (Fvertical_motion): Fix checking of composition.
11042
11043 * keyboard.c (adjust_point_for_property): Check composition by
11044 composition_adjust_point.
11045
11046 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
11047 struct glyph_string.
11048
11049 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11050 (append_composite_glyph): Adjust for the change of struct it and
11051 struct glyph.
11052 (produce_composite_glyph): Likewise.
11053
11054 * w32term.c (x_draw_composite_glyph_string_foreground):
11055 Adjust for the change of struct glyph_string.
11056 (x_draw_glyph_string): Likewise.
11057
11058 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11059 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11060
11061 * xdisp.c: Include font.h.
11062 (it_props): Delete the entry for Qauto_composed.
11063 (init_iterator): Initialize it->cmp_it.id to -1.
11064 (compute_stop_pos): Call composition_compute_stop_pos.
11065 (face_before_or_after_it_pos): Adjust for the change of struct it.
11066 (handle_auto_composed_prop): Delete it.
11067 (handle_composition_prop): Handle only static composition.
11068 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11069 from xassert. Initialize it->cmp_it.stop_pos.
11070 (push_it): Adjust for the change of struct it.
11071 (pop_it): Likewise.
11072 (get_next_element): Delete next_element_from_composition.
11073 (CHAR_COMPOSED_P): New macro.
11074 (get_next_display_element): For automatic composition, get a face
11075 from the font in the glyph-string.
11076 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
11077 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
11078 (next_element_from_string): Check if the character at the current
11079 position is composed by CHAR_COMPOSED_P.
11080 (next_element_from_buffer): Likewise.
11081 (next_element_from_composition): Adjust for the change of struct it.
11082 Update it->cmp_it.
11083 (dump_glyph): Adjust for the change of struct glyph.
11084 (fill_composite_glyph_string): Adjust for the change of struct
11085 it and struct glyph. Don't handle automatic composition here.
11086 (fill_gstring_glyph_string): New function.
11087 (x_get_glyph_overhangs): Handle automatic composition.
11088 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
11089 (BUILD_GSTRING_GLYPH_STRING): New macro.
11090 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11091 automatic composition.
11092 (append_composite_glyph): Adjust for the change of struct it and
11093 struct glyph.
11094 (x_produce_glyphs): Adjust for the change of struct it.
11095
11096 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11097 the change of struct glyph_string.
11098 (x_draw_glyph_string): Likewise.
11099
11100 2008-08-29 Glenn Morris <rgm@gnu.org>
11101
11102 * buffer.c (word-wrap): Doc fix.
11103 * xdisp.c (truncate-partial-width-windows): Doc fix.
11104 Increase default to 50.
11105
11106 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
11107
11108 * xdisp.c (update_tool_bar_unwind): New function.
11109 (update_tool_bar): Temporarily set selected frame before building
11110 tool-bar items.
11111
11112 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
11113
11114 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11115 snprintf, respectively.
11116 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11117
11118 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
11119
11120 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11121 LDFLAGS to GNUstep CC invocation.
11122
11123 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
11124
11125 * indent.c (Fvertical_motion): Revert last change. Handle the
11126 general case where we are moving forward, and PT spans multiple
11127 screen lines.
11128
11129 * eval.c (find_handler_clause): Temporarily increase
11130 max-lisp-eval-depth while printing the backtrace buffer, to
11131 guarantee that help-mode code can run.
11132
11133 2008-08-27 Eli Zaretskii <eliz@gnu.org>
11134
11135 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11136 colors under -rv.
11137 (IT_set_frame_parameters): Don't swap foreground and background
11138 colors if `(reverse . t)' is present in the frame properties.
11139 (internal_terminal_init): Call init_frame_faces only for the
11140 initial frame.
11141
11142 2008-08-27 Andreas Schwab <schwab@suse.de>
11143
11144 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11145
11146 2008-08-27 Andreas Schwab <schwab@suse.de>
11147
11148 * search.c (search_buffer): Set char_base to zero only at the end.
11149
11150 2008-08-27 Kenichi Handa <handa@m17n.org>
11151
11152 * fileio.c (report_file_error): Fix handling of multibyte error string.
11153
11154 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11155
11156 * xterm.c (x_term_init): Temporarily hide the partially
11157 initialized terminal while calling vendor-specific-keysyms.
11158
11159 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11160
11161 * msdos.c (internal_terminal_init): Most initializations done only
11162 once, especially initial_screen_colors[] and termscript open.
11163
11164 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11165
11166 * eval.c (Fcondition_case): Doc fix.
11167
11168 * widgetprv.h (EmacsFramePart): Change font member to the new font
11169 struct.
11170
11171 * widget.c: Include character.h and font.h for XSETFONT.
11172 (setup_frame_gcs): Compute X font id from font struct, just once.
11173
11174 2008-08-26 Eli Zaretskii <eliz@gnu.org>
11175
11176 * term.c (get_named_tty): Fix last change.
11177
11178 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
11179
11180 * indent.c (Fvertical_motion): If moving forward starting from a
11181 multi-line string, move the iterator to the last line of that string.
11182
11183 2008-08-25 Eli Zaretskii <eliz@gnu.org>
11184
11185 * frame.c (do_switch_frame): Mark previously displayed frame as
11186 obscured for FRAME_MSDOS_P frames as well.
11187
11188 2008-08-24 Eli Zaretskii <eliz@gnu.org>
11189
11190 * frame.c (make_terminal_frame): Initialize f->terminal,
11191 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11192 Set the top frame to newly created frame.
11193 (Fmake_terminal_frame): Reuse the_only_display_info.
11194
11195 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11196 estimating available memory.
11197
11198 2008-08-23 David Reitter <david.reitter@gmail.com>
11199
11200 * nsterm.m (ns_draw_window_cursor): Don't call
11201 NSDisableScreenUpdates and NSEnableScreenUpdates on
11202 non-NS_IMPL_COCOA systems.
11203
11204 2008-08-23 Andreas Schwab <schwab@suse.de>
11205
11206 * process.c (procfs_system_process_attributes): Fix use of
11207 uninitialized variables.
11208
11209 2008-08-23 Eli Zaretskii <eliz@gnu.org>
11210
11211 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11212
11213 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11214 calling tty-set-up-initial-frame-faces.
11215
11216 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11217 Allow MSDOS frames along with X frames.
11218
11219 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11220 addition to output_termcap.
11221
11222 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11223
11224 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11225 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11226 highlight.
11227
11228 * process.c [!subprocesses]: Define QCname.
11229 (syms_of_process): Intern and staticpro it.
11230
11231 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
11232 Adjust for changes in encoding/decoding routines.
11233 Use encode_coding_object and decode_coding_object instead of
11234 encode_coding and decode_coding.
11235
11236 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
11237
11238 * dosfns.c: Include frame.h before termhooks.h.
11239 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11240 variable termscript.
11241
11242 * s/msdos.h (USER_FULL_NAME): Define.
11243 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11244
11245 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11246 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11247 pw->pw_gecos.
11248
11249 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11250 SELECTED_FRAME as additional (1st) argument.
11251 (tty_read_avail_input): Handle output_msdos_raw in
11252 addition to output_termcap.
11253
11254 * msdos.c: Include frame.h before termhooks.h.
11255 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11256 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11257 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11258 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11259 (IT_set_terminal_modes, IT_reset_terminal_modes)
11260 (IT_set_frame_parameters): Use tty->termscript instead of a global
11261 variable termscript.
11262 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11263 global variable terminal_coding. Don't refer to
11264 Vnonascii_translation_table.
11265 (internal_terminal_init): Set Vwindow_system in current_kboard.
11266 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11267 Announce date and time of session start, if termscript is open.
11268 Don't zero out the_only_display_info (it is done in
11269 term.c:init_tty). Open termscript only of not already open.
11270 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
11271 here instead of dos_ttraw. Don't initialize display if this is an
11272 initial tty. Don't set FRAME_FONT.
11273 (Vwindow_system_version): Bump to 23.
11274 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11275 is available, set up mouse_position_hook.
11276 (dos_ttraw, IT_set_terminal_modes): If called with initial
11277 terminal, do nothing.
11278 (IT_set_frame_parameters): Handle the Qtty_type frame
11279 parameter by calling internal_terminal_init.
11280 (dos_set_window_size, show_mouse_face)
11281 (clear_mouse_face, IT_note_mode_line_highlight)
11282 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11283 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11284 (initialize_msdos_display): New function.
11285 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11286 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11287 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11288 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
11289 Accept additional argument: a pointer to a frame. Update all callers.
11290 (request_sigio, unrequest_sigio): Don't define, now defined on
11291 sysdep.c.
11292 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11293
11294 * term.c [MSDOS]: Include msdos.h.
11295 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11296 conditional to DOS_NT. Allow only one call to this function in a
11297 session. Don't allocate a new struct tty_display_info; instead,
11298 reuse the_only_display_info. Call get_tty_size to get screen
11299 dimensions. Call init_baud_rate to set bad_rate.
11300 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11301 (Fsuspend_tty) [MSDOS]: Don't close input and output.
11302 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
11303 (get_tty_terminal, get_named_tty, Ftty_type)
11304 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11305 output_termcap.
11306 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11307 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
11308 only when subprocesses are supported.
11309
11310 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11311 f->output_data.x.
11312 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11313 terminal devices.
11314
11315 * msdos.h: Remove definition of struct x_display_info and struct
11316 x_output.
11317 (FRAME_FONT): Use output_data.tty.
11318 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
11319 (struct x_display_info): Rename from display_info. Update all users in
11320 msdos.c.
11321 (struct x_output): Remove background_pixel and foreground_pixel.
11322 (the_only_display_info): Rename from the_only_x_display.
11323 (dos_ttraw): Update prototype.
11324
11325 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11326 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11327
11328 2008-08-23 Jason Rumney <jasonr@gnu.org>
11329
11330 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11331 (fn_TIFFSetDirectory): New library function used.
11332 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11333 (tiff_load): Use :index to select among multiple images. Set count
11334 property when multiple images exist.
11335 (gif_format): Use :index, not :image.
11336
11337 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
11338
11339 * xdisp.c (try_scrolling): Check INT_MAX instead of
11340 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11341 to obtain INT_MAX.
11342
11343 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11344
11345 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11346
11347 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11348
11349 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11350 GNUstep library location.
11351
11352 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
11353
11354 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11355 before using it.
11356
11357 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11358
11359 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11360
11361 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11362 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11363 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11364 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11365 (EmacsApp-cursor_blink_handler): Remove declaration.
11366 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11367 match 01 Feb 2008 changes in xterm.c.
11368 (ns_read_socket): Add cast to avoid warning.
11369 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11370 GNUstep.
11371
11372 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
11373
11374 * xselect.c (x_get_foreign_selection): Return nil if desired
11375 selection could not be obtained, instead of signalling an error.
11376
11377 2008-08-20 David Reitter <david.reitter@gmail.com>
11378
11379 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11380 * nsterm.m: Remove ns-specific code for cursor blinking.
11381 (ns_draw_window_cursor): Clear cursor properly rather than
11382 redrawing the area. Respect width of bar cursors.
11383 These changes enable the use of generic blink-cursor-mode and
11384 generic cursor types in NS and support smooth cursor movements (do
11385 not blink off after command).
11386 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11387 Nextstep, too.
11388
11389 2008-08-19 Kenichi Handa <handa@m17n.org>
11390
11391 * font.c (Vfont_log_deferred): New variable.
11392 (font_add_log): Check Vfont_log_deferred.
11393 (font_deferred_log): New function.
11394
11395 * font.h (font_deferred_log): Extern it.
11396
11397 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11398 for sorting.
11399 (face_for_char): Use deferred log.
11400
11401 2008-08-18 Kenichi Handa <handa@m17n.org>
11402
11403 * fontset.c (face_for_char): Add font log.
11404
11405 * font.c (font_add_log): Add the font properties :script, :lang,
11406 and :otf in the log.
11407
11408 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
11409
11410 * xdisp.c: Remove dead code.
11411 (handle_invisible_prop, next_overlay_string): Defer call to
11412 setup_for_ellipsis.
11413 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11414
11415 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
11416
11417 * xfaces.c (lookup_derived_face): Properly handle possible zero
11418 return value of get_lface_attributes.
11419 (merge_faces): Don't tell lookup_derived_face to signal an error
11420 if face is not found.
11421
11422 * dired.c (Fdirectory_files): Doc fix.
11423
11424 * process.c (make_process): Initialize kill_without_query struct
11425 member.
11426
11427 2008-08-15 Eli Zaretskii <eliz@gnu.org>
11428
11429 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11430 Alternative calculation of totphys for Visual Studio 6.
11431
11432 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11433
11434 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11435 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11436 All users changed.
11437 (stat): Only root directory passed to GetDriveType. Allow RAM
11438 disk as well as local fixed disk when w32-get-true-file-attributes
11439 is set to `local'.
11440 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11441 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11442 (w32_cached_id, w32_add_to_cache): New functions.
11443 (get_name_and_id): Look account names in the cache before calling
11444 lookup_account_sid.
11445 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11446 New initialization flags.
11447 (globals_of_w32): Initialize them to zero.
11448 (w32_system_process_attributes): Use w32_cached_id and
11449 w32_add_to_cache.
11450
11451 2008-08-14 Lawrence Mitchell <wence@gmx.li>
11452
11453 * lread.c (Fread_char, Fread_char_exclusive): If no character
11454 event is read before timeout is reached, return nil, rather than
11455 converting to a number.
11456
11457 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
11458
11459 * fns.c (use_dialog_box): Doc fix.
11460
11461 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11462 on OS X.
11463
11464 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
11465
11466 * frame.c (Qns_parse_geometry): New var.
11467 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11468
11469 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
11470
11471 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11472 space character in calculating tabs.
11473
11474 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11475
11476 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11477
11478 2008-08-10 Glenn Morris <rgm@gnu.org>
11479
11480 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11481 silence gcc "limited range of data type" warnings in some
11482 make_fixnum_or_float calls.
11483
11484 2008-08-09 Eli Zaretskii <eliz@gnu.org>
11485
11486 * w32.c (w32_system_process_attributes): If the process does not
11487 exist, return nil.
11488
11489 * w32.c: Include thelp32.h, psapi.h and coding.h.
11490 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11491 declarations.
11492 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11493 (Process32Next_Proc): New typedefs.
11494 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11495 (g_b_init_process32_next, g_b_init_open_thread_token)
11496 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11497 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11498 (g_b_init_get_process_working_set_size)
11499 (g_b_init_global_memory_status_ex): New static variables.
11500 (globals_of_w32): Initialize them.
11501 (create_toolhelp32_snapshot, process32_first, process32_next)
11502 (open_thread_token, impersonate_self, revert_to_self)
11503 (get_process_memory_info, get_process_working_set_size)
11504 (global_memory_status, global_memory_status_ex): New wrapper
11505 functions.
11506 (w32_list_system_processes, w32_system_process_attributes)
11507 (enable_privilege, restore_privilege, ltime, process_times):
11508 New functions.
11509 (convert_time_raw): New function.
11510 (convert_time): Remove conversion of FILETIME into time in 100
11511 nsec units, call convert_time_raw instead.
11512
11513 * process.h (w32_list_system_processes, w32_system_process_attributes):
11514 Add prototypes.
11515 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11516 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11517 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11518 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11519
11520 * process.c (Fsystem_process_attributes): Doc fix.
11521
11522 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
11523
11524 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11525 a continued multi-char glyph; if so, advance to the actual glyph.
11526
11527 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11528
11529 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11530
11531 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11532 (.m.o): Use it.
11533 * config.in: Regenerate.
11534
11535 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
11536
11537 * xdisp.c (redisplay_window): Revert last change.
11538 (try_window): Check bottom scroll margin too.
11539
11540 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11541
11542 * config.in: Regenerate.
11543
11544 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11545 -list-load-path-shadows'.
11546 (nsgui.h): Reduce number of things depending on it.
11547
11548 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
11549
11550 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11551 instead of window-end which does the wrong thing at eob.
11552 (try_cursor_movement): Minor optimization.
11553 (redisplay_window): If scroll margin is defined, don't assume
11554 window doesn't need scrolling.
11555
11556 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11557
11558 * config.in: Regenerate.
11559
11560 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11561 (mostlyclean): Don't delete *.d under NS.
11562
11563 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11564
11565 2008-08-06 Kenichi Handa <handa@m17n.org>
11566
11567 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11568
11569 2008-08-06 Andreas Schwab <schwab@suse.de>
11570
11571 * config.in: Regenerate.
11572
11573 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
11574
11575 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11576 forcing a window start.
11577
11578 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11579 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11580
11581 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11582
11583 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11584 argument.
11585
11586 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
11587
11588 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11589 <scroll-down-aggressively, before-change-functions>:
11590 <after-change-functions>: Reflow docstrings.
11591
11592 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11593 Ken Raeburn <raeburn@gnu.org>
11594
11595 Dock menu customization, based on a patch by Ken Raeburn, plus some
11596 other fixes.
11597 * nsmenu.m (dockMenu): New variable.
11598 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11599
11600 * nsterm.h (dockMenu): Declare.
11601
11602 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11603 (ns_term_init): Initialize dockMenu.
11604 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11605 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11606 left.
11607
11608 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11609
11610 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11611
11612 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11613
11614 * config.in: Regenerate.
11615
11616 2008-08-04 Seiji Zenitani <zenitani@mac.com>
11617
11618 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11619
11620 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
11621
11622 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11623
11624 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11625
11626 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11627
11628 * keyboard.h: Comment an #endif.
11629
11630 * lisp.h (have_menus_p): Adjust comment.
11631
11632 * menu.c (find_and_return_menu_selection): Fix comparison with
11633 client_data.
11634
11635 * nsmenu.m (popup_activated_flag): New variable.
11636 (popup_activated): New function.
11637 (menu-or-popup-active-p): New exported lisp definition.
11638 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11639 when popup done.
11640 (ns_popup_dialog): Set popup_activated_flag.
11641
11642 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11643 version for GNUstep (handled by conditional typedef in nsterm.m).
11644 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11645 in rgb.txt).
11646
11647 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11648
11649 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11650
11651 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11652
11653 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11654 shortcircuit if popup_activated like GTK and X toolkit.
11655
11656 * m/inter386.h: Change DARWIN to DARWIN_OS.
11657
11658 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11659 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11660 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11661 comment on NO_SOCK_SIGIO.
11662
11663 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
11664
11665 * nsterm.m (windowDidResize): Remove stopModal call.
11666
11667 2008-08-03 Andreas Schwab <schwab@suse.de>
11668
11669 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11670 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11671
11672 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
11673
11674 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11675 Don't use uninitialized pointer variable when using getrlimit.
11676
11677 2008-08-02 Jason Rumney <jasonr@gnu.org>
11678
11679 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11680
11681 2008-08-02 Eli Zaretskii <eliz@gnu.org>
11682
11683 * alloc.c (NSTATICS): Bump to 0x640.
11684
11685 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11686
11687 * lisp.h: Add prototype for directory_files_internal.
11688
11689 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11690 New functions.
11691 (syms_of_process): Defsubr them. Add initializations for various
11692 Q* symbols used in procfs_system_process_attributes.
11693 (procfs_list_system_processes, procfs_system_process_attributes)
11694 [HAVE_PROCFS]: New functions.
11695 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11696 (procfs_get_total_memory): New functions.
11697
11698 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11699
11700 * xfaces.c (Fx_load_color_file): Fix previous change;
11701 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11702
11703 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
11704
11705 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11706
11707 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11708
11709 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11710
11711 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
11712
11713 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11714
11715 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11716 define NSApplicationDelegateReplySuccess.
11717 (EmacsView -converstationIdentifier): Use long instead of
11718 NSInteger for GNUstep, since it doesn't have NSInteger.
11719
11720 * xmenu.c: Revert last change.
11721
11722 * keyboard.h: Fix last change.
11723
11724 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
11725
11726 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11727 on Windows.
11728
11729 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11730
11731 Warning clearing and clean-up in NS port.
11732 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11733 Add prototypes.
11734 * nsgui.h (FACE_DEFAULT): Remove, unused.
11735 (XGCValues): Change colors to unsigned long.
11736 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11737 nsterm.m.
11738 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11739 (ns_list_fonts): Remove, unused.
11740 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11741 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11742 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11743 (nsfont_draw): Compare face colors to 0, not nil.
11744 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11745 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11746 (-addSubmenuWithTitle:): Use NSMenuItem class.
11747 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11748 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11749 (ns_clip_to_row): Make gc arg a BOOL.
11750 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11751 ns_clip_to_row() call.
11752 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11753 used). Cast FRAME_FONT assignments.
11754 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11755 (ns_string_to_lispmod): Change arg to const char.
11756 (ns_term_init): Use NSMenuItem class.
11757 (EmacsApp -openFile:): Move to different section of file.
11758 (EmacsApp -application:openFiles:): Don't return a value, call
11759 -replyToOpenOrPrint:.
11760 (EmacsView -keyDown:): Fix up cast.
11761 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11762 (EmacsView -menuDown:): Cast tag in call to
11763 find_and_call_menu_selection().
11764 (ns_list_fonts): Remove, unused.
11765 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11766 (ns_fontname_to_xlfd): Make static.
11767 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11768 Remove prototypes (now in keyboard.h).
11769 (next_menubar_widget_id): Remove, unused.
11770 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11771 Remove prototypes (now in keyboard.h).
11772 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11773
11774 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11775
11776 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11777 (floatfns.o): Depend on syssignal.h.
11778 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11779
11780 * systty.h: Fix previous change that removed BSD_TERMIOS.
11781 Add comments to #ifdefs.
11782
11783 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11784
11785 * w32fns.c (w32-load-color-file): Remove.
11786 (x-open-connection): Use renamed Fx_load_color_file.
11787 * xfaces.c (x-load-color-file): Add.
11788 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11789 Emacs.clr.
11790 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11791
11792 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
11793
11794 * dbusbind.c (Fdbus_call_method_asynchronously)
11795 (Fdbus_method_error_internal): New defuns.
11796 (xd_read_message): Handle also reply messages.
11797 (Vdbus_registered_functions_table): Extend docstring.
11798
11799 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
11800
11801 * keyboard.c (gobble_input): Fix previous change.
11802
11803 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11804
11805 * bitmaps/README:
11806 * xfns.c:
11807 * termcap.c:
11808 * term.c:
11809 * syswait.h:
11810 * systty.h:
11811 * systime.h:
11812 * syssignal.h:
11813 * sysdep.c:
11814 * process.h:
11815 * process.c:
11816 * print.c:
11817 * ndir.h:
11818 * lread.c:
11819 * keyboard.c:
11820 * getpagesize.h:
11821 * floatfns.c:
11822 * fileio.c:
11823 * emacs.c:
11824 * doc.c:
11825 * dispnew.c:
11826 * dired.c:
11827 * data.c:
11828 * callproc.c:
11829 * buffer.c:
11830 * README:
11831 * Makefile.in:
11832 * s/template.h:
11833 * s/msdos.h:
11834 * m/vax.h: Remove VMS support.
11835 * s/vms.h:
11836 * vlimit.h:
11837 * uaf.h:
11838 * temacs.opt:
11839 * param.h:
11840 * ioctl.h: Remove file.
11841
11842 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11843
11844 * s/ms-w32.h (MULTI_KBOARD): Remove.
11845 * xterm.c:
11846 * xselect.c:
11847 * xfns.c:
11848 * window.c:
11849 * w32term.c:
11850 * w32fns.c:
11851 * terminal.c:
11852 * termhooks.h:
11853 * term.c:
11854 * sysdep.c:
11855 * keyboard.h:
11856 * keyboard.c:
11857 * frame.h:
11858 * frame.c:
11859 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11860 * config.in: Regenerate.
11861
11862 2008-07-30 Jason Rumney <jasonr@gnu.org>
11863
11864 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11865
11866 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11867 (w32font_open_internal): Get unicode version of textmetrics.
11868 Don't enable or disable glyph indices here.
11869 (w32font_open): Disable use of glyph indices.
11870
11871 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11872
11873 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
11874
11875 * minibuf.c (Vread_buffer_function): Doc fix.
11876
11877 2008-07-30 John Paul Wallington <jpw@pobox.com>
11878
11879 * minibuf.c (read_buffer_completion_ignore_case): New var.
11880 (Fread_buffer): Use it.
11881
11882 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11883
11884 * systty.h (sensemode): Remove empty #if. Remove reference to
11885 BSD_TERMIOS, unused.
11886
11887 * sysdep.c: Remove reference to DGUX.
11888 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11889
11890 * config.in: Regenerate.
11891
11892 2008-07-30 Jason Rumney <jasonr@gnu.org>
11893
11894 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11895
11896 2008-07-29 Jason Rumney <jasonr@gnu.org>
11897
11898 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11899 is populated.
11900 (uniscribe_encode_char): Always use uniscribe.
11901 Avoid using context if cache is populated.
11902
11903 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11904
11905 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11906 open menu.
11907
11908 * gtkutil.c (menu_nav_ended): Remove.
11909 (create_menus): Remove signal connect for menu_nav_ended.
11910
11911 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
11912
11913 * xdisp.c (redisplay_window): Check return value of
11914 compute_window_start_on_continuation_line before forcing a window
11915 start.
11916
11917 2008-07-28 Jason Rumney <jasonr@gnu.org>
11918
11919 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11920
11921 * w32term.c (w32_enable_unicode_output, cleartype_active):
11922 Remove obsolete display options.
11923 (x_draw_glyph_string_background): Don't use old cleartype_active
11924 workaround.
11925 (w32_initialize): Remove cleartype_active initialization.
11926 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11927
11928 2008-07-28 Andreas Schwab <schwab@suse.de>
11929
11930 * lisp.h (init_weak_hash_tables, syms_of_font)
11931 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11932 (remove_hash_entry): Don't declare.
11933 * eval.c (maybe_call_debugger): Make static and move before use.
11934 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11935 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11936 * xterm.h (x_set_frame_alpha): Declare.
11937
11938 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11939
11940 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11941 (create_menus): Connect selection-done to menu_nav_ended.
11942
11943 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11944
11945 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11946 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11947 parameter with read of 'alpha' one.
11948 (Qns_frame_parameter): Remove.
11949 * nsselect.m (selection-coding-system)
11950 (next-selection-coding-system, Vselection_coding_system)
11951 (Vnext_selection_coding_system): Drop.
11952
11953 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11954
11955 * nsfns.m (do-applescript, do_applescript): Rename to
11956 ns-do-applescript, ns_do_applescript, and move within file.
11957
11958 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11959
11960 Remove support for Mac Carbon.
11961 * mactoolbox.c:
11962 * macterm.h:
11963 * macterm.c:
11964 * macselect.c:
11965 * macmenu.c:
11966 * macgui.h:
11967 * macfns.c:
11968 * mac.c: Remove file.
11969 * s/darwin.h:
11970 * m/intel386.h:
11971 * xfaces.c:
11972 * xdisp.c:
11973 * window.c:
11974 * tparam.c:
11975 * termhooks.h:
11976 * termcap.c:
11977 * term.c:
11978 * syssignal.h:
11979 * sysselect.h:
11980 * sysdep.c:
11981 * process.c:
11982 * lread.c:
11983 * lisp.h:
11984 * keyboard.c:
11985 * image.c:
11986 * fringe.c:
11987 * frame.h:
11988 * frame.c:
11989 * fontset.c:
11990 * font.h:
11991 * font.c:
11992 * fns.c:
11993 * fileio.c:
11994 * emacs.c:
11995 * dispnew.c:
11996 * dispextern.h:
11997 * config.in:
11998 * atimer.c:
11999 * Makefile.in: Remove code for Carbon.
12000
12001 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12002
12003 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12004
12005 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12006
12007 * macterm.h (kCGBitmapByteOrder32Host): New define for
12008 non-universal SDKs.
12009
12010 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12011 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12012
12013 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12014 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12015
12016 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12017
12018 * w32inevt.c: Include dispextern.h.
12019
12020 2008-07-26 Andreas Schwab <schwab@suse.de>
12021
12022 * print.c (print_object): Fix off-by-one in last change.
12023
12024 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
12025
12026 * term.c (syms_of_term): Don't initialize default_orig_pair,
12027 default_set_foreground and default_set_background on Windows.
12028
12029 2008-07-25 Jason Rumney <jasonr@gnu.org>
12030
12031 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12032 ScriptItemize. Clean up return value checking. Remove unused
12033 variables.
12034 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12035 shaping engine.
12036
12037 * w32font.c (w32font_has_char): Handle the case where we can't
12038 determine the script for a character.
12039
12040 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12041
12042 * term.c (syms_of_term): Initialize default_orig_pair,
12043 default_set_foreground, and default_set_background.
12044
12045 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12046 clash (bug#86).
12047 (getloadavg): Callers changed.
12048
12049 * image.c (svg_load_image): Fix last change.
12050 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12051 image size is valid. Use g_object_unref instead of deprecated
12052 rsvg_handle_free to free rsvg handle.
12053 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12054
12055 2008-07-25 Jason Rumney <jasonr@gnu.org>
12056
12057 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12058 surrogates before looking up glyph index.
12059 (w32font_text_extents): Encode as surrogates if falling back to
12060 functions that need UTF-16 wide chars.
12061
12062 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12063 BMP as surrogates before looking up glyph index.
12064
12065 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
12066
12067 * image.c (svg_load_image): Check for failure in return value of
12068 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12069
12070 2008-07-25 Jason Rumney <jasonr@gnu.org>
12071
12072 * w32font.c (Fx_select_font): Reverse sense of second arg.
12073
12074 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12075
12076 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12077 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12078
12079 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12080 (PURESIZE): Use it.
12081
12082 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12083
12084 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12085 * m/alpha.h (TEXT_END):
12086 * m/ibmrs6000.h (TEXT_END):
12087 * m/macppc.h (TEXT_END):
12088 * s/darwin.h (TEXT_END):
12089 * s/msdos.h (TEXT_END): Remove, unused.
12090 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12091 * s/cygwin.h: Remove comment.
12092
12093 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12094 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12095 * m/intel386.h (DOT_GLOBAL_START):
12096 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12097 (USG): Remove, file not used on USG platforms.
12098
12099 * Makefile.in (HAVE_X11): Remove empty #else.
12100
12101 2008-07-24 Andreas Schwab <schwab@suse.de>
12102
12103 * fileio.c (Finsert_file_contents): Properly adjust undo list
12104 after format conversion.
12105
12106 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12107
12108 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12109 (menu_nav_ended): Remove.
12110 (create_menus): Remove signal connect for menu_nav_ended.
12111 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12112 create_menus.
12113 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12114
12115 2008-07-23 Jason Rumney <jasonr@gnu.org>
12116
12117 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12118 with opened font.
12119 (w32font_open): Set font type to gdi.
12120
12121 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12122
12123 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12124
12125 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12126 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12127 defines it.
12128 * unexec.c (ADDR_CORRECT): Define unconditionally.
12129
12130 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12131
12132 * unexec.c: Remove code depending on !COFF and USG, the file is
12133 not used for such systems.
12134
12135 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12136 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12137 (LD_SWITCH_SYSTEM_1): Remove, update users.
12138
12139 * s/darwin.h (DATA_END):
12140 * m/intel386.h (DATA_END):
12141 * m/ibmrs6000.h (DATA_END):
12142 * m/alpha.h (DATA_END): Remove, unused.
12143
12144 * config.in: Regenerate.
12145 * s/ms-w32.h (subprocesses): Define unconditionally.
12146 * s/template.h (subprocesses): Update comment.
12147 * s/vms.h (subprocesses):
12148 * s/usg5-4.h (subprocesses):
12149 * s/hpux10-20.h (subprocesses):
12150 * s/gnu-linux.h (subprocesses):
12151 * s/cygwin.h (subprocesses):
12152 * s/bsd-common.h (subprocesses):
12153 * s/aix4-2.h (subprocesses):
12154 * s/darwin.h (subprocesses): Do not define, defined by default now.
12155
12156 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12157 Remove all references.
12158 (temacs): Add GNUstep specific ld flags.
12159
12160 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12161 similarly to what X does.
12162
12163 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12164
12165 * nsfns.m (x-list-fonts): Remove.
12166 (syms_of_nsfns): Drop the x-list-fonts declaration.
12167 * nsterm.m: Get rid of remaining "//" comments.
12168
12169 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
12170
12171 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12172
12173 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12174 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12175 (Fns_own_selection_internal, Fx_disown_selection_internal)
12176 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12177
12178 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12179 ... */' style of docstrings. Doc fixes.
12180
12181 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12182
12183 * terminfo.c (UP, BC, PC): Undo previous change.
12184
12185 * nsfns.m: Rename ns prefixed functions/variables to the
12186 corresponding x versions. Update references.
12187
12188 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12189
12190 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12191
12192 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12193
12194 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12195 Remove forwarding functions.
12196 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12197 non-static.
12198 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12199 non-static.
12200 (ns_frame_parm_handlers): Use the new names.
12201 (syms_of_nsfns): Move to the end of file.
12202
12203 * nsterm.m (syms_of_nsterm): Move to the end of file.
12204
12205 * dispnew.c (init_display): Remove code for X10.
12206
12207 2008-07-22 Jason Rumney <jasonr@gnu.org>
12208
12209 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12210 bare drive.
12211
12212 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12213
12214 * nsterm.m (syms_of_nsterm): Remove debugging println.
12215
12216 2008-07-22 David Reitter <david.reitter@gmail.com>
12217
12218 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12219 Carbon implementation of the same functionality: execute arbitrary
12220 AppleScript code.
12221
12222 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12223
12224 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12225 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12226 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12227 (Fx_display_mm_height, Fx_display_mm_width)
12228 (Fx_display_backing_store, Fx_display_visual_class)
12229 (Fx_display_save_under, Fx_open_connection)
12230 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12231 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12232 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12233 (Fx_display_pixel_width, Fx_display_pixel_height)
12234 (Fx_display_usable_bounds, Fx_display_planes)
12235 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12236 ... */' style of docstrings.
12237
12238 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12239
12240 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12241 on this platform.
12242 (mips):
12243 * m/iris4d.h (mips): Do not define.
12244 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12245
12246 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12247
12248 * image.c:
12249 * nsfns.m:
12250 * nsselect.m:
12251 * nsterm.h:
12252 * nsterm.m: Rename ns prefixed functions/variables to the
12253 corresponding x versions. Update references.
12254
12255 * m/ibms390x.h (NO_REMAP): Do not undefine.
12256
12257 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12258
12259 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
12260
12261 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12262 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12263 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12264 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12265 (Fns_display_mm_height, Fns_display_mm_width)
12266 (Fns_display_backing_store, Fns_display_visual_class)
12267 (Fns_display_save_under, Fns_open_connection)
12268 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12269 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12270 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12271 (Fns_display_pixel_width, Fns_display_pixel_height)
12272 (Fns_display_usable_bounds, Fx_display_planes)
12273 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12274
12275 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12276
12277 * print.c (print_object): Check print_depth before searching for
12278 circularities.
12279
12280 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
12281
12282 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12283 only sprintf.
12284
12285 2008-07-21 Kenichi Handa <handa@m17n.org>
12286
12287 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12288
12289 2008-07-20 Andreas Schwab <schwab@suse.de>
12290
12291 * syntax.c (find_start_pos, find_start_value)
12292 (find_start_value_byte, find_start_begv, find_defun_start)
12293 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12294
12295 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12296
12297 * s/sol2-3.h: Insert contents of s/sol2.h.
12298 (LD_SWITCH_SYSTEM): Remove redundant definition.
12299 * s/sol2.h: Remove, unused.
12300
12301 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12302
12303 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12304
12305 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12306
12307 * Makefile.in (ns_appdir): Fix typo in find command.
12308
12309 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12310
12311 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12312
12313 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12314 added not supported anymore.
12315
12316 * s/usg5-4-2.h (LIBS_SYSTEM):
12317 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12318
12319 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12320 * s/lynxos.h (GETPGRP_NO_ARG):
12321 * s/hpux10-20.h (NO_SIOCTL_H):
12322 * s/gnu.h (GETPGRP_NO_ARG):
12323 * s/gnu-linux.h (NO_SIOCTL_H):
12324 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12325 * s/cygwin.h (GETPGRP_NO_ARG):
12326 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12327 (C_DEBUG_SWITCH): Remove duplicate definition.
12328
12329 * m/ibms390.h: Remove boilerplate comments.
12330
12331 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12332
12333 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12334 (wait_reading_process_output): Remove code for SunOS, platform not
12335 supported anymore. Use SOLARIS2 instead of sun.
12336
12337 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12338
12339 * font.c (font_open_by_name): Under NS, default lface height to zero.
12340 (font_open_for_lface): Under NS, set size based on frame fontsize.
12341 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12342 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12343
12344 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12345
12346 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12347 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12348 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12349 YES/NO.
12350 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12351 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12352 * Makefile.in (clean): Clear out build destination dir.
12353
12354 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12355
12356 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12357 xterm, xselect.
12358 * lisp.h: Remove declaration of hash_remove.
12359 * nsgui.h: Remove redefinitions of hash_remove.
12360 * fns.c (hash_remove): Rename to hash_remove_from_table.
12361
12362 2008-07-19 Seiji Zenitani <zenitani@mac.com>
12363
12364 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12365 strdup() the family UTF8String before modifying it.
12366
12367 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12368
12369 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12370 NS_FACE_BACKGROUND with 0 instead of nil.
12371 * nsfont.m (nsfont_draw): Same.
12372
12373 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
12374
12375 * nsfns.m (ns_set_background_color): Fix crash.
12376
12377 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
12378
12379 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12380
12381 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12382
12383 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12384
12385 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12386
12387 * gtkutil.c: Include <config.h> instead of "config.h".
12388
12389 * lisp.h (Foverlay_buffer): Add EXFUN.
12390
12391 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12392 child process to complete child_setup. Undo 2005-09-21 change.
12393
12394 * s/darwin.h: Mention setsid after vfork.
12395
12396 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12397
12398 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12399 Depend on macgui.h.
12400
12401 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12402 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12403
12404 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12405 and f19.
12406 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12407
12408 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12409 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12410 Remove enumerators.
12411
12412 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12413 Check if FACE_FROM_ID returns NULL.
12414
12415 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12416
12417 * w32inevt.c (change_frame_size): Remove extern declaration.
12418 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12419 change_frame_size.
12420
12421 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12422
12423 * getloadavg.c: Revert last change (2008-07-15).
12424
12425 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12426
12427 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
12428 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
12429 from configure.
12430
12431 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12432
12433 * s/sol2.h:
12434 * s/sol2-4.h: Reorganize conditionals.
12435
12436 * ecrt0.c: Remove code depending on m68000, not used anymore.
12437
12438 * fns.c (hash_remove): Make static.
12439 * lisp.h (hash_remove): Don't prototype.
12440
12441 * m/ibmrs6000.h:
12442 * m/ibms390x.h:
12443 * m/macppc.h: Remove boilerplate comments.
12444
12445 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12446 Solaris, which does not need them.
12447
12448 * m/vax.h: Remove comments about unsupported systems.
12449
12450 * s/darwin.h: Reorganize ifdefs.
12451
12452 2008-07-17 Andreas Schwab <schwab@suse.de>
12453
12454 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12455
12456 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12457
12458 Use SDATA. Follow coding convention of placing operators at
12459 beginning of next line rather than end of previous line, and placing
12460 spaces around infix operators.
12461
12462 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12463 in case it was defined already.
12464 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12465 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12466 ns_default.
12467 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12468 Lisp_Objects.
12469 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12470 (ns_defined_color, ns_color_to_lisp): Declare.
12471 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12472 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12473 it's accepted even with USE_LISP_UNION_TYPE.
12474 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12475 (update_frame_tool_bar): Remove apparently obsolete tests for
12476 non-integerness of f->tool_bar_lines.
12477 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12478 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12479 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12480 (nsfont_open): Don't confuse NULL for Qnil.
12481 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12482 * menu.h (find_and_call_menu_selection):
12483 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12484 (find_and_return_menu_selection): Always return something.
12485 * frame.h: Include dispextern.h for Display_Info.
12486 (display_x_get_resource): Declare.
12487
12488 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12489
12490 * syntax.c: Remove stdio.h include accidentally introduced in
12491 Emacs.app commit.
12492 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12493 NS_IMPL_COCOA.
12494 * keyboard.c (handle_async_input, input_available_signal): Remove
12495 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12496
12497 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12498
12499 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12500 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12501 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12502 Use SDATA.
12503
12504 * keymap.c: Remove all NS-specific code.
12505 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12506 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12507 where_is_preferred_modifier, return a different value depending on how
12508 preferred is the binding.
12509 (where_is_internal): Adjust accordingly.
12510 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12511 Adjust to new preferred_sequence_p.
12512 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12513 * keyboard.c (parse_solitary_modifier): Not static any more.
12514 * keyboard.h (parse_solitary_modifier): Declare.
12515
12516 2008-07-16 Andreas Schwab <schwab@suse.de>
12517
12518 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12519 of easymenu.
12520
12521 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
12522
12523 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12524 that we don't move off the line.
12525
12526 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12527
12528 * keyboard.c (Qsuper): Remove.
12529 (parse_menu_item): Don't call where_is_internal specially for NS.
12530
12531 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12532
12533 * s/gnu-linux.h: Remove boilerplate comments.
12534
12535 * m/alpha.h (__ELF__): Consolidate conditions.
12536
12537 * m/m68k.h (linux): Use GNU_LINUX instead.
12538 Remove boilerplate comments.
12539
12540 * m/intel386.h: Undo refactoring from previous change.
12541 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12542 too, remove dead code.
12543 (linux): Use GNU_LINUX instead.
12544
12545 2008-07-16 Jason Rumney <jasonr@gnu.org>
12546
12547 * w32gui.h: Repeat 26 June changes lost by last change.
12548
12549 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12550
12551 * systty.h: Remove code for Aix on 386, unsupported platform.
12552
12553 * s/ms-w32.h: Remove boilerplate comments.
12554 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12555
12556 * s/gnu-linux.h (TERM): Remove support.
12557 (HAVE_SYSVIPC): Remove, unused.
12558 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12559 for this system.
12560
12561 * process.c: Remove support for IRIS, unused.
12562 Remove support for TERM, not relevant anymore.
12563
12564 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12565 used with the definition.
12566
12567 * s/aix4-2.h (static): Do not undef.
12568
12569 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12570 only used on Aix.
12571 (HAVE_SYSVIPC): Remove, unused.
12572
12573 * m/hp800.h (CANNOT_DUMP): Do not undef.
12574
12575 * m/alpha.h: Fix comment.
12576
12577 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12578 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12579 used by this configuration.
12580 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12581 * unexec.c: Remove code depending on HPUX and
12582 USG_SHARED_LIBRARIES, not used with this file. Remove code
12583 depending on IRIS, unused. Remove if 0-ed code.
12584
12585 * s/template.h: Remove comments about static.
12586
12587 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12588 Remove if 0-ed code.
12589 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12590 were the same as the default.
12591 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12592 Remove boilerplate comments.
12593 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12594 (HAVE_SYSVIPC): Remove, unused.
12595 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12596
12597 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12598 Remove boilerplate comments.
12599 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12600 Remove boilerplate comments.
12601 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12602 Remove boilerplate comments.
12603 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12604
12605 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12606 USG systems which do not use DATA_SEG_BITS.
12607 Refactor code. Remove boilerplate comments.
12608
12609 * m/ibms390.h:
12610 * m/m68k.h:
12611 * s/bsd-common.h:
12612 * s/cygwin.h:
12613 * s/darwin.h:
12614 * s/freebsd.h:
12615 * s/gnu.h:
12616 * s/msdos.h: Remove boilerplate comments.
12617
12618 * m/iris4d.h: Remove boilerplate comments and code for systems that
12619 do not use this file.
12620 (IRIS_4D): Remove, unused.
12621
12622 * m/mips.h: Remove boilerplate comments and code for systems that
12623 do not use this file.
12624 (SIGN_EXTEND_CHAR):
12625 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12626 * unexmips.c: Remove file, unused.
12627
12628 * editfns.c (Fuser_full_name): Replace the only use of
12629 USER_FULL_NAME with its value.
12630 * config.in: Regenerate.
12631
12632 2008-07-16 David Reitter <david.reitter@gmail.com>
12633
12634 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12635 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12636
12637 2008-07-16 Glenn Morris <rgm@gnu.org>
12638
12639 * emacs.c (system-type): Doc fix.
12640
12641 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12642
12643 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12644 If the cache doesn't work, let's fix it, rather than work around it.
12645
12646 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12647
12648 * Makefile.in: Correct additions for nsfont.o in last commit.
12649 * nsfont.m: New file (forgot last commit).
12650
12651 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12652
12653 * callproc.c (set_initial_environment): Initialize
12654 Vprocess_environment under CANNOT_DUMP (fixes crash when
12655 batch-compiling for bootstrap).
12656
12657 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12658 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12659
12660 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12661 CANNOT_DUMP case -- fix crash due to different init order.
12662
12663 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12664
12665 Changes and additions for NeXTstep windowing system (Cocoa and
12666 GNUstep) support.
12667
12668 * Makefile.in:
12669 * config.in: Support defines and build commands for NS port.
12670 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12671 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12672 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12673 windowing.
12674 (struct face): Add synth_ital field.
12675 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12676 (init_display): Initialize Vinitial_window_system to "ns" when so
12677 compiled.
12678 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12679 (display_arg): Use under NS.
12680 (main): Under NS, allocate autorelease pool and handle command line
12681 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12682 (standard_args): Add NS-specific args.
12683 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12684 * font.c (DEFAULT_ENCODING): New variable.
12685 (font_find_for_lface): Use it.
12686 (syms_of_font): Load syms_of_nsfont under NS.
12687 * font.h: Declare nsfont_driver when compiled under NS.
12688 * fontset.c: When compiling under NS, include nsterm.h.
12689 (fontset_from_font): Autoconstruct fontset under NS.
12690 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12691 symbol, document and use it.
12692 (do_switch_frame): When for_deletion under Cocoa, add
12693 Fraise_frame(Qnil).
12694 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12695 (x_get_arg): Allow "yes" and "no" as boolean values.
12696 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12697 Qright under Cocoa.
12698 (focus-follows-mouse): Default to 0 under NS.
12699 * frame.h (enum output_method): Add output_ns.
12700 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12701 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12702 (FRAME_WINDOW_P): NS-specific definition.
12703 * fringe.c (max_used_fringe_bitmap): Make public.
12704 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12705 (getloadavg): Use NeXT code under descendant OS's.
12706 * image.c (includes and header section, x_create_bitmap_from_data)
12707 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12708 (image_background_transparent, x_clear_image_1)
12709 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12710 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12711 (x_to_xcolors, x_from_xcolors, x_disable_image)
12712 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12713 other GUIs, including XPM support using code originally written for
12714 Carbon GUI.
12715 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12716 using NS API.
12717 (image_ascent): Use font metrics macros instead of direct struct field
12718 access.
12719 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12720 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12721 Also, handle NS as GTK for menu bar purposes.
12722 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12723 toolkit where they differ.
12724 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12725 use cachelist, still needed under NS.
12726 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12727 (struct widget_value): Define it here for menu.c.
12728 * keymap.c (includes): Include modifier internals.
12729 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12730 NS.
12731 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12732 support for preferring sequences using certain modifiers, specified by
12733 the FIRSTONLY argument.
12734 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12735 under NS GNUstep implementation.
12736 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12737 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12738 * menu.c: Include nsterm.h under NS.
12739 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12740 (free_menubar_widget_tree_value, update_submenu_strings)
12741 (find_and_call_menu_selection): Treat NS as X and NT.
12742 (find_and_return_menu_selection): New function, used for popup menus.
12743 * nsgui.h:
12744 * nsterm.h:
12745 * nsfns.m:
12746 * nsimage.m:
12747 * nsmenu.m:
12748 * nsselect.m:
12749 * nsterm.m: New files.
12750 * process.c (wait_reading_process_output): Under NS, call ns_select()
12751 instead of plain select().
12752 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12753 beginning of buffer.
12754 * sysselect.h (init_process): Rename when compiling under Cocoa to
12755 avoid name conflict.
12756 * termhooks.h (display_info): Add ns_display_info to union.
12757 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12758 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12759 COCOA environment.
12760 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12761 unexec() signature. (Note, this will dump, but the resulting file
12762 crashes; unexosx is used instead; keeping around for reference and
12763 possible aid in getting dump working under GNUstep.)
12764 * w32gui.h (button_type, widget_value): Remove definitions (now in
12765 keyboard.h).
12766 * window.c: Include nsterm.h when compiling under NS.
12767 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12768 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12769 other GUI windowing systems.
12770 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12771 GTK.
12772 (x_consider_frame_title): Under NS, set icon type and frame
12773 modified-state indicator; use ns_set_name_as_filename() when using
12774 formatted title.
12775 (update_window_cursor): Make public when compiling under NS.
12776 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12777 (hourglass_atimer, Vhourglass_delay
12778 * xfaces.c (header section, init_frame_faces, clear_font_table)
12779 (defined_color, unload_color, x_face_list_fonts)
12780 (prepare_face_for_display): Add NS support parallel to other GUIs.
12781 Emulate GCs like other non-X GUIs.
12782 (split_font_name): Don't lowercase font name under NS.
12783 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12784 under NS.
12785 * s/darwin.h: Add support for compilation under NS.
12786
12787 2008-07-15 Jason Rumney <jasonr@gnu.org>
12788
12789 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12790 (w32_show_hourglass): Rename from show_hourglass.
12791 (w32_hide_hourglass): Rename from hide_hourglass.
12792 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12793 (Vhourglass_delay): Declare extern.
12794 (hourglass_started): Remove.
12795
12796 * xdisp.c (Vhourglass_delay): Remove static.
12797 (hourglass_started, start_hourglass, cancel_hourglass):
12798 Don't include these versions on WINDOWSNT.
12799
12800 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12801
12802 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12803 variables (formerly in xfns.c).
12804 (show_hourglass, hide_hourglass): New prototypes (same).
12805 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12806 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12807 in xfns.c).
12808 (syms_of_xdisp): Declare/initialize display-hourglass,
12809 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12810 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12811 formerly in xfns.c.
12812 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12813 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12814 (start_hourglass, cancel_hourglass): Remove.
12815 (show_hourglass, hide_hourglass): Remove prototypes and static
12816 modifiers.
12817 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12818 hourglass_atimer, hourglass_shown_p declaration/initialization.
12819 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12820 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12821 (start_hourglass, cancel_hourglass): Remove.
12822 (show_hourglass, hide_hourglass): Remove prototypes and static
12823 modifiers.
12824 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12825 hourglass_atimer, hourglass_shown_p declaration/initialization.
12826 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12827 (DEFAULT_HOURGLASS_DELAY): Remove.
12828 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12829 hourglass_shown_p declaration/initialization.
12830
12831 2008-07-14 Jason Rumney <jasonr@gnu.org>
12832
12833 * w32fns.c (w32_get_arg): Remove wrapper function.
12834 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12835 directly.
12836 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12837
12838 2008-07-14 Kenichi Handa <handa@m17n.org>
12839
12840 * xfont.c (xfont_open): Add workaround for X's bug.
12841
12842 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12843
12844 * fontset.c: Include <stdio.h> unconditionally.
12845
12846 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
12847
12848 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12849 for filtering.
12850
12851 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12852
12853 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12854
12855 * m/macppc.h:
12856 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12857
12858 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
12859 (SPECIAL_EMACS_INT):
12860 * m/ia64.h (SPECIAL_EMACS_INT):
12861 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12862 * s/gnu.h (NLIST_STRUCT):
12863 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12864 * s/gnu-linux.h (LINUX):
12865 * s/msdos.h (HAVE_FACES):
12866 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12867
12868 * systty.h:
12869 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12870 anymore.
12871
12872 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12873
12874 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12875 always defined as int.
12876
12877 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12878 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12879 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12880 * s/freebsd.h (HAVE_WAIT_HEADER):
12881 * s/bsd-common.h (HAVE_UNION_WAIT):
12882 * s/aix4-2.h (HAVE_WAIT_HEADER):
12883 * m/mips.h (HAVE_UNION_WAIT):
12884 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12885 (COFF, static): Do not define, they are undefined later in the file.
12886
12887 * process.c (update_status): Don't use a union.
12888 (status_convert):
12889 (sigchld_handler): Use int instead of WAITTYPE.
12890
12891 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
12892
12893 * indent.c (Fvertical_motion): Restore hscroll before moving to
12894 goal column.
12895
12896 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12897
12898 * lisp.h: Remove left over code.
12899
12900 2008-07-11 Andreas Schwab <schwab@suse.de>
12901
12902 * lisp.h: Fix logic in last change.
12903
12904 * menu.h: New file.
12905 * menu.c: Include it.
12906 * xmenu.c: Likewise.
12907 * Makefile.in: Update dependencies.
12908
12909 2008-07-11 Kenichi Handa <handa@m17n.org>
12910
12911 * fontset.c (fontset_from_font): Cancel the previous change.
12912
12913 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12914
12915 * lisp.h:
12916 * w32heap.c:
12917 * emacs.c:
12918 * alloc.c: Replace all references of NO_UNION_TYPE with
12919 USE_LISP_UNION_TYPE.
12920
12921 * m/xtensa.h (NO_UNION_TYPE):
12922 * m/vax.h (NO_UNION_TYPE):
12923 * m/template.h (NO_UNION_TYPE):
12924 * m/sparc.h (NO_UNION_TYPE):
12925 * m/mips.h (NO_UNION_TYPE):
12926 * m/macppc.h (NO_UNION_TYPE):
12927 * m/m68k.h (NO_UNION_TYPE):
12928 * m/iris4d.h (NO_UNION_TYPE):
12929 * m/intel386.h (NO_UNION_TYPE):
12930 * m/ibms390x.h (NO_UNION_TYPE):
12931 * m/ibms390.h (NO_UNION_TYPE):
12932 * m/ibmrs6000.h (NO_UNION_TYPE):
12933 * m/ia64.h (NO_UNION_TYPE):
12934 * m/hp800.h (NO_UNION_TYPE):
12935 * m/arm.h (NO_UNION_TYPE):
12936 * m/amdx86-64.h (NO_UNION_TYPE):
12937 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12938 defining it the same.
12939
12940 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
12941
12942 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12943
12944 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12945
12946 * fileio.c:
12947 * sysdep.c:
12948 * systty.h:
12949 * m/ibmrs6000.h:
12950 * m/iris4d.h:
12951 * s/aix4-2.h:
12952 * s/freebsd.h:
12953 * s/gnu-linux.h:
12954 * s/hpux10-20.h:
12955 * s/hpux11.h:
12956 * s/netbsd.h:
12957 * s/sol2-3.h:
12958 * s/sol2-4.h:
12959 * s/sol2.h:
12960 * s/usg5-4.h:
12961 * s/vms.h: Remove references to unused variables.
12962
12963 2008-07-10 Andreas Schwab <schwab@suse.de>
12964
12965 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12966 pattern before matching the generic family.
12967
12968 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12969
12970 * unexec.c:
12971 * s/vms.h:
12972 * s/usg5-4-2.h:
12973 * s/sol2-5.h:
12974 * s/freebsd.h:
12975 * s/darwin.h: Remove dead code.
12976
12977 * m/template.h:
12978 * m/sparc.h:
12979 * m/mips.h:
12980 * m/m68k.h:
12981 * m/iris4d.h:
12982 * m/intel386.h:
12983 * m/ibms390x.h:
12984 * m/ibms390.h:
12985 * m/ia64.h:
12986 * m/hp800.h:
12987 * m/arm.h:
12988 * m/amdx86-64.h: Remove dead code and references to unused
12989 and compiler defined symbols.
12990
12991 * unexmips.c:
12992 * unexelf.c: Remove references to desupported systems.
12993
12994 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12995
12996 * m/powermac.h: Remove boilerplate comments.
12997 (NO_REMAP): Remove unused definition.
12998
12999 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13000 define them.
13001
13002 2008-07-10 Kenichi Handa <handa@m17n.org>
13003
13004 * xfont.c (xfont_open): Log the reason of failure.
13005
13006 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13007
13008 * fontset.c (fontset_get_font_group):
13009 * font.c (font_check_otf): Specify argument types.
13010
13011 2008-07-09 Kenichi Handa <handa@m17n.org>
13012
13013 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13014 non-ASCII char is found.
13015
13016 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13017 (reorder_font_vector): Change the arg preferred_family to font.
13018 Prefer the spec matching with font.
13019 (fontset_get_font_group): New function.
13020 (fontset_find_font): Change the format of an element of a realized
13021 fontset. Use fontset_get_font_group.
13022 (fontset_font): Try the current fontset, the default fontset, the
13023 fallbacks of the current fontset, and the fallbacks of the default
13024 fontset in this order.
13025 (face_for_char): Delete the shortcut to use the current font.
13026 (fontset_from_font): Don't set fonts for Latin in the fontset.
13027
13028 * font.h (font_make_object, font_match_p): Adjust prototypes.
13029
13030 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13031
13032 * font.c (font_make_object): New arg entity and pixelsize.
13033 (font_check_otf_features, font_check_otf): New functions.
13034 (font_match_p): Check :lang, :script, and :otf properties.
13035
13036 * xfont.c (xfont_open): Adjust it for the change of
13037 font_make_object.
13038 (xfont_text_extents): Fix initial setting of metrics.
13039
13040 * ftfont.c (struct ftfont_info): New member index, delete member
13041 fc_charset_idx. Make the member order compatible with struct
13042 xftfont_info.
13043 (fc_charset_table): Change charset names to registry names.
13044 (ftfont_pattern_entity): Delete the args registry and
13045 fc_charset_idx. Change the value of :font-entity property
13046 to (FONTNAME . INDEX). Always set :registry property to
13047 `iso10646-1'.
13048 (struct ftfont_cache_data): New struct.
13049 (ftfont_lookup_cache): New arg for_face.
13050 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13051 (ftfont_driver): Set the member otf_capability.
13052 (ftfont_get_charset): Adjust it for the change of
13053 fc_charset_table.
13054 (OTF_TAG_SYM): New macro.
13055 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13056 for the change of fc_charset_table.
13057 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13058 ftfont_pattern_entity. Add FC_INDEX to objset.
13059 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13060 and ftfont_pattern_entity.
13061 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13062 font_make_object, struct ftfont_info.
13063 (ftfont_has_char): Use ftfont_get_fc_charset.
13064 (ftfont_otf_features, ftfont_otf_capability): New functions.
13065 (ftfont_shape): Use ftfont_get_otf.
13066 (ftfont_text_extents): Fix initial setting of metrics.
13067
13068 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13069 member order compatible with struct ftfont_info.
13070 (xftfont_open): Add FC_CHARSET to the pattern. Set
13071 xftfont_info->ft_size. Don't unlock the face. Check BDF
13072 properties if appropriate.
13073 (xftfont_close): Unlock the face.
13074 (xftfont_anchor_point, xftfont_shape): Deleted.
13075 (syms_of_xftfont): Don't set members anchor_point and shape of
13076 xftfont_driver.
13077
13078 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13079 font_make_object.
13080
13081 * w32font.c (w32font_open): Adjust it for the change of
13082 font_make_object.
13083 (w32font_open_internal): Don't set properties of font_object here.
13084
13085 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
13086
13087 * macfns.c (x_create_tip_frame):
13088 * w32fns.c (x_create_tip_frame):
13089 * xfns.c (x_create_tip_frame): Pass parameter argument to
13090 face-set-after-frame-default.
13091
13092 * xfaces.c (Finternal_merge_in_global_face): Save merged
13093 attributes for the default face back into the face vector.
13094
13095 2008-07-08 Andreas Schwab <schwab@suse.de>
13096
13097 * fontset.h: Declare fontset_from_font. Don't declare
13098 new_fontset_from_font and fontset_from_font_name.
13099 * xterm.c: Include "fontset.h".
13100 * Makefile.in (xterm.o): Update dependencies.
13101
13102 2008-07-08 Glenn Morris <rgm@gnu.org>
13103
13104 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13105 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13106
13107 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
13108
13109 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13110 (x_set_frame_parameters): Don't bind it.
13111
13112 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
13113
13114 * w32fns.c (map_w32_filename): Declare extern.
13115
13116 2008-07-07 Jason Rumney <jasonr@gnu.org>
13117
13118 * w32term.c (WS_EX_LAYERED): Define if not already.
13119
13120 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
13121
13122 * xfaces.c (set_font_frame_param): Don't try to set the font
13123 parameter if it is still unspecified in the lface.
13124
13125 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13126
13127 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13128 face if it didn't already exist.
13129
13130 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13131
13132 2008-07-05 Andreas Schwab <schwab@suse.de>
13133
13134 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13135
13136 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
13137
13138 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13139 word-wrapping.
13140 (IT_DISPLAYING_WHITESPACE): New macro.
13141 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13142 when word-wrapping. Simplify word-wrapping logic. Use correct
13143 pixel positions when saving copies of the iterator.
13144 (display_line): Use proper wrap point if the last character on a
13145 line was preceded by whitespace.
13146
13147 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13150
13151 2008-07-04 Kenichi Handa <handa@m17n.org>
13152
13153 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13154
13155 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13156
13157 2008-07-02 Jason Rumney <jasonr@gnu.org>
13158
13159 * xfns.c (syms_of_xfns): Only define x-select-font when both
13160 HAVE_FREETYPE and USE_GTK.
13161
13162 * xdisp.c (next_element_from_display_vector): Move assignment out
13163 of if statement.
13164
13165 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13166
13167 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13168
13169 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13170 (syms_of_fileio): Initialize and export them.
13171 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13172
13173 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13174 (Fsystem_move_file_to_trash): New function.
13175 (syms_of_w32fns): Export it to lisp.
13176
13177 2008-07-01 Jason Rumney <jasonr@gnu.org>
13178
13179 * w32font.c (w32font_text_extents): Don't count overhang as part
13180 of width.
13181
13182 2008-06-30 Miles Bader <miles@gnu.org>
13183
13184 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13185 Add `avoid_cursor_p' field.
13186
13187 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13188 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13189 (append_glyph, append_composite_glyph, produce_image_glyph)
13190 (append_stretch_glyph): Initialize avoid_cursor_p.
13191 (get_it_property): Rename from `get_line_height_property'.
13192 (x_produce_glyphs): Use get_it_property.
13193 (handle_line_prefix, push_display_prop): New functions.
13194 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13195 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13196 New variables.
13197 (syms_of_xdisp): Initialize them.
13198
13199 2008-06-30 Kenichi Handa <handa@m17n.org>
13200
13201 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13202 XftDefaultSubstitute (they are called in XftFontMatch).
13203 (xftfont_open): Fix args to ftfont_font_format.
13204
13205 * ftfont.c (fc_charset_table): New member lang.
13206 (ftfont_resolve_generic_family): New arg pattern.
13207 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
13208 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13209 (ftfont_open): Fix args to ftfont_font_format.
13210 (ftfont_font_format): New arg filename.
13211
13212 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
13213
13214 * xfaces.c (Finternal_merge_in_global_face): If default face was
13215 modified, realize it again. Update the font face attribute.
13216
13217 2008-06-29 Jason Rumney <jasonr@gnu.org>
13218
13219 * w32term.c (x_set_frame_alpha): Fix logic.
13220
13221 2008-06-29 Kenichi Handa <handa@m17n.org>
13222
13223 * fontset.c (Finternal_char_font): Return font-object instead of
13224 font-name.
13225
13226 * composite.c (get_composition_id): Fix the width calculation for TAB.
13227
13228 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13229
13230 * indent.c (Fvertical_motion): Properly handle float column arg.
13231
13232 2008-06-28 Jason Rumney <jasonr@gnu.org>
13233
13234 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13235 (pfnSetLayeredWindowAttributes): New function pointer.
13236 (w32_initialize): Initialize it when supported.
13237 (x_set_frame_alpha): New function.
13238
13239 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13240 (w32_frame_parm_handlers): Set alpha handler.
13241
13242 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13243
13244 2008-06-27 Jason Rumney <jasonr@gnu.org>
13245
13246 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13247 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13248 (w32_to_x_charset, x_to_w32_charset)
13249 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13250 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13251 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13252 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13253 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13254 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13255 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13256 (Qw32_charset_unicode): Remove.
13257 (syms_of_w32fns): Update for above changes.
13258
13259 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13260 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13261 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13262 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13263 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13264 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13265 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13266 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13267 (syms_of_w32font): Update for above changes.
13268
13269 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13270
13271 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13272 removed #if.
13273 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13274
13275 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13276 Eli Zaretskii <eliz@gnu.org>
13277
13278 * makefile.w32-in (LOCAL_FLAGS):
13279 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13280
13281 * sysdep.c (_spawnlp, _getpid):
13282 Declare with explicit _cdecl instead of _CRTAPI1.
13283
13284 * editfns.c (Fget_internal_run_time):
13285 Check for WINDOWSNT with #ifdef, not #if.
13286
13287 2008-06-26 Jason Rumney <jasonr@gnu.org>
13288
13289 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13290
13291 * w32term.c (x_draw_glyph_string_foreground)
13292 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13293 Use FONT_HANDLE macro.
13294 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13295
13296 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13297 (uniscribe_encode_char): Use FONT_HANDLE macro.
13298
13299 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13300 (w32font_text_extents): Use precast w32_font.
13301 (w32font_close): Free cached metrics.
13302 (w32font_open_internal): Allocate space for name on stack.
13303
13304 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
13305
13306 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13307
13308 2008-06-26 Jason Rumney <jasonr@gnu.org>
13309
13310 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13311 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13312
13313 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
13314
13315 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13316
13317 2008-06-26 Jason Rumney <jasonr@gnu.org>
13318
13319 * w32bdf.c, w32bdf.h: Remove obsolete files.
13320
13321 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13322
13323 * w32gui.h: Don't include w32bdf.h.
13324 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13325 Remove obsolete font support.
13326
13327 * w32font.h (struct w32font_info): Remove compat_w32_font.
13328 Add hfont member.
13329 (FONT_COMPAT): Remove obsolete macro.
13330
13331 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13332 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13333 (w32font_open_internal): Remove compat code. Set new hfont member.
13334 (Fx_select_font): Use new hfont member.
13335
13336 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13337 (uniscribe_encode_char): Use new hfont member.
13338
13339 * w32term.c (x_draw_glyph_string_foreground)
13340 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13341 (x_draw_glyph_string): Use metrics in w32font_info.
13342
13343 2008-06-26 Kenichi Handa <handa@m17n.org>
13344
13345 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13346
13347 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13348
13349 * unexnext.c:
13350 * m/ews4800.h:
13351 * m/hp9000s300.h:
13352 * m/ibm370aix.h:
13353 * m/mips-siemens.h:
13354 * m/ncr386.h:
13355 * m/next.h:
13356 * m/pmax.h:
13357 * m/powerpcle.h:
13358 * m/tandem-s2.h:
13359 * s/386bsd.h:
13360 * s/bsd386.h:
13361 * s/bsd4-1.h:
13362 * s/bsd4-2.h:
13363 * s/bsdos2-1.h:
13364 * s/bsdos2.h:
13365 * s/bsdos3.h:
13366 * s/bsdos4.h:
13367 * s/nextstep.h:
13368 * s/ultrix4-3.h:
13369 * s/usg5-0.h:
13370 * s/usg5-2-2.h:
13371 * s/usg5-2.h:
13372 * s/usg5-4-3.h:
13373 * s/ux4800.h:
13374 * s/uxpds.h:
13375 * s/uxpv.h: Remove support for obsolete systems.
13376 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
13377 Remove, insert contents in s/hpux10-20.h.
13378 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13379 Remove, insert contents in s/aix4-2.h.
13380 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13381 * s/bsd4-3.h: Rename to ...
13382 * s/bsd-common.h: ... this.
13383 * data.c:
13384 * doc.c:
13385 * ecrt0.c:
13386 * emacs.c:
13387 * fileio.c:
13388 * floatfns.c:
13389 * keyboard.c:
13390 * mem-limits.h:
13391 * print.c:
13392 * process.c:
13393 * sysdep.c:
13394 * syssignal.h:
13395 * systty.h:
13396 * syswait.h:
13397 * term.c:
13398 * unexec.c:
13399 * unexelf.c:
13400 * unexhp9k800.c:
13401 * m/hp800.h:
13402 * m/ibmrs6000.h:
13403 * m/mips.h:
13404 * m/vax.h:
13405 * s/darwin.h:
13406 * s/freebsd.h:
13407 * s/gnu.h:
13408 * s/ms-w32.h:
13409 * s/msdos.h:
13410 * s/netbsd.h:
13411 * s/template.h: Remove references to obsolete variables.
13412
13413 * Makefile.in: Add dependencies for all unexec files.
13414 (admindir): Remove unused variable.
13415 (UNEXEC_SRC): Remove references.
13416
13417 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
13418
13419 * xfns.c (x_default_font_parameter): If Xft is available, first
13420 try Monospace-12 for the default font.
13421
13422 2008-06-25 Jason Rumney <jasonr@gnu.org>
13423
13424 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13425
13426 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13427
13428 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13429
13430 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13431
13432 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
13433
13434 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13435 <scroll-conservatively>: Fix typo in docstring.
13436
13437 * xselect.c (Fx_send_client_event): Doc fix.
13438
13439 2008-06-25 Kenichi Handa <handa@m17n.org>
13440
13441 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13442
13443 * font.c (font_parse_fcname): Remove unused variables.
13444 (font_sort_entites): Delete the arg SPEC. Caller changed.
13445 Fix for the case of ! best_only.
13446 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13447
13448 * lisp.h (Fstring_to_unibyte): EXFUN it.
13449
13450 * character.h (str_to_unibyte): Extern it.
13451
13452 * character.c (str_to_unibyte): New function.
13453
13454 * fns.c (Fstring_to_unibyte): New function.
13455 (syms_of_fns): Defsubr it.
13456
13457 2008-06-24 Kenichi Handa <handa@m17n.org>
13458
13459 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13460 DPI too.
13461 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13462
13463 2008-06-24 Andreas Schwab <schwab@suse.de>
13464
13465 * Makefile.in (${lispsource}loaddefs.el): Rename from
13466 ../lisp/loaddefs.el.
13467 (bootstrap-clean): Do what distclean does but don't remove
13468 Makefile.
13469 (distclean): Depend on bootstrap-clean and remove Makefile.
13470
13471 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * buffer.h (struct buffer): New member word_wrap.
13474
13475 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13476 word-wrap.
13477 (init_buffer_once): Initialize them.
13478
13479 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13480 line_wrap enum possessing three possible values.
13481
13482 * termopts.h: Replace truncate_partial_width_windows with
13483 Vtruncate_partial_width_windows.
13484
13485 * dispnew.c (direct_output_for_insert): Avoid direct output when
13486 inserting a space with word wrap on.
13487
13488 * indent.c (compute_motion): Obey integer values of
13489 truncate-partial-width-windows.
13490
13491 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13492 replacing truncate_partial_width_windows.
13493 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13494 truncate only if the window width is below that integer.
13495 (start_display, resize_mini_window, produce_stretch_glyph)
13496 (display_string, move_it_in_display_line_to): Use line_wrap.
13497 (back_to_previous_visible_line_start, reseat_1): Reset
13498 string_from_display_prop_p.
13499 (display_line): Extend default face to end of line when wrapping.
13500
13501 2008-06-24 Kim F. Storm <storm@cua.dk>
13502
13503 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13504 to wrap continued lines at word boundaries.
13505
13506 2008-06-24 Jason Rumney <jasonr@gnu.org>
13507
13508 * font.c (Ffont_face_attributes): Multiply pixel size before point
13509 conversion to avoid multiplying rounding error.
13510
13511 2008-06-23 Jason Rumney <jasonr@gnu.org>
13512
13513 * w32term.c (x_draw_glyph_string_background)
13514 (x_draw_glyph_string): Remove old bdf font code.
13515
13516 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13517
13518 2008-06-22 Kenichi Handa <handa@m17n.org>
13519
13520 * font.c (font_find_for_lface): Try the adstyle specified in
13521 the property of LFACE_FONT of LFACE (if any).
13522
13523 2008-06-21 Seiji Zenitani <zenitani@mac.com>
13524 Ryo Yoshitake <ryo@shiftmode.net>
13525
13526 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13527
13528 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13529
13530 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13531 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13532 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13533 (witness-emacs): Remove.
13534 (lisp, shortlisp): Move loaddefs.el earlier.
13535 (mostlyclean): Forget about witness-emacs.
13536
13537 2008-06-22 Glenn Morris <rgm@gnu.org>
13538
13539 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13540 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13541
13542 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13543
13544 * Makefile.in (PRECOMP): Remove.
13545 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13546 (witness-emacs): Run `compile-first'.
13547 (.el.elc): Use the new compile-onefile target.
13548
13549 2008-06-21 Kenichi Handa <handa@m17n.org>
13550
13551 * xftfont.c (xftfont_open): Handle QCembolden only when
13552 FC_EMBOLDEN is defined.
13553
13554 2008-06-21 Andreas Schwab <schwab@suse.de>
13555
13556 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13557 (.el.elc): Likewise.
13558
13559 2008-06-21 Miles Bader <miles@gnu.org>
13560
13561 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13562 build dir, not the lisp source dir.
13563
13564 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13565
13566 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13567 (bootstrapclean): Remove.
13568 (.el.elc): New rule.
13569 (PRECOMP): New var.
13570 (../lisp/subdirs.el): Remove.
13571 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13572 (witness-emacs): New target.
13573 (mostlyclean): Remove witness-emacs as well.
13574 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13575 Add witness-emacs dependency.
13576
13577 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
13578
13579 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13580 defined by the font.
13581
13582 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13583
13584 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13585 (bootstrap-clean): New target that keeps TAGS around.
13586 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13587 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13588
13589 2008-06-20 Jason Rumney <jasonr@gnu.org>
13590
13591 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13592 Remove obsolete font code.
13593
13594 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13595 to determine language support.
13596
13597 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13598
13599 * sysdep.c (cfsetspeed): New fun extracted from the code.
13600 (cfmakeraw): Move before first use.
13601
13602 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13603
13604 * sysdep.c (cfmakeraw): Provide fallback implementation.
13605 (serial_configure): Provide fallback implementation of cfsetspeed.
13606
13607 2008-06-20 Kenichi Handa <handa@m17n.org>
13608
13609 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13610 the pattern.
13611
13612 * fontset.c (fontset_from_font): Copy font_spec before changing
13613 the elements.
13614
13615 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13616
13617 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13618
13619 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13620 for explicit `font' parameters.
13621
13622 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13623
13624 2008-06-19 Kenichi Handa <handa@m17n.org>
13625
13626 * frame.c: Include <ctype.h>.
13627 (x_set_font_backend): Allow spacing characters in the X resource
13628 for FontBackend.
13629
13630 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13631
13632 * w32fns.c, xfns.c (Qfont_param): New var.
13633 (syms_of_w32fns): Initialize it.
13634 (x_default_font_parameter): Record explicit `font' into
13635 `font-parameter'.
13636
13637 2008-06-18 Kenichi Handa <handa@m17n.org>
13638
13639 * font.c (font_parse_xlfd): Fix previous change.
13640 (font_parse_fcname): Don't use :fc-unknown-spec.
13641 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13642 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13643 (font_add_log): Prepend the driver name to the resulting fonts.
13644
13645 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13646 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13647 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13648
13649 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13650 (QCembolden): New variables.
13651 (syms_of_xftfont): DEFSYM them.
13652 (xftfont_open): Call XftFontMatch. Don't trust the result of
13653 XftTextExtents8 if the pixel_size is less than 5.
13654
13655 2008-06-18 Andreas Schwab <schwab@suse.de>
13656
13657 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13658 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13659
13660 2008-06-18 Jason Rumney <jasonr@gnu.org>
13661
13662 * w32font.c (w32font_list, w32font_match): Add logging.
13663
13664 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13665
13666 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
13667
13668 * font.c (font_parse_fcname): Store divider characters for
13669 unknown-spec list. For known key symbols, intern using correct
13670 symbol name.
13671
13672 2008-06-17 Kenichi Handa <handa@m17n.org>
13673
13674 * xfaces.c (realize_default_face): If the frame is not on window
13675 system, set the fontset of face to nil.
13676
13677 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13678
13679 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13680
13681 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13682
13683 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13684 (build_font_name_from_vector): Delete externs.
13685
13686 * xfaces.c (struct font_name): Don't declare.
13687
13688 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13689
13690 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13691
13692 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13693
13694 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13695
13696 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
13697
13698 * font.c (Ffont_spec): Fix usage in docstring.
13699 (Ffont_face_attributes): Doc fix.
13700
13701 2008-06-16 Andreas Schwab <schwab@suse.de>
13702
13703 * font.c (Ffont_face_attributes): Fix definition.
13704
13705 2008-06-16 Jason Rumney <jasonr@gnu.org>
13706
13707 * font.h (font_style_symbolic_from_value): Remove.
13708
13709 * font.c (font_style_symbolic_from_value): Remove.
13710 (font_style_symbolic): Revert to pre 2008-06-13 version.
13711
13712 * w32font.c (w32_to_fc_weight): New function.
13713 (w32font_full_name, logfont_to_fcname): Use it.
13714
13715 2008-06-16 Kenichi Handa <handa@m17n.org>
13716
13717 * font.c (font_check_object): Delete it.
13718 (font_clear_cache): Check if a font-object is alive.
13719 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13720 font-object to nil.
13721 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13722 (font_at): Don't call font_check_object.
13723 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13724
13725 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13726
13727 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13728
13729 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
13730
13731 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13732
13733 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
13734
13735 * font.c (font_parse_fcname): Only one decimal point.
13736 (font_unparse_fcname): Handle data in family and foundry indices
13737 as symbols, not strings.
13738 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13739
13740 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13741
13742 * font.h (font_unparse_gtkname): Add prototype.
13743
13744 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13745
13746 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13747
13748 2008-06-15 Andreas Schwab <schwab@suse.de>
13749
13750 * font.c (font_update_drivers): Fix crash when no drivers match.
13751
13752 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13753
13754 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13755 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13756
13757 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13758
13759 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13760
13761 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13762
13763 * process.c (Fserial_process_configure, Fprocess_send_eof):
13764 Use EQ to compare Lisp_Objects.
13765
13766 2008-06-13 Jason Rumney <jasonr@gnu.org>
13767
13768 * w32fns.c (Fw32_select_font): Remove old font API function.
13769
13770 * w32font.c (logfont_to_fcname): New function.
13771 (Fx_select_font): New font dialog function compatible with
13772 GTK/fontconfig version.
13773
13774 * font.c (font_style_symbolic_from_value): New function.
13775 (font_style_symbolic): Use it.
13776
13777 * font.h (font_style_symbolic_from_value): Declare new function.
13778
13779 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
13780
13781 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13782 <font-width-table>: Fix typos in docstrings.
13783
13784 2008-06-13 Daniel Engeler <engeler@gmail.com>
13785
13786 These changes add serial port access.
13787 * process.c: Add HAVE_SERIAL.
13788 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13789 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13790 (list_processes_1, select_wrapper, Fstop_process)
13791 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13792 (status_notify): Modify to handle serial processes.
13793 [HAVE_SERIAL] (Fserial_process_configure)
13794 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13795 New functions.
13796 * process.h (struct Lisp_Process): Add `type'.
13797 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13798 New functions.
13799 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13800 serial ports.
13801 (serial_open, serial_configure): New functions.
13802 * w32.h: Add FILE_SERIAL.
13803 (struct _child_process): Add ovl_read, ovl_write.
13804
13805 2008-06-13 Kenichi Handa <handa@m17n.org>
13806
13807 * dispextern.h (enum lface_attribute_index): New member
13808 LFACE_FOUNDRY_INDEX.
13809
13810 * font.c (font_score): Delete arg alternate_families. Check only
13811 weight, slant, width, and size. Ignore the difference of alias
13812 style symbols.
13813 (font_sort_entites): Adjust for the above change. Reflect the
13814 order of font-driver to scores.
13815 (font_list_entities): Don't check alternate_familes here.
13816 (font_clear_prop): Handle foundry.
13817 (font_update_lface): Don't parse "foundry-family" form here.
13818 Handle FONT_FOUNDRY_INDEX.
13819 (font_find_for_lface): Likewise. Handle alternate families here.
13820 If registry is nil, try iso8859-1 and ascii-0.
13821 (font_open_for_lface): Pay attention to size in ENTITY.
13822 (font_open_by_name): Simplify by calling font_load_for_lface.
13823 (free_font_driver_list): Delete it.
13824 (font_update_drivers): Preserve the order of backends.
13825 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13826 of font_score and font_sort_entites.
13827 (font_update_sort_order): Likewise.
13828
13829 * xfaces.c (LFACE_FOUNDRY): New macro.
13830 (check_lface_attrs): Check foundry.
13831 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13832 (merge_face_vectors): Check foundry.
13833 (merge_face_ref): Likewise.
13834 (Finternal_set_lisp_face_attribute): Likewise.
13835 (x_update_menu_appearance): Likewise.
13836 (Finternal_get_lisp_face_attribute): Likewise.
13837 (lface_hash): Likewise.
13838 (lface_same_font_attributes_p): Likewise.
13839 (x_supports_face_attributes_p): Likewise.
13840 (tty_supports_face_attributes_p): Likewise.
13841 (Finternal_set_alternative_font_family_alist): Intern strings.
13842 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13843 (realize_default_face): Set LFACE_FOUNDRY (lface).
13844
13845 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13846 font-driver at first.
13847
13848 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13849
13850 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13851
13852 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13853
13854 2008-06-12 Jim Meyering <meyering@redhat.com>
13855
13856 Make unexec_free handle NULL the same way free does.
13857 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13858
13859 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13860
13861 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13862 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13863 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13864 (WEAK_ALIAS): Simplify.
13865 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13866 when searching a unibyte buffer.
13867
13868 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
13869
13870 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13871
13872 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
13873
13874 * w32font.c: Include ctype.h.
13875
13876 2008-06-11 Jason Rumney <jasonr@gnu.org>
13877
13878 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13879 misreported as space.
13880 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13881 as aliases for registry iso10646-1.
13882
13883 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13884
13885 * buffer.c (clone_per_buffer_values): Skip `name'.
13886
13887 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
13888
13889 * font.c (font_parse_fcname): Fix last change; accept decimal
13890 points in font size.
13891
13892 2008-06-10 Jason Rumney <jasonr@gnu.org>
13893
13894 * w32uniscribe.c (add_opentype_font_name_to_list):
13895 Skip non unicode fonts.
13896
13897 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13898
13899 * xfns.c (Fx_font_dialog): New function.
13900
13901 * gtkutil.c (xg_dialog_response_cb): Rename from
13902 xg_file_response_callback.
13903 (pop_down_dialog): Rename from pop_down_file_dialog.
13904 (xg_get_file_name): Callers changed.
13905 (xg_get_font_name): New function.
13906
13907 * gtkutil.h (xg_get_font_name): Insert prototype.
13908
13909 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13910
13911 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13912 x_underline_minimum_display_offset.
13913 (syms_of_xdisp): Declare it here rather than in xterm.c.
13914 * dispextern.h (underline_minimum_offset): Declare it.
13915 * w32term.c (x_draw_glyph_string): Use it.
13916 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13917 (syms_of_xterm): Don't declare it any more.
13918 (x_draw_glyph_string): Adjust to the new name.
13919
13920 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
13921
13922 * xterm.c (x_underline_minimum_display_offset): New var.
13923 (x_draw_glyph_string): Use it.
13924 (syms_of_xterm): Declare it.
13925
13926 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
13927
13928 * font.c (font_parse_fcname): Accept GTK-style font names too.
13929
13930 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * dired.c (file_name_completion): Don't return t if the match is exact
13933 but with different capitalization.
13934 * minibuf.c (Ftry_completion): Simplify.
13935
13936 * window.c (Vwindow_point_insertion_type): New var.
13937 (set_window_buffer): Use it.
13938 (syms_of_window): Init and export it to Lisp.
13939
13940 2008-06-10 Kenichi Handa <handa@m17n.org>
13941
13942 * font.h (font_intern_prop): Prototype adjusted.
13943
13944 * font.c (font_intern_prop): New arg force_symbol.
13945 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13946 Adjust for the change of font_intern_prop.
13947
13948 * ftfont.c (ftfont_pattern_entity):
13949 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13950 (w32_registry):
13951 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13952 the change of font_intern_prop.
13953
13954 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
13955
13956 * w32menu.c (digest_single_submenu): Declare extern.
13957
13958 2008-06-09 Jason Rumney <jasonr@gnu.org>
13959
13960 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13961
13962 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13963 (parse_single_submenu): Remove.
13964 (digest_single_submenu): Remove.
13965 (syms_of_w32menu): Don't initialise variables that have moved
13966 to menu.c.
13967 (set_frame_menubar): Sync with version in xmenu.c.
13968 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13969
13970 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13971 Make static again.
13972
13973 2008-06-09 Jason Rumney <jasonr@gnu.org>
13974
13975 Changes to w32 files related to the move of common menu code
13976 to menu.c on 2008-06-08 by Chong Yidong.
13977
13978 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13979 defs to w32gui.h.
13980 (single_keymap_panes, push_menu_item, push_menu_pane):
13981 Make globally visible.
13982
13983 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13984 (local_free, malloc_widget_value, free_widget_value)
13985 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13986 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13987 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13988 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13989 (menu_items, menu_items_allocated, menu_items_used)
13990 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13991 (init_menu_items, finish_menu_items, discard_menu_items)
13992 (grow_menu_items, push_submenu_start, push_submenu_end)
13993 (push_left_right_boundary, push_menu_pane, push_menu_item)
13994 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13995 (free_menubar_widget_tree_value, parse_single_submenu)
13996 (update_submenu_strings): Remove functions.
13997 (xmalloc_widget_value): Remove and declare extern.
13998
13999 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14000 (OBJ1): Build it.
14001
14002 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14003 (local_heap, local_alloc, local_free, malloc_widget_value)
14004 (free_widget_value): Define here.
14005
14006 2008-06-09 Kenichi Handa <handa@m17n.org>
14007
14008 * font.h (Qascii_0): Extern it.
14009
14010 * font.c (Qascii_0): New variable.
14011 (syms_of_font): DEFSYM it.
14012 (font_open_by_name): If the registry "iso8859-1" fails, try also
14013 "ascii-0".
14014
14015 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14016
14017 2008-06-08 Kenichi Handa <handa@m17n.org>
14018
14019 * .gdbinit (xfont): New command.
14020
14021 2008-06-08 Andreas Schwab <schwab@suse.de>
14022
14023 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14024 * Makefile.in (menu.o): Update dependencies.
14025
14026 * Makefile.in (obj): Always add menu.o.
14027 * emacs.c (main): Always call syms_of_menu.
14028 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14029
14030 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
14031
14032 * Makefile.in: Compile menu.c.
14033
14034 * lisp.h: Declare syms_of_menu.
14035
14036 * emacs.c (main): Call syms_of_menu.
14037
14038 * keyboard.h: Relocate platform-independent menu definitions from
14039 xmenu.c.
14040
14041 * menu.c: New file. Relocate platform-independent menu
14042 definitions from xmenu.c. Suggested by Adrian Robert.
14043
14044 * xmenu.c: Remove platform-independent menu definitions.
14045 (menu_items, menu_items_inuse, menu_items_allocated)
14046 (menu_items_used, menu_items_n_panes)
14047 (menu_items_submenu_depth): Move to keyboard.h.
14048 (init_menu_items, finish_menu_items, unuse_menu_items)
14049 (discard_menu_items, restore_menu_items, save_menu_items)
14050 (grow_menu_items, push_submenu_start, push_submenu_end)
14051 (push_left_right_boundary, push_menu_pane, push_menu_item)
14052 (keymap_panes, single_keymap_panes, single_menu_item)
14053 (list_of_panes, list_of_items, find_and_call_menu_selection)
14054 (xmalloc_widget_value, free_menubar_widget_value_tree)
14055 (parse_single_submenu, digest_single_submenu)
14056 (update_submenu_strings): Move to menu.c.
14057
14058 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14059
14060 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14061
14062 2008-06-06 Miles Bader <miles@gnu.org>
14063
14064 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14065 face, not frame default.
14066
14067 2008-06-05 Martin Rudalics <rudalics@gmx.at>
14068
14069 * window.c (pop_up_windows, pop_up_frames)
14070 (display_buffer_reuse_frames, Vpop_up_frame_function)
14071 (Vdisplay_buffer_function, Veven_window_heights)
14072 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14073 (Vspecial_display_function, Vsame_window_buffer_names)
14074 (Vsame_window_regexps, split_height_threshold)
14075 (Vsplit_window_preferred_function): Move those vars to window.el.
14076 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14077 (Fdisplay_buffer): Move those functions to window.el.
14078 (syms_of_window): Remove corresponding declarations.
14079 (display_buffer): New function.
14080 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14081 * dispnew.c (Flast_nonminibuf_frame): New function.
14082 * buffer.c (Fpop_to_buffer): Move to window.el.
14083
14084 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14085
14086 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14087
14088 2008-06-05 Kenichi Handa <handa@m17n.org>
14089
14090 * coding.c (detect_coding): Fix previous change.
14091 (detect_coding_system): Likewise.
14092
14093 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14094
14095 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14096
14097 * keymap.c (Vminibuffer_local_filename_must_match_map):
14098 Rename from Vminibuffer_local_must_match_filename_map.
14099 (syms_of_keymap):
14100 * minibuf.c (Fcompleting_read): Adjust accordingly.
14101 * commands.h: Rename declaration as well.
14102
14103 2008-06-05 Kenichi Handa <handa@m17n.org>
14104
14105 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14106 family name.
14107 (Ffont_put): Likewise.
14108
14109 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14110 current font-spec.
14111
14112 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14113 is unspecified.
14114
14115 * xfaces.c (realize_x_face): If the font-related face attributes
14116 are the same as those of default face, realize a new fontset from
14117 default->fontset.
14118 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14119
14120 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14121
14122 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14123 (move_it_in_display_line): New wrapper.
14124
14125 * window.c (window_scroll_pixel_based_preserve_x)
14126 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14127 (window_scroll_pixel_based, window_scroll_line_based):
14128 Use them to preserve column positions.
14129 (syms_of_window): Initialize them.
14130
14131 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14132 (HPOS . VPOS) pair.
14133
14134 * dispextern.h (move_it_in_display_line): Declare.
14135
14136 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
14137
14138 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14139 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14140 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14141
14142 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
14143
14144 * window.c (Fset_window_parameter): Doc fix.
14145 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14146
14147 2008-06-04 Joakim Verona <joakim@verona.se>
14148
14149 * window.h (struct window): Add new member window_parameters.
14150
14151 * window.c (Fwindow_parameters, Fwindow_parameter)
14152 (Fset_window_parameter): New defuns.
14153 (syms_of_window): Defsubr the new defuns.
14154 (make_window): Initialize window_parameters to nil.
14155
14156 2008-06-04 John Paul Wallington <jpw@pobox.com>
14157
14158 * eval.c (Fdefmacro): Doc fix.
14159
14160 2008-06-04 Kenichi Handa <handa@m17n.org>
14161
14162 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14163 Be sure to call setup_coding_system when we find a proper coding system.
14164 (detect_coding_system): Fix handling of coding->head_ascii.
14165
14166 2008-06-03 Andreas Schwab <schwab@suse.de>
14167
14168 * font.c (font_prop_validate_spacing): Fix last change.
14169
14170 2008-06-03 Kenichi Handa <handa@m17n.org>
14171
14172 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14173 (font_parse_fcname): Fix handling of unknown key.
14174
14175 * xfont.c (xfont_list): Try an alias.
14176
14177 * charset.c (char_charset): Return NULL if the arg charset_list is
14178 specified and C doesn't belong to any of them.
14179
14180 2008-06-02 Chip Coldwell <coldwell@redhat.com>
14181
14182 * font.c (font_pixel_size): Don't take cdr of an integer.
14183
14184 2008-06-02 Jim Meyering <meyering@redhat.com>
14185
14186 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14187 * alloc.c (xfree): Return right away for a NULL arg.
14188 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14189 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14190 * mac.c (create_apple_event_from_event_ref): Likewise.
14191 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14192 Likewise.
14193 * doprnt.c (doprnt1): Likewise.
14194 * frame.c (frame): Likewise.
14195 * keyboard.c (wipe_kboard): Likewise.
14196 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14197 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14198 * term.c (tty_default_color_capabilities, maybe_fatal)
14199 (delete_tty): Likewise.
14200 * w16select.c (string): Likewise.
14201 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14202 * w32bdf.c (w32_free_bdf_font): Likewise.
14203 * w32fns.c (w32_unload_font): Likewise.
14204 * w32font.c (w32font_close): Likewise.
14205 * window.c (size_window): Likewise.
14206 * xselect.c (receive_incremental_selection): Likewise.
14207 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14208 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14209 * w32.c (stat): Likewise.
14210
14211 Remove useless if-before-free tests.
14212 * editfns.c (Fset_time_zone_rule): Likewise.
14213 * lread.c (nosuffix): Likewise.
14214 * ralloc.c (get_bloc): Likewise.
14215 * regex.c (reg_free): Likewise.
14216 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14217 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14218 * xsmfns.c (smc_save_yourself_CB): Likewise.
14219
14220 2008-06-02 Kenichi Handa <handa@m17n.org>
14221
14222 * font.c (font_find_for_lface): Handle float font size.
14223 (font_open_for_lface): Likewise.
14224
14225 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14226 comparing the properties.
14227
14228 2008-06-01 Jason Rumney <jasonr@gnu.org>
14229
14230 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14231 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14232 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14233 Don't add empty script list.
14234 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14235
14236 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14237
14238 * Makefile.in (dot, dotdot): Remove, update users.
14239 ".." has been used elsewhere in the file for a long time.
14240 (LIBXT_STATIC): Remove conditional based on unused variable.
14241
14242 2008-06-01 Miles Bader <miles@gnu.org>
14243
14244 * xfaces.c (Vface_remapping_alist): New variable.
14245 (syms_of_xfaces): Initialize it.
14246 (enum named_merge_point_kind): New type.
14247 (struct named_merge_point): Add `named_merge_point_kind' field.
14248 (push_named_merge_point): Make cycle detection respect different
14249 named-merge-point kinds.
14250 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14251 Remove face-name alias resolution.
14252 (lface_from_face_name): New definition using
14253 `lface_from_face_name_no_resolve'.
14254 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14255 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14256 (get_lface_attributes): New definition that layers face-remapping on
14257 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14258 (lookup_basic_face): New function.
14259 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14260 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14261 `get_lface_attributes'.
14262 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14263 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14264 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14265
14266 * xdisp.c (init_iterator): Pass base_face_id through
14267 `lookup_basic_face' when we actually use it as a face-id.
14268 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14269 DEFAULT_FACE_ID.
14270
14271 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14272 lookup the initial face-id.
14273
14274 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14275
14276 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
14277
14278 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14279 (Fremove_text_properties): Fix typos in docstrings.
14280
14281 2008-05-31 Kenichi Handa <handa@m17n.org>
14282
14283 * font.c (font_list_entities): Fix the car part of data to be
14284 stored in the cache.
14285
14286 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14287
14288 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14289
14290 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14291 Add a `test' argument so another predicate than `equal' can be used.
14292 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14293 (map_char_table): Remove unused vars `c' and `i'.
14294 * lisp.h (Foptimize_char_table): Adjust declaration.
14295 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14296
14297 2008-05-30 Kenichi Handa <handa@m17n.org>
14298
14299 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14300 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14301 defined.
14302
14303 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14304
14305 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14306 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14307 frame-local settings for the same variable.
14308
14309 2008-05-30 Kenichi Handa <handa@m17n.org>
14310
14311 * fontset.c (Ffont_info): Move to font.c.
14312 (syms_of_fontset): Delete defsubr of Sfont_info.
14313
14314 * font.c (font_style_to_value, font_score): Delete casting of the
14315 args to xstcasecmp.
14316 (register_font_driver): Increment num_font_drivers only when
14317 registering the driver globally.
14318 (Ffont_info): Move from fontset.c. Handle a font object too.
14319 (syms_of_font): Defsubr Sfont_info.
14320
14321 2008-05-29 Kenichi Handa <handa@m17n.org>
14322
14323 * coding.h (enum define_coding_utf8_arg_index): New enum.
14324 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14325 coding_attr_utf_bom.
14326 (enum utf_bom_type): Rename from utf_16_bom_type.
14327 (struct utf_16_spec): Adjust for the above change.
14328 (struct coding_system): Add utf_8_bom in `spec' union.
14329
14330 * coding.c (CODING_UTF_8_BOM): New macro.
14331 (enum coding_category): Delete coding_category_utf_8, add
14332 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14333 coding_category_utf_8_sig.
14334 (CATEGORY_MASK_UTF_8): Delete it.
14335 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14336 (CATEGORY_MASK_UTF_8_SIG): New macros.
14337 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14338 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14339 CATEGORY_MASK_UTF_8_SIG.
14340 (CATEGORY_MASK_UTF_8): New macro.
14341 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14342 (detect_coding_utf_8): Check BOM.
14343 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14344 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14345 (encode_coding_utf_16): Likewise.
14346 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14347 (detect_coding, detect_coding_system): Handle utf-8-auto.
14348 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14349 (syms_of_coding): Fix setting up of Vcoding_category_table.
14350
14351 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14352
14353 * process.c (Faccept_process_output): If `millisec' is non-nil,
14354 `seconds' default to 0.
14355 (wait_reading_process_output): Also return non-nil if we read output
14356 from a non-running process.
14357
14358 2008-05-29 Jason Rumney <jasonr@gnu.org>
14359
14360 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14361 `raster' specified.
14362 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14363 in the uniscribe backend, but disallow any font that has no
14364 unicode subrange support.
14365
14366 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
14367
14368 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14369 Fix typos in docstrings.
14370
14371 2008-05-29 Kenichi Handa <handa@m17n.org>
14372
14373 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14374 (Fx_family_fonts): Set frame correctly.
14375
14376 2008-05-28 Jason Rumney <jasonr@gnu.org>
14377
14378 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14379
14380 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14381
14382 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14383 calling build_annotations.
14384
14385 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
14386
14387 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14388 (Fencode_coding_string):
14389 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14390 <latin-extra-code-table>: Fix typos in docstrings.
14391 (syms_of_coding) <coding-system-alist>: Doc fix.
14392 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14393
14394 2008-05-28 Kenichi Handa <handa@m17n.org>
14395
14396 * fontset.c (Ffont_info): Don't call font_close_object.
14397
14398 * font.c (font_parse_family_registry): Use Ffont_put to validate
14399 foundry and family.
14400 (font_delete_unmatched): Don't check spacing.
14401 (font_list_entities): Add spacing to the spec to list fonts.
14402
14403 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14404 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14405
14406 * coding.c (encode_coding_raw_text): Fix previous change.
14407 (encode_coding_object): When the dst_object is a buffer and is
14408 different from src_object, move gap to PT.
14409
14410 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14411
14412 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14413
14414 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14415
14416 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14417 all branches. Compute it differently.
14418
14419 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14420
14421 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
14422
14423 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14424 into "else if () ... else ...".
14425
14426 2008-05-27 Jason Rumney <jasonr@gnu.org>
14427
14428 * w32font.c (w32font_open_internal): Determine if glyph indices
14429 are likely to work here.
14430
14431 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
14432
14433 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14434 draw overlap glyphs with appropriate highlighting.
14435
14436 2008-05-27 Kenichi Handa <handa@m17n.org>
14437
14438 * xfont.c (xfont_open): Fix calculation of font->average_width.
14439
14440 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14441
14442 * casefiddle.c (casify_object): Try to guess better whether the
14443 argument is a byte or a char.
14444
14445 2008-05-26 Andreas Schwab <schwab@suse.de>
14446
14447 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14448 Always send multiples of format size.
14449
14450 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14451
14452 2008-05-26 Jason Rumney <jasonr@gnu.org>
14453
14454 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14455 (compute_metrics): Don't set failure if we just cleared the cache.
14456 (w32_weight_table): Remove unused variable.
14457 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14458 backwards compatibility.
14459
14460 2008-05-25 Kenichi Handa <handa@m17n.org>
14461
14462 * w32term.c (x_draw_glyph_string):
14463 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14464
14465 * xfaces.c: Delete unused function prototypes.
14466 (xstrlwr, font_frame): Delete them.
14467 (clear_face_cache): Delete unused variable.
14468
14469 * xftfont.c (xftfont_open): Delete unused variable.
14470 If underline_thickness is not 1, adjust underline_position.
14471
14472 * ftxfont.c (ftxfont_open): Delete unused variable.
14473
14474 * fontset.c (face_for_char): Optimize for the case of no charset
14475 property.
14476
14477 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14478 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14479 (otf_open, font_otf_capability, generate_otf_features)
14480 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14481 Comment out by surrounding "#if 0" and "#endif" for the moment.
14482 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14483 (syms_of_font): Codes for accessing above commented out.
14484
14485 2008-05-24 Eli Zaretskii <eliz@gnu.org>
14486
14487 * w32proc.c: Include dispextern.h.
14488
14489 * w32.c: Include dispextern.h.
14490
14491 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
14492
14493 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14494 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14495 Fix typos in docstrings.
14496
14497 2008-05-23 Jason Rumney <jasonr@gnu.org>
14498
14499 * xsmfns.c: Remove includes that are already included by config.h.
14500
14501 2008-05-23 Kenichi Handa <handa@m17n.org>
14502
14503 * charset.c (Qemacs, charset_emacs): New variables.
14504 (char_charset): Fix for non-Unicode characters.
14505 (syms_of_charset): Define charset_emacs.
14506
14507 * w32term.c (x_draw_glyph_string): Be sure to update
14508 s->underline_thickness and s->underline_position. Be sure to draw
14509 underline within the current line area.
14510
14511 * xterm.c (x_draw_glyph_string): Be sure to update
14512 s->underline_thickness and s->underline_position. Be sure to draw
14513 underline within the current line area.
14514
14515 * fontset.c: Delete unused variables and add casting for char *
14516 throughout the file.
14517 (fontset_font): Try the fallback fonts of the current fontset
14518 before consulting the default fontset.
14519
14520 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14521
14522 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14523
14524 2008-05-22 Jason Rumney <jasonr@gnu.org>
14525
14526 * font.c: Don't include strings.h.
14527
14528 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14529
14530 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14531 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14532 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14533 to call xstrcasecmp.
14534
14535 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14536
14537 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14538
14539 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14540
14541 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14542
14543 2008-05-22 Kenichi Handa <handa@m17n.org>
14544
14545 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14546
14547 * font.c (font_prop_validate_style): Adjust for the format
14548 change of font_style_table.
14549
14550 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14551 two args.
14552
14553 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14554 two args.
14555
14556 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14557
14558 * minibuf.c (keys_of_minibuf): Delete.
14559 * lisp.h (keys_of_minibuf): Delete.
14560 * emacs.c (main): Don't call keys_of_minibuf.
14561
14562 2008-05-22 Kenichi Handa <handa@m17n.org>
14563
14564 * ftfont.c (ftfont_resolve_generic_family): Rename from
14565 ftfont_list_generic_family. Return a single family for each
14566 generic family.
14567 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14568 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14569 Call font_add_log.
14570 (ftfont_match): Call font_add_log.
14571
14572 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14573 (FONT_DEBUG): Define it.
14574 (font_add_log): Extern it.
14575 (font_assert): Rename from xassert.
14576
14577 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14578 (xfont_list_family): Call font_add_log.
14579 (xfont_match): Likewise.
14580 (memq_no_quit): Delete.
14581
14582 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14583 call of Ffont_xlfd_name.
14584
14585 * xfaces.c (struct table_entry, slant_table, weight_table)
14586 (swidth_table): Move to font.c.
14587
14588 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14589 xassert are changed to font_assert. Delete many unused variables.
14590 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14591 New variables.
14592 (struct table_entry): Move from xfaces.c and modified.
14593 (weight_table, slant_table, width_table): Move from xfaces.c and
14594 contents adjusted for the change of struct table_entry.
14595 (font_style_to_value, font_style_symbolic): Adjust for the
14596 format change of font_style_table.
14597 (font_parse_family_registry): Don't overwrite existing foundry and
14598 family of font_spec.
14599 (font_score): Fix calculation of diff for sizes.
14600 (font_sort_entites): Call font_add_log.
14601 (font_delete_unmatched): Return a newly created list.
14602 (font_list_entities): Fix previous change. Call font_add_log.
14603 (font_matching_entity, font_open_entity, font_close_entity):
14604 Call font_add_log.
14605 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14606 (Finternal_set_font_style_table): Delete.
14607 (BUILD_STYLE_TABLE): New macro.
14608 (build_style_table): New function.
14609 (Vfont_log, font_log_env_checked): New variables.
14610 (font_add_log): New function.
14611 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14612 Declare Lisp variables "font-weight-table", "font-slant-table",
14613 "font-width-table", and "font-log". Initialize font_style_table.
14614
14615 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14616
14617 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14618
14619 2008-05-21 Seiji Zenitani <zenitani@mac.com>
14620 Ryo Yoshitake <ryo@shiftmode.net>
14621
14622 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14623 (Vframe_alpha_lower_limit): New variable.
14624 (x_set_alpha): New function.
14625
14626 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14627
14628 * xfns.c (x-create-frame, Qalpha):
14629 Initialize the frame parameter `alpha'.
14630 * xterm.c (OPAQUE, OPACITY): New.
14631 (x_set_frame_alpha): New function.
14632 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14633
14634 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14635 * w32fns.c (w32_frame_parm_handlers): Likewise.
14636
14637 2008-05-20 Jason Rumney <jasonr@gnu.org>
14638
14639 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14640 truetype fonts to opentype list.
14641
14642 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
14643
14644 * fontset.c (Ffontset_info): Doc fix.
14645 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14646 <ignore-relative-composition>: Fix typos in docstrings.
14647
14648 * font.c (syms-of-font) <font-encoding-alist>:
14649 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14650 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14651 (Ffont_otf_alternates): Doc fixes.
14652
14653 2008-05-20 Kenichi Handa <handa@m17n.org>
14654
14655 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14656 font.h through out the file.
14657 (FONT_DRIVERS): Rename from FONTOBJ.
14658 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14659 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14660
14661 * emacs.c (main): Call syms_of_font unconditionally.
14662
14663 * font.h (find_font_encoding): Extern it.
14664
14665 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14666 fontset.c.
14667 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
14668 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14669 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14670 only when HAVE_WINDOW_SYSTEM is defined.
14671 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14672 when HAVE_WINDOW_SYSTEM is defined.
14673
14674 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14675 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14676
14677 * xfaces.c: Include font.h unconditionally.
14678 (merge_face_ref, merge_face_vectors)
14679 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14680
14681 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14682
14683 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14684 indirect_variable.
14685 * eval.c (lisp_indirect_variable): New fun.
14686 (Fuser_variable_p): Use it.
14687
14688 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14689
14690 * lisp.h (indirect_variable):
14691 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14692 Use Lisp_Symbol pointers rather than Lisp_Object.
14693 Adjust callers.
14694 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14695 To this end, change calling-convention.
14696
14697 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14698 if some non-hidden buffers are selected by string&pred.
14699
14700 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
14701
14702 * process.c (wait_reading_process_output): Always check status
14703 when in batch mode.
14704
14705 2008-05-19 Kenichi Handa <handa@m17n.org>
14706
14707 * font.c (font_list_entities): Fix handling of cache.
14708 (font_matching_entity): Likewise.
14709
14710 * ftfont.c (cs_iso8859_1): Delete.
14711 (ft_face_cache): New variable.
14712 (struct ftfont_info): New member fc_charset_idx.
14713 (ftfont_build_basic_charsets): Delete.
14714 (fc_charset_table): New variable.
14715 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14716 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14717 Callers changed.
14718 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14719 (ftfont_spec_pattern): New argument fc_charset_idx.
14720 Check registry more rigidly. Change callers.
14721 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14722 change of :font-entity property of the font.
14723
14724 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14725 property of the font.
14726
14727 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
14728
14729 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14730 (Funencodable_char_position, Fcheck_coding_systems_region)
14731 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14732 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14733 (Ffind_operation_coding_system, Fset_coding_system_priority)
14734 (Fcoding_system_eol_type): Doc fixes.
14735
14736 2008-05-17 Glenn Morris <rgm@gnu.org>
14737
14738 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14739
14740 2008-05-16 Eli Zaretskii <eliz@gnu.org>
14741
14742 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14743 and st_gid.
14744
14745 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14746 HAVE_WINDOW_SYSTEM is not defined.
14747
14748 * xfaces.c (merge_face_ref, merge_face_vectors)
14749 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14750 HAVE_WINDOW_SYSTEM is defined.
14751 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14752
14753 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14754
14755 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14756
14757 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14758
14759 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14760
14761 2008-05-15 Kenichi Handa <handa@m17n.org>
14762
14763 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14764 preference.
14765
14766 2008-05-15 Glenn Morris <rgm@gnu.org>
14767
14768 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14769
14770 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
14771
14772 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14773 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14774
14775 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14776
14777 2008-05-15 Kenichi Handa <handa@m17n.org>
14778
14779 * ftfont.c (ftfont_list): Downcase family name to check generic
14780 families.
14781
14782 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14783 font-spec for QCfont value.
14784
14785 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14786 buffer. Check the return value of it.
14787
14788 2008-05-14 Jason Rumney <jasonr@gnu.org>
14789
14790 * w32term.c (w32_get_glyph_overhangs): Remove.
14791 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14792
14793 2008-05-14 Kenichi Handa <handa@m17n.org>
14794
14795 * font.c (font_prop_validate): Make nil a valid value.
14796 (font_clear_cache): Check if the cached vector of entities is nil
14797 or not.
14798
14799 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14800
14801 * emacs.c (main_thread): Conditionalize on
14802 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14803 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14804
14805 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14806 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14807 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14808
14809 2008-05-14 Kenichi Handa <handa@m17n.org>
14810
14811 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14812 has no corresponding coding system.
14813
14814 2008-05-14 Jason Rumney <jasonr@gnu.org>
14815
14816 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14817
14818 * w32font.h (w32font_open_internal): Update declaration.
14819
14820 * w32font.c (w32font_open_internal): Change last argument from
14821 w32font_info struct to font object. Fill in font object from
14822 font_entity. Get Outline metrics if possible. Use them to
14823 calculate underline position and thickness. Use xlfd name as name
14824 property. Don't set codepage.
14825 (w32font_open): Pass font_object to w32font_open_internal. Don't
14826 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14827 (w32font_draw): Use s->font.
14828 (clear_cached_metrics): Don't clear non-existent blocks.
14829
14830 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14831 font was not found.
14832 (x_draw_glyph_string): Use underline position and thickness from font.
14833
14834 * w32uniscribe.c (uniscribe_open): Pass font_object to
14835 w32font_open_internal.
14836
14837 2008-05-14 Kenichi Handa <handa@m17n.org>
14838
14839 These changes are to delete all legacy font-handling codes, and
14840 make Emacs use only font-backends.
14841
14842 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14843 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14844
14845 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14846
14847 * charset.h (Vcharset_non_preferred_head)
14848 (Vcurrent_iso639_language): Extern them.
14849
14850 * charset.c (Vcharset_non_preferred_head): New variable.
14851 (Vcurrent_iso639_language): New variable.
14852 (syms_of_charset): Declare it as a Lisp variable.
14853 (char_charset): Don't check non preferred charsets. As a last
14854 resort, return charset_unicode.
14855 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14856
14857 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14858 conditionals. Don't check enable_font_backend. Delete all codes
14859 used only when USE_FONT_BACKEND is not defined.
14860
14861 * dispextern.h (struct glyph_string): Change type of `font' to
14862 `struct font *'.
14863 (struct glyph_string): New member underline_position and
14864 underline_thickness.
14865 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14866 (struct face): Change type of `font' to `struct font *'. Remove
14867 members `font_name', `font_info_id'.
14868 (per_char_metric, encode_char): Delete externs.
14869 (calc_pixel_width_or_height): Adjust the prototype.
14870
14871 * emacs.c (enable_font_backend): Delete extern.
14872 (main): Don't set enable_font_backend. Don't check the command
14873 line argument "-disable-font-backend".
14874
14875 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14876 (enum font_property_index): New members FONT_DPI_INDEX,
14877 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14878 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14879 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14880 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14881 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14882 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14883 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14884 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14885 (struct font_spec, struct font_entity): New structs.
14886 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14887 (struct font): Many members from old "struct font_info" moved to
14888 here. Members font and entity deleted.
14889 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14890 the new font-related objects.
14891 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14892 (CHECK_FONT_GET_OBJECT): Likewise.
14893 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14894 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14895 (struct font_driver): New members case_sensitive anc check. Type
14896 of the member list and open changed.
14897 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14898 (font_symbolic_width, font_find_object, font_get_spec)
14899 (font_set_lface_from_name): Delete extern.
14900 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14901
14902 * font.c: Include <strings.h>.
14903 (enable_font_backend): Delete it.
14904 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14905 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14906 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14907 (null_string): Delete it.
14908 (null_vector): Make it static.
14909 (font_family_alist): Delete it.
14910 (Qnormal): Extern it.
14911 (QCextra, QClanguage): Delete it.
14912 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14913 (font_make_spec, font_make_entity, font_make_object)
14914 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14915 the string. Callers changed.
14916 (font_pixel_size): Adjusted for the format change of font-related
14917 objects.
14918 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14919 (font_style_to_value, font_style_symbolic): New function.
14920 (build_font_family_alist): Delete it.
14921 (font_registry_charsets): Use Fassoc_string instead of
14922 assq_no_quit.
14923 (font_prop_validate_symbol): Don't return null_string.
14924 (font_prop_validate_style): Adjusted for the change of
14925 style-related values in a font vector.
14926 (font_property_table): Delete entries for QClanguage and
14927 QCantialias, add entries for QCavgwidth.
14928 (get_font_prop_index): Delete the 2nd argument FROM.
14929 (font_prop_validate): Arguments changed.
14930 (font_put_extra): Adjusted for the change of font-related objects.
14931 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14932 (font_parse_fcname, font_unparse_fcname)
14933 (font_prepare_composition): Likewise.
14934 (font_parse_family_registry): Renamed from font_merge_old_spec.
14935 (otf_open): Delete the 1st arg entity.
14936 (font_otf_capability): Adjusted for the above change.
14937 (font_score): New arg alternate_families. Adjusted for the change
14938 of font-related objects.
14939 (font_sort_entites): New arg best_only.
14940 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14941 Delete them.
14942 (font_match_p): Check alternate families.
14943 (font_find_object): Delete it.
14944 (font_check_object): New function.
14945 (font_clear_cache): Adjusted for the change of font-related objects.
14946 (font_delete_unmatched): New arg.
14947 (font_list_entities): Call font_driver->list with a spec that
14948 doesn't specify style-related properties.
14949 (font_matching_entity): Arguments changed. Caller changed.
14950 (font_open_entity): Adjusted for the change of font-related objects.
14951 (font_close_object, font_has_char, font_encode_char)
14952 (font_get_name, font_get_spec): Likewise.
14953 (font_spec_from_name, font_clear_prop, font_update_lface):
14954 New functions.
14955 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14956 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14957 (font_at): Adjusted for the change of font-related objects.
14958 (font_range): New function.
14959 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14960 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14961 (Fcopy_font_spec, Fmerge_font_spec): New function.
14962 (Ffont_family_list): Renamed from list-families.
14963 (Finternal_set_font_style_table): Arguments changed.
14964 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14965 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14966 change of font-related objects.
14967 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14968
14969 * fontset.h (struct font_info): Delete it. Most members go to
14970 struct font.
14971 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14972 (enum FONT_SPEC_INDEX): Delete it.
14973 (font_info, list_fonts_func, load_font_func, query_font_func)
14974 (set_frame_fontset_func, find_ccl_program_func)
14975 (get_font_repertory_func, new_fontset_from_font_name): Delete
14976 externs.
14977 (fontset_from_font_name): Extern it.
14978 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14979 (FONT_INFO_FROM_FACE): Deleted.
14980 (face_for_font): Adjust prototype.
14981
14982 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14983 conditionals. Don't check enable_font_backend. Delete all codes
14984 used only when USE_FONT_BACKEND is not defined.
14985 (get_font_info_func, list_font_func, load_font_func)
14986 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14987 (get_font_repertory_func): Delete them.
14988 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14989 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14990 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14991 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14992 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14993 (fontset_compare_rfontdef): New function.
14994 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14995 rfont-defs by qsort. Adjusted for the change of font-group vector.
14996 (load_font_get_repertory): Deleted.
14997 (fontset_find_font): Use new macros to ref/set elements of
14998 font-def and rfont-def.
14999 (fontset_font): Fix the timing of remembering that no font for C.
15000 (free_face_fontset): Do nothing if the face has no fontset.
15001 (face_suitable_for_char_p): Use new macros to ref/set elements of
15002 rfont-def.
15003 (face_for_char): Likewise. Call face_for_char with font_object.
15004 (fs_load_font): Delete. Delete #pragma surrounding it.
15005 (fs_query_fontset): Use strcasecmp instead of strcmp.
15006 (generate_ascii_font_name): Adjusted for the format change of
15007 font-spec.
15008 (Fset_fontset_font): Likewise. Use new macros to set elements of
15009 font-def.
15010 (Fnew_fontset): Use font_unparse_xlfd to generate
15011 FONTSET_ASCII (fontset).
15012 (new_fontset_from_font_name): Deleted.
15013 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15014 a fontset is already created for the font. FIx updating of
15015 Vfontset_alias_alist.
15016 (fontset_ascii_font): Deleted.
15017 (Ffont_info): Adjusted for the format change of font-spec.
15018 (Finternal_char_font): Likewise.
15019 (Ffontset_info): Likewise.
15020 (syms_of_fontset): Don't check load_font_func.
15021
15022 * fns.c (internal_equal): Handle PREV_FONT.
15023
15024 * frame.h: Delete USE_FONT_BACKEND conditional.
15025
15026 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15027 conditionals. Don't check enable_font_backend. Delete all codes
15028 used only when USE_FONT_BACKEND is not defined.
15029 (x_set_font): Call x_new_font, not x_new_fontset2.
15030 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15031 already set for the frame.
15032
15033 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15034 a font-entity by font_make_entity. Use font_intern_prop instead
15035 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15036 font property. If a font is scalable, set avgwidth property to 0.
15037 Set font-entity property by font_put_extra.
15038 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15039 (ffont_driver): Adjusted for the change of struct font_driver.
15040 (ftfont_spec_pattern): New function.
15041 (ftfont_list): Return a list, not vector.
15042 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15043 (ftfont_list_family): Don't downcase names.
15044 (ftfont_free_entity): Deleted.
15045 (ftfont_open): Return a font-object. Adjusted for the change of
15046 struct font. Get underline_thickness and underline_position from
15047 font property. Don't update dpyinfo->smallest_font_height and
15048 dpyinfo->smallest_char_width.
15049 (ftfont_close): Don't free `struct font'.
15050 (ftfont_has_char): Adjusted for the format change of font-entity.
15051 (ftfont_encode_char, ftfont_text_extents): Likewise.
15052
15053 * ftxfont.c (ftxfont_list): Return a list, not vector.
15054 (ftxfont_open): Return a font-object. Adjusted for the change of
15055 struct font. Get underline_thickness and underline_position from
15056 font property. Don't update dpyinfo->smallest_font_height and
15057 dpyinfo->smallest_char_width.
15058 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15059 (ftxfont_draw): Adjusted for the change of struct font.
15060
15061 * image.c (image_ascent): Don't include "charset.h". Include
15062 "character.h" and "font.h".
15063
15064 * lisp.h (enum pvec_type): New member PREV_FONT.
15065 (Fassoc_string): EXFUN it.
15066
15067 * print.c: Include font.h.
15068 (print_object): Handle font-related objects.
15069
15070 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15071 conditionals. Don't check enable_font_backend. Delete all codes
15072 used only when USE_FONT_BACKEND is not defined.
15073 (handle_auto_composed_prop): Do nothing if it->f is not on a
15074 window system. Check how many following characters can be
15075 displayed by the same font.
15076 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15077 'struct font *'.
15078 (get_char_face_and_encoding): Assign the whole encoding task to
15079 the `encode-char' method of a font driver.
15080 (fill_composite_glyph_string): Adjusted for the change of `struct
15081 face' and `struct glyph_string'.
15082 (fill_glyph_string): Likewise.
15083 (get_per_char_metric): Arguments changed.
15084 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15085 and `struct glyph_string'.
15086 (produce_stretch_glyph, calc_line_height_property)
15087 (x_produce_glyphs): Likewise.
15088
15089 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15090 conditionals. Don't check enable_font_backend. Delete all codes
15091 used only when USE_FONT_BACKEND is not defined. Use
15092 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15093 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15094 (Qp): Extern them.
15095 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15096 Deleted.
15097 (struct font_name): Deleted.
15098 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15099 (compare_fonts_by_sort_order): New function.
15100 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15101 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15102 Deleted.
15103 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15104 compare_fonts_by_sort_order.
15105 (Fx_font_family_list): Call Ffont_family_list.
15106 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15107 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15108 (face_symbolic_slant, face_symbolic_swidth)
15109 (split_font_name_into_vector, build_font_name_from_vector)
15110 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15111 (font_rescale_ratio, split_font_name, build_font_name)
15112 (free_font_names, sort_fonts, x_face_list_fonts)
15113 (face_font_available_p, sorted_font_list, cmp_font_names)
15114 (font_list_1, concat_font_list, font_list, remove_duplicates):
15115 Deleted.
15116 (Fx_list_fonts): Use Ffont_list.
15117 (LFACE_AVGWIDTH): Deleted.
15118 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15119 by FONTP.
15120 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15121 (set_lface_from_font_name): Delete it.
15122 (set_lface_from_font): Renamed from
15123 set_lface_from_font_and_fontset. Caller changed. Don't set
15124 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15125 for face.
15126 (merge_face_vectors): Copy font-spec if necessary.
15127 Clear properties of the font-spec if necessary.
15128 (merge_face_ref): Clear properties of the font-spec if necessary.
15129 (Finternal_set_lisp_face_attribute): Likewise.
15130 (set_font_frame_param): Use font_load_for_lface to load a
15131 font-object, and call Fmodify_frame_parameters with it.
15132 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15133 font name by Ffont_xlfd_name.
15134 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15135 QCslant, and QCwidth.
15136 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15137 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15138 Compare fonts by EQ.
15139 (lookup_non_ascii_face): Deleted.
15140 (face_for_font): The 2nd argument changed.
15141 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15142 Check atomic font properties by case insensitive.
15143 (realize_non_ascii_face): Set face->overstrike correctly.
15144 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15145 (dump_realized_face): Get font name from
15146 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15147
15148 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15149 conditionals. Don't check enable_font_backend. Delete all codes
15150 used only when USE_FONT_BACKEND is not defined.
15151 (xic_create_xfontset): Original code deleted and renamed from
15152 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15153 (x_make_gc): Don't set GCFont in GCs.
15154 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15155 opened by "fixed".
15156 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15157 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15158 get_font_repertory_func.
15159
15160 * xfont.c: Include <stdlib.h> and "ccl.h".
15161 (struct xfont_info): New structure.
15162 (xfont_query_font): Deleted.
15163 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15164 moved from xterm.c.
15165 (xfont_driver): Adjusted for the change of struct font_driver.
15166 (compare_font_names): New function.
15167 (xfont_list_pattern): Sort font names case insensitively. Make
15168 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15169 (xfont_list): Return a list, not vector.
15170 (xfont_match): If the font doesn't have QCname property, generate
15171 a name from the other font properties.
15172 (xfont_open): Return a font-object. Adjusted for the change of
15173 struct font. Get underline_thickness and underline_position from
15174 font property. Don't update dpyinfo->smallest_font_height and
15175 dpyinfo->smallest_char_width.
15176 (xfont_close): Don't free struct font.
15177 (xfont_prepare_face): Adjusted for the change of struct font.
15178 (xfont_done_face): Deleted.
15179 (xfont_has_char): Adjusted for the change of struct font.
15180 (xfont_encode_char, xfont_draw): Likewise.
15181 (xfont_check): New function.
15182
15183 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15184 callback function.
15185 (xftfont_match): Adjusted for the format change of font-entity.
15186 (xftfont_open): Adjusted for the format change of font-entity and
15187 font-object. Adjusted for the change of struct font. Return a
15188 font-object. Don't update dpyinfo->smallest_font_height and
15189 dpyinfo->smallest_char_width.
15190 (xftfont_close): Block input while calling XftFontClose.
15191 (xftfont_prepare_face): Don't block input while calling
15192 xftfont_get_colors. Adjusted for the change of struct font.
15193 (xftfont_shape): Return value of error case fixed.
15194
15195 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15196
15197 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15198 conditionals.
15199 (FONT_WIDTH): Return (f)->max_width.
15200 (struct x_display_info): Delete member `font'.
15201 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15202 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15203 (struct x_output): Change type of `font' to `struct font *'.
15204
15205 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15206 conditionals. Don't check enable_font_backend. Delete all codes
15207 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15208 (x_per_char_metric, x_encode_char): Deleted.
15209 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15210 (x_compute_glyph_string_overhangs): Adjusted for the change of
15211 `struct face'.
15212 (x_draw_glyph_string_foreground)
15213 (x_draw_composite_glyph_string_foreground): Likewise.
15214 (x_draw_glyph_string): Likewise. Use font->underline_position and
15215 font->underline_thickness.
15216 (x_new_font): Renamed from x_new_fontset2.
15217 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15218 (x_check_font): Call `check' method of a font driver.
15219 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15220 (x_query_font, x_get_font_repertory): Deleted.
15221 (x_find_ccl_program): Renamed and moved to xfont.c.
15222 (x_redisplay_interface): Adjusted for the change of `struct
15223 redisplay_interface'.
15224
15225 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15226 conditionals. Don't check enable_font_backend. Delete all codes
15227 used only when USE_FONT_BACKEND is not defined. Surround non-used
15228 code by "#ifdef OLD_FONT" and "endif".
15229 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15230
15231 * w32font.h (struct w32font_info): New member.
15232 (FONT_COMPAT): New macro.
15233 (w32font_open_internal): Prototype adjusted.
15234
15235 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15236 OLD_FONT" and "endif".
15237
15238 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15239 conditionals. Don't check enable_font_backend. Delete all codes
15240 used only when USE_FONT_BACKEND is not defined.
15241 (w32font_open): Return a font-object. Make a font-object by
15242 font_make_object. Adjusted for the change of struct w32font_info.
15243 (w32font_close): Don't free struct font. Adjusted for the change
15244 of struct w32font_info.
15245 (w32font_encode_char, w32font_text_extents, w32font_draw):
15246 Adjusted for the change of struct w32font_info.
15247 (w32font_draw): Likewise.
15248 (w32font_list_internal): Return a list, not vector.
15249 (w32font_open_internal): Change the 4th arg to font-object.
15250 Adjusted for the change of struct w32font_info and font-object format.
15251 (add_font_name_to_list): Don't downcase names.
15252 (w32_enumfont_pattern_entity): Make a font-entity by
15253 font_make_entity. Adjusted for the format change of font-entity.
15254 Use FONT_SET_STYLE to set a style-related font property. If a
15255 font is scalable, set avgwidth property to 0. Set font-entity
15256 property by font_put_extra.
15257 (font_matches_spec): Adjusted for the format change of font-entity.
15258 (w32_weight_table, w32_decode_weight): New variables.
15259 (w32_encode_weight): New function.
15260 (fill_in_logfont): Adjusted for the format change of font-spec.
15261 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15262 weight value.
15263 (w32font_driver): Adjusted for the change of struct font_driver.
15264
15265 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15266 conditionals. Don't check enable_font_backend. Surround non-used
15267 code by "#ifdef OLD_FONT" and "endif".
15268 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15269 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15270
15271 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15272 conditionals. Don't check enable_font_backend. Delete all codes
15273 used only when USE_FONT_BACKEND is not defined. Surround non-used
15274 code by "#ifdef OLD_FONT" and "endif".
15275
15276 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15277 (uniscribe_open): Return value changed to font-object.
15278 Adjusted for the format change of font-object.
15279 (uniscribe_otf_capability): Adjusted for the change of struct font.
15280 (add_opentype_font_name_to_list): Don't downcase names.
15281 (uniscribe_font_driver): Adjusted for the change of struct
15282 font_driver.
15283
15284 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
15285
15286 * dispnew.c (update_frame_1): Check if tty output is still valid
15287 before flushing it.
15288
15289 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15290
15291 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15292 to Gtk+ menus.
15293
15294 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15295
15296 * dired.c (file_name_completion): Tweak the code so as to always do it
15297 in a single pass. Tighten the scope of some variables.
15298
15299 * dired.c (Qdefault_directory): New var.
15300 (file_name_completion): Use it instead of Fexpand_file_name.
15301 (syms_of_dired): Initialize it.
15302
15303 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15304
15305 * fileio.c (double_dollars): Remove dead code.
15306
15307 2008-05-10 Eli Zaretskii <eliz@gnu.org>
15308
15309 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15310 Mention w32-get-true-file-attributes in doc string.
15311
15312 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15313
15314 2008-05-09 Glenn Morris <rgm@gnu.org>
15315
15316 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15317 2008-04-23.
15318
15319 2008-05-09 Eli Zaretskii <eliz@gnu.org>
15320
15321 Support for reporting owner and group of each file on MS-Windows:
15322 * dired.c (stat_uname, stat_gname): New functions, with special
15323 implementation for w32.
15324 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15325
15326 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15327 (dflt_group_name): New static variable.
15328 (dflt_group): Rename from the_group.
15329 (init_user_info): Init dflt_group fields. Get user's group name
15330 from LookupAccountSid.
15331 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15332 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15333 New initialization states.
15334 (globals_of_w32): Initialize them to zero. Initialize the default
15335 group name to "None".
15336 (GetFileSecurity_Name): New global var, the name of the function
15337 to call for GetFileSecurity.
15338 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15339 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15340 (get_file_security, get_security_descriptor_owner)
15341 (get_security_descriptor_group, is_valid_sid)
15342 (get_file_security_desc, get_rid, get_name_and_id)
15343 (get_file_owner_and_group): New functions.
15344 (stat): Use get_file_security_desc and get_file_owner_and_group to
15345 report the owner and primary group of each file. Don't ignore the
15346 high 32 bits of file's size, now that st_size is 64-bit wide.
15347 Fix test when to get true file attributes.
15348 (init_user_info): Use get_rid instead of equivalent inline code.
15349 (fstat): Don't ignore the high 32 bits of file's size.
15350
15351 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
15352
15353 * image.c (png_load): Use correct bit-depth for setting background
15354 color.
15355
15356 2008-05-08 Eli Zaretskii <eliz@gnu.org>
15357
15358 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15359 epa-hook.elc.
15360
15361 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
15362
15363 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15364
15365 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15366
15367 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15368 because the original parameters are in pure storage now.
15369 (mac_window): Remove unused params. Update callers.
15370
15371 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15372
15373 * lread.c (substitute_object_recurse): Use lower-level primitives.
15374 Don't signal errors when traversing sub-char-tables.
15375 Don't loop over all the possible characters when traversing char-tables.
15376
15377 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15378 just like we do in print.c.
15379
15380 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15381
15382 * minibuf.c (Ftry_completion): Remove code left over from when we used
15383 scmp instead of Fcompare_strings.
15384
15385 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
15386
15387 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15388
15389 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15390
15391 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15392 Create bitmap context in native byte order.
15393
15394 * macterm.c (XDrawLine)
15395 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15396 context in native byte order.
15397
15398 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15399
15400 * config.in: Regenerate.
15401
15402 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15403 New definitions for Image I/O support.
15404 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15405 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15406 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15407 (mac_data_provider_release_data, image_load_image_io)
15408 [USE_MAC_IMAGE_IO]: New functions.
15409 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15410 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15411 (init_image_func_pointer) [MAC_OSX]: Remove function.
15412 (image_load_quartz2d) [MAC_OSX]: Check availability of
15413 CGImageCreateWithPNGDataProvider at compile time.
15414 Use lowercase `false' for boolean constant.
15415 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15416 Use image_load_image_io.
15417 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15418 Don't check MyCGImageCreateWithPNGDataProvider.
15419 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15420 Don't call init_image_func_pointer.
15421
15422 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15423
15424 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15425 Make variable non-static.
15426 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15427 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15428
15429 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15430 (RED_FROM_ULONG): Mask off higher bits.
15431 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15432
15433 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15434 Include AvailabilityMacros.h.
15435 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15436 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15437
15438 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15439
15440 * chartab.c (Fset_char_table_range): If range is t, really set all
15441 chars to that value.
15442
15443 2008-05-03 Eli Zaretskii <eliz@gnu.org>
15444
15445 * dired.c (Ffile_attributes): Don't allow the device number become
15446 negative.
15447
15448 2008-05-02 Daiki Ueno <ueno@unixuser.org>
15449
15450 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15451
15452 2008-05-02 Juri Linkov <juri@jurta.org>
15453
15454 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15455 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15456 DEFAULT argument as a list of default values in docstrings.
15457
15458 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
15459
15460 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15461
15462 2008-05-01 Martin Rudalics <rudalics@gmx.at>
15463
15464 * dispnew.c (change_frame_size_1): Preserve small windows when
15465 shrinking frames by calling set_window_height|width with third
15466 arg 2.
15467
15468 * window.h (struct window): Replace field too_small_ok by field
15469 resize_proportionally.
15470
15471 * window.c (make_window): Initialize resize_proportionally.
15472 (enlarge_window): Temporarily set resize_proportionally to make
15473 sure that shrink_windows does scale the window proportionally.
15474 (shrink_windows): When window has resize_proportionally set try
15475 to shrink it proportionally by stealing from other windows.
15476 (struct saved_window, Fset_window_configuration)
15477 (compare_window_configurations): Handle resize_proportionally.
15478 (WINDOW_TOTAL_SIZE): New macro.
15479 (window_min_size, shrink_windows, size_window): Use it.
15480 (check_min_window_sizes): Remove. Invalid values of
15481 window-min-height|width are handled by window_min_size_2 now.
15482 (size_window, Fsplit_window, enlarge_window)
15483 (adjust_window_trailing_edge, grow_mini_window): Don't call
15484 check_min_window_sizes.
15485 (window_min_size_2, window_min_size_1, window_min_size):
15486 New argument safe_p for retrieving "safe" minimum sizes.
15487 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15488 (adjust_window_trailing_edge, grow_mini_window):
15489 Adjust arguments of window_min_size... functions.
15490 (shrink_windows): Argument min_size removed. New argument
15491 safe_p allows shrinking windows to their safe minimum sizes.
15492 Calculate minimum size and decide whether a window shall be
15493 deleted for each window individually.
15494 (size_window): When nodelete_p equals 2, tell shrink_windows to
15495 delete windows only if their new minimum size is no more safe.
15496 (shrink_window_lowest_first): Call window_min_size_1 to make
15497 sure to preserve modeline of bottom-most window when resizing
15498 the minibuffer.
15499 (Fset_window_configuration, Fcurrent_window_configuration)
15500 (compare_window_configurations): Do not handle
15501 window-min-height|width any more.
15502 (syms_of_window): Clarify window-min-height|width doc-strings.
15503
15504 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15505
15506 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15507 some more. Copy some of the code from Ftry_completions.
15508 Remove special case code that dates back to initial revision when the
15509 slash was only added when necessary and that can't trigger nowadays.
15510
15511 2008-04-27 Kenichi Handa <handa@m17n.org>
15512
15513 * font.c (font_prop_validate): Signal `error' instead of `font'.
15514
15515 2008-04-29 Jason Rumney <jasonr@gnu.org>
15516
15517 * w32fns.c (Fw32_battery_status): New defun.
15518 (syms_of_w32fns): Defsubr it.
15519
15520 2008-04-28 Andreas Schwab <schwab@suse.de>
15521
15522 * dired.c (file_name_completion): Fix another mixing of encoded
15523 and decoded names.
15524
15525 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
15526
15527 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15528
15529 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
15530
15531 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15532
15533 2008-04-27 Andreas Schwab <schwab@suse.de>
15534
15535 * dired.c (file_name_completion): Fix inappropriate mixing of
15536 encoded and decoded names.
15537
15538 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15539
15540 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15541
15542 2008-04-26 Eli Zaretskii <eliz@gnu.org>
15543
15544 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15545 2008-03-31, it's not needed anymore with `struct stat' definition
15546 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15547 for the same reasons.
15548
15549 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15550
15551 * m/sparc.h: Additional redefinitions for GNU/Linux.
15552
15553 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15554
15555 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15556 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15557 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15558 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15559 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15560 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15561 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15562 Likewise.
15563
15564 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15565 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15566 (mac_ax_number_of_characters): Add externs.
15567 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15568 [USE_MAC_TSM]: Likewise.
15569 (mac_handle_text_input_event) [MAC_OSX]:
15570 Handle kEventTextInputOffsetToPos for no active input area case.
15571 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15572 (mac_handle_document_access_event)
15573 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15574 (install_application_handler) [MAC_OSX]: Register handlers for
15575 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15576 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15577 Register mac_handle_document_access_event.
15578
15579 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15580 Make functions non-static.
15581
15582 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15583
15584 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15585 (read_file_name_completion_ignore_case, insert_default_directory)
15586 (Qdefault_directory): Move to minibuffer.el.
15587 (Fread_file_name): Call the new `read-file-name' instead.
15588
15589 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15590
15591 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15592 Make function non-static.
15593 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15594 Remove function.
15595 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15596 Move to mactoolbox.c.
15597 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15598
15599 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15600 (mac_rect_make): New macro.
15601
15602 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15603 instead of float.
15604 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15605 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15606 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15607 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15608 CGRectMake.
15609 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15610 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15611 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15612 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15613 instead of WindowRef in argument type.
15614 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15615 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15616 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15617 instead of DISPLAY. All uses changed.
15618 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15619 (x_calc_absolute_position): Simplify so as not to use
15620 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15621
15622 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15623 instead of WindowRef in argument type.
15624 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15625 [TARGET_API_MAC_CARBON]: Remove externs.
15626 (create_apple_event, mac_event_parameters_to_lisp)
15627 [TARGET_API_MAC_CARBON]: Add externs.
15628
15629 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15630 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15631 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15632 is clicked.
15633 (x_activate_menubar): Remove extern for saved_menu_event_location.
15634 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15635 Move from mac.c.
15636
15637 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15638
15639 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15640 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15641
15642 2008-04-23 Jason Rumney <jasonr@gnu.org>
15643
15644 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15645 attributes only for local files.
15646
15647 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15648 default to Qlocal.
15649
15650 2008-04-22 Juri Linkov <juri@jurta.org>
15651
15652 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15653 read-buffer-to-switch instead of using the letter "B".
15654
15655 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15656
15657 * fileio.c (Qdefault_directory): New variable.
15658 (Fread_file_name): Use it to pass `dir' to the completion functions.
15659
15660 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
15661
15662 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15663
15664 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15665
15666 * keyboard.c (Vpre_help_message): Remove.
15667 (show_help_echo): Remove default C code.
15668
15669 * dired.c (directory_files_internal, file_name_completion):
15670 Only call ENCODE_FILE if the string is indeed decoded.
15671
15672 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15673
15674 * Makefile.in (TOOLKIT_DEFINES): Remove.
15675 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15676
15677 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15678
15679 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15680 (mactoolbox.o): New target.
15681
15682 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15683 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15684
15685 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15686 Use mac_set_frame_window_background instead of XSetWindowBackground.
15687 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15688 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15689 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15690 instead of SetWindowTitleWithCFString.
15691 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15692 Move function to mactoolbox.c.
15693 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15694 Use mac_set_window_modified instead of SetWindowModified.
15695 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15696 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15697 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15698 FrontNonFloatingWindow. Use mac_activate_window instead of
15699 ActivateWindow. Use mac_active_non_floating_window instead of
15700 ActiveNonFloatingWindow.
15701 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15702 Use mac_show_hourglass and mac_hide_hourglass.
15703 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15704 instead of GetGlobalMouse.
15705 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15706 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15707 Use mac_bring_window_to_front instead of BringToFront.
15708 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15709 mactoolbox.c.
15710 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15711 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15712 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15713 mactoolbox.c.
15714
15715 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15716 (XtPointer): Move typedef from macmenu.c.
15717 (enum button_type): Move enum from macmenu.c.
15718 (widget_value): Move typedef from macmenu.c.
15719 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15720 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15721 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15722 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15723 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15724 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15725 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15726 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15727 (Selection): Move typedef from macselect.c.
15728 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15729 macterm.c.
15730 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15731 (mac_is_window_collapsed, mac_bring_window_to_front)
15732 (mac_send_window_behind, mac_hide_window, mac_show_window)
15733 (mac_collapse_window, mac_front_non_floating_window)
15734 (mac_active_non_floating_window, mac_activate_window)
15735 (mac_move_window_structure, mac_move_window, mac_size_window)
15736 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15737
15738 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15739 (enum mac_menu_kind): Move enum to mactoolbox.c.
15740 (min_menu_id): Move variable to mactoolbox.c.
15741 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15742 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15743 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15744 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15745 [TARGET_API_MAC_CARBON]: Likewise.
15746 (XtPointer): Move typedef to macgui.h.
15747 (enum button_type): Move enum to macgui.h.
15748 (widget_value): Move typedef to macgui.h.
15749 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15750 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15751 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15752 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15753 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15754 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15755 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15756 (popup_activated_flag): Make variable non-static.
15757 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15758 (add_menu_item, fill_menu, dispose_menus):
15759 Move functions to mactoolbox.c.
15760 (restore_show_help_function, menu_target_item_handler)
15761 (install_menu_target_item_handler, mac_handle_dialog_event)
15762 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15763 [TARGET_API_MAC_CARBON]: Likewise.
15764 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15765 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15766 (find_and_call_menu_selection, name_is_separator): Make function
15767 non-static.
15768 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15769 to mactoolbox.c.
15770 (set_frame_menubar): Don't call install_menu_quit_handler.
15771 (menu_item_selection): New variable.
15772 (mac_menu_show): Use create_and_show_popup_menu.
15773 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15774 selection but set variable menu_item_selection. All uses changed.
15775 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15776 Call install_menu_quit_handler. Move to mactoolbox.c.
15777
15778 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15779 (Selection): Move typedef to macgui.h.
15780 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15781 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15782 Make variables non-static.
15783 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15784 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15785 Make functions non-static.
15786 (Vmac_service_selection) [MAC_OSX]: Likewise.
15787 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15788 (mac_valid_selection_target_p, mac_clear_selection)
15789 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15790 (mac_put_selection_value, mac_selection_has_target_p)
15791 (mac_get_selection_value, mac_get_selection_target_list)
15792 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15793 Move functions to mactoolbox.c.
15794 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15795 Likewise.
15796 (copy_scrap_flavor_data, mac_handle_service_event)
15797 (install_service_handler) [MAC_OSX]: Likewise.
15798 (syms_of_macselect) <Vmac_dnd_known_types>:
15799 Use mac_dnd_default_known_types.
15800
15801 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15802 Move to mactoolbox.c.
15803 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15804 (Fx_selection_owner_p): Add EXFUN.
15805 (install_window_handler, remove_window_handler, XSetWindowBackground):
15806 Remove externs.
15807 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15808 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15809 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15810 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15811 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15812 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15813 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15814 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15815 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15816 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15817 (mac_valid_selection_target_p, mac_clear_selection)
15818 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15819 (mac_put_selection_value, mac_selection_has_target_p)
15820 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15821 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15822 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15823 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15824 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15825 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15826 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15827 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15828 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15829
15830 * mactoolbox.c: New file.
15831
15832 2008-04-18 Jason Rumney <jasonr@gnu.org>
15833
15834 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15835
15836 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15837
15838 * character.c (Fmultibyte_char_to_unibyte):
15839 Return latin1 chars unchanged.
15840
15841 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15842 relocated if it points to `name'.
15843
15844 2008-04-17 Kenichi Handa <handa@m17n.org>
15845
15846 * data.c (Faset): Allow setting a multibyte character in an
15847 ASCII-only unibyte string.
15848
15849 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15850
15851 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15852
15853 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15854 done in config.h.
15855
15856 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
15857
15858 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15859 (Fchar_direction): Add usage in the docstring.
15860
15861 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
15862
15863 * keyboard.c (read_key_sequence): Remove always-true checks.
15864
15865 2008-04-14 Jason Rumney <jasonr@gnu.org>
15866
15867 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15868 compatibility struct, for better underline positioning.
15869
15870 2008-04-13 David Hansen <david.hansen@gmx.net>
15871
15872 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15873 string.
15874
15875 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15876
15877 * m/hp800.h (XUINT, XSET): Remove.
15878
15879 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
15880
15881 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15882 previous change.
15883
15884 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15885
15886 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15887 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15888
15889 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15890
15891 * keymap.h (map_keymap_canonical): Declare.
15892 * xmenu.c (single_keymap_panes): Use it.
15893
15894 2008-04-11 Glenn Morris <rgm@gnu.org>
15895
15896 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15897 set the target's value to that of the alias.
15898
15899 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15900
15901 * term.c (set_tty_color_mode): Left over typo.
15902
15903 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
15904
15905 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15906 only after check for file name handler functions. Signal, when
15907 native functionality is not supported.
15908 (syms_of_fileio): Declare it unconditionally.
15909
15910 2008-04-10 Jason Rumney <jasonr@gnu.org>
15911
15912 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15913 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15914
15915 * w32.c (logon_network_drive): Also logon to remote drives that
15916 are mapped to drive letters.
15917
15918 2008-04-10 Glenn Morris <rgm@gnu.org>
15919
15920 * xdisp.c (truncate-partial-width-windows): Doc fix.
15921
15922 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15923
15924 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15925 Move functions to minibuffer.el.
15926 (syms_of_fileio): Don't declare them.
15927
15928 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15929
15930 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15931 (syms_of_minibuf): Remove its initialization.
15932
15933 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15934
15935 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
15936
15937 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15938
15939 2008-04-09 Jason Rumney <jasonr@gnu.org>
15940
15941 * makefile.w32-in (distclean): Delete makefile too.
15942 (maintainer-clean): New target.
15943
15944 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15945
15946 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15947 for new font backend and composite cases.
15948
15949 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15950
15951 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15952 Most of the code moved to run_timers.
15953 (do_pending_atimers): Call run_timers.
15954 (run_timers): New function.
15955
15956 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15957 run atimers.
15958
15959 * process.c (wait_reading_process_output): The same as above.
15960
15961 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15962
15963 * minibuf.c (last_exact_completion): Remove variable.
15964 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15965 (complete_and_exit_1, complete_and_exit_2)
15966 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15967 (Fdisplay_completion_list, display_completion_list_1)
15968 (Fminibuffer_completion_help, Fself_insert_and_exit)
15969 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15970 minibuffer.el.
15971 (syms_of_minibuf): Remove corresponding initializations.
15972
15973 * keyboard.c (Qdeactivate_mark): New var.
15974 (command_loop_1): Use it to call `deactivate-mark'.
15975 (syms_of_keyboard): Initialize it.
15976
15977 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15978 to another frame.
15979 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15980 Don't call set_tty_color_mode.
15981 (store_frame_param): Reset previous_frame rather than call
15982 set_tty_color_mode.
15983 * term.c (set_tty_color_mode): Rewrite.
15984 * dispextern.h (set_tty_color_mode): New type.
15985 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15986
15987 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15988
15989 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15990 for generic chars, which do not exist any more in emacs-unicode.
15991
15992 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
15993
15994 * coding.c (detect_coding_emacs_mule)
15995 (Ffind_operation_coding_system): Fix typo.
15996
15997 2008-04-08 Jason Rumney <jasonr@gnu.org>
15998
15999 * w32uniscribe.c (SNAME): Extract only symbol name.
16000
16001 * w32font.h (struct w32_metric_cache): New struct.
16002 (w32font_info): Use it.
16003 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16004 (CACHE_BLOCKSIZE): New constants.
16005
16006 * w32font.c (Qja, Qko, Qzh): New symbols.
16007 (syms_of_w32font): Initialise them.
16008 (font_matches_spec): Use them to filter by language.
16009 (recompute_cached_metrics): Remove function.
16010 (compute_metrics, clear_cached_metrics): New functions.
16011 (w32font_encode_char): Use them to manage metric cache.
16012 (w32font_text_extents): Cache metrics for all glyphs on demand.
16013 Delay converting glyph indices to WORD until needed.
16014 (w32font_open_internal): Initialize metric cache to empty.
16015 (registry_to_w32_charset): Charset should always be a symbol.
16016 (fill_in_logfont, list_all_matching_fonts): Family should
16017 always be a symbol.
16018
16019 2008-04-06 Jason Rumney <jasonr@gnu.org>
16020
16021 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16022 Give up if glyph indices not supported. Use uniscribe obtained
16023 ABC widths for individual metrics. Map glyph clusters back to
16024 characters using fClusterStart flag. Return number of glyphs
16025 produced, not chars processed.
16026 (uniscribe_shape): Map char at FROM to current glyph.
16027
16028 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16029
16030 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16031 Use SetMenuItemHierarchicalMenu.
16032
16033 2008-04-05 Jason Rumney <jasonr@gnu.org>
16034
16035 * image.c (pbm_load): Allow color values up to 65535.
16036 Throw an error if max_color_idx is outside the supported range.
16037 Report an error when image size is invalid.
16038 Read two bytes at a time when raw images have max_color_idx above 255.
16039
16040 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16041
16042 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16043 append "CCL: Quitted" when the CCL program is quitted.
16044 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16045
16046 * ccl.h (struct ccl_program): New member quit_silently.
16047
16048 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
16049
16050 * search.c (compile_pattern_1): Treat non-nil and non-string of
16051 search-spaces-regexp as nil.
16052
16053 * minibuf.c (Fassoc_string): Tweak docstring.
16054
16055 2008-04-05 Eli Zaretskii <eliz@gnu.org>
16056
16057 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16058 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16059 2008-03-14 to force inode be positive.
16060
16061 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16062 _S_* ones, since we now use our own sys/stat.h.
16063 (stat, fstat): Don't mangle the inode number.
16064 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16065
16066 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16067
16068 * frame.h (struct frame): Give one more bit to `visible' since we use
16069 values larger than 1 to indicate obscured frames on ttys.
16070
16071 * keymap.c (Qkeymap_canonicalize): New var.
16072 (Fmap_keymap_internal): New fun.
16073 (describe_map): Use keymap-canonicalize.
16074
16075 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16076 (Fundo_boundary): Set them.
16077 (syms_of_undo): Initialize them.
16078 (record_point): Use them instead of last_point_position*.
16079 (last_undo_buffer): Change type.
16080
16081 2008-04-04 Jason Rumney <jasonr@gnu.org>
16082
16083 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16084 (recompute_cached_metrics): Don't set ascent and descent per char.
16085
16086 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16087 (uniscribe_check_otf): Add GC protection before consing.
16088 Rearrange loop for counting features.
16089
16090 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16091
16092 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16093 buffer with byte-size of source buffer.
16094
16095 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
16096
16097 * callint.c (Fcall_interactively): Handle temporary region even
16098 when shift-select-mode is off.
16099
16100 2008-04-03 Jason Rumney <jasonr@gnu.org>
16101
16102 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16103
16104 2008-04-03 Kenichi Handa <handa@m17n.org>
16105
16106 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16107 (CATEGORY_MASK_UTF_16): Likewise.
16108 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16109 binary file.
16110 (detect_coding): Add null-byte detection for a binary file.
16111 (detect_coding_system): Likewise.
16112
16113 2008-04-03 Jason Rumney <jasonr@gnu.org>
16114
16115 * w32uniscribe.c: New file.
16116
16117 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16118
16119 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16120
16121 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16122 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16123 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16124 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16125 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16126 (Qphonetic): New symbols.
16127 (syms_of_w32font): Initialize them.
16128 (font_supported_scripts): Use them.
16129 (w32font_list_family): List all charsets.
16130 (w32font_text_extents, recompute_cached_metrics): Fix metric
16131 calculations.
16132 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16133 Give opentype fonts their own format.
16134 (font_matches_spec): New arguments backend and logfont.
16135 Handle :otf spec for uniscribe backend.
16136 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16137 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16138
16139 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16140 font backend.
16141 (globals_of_w32fns): Initialize uniscribe font backend.
16142
16143 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16144 dependencies.
16145 (w32uniscribe.$(O)): New file to build.
16146 (FONT_OBJ): Include w32uniscribe.$(O).
16147 (LIBS): Add uniscribe libraries.
16148
16149 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16150
16151 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
16152
16153 * callint.c (Vshift_select_mode): New var.
16154 (Finteractive): Document new ^ spec.
16155 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16156 is present.
16157
16158 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16159 (command_loop_1): Avoid running the direct display versions of
16160 forward-char and backward-char if shift-selection may occur.
16161 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16162 shift-translation takes place.
16163
16164 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16165 avoid clobbering by define-minor-mode.
16166
16167 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16168 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16169
16170 * syntax.c (Fforward_word): Add ^ interactive spec.
16171
16172 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16173 (Fscroll_right): Add ^ interactive spec.
16174
16175 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16176
16177 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16178
16179 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16180
16181 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16182
16183 2008-03-31 Juri Linkov <juri@jurta.org>
16184
16185 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16186
16187 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16188
16189 * gtkutil.c (xg_set_geometry): Fix indentation.
16190 (xg_resize_outer_widget): Remove.
16191 (x_wm_size_hint_off): Fix indentation.
16192 (xg_frame_set_char_size): Call flush_and_sync after
16193 gtk_window_resize.
16194 (x_wm_set_size_hint): Pass NULL as geometry window to
16195 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16196 Add menu bar and tool bar height to base height.
16197 (xg_update_frame_menubar, free_frame_menubar)
16198 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16199 (update_frame_tool_bar, free_frame_tool_bar):
16200 Change xg_resize_outer_widget to xg_frame_set_char_size.
16201
16202 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
16203
16204 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16205 (Fdbus_call_method): New parameter TIMEOUT.
16206 (dbus-send-signal): Optimize UNGCPRO call.
16207
16208 2008-03-29 Juri Linkov <juri@jurta.org>
16209
16210 * window.c (Fdisplay_buffer): Move call to
16211 Vsplit_window_preferred_function out of conditions that check
16212 if window is eligible for vertical splitting.
16213 When Vsplit_window_preferred_function is non-nil, call it and use
16214 its non-nil return value as window. Otherwise, continue doing
16215 vertical splitting using Fsplit_window with arg horflag=nil.
16216 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16217 default value from `split-window' to nil.
16218
16219 2008-03-29 Juri Linkov <juri@jurta.org>
16220
16221 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16222 for interactive code letters 'b' and 'B'.
16223
16224 2008-03-29 Eli Zaretskii <eliz@gnu.org>
16225
16226 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16227 multibyte string.
16228
16229 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16230
16231 * keyboard.c (pending_funcalls): New var.
16232 (timer_check): Run it.
16233 (syms_of_keyboard): Initialize it.
16234 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16235 (Vdelete_terminal_functions): New vars.
16236 (syms_of_terminal): Initialize them.
16237 (Fdelete_terminal): Run delete-terminal-functions.
16238 * xdisp.c (safe_eval): Rewrite.
16239 (safe_call2): New fun.
16240 * frame.c (Qdelete_frame_functions): New var.
16241 (syms_of_frame): Initialize it.
16242 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16243 * lisp.h (safe_call2, pending_funcalls): Declare.
16244
16245 2008-03-28 Andreas Schwab <schwab@suse.de>
16246
16247 * indent.c (Fmove_to_column): Move declaration before statements.
16248
16249 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16250
16251 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16252 (struct frame): Use bit fields for boolean vars.
16253
16254 * process.c (server_accept_connection): Simplify naming.
16255 (emacs_get_tty_pgrp): Use SDATA.
16256
16257 * coding.c (decode_coding_object): Fix last change.
16258
16259 2008-03-27 Jason Rumney <jasonr@gnu.org>
16260
16261 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16262
16263 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16264
16265 * charset.c (Fdefine_charset_internal): Change the way of
16266 registering charsets in Vcharset_order_list.
16267 (syms_of_charset): Make the charset `eight-bit' supplementary.
16268
16269 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16270
16271 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16272 operations, to avoid having the difference between pointers
16273 overflow.
16274
16275 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16276
16277 * indent.c (check_display_width): New fun.
16278 (scan_for_column): Use it.
16279
16280 * data.c (syms_of_data): Mark most-positive-fixnum and
16281 most-negative-fixnum as constants.
16282
16283 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16284
16285 * indent.c (scan_for_column): Extract from current_column_1.
16286 Merge with the same code from Fmove_to_column.
16287 (current_column_1, Fmove_to_column): Use it.
16288
16289 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16290
16291 * keymap.c (map_keymap_internal): New fun.
16292 (map_keymap): Use it.
16293 (Fmap_keymap_internal): New fun.
16294 (Fmap_keymap): Remove left-out test from before make_save_value.
16295
16296 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16297
16298 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16299 Use XCAR/XCDR.
16300
16301 * process.h (struct Lisp_Process): Remove filter_multibyte.
16302 * process.c (QCfilter_multibyte): Remove.
16303 (setup_process_coding_systems): Don't use filter_multibyte.
16304 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16305 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16306 (Fset_process_filter_multibyte): Change the coding-system to
16307 approximate the previous behavior.
16308 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16309 coding-system.
16310
16311 * coding.c (decode_coding_object): When not decoding into a buffer,
16312 obey the coding system's preference of (uni|multi)byte.
16313
16314 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16315
16316 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16317 every char is changed and has a different byte-length.
16318 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16319 Fix int -> EMACS_INT.
16320
16321 2008-03-23 David Hansen <david.hansen@gmx.net>
16322
16323 * dbusbind.c (xd_read_message): Remove extra copying of message
16324 strings. Check for NULL `interface' or `member'.
16325
16326 2008-03-22 Eli Zaretskii <eliz@gnu.org>
16327
16328 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16329 cFileName a file name that includes `?' characters, use the 8+3
16330 alias in cAlternateFileName instead.
16331
16332 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16333
16334 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16335
16336 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16337
16338 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16339 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16340 work on current_buffer only instead (that was already the case
16341 for some of the code anyway).
16342 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16343 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16344 (SET_PT, SET_PT_BOTH): Adjust.
16345 * intervals.h (set_point, temp_set_point, set_point_both)
16346 (temp_set_point_both): Remove redundant declarations.
16347
16348 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16349
16350 * fileio.c (Finsert_file_contents):
16351 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16352 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16353 when buffer != current_buffer anyway.
16354
16355 2008-03-20 Andreas Schwab <schwab@suse.de>
16356
16357 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16358 as default.
16359
16360 2008-03-19 Jason Rumney <jasonr@gnu.org>
16361
16362 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16363 (syms_of_w32fns): Initialize them.
16364 (HOURGLASS_ID): New constant.
16365 (x_window_to_frame): Don't check hourglass_window.
16366 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16367 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16368 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16369 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16370 Only change the cursor if hourglass is not active.
16371 (Fx_create_frame): Initialize frame's current_cursor.
16372 (hourglass_atimer): Remove.
16373 (hourglass_started): New function.
16374 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16375 (show_hourglass): Adapt to w32, changing argument to frame.
16376
16377 * w32term.h (struct w32_output): Remove hourglass_window.
16378 Add current_cursor.
16379
16380 * eval.c (call_debugger, Fsignal):
16381 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16382 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16383 (Fexecute_extended_command, cancel_hourglass_unwind):
16384 * minibuf.c (read_minibuf):
16385 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16386
16387 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16388
16389 * window.c (run_funs): New fun.
16390 (run_window_configuration_change_hook): Use it to run the buffer-local
16391 and the global part of the hook.
16392
16393 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16394 (unwind_format_mode_line): Restore selected window.
16395 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16396
16397 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16398
16399 * editfns.c (Fchar_equal): Check they are valid characters.
16400
16401 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16402
16403 2008-03-17 Andreas Schwab <schwab@suse.de>
16404
16405 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16406 against a charset.
16407
16408 * lisp.h (Fbuffer_list): Declare.
16409
16410 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
16411
16412 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16413 handlebox_widget is != 0.
16414
16415 2008-03-16 Juri Linkov <juri@jurta.org>
16416
16417 * callint.c (Fcall_interactively): For interactive code letters
16418 'b' and 'B' put the buffer list into the list of default "future"
16419 values of the minibuffer.
16420
16421 2008-03-16 Andreas Schwab <schwab@suse.de>
16422
16423 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16424 modifiers.
16425
16426 * regex.c (re_match_2_internal): Correct matching of a charset
16427 against latin-1 characters.
16428
16429 2008-03-16 Kenichi Handa <handa@m17n.org>
16430
16431 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16432 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16433 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16434 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16435 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16436 CHAR_STRING_ADVANCE.
16437 (produce_chars): Fix for the case that the source and the
16438 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16439 instead of CHAR_STRING_ADVANCE.
16440 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16441 STRING_CHAR_ADVANCE.
16442
16443 2008-03-15 Andreas Schwab <schwab@suse.de>
16444
16445 * regex.c (re_match_2_internal): Correct matching of eight bit
16446 characters in unibyte strings.
16447
16448 2008-03-15 Martin Rudalics <rudalics@gmx.at>
16449
16450 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16451 at end of range when it coincides with the end of the buffer.
16452
16453 2008-03-14 Eli Zaretskii <eliz@gnu.org>
16454
16455 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16456
16457 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16458
16459 2008-03-14 Jason Rumney <jasonr@gnu.org>
16460
16461 * editfns.c (initial_tz): New variable.
16462 (syms_of_editfns): Initialize it.
16463 (Fset_time_zone_rule): Set it when first called.
16464 Use it when TZSTRING is nil.
16465
16466 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16467 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16468 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16469 (globals_of_w32fns): Initialize them.
16470 (compute_tip_xy): Use them to position tooltips.
16471
16472 2008-03-14 Glenn Morris <rgm@gnu.org>
16473
16474 * emacs.c (main): Revert previous change.
16475 (standard_args): Revert -internal-script back to -scriptload,
16476 and remove the long-option form.
16477
16478 2008-03-13 Glenn Morris <rgm@gnu.org>
16479
16480 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16481 Remove option -enable-font-backend.
16482
16483 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16484
16485 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16486
16487 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16488
16489 * xterm.c (x_connection_closed): For GTK: If this is the last
16490 terminal just exit without closing the display.
16491
16492 2008-03-11 Jason Rumney <jasonr@gnu.org>
16493
16494 * w32font.c (w32font_full_name): Use floor to round.
16495
16496 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16497
16498 * sound.c (alsa_configure): Declare vol at beginning of block.
16499
16500 * fontset.c (Ffontset_info): Remove extra semicolon.
16501
16502 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16505 size of resulting string.
16506
16507 2008-03-10 Jason Rumney <jasonr@gnu.org>
16508
16509 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16510
16511 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16512
16513 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16514 Don't pretend as if characters with display property haven't been
16515 consumed for string-replacing-string case.
16516
16517 2008-03-08 Kim F. Storm <storm@cua.dk>
16518
16519 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16520 (get_next_display_element, next_element_from_string)
16521 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16522
16523 2008-03-08 Andreas Schwab <schwab@suse.de>
16524
16525 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16526
16527 2008-03-06 Jason Rumney <jasonr@gnu.org>
16528
16529 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16530 when charset not specified. Only translate ANSI to unicode when
16531 font_type is truetype.
16532 (w32font_coverage_ok): New function.
16533 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16534
16535 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16536
16537 * lread.c (Fread_char): Resolve modifiers.
16538 (Fread_char_exclusive): Likewise.
16539
16540 * character.c (char_resolve_modifier_mask): New function.
16541 (char_string): Use char_resolve_modifier_mask.
16542 (Fchar_resolve_modifiers): New function.
16543 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16544 function.
16545
16546 2008-03-04 Jason Rumney <jasonr@gnu.org>
16547
16548 * makefile.w32-in: Always include w32font.c in the build.
16549 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16550
16551 2008-03-04 Andreas Schwab <schwab@suse.de>
16552
16553 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16554 (versionclean): Likewise.
16555
16556 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
16557
16558 * .cvsignore: Add oo.
16559
16560 2008-03-03 Andreas Schwab <schwab@suse.de>
16561
16562 * coding.c (decode_coding_object): Inhibit gap shrinking while
16563 decoding in place.
16564
16565 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16566
16567 * w32term.c: Remove unused include "gnu.h".
16568 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16569
16570 * gnu.h: Rename to ...
16571 * emacs-icon.h: ... this.
16572 * xterm.c: Use emacs-icon.h instead of gnu.h.
16573 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16574
16575 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
16576
16577 * w32font.c: Include math.h.
16578
16579 2008-03-03 Jason Rumney <jasonr@gnu.org>
16580
16581 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16582 Compute options separately.
16583 (w32font_open_internal): Set glyph_idx before caching metrics.
16584
16585 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16586 Define if system headers don't.
16587 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16588 (w32font_encode_char): Don't declare here.
16589
16590 * w32font.c (Quniscribe, QCformat): New symbols.
16591 (syms_of_w32font): Define them.
16592 (w32font_has_char): Indicate uncertainty.
16593 (w32font_encode_char): Encode as glyph point. Make static.
16594 (recompute_cached_metrics): New function.
16595 (w32font_open_internal): Use it. Set font to use glyph points
16596 initially. Set format based on type of font.
16597 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16598 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16599 on it. Set format based on information available here.
16600 (add_font_entity_to_list): Identify backend based on opentype_only.
16601
16602 2008-03-02 Andreas Schwab <schwab@suse.de>
16603
16604 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16605
16606 * coding.c (decode_coding_big5, produce_chars):
16607 Fix typos in last change.
16608
16609 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16610
16611 * gnu.h: New icon.
16612
16613 2008-03-02 Kenichi Handa <handa@m17n.org>
16614
16615 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16616 `dos', don't decode '\r' if that is the last in the source.
16617 (decode_coding_utf_16, decode_coding_emacs_mule)
16618 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16619 (decode_coding_raw_text, decode_coding_charset): Likewise.
16620 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16621
16622 2008-03-01 Jason Rumney <jasonr@gnu.org>
16623
16624 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16625
16626 2008-03-01 Kim F. Storm <storm@cua.dk>
16627
16628 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16629
16630 2008-03-01 Jason Rumney <jasonr@gnu.org>
16631
16632 * w32font.c (w32font_full_name): New function.
16633 (w32font_open_internal): Use it.
16634
16635 2008-03-01 Kim F. Storm <storm@cua.dk>
16636
16637 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16638
16639 2008-03-01 Jason Rumney <jasonr@gnu.org>
16640
16641 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16642
16643 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16644
16645 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16646 xg_frame_resized when the event is for the edit widget.
16647
16648 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16649
16650 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16651 set_char_size.
16652 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16653 operations on widgets here. Just set frame size if needed.
16654 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16655 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16656 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16657 the whole frame.
16658 (xg_create_tool_bar): Move attachment of the tool bar to
16659 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16660 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16661
16662 2008-03-01 Jason Rumney <jasonr@gnu.org>
16663
16664 * w32fns.c (w32_msg_pump): Disable debug code.
16665
16666 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16667
16668 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16669
16670 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16671
16672 * xdisp.c (next_overlay_string): Don't set
16673 overlay_strings_at_end_processed_p if we're currently reading from
16674 a display string.
16675
16676 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16677
16678 * xdisp.c (get_overlay_strings_1): Fix typo.
16679
16680 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
16681
16682 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16683
16684 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16685
16686 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16687
16688 * xdisp.c (display_mode_element): Cancel the previous change.
16689 (decode_mode_spec): Likewise.
16690 (handle_auto_composed_prop): Don't make composition if it->string
16691 is a string.
16692
16693 2008-02-27 Kim F. Storm <storm@cua.dk>
16694
16695 * lisp.h (GLYPH): Change type from int to struct with separate char
16696 and face_id members.
16697 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16698 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16699 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16700 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16701 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16702 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16703 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16704 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16705 handle new Lisp glyph code encoding, either an integer or a cons.
16706
16707 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16708 (GLYPH_ALIAS): Delete.
16709 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16710 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16711 (GLYPH_FROM_CHAR): Replace macro by ...
16712 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16713
16714 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16715 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16716 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16717 (GLYPH_INVALID_P): New macro.
16718 (spec_glyph_lookup_face): Update prototype.
16719
16720 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16721 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16722 new glyph code encoding.
16723 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16724 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16725
16726 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16727 Adapt to new glyph type and new glyph code encoding.
16728
16729 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16730
16731 * indent.c (current_column, current_column_1, Fmove_to_column)
16732 (compute_motion): Adapt to new glyph code encoding.
16733
16734 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16735
16736 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
16737
16738 * process.c (wait_reading_process_output): Check for window
16739 changes caused by timers.
16740 Suggested by Johan Bockgård.
16741
16742 2008-02-27 Glenn Morris <rgm@gnu.org>
16743
16744 * emacs.c (USAGE1): Add `--disable-font-backend'.
16745
16746 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16747
16748 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16749 is made to the buffer.
16750
16751 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16752
16753 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16754 (face_at_string_position):
16755 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16756 (face_at_string_position):
16757 * xdisp.c (display_string, next_overlay_change):
16758 * buffer.h (overlays_at):
16759 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16760 Update callers.
16761
16762 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
16763
16764 * editfns.c (Fformat): Doc fix.
16765
16766 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
16767
16768 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16769 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16770 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16771
16772 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16773
16774 * buffer.c (Fbuffer_swap_text): New function.
16775 (syms_of_buffer): Defsubr it.
16776
16777 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
16778
16779 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16780
16781 2008-02-25 Jason Rumney <jasonr@gnu.org>
16782
16783 * w32font.c (w32font_draw): Draw one character at a time when padding.
16784
16785 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16786
16787 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16788 Handle a nil arg. Use run_window_configuration_change_hook.
16789 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16790 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16791 Use run_window_configuration_change_hook.
16792
16793 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16794
16795 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16796 1-pixel width.
16797
16798 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16799
16800 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16801 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16802 if the glyph in the font is zero pixel with.
16803
16804 * dispextern.h (struct glyph_string): New member padding_p.
16805
16806 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16807
16808 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16809
16810 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16811
16812 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16813
16814 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16815
16816 2008-02-25 Jason Rumney <jasonr@gnu.org>
16817
16818 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16819
16820 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16821
16822 Allow fine-grained image-cache flushing.
16823 * dispextern.h (struct image): Add `dependencies' field.
16824 (clear_image_caches): Change arg to Lisp_Object.
16825 * image.c (make_image): Initialize `dependencies' field.
16826 (clear_image_cache): Change arg to allow fine-grained flushing.
16827 Perform the flush even if image-cache-eviction-delay is nil.
16828 (clear_image_caches): Change arg to Lisp_Object.
16829 (Fclear_image_cache): Expand meaning of the argument.
16830 (mark_image): Mark `dependencies' field.
16831 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16832 (lface_hash): Use XHASH rather than XFASTINT.
16833 (face_at_buffer_position): Fix int -> EMACS_INT position.
16834 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16835 (select_frame_for_redisplay): Remove code duplication.
16836 (redisplay_internal): Adapt arg to call to clear_image_caches.
16837
16838 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16839
16840 * s/vms4-0.h:
16841 * s/vms4-2.h:
16842 * s/vms4-4.h:
16843 * s/vms5-5.h: Remove, unused.
16844
16845 * s/irix5-2.h:
16846 * s/irix6-0.h:
16847 * s/riscos5.h:
16848 * s/mach-bsd4-3.h:
16849 * m/mips4.h: Remove files for obsolete systems.
16850
16851 * Makefile.in:
16852 * filelock.c:
16853 * unexmips.c:
16854 * m/hp9000s300.h:
16855 * m/iris4d.h:
16856 * s/aix3-1.h:
16857 * s/hpux.h:
16858 * s/msdos.h:
16859 * s/usg5-0.h:
16860 * s/usg5-2-2.h:
16861 * s/usg5-2.h:
16862 * s/usg5-3.h: Remove references to obsolete variables.
16863
16864 * s/irix5-0.h: Remove, move all the contents ...
16865 * s/irix6-5.h: ... here. Simplify.
16866 * config.in: Regenerate.
16867
16868 2008-02-24 Jason Rumney <jasonr@gnu.org>
16869
16870 * w32term.c (x_draw_glyph_string_background): Clear the background
16871 manually when cleartype is in use.
16872 (x_draw_glyph_string_foreground): Draw text transparently when
16873 cleartype is in use.
16874
16875 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16876 a font into it unless we have to.
16877
16878 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16879
16880 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16881 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
16882
16883 2008-02-18 Jason Rumney <jasonr@gnu.org>
16884
16885 * w32fns.c (Fw32_shell_execute): Encode parameters.
16886
16887 2008-02-09 Eli Zaretskii <eliz@gnu.org>
16888
16889 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16890
16891 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
16892
16893 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16894
16895 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16896
16897 * xterm.c (x_set_offset): Don't change the gravity if
16898 CHANGE_GRAVITY is -1.
16899
16900 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
16901
16902 * fileio.c (auto_save_error_occurred): New var.
16903 (auto_save_error): Set it.
16904 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16905 error occurred.
16906
16907 2008-02-23 Eli Zaretskii <eliz@gnu.org>
16908
16909 * w32.c (globals_of_w32): Add initializations for
16910 g_b_init_get_sid_sub_authority and
16911 g_b_init_get_sid_sub_authority_count.
16912
16913 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16914
16915 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16916 (font_parse_xlfd): Use them for sanity check.
16917 (Finternal_set_font_style_table): Make sure the table is bijective.
16918
16919 Consolidate the image_cache to the terminal struct.
16920 * termhooks.h (P_): Remove redundant def.
16921 (struct terminal): New field `image_cache'.
16922 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16923 of FRAME_X_IMAGE_CACHE.
16924 * xterm.h (struct x_display_info): Remove image_cache field.
16925 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16926 * w32term.h (struct w32_display_info): Remove image_cache field.
16927 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16928 * macterm.h (struct mac_display_info): Remove image_cache field.
16929 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16930 * xterm.c (x_term_init):
16931 * w32term.c (w32_term_init):
16932 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16933 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16934 Remove declarations.
16935 (clear_image_caches, mark_image_cache): New declarations.
16936 * xfaces.c (clear_face_cache):
16937 * xdisp.c (redisplay_internal): Use clear_image_caches.
16938 * image.c (clear_image_cache): Don't check that a frame is on
16939 a window-system before checking if it shares the same cache.
16940 (clear_image_caches): New function.
16941 (Fclear_image_cache): Use it.
16942 (mark_image): Move from allo.c.
16943 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16944 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16945 (mark_object): Don't call mark_image_cache for frames.
16946 (mark_terminals): Call mark_image_cache.
16947
16948 * lisp.h (Fdelete_terminal): Declare.
16949
16950 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16951 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16952 wrong_type_argument.
16953
16954 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16955
16956 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16957 malayalam.el, and tamil.el. Add sinhala.el.
16958
16959 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16960
16961 * xterm.c (x_connection_closed): Consolidate identical tests.
16962 (x_delete_terminal): Don't crash if called via x_connection_closed.
16963
16964 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16965
16966 * xdisp.c (decode_mode_spec): New arg string.
16967 (display_mode_element): Adjust for the above change.
16968
16969 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16970
16971 * callint.c (Fcall_interactively): Use AREF.
16972
16973 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16974
16975 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16976
16977 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16978
16979 * xfns.c (Fx_show_tip): Set string to " " if empty.
16980
16981 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16982
16983 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16984 with Qt.
16985
16986 2008-02-17 Kenichi Handa <handa@m17n.org>
16987
16988 * ftfont.c (ftfont_shape): Return Lispy number.
16989
16990 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16991 for GCs.
16992 (Finternal_set_font_selection_order): Call font_update_sort_order
16993 only when enable_font_backend is set.
16994 (realize_x_face): Set face->font_info to that of default face only
16995 when enable_font_backend is set.
16996
16997 * xdisp.c (handle_composition_prop): Set it->c to the fist
16998 character of the composed region.
16999 (fill_composite_glyph_string): Set base_face->font_info to
17000 s->font_info. Get a face for ascii from base_face->ascii_face.
17001 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17002 with a face already decided.
17003 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17004 non-negative.
17005 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17006 call font_prepare_composition unconditionally.
17007
17008 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17009
17010 * xterm.h (struct x_display_info): New member font.
17011
17012 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17013 (x_set_mouse_face_gc, x_new_font): Likewise.
17014 (x_term_init): Setup display_info->font.
17015 (x_delete_terminal): Free display_info->font.
17016
17017 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17018
17019 * ftxfont.c (ftxfont_default_fid): Delete it.
17020 (ftxfont_open): Set xfont->fid to 0.
17021 (ftxfont_end_for_frame): Clear data specific to the frame and the
17022 font-driver.
17023
17024 * xftfont.c (xftfont_default_fid): Delete it.
17025 (xftfont_open): Set xfont->fid to 0.
17026
17027 * fontset.c (FONTSET_OBJLIST): New macro.
17028 (fontset_find_font): Update font-object list of the fontset.
17029 (free_realized_fontset): New function.
17030 (free_face_fontset): Call free_realized_fontset.
17031 (Ffont_info): Call font_close_object only when enable_font_backend
17032 is set.
17033
17034 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17035 [HAVE_NTGUI]: Include w32term.h.
17036 [MAC_OS]: Include macterm.ch.
17037 (font_otf_ValueRecord): Use make_number.
17038 (font_finish_cache): Fix handling of reference count.
17039 (font_clear_cache): Update num_fonts.
17040 (font_open_entity): Update smallest_char_width and
17041 smallest_font_height of the frame.
17042 (font_close_object): Update num_fonts.
17043 (Fclear_font_cache): Fix finding the target cache data.
17044
17045 2008-02-16 Glenn Morris <rgm@gnu.org>
17046
17047 * fontset.c (Finternal_char_font): Fix compilation warning.
17048
17049 2008-02-16 Eli Zaretskii <eliz@gnu.org>
17050
17051 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17052 instead of char arrays. Enlarge the size of array passed to
17053 get_token_information.
17054
17055 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17056 warnings.
17057
17058 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17059
17060 * .gdbinit: Don't set `args', it breaks gdb --args.
17061
17062 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17063
17064 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17065 within a narrowed buffer.
17066
17067 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17068
17069 * coding.c (decode_coding_object, encode_coding_object):
17070 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17071
17072 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17073
17074 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17075 hardcoding 1.
17076 (detect_coding_system):
17077 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17078 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17079 * insdel.c (insert_from_gap):
17080 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17081 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17082 (string_to_multibyte):
17083 * character.c (chars_in_text, multibyte_chars_in_text):
17084 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17085
17086 * character.h (FETCH_STRING_CHAR_ADVANCE)
17087 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17088 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17089 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17090
17091 * casefiddle.c (casify_region): Only call after-change and composition
17092 functions on the part of the region that was changed.
17093
17094 * keyboard.c (read_avail_input):
17095 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17096
17097 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17098
17099 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17100 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17101
17102 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
17103
17104 * w32menu.c (push_submenu_start, push_submenu_end)
17105 (push_left_right_boundary, push_menu_pane, push_menu_item):
17106 * keyboard.c (read_key_sequence): Don't pass args with side effects
17107 to AREF, it fails when compiling with -DENABLE_CHECKING.
17108
17109 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17110
17111 * Makefile.in (${lispsource}international/charprop.el):
17112 Delete this target.
17113
17114 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17115 emacs-unicode-2.
17116
17117 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17118
17119 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17120
17121 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17122
17123 * frame.c (Qnoelisp): New symbol.
17124 (syms_of_frame): Initialize it.
17125 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17126 harmless Elisp code, from a strong `force' from x_connection_closed.
17127 * frame.h (Qnoelisp): Declare.
17128 * xterm.c (x_connection_closed): Pass `noelisp'.
17129
17130 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17131 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17132 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17133 rather than `int' for the type of `type'.
17134
17135 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17136
17137 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17138
17139 * Makefile.in (GNUC): Remove support for gcc-1.x.
17140
17141 2008-02-10 Richard Stallman <rms@gnu.org>
17142
17143 * lisp.h (ASET): Use AREF, not ASLOT.
17144
17145 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17146
17147 * lisp.h (ASET): Check bounds.
17148
17149 2008-02-10 Glenn Morris <rgm@gnu.org>
17150
17151 * buffer.c (mode-name): Doc fix.
17152
17153 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17154
17155 * Makefile.in:
17156 * emacs.c:
17157 * gmalloc.c:
17158 * keyboard.c:
17159 * lisp.h:
17160 * m/ibm370aix.h:
17161 * process.c:
17162 * regex.c:
17163 * s/hpux.h:
17164 * sysdep.c:
17165 * sysselect.h:
17166 * systty.h:
17167 * unexec.c:
17168 * w32term.c:
17169 * xsmfns.c:
17170 * xterm.c: Remove code that deals with obsolete variables.
17171
17172 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17173
17174 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17175 nothing else needs it anymore.
17176
17177 2008-02-09 Eli Zaretskii <eliz@gnu.org>
17178
17179 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17180 instead of unibyte_char_to_multibyte.
17181
17182 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17183
17184 * s/gnu-linux.h: Remove commented out code.
17185
17186 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17187
17188 * Makefile.in: Update what RMS says about using autoconf.
17189 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17190 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17191 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17192 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17193
17194 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17195
17196 * keymap.c (Fkey_description): Move side effect outside of macro call.
17197
17198 * xfaces.c (Finternal_make_lisp_face):
17199 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17200
17201 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17202 (syms_of_fontset): Use ASET.
17203
17204 * fns.c (concat): Move side effect outside of macro call.
17205 (hash_clear): Use ASET.
17206
17207 2008-02-08 Richard Stallman <rms@gnu.org>
17208
17209 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17210 If FORCE, and frame has a surrogate minibuffer for another frame,
17211 delete the other frame first.
17212
17213 2008-02-07 Timo Savola <timo.savola@iki.fi>
17214
17215 * xterm.c (x_detect_focus_change): Handle embed client message.
17216 (handle_one_xevent): Ditto.
17217 (handle_one_xevent): If embedded and we get a button press/release,
17218 request focus.
17219 (xembed_set_info, xembed_send_message): New functions.
17220 (x_make_frame_visible): Call xembed_set_info if embedded.
17221 (x_make_frame_invisible): Call xembed_set_info if embedded.
17222 (x_term_init): Initialize Xatom_XEMBED.
17223 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17224 (x_iconify_frame): Ditto.
17225
17226 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17227 (enum xembed_info, enum xembed_message, enum xembed_focus)
17228 (enum xembed_modifier, enum xembed_accelerator): New.
17229 (xembed_set_info, xembed_send_message): Declare.
17230 (FRAME_X_EMBEDDED_P): New.
17231
17232 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17233 gtk_plug_new.
17234
17235 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17236 window ID of a frame.
17237 (x_window): Reparent frame if embedded.
17238 (Fx_create_frame): Don't set border width if embedded.
17239
17240 * emacs.c (USAGE3): Add --parent-id.
17241 (standard_args): Ditto.
17242
17243 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17244
17245 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17246
17247 2008-02-07 Jim Meyering <meyering@redhat.com>
17248
17249 Use "do...while (0)", not "if (1)...else" in macro definitions.
17250 The latter provokes a warning from gcc about the empty else, when
17251 followed by ";". Also, without that trailing semicolon, it would
17252 silently swallow up any following statement.
17253 * syntax.h (SETUP_SYNTAX_TABLE)
17254 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17255 * buffer.h (DECODE_POSITION): Likewise.
17256 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17257 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17258 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17259 (FETCH_CHAR_ADVANCE): Likewise.
17260 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17261
17262 2008-02-07 Jim Meyering <meyering@redhat.com>
17263
17264 * lread.c [lint]: Don't include <sys/inode.h>.
17265
17266 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17267
17268 * xselect.c (x_handle_dnd_message):
17269 * xmenu.c (digest_single_submenu, xmenu_show):
17270 * xdisp.c (with_echo_area_buffer_unwind_data)
17271 (format_mode_line_unwind_data, unwind_format_mode_line)
17272 (display_menu_bar):
17273 * eval.c (Ffetch_bytecode):
17274 * doc.c (store_function_docstring):
17275 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17276 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17277 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17278
17279 2008-02-07 Kenichi Handa <handa@m17n.org>
17280
17281 * ftxfont.c (ftxfont_open): Don't set
17282 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17283
17284 * ftfont.c (ftfont_open): Fix previous change.
17285
17286 2008-02-06 Jason Rumney <jasonr@gnu.org>
17287
17288 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17289 Use cached metrics for ASCII characters.
17290 (w32font_open_internal): Don't set font's owning_frame.
17291 Cache metrics for ASCII characters.
17292
17293 * w32font.h (struct w32font_info): Add ascii_metrics.
17294 Remove owning_frame.
17295
17296 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17297
17298 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17299 to negative value.
17300
17301 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17302
17303 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17304
17305 * charset.c (syms_of_charset): Set QCtest and Qeq.
17306
17307 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17308
17309 * process.c (Fstart_process):
17310 * callproc.c (Fcall_process): Handle the case where
17311 Funhandled_file_name_directory returns nil.
17312
17313 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17314 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17315 * font.c (check_gstring): Use them and AREF to access the vector before
17316 we know it's really a gstring.
17317 (Ffont_shape_text): Fix typo.
17318 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
17319
17320 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17321 Declare.
17322
17323 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17324
17325 2008-02-05 Jason Rumney <jasonr@gnu.org>
17326
17327 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17328 Set smallest_font_height and smallest_char_width in display info.
17329
17330 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17331
17332 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17333
17334 2008-02-05 Miles Bader <miles@gnu.org>
17335
17336 * xfaces.c (get_lface_attributes, merge_named_face)
17337 (lookup_named_face, lookup_derived_face, realize_named_face):
17338 Revert 2008-02-01 change by cyd@stupidchicken.com.
17339
17340 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17341
17342 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17343 fallback fonts.
17344 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17345
17346 2008-02-04 Jason Rumney <jasonr@gnu.org>
17347
17348 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17349 set full_name.
17350 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17351
17352 2008-02-03 Jason Rumney <jasonr@gnu.org>
17353
17354 * makefile.w32-in (OBJ1): Include font.o here.
17355 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17356
17357 2008-02-02 Jason Rumney <jasonr@gnu.org>
17358
17359 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17360
17361 2008-02-01 Jason Rumney <jasonr@gnu.org>
17362
17363 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17364
17365 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17366
17367 2008-02-01 Andreas Schwab <schwab@suse.de>
17368
17369 * Makefile.in (shortlisp, lisp): Update for rename of
17370 ../lisp/language/myanmar.el.
17371
17372 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
17373
17374 * xfaces.c (get_lface_attributes): Delete function.
17375 (merge_named_face, lookup_named_face, lookup_derived_face)
17376 (realize_named_face): Call lface_from_face_name directly, and use
17377 the fact that merge_face_vectors does not alter its FROM argument.
17378
17379 2008-02-01 Jason Rumney <jasonr@gnu.org>
17380
17381 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17382 input in the default locale. Handle non-Unicode multibyte input.
17383
17384 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17385
17386 * fontset.c (reorder_font_vector): Exclude nil elements from the
17387 font group. Don't try multiple fonts.
17388 (fontset_font): Adjust for the above change.
17389 (Finternal_char_font): Return nil if the found font doesn't
17390 contain the character ch.
17391
17392 * Makefile.in (lisp, shortlisp): Add cham.el.
17393
17394 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17395
17396 * font.h (FONTP): Make it return 1 also for a font-object.
17397
17398 * .gdbinit (xfontset): New function.
17399
17400 * font.c (font_find_for_lface): Check if the character C is
17401 supported or not only for the first font.
17402
17403 * fontset.c (reorder_font_vector): Fix typo.
17404 (fontset_find_font): Don't add a font-spec specifying a script.
17405 Use 0 (not Qt) for the indication of empty font-group. Change the
17406 format of RFONT-DEF. Return Qt if no font in the font-group
17407 support the character.
17408 (fontset_font): Adjust for the above change. If no font was
17409 found the character, remember that.
17410 (face_for_char): Adjust for the change of RFONT-DEF.
17411 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17412 no font for the target.
17413 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17414
17415 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17416
17417 * font.c (font_load_for_face): Handle the case that the font in
17418 face->lface is a string.
17419
17420 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17421
17422 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17423
17424 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17425
17426 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17427 Fix previous change. If the frame is not on a window system,
17428 signal an error.
17429
17430 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17431
17432 * coding.c (decode_coding_object, encode_coding_object): Adjust
17433 marker positions after conversion.
17434
17435 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17436
17437 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17438
17439 * font.c (font_find_for_lface): Fix the handling of the return
17440 value of font_has_char.
17441 (Ffont_shape_text): Fix previous change.
17442
17443 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17444 (fontset_ref_and_range): Delete it.
17445 (fontset_find_font): Call char_table_ref_and_range instead of
17446 FONTSET_REF_AND_RANGE.
17447 (make_fontset): Don't setup font groups of Latin here.
17448 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17449 (new_fontset_from_font): Make the specified font the default for
17450 all Latin characters.
17451
17452 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17453
17454 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17455 is on a window system before accessing the fontset of the frame.
17456
17457 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17458
17459 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17460
17461 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17462 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17463
17464 * font.c (Ffont_shape_text): If the font driver doesn't have a
17465 shaper function, make zero-width glyphs to have at least one-pixel
17466 width. Fix setting of `to' field of glyphs.
17467
17468 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17469
17470 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17471 glyphs.
17472
17473 * font.h (struct font_driver): Improve docstring of member `shape'.
17474
17475 2008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * composite.c (syms_of_composite): Fix docstring of
17478 auto-composition-function.
17479
17480 * font.h (LGLYPH_SIZE): New macro.
17481
17482 * font.c (Ffont_fill_gstring): Stop filling when a character not
17483 supported by the font is found.
17484 (Ffont_shape_text): When a shape callback function returns nil,
17485 try at most two more times with larger gstring.
17486 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17487
17488 * xdisp.c (handle_auto_composed_prop): Change the argument to
17489 auto-composition-function.
17490
17491 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17492 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17493 Lispy glyph and store it in the lgstring.
17494
17495 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17496
17497 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17498
17499 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17500
17501 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17502
17503 * fontset.c (Vfont_encoding_charset_alist): New variable.
17504 (syms_of_fontset): DEFVAR it.
17505 (reorder_font_vector, fontset_find_font): Optimize for the case of
17506 no need of reordering.
17507 (face_for_char): Map the charset property by
17508 Vfont_encoding_charset_alist.
17509
17510 2008-02-01 Jason Rumney <jasonr@gnu.org>
17511
17512 * w32font.c (logfonts_match): Don't check adstyle here.
17513 (font_matches_spec): Check here against physical font instead.
17514 (add_font_entity_to_list): Avoid some substitutions.
17515
17516 * font.c (font_parse_fcname): Default weight and slant to normal.
17517 (font_score): Prefer normal fonts if weight or slant unspecified.
17518 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17519 match freetype scores.
17520
17521 2008-02-01 Jason Rumney <jasonr@gnu.org>
17522
17523 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17524 font, as it may have been deleted.
17525 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17526 most common hyphenless variation.
17527 (logfonts_match): Check generic family.
17528 (font_matches_spec): Don't check generic family here.
17529 (fill_in_logfont): Set generic family based on adstyle.
17530
17531 * w32font.h (w32font_get_cache): Update declaration.
17532
17533 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17534
17535 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17536
17537 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17538 If none of the new drivers are available, call font_update_drivers
17539 with the old drivers.
17540
17541 * w32font.c (w32font_get_cache): Adjust the argument type.
17542
17543 * xfont.c (xfont_get_cache): Adjust the argument type.
17544
17545 * font.h (struct font_driver): Change argument type of get_cache.
17546
17547 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17548
17549 * font.c (Ffont_get): Fix arguments to Fassoc.
17550 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17551 (font_clear_cache): New function.
17552 (font_list_entities, font_matching_entity): Use font_get_cache.
17553 (font_update_drivers): Call font_clear_cache when finishing a driver.
17554
17555 * fontset.c (fontset_find_font): Fix previous change.
17556
17557 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17558
17559 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17560 dpyinfo->font_table.
17561 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17562 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17563
17564 * font.c (font_at): Handle the case that the arg C is negative.
17565 Handle the unibyte case.
17566 (Ffont_at): Call font_at with the arg C -1.
17567
17568 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17569 the position here, and call font_at with the arg C -1.
17570 Don't check the range of the existing composition at the point.
17571
17572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17573
17574 * fontset.c (fontset_add): New args charset_id and family.
17575 Change caller.
17576 (load_font_get_repertory, fontset_find_font): Assume that
17577 font_spec is always a font-spec object.
17578 (Fset_fontset_font): Always store a font-spec object in a fontset.
17579
17580 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17581 instead of get_property_and_range.
17582
17583 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17584
17585 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17586 (xftfont_open): Don't keep locking face.
17587 (xftfont_close): Don't unlock face.
17588 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17589
17590 * fontset.c (fontset_find_font): Don't prefer a font of
17591 supplementary charset.
17592
17593 2008-02-01 Kenichi Handa <handa@m17n.org>
17594
17595 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17596 script, langsys_tag to langsys, new member script.
17597 (OTF_TAG_STR): Terminate by '\0'.
17598 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
17599 listing to the script specified in that property. Fix arg to
17600 OTF_check_features.
17601
17602 2008-02-01 Jason Rumney <jasonr@gnu.org>
17603
17604 * w32font.h: New file.
17605
17606 * w32font.c: Include it.
17607 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17608 (w32font_open): Set owning_frame.
17609 (w32font_text_extents): Use owning_frame.
17610 (struct font_callback_data): Add opentype_only field.
17611 (add_font_entity_to_list): Use it to filter fonts.
17612 Don't check against full name.
17613 (w32font_list_internal): New function.
17614 (w32font_list): Use it.
17615 (w32font_match_internal): New function.
17616 (w32font_match): Use it.
17617 (w32font_open_internal): New function.
17618 (w32font_open): Use it.
17619 (w32font_get_cache, w32font_close, w32font_has_char)
17620 (w32font_encode_char, w32font_text_extents, w32font_draw):
17621 Make non-static.
17622
17623 * makefile.w32-in (w32font.o): Depend on w32font.h.
17624
17625 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17626
17627 * charset.c (Fdefine_charset_internal): Record a supplementary
17628 charset at the tail of Vcharset_order_list.
17629
17630 * font.c (Ffont_shape_text): Fix the return value.
17631
17632 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17633
17634 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17635
17636 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17637
17638 * ftfont.c (struct OpenTypeSpec): New struct.
17639 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17640 (ftfont_get_open_type_spec): New function.
17641 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17642
17643 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17644
17645 2008-02-01 Jason Rumney <jasonr@gnu.org>
17646
17647 * w32font.c (add_font_entity_to_list): Compare only the beginning
17648 of full name.
17649
17650 2008-02-01 Kenichi Handa <handa@m17n.org>
17651
17652 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17653 Never return HANDLED_RECOMPUTE_PROPS.
17654
17655 2008-02-01 Kenichi Handa <handa@m17n.org>
17656
17657 * font.c (font_gstring_produce): Delete it.
17658
17659 * composite.h (COMPOSITION_METHOD):
17660 Handle COMPOSITION_WITH_GLYPH_STRING.
17661
17662 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17663
17664 * xfont.c (Qx): Delete.
17665 (syms_of_xfont): Don't initialize Qx.
17666
17667 * composite.h (enum composition_method):
17668 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17669
17670 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17671
17672 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17673 (choose_face_font): Accept new form of font-spec.
17674
17675 * frame.h (font_driver_list): Declare it unconditionally.
17676 (struct frame): Define members font_driver_list and font_data_list
17677 unconditionally.
17678
17679 * fontset.c: Include "font.h" unconditionally.
17680 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17681 (Fset_fontset_font): Accept a font-spec object.
17682
17683 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17684 PIXEL_SIZE part a wild card.
17685
17686 * dispextern.h (struct glyph_string): Define members clip and
17687 num_clips unconditionally.
17688 (struct face): Define members font_info and extra unconditionally.
17689
17690 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17691 ftfont_info only when HAVE_LIBOTF is defined.
17692
17693 2008-02-01 Andreas Schwab <schwab@suse.de>
17694
17695 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17696 and end.
17697
17698 2008-02-01 Jason Rumney <jasonr@gnu.org>
17699
17700 * w32font.c (w32font_driver): Add new fields.
17701
17702 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17703
17704 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17705 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17706 (LIBES): Add @M17N_FLT_CFLAGS@.
17707
17708 * composite.c (compose_text): Don't treat the new style
17709 composition specially.
17710
17711 * emacs.c (main): Call syms_of_font unconditionally.
17712
17713 * font.h (FONT_ENTITY_NOT_LOADABLE)
17714 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17715 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17716 (struct font_driver): New member shape.
17717 (font_registry_charsets): Extern it.
17718 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17719 (font_otf_capability, font_drive_otf): Delete their externs.
17720
17721 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17722 (font_charset_alist, font_registry_charsets): Move from xfont.c
17723 and rename.
17724 (font_prop_validate_otf): New function.
17725 (font_property_table): Register it for QCotf.
17726 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17727 (font_drive_otf): Delete.
17728 (font_prepare_composition): New arg F. Adjust for the change of
17729 lispy gstring.
17730 (font_find_for_lface): New arg C.
17731 (font_load_for_face): Adjust for the change of font_find_for_lface.
17732 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17733 lispy gstring.
17734 (Ffont_shape_text): New function.
17735 (Fopen_font): If the font size is not given, use 12-pixel.
17736 (Ffont_at): New arg STRING.
17737 (syms_of_font): Initalize font_charset_alist.
17738 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17739 conditionally.
17740
17741 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17742 fonts of the same font-spec. Change the format of RFONT-DEF.
17743 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17744 Adjust for the change of RFONT-DEF.
17745 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17746
17747 * ftfont.h: New file.
17748
17749 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17750 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17751 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17752 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17753 font_otf_capability and font_drive_otf, set ftfont_shape.
17754 (ftfont_list): Adjust for the change of :otf property value.
17755 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17756 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17757 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17758 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17759 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17760 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17761
17762 * w32term.c (x_draw_composite_glyph_string_foreground):
17763 Adjust for the change of lispy gstring.
17764
17765 * xdisp.c (handle_composition_prop): Adjust for the change of
17766 lispy gstring. Call a function for auto-composition with the
17767 third arg it->window.
17768 (fill_composite_glyph_string): Adjust for the change of lispy string.
17769 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17770
17771 * xfaces.c (set_font_frame_param): Adjust for the change of
17772 font_find_for_lface.
17773
17774 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17775 (xfont_registry_charsets): Likewise. Change caller.
17776 (syms_of_xfont): Don't handle x_font_charset_alist.
17777
17778 * xftfont.c: Include "ftfont.h".
17779 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17780 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17781 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17782 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17783 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17784 Set xftfont_driver.shape to xftfont_shape.
17785
17786 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17787 the change of lispy gstring.
17788
17789 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17790
17791 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17792
17793 2008-02-01 Jason Rumney <jasonr@gnu.org>
17794
17795 * w32font.c (w32font_draw): Fill background manually.
17796
17797 2008-02-01 Jason Rumney <jasonr@gnu.org>
17798
17799 * font.c (Qfontp): Remove unused symbol.
17800 (QCantialias): New symbol.
17801 (syms_of_font): Define it.
17802 (font_property_table): Set a validator for QCantialias.
17803
17804 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17805 Define if not already.
17806 (QCfamily): Share with xfaces.c.
17807 (Qstandard, Qsubpixel, Qnatural): New symbols.
17808 (syms_of_w32font): Define them. Don't define QCfamily here.
17809 (w32_antialias_type, lispy_antialias_type): New functions.
17810 (w32_enumfont_pattern_entity): New arg requested_font.
17811 Set antialias parameter if non-default was requested.
17812 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17813
17814 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17815
17816 * lread.c (read1): Undo the previous change.
17817
17818 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17819
17820 * frame.c (Fdelete_frame): Call font_update_drivers only when
17821 USE_FONT_BACKEND is defined.
17822
17823 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17824
17825 * font.h (struct font_bitmap): New member bits_per_pixel.
17826 (struct font_driver): New members start_for_frame and end_for_frame.
17827 (struct font_data_list): New struct.
17828 (font_put_frame_data, font_get_frame_data): Extern them.
17829
17830 * frame.h (struct frame): New member font_data_list.
17831
17832 * font.c (font_update_drivers): Call driver->start_for_frame and
17833 driver->end_for_frame at proper timings.
17834 (font_put_frame_data, font_get_frame_data): New functions.
17835 (Ffont_spec): Add usage in the docstring.
17836
17837 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17838 (Fdelete_frame): Call font_update_drivers.
17839
17840 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17841 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17842 (xftfont_get_xft_draw): New function.
17843 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17844 (xftfont_end_for_frame): New function.
17845 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17846
17847 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17848 Change argument. Cache GCs in the per-frame data.
17849 (struct ftxfont_frame_data): New struct.
17850 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17851 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17852 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17853 (ftxfont_end_for_frame): New function.
17854 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17855
17856 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17857
17858 2008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * xselect.c (Vselection_coding_system)
17861 (Vnext_selection_coding_system): Delete them.
17862 (syms_of_xselect): Don't declare selection-coding-system and
17863 next-selection-coding-system. They are declared in select.el.
17864
17865 2008-02-01 Jason Rumney <jasonr@gnu.org>
17866
17867 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17868
17869 * w32fns.c: Include imm.h.
17870 (get_composition_string_fn, get_ime_context_fn): New optional
17871 system functions.
17872 (globals_of_w32fns): Load them from imm32.dll.
17873 (ignore_ime_char): New flag.
17874 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17875 WM_IME_ENDCOMPOSITION messages.
17876
17877 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17878 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17879
17880 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17881
17882 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17883 (READCHAR_REPORT_MULTIBYTE): New macro.
17884 (readchar): New 2nd arg MULTIBYTE.
17885 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17886 Make symbol's name multibyte according to the multibyteness of the
17887 source.
17888
17889 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17890
17891 * xfaces.c (face_for_overlay_string): Call lookup_face with
17892 correct arguments (fix of synching with the trunk).
17893
17894 2008-02-01 Kenichi Handa <handa@m17n.org>
17895
17896 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17897 (font_prop_validate_non_neg, font_prop_validate_spacing):
17898 Delete argument prop_index.
17899 (font_property_table): Change arguments to validater. Change Callers.
17900 (font_lispy_object): Delete.
17901 (font_at): Use font_find_object instead fo font_lispy_object.
17902
17903 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17904
17905 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17906 and file names.
17907
17908 2008-02-01 Jason Rumney <jasonr@gnu.org>
17909
17910 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17911 (font_matches_spec): Remove debug output.
17912 (add_font_entity_to_list): Avoid using substituted fonts.
17913
17914 2008-02-01 Jason Rumney <jasonr@gnu.org>
17915
17916 * doc.c (Fsnarf_documentation):
17917 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17918
17919 2008-02-01 Miles Bader <miles@gnu.org>
17920
17921 * dispextern.h (struct glyph_row): Only define "clip" field if
17922 HAVE_WINDOW_SYSTEM is defined.
17923
17924 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17925
17926 Fix up multi-tty merge.
17927
17928 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17929 and indentation.
17930
17931 * xfaces.c (free_realized_face, clear_face_gcs):
17932 Include font_done_for_face in the input_blocked section, just in case.
17933
17934 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17935 (get_char_face_and_encoding): Undo last change and remove the *other*
17936 duplicate definition (i.e. keep the one that's better scoped and that
17937 includes code for the font-backend).
17938
17939 * terminal.c (create_terminal): Default keyboard_coding to
17940 `no-conversion' and terminal_coding to `undecided'.
17941
17942 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17943
17944 * fontset.c (free_realized_fontsets): Check that the table entry does
17945 contain a fontset before trying to compare it to `base'.
17946
17947 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17948 syms_of_charset, and syms_of_coding earlier because init_window_once
17949 now needs Vcoding_system_hash_table to be setup.
17950
17951 * coding.h (default_buffer_file_coding): Remove.
17952
17953 * coding.c (default_buffer_file_coding): Remove.
17954 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17955 than ->symbol, and use the terminal-local coding system.
17956 (syms_of_coding): Don't setup the coding-systems that are not
17957 terminal-local.
17958 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17959
17960 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17961 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17962
17963 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17964 in chartab.c and were re-added here by mistake.
17965 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17966
17967 * doc.c (Fsnarf_documentation):
17968 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17969 src to etc.
17970
17971 * ChangeLog.10: Add mistakenly removed entry.
17972
17973 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17974
17975 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17976
17977 2008-02-01 Miles Bader <miles@gnu.org>
17978
17979 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17980 Add extra args to FACE_FOR_CHAR.
17981
17982 2008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17985 in sequence.
17986
17987 * chartab.c (map_sub_char_table, map_char_table): If the range
17988 contains just one character, call the function with that character
17989 even if the depth is not 3.
17990
17991 2008-02-01 Jason Rumney <jasonr@gnu.org>
17992
17993 * w32font.c (w32font_text_extents): Calculate metrics for the
17994 whole string.
17995
17996 2008-02-01 Jason Rumney <jasonr@gnu.org>
17997
17998 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17999
18000 2008-02-01 Jason Rumney <jasonr@gnu.org>
18001
18002 * w32term.c (x_set_glyph_string_clipping): Use
18003 get_glyph_string_clip_rects.
18004 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18005 Adjust for the change of struct glyph_string.
18006
18007 * w32font.c (w32font_draw): Do clipping here.
18008
18009 2008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 * xftfont.c (xftfont_draw): Adjust for the change of struct
18012 glyph_string.
18013
18014 * xterm.c (x_set_glyph_string_clipping): Use
18015 get_glyph_string_clip_rects.
18016 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18017 Adjust for the change of struct glyph_string.
18018
18019 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18020 the resulting clip(s}.
18021 (expose_overlaps): Add arg r. Change callers. Set it to
18022 row->clip temporarily.
18023 (expose_window): Redraw rows overlapping the exposed area.
18024
18025 * dispextern.h (struct glyph_row): New member clip.
18026 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18027 clip_height, new member clip, and num_clips.
18028
18029 2008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * data.c (Fchar_or_string_p): Fix docstring.
18032
18033 2008-02-01 Kenichi Handa <handa@m17n.org>
18034
18035 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18036 create a temporary XftDraw object.
18037
18038 2008-02-01 Kenichi Handa <handa@m17n.org>
18039
18040 * font.c (Ffontp): Fix docstring.
18041
18042 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18043 strong evidence of ISO-2022.
18044
18045 2008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18048 SYNTAX_ENTRY_FOLLOW_PARENT.
18049
18050 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18051
18052 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18053 its type.
18054 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18055 Update to the new type of weak_hash_tables and next_weak.
18056
18057 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18058 a plain C pointer to Lisp_Hash_Table.
18059
18060 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18061 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18062 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18063 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18064 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18065 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18066 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18067 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18068 (GC_EQ): Remove since they've been identical to their non-GC_
18069 alter-egos ever since the markbit was eradicated.
18070
18071 * alloc.c:
18072 * buffer.c:
18073 * buffer.h:
18074 * data.c:
18075 * fileio.c:
18076 * filelock.c:
18077 * fns.c:
18078 * frame.h:
18079 * lisp.h:
18080 * macterm.c:
18081 * print.c:
18082 * process.c:
18083 * w32fns.c:
18084 * w32menu.c:
18085 * w32term.c:
18086 * xfns.c:
18087 * xmenu.c:
18088 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18089
18090 2008-02-01 Kenichi Handa <handa@m17n.org>
18091
18092 * chartab.c (map_sub_char_table): Make it work for the top-level
18093 char-table. Fix handling of parent char-table.
18094 (map_char_table): Adjust for the above change.
18095
18096 2008-02-01 Jason Rumney <jasonr@gnu.org>
18097
18098 * w32font.c (Qgdi): Rename from Qw32.
18099
18100 2008-02-01 Jason Rumney <jasonr@gnu.org>
18101
18102 * w32bdf.c (get_quoted_string): Make function static.
18103
18104 2008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18107 bigger ascent and descent than those of the font, use them as
18108 font's ascent and descent.
18109
18110 2008-02-01 Kenichi Handa <handa@m17n.org>
18111
18112 * Makefile.in (${lispsource}international/charprop.el): Move this
18113 target within "#ifdef HAVE_UNIDATA" and "#endif".
18114
18115 2008-02-01 Kenichi Handa <handa@m17n.org>
18116
18117 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18118 (shortlisp): Add ../lisp/language/tai-viet.el.
18119
18120 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
18121
18122 * Makefile.in (${lispsource}international/charprop.el): Depend on
18123 temacs${EXEEXT}.
18124
18125 2008-02-01 Jason Rumney <jasonr@gnu.org>
18126
18127 * w32font.c (w32font_close): Delete the GDI font object.
18128
18129 * w32menu.c: Include character.h.
18130
18131 * w32proc.c: Likewise.
18132
18133 * w32select.c: Likewise.
18134
18135 * makefile.w32-in (w32proc.o): Depend on character.h.
18136
18137 2008-02-01 Jason Rumney <jasonr@gnu.org>
18138
18139 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18140
18141 * w32menu.c (syms_of_w32menu): Likewise.
18142
18143 * w32proc.c (syms_of_ntproc): Likewise.
18144
18145 * w32select.c (syms_of_w32select): Likewise.
18146
18147 * w32term.c (syms_of_w32term): Likewise.
18148
18149 2008-02-01 Jason Rumney <jasonr@gnu.org>
18150
18151 * w32font.c (w32font_draw): Delete brush after using it.
18152
18153 2008-02-01 Jason Rumney <jasonr@gnu.org>
18154
18155 * w32font.c (w32font_open): Don't set font_idx.
18156 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18157 to font settings.
18158 (w32font_draw): Fill background explicitly.
18159
18160 2008-02-01 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32term.c (w32_initialize): Don't call w32font_initialize.
18163
18164 * w32font.c (w32font_info): Remove subranges.
18165 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18166 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18167 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18168 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18169 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18170 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18171 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18172 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18173 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18174 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18175 New symbols.
18176 (font_callback_data): New struct.
18177 (w32font_list, w32font_match): Use it.
18178 (w32font_open): Don't populate subranges.
18179 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18180 (w32font_encode_char): Always return unicode code-point as-is.
18181 (w32font_text_extents): Supply a transformation matrix to
18182 GetGlyphOutline. Never look up by glyph index. Avoid looping
18183 twice. Use unicode version of GetTexExtentPoint32 instead of
18184 glyph index version.
18185 (set_fonts_frame): Remove.
18186 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18187 set frame parameter. Use backward compatible fake foundries.
18188 Save generic family in extra slot under QCfamily. Make width slot
18189 constant. Save QCspacing value. Save list of scripts instead of
18190 binary subranges.
18191 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18192 (add_font_entity_to_list): Use font_callback_data struct. Filter
18193 unwanted fonts.
18194 (add_one_font_entity_to_list): Use font_callback_data struct.
18195 (w32_registry): Default to iso10646_1.
18196 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18197 string font registries. Don't fill in font name if it is a generic
18198 family name, fill family instead. Use spacing, family and script
18199 extra info to fill pitch, family and charset fields.
18200 (list_all_matching_fonts): Use font_callback_data struct.
18201 (unicode_range_for_char): Remove.
18202 (font_supported_scripts): New function.
18203 (w32font_initialize): Remove.
18204 (syms_of_w32font): Update which symbols are defined.
18205
18206 2008-02-01 Jason Rumney <jasonr@gnu.org>
18207
18208 * font.c (font_pixel_size): Reverse assq_no_quit args.
18209
18210 * w32term.h (FONT_WIDTH): Report max width, not average.
18211 (FONT_MAX_WIDTH): Remove.
18212 (FONT_AVG_WIDTH): New macro.
18213
18214 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18215 redefinition of FONT_WIDTH.
18216
18217 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18218 (w32_cache_char_metrics): Use FONT_WIDTH.
18219
18220 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18221
18222 2008-02-01 Jason Rumney <jasonr@gnu.org>
18223
18224 * w32font.c (w32font_open): Make lfHeight negative.
18225
18226 * w32fns.c (x_default_font_parameter): Use new style font name.
18227 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18228
18229 2008-02-01 Jason Rumney <jasonr@gnu.org>
18230
18231 * w32font.c (QCsubranges): New symbol.
18232 (w32font_open, w32font_has_char): Get subranges from subproperty
18233 of extra.
18234 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18235 (syms_of_w32font): Define :subranges symbol.
18236
18237 * font.c (font_put_extra): Expose externally.
18238
18239 * font.h (font_put_extra): Move declaration from font.c.
18240
18241 * font.c (Ffont_get): Use font driver to determine otf capability.
18242 (adjust_anchor): Check if driver defines anchor_point before using.
18243
18244 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18245 (w32font_draw): Use options.
18246 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18247 Fix detection of truetype fonts.
18248 (registry_to_w32_charset): Handle charsets other than iso8859-1
18249 expressed as lisp symbols.
18250 (w32_registry): Express charset as lisp symbol.
18251 (fill_in_logfont): Reverse pixel and point height logic.
18252 Don't set width here. Set quality to default.
18253
18254 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18255 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18256
18257 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18258 Remove redundant loop and allocation.
18259
18260 * makefile.w32-in (font.o, w32font.o): New objects.
18261 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18262 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18263
18264 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18265 STORE_XCHARB a valid l-value.
18266
18267 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18268 calculations for non-Truetype fonts.
18269 (x_draw_glyph_string): Sync with xterm.c.
18270 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18271 Remove redundant code.
18272 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18273
18274 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18275 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18276
18277 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18278 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18279
18280 * w32font.c: New file for w32 font backend.
18281
18282 2008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * term.c: Don't include "buffer.h" twice.
18285
18286 2008-02-01 Kenichi Handa <handa@m17n.org>
18287
18288 * character.c (Funibyte_string): New function.
18289 (syms_of_character): Defsubr it.
18290
18291 2008-02-01 Jason Rumney <jasonr@gnu.org>
18292
18293 * w32term.c [USE_FONT_BACKEND]:
18294 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18295 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18296 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18297 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18298 (x_free_frame_resources): Sync with xterm.c.
18299
18300 2008-02-01 Andreas Schwab <schwab@suse.de>
18301
18302 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18303 char-table size.
18304
18305 2008-02-01 Kenichi Handa <handa@m17n.org>
18306
18307 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18308
18309 2008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18312 font_otf_gpos, add font_drive_otf.
18313
18314 * fontset.c (fontset_find_font): Pay attention to font size
18315 specified for a font.
18316 (reorder_font_vector): Check contents of font_def.
18317
18318 * font.c (struct otf_list): Delete it.
18319 (otf_list): Make it a lisp variable.
18320 (otf_open): Use lispy otf_list.
18321 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18322 (check_otf_features): New function.
18323 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18324 New functions.
18325 (font_drive_otf): New function merging font_otf_gsub and
18326 font_otf_gpos.
18327 (font_open_for_lface): New arg spec. Change argument order.
18328 (font_load_for_face): Adjust for the change of font_open_for_lface.
18329 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18330 Ffont_otf_gpos.
18331 (syms_of_font): Staticpro otf_list. Delete defsubr of
18332 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18333
18334 * xfaces.c (set_font_frame_param): Adjust for the change of
18335 font_open_for_lface.
18336
18337 * font.h (font_open_for_lface): Adjust prototype.
18338 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18339 member otf_drive.
18340 (font_otf_gsub, font_otf_gpos): Delete externs.
18341 (font_drive_otf): Extern it.
18342
18343 2008-02-01 Kenichi Handa <handa@m17n.org>
18344
18345 * font.c (font_at): If the window W is not on a window system,
18346 return Qnil.
18347
18348 * coding.c (produce_chars, encode_coding): Don't call
18349 insert_from_gap if no characters to produce.
18350
18351 2008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18354 Fclear_face_cache.
18355
18356 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18357
18358 2008-02-01 Miles Bader <miles@gnu.org>
18359
18360 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18361 Parse "--disable-font-backend" option.
18362 (standard_args): Add "--disable-font-backend" option.
18363
18364 2008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * fontset.c (fontset_find_font): New function.
18367 (fontset_font): Use fontset_find_font.
18368 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18369 Register the specified font for all Latin characters.
18370 (new_fontset_from_font): Register the specified font for all Latin
18371 characters.
18372 (dump_fontset): For a realized fontset, include the base fontset
18373 name in the returned vector.
18374
18375 2008-02-01 Kenichi Handa <handa@m17n.org>
18376
18377 * character.h (CHAR_STRING): Cast C to unsigned on calling
18378 char_string.
18379
18380 * character.c (char_string): Type of arg C changed to unsigned.
18381 Signal an error if C is an invalid character code.
18382
18383 * editfns.c (general_insert_function, Fchar_to_string):
18384 Use CHARACTERP, not INTEGERP.
18385
18386 2008-02-01 Kenichi Handa <handa@m17n.org>
18387
18388 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18389 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18390
18391 * regex.c (analyse_first): Fix for multibyte characters in "case
18392 charset:" and "case categoryspec:".
18393
18394 2008-02-01 Andreas Schwab <schwab@suse.de>
18395
18396 * Makefile.in (LIBES): Move standard libraries to the end.
18397
18398 2008-02-01 Kenichi Handa <handa@m17n.org>
18399
18400 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18401 nonzero, don't shrink the buffer nextb.
18402
18403 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18404
18405 * coding.c (coding_alloc_by_making_gap): New arg offset.
18406 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18407 offset.
18408 (decode_coding_iso_2022): Update coding->safe_charsets.
18409 (decode_coding_gap): Temporarily set
18410 current_buffer->text->inhibit_shrinking to 1.
18411
18412 2008-02-01 Kenichi Handa <handa@m17n.org>
18413
18414 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18415 indexing into elements of s->cmp and s->char2b.
18416
18417 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
18418
18419 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18420
18421 2008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18424 target_multibyte instead of multibyte.
18425 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18426 (bcmp_translate): Change the argument name from multibyte to
18427 target_multibyte.
18428
18429 2008-02-01 Kenichi Handa <handa@m17n.org>
18430
18431 These changes are to compile a regexp into a pattern that can be
18432 used both for multibyte and unibyte targets.
18433
18434 * Makefile.in (search.o): Depend on charset.h.
18435
18436 * character.c (multibyte_char_to_unibyte_safe): New function.
18437
18438 * search.c: Include "charset.h".
18439 (compile_pattern_1): Delete argument multibyte. Don't set
18440 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18441 (compile_pattern): Don't compare cp->buf.target_multibyte.
18442 Compare cp->buf.charset_unibyte.
18443 (compile_pattern): Set cp->buf.target_multibyte.
18444
18445 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18446
18447 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18448
18449 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18450 multibyte. Change callers.
18451 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18452 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18453 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18454 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18455 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18456 (regex_compile): Make the compiled pattern usable both for
18457 multibyte and unibyte targets.
18458 (analyse_first): Make the fastmap usable both for multibyte and
18459 unibyte targets.
18460 (TRANSLATE_VIA_MULTIBYTE): Delete.
18461 (re_match_2_internal): Pay attention to the case that the
18462 multibyteness of bufp and target may be different.
18463
18464 2008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18467 empty box occupy at least one column width.
18468
18469 2008-02-01 Miles Bader <miles@gnu.org>
18470
18471 * Makefile.in: Remove redundant HAVE_XFT clause.
18472
18473 2008-02-01 Kenichi Handa <handa@m17n.org>
18474
18475 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18476
18477 2008-02-01 Kenichi Handa <handa@m17n.org>
18478
18479 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18480 being nil.
18481
18482 2008-02-01 Kenichi Handa <handa@m17n.org>
18483
18484 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18485
18486 2008-02-01 Kenichi Handa <handa@m17n.org>
18487
18488 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18489
18490 2008-02-01 Kenichi Handa <handa@m17n.org>
18491
18492 * search.c (simple_search): Fix previous change.
18493
18494 2008-02-01 Kenichi Handa <handa@m17n.org>
18495
18496 * xftfont.c (ftfont_font_format): Extern declaration.
18497
18498 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18499
18500 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18501 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18502
18503 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18504 (ftfont_font_format): Fix previous change.
18505
18506 * font.h (Ffont_xlfd_name): EXFUN it.
18507
18508 * font.c (font_parse_xlfd): Fix the array size of `f'.
18509 (register_font_driver): Use EQ to compare driver->type.
18510
18511 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18512 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18513 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18514
18515 2008-02-01 Kenichi Handa <handa@m17n.org>
18516
18517 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18518 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18519
18520 2008-02-01 Kenichi Handa <handa@m17n.org>
18521
18522 * xfont.c (xfont_open): Set font->format.
18523
18524 * xftfont.c (xftfont_open): Set font->format.
18525
18526 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18527 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18528 (ftfont_open): Set font->format.
18529 (ftfont_font_format): New function.
18530
18531 * font.h (struct font): New member format.
18532
18533 * font.c (Qopentype): New variable.
18534 (syms_of_font): Defsym it.
18535 (Fquery_font): Change the format of the last element of the return
18536 value.
18537
18538 2008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18541 last resort.
18542
18543 2008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * coding.c (detect_coding_charset): Fix detection of multi-byte
18546 charset.
18547
18548 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18549
18550 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18551
18552 2008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * xdisp.c (get_next_display_element): Set it->face_id for the
18555 first component of a composition.
18556 (x_produce_glyphs): Check if the font is changed or not for composition.
18557
18558 2008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * fontset.c (Qlatin): New variable.
18561 (syms_of_fontset): Define it as a lisp symbol.
18562 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18563
18564 2008-02-01 Kenichi Handa <handa@m17n.org>
18565
18566 * font.c (font_unparse_fcname): Pay attention to the case that
18567 some of font property is a null string.
18568
18569 2008-02-01 Kenichi Handa <handa@m17n.org>
18570
18571 * term.c: Include "composite.h".
18572 (encode_terminal_code): Output all components of composition.
18573 Check the size of encode_terminal_src.
18574 (produce_glyphs): For composition, call produce_composite_glyph.
18575 (append_composite_glyph, produce_composite_glyph): New functions.
18576
18577 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18578 is not found, get font_info from the current ascii face.
18579
18580 2008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18583 buffer-file-name to Qnil before calling insert_from_buffer.
18584
18585 * font.c (font_unparse_fcname): Pay attention to the case that
18586 foundry is a null string.
18587
18588 2008-02-01 Kenichi Handa <handa@m17n.org>
18589
18590 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18591
18592 * font.c (Qunicode_sip): New variable.
18593 (syms_of_font): Declare it as a Lisp symbol.
18594
18595 * font.h (Qunicode_sip): Extern it.
18596
18597 2008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * composite.c (get_composition_id): Pay attention to TAB component.
18600
18601 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18602 TAB. Adjust for the change of s->char2b which always points to
18603 the first element of allocated memory.
18604
18605 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18606
18607 * xdisp.c (handle_composition_prop): Set it->c to the first
18608 non-TAB component.
18609 (fill_composite_glyph_string): Change argument.
18610 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18611 (x_produce_glyphs): Fix handling of left/right padding.
18612
18613 2008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * coding.c (detect_coding_system): Fix for handling off
18616 inhibit_iso_escape_detection. Fix for the case that no coding
18617 system is defined for a specific coding category.
18618
18619 2008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 * font.c (font_matching_entity): Delete unused local var.
18622
18623 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18624 opening a font.
18625
18626 * fileio.c (Finsert_file_contents): On recovering a file, assume
18627 Unix-like eol.
18628 (choose_write_coding_system): On auto-saving a file, force
18629 Unix-like eol.
18630
18631 * coding.c (setup_coding_system): Fix setting of
18632 coding->common_flags based on eol_type.
18633 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18634 inherit from it.
18635
18636 2008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * alloc.c (NSTATICS): Increas to 0x600.
18639
18640 2008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18643 (ftfont_list): Don't check :name property.
18644 (ftfont_match): New function.
18645 (ftfont_pattern_entity): If the pattern doesn't contain
18646 FC_SPACING, don't assume FC_MONO.
18647
18648 * font.h (struct font_driver): New member `match'.
18649 (font_update_drivers): Adjust prototype.
18650
18651 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18652 property of FONT.
18653 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18654 them unconditionally.
18655 (font_matching_entity): New function.
18656 (font_open_by_name): Try font_matching_entity if exact match is
18657 not found.
18658 (font_update_drivers): Delete the arg FONT. Return a list of
18659 actually used backends. Don't free faces, font caches here.
18660 Don't store data in frame parameters. Don't call x_set_font.
18661 (Ffont_spec): Store :name property as is.
18662 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18663 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18664 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18665 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18666 Call font->driver->otf_gsub instead of font_otf_gsub.
18667
18668 * frame.c (x_set_font_backend): Do more works that were done in
18669 font_update_drivers before.
18670
18671 * xfont.c (xfont_match): New function.
18672 (xfont_driver): Set xfont_driver.match to xfont_match.
18673 (xfont_draw): Set font in GC if necessary.
18674
18675 * ftxfont.c (ftxfont_match): New function.
18676 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18677
18678 * xftfont.c (xftfont_match): New function.
18679 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18680
18681 2008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * font.h (struct font): New member scalable.
18684 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18685 (font_otf_gsub): Adjust prototype.
18686
18687 * font.c (font_otf_capability): Fix handling of the default langsys.
18688 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18689 Check the contents of SPEC.
18690 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18691 (check_gstring): New function.
18692 (REPLACEMENT_CHARACTER): New macro.
18693 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18694 glyph codes of GSTRING.
18695 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18696 (font_prepare_composition): Set cmp->glyph_len.
18697 (font_open_entity): Set font->scalable.
18698 (Ffont_get): Handle :otf property.
18699 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18700 functions.
18701 (Fquery_font): Use font->font.full_name.
18702 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18703 Sfont_otf_alternates.
18704
18705 * ftfont.c (ftfont_open): Set font->font.full_name and
18706 font->font.name properly. Fix calculation of font->font.height
18707 and font->min_width.
18708
18709 * ftxfont.c (ftxfont_create_gcs): New function.
18710 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18711 (ftxfont_draw_backgrond): Fix filling region.
18712 (ftxfont_default_fid): New function.
18713 (ftxfont_open): Set xfont->fid to the return value of
18714 ftxfont_default_fid.
18715 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18716 (ftxfont_done_face): Free only GCs that are created by
18717 ftxfont_create_gcs.
18718 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18719
18720 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18721 Clip to src->width, etc (not src->clip_XXX).
18722
18723 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18724 FontBackend frame parameter.
18725
18726 2008-02-01 Kenichi Handa <handa@m17n.org>
18727
18728 * font.h (struct font_driver_list): New member `on'.
18729 (Fclear_font_cache): EXFUN it.
18730 (font_update_drivers): Extern it.
18731
18732 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18733 (font_list_entities): Check driver_list->on.
18734 (register_font_driver): Initalize `on' member to 0.
18735 (font_update_drivers): New function.
18736 (Fclear_font_cache): Check driver_list->on.
18737
18738 * frame.h (Qfont_backend): Extern it.
18739 (x_set_font_backend): Extern it.
18740
18741 * frame.c (Qfont_backend): New variable.
18742 (frame_parms): New element for font-backend.
18743 (x_set_font_backend): New function.
18744
18745 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18746 FontBackend frame parameter.
18747 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18748 x_set_font_backend.
18749
18750 * xfont.c (xfont_list): Don't try listing by :name property if the
18751 name is not for XLFD.
18752
18753 2008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18756 (LGLYPH_SET_TO): New macros.
18757 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18758 element of G is vector or not.
18759 (font_at): Extern it.
18760
18761 * font.c: Include window.h.
18762 (font_lispy_object): New function.
18763 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18764 end of valid glyph.
18765 (font_close_object): Fix getting (struct font *).
18766 (font_at): New function.
18767 (Ffont_get): If FONT is a font-object, get entity from it.
18768 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18769 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18770 range check.
18771 (Ffont_at): New function.
18772 (syms_of_font): Defsubr Sfont_at.
18773
18774 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18775 before the entry for Qcomposition.
18776 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18777 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18778 the font in gstring.
18779 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18780 LGLYPH_FORM (g) to detect the end of valid glyph.
18781 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18782 we are composing with gstring.
18783
18784 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18785 Check if adjustment is vector or not.
18786
18787 * Makefile.in (font.o): Make it depends on window.h.
18788
18789 2008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18792 adjustment is vector or not.
18793
18794 2008-02-01 Miles Bader <miles@gnu.org>
18795
18796 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18797
18798 2008-02-01 Kenichi Handa <handa@m17n.org>
18799
18800 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18801 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18802 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18803
18804 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18805 (DEVICE_DELTA): Fix typo.
18806 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18807 LGLYPH format.
18808
18809 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18810 the change of LGLYPH format.
18811
18812 2008-02-01 Kenichi Handa <handa@m17n.org>
18813
18814 * ftfont.c (ftfont_list): Fix typo.
18815 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18816
18817 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18818
18819 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18820
18821 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18822 xftface_info is non-NULL.
18823
18824 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18825
18826 * ftfont.c (ftfont_list): Move misplaced #endif.
18827
18828 2008-02-01 Kenichi Handa <handa@m17n.org>
18829
18830 * ftfont.c (ftfont_list): Pay attention to the case that
18831 FC_CAPABILITY is not defined.
18832
18833 2008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * xftfont.c (xftfont_open): Set charset related members to -1.
18836
18837 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18838 QCname.
18839 (ftfont_open): Set charset related members to -1.
18840
18841 * fontset.c (Votf_script_alist): New variable.
18842 (syms_of_fontset): Initialize it.
18843 (fontset_font): Delete unused variable.
18844
18845 * fontset.h (Votf_script_alist): Extern it.
18846
18847 * font.c (font_find_for_lface): Optimize code.
18848
18849 * font.h (font_close_object, font_merge_old_spec): Extern them.
18850
18851 2008-02-01 Kenichi Handa <handa@m17n.org>
18852
18853 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18854 (syms_of_font): Initialize them.
18855 (font_pixel_size): Allow float value in dpi.
18856 (font_prop_validate_type): Delete.
18857 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18858 Change caller.
18859 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18860 (font_prop_validate_extra): Delete.
18861 (font_prop_validate_spacing): New function.
18862 (font_property_table): Add elements for all known properties.
18863 (get_font_prop_index): Rename from check_font_prop_name. New
18864 argument FROM. Change caller.
18865 (font_prop_validate): Validate all known properties.
18866 (font_put_extra): Delete argument force. Change caller.
18867 (font_expand_wildcards): Make it static. Fix the way of shrinking
18868 the possible range.
18869 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18870 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18871 Change caller.
18872 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18873 (font_parse_fcname): Delete argument merge. Fix parsing of point
18874 size. Don't validate properties values here. Change caller.
18875 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18876 (font_open_by_name): Delete unused variable.
18877 (Ffont_spec): Likewise. Validate property values.
18878 (Ffont_match_p): New function.
18879
18880 * font.h (QCscalable): Extern it.
18881 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18882
18883 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18884
18885 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18886 (xfont_list_pattern): New function.
18887 (xfont_list): Use xfont_list_pattern.
18888
18889 2008-02-01 Kenichi Handa <handa@m17n.org>
18890
18891 * font.h (Flist_fonts): EXFUN it.
18892
18893 2008-02-01 Jason Rumney <jasonr@gnu.org>
18894
18895 * w32term.c (w32_initialize): Add back smoothing_type and
18896 smoothing_enabled definitions.
18897
18898 2008-02-01 Kenichi Handa <handa@m17n.org>
18899
18900 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18901 s->face->font on determining underline position.
18902
18903 2008-02-01 Kenichi Handa <handa@m17n.org>
18904
18905 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18906 (font_has_char): Accept font-object too.
18907 (font_find_for_lface): Try at first with a size specified in face.
18908
18909 2008-02-01 Kenichi Handa <handa@m17n.org>
18910
18911 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18912 font_open_by_name.
18913
18914 2008-02-01 Kenichi Handa <handa@m17n.org>
18915
18916 * font.h (QCspacing, QCdpi): Extern them.
18917 (enum font_spacing): New enum.
18918 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18919
18920 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18921 (QCspacing, QCdpi): New variables.
18922 (syms_of_font): Initialize them.
18923 (font_pixel_size): New function.
18924 (font_put_extra): New function.
18925 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18926 in FONT_EXTRA.
18927 (font_parse_fcname): Handle enumerated values (e.g. bold).
18928 Fix handling font size. Add QCname property that contains only
18929 unknown properties.
18930 (font_score): Change argument. Change caller. Pay attention to
18931 FONT_PIXEL_SIZE_QUANTUM.
18932 (font_sort_entites, font_list_entities, font_find_for_lface)
18933 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18934 (Ffont_spec): Add QCname property that contains only unknown properties.
18935
18936 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18937 include weight in listing pattern, instead check weight of each
18938 listed font. Don't include scalable in pattern. Pay attention to
18939 FONT_PIXEL_SIZE_QUANTUM.
18940
18941 2008-02-01 Kenichi Handa <handa@m17n.org>
18942
18943 * font.c (font_parse_fcname): Fix parsing of point-size.
18944 (font_unparse_fcname): Produce symbolic names for style properties.
18945 (font_list_entities): Handle float size correctly.
18946 (font_open_by_name): Prefer `normal' property values if the name
18947 doesn't specify them.
18948
18949 * fontset.c (Finternal_char_font): Use font_get_name, not
18950 Ffont_xlfd_name.
18951
18952 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18953 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18954 pattern. Don't force scalable.
18955
18956 * xftfont.c (xftfont_open): For generating a name, start from
18957 96-byte buffer.
18958
18959 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18960
18961 * frame.h (x_new_fontset2): Fix prototype.
18962
18963 2008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * font.h (struct font_driver): Delete member parse_name.
18966 (font_match_p, font_get_spec, font_parse_fcname)
18967 (font_unparse_fcname): Extern them.
18968 (font_get_name): Adjust prototype.
18969
18970 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18971 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18972 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18973 unnecessary checks for weight, slant, and swidth.
18974 (font_parse_fcname): New function.
18975 (font_unparse_fcname): New function.
18976 (font_parse_name): New function.
18977 (font_match_p): New function.
18978 (font_get_name): Change return value to Lisp string.
18979 (font_get_spec): New function.
18980 (Qunspecified, Qignore_defface): Don't extern them.
18981 (font_find_for_lface): Assume that LFACE is fully specified.
18982 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18983 object, use it for FACE.
18984 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18985 driver->parse_name.
18986 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18987
18988 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18989 prototype.
18990
18991 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18992 argument F. Don't call Fnew_fontset. Instead, directly call
18993 make_fontset.
18994
18995 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18996
18997 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18998 of x_new_fontset2.
18999
19000 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19001 (Qsans__serif): New variables.
19002 (ftfont_generic_family_list): New variable.
19003 (syms_of_ftfont): Initialize the above variables.
19004 (ftfont_pattern_entity): Delete argument NAME.
19005 (ftfont_list_generic_family): New function.
19006 (ftfont_parse_name): Delete this function.
19007 (ftfont_list): Try generic family only when FcFontList found no font.
19008 (ftfont_list_family): Fix args to FcObjectSetBuild.
19009
19010 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19011 object in attrs[LFACE_FONT_INDEX].
19012 (set_lface_from_font_name): Cancel all changes for font-backend.
19013 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19014 function.
19015 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19016 font object in QCfont attribute.
19017 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19018 (realize_default_face) [USE_FONT_BACKEND]: Call
19019 set_lface_from_font_and_fontset.
19020
19021 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19022 "fixed", and signal error here if no suitable font was found.
19023
19024 * xfont.c (xfont_parse_name): Delete this function.
19025
19026 * xftfont.c (xftfont_open): Change coding style of error
19027 handling. Generate fontconfig's fontname pattern.
19028
19029 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19030 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19031
19032 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19033 Both args FONTSET and FONT_OBJECT must be existing ones.
19034
19035 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19036
19037 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19038
19039 2008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19042
19043 * font.h (struct font): Fix typo.
19044
19045 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19046 XLFD_XXX_INDEX.
19047 (enum xlfd_field_mask): New enum.
19048 (intern_font_field): Changed argument. Change caller. If digits
19049 are followed by non-digits, return a symbol.
19050 (font_expand_wildcards): New function.
19051 (font_parse_xlfd): Fix wildcard handling.
19052 (Ffont_spec): If :name is specified, reflect the info in the other
19053 properties.
19054
19055 * ftfont.c (ftfont_pattern_entity): Fix typo.
19056 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19057 locale.
19058
19059 2008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19062
19063 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19064 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19065 registry doesn't specify encoding part.
19066 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19067 (font_open_by_name): At first try parsing the name.
19068 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19069 as Lisp symbols.
19070
19071 * fontset.c (reorder_font_vector): Pay attention to the case that
19072 the 3rd element of font_def is nil.
19073 (fontset_font): For the default fontset, append one more fontset
19074 elements for a script-based font specification. Don't add script
19075 attribute on finding a font.
19076 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19077 font name.
19078 (fontset_ascii_font): If a font can't be opened, return nil.
19079
19080 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19081 (ftfont_pattern_entity): New function.
19082 (ftfont_get_cache): Assume that freetype_font_cache is already
19083 initialized.
19084 (ftfont_list): Handle the case that a file is specified in font
19085 name. Use ftfont_pattern_entity to generate entities.
19086 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19087 (syms_of_ftfont): Initialize freetype_font_cache.
19088
19089 * xftfont.c (xftfont_open): Make the font name fontconfig's
19090 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19091 (xftfont_close): Free font->font.name if not NULL.
19092
19093 * xfont.c (xfont_list): If script is specified for a font, return
19094 null_vector.
19095 (xfont_list_family): Declare argument type.
19096
19097 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19098 name, set LFACE_FONT (lface) to nil.
19099
19100 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19101 return Qnil.
19102
19103 2008-02-01 Kenichi Handa <handa@m17n.org>
19104
19105 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19106 (standard_args): Add "-enable-font-backend".
19107
19108 2008-02-01 Kenichi Handa <handa@m17n.org>
19109
19110 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19111 (struct xftdraw_list, xftdraw_list): Delete them.
19112 (register_xftdraw, check_xftdraw): Delete them.
19113 (xftfont_prepare_face): Don't call register_xftdraw.
19114 (xftfont_done_face): Don't call check_xftdraw.
19115 (xftfont_draw): Get background color only when with_background is
19116 nonzero.
19117
19118 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19119
19120 2008-02-01 Kenichi Handa <handa@m17n.org>
19121
19122 These changes are for the new font handling codes.
19123
19124 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19125 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19126 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19127 (FONTSRC, FONTOBJ): New variables.
19128 (obj): Add $(FONTOBJ).
19129 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19130 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19131 @LIBOTF_LIBS@.
19132 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19133 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19134
19135 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19136
19137 * character.h (Vscript_representative_chars): Extern it.
19138
19139 * character.c (Vscript_representative_chars): New variable.
19140 (syms_of_character): Declare it as a Lisp variable.
19141
19142 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19143 enable_font_backend is nonzero, accept the composition method
19144 COMPOSITION_WITH_GLYPH_STRING.
19145
19146 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19147 enumeration COMPOSITION_WITH_GLYPH_STRING.
19148
19149 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19150 members clip_x, clip_y, clip_width, and clip_height.
19151 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19152
19153 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19154 --enable-font-backend. Call syms_of_font.
19155
19156 * fns.c (assoc_no_quit): New function.
19157
19158 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19159 (face_for_font, new_fontset_from_font)
19160 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19161
19162 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19163 (fontset_font, fontset_ascii, face_for_char)
19164 (make_fontset_for_ascii_face, Ffont_info)
19165 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19166 is nonzero, use font-backend mechanism.
19167 (find_font_encoding): Make it non-static.
19168 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19169 New functions.
19170
19171 * frame.h (struct frame): New members resx and resy.
19172 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19173 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19174
19175 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19176 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19177
19178 * lisp.h (assoc_no_quit): Extern it.
19179
19180 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19181 Through out the file, use FONT_INFO_FROM_FACE instead of
19182 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19183 rif->per_char_metric.
19184 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19185 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19186 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19187 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19188 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19189 nonzero, use font-backend mechanism.
19190 (get_per_char_metric): New function.
19191
19192 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19193 (set_lface_from_font_name)
19194 (set_font_frame_param, free_realized_face)
19195 (prepare_face_for_display, clear_face_gcs)
19196 (Finternal_set_font_selection_order, realize_x_face)
19197 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19198 font-backend mechanism.
19199 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19200 (load_face_font) [USE_FONT_BACKEND]: Abort.
19201 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19202 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19203
19204 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19205 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19206 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19207 nonzero, register all available font drivers. Call
19208 x_default_font_parameter for deciding a font.
19209 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19210
19211 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19212 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19213 (x_set_glyph_string_clipping_exactly)
19214 (x_compute_glyph_string_overhangs)
19215 (x_draw_glyph_string_foreground)
19216 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19217 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19218 enable_font_backend is nonzero, use font-backend mechanism.
19219 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19220
19221 2008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19224 system_eol_type.
19225 (syms_of_coding): Initialize system_eol_type.
19226
19227 * process.c (Fset_process_coding_system): Inherit system's eol
19228 format if necessary.
19229
19230 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19231
19232 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19233
19234 2008-02-01 Kenichi Handa <handa@m17n.org>
19235
19236 * coding.c (decode_eol): Pay attention to buffer relocation in
19237 del_range_2.
19238 (decode_coding): Call decode_eol before restoring undo_list.
19239
19240 2008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * charset.c (Fdefine_charset_internal): Fix setting of
19243 emacs_mule_bytes.
19244
19245 2008-02-01 Kenichi Handa <handa@m17n.org>
19246
19247 * keyboard.c (read_char): Check if C is a character or not before
19248 looking up Vkeyboard_translate_table.
19249
19250 2008-02-01 Kenichi Handa <handa@m17n.org>
19251
19252 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19253 condition to terminate the loop.
19254
19255 2008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * coding.c (produce_composition): Compare charbuf[i] instead of
19258 args[i] against 0.
19259 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19260
19261 2008-02-01 Kenichi Handa <handa@m17n.org>
19262
19263 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19264 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19265 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19266 detect_coding.
19267 (emacs_mule_char): Handle old style (Emacs 20) component character
19268 of a composition.
19269 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19270 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19271 composition rule.
19272 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19273
19274 2008-02-01 Kenichi Handa <handa@m17n.org>
19275
19276 * coding.c (encode_coding_ccl): Allocate destination dynamically
19277 when necessary.
19278
19279 2008-02-01 Kenichi Handa <handa@m17n.org>
19280
19281 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19282 the loop. When quitted, show a proper error message.
19283
19284 2008-02-01 Kenichi Handa <handa@m17n.org>
19285
19286 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19287 src->clip_head and src->clip_tail temporarily instead of src->hl.
19288
19289 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19290 character sequence.
19291 (Fccl_execute_on_string): Use ASET, not XSET.
19292
19293 2008-02-01 Kenichi Handa <handa@m17n.org>
19294
19295 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19296
19297 2008-02-01 Kenichi Handa <handa@m17n.org>
19298
19299 * coding.c (decode_coding): Fix the condition of terminating the
19300 decoding loop.
19301
19302 2008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * data.c (Faset): On setting a character bigger than 255 in a
19305 unibyte string, signal an error instead of make the string multibyte.
19306
19307 2008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19310 made by a mapping table.
19311
19312 2008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19315 not.
19316 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19317 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19318
19319 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19320 s->face is NULL or not.
19321
19322 2008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19325 (x_draw_glyph_string): Fix drawing of right_overhang and
19326 left_overhang around/on cursor.
19327
19328 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19329
19330 2008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19333
19334 2008-02-01 Kenichi Handa <handa@m17n.org>
19335
19336 * coding.c (Fdefine_coding_system_internal)
19337 (Fdefine_coding_system_alias): Avoid a duplicated element in
19338 Vcoding_system_alist.
19339
19340 2008-02-01 Kenichi Handa <handa@m17n.org>
19341
19342 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19343
19344 * coding.c (Qcoding_system_define_form): New variable.
19345 (syms_of_coding): Intern and staticpro it.
19346 (Fcoding_system_p): Check Qcoding_system_define_form.
19347 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19348
19349 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19350 Fcoding_system_p.
19351 (CHECK_CODING_SYSTEM): If ID is not available, call
19352 Fcheck_coding_system.
19353 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19354 Try also Fcheck_coding_system.
19355
19356 2008-02-01 Kenichi Handa <handa@m17n.org>
19357
19358 * coding.c (code_conversion_restore): GCPRO arg.
19359
19360 2008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * character.c (lisp_string_width): Check multibyteness of STRING.
19363
19364 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19365
19366 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19367 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19368 (decode_mac_font_name): Use decode_coding_c_string instead of
19369 decode_coding.
19370 (x_load_font): Initialize fontp->fontset to -1. Set
19371 fontp->encoding_type.
19372
19373 2008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * search.c (search_buffer): Give up BM search on case-fold-search
19376 if one of a target character has a case-equivalence of different
19377 byte length even if that target charcter is an ASCII.
19378 (simple_search): Fix calculation of byte length of matched text.
19379 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19380
19381 2008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * coding.c (decode_coding): Fix handling of invalid bytes.
19384
19385 2008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19388 Unicode characters.
19389
19390 2008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * coding.c (encode_coding_object): If a pre-write-conversion
19393 function makes a new buffer, kill it.
19394
19395 2008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * coding.c (QCascii_compatible_p): New variable.
19398 (syms_of_coding): Initialize it.
19399 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19400 calling string_char.
19401 (record_conversion_result): Add `default:' case.
19402 (coding_charset_list): Delete unused variable `coding_type'.
19403 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19404 property in the plist of the coding system.
19405 (Fcoding_system_put): Check QCascii_compatible_p.
19406
19407 2008-02-01 Miles Bader <miles@gnu.org>
19408
19409 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19410 removed calculation of frame `f', as it's now used.
19411
19412 2008-02-01 Kenichi Handa <handa@m17n.org>
19413
19414 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19415 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19416 (UNIDATA): New variable.
19417 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19418 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19419 $(RUN_TEMACS) unconditionally.
19420
19421 2008-02-01 Kenichi Handa <handa@m17n.org>
19422
19423 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19424 (admindir): New variable.
19425 ($(lispsource)international/charprop.el): New target.
19426
19427 2008-02-01 Miles Bader <miles@gnu.org>
19428
19429 * character.c (chars-in-region): Remove obsolete function.
19430 (syms_of_character): Remove its initialization.
19431
19432 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19433
19434 * w32select.c (validate_coding_system)
19435 (setup_windows_coding_system): New functions.
19436 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19437 setup_windows_coding_system.
19438 (setup_config, Fw32_get_clipboard_data): Use
19439 validate_coding_system.
19440 (Fx_selection_exists): Move call to setup_config to a place
19441 where signals are allowed.
19442
19443 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19444 (Fcheck_coding_system): Add declarations.
19445
19446 2008-02-01 Kenichi Handa <handa@m17n.org>
19447
19448 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19449
19450 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19451
19452 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19453 string as the second argument for x_new_fontset.
19454
19455 2008-02-01 Kenichi Handa <handa@m17n.org>
19456
19457 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19458 (encode_coding_object): Use safe_call instead of call2.
19459
19460 2008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19463
19464 * Makefile.in (lisp): Include charprop.el.
19465
19466 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19467
19468 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19469 Not sure if it's unnecessary.
19470
19471 2008-02-01 Steven Tamm <steventamm@mac.com>
19472
19473 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19474 some possibly unnecessary fontset checking code that crashed
19475 when creating a new frame.
19476
19477 2008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19480 lookup_face.
19481
19482 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19483
19484 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19485
19486 2008-02-01 Kenichi Handa <handa@m17n.org>
19487
19488 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19489 (coding_charset_list): New function.
19490
19491 * coding.h (coding_charset_list): Extern it.
19492
19493 2008-02-01 Kenichi Handa <handa@m17n.org>
19494
19495 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19496 concatenation of family and registry.
19497
19498 2008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 * character.h (BYTE8_STRING): Fix typo.
19501
19502 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19503 string to multibyte (sync to HEAD).
19504
19505 * casefiddle.c (casify_region): Handle changes in byte-length
19506 using replace_range_2 (sync to HEAD).
19507
19508 2008-02-01 Andreas Schwab <schwab@suse.de>
19509
19510 * chartab.c (map_char_table): GCPRO table and arg.
19511
19512 2008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19515 already at limit.
19516
19517 2008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19520 instead of fast_c_string_match_ignore_case.
19521 (find_font_encoding): Change argument to Lisp_Object. Use
19522 fast_string_match_ignore_case instead of
19523 fast_c_string_match_ignore_case. Change caller.
19524
19525 2008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * xdisp.c (get_next_display_element): In unibyte case, decide to
19528 display in octal form by checking a character by
19529 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19530
19531 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19532
19533 * character.c (unibyte_has_multibyte_table): New variable.
19534
19535 * character.h (unibyte_has_multibyte_table): Extern it.
19536 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19537
19538 2008-02-01 Kenichi Handa <handa@m17n.org>
19539
19540 * coding.c (encode_coding_iso_2022): Fix handling of charset
19541 annotation.
19542
19543 2008-02-01 Kenichi Handa <handa@m17n.org>
19544
19545 * coding.c (setup_coding_system): If coding_system is nil, use
19546 Qundecided.
19547 (Fterminal_coding_system): Return nil if terminal coding system is
19548 `undecided'.
19549 (syms_of_coding): Define coding-system `undecided' here. Setup
19550 terminal_coding as `undecided'.
19551
19552 2008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * xdisp.c (message_dolog, set_message_1): Call
19555 unibyte_char_to_multibyte with arg type int.
19556
19557 * lread.c (read1): Fix reading of a char-table.
19558
19559 * print.c (print_object): Include sub char-table in circularities
19560 detection.
19561
19562 2008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19565 Append the found sequences in car of ARGS instead of prepending.
19566
19567 2008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * fileio.c (report_file_error): Make a unibyte string from
19570 strerror (errorno).
19571 (Fsubstitute_in_file_name): Fix the arg to
19572 unibyte_char_to_multibyte. It is evaluated twice.
19573
19574 2008-02-01 Kenichi Handa <handa@m17n.org>
19575
19576 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19577
19578 2008-02-01 Kenichi Handa <handa@m17n.org>
19579
19580 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19581 BOM is not found.
19582 (detect_coding, detect_coding_system): Optimization for ISO-2022
19583 when no 8-bit data is found.
19584
19585 2008-02-01 Jason Rumney <jasonr@gnu.org>
19586
19587 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19588
19589 2008-02-01 Kenichi Handa <handa@m17n.org>
19590
19591 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19592 CHARS.
19593
19594 2008-02-01 Steven Tamm <steventamm@mac.com>
19595
19596 * macterm.c (mac_encode_char): Add charset argument and update
19597 to use encoding_type.
19598 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19599 switch to pure fontset.
19600 (decode_mac_font_name): Temporarily remove decoding.
19601 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19602 (x_load_font): Temporarily remove encoding.
19603
19604 2008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * xfaces.c (Fface_font): If frame is not on a window system,
19607 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19608 refer to face->font.
19609 (split_font_name_into_vector, build_font_name_from_vector)
19610 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19611 when HAVE_WINDOW_SYSTEM is defined.
19612
19613 2008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19616 (x_produce_glyphs): Fix setting of members of cmp in case
19617 cmp->glyph_len is zero.
19618
19619 * fontset.c (Fset_fontset_font): Fix docstring.
19620 (Ffontset_info): Make it backward compatible. New arg ALL.
19621
19622 2008-02-01 Kim F. Storm <storm@cua.dk>
19623
19624 * process.c (read_process_output): Grow decoding_buf when needed;
19625 this could cause a crash in allocate_string and compact_small_strings.
19626
19627 2008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19630
19631 2008-02-01 Kenichi Handa <handa@m17n.org>
19632
19633 * coding.c (setup_coding_system): Set coding->common_flags
19634 correctly for raw-text.
19635 (consume_chars): On encoding unibyte text by raw-text, don't check
19636 multibyte form.
19637 (encode_coding): On encoding by raw-text, never use translation tables.
19638
19639 * fileio.c (e_write): Short cut for the case of no encoding.
19640
19641 2008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * coding.c (detect_coding, detect_coding_system): Delete unused
19644 variables.
19645
19646 2008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19649 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19650
19651 2008-02-01 Kenichi Handa <handa@m17n.org>
19652
19653 * coding.c (Ffind_coding_systems_region_internal): Include
19654 raw-text and no-conversion in the result.
19655
19656 2008-02-01 Kenichi Handa <handa@m17n.org>
19657
19658 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19659 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19660 FONT_DEF.
19661 (font_def_arg, add_arg, from_arg, to_arg): New args.
19662 (set_fontset_font): Change argument.
19663 (Fset_fontset_font): Fix for the case that TARGET is a script
19664 name and charset name.
19665 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19666
19667 2008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * fontset.c (fontset_font): Rename from fontset_face. Change return
19670 value.
19671 (face_suitable_for_char_p, face_for_char): Adjust for the change
19672 of fontset_font.
19673 (make_fontset_for_ascii_face): Fix setting of the fontset element
19674 for ASCII.
19675 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19676 to get a font name.
19677 (Ffontset_info): Adjust for the change of fontset_font.
19678
19679 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19680
19681 * character.h (LEADING_CODE_LATIN_1_MIN)
19682 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19683
19684 2008-02-01 Kenichi Handa <handa@m17n.org>
19685
19686 * editfns.c (check_translation): New function.
19687 (Ftranslate_region_internal): Handle M:N mapping.
19688
19689 2008-02-01 Kenichi Handa <handa@m17n.org>
19690
19691 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19692
19693 2008-02-01 Kenichi Handa <handa@m17n.org>
19694
19695 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19696 goto invalid_code.
19697 (decode_coding_iso_2022): Fix handling of invalid designation.
19698
19699 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19700 after calling code_conversion_save.
19701
19702 2008-02-01 Kenichi Handa <handa@m17n.org>
19703
19704 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19705
19706 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19707
19708 * fontset.c: Include "intervals.h".
19709 (fontset_face): Fix comparing of Lisp_Objects.
19710 (free_face_fontset, new_fontset_from_font_name): Fix
19711 Lisp_Object/int mixup.
19712
19713 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19714
19715 * coding.c: Add many prototypes for static functions.
19716 (get_translation_table): Allow max_lookup to be NULL.
19717 (decode_coding, Ffind_coding_systems_region_internal)
19718 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19719 get_translation_table with max_lookup NULL.
19720
19721 2008-02-01 Kenichi Handa <handa@m17n.org>
19722
19723 * coding.c (get_translation_table): Declare it as Lisp_Object.
19724 (LOOKUP_TRANSLATION_TABLE): New macro.
19725 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19726 instead of CHAR_TABLE_REF.
19727
19728 2008-02-01 Kenichi Handa <handa@m17n.org>
19729
19730 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19731 annotation data format.
19732 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19733 Change arguments FROM and TO to single argument NCHARS. Change caller.
19734 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19735 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19736 (decode_coding_ccl, decode_coding_charset): Pay attention to
19737 coding->charbuf_used.
19738 (get_translation): New function.
19739 (produce_chars): New arguments translation_table and last_block.
19740 Translate characters here. Return number of carryover chars.
19741 Change caller.
19742 (produce_composition): New argument pos. Change caller.
19743 Adjust for the change of annotation data format.
19744 (produce_charset, produce_annotation): Likewise.
19745 (decode_coding, encode_coding): Don't call translate_chars.
19746 (consume_chars): New arg translation_table. Change caller.
19747 (translate_chars): Delete.
19748 (syms_of_coding): Make translation-table's number of extra slots 2.
19749
19750 2008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * search.c (simple_search): Fix setting this_pos_byte in backward
19753 search.
19754
19755 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19756 byte sequence.
19757 (detect_coding_ccl): Fix setting of the variable valids.
19758
19759 2008-02-01 Kenichi Handa <handa@m17n.org>
19760
19761 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19762
19763 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19764
19765 * editfns.c (Ftranslate_region_internal): Rename from
19766 Ftranslate_region. Accept a char-table in TABLE.
19767 (syms_of_editfns): Defsubr Stranslate_region_internal.
19768
19769 * xfaces.c (set_lface_from_font_name): If a font is specified for
19770 a frame, generate a fontset from the font.
19771 (build_scalable_font_name): If the scalable font is requested for
19772 a specific size, don't change that size.
19773 (try_font_list): Try a scalable font also in the case that a
19774 pattern string is specified.
19775
19776 2008-02-01 Kenichi Handa <handa@m17n.org>
19777
19778 * xfaces.c (Fface_font): New optional arg CHARACTER.
19779
19780 2008-02-01 Kenichi Handa <handa@m17n.org>
19781
19782 * charset.h (CHARSET_OFFSET): New macro.
19783
19784 2008-02-01 Kenichi Handa <handa@m17n.org>
19785
19786 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19787
19788 * fontset.c (fontset_face): Handle the case that repertory is a
19789 char-table.
19790 (find_font_encoding): Return nil for unknown encoding.
19791 (Fset_fontset_font): Ignore a font of unknown encoding.
19792
19793 2008-02-01 Kenichi Handa <handa@m17n.org>
19794
19795 * keymap.c (describe_vector): Handle default value of a char table.
19796
19797 * fontset.c (fontset_face): Handle fallback fonts correctly.
19798 (Ffontset_info): Return infomation about fallback fonts.
19799
19800 2008-02-01 Kenichi Handa <handa@m17n.org>
19801
19802 * fontset.c (FONTSET_DEFAULT): New macro.
19803 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19804 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19805 the case that it is nil.
19806 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19807 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19808
19809 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19810 subset or superset.
19811
19812 2008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * emacs.c (main): Call init_charset after syms_of_XXX.
19815
19816 * charset.c (Vcharset_map_directory): Delete.
19817 (Vcharset_map_path): New variable.
19818 (load_charset_map_from_file): Use Vcharset_map_path instead.
19819 (init_charset): Initialize Vcharset_map_path.
19820 (syms_of_charset): Delete declaration of "charset-map-directory",
19821 add declaration of "charset-map-path".
19822
19823 2008-02-01 Kenichi Handa <handa@m17n.org>
19824
19825 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19826 ASCII only string.
19827
19828 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19829
19830 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19831 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19832
19833 2008-02-01 Kenichi Handa <handa@m17n.org>
19834
19835 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19836
19837 * coding.c (QCmnemonic, QCdefalut_char)
19838 (QCdecode_translation_table, QCencode_translation_table)
19839 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19840 (get_translation_table): Return a list of translation tables if
19841 necessary.
19842 (decode_coding): Call get_translation_table with ENCODEP 0.
19843 (char_encodable_p): If translation_table is non-nil, always call
19844 translate_char.
19845 (Fdefine_coding_system_internal): Accept list of translation
19846 tables as :encode-translation-table and :decode-translation-table.
19847 (Fcoding_system_put): New function.
19848 (syms_of_coding): Declare new symbols. Defsubr
19849 Scoding_system_put.
19850 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19851 typically JISX0212.
19852
19853 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19854 when the charset is superset type.
19855
19856 * character.c (translate_char): Accept list of translation tables.
19857
19858 2008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19861 (CODING_ATTR_TRANS_TBL): New macro.
19862
19863 * coding.c (get_translation_table): New function.
19864 (translate_chars): Fix the bug of skipping annotation data.
19865 (decode_coding, encode_coding): Utilize get_translation_table.
19866 (char_encodable_p, Funencodable_char_position): Translate char if
19867 necessary.
19868 (Ffind_coding_systems_region_internal)
19869 (Fcheck_coding_systems_region): Setup translation table for encode
19870 in a coding system attribute vector in advance.
19871 (Fdefine_coding_system_internal): Allow a symbol as translation
19872 table. For shift-jis type coding system, allow 4th charset.
19873
19874 2008-02-01 Kenichi Handa <handa@m17n.org>
19875
19876 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19877
19878 * xdisp.c (get_next_display_element): Pass -1 as POS to
19879 FACE_FOR_CHAR if displaying a C-string.
19880
19881 2008-02-01 Kenichi Handa <handa@m17n.org>
19882
19883 * composite.c (get_composition_id): Handle xoff and yoff in a
19884 composition rule.
19885
19886 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19887 (struct composition): New member lbearing and rbearing.
19888
19889 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19890 (x_get_glyph_overhangs): Handle a composition glyph.
19891 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19892
19893 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19894 composition glyph.
19895
19896 2008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * print.c: Include charset.h.
19899 (Vprint_charset_text_property): New variable.
19900 (Qdefault): Extern it.
19901 (PRINT_STRING_NON_CHARSET_FOUND)
19902 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19903 (print_check_string_result): New variable.
19904 (print_check_string_charset_prop): New function.
19905 (print_prune_charset_plist): New variable.
19906 (print_prune_string_charset): New function.
19907 (print_object): Call print_prune_string_charset if
19908 Vprint_charset_text_property is not t.
19909 (print_interval): Print nothing if interval->plist is nil.
19910 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19911 variable. Init and staticpro print_prune_charset_plist.
19912
19913 2008-02-01 Kenichi Handa <handa@m17n.org>
19914
19915 * fontset.c (new_fontset_from_font_name): Use the specified font
19916 for all characters in the new fontset.
19917
19918 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19919 OBJECT args.
19920
19921 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19922 OBJECT args for composition too.
19923
19924 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19925 OBJECT args.
19926
19927 2008-02-01 Kenichi Handa <handa@m17n.org>
19928
19929 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19930
19931 * fontset.c (reorder_font_vector): Adjust for the change of
19932 FONT_DEF format.
19933 (fontset_face): New arg id. Change caller.
19934 (face_for_char): New args pos and object.
19935 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19936 (fs_query_fontset): Check NAME by Fassoc too.
19937 (Fset_fontset_font): Allow non-XLFD font name.
19938 (Ffontset_info): Adjust for the change of FONT_DEF format.
19939
19940 * fontset.h (face_for_char): Adjust prototype.
19941
19942 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19943 (append_space, extend_face_to_end_of_line)
19944 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19945 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19946
19947 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19948 POS and OBJECT args.
19949
19950 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19951 POS and OBJECT args.
19952
19953 2008-02-01 Jason Rumney <jasonr@gnu.org>
19954
19955 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19956 of GlobalAlloc'ed memory.
19957
19958 2008-02-01 Kenichi Handa <handa@m17n.org>
19959
19960 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19961
19962 * charset.h (charset_table_used): Delete extern.
19963
19964 * charset.c (charset_table_used): Make it static.
19965 (map_charset_chars): Fix args to c_function with.
19966
19967 * chartab.c (map_sub_char_table_for_charset): Fix args to
19968 c_function with.
19969
19970 * coding.h (enum coding_result_code): Delete
19971 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19972
19973 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19974 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19975 (Vlast_code_conversion_error): New variables.
19976 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19977 (ONE_MORE_BYTE): Record error if any instead of signaling an
19978 error. If non-ASCII multibyte char is found, return the negative
19979 value of the code. All callers changed to check it.
19980 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19981 (record_conversion_result): New function. Change all codes setting
19982 coding->result to call this function.
19983 (detect_coding_utf_8, decode_coding_utf_8)
19984 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19985 Don't use the local variable incomplete.
19986 (emacs_mule_char): Change the second arg to `const'.
19987 (decode_coding): Fix of flushing out unprocessed data.
19988 (make_conversion_work_buffer): Fix making of a work buffer.
19989 (decode_coding_object): Return coding->dst_object.
19990
19991 * fontset.c (set_fontset_font): Fix args.
19992
19993 * lisp.h (CHARACTERBITS): Define as 22.
19994
19995 * process.c (send_process): Be sure to set coding->src_multibyte.
19996
19997 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19998
19999 2008-02-01 Kenichi Handa <handa@m17n.org>
20000
20001 * xdisp.c (handle_auto_composed_prop): Give limit to
20002 Fnext_single_char_property_change.
20003
20004 2008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * composite.c (syms_of_composite): Don't make the composition hash
20007 table weak.
20008
20009 * fontset.c (Fset_fontset_font): Fix docstring.
20010
20011 * lisp.h (detect_coding_system): Adjust prototype.
20012
20013 * fileio.c (kill_workbuf_unwind): Delete this function.
20014 (Finsert_file_contents): Adjust the call of detect_coding_system.
20015 Get conversion_buffer by code_conversion_save. Use the macro
20016 CODING_MAY_REQUIRE_DECODING. After decoding, update
20017 coding_system.
20018
20019 * coding.h (make_conversion_work_buffer): Delete extern.
20020 (code_conversion_save): Extern it.
20021
20022 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20023 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20024 (decode_coding_utf_8): Don't do eol converion.
20025 (detect_coding_utf_16): Check coding->src_chars, not
20026 coding->src_bytes. Add heuristics for those that have no signature.
20027 (decode_coding_emacs_mule, decode_coding_iso_2022)
20028 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20029 Don't do eol converion.
20030 (adjust_coding_eol_type): Return a new coding system.
20031 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20032 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20033 each change.
20034 (decode_coding): Pay attention to undo_list. Do eol conversion for
20035 all types of coding-systems (if necessary).
20036 (Vcode_conversion_work_buf_list): Delete it.
20037 (Vcode_conversion_reused_workbuf): Rename from
20038 Vcode_conversion_reused_work_buf.
20039 (Vcode_conversion_workbuf_name): New variable.
20040 (reused_workbuf_in_use): New variable.
20041 (make_conversion_work_buffer): Delete the arg DEPTH.
20042 (code_conversion_restore): Change argument to cons.
20043 (code_conversion_save): Delete the argument BUFFER. Change callers.
20044 (detect_coding_system): New argument src_chars. Change callers.
20045 Fix for utf-16 detection.
20046 (init_coding_once): Don't use ISO_carriage_return.
20047 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20048 reused_workbuf_in_use.
20049
20050 2008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * keymap.c (store_in_keymap): Pay attention to the case that idx
20053 is a cons specifying a character range.
20054
20055 2008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20058 HANDLED_RECOMPUTE_PROPS.
20059
20060 * coding.c (Fdefine_coding_system_internal): Fix checking of
20061 ascii compatibility.
20062
20063 2008-02-01 Kenichi Handa <handa@m17n.org>
20064
20065 * charset.c (find_charsets_in_text): Delete unused locale variable.
20066 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20067
20068 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20069 Resync charset_list to Vemacs_mule_charset_list.
20070
20071 * keymap.c (store_in_keymap): Pay attention to the case that idx
20072 is a cons specifying a character range.
20073
20074 2008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * composite.c (update_compositions): Bind inhibit-read-only, etc
20077 to t before calling remove-list-of-text-properties.
20078
20079 * print.c (print_object): Always print ASCII chars as is.
20080
20081 2008-02-01 Kenichi Handa <handa@m17n.org>
20082
20083 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20084
20085 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20086 is a char table.
20087
20088 2008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20091
20092 2008-02-01 Kenichi Handa <handa@m17n.org>
20093
20094 * xfaces.c (set_lface_from_font_name): Fix for the case that
20095 FONTNAME is not fontset name.
20096
20097 2008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * fns.c (base64_encode_1): Fix previous change.
20100
20101 2008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * fontset.c (set_fontset_font): New function.
20104 (Fset_fontset_font): If a font is specified for a charset, use
20105 map_charset_chars to store the font spec in a fontset.
20106
20107 2008-02-01 Kenichi Handa <handa@m17n.org>
20108
20109 * fontset.c (fontset_face): Create a fallback fontset on demand.
20110 (make_fontset): Don't create a fallback fontset here.
20111 (free_face_fontset): Free a fallback fontset (if any) too.
20112 (n_auto_fontsets): Delete this variable.
20113 (auto_fontset_alist): New variable.
20114 (new_fontset_from_font_name): Check auto_fontset_alist.
20115 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20116 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20117 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20118 Defsubr Sfontset_list_all.
20119
20120 2008-02-01 Kenichi Handa <handa@m17n.org>
20121
20122 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20123
20124 2008-02-01 Kenichi Handa <handa@m17n.org>
20125
20126 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20127
20128 2008-02-01 Kenichi Handa <handa@m17n.org>
20129
20130 * editfns.c (Fgoto_char): Fix docstring.
20131
20132 2008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * insdel.c (insert_from_gap): Adjust intervals correctly.
20135
20136 2008-02-01 Jason Rumney <jasonr@gnu.org>
20137
20138 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20139 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20140 (w32_initialize): Try to load it.
20141 (x_get_font_repertory): Use it if available.
20142 (w32_encode_char): Add shortcut for unicode output.
20143
20144 * w32fns.c (w32_load_system_font): Default charset to -1.
20145 (x_to_w32_charset): Match all fonts for unicode.
20146 (w32_to_x_charset): New parameter matching. Don't return partial
20147 or wildcard charsets.
20148 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20149 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20150 (w32_to_x_font): Match charset to real charset.
20151 (enum_font_cb2): Always list unicode versions.
20152
20153 * makefile.w32-in (temacs): Increase EMHEAP.
20154
20155 2008-02-01 Jason Rumney <jasonr@gnu.org>
20156
20157 * w32term.c (w32_encode_char): New charset parameter.
20158 font_info.encoding becomes encoding_type.
20159 (x_get_font_repertory): New function. Warning: stub only!
20160 (x_new_font): Return quickly if font already set.
20161 (x_new_fontset): fontsetname parameter is Lisp_Object.
20162 Use new fs_query_fontset. Try new_fontset_from_font_name.
20163 Use fontset_name for return value.
20164
20165 * w32term.h: Declare x_get_font_repertory.
20166
20167 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20168 place of find_charset_in_text. Use encode_coding_object in place
20169 of encode_coding.
20170 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20171 decode_coding.
20172
20173 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20174 of x_new_fontset.
20175 (w32_load_system_font): Initialize charset as unicode.
20176 font_info.encoding becomes encoding_type.
20177 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20178 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20179 (syms_of_w32fns): Set get_font_repertory_func.
20180
20181 * w32console.c: Include character.h. Use terminal_encode_buffer
20182 from term.c.
20183 (write_glyphs): Use new version of encode_terminal_code. Use
20184 encode_coding_object in place of encode_coding.
20185
20186 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20187 encoding becomes encoding_type.
20188
20189 * term.c (terminal_encode_buffer): Make externally visible.
20190
20191 * makefile.w32-in: Add character.h dependancies.
20192 (character.o, chartab.o): New targets.
20193
20194 2008-02-01 Kenichi Handa <handa@m17n.org>
20195
20196 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20197 CODING_ID_EOL_TYPE.
20198
20199 2008-02-01 Andreas Schwab <schwab@suse.de>
20200
20201 * coding.c (produce_chars): Revert last change.
20202
20203 2008-02-01 Kenichi Handa <handa@m17n.org>
20204
20205 * charset.h (charset_unicode): Extern it.
20206
20207 * charset.c (string_xstring_p): Check by (C >= 0x100).
20208 (find_charsets_in_text): Change format of the arc CHARSETS. New
20209 arg MULTIBYTE.
20210 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20211 change of find_charsets_in_text.
20212 (Fsplit_char): Fix doc. Never return unknown.
20213
20214 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20215
20216 * coding.c (Fdefine_coding_system_alias): Update
20217 Vcoding_system_list.
20218
20219 * fontset.c (load_font_get_repertory): Pay attention to the case
20220 that ENCODING of a font is specified by a char-table.
20221
20222 * xterm.c (x_get_font_repertory): Handle the case that the
20223 encoding of font is other than Unicode.
20224
20225 2008-02-01 Kenichi Handa <handa@m17n.org>
20226
20227 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20228 if a character is encodable by the terminal coding system. If
20229 not, produces proper number of `?'s. Update
20230 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20231 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20232
20233 2008-02-01 Kenichi Handa <handa@m17n.org>
20234
20235 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20236 variables.
20237 (encode_terminal_code): Change argument. Encode multiple
20238 characters at once. Store the result of encoding in
20239 terminal_encode_buffer.
20240 (write_glyphs, insert_glyphs): Adjust for the change of
20241 encode_terminal_code.
20242 (term_init): Initialize terminal_encode_buffer and
20243 terminal_encode_buf_size.
20244
20245 * coding.c (consume_chars): If coding->src_object is nil, don't
20246 check annotation.
20247
20248 2008-02-01 Kenichi Handa <handa@m17n.org>
20249
20250 * character.c (char_string): Use ASCII_CHAR_P instead of
20251 SINGLE_BYTE_CHAR_P.
20252
20253 2008-02-01 Kenichi Handa <handa@m17n.org>
20254
20255 * xdisp.c (handle_auto_composed_prop): Check if the last
20256 characters of auto-composed region is newly composed with the
20257 following characters.
20258 (handle_composition_prop): Fix checking of point being inside
20259 composition.
20260
20261 2008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * fns.c (concat): Don't change multibyteness of the result by
20264 concatenating an 8-bit character.
20265
20266 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20267 multibyteness of the result when newelt is an 8-bit character.
20268
20269 2008-02-01 Dave Love <fx@gnu.org>
20270
20271 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20272 EMACS_INT.
20273
20274 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20275
20276 * xfaces.c (face_numeric_value): Declare dim size_t.
20277 (Finternal_lisp_face_equal_p): Remove unused f.
20278
20279 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20280 (MATRIX_ROW): Remove unused vars.
20281 (draw_glyphs, x_insert_glyphs, fast_find_position)
20282 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20283 byte/char counts.
20284
20285 * regex.c (regex_compile): Remove unused var.
20286
20287 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20288
20289 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20290 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20291
20292 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20293
20294 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20295
20296 * fileio.c (Fwrite_region): Remove unused var.
20297
20298 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20299 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20300
20301 * composite.c (Fremove_list_of_text_properties): Declare.
20302
20303 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20304 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20305 (coding_inherit_eol_type): Remove unused attrs.
20306 (detect_coding): Cast arg of detect_eol.
20307
20308 * charset.c (syms_of_charset): Remove unused var p.
20309 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20310 byte/char counts.
20311
20312 * casetab.c (set_case_table): Remove unused var.
20313
20314 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20315 unused vars.
20316
20317 2008-02-01 Dave Love <fx@gnu.org>
20318
20319 * xterm.c (x_bitmap_mask): Declare.
20320
20321 2008-02-01 Dave Love <fx@gnu.org>
20322
20323 * xterm.c (x_term_init): Fix type error.
20324
20325 * lisp.h: Add Funibyte_char_to_multibyte.
20326
20327 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20328 (Fset_coding_system_priority): Doc fix.
20329
20330 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20331
20332 * indent.c (check_composition): Make start and end EMACS_INT.
20333
20334 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20335
20336 * xdisp.c (handle_composition_prop, check_point_in_composition):
20337 Make buffer positions EMACS_INT.
20338
20339 * composite.c (find_composition, run_composition_function)
20340 (update_compositions, Ffind_composition_internal): Make buffer
20341 positions EMACS_INT.
20342
20343 * composite.h (find_composition, update_compositions): Make
20344 position args EMACS_INT.
20345
20346 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20347
20348 * intervals.c (get_property_and_range):
20349 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20350
20351 * unexalpha.c: Don't include varargs.h.
20352
20353 2008-02-01 Dave Love <fx@gnu.org>
20354
20355 * coding.h (ENCODE_UTF_8): New.
20356
20357 * Makefile.in (gtkutil.o): Depend on coding.h.
20358
20359 * coding.c (Fset_coding_system_priority): Doc fix.
20360
20361 2008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20364 the case of auto saving.
20365
20366 2008-02-01 Andreas Schwab <schwab@suse.de>
20367
20368 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20369 `range' from GC.
20370
20371 2008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20374
20375 2008-02-01 Kenichi Handa <handa@m17n.org>
20376
20377 * fileio.c (choose_write_coding_system): Return a decided coding system.
20378 (Fwrite_region): Set Vlast_coding_system_used to the return value
20379 of choose_write_coding_system.
20380
20381 2008-02-01 Kenichi Handa <handa@m17n.org>
20382
20383 * charset.c (Fset_charset_priority): Pay attention to duplicated
20384 arguments.
20385
20386 * coding.c (QCcategory): New variable.
20387 (syms_of_coding): Defsym it. Set all elements of
20388 Vcoding_category_table and their symbol values.
20389 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20390 coding-category-XXX, and coding-category-list.
20391 (Fdefine_coding_system_internal): Add category in the plist.
20392
20393 2008-02-01 Kenichi Handa <handa@m17n.org>
20394
20395 * callproc.c (Fcall_process): Handle carryover correctly.
20396
20397 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20398 (raw_text_coding_system): Check NILP (coding_system).
20399 (coding_inherit_eol_type): Check NILP (coding_system) and
20400 NILP (parent).
20401 (consume_chars): Fix for the case of raw-text.
20402
20403 * process.c (read_process_output): Handle carryover correctly.
20404
20405 2008-02-01 Dave Love <fx@gnu.org>
20406
20407 * regex.c (re_search_2): Fix last change.
20408
20409 2008-02-01 Kenichi Handa <handa@m17n.org>
20410
20411 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20412 target_multibyte. Even in a unibyte case, return a converted
20413 multibyte char.
20414 (GET_CHAR_AFTER): New macro.
20415 (PATFETCH): Translate via multibyte char.
20416 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20417 (SETUP_MULTIBYTE_RANGE): New macro.
20418 (regex_compile): Setup compiled code so that its multibyteness
20419 matches that of a target. Fix the handling of "[X-YZ]" using
20420 SETUP_MULTIBYTE_RANGE.
20421 (analyse_first) <charset>: For filling fastmap for all multibyte
20422 characters, don't check by BASE_LEADING_CODE_P.
20423 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20424 the same as RE_MULTIBYTE_P (bufp) now.
20425 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20426 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20427 (TRANSLATE_VIA_MULTIBYTE): New macro.
20428 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20429 It is the same as RE_MULTIBYTE_P (bufp) now.
20430 <exactn>: Translate via multibyte.
20431 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20432 translate it.
20433 <charset, charset_not>: Fetch a character by
20434 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20435 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20436 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20437 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20438 by GET_CHAR_AFTER.
20439 (bcmp_translate): Likewise.
20440
20441 * search.c (compile_pattern): Check the member target_multibyte,
20442 not the member multibyte of buf.
20443
20444 * lread.c (read1): While reading a string, set force_singlebyte
20445 and force_multibyte correctly.
20446
20447 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20448 up of unibyte_to_multibyte_table.
20449
20450 2008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 * coding.c (setup_coding_system): If coding has
20453 post-read-conversion or pre-write-conversion, set
20454 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20455 respectively.
20456 (decode_coding_gap): Run post-read-conversion if any.
20457
20458 * fileio.c (Finsert_file_contents): Even if we read into a
20459 unibyte buffer, check if we must decode the result or not.
20460
20461 2008-02-01 Kenichi Handa <handa@m17n.org>
20462
20463 * coding.c (make_conversion_work_buffer): Change the work buffer
20464 name to the same one as that of Emacs 21.
20465
20466 2008-02-01 Kenichi Handa <handa@m17n.org>
20467
20468 * coding.h (make_conversion_work_buffer): Adjust prototype.
20469 (code_conversion_restore): Don't extern it.
20470
20471 * coding.c (detected_mask): Delete unused variable.
20472 (decode_coding_iso_2022): Pay attention to the byte sequence of
20473 CTEXT extended segment, and retain those bytes as is.
20474 (decode_coding_ccl): Delete unused variable `valids'.
20475 (setup_coding_system): Delete unused variable `category'.
20476 (consume_chars): Delete unused variable `category'. Make it work
20477 for non-multibyte case.
20478 (make_conversion_work_buffer): Change argument.
20479 (saved_coding): Delete unused variable.
20480 (code_conversion_restore): Don't check saved_coding->destination.
20481 (code_conversion_save): New function.
20482 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20483 instead of record_unwind_protect.
20484 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20485 (detect_coding_system): Delete unused variable `mask'.
20486 (Fdefine_coding_system_internal): Delete unused variable id.
20487
20488 * fileio.c (kill_workbuf_unwind): New function.
20489 (Finsert_file_contents): On replacing, call
20490 make_conversion_work_buffer with correct args, and call
20491 record_unwind_protect with the first arg kill_workbuf_unwind.
20492
20493 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20494
20495 2008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20498 (fontset_add): Fix for the case that TO is less than TO1.
20499 (Ffontset_info): Don't use fallback fontset on checking the
20500 default fontset.
20501 (dump_fontset): New function for debugging.
20502
20503 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20504 coding_type is Qcharset.
20505
20506 2008-02-01 Kenichi Handa <handa@m17n.org>
20507
20508 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20509 (map_char_table): Don't inherit the value from the parent on
20510 initializing VAL. Adjust for the above change.
20511
20512 2008-02-01 Kenichi Handa <handa@m17n.org>
20513
20514 * coding.c (Qsignature, Qendian): Delete these variables.
20515 (syms_of_coding): Don't initialize them.
20516 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20517 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20518 detect_info->found.
20519 (decode_coding_utf_16): Don't detect BOM here.
20520 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20521 is NOT utf_16_without_bom.
20522 (setup_coding_system): For a coding system of type utf-16, check
20523 if the attribute :endian is Qbig or not (not nil or not), and set
20524 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20525 (detect_coding): If coding type is utf-16 and BOM detection is
20526 required, detect it.
20527 (Fdefine_coding_system_internal): For a coding system of type
20528 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20529
20530 2008-02-01 Kenichi Handa <handa@m17n.org>
20531
20532 * coding.c (coding_set_source): Fix for the case that the current
20533 buffer is different from coding->src_object.
20534 (decode_coding_object): Don't use the conversion work buffer if
20535 DST_OBJECT is a buffer.
20536
20537 2008-02-01 Dave Love <fx@gnu.org>
20538
20539 * lread.c (read_emacs_mule_char) [len==2]: Index
20540 emacs_mule_charset correctly.
20541
20542 2008-02-01 Dave Love <fx@gnu.org>
20543
20544 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20545 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20546 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20547 treated specially.)
20548 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20549 (detected_mask): Remove Big5 bits.
20550
20551 2008-02-01 Kenichi Handa <handa@m17n.org>
20552
20553 The following changes are to make the font rescaling facility
20554 compatible with Emacs 21.
20555
20556 * xfaces.c (Vface_font_rescale_alist): Rename from
20557 Vface_resizing_fonts.
20558 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20559 (font_rescale_ratio): Rename from font_resizing_ratio.
20560 (split_font_name): Set font->rescale_ratio.
20561 (better_font_p): Pay attention to font->rescale_ratio.
20562 (build_scalable_font_name): Likewise. Change RESX, and RESY
20563 fields.
20564 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20565
20566 2008-02-01 Kenichi Handa <handa@m17n.org>
20567
20568 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20569 (Qutf_16_le): Remove these variables.
20570 (syms_of_coding): Don't DEFSYM them.
20571 (decode_coding_utf_16): Fix handling of BOM.
20572 (encode_coding_utf_16): Fix handling of BOM.
20573
20574 2008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * fileio.c (Finsert_file_contents): On replacing, before decoding
20577 the file into the work buffer, set point of the work buffer to the end.
20578
20579 2008-02-01 Dave Love <fx@gnu.org>
20580
20581 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20582
20583 2008-02-01 Dave Love <fx@gnu.org>
20584
20585 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20586 and fix C types.
20587
20588 2008-02-01 Kenichi Handa <handa@m17n.org>
20589
20590 * xdisp.c (SKIP_GLYPHS): New macro.
20591 (set_cursor_from_row): Pay attention to string display properties.
20592
20593 * category.c (copy_category_entry): Fix for the case that RANGE
20594 is an integer.
20595
20596 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20597
20598 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20599
20600 2008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * charset.c (Fcharset_id_internal): New function.
20603 (syms_of_charset): Defsubr it.
20604
20605 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20606 with the last arg charset_list acquired from coding.
20607 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20608 the attribute coding_attr_ccl_valids.
20609
20610 * coding.h (enum define_coding_ccl_arg_index): Set the first
20611 member coding_arg_ccl_decoder to coding_arg_max.
20612
20613 * ccl.h (ccl_driver): Adjust prototype.
20614
20615 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20616 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
20617 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
20618 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20619 last arg Qnil.
20620
20621 2008-02-01 Kenichi Handa <handa@m17n.org>
20622
20623 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20624 call encode_char.
20625
20626 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20627
20628 2008-02-01 Dave Love <fx@gnu.org>
20629
20630 * composite.c (syms_of_composite): Make composition_hash_table weak.
20631
20632 2008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20635 (font_name_registry): Don't extern them.
20636 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20637
20638 * fontset.h (Qfontset): Don't extern it.
20639 (new_fontset_from_font_name): Extern it.
20640
20641 * fontset.c: Give 8 extra slots to fontset objects.
20642 (Qfontset_info): New variable.
20643 (syms_of_fontset): Defsym it.
20644 (FONTSET_FALLBACK): New macro.
20645 (fontset_face): Try also the default fontset.
20646 (make_fontset): Realize a fallback fontset from the default fontset.
20647 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20648 using split_font_name_into_vector and build_font_name_from_vector.
20649 (Fset_fontset_font): Access the elements of font_spec by enum
20650 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20651 name by using split_font_name_into_vector.
20652 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20653 generate a proper font name from the fontset name. Update
20654 Vfontset_alias_alist.
20655 (n_auto_fontsets): New variable.
20656 (new_fontset_from_font_name): New function.
20657 (Ffont_info): Store the information about fonts generated from the
20658 default fontset in the first extra slot of the returned char-table.
20659
20660 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20661 (font_name_registry): Delete function.
20662 (split_font_name_into_vector): New function.
20663 (build_font_name_from_vector): New function.
20664 (font_list): The argument REGISTRY is now a list of registry names.
20665 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20666 specifies an explicit font name, return the name as is. Make a
20667 list of registy names.
20668
20669 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20670 of x_new_fontset.
20671 (Fx_create_frame): Don't call x_new_fontset here. Just use
20672 x_list_fonts to check the existence of fonts.
20673
20674 * xterm.h (x_new_fontset): Adjust prototype.
20675
20676 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20677 string. Use new_fontset_from_font_name to create a fontset from a
20678 font name.
20679
20680 2008-02-01 Kenichi Handa <handa@m17n.org>
20681
20682 * syntax.c (Vfind_word_boundary_function_table): New name for
20683 Vnext_word_boundary_function_table.
20684 (find-word-boundary-function-table): New name for
20685 next-word-boundary-function-table.
20686
20687 2008-02-01 Dave Love <fx@gnu.org>
20688
20689 * Makefile.in: Fix some dependencies.
20690
20691 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20692 set it to nil before returning.
20693
20694 * composite.c (update_compositions): Fix type error.
20695
20696 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20697
20698 2008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * xterm.c (x_new_font): Optimize for the case that the font is
20701 already set for the frame.
20702
20703 2008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * chartab.c (char_table_ascii): Check if the char table contents
20706 is sub-char-table or not.
20707 (char_table_set, char_table_set_range): Fix argument to
20708 char_table_ascii.
20709
20710 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20711 (detect_coding_utf_8, detect_coding_utf_16)
20712 (detect_coding_emacs_mule, detect_coding_iso_2022)
20713 (detect_coding_sjis, detect_coding_big5)
20714 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20715 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20716 sequence is valid in this coding system. Change callers.
20717 (MAX_ANNOTATION_LENGTH): New macro.
20718 (ADD_ANNOTATION_DATA): New macro.
20719 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20720 ADD_ANNOTATION_DATA. Change the format of annotation data.
20721 (ADD_CHARSET_DATA): New macro.
20722 (emacs_mule_char): New argument ID. Change callers.
20723 (decode_coding_emacs_mule, decode_coding_iso_2022)
20724 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20725 Produce charset annotation data in coding->charbuf.
20726 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20727 to charset annotation data in coding->charbuf.
20728 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20729 coding->common_flags if the coding system is iso-2022 based and
20730 uses designation.
20731 (produce_composition): Adjust for the new annotation data format.
20732 (produce_charset): New function.
20733 (produce_annotation): Handle charset annotation.
20734 (handle_composition_annotation, handle_charset_annotation): New
20735 functions.
20736 (consume_chars): Handle charset annotation. Utilize the above two
20737 functions.
20738 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20739 buffer, get the deleted text as a string and set
20740 coding->src_object to that string.
20741 (detect_coding, detect_coding_system): Use the new struct
20742 coding_detection_info.
20743
20744 * coding.h (struct coding_detection_info): New structure.
20745 (struct coding_system): Adjust prototype of the member `detector'.
20746 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20747
20748 2008-02-01 Kenichi Handa <handa@m17n.org>
20749
20750 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20751
20752 2008-02-01 Dave Love <fx@gnu.org>
20753
20754 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20755 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20756 to new local and nullify apropos_accumulate before returning.
20757 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20758
20759 2008-02-01 Kenichi Handa <handa@m17n.org>
20760
20761 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20762 correctly.
20763
20764 2008-02-01 Dave Love <fx@gnu.org>
20765
20766 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20767
20768 2008-02-01 Kenichi Handa <handa@m17n.org>
20769
20770 The following changes are to make character composition happen
20771 automatically on displaying.
20772
20773 * Makefile.in (lisp, shortlisp): Add composite.elc.
20774
20775 * composite.h (Qauto_composed, Vauto_composition_function)
20776 (Qauto_composition_function): Extern them.
20777
20778 * composite.c (Vcomposition_function_table)
20779 (Qcomposition_function_table): Delete variables.
20780 (Qauto_composed, Vauto_composition_function)
20781 (Qauto_composition_function): New variables.
20782 (run_composition_function): Don't call
20783 compose-chars-after-function.
20784 (update_compositions): Clear `auto-composed' text property.
20785 (compose_chars_in_text): Delete this function.
20786 (syms_of_composite): Staticpro Qauto_composed and
20787 Qauto_composition_function. Declare Vauto_composition_function as
20788 a Lisp variable.
20789
20790 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20791
20792 * xdisp.c (it_props): Add an entry for Qauto_composed.
20793 (handle_auto_composed_prop): New function.
20794
20795 * xselect.c (selection_data_to_lisp_data): Don't call
20796 compose_chars_in_text.
20797
20798 2008-02-01 Dave Love <fx@gnu.org>
20799
20800 * keyboard.c (read_char): Modify checking around use of
20801 Vkeyboard_translate_table.
20802
20803 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20804 and fix C types.
20805
20806 2008-02-01 Kenichi Handa <handa@m17n.org>
20807
20808 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20809 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20810 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20811 the case that the last byte is '\r' correctly.
20812 (decode_coding): Flush out the unprocessed data correctly.
20813 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20814
20815 2008-02-01 Dave Love <fx@gnu.org>
20816
20817 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20818 Add XK_ISO... case.
20819 (xaw_scroll_callback): Revert last change.
20820
20821 2008-02-01 Kenichi Handa <handa@m17n.org>
20822
20823 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20824
20825 2008-02-01 Kenichi Handa <handa@m17n.org>
20826
20827 * xfaces.c (Vface_resizing_fonts): New variable.
20828 (struct font_name): New member `resizing_ratio'.
20829 (font_resizing_ratio): New function.
20830 (split_font_name): Set font->resizing_ratio.
20831 (better_font_p): Pay attention to font->resizing_ratio.
20832 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20833 RESX, and RESY fields.
20834 (try_alternative_families): Try scalable fonts if
20835 Vscalable_fonts_allowed is not Qt.
20836 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20837
20838 2008-02-01 Dave Love <fx@gnu.org>
20839
20840 * xterm.c (xaw_scroll_callback): Cast correctly.
20841
20842 2008-02-01 Dave Love <fx@gnu.org>
20843
20844 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20845 (lispy_kana_keys): Comment out.
20846 (make_lispy_event) [XK_kana_A]: Comment out.
20847
20848 * xterm.c (xaw_scroll_callback): Cast call_data.
20849 (XTread_socket): Deal with ASCII keysyms.
20850 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20851
20852 2008-02-01 Dave Love <fx@gnu.org>
20853
20854 * xterm.c (Vx_keysym_table): New.
20855 (syms_of_xterm): Initialize it.
20856 (XTread_socket): Use it.
20857 From head: Eliminate incorrect optimization that tried to avoid
20858 decoding the output of X*LookupString.
20859 (x_get_font_repertory): Delete charset declaration.
20860
20861 2008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20864 return 0.
20865 (Fdefine_coding_system_internal): Setup
20866 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20867
20868 2008-02-01 Dave Love <fx@gnu.org>
20869
20870 * coding.c (Fcheck_coding_system): Doc fix.
20871
20872 * editfns.c (Finsert_byte): Return a proper value.
20873
20874 2008-02-01 Kenichi Handa <handa@m17n.org>
20875
20876 * coding.c (decode_coding): Fix args to translate_chars. Pay
20877 attention to Vstandard_translation_table_for_decode.
20878 (encode_coding): Fix args to translate_chars. Pay attention to
20879 Vstandard_translation_table_for_encode.
20880
20881 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20882 SINGLE_BYTE_CHAR_P.
20883
20884 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20885 not by SINGLE_BYTE_CHAR_P.
20886
20887 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20888 SINGLE_BYTE_CHAR_P.
20889
20890 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20891 SINGLE_BYTE_CHAR_P.
20892
20893 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20894 by SINGLE_BYTE_CHAR_P.
20895
20896 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20897 SINGLE_BYTE_CHAR_P.
20898
20899 2008-02-01 Dave Love <fx@gnu.org>
20900
20901 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20902
20903 2008-02-01 Dave Love <fx@gnu.org>
20904
20905 * fns.c (Flanginfo): Fix typo.
20906
20907 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20908
20909 2008-02-01 Kenichi Handa <handa@m17n.org>
20910
20911 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20912 (detect_coding_emacs_mule, detect_coding_iso_2022)
20913 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20914 incomplete byte sequence. Don't update *mask when correctly detected.
20915 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20916 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20917 (detect_coding, detect_coding_system): Adjust for the changes above.
20918
20919 2008-02-01 Kenichi Handa <handa@m17n.org>
20920
20921 * character.c (char_string): Rename from
20922 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20923 (string_char): Rename from string_char.
20924
20925 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20926 if C is greater than MAX_3_BYTE_CHAR.
20927 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20928 string_char instead of string_char_with_unification.
20929
20930 2008-02-01 Dave Love <fx@gnu.org>
20931
20932 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20933
20934 2008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * keymap.c (push_key_description): Pay attention to force_multibyte.
20937
20938 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20939
20940 2008-02-01 Dave Love <fx@gnu.org>
20941
20942 * charset.c (define_charset_internal): Rename `supprementary'.
20943
20944 * Makefile.in (lisp, shortlisp): Remove latin-N.
20945
20946 2008-02-01 Dave Love <fx@gnu.org>
20947
20948 * xfns.c (x_window, x_window): Use use_xim.
20949
20950 * xterm.c (use_xim): Initialize.
20951 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20952 (x_term_init): Maybe set use_xim.
20953
20954 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20955
20956 2008-02-01 Kenichi Handa <handa@m17n.org>
20957
20958 * search.c (search_buffer): Fix case-fold-search of multibyte
20959 characters.
20960 (boyer_moore): Rename the last argument to char_high_bits.
20961
20962 2008-02-01 Kenichi Handa <handa@m17n.org>
20963
20964 * xdisp.c (display_string): Fix for the case of zero width glyph.
20965
20966 * xfns.c (x_set_font): Change the error message of the case that
20967 x_new_fontset returns Qt.
20968
20969 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20970 (Finternal_set_lisp_face_attribute): Use signal_error for the
20971 error of invalid fontset.
20972
20973 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20974 fontset, return Qt.
20975
20976 2008-02-01 Dave Love <fx@gnu.org>
20977
20978 * unexelf.c (unexec): Make .got handling not SGI-specific.
20979
20980 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20981
20982 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20983
20984 * keyboard.c (read_key_sequence): Fix type error.
20985
20986 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20987 type error.
20988
20989 * fontset.c (fontset_add): Return Lisp_Object.
20990
20991 2008-02-01 Dave Love <fx@gnu.org>
20992
20993 * charset.h (charset_ordered_list_tick): Declare extern.
20994
20995 2008-02-01 Kenichi Handa <handa@m17n.org>
20996
20997 The following changes (and some of 2008-02-01 changes of mine) are
20998 for handling syntax, category, and case conversion for unibyte
20999 characters by converting them to multibyte on the fly. With these
21000 changes, we don't have to setup syntax and case tables for unibyte
21001 characters in each language environment.
21002
21003 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21004 multibyte if necessary.
21005
21006 * bytecode.c (Fbyte_code): Likewise.
21007
21008 * character.h (LEADING_CODE_LATIN_1_MIN)
21009 (LEADING_CODE_LATIN_1_MAX): New macros.
21010 (unibyte_to_multibyte_table): Extern it.
21011 (unibyte_char_to_multibyte): New macro.
21012 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21013 (CHAR_LEADING_CODE): New macro.
21014 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21015
21016 * character.c (unibyte_to_multibyte_table): New variable.
21017 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21018 (multibyte_char_to_unibyte): If C is an eight-bit character,
21019 convert it to the corresponding byte value.
21020
21021 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21022 not 1, signals an error. Update the elements of
21023 unibyte_to_multibyte_table.
21024 (init_charset_once): Initialize unibyte_to_multibyte_table.
21025 (syms_of_charset): Define the charset `iso-8859-1'.
21026
21027 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21028 as is without converting it to unibyte. In a unibyte buffer,
21029 convert C to multibyte before checking the syntax.
21030
21031 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21032
21033 * minibuf.c (Fminibuffer_complete_word): Use the macro
21034 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21035
21036 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21037
21038 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21039 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21040 that is zero, convert an eight-bit char to multibyte.
21041 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21042 non-emacs case.
21043 (PATFETCH): Convert an eight-bit char to multibyte.
21044 (HANDLE_UNIBYTE_RANGE): New macro.
21045 (regex_compile): Setup the compiled pattern for multibyte chars
21046 even if the given regex string is unibyte. Use PATFETCH_RAW
21047 instead of PATFETCH in many places. To handle `charset'
21048 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21049 only for ASCII chars.
21050 (analyse_first) <exactn>: Simplify because the compiled pattern
21051 is multibyte.
21052 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21053 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21054 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21055 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21056 multibyte always 1.
21057 (re_search_2): In emacs, set the locale variable multibyte to 1,
21058 otherwise to 0. New local variable target_multibyte. Check it
21059 to decide the multibyteness of STR1 and STR2. If
21060 target_multibyte is zero, convert unibyte chars to multibyte
21061 before translating and checking fastmap.
21062 (TARGET_CHAR_AND_LENGTH): New macro.
21063 (re_match_2_internal): In emacs, set the locale variable multibyte
21064 to 1, otherwise to 0. New local variable target_multibyte. Check
21065 it to decide the multibyteness of STR1 and STR2. Use
21066 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21067 <charset, charset_not>: If multibyte is nonzero, check fastmap
21068 only for ASCII chars. Call bcmp_translate with
21069 target_multibyte, not with multibyte.
21070 <begline>: Declare the local variable C as `unsigned'.
21071 (bcmp_translate): Change the last arg name to target_multibyte.
21072
21073 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21074 the regexp pattern and the matching target. Set cp->buf.multibyte
21075 to the multibyteness of the regexp pattern. Set
21076 cp->but.target_multibyte to the multibyteness of the matching target.
21077 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21078 FETCH_STRING_CHAR_ADVANCE.
21079 (Freplace_match): Convert unibyte chars to multibyte.
21080
21081 * syntax.c (char_quoted, back_comment, scan_words)
21082 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21083 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21084 unibyte chars to multibyte.
21085 (skip_chars): Delete the arg syntaxp, and move the code for
21086 handling syntaxes to skip_syntaxes. Change callers.
21087 Fix the case that the multibyteness of STRING and the current
21088 buffer doesn't match.
21089 (skip_syntaxes): New function.
21090 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21091 SINGLE_BYTE_CHAR_P.
21092
21093 2008-02-01 Kenichi Handa <handa@m17n.org>
21094
21095 * xfaces.c (QCfontset): New variable.
21096 (LFACE_FONTSET): New macro.
21097 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21098 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21099 (Finternal_set_lisp_face_attribute)
21100 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21101 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21102 check also LFACE_FONTSET_INDEX.
21103 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21104 attrs[LFACE_FONT_INDEX].
21105 (syms_of_xfaces): Intern and staticpro QCfontset.
21106
21107 * dispextern.h (enum lface_attribute_index): New member
21108 LFACE_FONTSET_INDEX.
21109
21110 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21111
21112 2008-02-01 Kenichi Handa <handa@m17n.org>
21113
21114 * coding.c (coding_set_destination): Fix coding->destination for
21115 the case converting a region.
21116 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21117 (encode_coding_object): Fix coding->dst_pos and
21118 coding->dst_pos_byte for the case converting a region.
21119
21120 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21121
21122 * character.h (BYTE8_STRING): New macro.
21123
21124 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21125
21126 2008-02-01 Kenichi Handa <handa@m17n.org>
21127
21128 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21129 characters by octal form.
21130
21131 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21132
21133 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21134 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21135 _fetch_multibyte_char_len.
21136 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21137
21138 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21139
21140 * casefiddle.c (casify_object): Simplify. Handle the case that
21141 the case conversion change the byte length.
21142 (casify_region): Likewise.
21143
21144 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21145
21146 * character.c (_fetch_multibyte_char_len): Delete this variable.
21147 (syms_of_character): Setup Vprintable_chars.
21148
21149 * editfns.c (Fchar_equal): Fix for the unibyte case.
21150 (Finsert_byte): New function.
21151 (syms_of_editfns): Defsubr it.
21152
21153 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21154 of direct code 0x3ffff.
21155
21156 * search.c (Freplace_match): Fix for the unibyte case.
21157
21158 2008-02-01 Kenichi Handa <handa@m17n.org>
21159
21160 * lread.c (safe_to_load_p): Fix the logic.
21161
21162 * syntax.c (scan_words): Don't treat characters belonging to
21163 different scripts as constituting a word.
21164
21165 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21166
21167 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21168
21169 * emacs.c (main): In the case of --unibyte, instead of aborting on
21170 finding non-empty buffer, make it unibyte.
21171
21172 2008-02-01 Kenichi Handa <handa@m17n.org>
21173
21174 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21175 to create a fontset.
21176
21177 2008-02-01 Dave Love <fx@gnu.org>
21178
21179 * character.c (Funibyte_char_to_multibyte): Doc fix.
21180
21181 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21182
21183 2008-02-01 Kenichi Handa <handa@m17n.org>
21184
21185 * fontset.c (fontset_add): Make the type `int'.
21186 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21187
21188 * character.c (unibyte_char_to_multibyte)
21189 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21190 charset_unibyte, not charset_primary.
21191
21192 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21193
21194 * charset.c (charset_unibyte): Rename from charset_primary.
21195 (Funibyte_charset): Rename from Fprimary_charset.
21196 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21197 (syms_of_charset): Adjust for the above changes.
21198
21199 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21200 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21201 it->multibyte_p is zero.
21202
21203 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21204 Delete extern.
21205
21206 2008-02-01 Kenichi Handa <handa@m17n.org>
21207
21208 * coding.c (Fdefine_coding_system_internal): Fix category setting
21209 for a coding system of type iso-2022.
21210
21211 2008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21214
21215 2008-02-01 Kenichi Handa <handa@m17n.org>
21216
21217 * syntax.c (Vnext_word_boundary_function_table): New variable.
21218 (next-word-boundary-function-table): Declare it as a Lisp variable
21219 in syms_of_syntax.
21220 (scan_words): Call functions in Vnext_word_boundary_function_table
21221 if any.
21222
21223 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21224
21225 * fontset.c (fs_load_font): If fontp->charset is not negative,
21226 return fontp without setting its members.
21227
21228 2008-02-01 Dave Love <fx@gnu.org>
21229
21230 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21231
21232 * m/sparc.h (HAVE_ALLOCA): Delete.
21233
21234 * s/irix6-5.h: Don't include strings.h.
21235 (bcopy, bzero, bcmp): Don't undef.
21236
21237 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21238
21239 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21240 (TIOCSIGSEND): Don't test IRIX6.
21241 (bcopy, bzero, bcmp): Define conditionally.
21242
21243 2008-02-01 Kenichi Handa <handa@m17n.org>
21244
21245 * buffer.c (Qas, Qmake, Qto): New variables.
21246 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21247 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21248
21249 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21250 we are inserting a process output into a multibyte buffer.
21251
21252 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21253 multibyte_char_to_unibyte.
21254
21255 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21256 by the primary charset, make it eight-bit char.
21257 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21258
21259 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21260 (charset_8_bit__control, charset_8_bit_graphic)
21261 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21262 (define_charset_internal): New function.
21263 (syms_of_charset): Call define_charset_internal for pre-defined
21264 charsets.
21265
21266 * charset.h (charset_8_bit): Extern it.
21267
21268 * coding.c (make_conversion_work_buffer): Adjust for the change
21269 of Fset_buffer_multibyte.
21270 (encode_coding_raw_text): Increment p0 in the loop.
21271
21272 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21273
21274 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21275 for the change of Fset_buffer_multibyte.
21276
21277 * fns.c (Fstring_to_multibyte): New function.
21278 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21279
21280 2008-02-01 Dave Love <fx@gnu.org>
21281
21282 * xfns.c (x_put_x_image): Declare args.
21283
21284 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21285 (try_font_list): Declare an arg.
21286
21287 * xdisp.c (message2_nolog, set_message): Declare an arg.
21288
21289 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21290
21291 * syntax.c (scan_sexps_forward): Declare an arg.
21292
21293 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21294 Declare an arg.
21295
21296 * lisp.h (Fnew_fontset): Declare.
21297
21298 * keymap.c (push_key_description): Call CHARACTERP correctly.
21299
21300 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21301 (face_for_char): Delete unused vars.
21302 (Fset_fontset_font): Doc fix. Delete unused vars.
21303
21304 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21305
21306 * composite.c (update_compositions): Declare arg.
21307
21308 * cm.c (calccost, cmgoto): Declare args.
21309
21310 * charset.c: Remove `emacs' conditional. Doc fixes.
21311 (map_char_table_for_charset): Declare.
21312
21313 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21314
21315 * ccl.c: Remove `emacs' conditional.
21316
21317 2008-02-01 Kenichi Handa <handa@m17n.org>
21318
21319 The following changes are to allow specifying multiple font
21320 patterns for a character range (specified by script or charset).
21321
21322 * Makefile.in (abbrev.o): Depend on syntax.h.
21323 (xfaces.o): Depend on charset.h.
21324
21325 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21326 SINGLE_BYTE_CHAR_P.
21327
21328 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21329
21330 * character.h (Vchar_script_table): Extern it.
21331
21332 * character.c (Vscript_alist): Delete.
21333 (Vchar_script_table, Qchar_script_table): New variable.
21334 (syms_of_character): Declare Vchar_script_table as a lisp variable
21335 and initialize it.
21336
21337 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21338 have property char-table-extra-slots, make no extra slot.
21339
21340 * dispextern.h (struct face): Delete member `charset'.
21341 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21342 SINGLE_BYTE_CHAR_P.
21343 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21344 Add prototypes.
21345 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21346 (generate_ascii_font_name): Rename from generate_ascii_font.
21347
21348 * fontset.h (get_font_repertory_func): New prototype.
21349 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21350 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21351
21352 * fontset.c (Qprepend, Qappend): New variables.
21353 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21354 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21355 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21356 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21357 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21358 (load_font_get_repertory): New functions.
21359 (fontset_set): Delete.
21360 (fontset_face): New arg FACE. Return face ID, not face.
21361 Complete re-write to handle new fontset structure. Change caller.
21362 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21363 (face_for_char): Don't call lookup_face.
21364 (make_fontset_for_ascii_face): New arg FACE.
21365 (fs_load_font): New arg CHARSET_ID. Don't check
21366 Vfont_encoding_alist here.
21367 (find_font_encoding): New function.
21368 (list_fontsets): Use STRINGP, not ! NILP.
21369 (accumulate_script_ranges): New function.
21370 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21371 re-written to handle new fontset structure.
21372 (Ffontset_font): Return a copy of element.
21373 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21374 docstring of font-encoding-alist.
21375
21376 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21377 (Fset_fotset_font): Fix arguments to 5.
21378
21379 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21380
21381 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21382 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21383 (highlight_trailing_whitespace): Adjust for the change of
21384 lookup_named_face.
21385
21386 * xfaces.c: Include charset.h.
21387 (load_face_font): Delete argument C. Change caller.
21388 (generate_ascii_font_name): Rename from generate_ascii_font.
21389 (font_name_registry): New function.
21390 (cache_face): Store ascii faces before non-ascii faces in buckets.
21391 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21392 Lookup only ascii faces.
21393 (lookup_non_ascii_face): New function.
21394 (lookup_named_face): Delete argument C. Change caller.
21395 (lookup_derived_face): Delete argument C. Change caller.
21396 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21397 a string, just call font_list with it.
21398 (choose_face_font): Delete arguments FACE and C. New arg
21399 FONT_SPEC. Change caller.
21400 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21401 Change caller.
21402 (realize_non_ascii_face): New function.
21403 (realize_x_face): Call load_face_font here.
21404 (realize_tty_face): Delete argument C. Change caller.
21405 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21406 get a face ID.
21407 (dump_realized_face): Don't print charset of FACE.
21408
21409 * xfns.c (x_set_font): Always call x_new_fontset and
21410 store_frame_parameter.
21411 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21412 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21413
21414 * xterm.h (x_get_font_repertory): Extern it.
21415
21416 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21417 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21418 it->multibyte_p is zero.
21419 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21420 (x_new_fontset): If FONTSETNAME doesn't match any existing
21421 fontsets, create a new one.
21422 (x_get_font_repertory): New function.
21423
21424 2008-02-01 Kenichi Handa <handa@m17n.org>
21425
21426 * coding.c (Ffind_coding_systems_region_internal): Detect an
21427 ASCII only string correctly.
21428
21429 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21430 version is 0.
21431
21432 2008-02-01 Kenichi Handa <handa@m17n.org>
21433
21434 * lread.c: Include "coding.h".
21435 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21436 (load_each_byte, unread_char): New variables.
21437 (readchar_backlog): Delete.
21438 (readchar): Return a character unless load_each_byte is nonzero.
21439 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21440 cons. If unread_char is not -1, simply return it.
21441 (unreadchar): Handle the case that readcharfun is
21442 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21443 (read_multibyte): Delete.
21444 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21445 (read_emacs_mule_char): New functions.
21446 (Fload): Even if the file doesn't have the extension ".elc", if
21447 safe_to_load_p returns a positive version number, assume that the
21448 file contains bytecompiled code. If the version is less than 22,
21449 load the file while decoding multibyte sequences by emacs-mule.
21450 (readevalloop): Don't use readchar_backlog.
21451 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21452 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21453 (read_escape): Delete the arg BYTEREP.
21454 (read1): Set load_each_byte to 1 temporarily while handling
21455 #@NUMBER. Don't call read_multibyte.
21456 (read_vector): Call Fread with a cons. If readcharfun is
21457 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21458 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21459 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21460 and Qload_force_doc_strings.
21461
21462 2008-02-01 Kenichi Handa <handa@m17n.org>
21463
21464 * xdisp.c (face_before_or_after_it_pos): Call
21465 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21466
21467 2008-02-01 Kenichi Handa <handa@m17n.org>
21468
21469 * character.h (TRAILING_CODE_P): New macro.
21470 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21471 (string_char_with_unification): Fix prototype.
21472 (Vscript_alist): Extern it.
21473
21474 * character.c (Vscript_alist): New variable.
21475 (string_char_with_unification, str_as_unibyte)
21476 (string_escape_byte8): Add `const' to local variables.
21477 (syms_of_character): Declare script-alist as a Lisp variable.
21478
21479 * charset.h (Vcharset_ordered_list): Extern it.
21480 (charset_ordered_list_tick): Extern it.
21481 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21482 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21483 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21484 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21485 (Funify_charset): Adjust for the change of Funify_charset.
21486
21487 * charset.c (charset_ordered_list_tick): New variable.
21488 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21489 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21490 deunify instead of unify a charset.
21491 (string_xstring_p): Add `const' to local variables.
21492 (find_charsets_in_text): Add `const' to arguments and local variables.
21493 (encode_char): Adjust for the change of Funify_charset. Fix
21494 detecting of invalid code.
21495 (Fset_charset_priority): Increment charset_ordered_list_tick.
21496 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21497 and TO_CODE.
21498
21499 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21500 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21501 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21502 (decode_coding_ccl, consume_chars)
21503 (Ffind_coding_systems_region_internal)
21504 (Fcheck_coding_systems_region): Add `const' to local variables.
21505
21506 * print.c (print_object): Use octal form for printing the
21507 contents of a bool vector.
21508
21509 2008-02-01 Dave Love <fx@gnu.org>
21510
21511 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21512 <version == 20>: Refuse to load.
21513
21514 2008-02-01 Dave Love <fx@gnu.org>
21515
21516 * fns.c: Move coding.h.
21517 (Qcodeset, Qdays, Qmonths): New.
21518 (concat): Use CHARACTERP instead of INTEGERP.
21519 (Flocale_codeset): Delete.
21520 (Flanginfo): New function.
21521 (syms_of_fns): Change accordingly.
21522
21523 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21524
21525 2008-02-01 Dave Love <fx@gnu.org>
21526
21527 * casetab.c (init_casetab_once, init_casetab_once): Fix
21528 CHAR_TABLE_SET call.
21529
21530 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21531
21532 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21533
21534 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21535 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21536 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21537
21538 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21539
21540 * coding.c (ENCODE_DESIGNATION, decode_eol)
21541 (make_conversion_work_buffer, code_conversion_restore)
21542 (Fdefine_coding_system_internal): Convert Lisp types.
21543 (code_conversion_restore): Use EQ, not ==.
21544 (Fencode_coding_string): Fix code_convert_string call.
21545
21546 * coding.h (code_convert_region): Fix prototype.
21547
21548 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21549
21550 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21551 (Ffontset_info): Convert Lisp types.
21552
21553 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21554
21555 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21556
21557 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21558
21559 * chartab.c: Include "...h", not <...h> in some cases.
21560
21561 * callproc.c (Fcall_process): Remove unused variables.
21562
21563 2008-02-01 Dave Love <fx@gnu.org>
21564
21565 * coding.c (Fset_coding_system_priority): Allow null arg list.
21566
21567 2008-02-01 Dave Love <fx@gnu.org>
21568
21569 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21570 (Fself_insert_and_exit): Use CHARACTERP.
21571
21572 * callproc.c (Fcall_process): Remove unused vars.
21573
21574 * xterm.c (XTread_socket): Add extra dead keysyms.
21575
21576 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21577
21578 * dispextern.h: Remove prototypes for redraw_frame,
21579 redraw_garbaged_frames.
21580
21581 * cmds.c (Fself_insert_command): Use CHARACTERP.
21582
21583 * chartab.c (make_sub_char_table): Remove unused var.
21584 (Fset_char_table_default, Fmap_char_table): Doc fix.
21585
21586 * keymap.c (access_keymap): Remove generic char code.
21587 (push_key_description): Use CHARACTERP.
21588
21589 2008-02-01 Dave Love <fx@gnu.org>
21590
21591 * charset.c: Doc fixes.
21592 (Funify_charset): Extra checking.
21593
21594 2008-02-01 Dave Love <fx@gnu.org>
21595
21596 * lread.c: Remove some unused variables.
21597 (safe_to_load_p): If safe, return the magic number version byte.
21598 (Fload): Maybe use load-with-code-conversion.
21599
21600 2008-02-01 Kenichi Handa <handa@m17n.org>
21601
21602 * category.c (Fmodify_category_entry): Don't modify the contents
21603 of category_set for characters out of the range. Avoid
21604 unnecessary modification.
21605
21606 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21607 Vchar_unify_table. The default value of the table is now nil.
21608
21609 * character.c (syms_of_character): Setup Vchar_width_table for
21610 eight-bit-control and raw-byte chars.
21611
21612 * charset.h (enum define_charset_arg_index): Delete
21613 charset_arg_parents and add charset_arg_subset and
21614 charset_arg_superset.
21615 (enum charset_attr_index): Delete charset_parents and add
21616 charset_subset and charset_superset.
21617 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21618 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21619 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21620 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21621 (CHARSET_SUPERSET): New macros.
21622 (charset_work): Extern it.
21623 (ENCODE_CHAR): Use charset_work.
21624 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21625 (map_charset_chars): Extern it.
21626
21627 * charset.c (load_charset_map): Set the default value of encoder
21628 and deunifier char-tables to nil.
21629 (map_charset_chars): Change argument. Change callers. Use
21630 map_char_table_for_charset instead of map_char_table.
21631 (Fmap_charset_chars): New optional args from_code and to_code.
21632 (Fdefine_charset_internal): Adjust for the change of
21633 `define-charset' (:parents -> :subset or :superset).
21634 (charset_work): New variable.
21635 (encode_char, syms_of_charset): Adjust for the change of
21636 Fdefine_charset_internal.
21637 (Ffind_charset_string): Setup the vector `charsets' correctly.
21638
21639 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21640 the previous change.
21641 (char_table_ref_and_range): Adjust for the above change.
21642 (map_sub_char_table_for_charset): New function.
21643 (map_char_table_for_charset): New function.
21644
21645 * keymap.c (describe_vector): Handle a char-table directly here.
21646 (describe_char_table): Delete.
21647
21648 * lisp.h (map_charset_chars): Delete.
21649
21650 2008-02-01 Dave Love <fx@gnu.org>
21651
21652 * fns.c (count_combining): Comment out (unused).
21653 (Flocale_codeset): New.
21654 (syms_of_fns): Defsubr it.
21655
21656 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21657 (size_t): Remove.
21658
21659 2008-02-01 Dave Love <fx@gnu.org>
21660
21661 * Makefile.in (chartab.o): Depend on charset.h.
21662
21663 2008-02-01 Kenichi Handa <handa@m17n.org>
21664
21665 * character.c (syms_of_character): Set the default value of
21666 Vprintable_chars to Qnil.
21667
21668 2008-02-01 Dave Love <fx@gnu.org>
21669
21670 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21671
21672 2008-02-01 Kenichi Handa <handa@m17n.org>
21673
21674 * charset.c (load_charset_map): Handle the case that from < to
21675 correctly.
21676
21677 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21678 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21679 Pay attention to raw-8-bit chars.
21680
21681 2008-02-01 Kenichi Handa <handa@m17n.org>
21682
21683 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21684 It is not bytecompiled now.
21685
21686 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21687 (charset_jisx0208): New variables.
21688 (Fdefine_charset_internal): Setup them if appropriate.
21689 (init_charset_once): Initialize them to -1.
21690
21691 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21692 (charset_jisx0208): Extern them.
21693
21694 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21695 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21696 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21697 (setup_iso_safe_charsets): Fix arguments to Fassq.
21698 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21699 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21700 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21701 (encode_coding_iso_2022): Change the 1st arg to
21702 ENCODE_ISO_CHARACTER to a variable.
21703
21704 2008-02-01 Kenichi Handa <handa@m17n.org>
21705
21706 * charset.h (enum define_charset_arg_index): New enums
21707 charset_arg_min_code and charset_arg_max_code.
21708 (struct charset): New member char_index_offset.
21709
21710 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21711 Take charset->char_index_offset into account.
21712 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21713 args[charset_arg_max_code]. Setup charset.char_index_offset.
21714 (syms_of_charset): Fix args to Fdefine_charset_internal.
21715
21716 2008-02-01 Dave Love <fx@gnu.org>
21717
21718 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21719
21720 2008-02-01 Dave Love <fx@gnu.org>
21721
21722 * coding.c: Doc fixes.
21723 (Fcoding_system_aliases): Fix return value.
21724 (Qmac): Remove (duplicated) definition.
21725
21726 2008-02-01 Dave Love <fx@gnu.org>
21727
21728 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21729 New functions.
21730
21731 * character.c (Fstring): Doc fix.
21732
21733 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21734
21735 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
21736 (font-encoding-alist): Doc fix.
21737
21738 2008-02-01 Dave Love <fx@gnu.org>
21739
21740 * term.c (costs_set): Declare static, non-initialized for pcc.
21741 (encode_terminal_code): Remove unused var.
21742
21743 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21744 for K&R.
21745
21746 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21747
21748 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21749 (suffixes): Move out of make_subsidiaries for K&R.
21750
21751 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21752
21753 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21754
21755 2008-02-01 Dave Love <fx@gnu.org>
21756
21757 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21758
21759 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21760
21761 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21762
21763 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21764
21765 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21766
21767 2008-02-01 Kenichi Handa <handa@m17n.org>
21768
21769 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21770 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21771
21772 2008-02-01 Kenichi Handa <handa@m17n.org>
21773
21774 * coding.c (decode_coding_charset): Adjust for the change of
21775 Fdefine_coding_system_internal.
21776 (Fdefine_coding_system_internal): For a coding system of
21777 `charset' type, store a list of charset IDs in
21778 `charset_attr_charset_valids' element of coding attributes.
21779
21780 2008-02-01 Kenichi Handa <handa@m17n.org>
21781
21782 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21783 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21784 caller. Handle 2-byte and 3-byte charsets correctly.
21785 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21786 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21787 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21788 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21789 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21790 sequence.
21791 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21792 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21793 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21794 and alt&rule composition.
21795 (decode_coding_iso_2022): Handle composition correctly.
21796 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21797
21798 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21799 re-defining a charset. If the charset has :emacs-mule-id, setup
21800 emacs_mule_bytes.
21801 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21802
21803 2008-02-01 Kenichi Handa <handa@m17n.org>
21804
21805 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21806 (encode_coding_big5, encode_coding_charset): If coding requires safe
21807 encoding, produce a character specified by
21808 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21809
21810 2008-02-01 Dave Love <fx@gnu.org>
21811
21812 * xterm.c (XSetIMValues): Declare.
21813
21814 * process.c: Conditionally include sys/wait.h, pty.h.
21815
21816 * print.c (print_object): Fix print format for 64-bit systems.
21817
21818 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21819
21820 * buffer.c (emacs_strerror): Declare.
21821
21822 * fontset.c (Fclear_face_cache): Declare.
21823 (accumulate_font_info): Comment-out (unused).
21824 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21825 variables.
21826
21827 * character.h (string_escape_byte8): Declare.
21828
21829 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21830 unused vars.
21831 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21832 (Fmap_charset_chars): Doc fix.
21833
21834 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21835 (Fset_coding_system_priority, Fset_coding_system_priority)
21836 (Fdefine_coding_system_internal): Doc fix.
21837
21838 2008-02-01 Dave Love <fx@gnu.org>
21839
21840 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21841
21842 2008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * character.c (string_escape_byte8): Make multibyte string with
21845 correct size.
21846
21847 * charset.c (Fmake_char): Delete unnecessary code.
21848
21849 2008-02-01 Kenichi Handa <handa@m17n.org>
21850
21851 * xfns.c (x_encode_text): Allocate coding.destination here, and
21852 call encode_coding_object with dst_object Qnil.
21853
21854 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21855 multibyte form correctly.
21856
21857 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21858 against Vfont_encoding_alist.
21859
21860 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21861 handling of charset list.
21862 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21863 (decode_coding_object): Move point to coding->dst_pos before
21864 calling post-read-conversion function.
21865 (encode_coding_object): Give correct arguments to
21866 pre-write-conversion. Ignore the return value of
21867 pre-write-conversion function. Pay attention to the case that
21868 pre-write-conversion changes the current buffer. If dst_object is
21869 Qt, even if coding->src_bytes is zero, allocate at least one byte
21870 to coding->destination.
21871
21872 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21873
21874 * charset.c (Fmake_char): Make it more backward compatible.
21875 (Fmap_charset_chars): Fix docstring.
21876
21877 2008-02-01 Dave Love <fx@gnu.org>
21878
21879 * coding.c: Doc fixes.
21880 (Fdefine_coding_system_alias): Use names, not symbols, in
21881 coding-system-alist.
21882
21883 2008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21886 of calling free_realized_face.
21887
21888 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
21889
21890 * charset.c (read_hex): Don't treat SPC as a comment starter.
21891 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21892 (Fdecode_char): Fix typo.
21893
21894 2008-02-01 Kenichi Handa <handa@m17n.org>
21895
21896 * charset.h (struct charset): New member `code_space_mask'.
21897
21898 * coding.c (coding_set_source): Delete the local variable beg_byte.
21899 (encode_coding_charset, Fdefine_coding_system_internal):
21900 Delete the local variable charset.
21901 (Fdefine_coding_system_internal): Setup
21902 attrs[coding_attr_charset_valids] correctly.
21903
21904 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21905 member to check if CODE is valid or not.
21906 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21907 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21908 is within the range of charset->min_code and carset->max_code.
21909
21910 2008-02-01 Dave Love <fx@gnu.org>
21911
21912 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21913
21914 * dispextern.h (generate_ascii_font): Fix return type.
21915
21916 * xfaces.c (generate_ascii_font): Fix arg declaration.
21917
21918 * coding.c (coding_inherit_eol_type)
21919 (Fset_terminal_coding_system_internal)
21920 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21921
21922 2008-02-01 Kenichi Handa <handa@m17n.org>
21923
21924 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21925 multiple charsets correctly.
21926
21927 2008-02-01 Kenichi Handa <handa@m17n.org>
21928
21929 * search.c (boyer_moore): Fix handling of multibyte character
21930 translation.
21931
21932 * xdisp.c (display_mode_element): When the variable `elt' is
21933 changed, update `this' and `lisp_string'.
21934
21935 2008-02-01 Kenichi Handa <handa@m17n.org>
21936
21937 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21938
21939 * callproc.c (Fcall_process): Be sure to give the current buffer
21940 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21941
21942 * charset.c (struct charset_map_entries): New struct.
21943 (load_charset_map): Rename from parse_charset_map. New args
21944 entries and n_entries. Change caller.
21945 (load_charset_map_from_file): Rename from load_charset_map.
21946 Change caller. New arg control_flag. Call load_charset_map at
21947 the tail.
21948 (load_charset_map_from_vector): New function.
21949 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21950 (encode_char): If the charset is compact, change a character index
21951 to a code point.
21952
21953 * coding.c (coding_alloc_by_making_gap): Check the case that the
21954 source and destination are the same correctly.
21955 (decode_coding_raw_text): Set coding->consumed_char and
21956 coding->consumed to 0.
21957 (produce_chars): If coding->chars_at_source is nonzero, update
21958 coding->consumed_char and coding->consumed before calling
21959 alloc_destination.
21960 (Fdefine_coding_system_alias): Register ALIAS in
21961 Vcoding_system_alist.
21962 (syms_of_coding): Define `no-conversion' coding system at the tail.
21963
21964 * fileio.c (Finsert_file_contents): Set coding_system instead of
21965 val. If the current buffer is multibyte, always call
21966 decode_coding_gap.
21967
21968 * xfaces.c (try_font_list): Give higher priority to fontset's
21969 family than face's family.
21970
21971 2008-02-01 Kenichi Handa <handa@m17n.org>
21972
21973 * callproc.c (Fcall_process): Be sure to give the current buffer
21974 to decode_coding_c_string.
21975
21976 * xfaces.c (try_font_list): Give a family specified in a fontset
21977 higher priority than a family specified in a face.
21978
21979 2008-02-01 Kenichi Handa <handa@m17n.org>
21980
21981 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21982 Fix arguments to insert_from_buffer.
21983
21984 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21985
21986 2008-02-01 Kenichi Handa <handa@m17n.org>
21987
21988 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21989 (decode_coding_gap): Set coding->dst_multibyte correctly.
21990
21991 2008-02-01 Kenichi Handa <handa@m17n.org>
21992
21993 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21994 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21995 (encode_coding_utf_16): Substitute coding->default_char for
21996 non-Unicode characters.
21997 (decode_coding): Don't call record_insert here.
21998 (setup_coding_system): Initialize `surrogate' of
21999 coding->spec.utf_16 to 0.
22000 (EMIT_ONE_BYTE): Fix for multibyte case.
22001
22002 * insdel.c (insert_from_gap): Call record_insert.
22003
22004 2008-02-01 Kenichi Handa <handa@m17n.org>
22005
22006 * casefiddle.c (casify_region): Fix multibyte case.
22007
22008 * character.c (c_string_width): Add return type `int'.
22009 (char_string_with_unification): Delete arg ADVANCED.
22010
22011 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22012 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22013 (CHAR_STRING_ADVANCE): Make it do-while statement.
22014
22015 * chartab.c (sub_char_table_set_range): Optimize for the case
22016 DEPTH == 3. Add workaround code for a GCC optimization bug.
22017
22018 * charset.c (parse_charset_map): Remove an unused variable.
22019
22020 * coding.c: Delete unused variables.
22021
22022 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22023 earlier. If inserted is zero and the coding system doesn't
22024 require flushing, don't call decode_coding_gap.
22025
22026 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22027
22028 2008-02-01 Kenichi Handa <handa@m17n.org>
22029
22030 The following changes are for using Unicode as an internal
22031 character model, and use UTF-8 format for buffer/string
22032 representation.
22033
22034 * .gdbinit (xchartable): Adjust for the change of char table structure.
22035 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22036
22037 * Makefile.in (obj): Add character.o and chartab.o.
22038 (lisp, shortlisp): Remove utf-8.elc.
22039 (*.o): For many files, change dependency on charset.h to
22040 character.h, and add dependency on character.h.
22041 (character.o, chartab.o): New targets.
22042
22043 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22044 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22045 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22046 of "charset.h".
22047
22048 * dired.c, filelock.c: Include "character.h".
22049
22050 * alloc.c: Include "character.h" instead of "charset.h".
22051 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22052 (syms_of_alloc): Remove defsubr for Smake_char_table.
22053
22054 * buffer.c: Include "character.h" instead of "charset.h", don't
22055 include "coding.h".
22056 (Fset_buffer_multibyte): Adjust for UTF-8.
22057
22058 * buffer.h: EXFUN Fbuffer_live_p.
22059
22060 * callproc.c: Include "character.h" instead of "charset.h".
22061 (Fcall_process): Big change for the new code-conversion APIs.
22062
22063 * casetab.c: Include "character.h" instead of "charset.h".
22064 (set_canon, set_identity, shuffle): Adjust for the new
22065 map_char_table spec.
22066 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22067 accessing the char table structure.
22068
22069 * chartab.c: New file that implements char table.
22070
22071 * category.c: Include "character.h".
22072 (copy_category_entry): New function.
22073 (copy_category_table): Call map_char_table and copy_category_entry.
22074 (Fmake_category_table): Initialize all top-level slots.
22075 (char_category_set): New function.
22076 (modify_lower_category_set): Delete.
22077 (Fmodify_category_entry): Call char_table_ref_and_range.
22078
22079 * category.h (CATEGORY_SET): Just call char_category_set.
22080
22081 * ccl.c: Include "character.h".
22082 (Qccl, Qcclp): New variables.
22083 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22084 it's less than 256.
22085 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22086 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22087 and DST type.
22088 (ccl_driver): Change types of argument, adjust code accordingly.
22089 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22090 ccl_driver.
22091 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22092
22093 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22094 New members src_multibyte, dst_multibyte, consumed, and produced.
22095 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22096 (CODING_SPEC_CCL_PROGRAM): New macro.
22097 (ccl_driver): Update prototype.
22098 (Qccl, Qcclp, Fccl_program_p): Extern them.
22099 (CHECK_CCL_PROGRAM): New macro.
22100
22101 * character.c, character.h, chartab.c: New files.
22102
22103 * charset.c: Mostly re-written. Move character and multibyte sequence
22104 handling codes to character.c.
22105
22106 * charset.h: Mostly re-written. Move character and multibyte sequence
22107 handling codes to character.h.
22108
22109 * coding.c, coding.h: Mostly re-written.
22110
22111 * composite.c: Include "character.h" instead of "charset.h".
22112 (CHAR_WIDTH): Move to character.h.
22113 (HASH_KEY, HASH_VALUE): Delete.
22114
22115 * composite.h (enum composition_method): Change order of enumeration
22116 symbols.
22117
22118 * data.c: Include "character.h" instead of "charset.h".
22119 (Faref): Call CHAR_TABLE_REF for a char table.
22120 (Faset): Call CHAR_TABLE_SET for a char table.
22121
22122 * dispextern.h (free_realized_face, check_face_attribytes)
22123 (generate_ascii_font): Extern them.
22124 (free_realized_multibyte_face): Delete extern.
22125
22126 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22127 table structure.
22128
22129 * editfns.c: Include "character.h" instead of "charset.h".
22130 (Fchar_to_string): Always call CHAR_STRING.
22131
22132 * emacs.c (main): Call init_charset_once, init_charset,
22133 syms_of_chartab, and syms_of_character.
22134
22135 * fileio.c: Include "character.h" instead of "charset.h".
22136 (Finsert_file_contents): Big change for the new code-conversion API.
22137 (choose_write_coding_system, Fwrite_region): Likewise.
22138 (build_annotations_2): Delete.
22139 (e_write): Big change for the new code-conversion API.
22140
22141 * fns.c: Include "character.h" instead of "charset.h".
22142 (copy_sub_char_table): Move to chartab.c.
22143 (Fcopy_sequence): Call copy_char_table for a char table.
22144 (concat): Delete codes calling count_multibyte.
22145 (string_char_to_byte, string_byte_to_char): Adjust for the new
22146 multibyte form.
22147 (internal_equal): Adjust for the change of char table structure.
22148 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22149 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22150 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22151 (char_table_translate, optimize_sub_char_table)
22152 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22153 chartab.c.
22154 (char_table_ref_and_index): Delete.
22155 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22156 (Fmd5): Call preferred_coding_system instead of accessing
22157 Vcoding_category_list. Adjust for the new code-conversion API.
22158 (syms_of_fns): Move defsubr for char table related functions to
22159 chartab.c.
22160
22161 * fontset.c: Mostly re-written.
22162
22163 * fontset.h (struct font_info): Change type of the member encoding_type.
22164 (enum FONT_SPEC_INDEX): New enum.
22165 (fontset_font_pattern, fs_load_font): Update prototype.
22166 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22167
22168 * indent.c: Include "character.h" instead of "charset.h".
22169 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22170
22171 * insdel.c: Include "character.h" instead of "charset.h".
22172 (copy_text): Don't refer to Vnonascii_translation_table.
22173 (insert_from_gap): New function.
22174
22175 * keyboard.c: Include "character.h" instead of "charset.h".
22176 (command_loop_1): Never call direct_output_forward_char before
22177 a non-ASCII character.
22178 (read_char): If Vkeyboard_translate_table is a char table, always
22179 translate a character.
22180
22181 * keymap.c: Include "character.h".
22182 (store_in_keymap): Handle the case that IDX is a cons.
22183 (Fdefine_key): Handle the case that KEY is a cons and the car part
22184 is also a cons (range).
22185 (push_key_description): Adjust for the new character code.
22186 (describe_vector): Call describe_char_table for a char table.
22187 (describe_char_table): New function.
22188
22189 * keymap.h (describe_char_table): Extern it.
22190
22191 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22192 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22193 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22194 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22195 Delete.
22196 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22197 structure.
22198 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22199 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22200 (CHARTAB_SIZE_BITS_3): New macros.
22201 (chartab_size): Extern it.
22202 (struct Lisp_Char_Table): Re-design.
22203 (struct Lisp_Sub_Char_Table): New structure.
22204 (HASH_KEY, HASH_VALUE): Move from fns.c.
22205 (CHARACTERBITS): Define as 22.
22206 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22207 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22208 (GC_SUB_CHAR_TABLE_P): New macro.
22209 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22210 (code_convert_string_norecord): Deleted extern.
22211 (init_character_once, syms_of_character, init_charset)
22212 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22213
22214 * lread.c: Include "character.h".
22215 (read_multibyte): New arg NBYTES.
22216 (read_escape): Change the meaning of returned *BYTEREP.
22217 (to_multibyte): Delete.
22218 (read1): Adjust the handling of char table and string.
22219
22220 * print.c: Include "character.h" instead of "charset.h".
22221 (print_string): Convert 8-bit raw bytes to octal form by
22222 string_escape_byte8.
22223 (print_object): Adjust for the new multibyte form. Print 8-bit
22224 raw bytes always in octal form. Handle sub char table correctly.
22225
22226 * process.c: Include "character.h" instead of "charset.h".
22227 (read_process_output, send_process): Adjust for the new
22228 code-conversion API.
22229
22230 * puresize.h (BASE_PURESIZE): Increase.
22231
22232 * regex.c: Include "character.h" instead of "charset.h".
22233 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22234 (regex_compile): Accept a range whose starting and ending
22235 character have different leading bytes.
22236 (analyse_first): Adjust for the above change.
22237
22238 * search.c: Include "character.h" instead of "charset.h".
22239 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22240 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22241
22242 * syntax.c: Include "character.h" instead of "charset.h".
22243 (syntax_parent_lookup): Delete.
22244 (Fmodify_syntax_entry): Accept a cons as CHAR.
22245 (skip_chars): Adjust for the new multibyte form.
22246 (init_syntax_once): Call char_table_set_range instead of directly
22247 accessing the structure of a char table.
22248
22249 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22250 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22251 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22252 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22253
22254 * term.c: Include "buffer.h" and "character.h".
22255 (encode_terminal_code, write_glyphs): Adjust for the new
22256 code-conversion API.
22257 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22258
22259 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22260
22261 * xdisp.c: Include "character.h".
22262 (get_next_display_element): Adjust for the new multibyte form.
22263 (disp_char_vector): Adjust for the new char table structure.
22264 (decode_mode_spec_coding): Adjust for the new structure of
22265 coding system.
22266 (decode_mode_spec): Adjust for the new code-conversion API.
22267
22268 * xfaces.c: Include "character.h" instead of "charset.h".
22269 (load_face_font): Adjust for the change of choose_face_font and
22270 FS_LOAD_FONT.
22271 (generate_ascii_font): New function.
22272 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22273 (set_font_frame_param): Adjust for the change of choose_face_font.
22274 (free_realized_face): Make it public.
22275 (free_realized_faces_for_fontset): Rename from
22276 free_realized_multibyte_face. Free also faces realized for ASCII.
22277 (choose_face_font): Change arguments. Adjust for the change of
22278 fontset_font_pattern and FS_LOAD_FONT.
22279
22280 * xfns.c: Include "character.h".
22281 (x_encode_text): Adjust for the new code-conversion API.
22282
22283 * xselect.c: Don't include "charset.h".
22284 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22285
22286 * xterm.c: Include "character.h".
22287 (x_encode_char): New argument CHARSET. Change caller.
22288 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22289 Call ENCODE_CHAR instead of SPLIT_CHAR.
22290 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22291 CHAR_WIDTH instead of CHARSET_WIDTH.
22292 (XTread_socket): Adjust for the new code-conversion API.
22293 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22294 (x_load_font): Adjust for the change of struct font.
22295
22296 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22297
22298 * xfaces.c (face_at_buffer_position): Remove unused vars.
22299
22300 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22301
22302 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22303 Fix overflow checking.
22304
22305 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22306
22307 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22308 Cancel previous change.
22309
22310 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22311
22312 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22313 ccl->eight_bit_control. Fix check for buffer overflow.
22314 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22315 (ccl_driver): Initialize extra_bytes to 0.
22316
22317 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22318
22319 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22320 return it ORed with ctrl_modifier.
22321
22322 2008-01-29 Miles Bader <miles@gnu.org>
22323
22324 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22325
22326 2008-01-28 Jason Rumney <jasonr@gnu.org>
22327
22328 * w32.c (stat): Don't double check for networked drive.
22329
22330 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22331
22332 * window.c (run_window_configuration_change_hook): New function.
22333 Code extracted from set_window_buffer. Set the selected frame.
22334 (set_window_buffer): Use it.
22335 * window.h (run_window_configuration_change_hook): Declare.
22336 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22337
22338 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22339
22340 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22341
22342 * Makefile.in: Remove references to unused macros.
22343
22344 2008-01-26 Eli Zaretskii <eliz@gnu.org>
22345
22346 * w32.c (g_b_init_get_sid_sub_authority)
22347 (g_b_init_get_sid_sub_authority_count): New static variables.
22348 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22349 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22350 (init_user_info): Use them to retrieve uid and gid.
22351 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22352 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22353 st_uid and st_gid of the file.
22354
22355 2008-01-26 Jason Rumney <jasonr@gnu.org>
22356
22357 * w32.c (logon_network_drive): New function.
22358 (stat): Use it.
22359
22360 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
22361
22362 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22363 invisible text covered with an ellipsis.
22364
22365 2008-01-25 Richard Stallman <rms@gnu.org>
22366
22367 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22368 jump back to beginning. Move some other initializations after that.
22369 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22370 New variables.
22371 (syms_of_xdisp): Init them.
22372
22373 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22374
22375 * buffer.c (reset_buffer_local_variables):
22376 Implement `permanent-local-hook'.
22377 (Qpermanent_local_hook): New variable.
22378 (syms_of_buffer): Init and staticpro it.
22379
22380 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
22381
22382 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22383
22384 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22385
22386 * fns.c (Fclrhash): Return TABLE.
22387
22388 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22389
22390 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22391 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22392 is set even without positional changes.
22393 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22394
22395 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22396
22397 2008-01-23 Jason Rumney <jasonr@gnu.org>
22398
22399 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22400
22401 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22402 the unicode range available in MULE by locale-coding-system.
22403 Improve dbcs lead byte detection. Set event timestamp and modifiers
22404 earlier.
22405
22406 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22407
22408 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22409 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22410 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22411 when used on child processes.
22412
22413 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
22414
22415 * dbusbind.c (Fdbus_method_return_internal): Rename from
22416 Fdbus_method_return.
22417 (Fdbus_unregister_object): Move to dbus.el.
22418 (Fdbus_call_method, Fdbus_method_return_internal)
22419 (Fdbus_send_signal): Improve debug messages.
22420
22421 2008-01-20 Martin Rudalics <rudalics@gmx.at>
22422
22423 * undo.c (undo_inhibit_record_point): New variable.
22424 (syms_of_undo): Initialize it.
22425 (record_point): Don't record point when undo_inhibit_record_point
22426 is set.
22427
22428 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22429
22430 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22431
22432 * xdisp.c (Qauto_hscroll_mode): New var.
22433 (syms_of_xdisp): Initialize it.
22434 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22435 window's buffer.
22436 (hscroll_windows): Don't check automatic_hscrolling_p here.
22437
22438 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22439 vscroll if we're setting window-buffer to the value it already has.
22440
22441 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22442
22443 * m/intel386.h: Remove references to XENIX.
22444
22445 2008-01-17 Andreas Schwab <schwab@suse.de>
22446
22447 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22448 instead of HAVE_X86_64_LIB64_DIR.
22449 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22450
22451 2008-01-17 Glenn Morris <rgm@gnu.org>
22452
22453 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22454 to HAVE_X86_64_LIB64_DIR.
22455
22456 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22457
22458 * s/irix3-3.h:
22459 * s/irix4-0.h:
22460 * s/386-ix.h:
22461 * s/domain.h:
22462 * s/hpux9-x11r4.h:
22463 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22464
22465 * sysdep.c: Remove code containing references to symbols defined
22466 by unsupported systems.
22467
22468 2008-01-16 Glenn Morris <rgm@gnu.org>
22469
22470 * coding.c (select-safe-coding-system-function): Doc fix.
22471
22472 2008-01-15 Glenn Morris <rgm@gnu.org>
22473
22474 * config.in: Revert 2008-01-13 change: this is a generated file.
22475
22476 2008-01-13 Tom Tromey <tromey@redhat.com>
22477
22478 * lisp.h: Fix typo.
22479
22480 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22481
22482 * m/sequent-ptx.h:
22483 * m/sequent.h:
22484 * s/ptx.h:
22485 * s/ptx4-2.h:
22486 * s/ptx4.h: Remove files for systems no longer supported.
22487
22488 * callproc.c (Fcall_process): Fix previous change.
22489
22490 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22491
22492 * unexsunos4.c: Remove file, system not supported anymore.
22493
22494 * m/mips.h:
22495 * m/intel386.h:
22496 * callproc.c:
22497 * config.in:
22498 * ecrt0.c:
22499 * emacs.c:
22500 * fileio.c:
22501 * frame.c:
22502 * getpagesize.h:
22503 * keyboard.c:
22504 * lread.c:
22505 * process.c:
22506 * puresize.h:
22507 * sysdep.c:
22508 * systty.h:
22509 * syswait.h:
22510 * unexec.c:
22511 * xdisp.c:
22512 * alloc.c: Remove code containing references to symbols defined by
22513 unsupported systems.
22514
22515 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22516
22517 * coding.c (detect_coding_mask): Fix previous change.
22518
22519 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22520
22521 * coding.c (detect_coding_iso2022): New arg
22522 latin_extra_code_state. Allow Latin extra codes only
22523 when *latin_extra_code_state is nonzero.
22524 (detect_coding_mask): If there is a NULL byte, detect the encoding
22525 as UTF-16 or binary. If Latin extra codes exist, detect the
22526 encoding as ISO-2022 only when there's no other proper encoding is
22527 found.
22528
22529 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22530
22531 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22532 #ifdef MAC_OS.
22533
22534 2008-01-08 Richard Stallman <rms@gnu.org>
22535
22536 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22537
22538 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
22539
22540 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22541 menu bar in parentheses.
22542
22543 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22544
22545 * m/7300.h:
22546 * m/acorn.h:
22547 * m/alliant-2800.h:
22548 * m/alliant.h:
22549 * m/alliant1.h:
22550 * m/alliant4.h:
22551 * m/altos.h:
22552 * m/amdahl.h:
22553 * m/apollo.h:
22554 * m/att3b.h:
22555 * m/aviion-intel.h:
22556 * m/aviion.h:
22557 * m/celerity.h:
22558 * m/clipper.h:
22559 * m/cnvrgnt.h:
22560 * m/convex.h:
22561 * m/cydra5.h:
22562 * m/delta88k.h:
22563 * m/dpx2.h:
22564 * m/dual.h:
22565 * m/elxsi.h:
22566 * m/f301.h:
22567 * m/gould-np1.h:
22568 * m/gould.h:
22569 * m/i860.h:
22570 * m/ibmps2-aix.h:
22571 * m/ibmrt-aix.h:
22572 * m/ibmrt.h:
22573 * m/irist.h:
22574 * m/is386.h:
22575 * m/isi-ov.h:
22576 * m/mega68.h:
22577 * m/mg1.h:
22578 * m/news-r6.h:
22579 * m/news-risc.h:
22580 * m/news.h:
22581 * m/nh3000.h:
22582 * m/nh4000.h:
22583 * m/ns16000.h:
22584 * m/ns32000.h:
22585 * m/nu.h:
22586 * m/orion.h:
22587 * m/orion105.h:
22588 * m/paragon.h:
22589 * m/pfa50.h:
22590 * m/plexus.h:
22591 * m/pyramid.h:
22592 * m/pyrmips.h:
22593 * m/sh3el.h:
22594 * m/sps7.h:
22595 * m/sr2k.h:
22596 * m/stride.h:
22597 * m/sun1.h:
22598 * m/sun2.h:
22599 * m/sun3-68881.h:
22600 * m/sun3-fpa.h:
22601 * m/sun3-soft.h:
22602 * m/sun3.h:
22603 * m/sun386.h:
22604 * m/symmetry.h:
22605 * m/tad68k.h:
22606 * m/tahoe.h:
22607 * m/targon31.h:
22608 * m/tek4300.h:
22609 * m/tekxd88.h:
22610 * m/tower32.h:
22611 * m/tower32v3.h:
22612 * m/ustation.h:
22613 * m/wicat.h:
22614 * m/xps100.h:
22615 * s/cxux.h:
22616 * s/cxux7.h:
22617 * s/dgux.h:
22618 * s/dgux4.h:
22619 * s/dgux5-4-3.h:
22620 * s/dgux5-4r2.h:
22621 * s/esix.h:
22622 * s/esix5r4.h:
22623 * s/hiuxmpp.h:
22624 * s/hiuxwe2.h:
22625 * s/iris3-5.h:
22626 * s/iris3-6.h:
22627 * s/isc2-2.h:
22628 * s/isc3-0.h:
22629 * s/isc4-0.h:
22630 * s/isc4-1.h:
22631 * s/newsos5.h:
22632 * s/newsos6.h:
22633 * s/osf1.h:
22634 * s/osf5-0.h:
22635 * s/riscix1-1.h:
22636 * s/riscix12.h:
22637 * s/sco4.h:
22638 * s/sco5.h:
22639 * s/sunos4-0.h:
22640 * s/sunos4-1.h:
22641 * s/sunos413.h:
22642 * s/sunos4shr.h:
22643 * s/umax.h:
22644 * s/unipl5-2.h:
22645 * s/xenix.h:
22646 * cxux-crt0.s:
22647 * unexapollo.c:
22648 * unexconvex.c:
22649 * unexenix.c:
22650 * unexsni.c: Remove files for systems no longer supported.
22651
22652 * m/intel386.h: Remove references to unsupported systems.
22653
22654 * w32.c (get_emacs_configuration): Remove reference to i860.
22655
22656 * sysdep.c: Remove dead code.
22657
22658 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22659
22660 * s/rtu.h:
22661 * m/masscomp.h: Remove files. Platform is obsolete.
22662
22663 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
22664
22665 * dbusbind.c (Fdbus_method_return): New function.
22666 (xd_read_message): Add the serial number to the event.
22667 (Fdbus_register_method): Activate the function.
22668
22669 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22670
22671 * keyboard.c (read_key_sequence): Fix typo.
22672
22673 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
22674
22675 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22676 (xd_signature, xd_append_arg): Handle element type detection for
22677 empty arrays.
22678 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22679 SDATA () calls; this must be solved more general.
22680 (Fdbus_register_signal): Use SBYTES instead of strlen.
22681
22682 2008-01-03 Magnus Henoch <magnus@zemdatav>
22683
22684 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22685 unsigned int for byte values (necessary for big-endian platform).
22686 (Fdbus_call_method): Handle the case of no returned arguments.
22687
22688 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22689
22690 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22691
22692 2007-12-31 Magnus Henoch <mange@freemail.hu>
22693
22694 * dbusbind.c (xd_signature): Signature of variant is just "v".
22695
22696 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
22697
22698 * dbusbind.c: Fix several errors and compiler warnings.
22699 Reported by Tom Tromey <tromey@redhat.com>.
22700 (XD_ERROR, XD_DEBUG_MESSAGE)
22701 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22702 (xd_append_arg): Part for basic D-Bus types rewritten.
22703 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22704 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22705 appropriate.
22706 (xd_read_message): Return Qnil. Don't signal an error; it is not
22707 useful during event reading.
22708 (Fdbus_register_signal): Signal an error if the check for
22709 FUNCTIONP fails.
22710 (Fdbus_register_method): New function. The implementation is not
22711 complete, the call of the function signals an error therefore.
22712 (Fdbus_unregister_object): New function, renamed from
22713 Fdbus_unregister_signal. The initial check signals an error, if
22714 the object is not well formed.
22715
22716 2007-12-30 Richard Stallman <rms@gnu.org>
22717
22718 * textprop.c (get_char_property_and_overlay):
22719 Signal error if POSITION is out of range in a buffer.
22720
22721 2007-12-29 Martin Rudalics <rudalics@gmx.at>
22722
22723 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22724 because the original parameters are in pure storage now.
22725
22726 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22727
22728 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22729
22730 2007-12-22 Eli Zaretskii <eliz@gnu.org>
22731
22732 * callint.c (syms_of_callint) <command-history>: Add reference to
22733 history-length in the doc string.
22734
22735 2007-12-17 Jason Rumney <jasonr@gnu.org>
22736
22737 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22738 before passing as wParam.
22739
22740 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
22741
22742 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22743 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22744 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22745 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22746 as number.
22747 (Fdbus_call_method): Fix docstring.
22748
22749 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
22750
22751 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22752 New macros.
22753 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22754 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22755 Simplify.
22756 (xd_signature): New function.
22757 (xd_append_arg): Compute also signatures. Major rewrite.
22758 (xd_retrieve_arg): Make debug messages friendly.
22759 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22760 Check for signatures of arguments.
22761
22762 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
22763
22764 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22765 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22766 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22767 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22768 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22769 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22770 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22771 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22772 (xd_retrieve_value): Remove. Functionality included in ...
22773 (xd_append_arg): New function.
22774 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22775
22776 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
22777
22778 * dbusbind.c (top): Include <stdio.h>.
22779 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22780 dbus_message_new_method_call and dbus_message_new_signal.
22781 (Fdbus_register_signal): Rename unique_name to uname.
22782 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22783 non-existing unique name. Fix typos in matching rule. Return an
22784 object which is useful in Fdbus_unregister_signal.
22785 (Fdbus_unregister_signal): Reimplementation, in order to remove
22786 only the corresponding entry.
22787 (Vdbus_registered_functions_table): Change the order of entries.
22788 Apply these changes in xd_read_message and Fdbus_register_signal.
22789
22790 2007-12-16 Andreas Schwab <schwab@suse.de>
22791
22792 * fileio.c (Finsert_file_contents): Fix overflow check to not
22793 depend on undefined integer overflow.
22794
22795 2007-12-14 Jason Rumney <jasonr@gnu.org>
22796
22797 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22798 for characters above 127.
22799
22800 2007-12-13 Jason Rumney <jasonr@gnu.org>
22801
22802 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22803 before dereferencing array.
22804 (lookup_vk_code): Remove zero comparison.
22805
22806 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
22807
22808 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22809 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22810 Use `unsigned int' instead of `uint'.
22811 (xd_read_message, Fdbus_register_signal): Split expressions into
22812 multiple lines before operators "&&" and "||", according to the
22813 GNU Coding Standards.
22814
22815 2007-12-14 Eli Zaretskii <eliz@gnu.org>
22816
22817 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22818
22819 2007-12-12 Juri Linkov <juri@jurta.org>
22820
22821 * buffer.c (Frename_buffer): In interactive spec replace
22822 `read-buffer' with `read-string' that uses `buffer-name-history'
22823 as history, and the current buffer's name as default.
22824
22825 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22826
22827 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22828 manipulating the backtrace manually.
22829 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22830 (struct backtrace, backtrace_list): Remove.
22831 (command_loop_1): Remove dead var `no_direct'.
22832
22833 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22834 preserve non-built-in buffer-local variables.
22835 (Fkill_all_local_variables): Don't re-create&re-set permanent
22836 buffer-local variables.
22837
22838 2007-12-09 Juri Linkov <juri@jurta.org>
22839
22840 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22841 Lisp code that uses `read-buffer' with current buffer as default.
22842
22843 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
22844
22845 * dbusbind.c (xd_read_message): Generate an event for every
22846 registered handler. There might be several handlers registered
22847 for the same signal.
22848 (Fdbus_register_signal): Don't overwrite a registration for the
22849 same signal. Add a new registration if handlers are different.
22850 (Vdbus_registered_functions_table): Rework doc string.
22851
22852 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
22853
22854 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22855 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22856 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22857 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22858 Unify argument lists.
22859 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22860 arguments and hash table keys. Use unique name for service.
22861 (Fdbus_unregister_signal): Remove checks.
22862 (Vdbus_registered_functions_table): Fix doc string.
22863
22864 2007-12-05 Magnus Henoch <mange@freemail.hu>
22865
22866 * process.c (make_process): Initialize pty_flag to 0.
22867
22868 2007-12-05 Jason Rumney <jasonr@gnu.org>
22869
22870 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22871 specified XBMs.
22872
22873 2007-12-05 Richard Stallman <rms@gnu.org>
22874
22875 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22876
22877 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22878
22879 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22880 New variable.
22881 (mac_try_close_socket) [MAC_OSX]: New function.
22882 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22883 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22884
22885 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22886 Use mac_try_close_socket.
22887
22888 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22889
22890 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22891 reloc_base.
22892 (copy_dysymtab): Compute relocation base here.
22893 (rebase_reloc_address) [__ppc64__]: New function.
22894 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22895 changed.
22896
22897 2007-12-05 Jason Rumney <jasonr@gnu.org>
22898
22899 * w32proc.c (sys_spawnve): Quote args with wildcards.
22900
22901 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22902
22903 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22904 __objc_* sections.
22905 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22906
22907 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
22908
22909 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22910 Move check for Vdbus_registered_functions_table to
22911 xd_read_queued_messages.
22912 (xd_read_queued_messages): Protect xd_read_message calls by
22913 internal_condition_case_1.
22914
22915 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
22916
22917 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22918 Qdbus_system_bus and Qdbus_session_bus, respectively.
22919 (Vdbus_intern_symbols): Remove.
22920 (Vdbus_registered_functions_table): New hash table.
22921 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22922 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22923 Rewrite in order to manage registered functions by hash table
22924 Vdbus_registered_functions_table.
22925
22926 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22927
22928 * xterm.c: Update URL to Window Manager Specification in comment.
22929
22930 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
22931
22932 * config.in (HAVE_DBUS): Add.
22933
22934 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22935 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22936 (obj): Add $(DBUS_OBJ).
22937 (LIBES): Add $(DBUS_LIBS).
22938 (dbusbind.o): New target.
22939
22940 * dbusbind.c: New file.
22941
22942 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22943
22944 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22945 (Qdbus_event): New Lisp symbol.
22946 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22947 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
22948 (keys_of_keyboard): Define dbus-event.
22949
22950 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22951
22952 2007-12-01 Richard Stallman <rms@gnu.org>
22953
22954 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22955
22956 2007-11-30 Jason Rumney <jasonr@gnu.org>
22957
22958 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22959 (w32con_reset_terminal_modes): Clear screen buffer.
22960 (w32_face_attributes): Don't use color indexes that are out of range.
22961 Only reverse the default colors.
22962
22963 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22964 WINDOWSNT.
22965
22966 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22967
22968 2007-11-29 Jason Rumney <jasonr@gnu.org>
22969
22970 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22971 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22972 if the terminal colors are initialized.
22973 (unspecified_fg, unspecified_bg): Remove unused declarations.
22974
22975 2007-11-29 Andreas Schwab <schwab@suse.de>
22976
22977 * keyboard.c (apply_modifiers): Fix typo.
22978
22979 2007-11-29 Richard Stallman <rms@gnu.org>
22980
22981 * keymap.c (Fcurrent_local_map): Doc fix.
22982
22983 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22984
22985 * s/gnu-kfreebsd.h: New file.
22986
22987 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22988
22989 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22990 Don't cast redundantly.
22991
22992 * keyboard.c (KEY_TO_CHAR): New macro.
22993 (parse_modifiers, apply_modifiers): Accept integer arguments.
22994 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22995 for chars and symbol keys.
22996 After doing such remapping, apply function-key-map again.
22997
22998 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22999
23000 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23001 compiled anymore.
23002
23003 2007-11-26 Andreas Schwab <schwab@suse.de>
23004
23005 * process.c (list_processes_1): Fix indentation level of the
23006 command column.
23007
23008 2007-11-23 Andreas Schwab <schwab@suse.de>
23009
23010 * editfns.c (Fformat): Handle %c specially since it requires the
23011 argument to be of type int.
23012
23013 2007-11-23 Markus Triska <markus.triska@gmx.at>
23014
23015 * emacs.c (main): Call init_editfns before init_process, since
23016 init_process sets Vprocess_connection_type depending on OS release.
23017
23018 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23019
23020 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23021 (find_symbol_value): Use do_symval_forwarding.
23022
23023 * data.c (set_internal): Set the value in the `cons-cell' (for
23024 Buffer_Local_values) not only for frame-local variables.
23025
23026 2007-11-22 Andreas Schwab <schwab@suse.de>
23027
23028 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23029 values to sprintf.
23030 * keymap.c (Fsingle_key_description): Likewise.
23031 * print.c (print_object): Likewise.
23032
23033 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23034
23035 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23036 file for image is nil.
23037
23038 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23039
23040 * term.c: Include stdarg.h.
23041 (fatal): Implement using varargs.
23042 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23043
23044 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23045
23046 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23047 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23048 Update call to buffer_slot_type_mismatch.
23049 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23050 (buffer_slot_type_mismatch): Update.
23051 * buffer.c (buffer_local_types): Remove.
23052 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23053 (defvar_per_buffer): Set the type in the buffer_objfwd.
23054
23055 2007-11-21 Jason Rumney <jasonr@gnu.org>
23056
23057 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23058 CreateFileMapping returns NULL on failure.
23059
23060 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23061
23062 * search.c (Fset_match_data): Remove the `evaporate' feature.
23063 (unwind_set_match_data): Don't use the `evaporate' feature.
23064
23065 2007-11-21 Jason Rumney <jasonr@gnu.org>
23066
23067 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23068
23069 * w32console.c (w32con_write_glyphs): Remove unused variables.
23070
23071 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23072
23073 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23074
23075 * s/darwin.h (MULTI_KBOARD): Remove.
23076
23077 * macfns.c (x_create_tip_frame, Fx_create_frame)
23078 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23079
23080 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23081
23082 * buffer.c (Fbuffer_local_value): Remove redundant test.
23083 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23084 than in `current-buffer' to match the comment.
23085 Do the swap using swap_in_global_binding.
23086
23087 * data.c (store_symval_forwarding, set_internal):
23088 * eval.c (specbind): Remove dead code.
23089
23090 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23091 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23092 Since we do not want to see internal Lisp_*fwd objects here.
23093
23094 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23095
23096 * sysdep.c (init_system_name): Use getaddrinfo if available.
23097
23098 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23099 (x_scroll_bar_note_movement): start, end, with, height in struct
23100 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23101
23102 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23103
23104 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23105
23106 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23107
23108 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23109 This undoes Richard's change of 14-Oct-2002.
23110
23111 * alloc.c (allocate_other_vector):
23112 * lisp.h (allocate_other_vector): Remove.
23113
23114 * window.c (struct save_window_data): Move non-lisp data to the end
23115 and make it `int' rather than Lisp_Object.
23116 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23117 Done wrap/unwrap integer values.
23118 (Fset_window_configuration, compare_window_configurations):
23119 Update use of fields to their new types.
23120
23121 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23122 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23123 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23124 (SET_SCROLL_BAR_X_WINDOW): Remove.
23125 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23126 Access the new x_window field directly.
23127 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23128 Don't wrap/unwrap integers into Lisp_Objects.
23129 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23130 (x_scroll_bar_report_motion):
23131 Don't wrap/unwrap integers into Lisp_Objects.
23132 (x_term_init): Use SDATA.
23133 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23134 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23135 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23136 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23137 * xfns.c (x_set_background_color):
23138 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23139 Access the new x_window field directly.
23140
23141 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23142 (allocate_pseudovector): Make non-static.
23143
23144 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23145 (allocate_pseudovector): Declare.
23146 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23147
23148 2007-11-15 Andreas Schwab <schwab@suse.de>
23149
23150 * editfns.c (Fformat): Correctly format EMACS_INT values.
23151 Also take precision into account when formatting an integer.
23152
23153 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23154
23155 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23156
23157 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23158 (syms_of_keyboard): Defsubr it.
23159
23160 * data.c (swap_in_global_binding): Fix longstanding bug where
23161 store_symval_forwarding was not called with the right second argument,
23162 thus causing objfwd-ing from being dropped.
23163
23164 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23165
23166 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23167 (Fx_display_pixel_height, Fx_display_planes)
23168 (Fx_display_color_cells, Fx_server_max_request_size)
23169 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23170 (Fx_display_visual_class, Fx_display_save_under):
23171 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23172 (Fx_display_pixel_height, Fx_display_planes)
23173 (Fx_display_color_cells, Fx_server_max_request_size)
23174 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23175 (Fx_display_mm_height, Fx_display_mm_width)
23176 (Fx_display_backing_store, Fx_display_visual_class)
23177 (Fw32_select_font, Fx_display_save_under):
23178 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23179 (Fx_display_pixel_height, Fx_display_planes)
23180 (Fx_display_color_cells, Fx_server_max_request_size)
23181 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23182 (Fx_display_save_under): Fix typos in docstrings.
23183
23184 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
23185
23186 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23187 corresponding to deleted entries; they are an implementation detail.
23188 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23189 Remove variables.
23190 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23191 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23192 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23193 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23194 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23195 (Fw32_define_rgb_color, Fw32_load_color_file)
23196 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23197 Fix typos in docstrings.
23198 (Fx_server_version): Reflow docstring.
23199 (Fw32_shell_execute): Doc fixes.
23200
23201 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
23202
23203 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23204 if w32_parse_hot_key returned nil.
23205
23206 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23207
23208 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23209
23210 2007-11-09 Jason Rumney <jasonr@gnu.org>
23211
23212 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23213
23214 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23215
23216 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23217 Remove W32_SCROLL_BAR_CLICK_EVENT.
23218
23219 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23220 Add MULTIMEDIA_KEY_EVENT.
23221
23222 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23223 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23224 (make_lispy_event) [WINDOWSNT]: Use it to translate
23225 MULTIMEDIA_KEY_EVENT.
23226
23227 * w32term.h (WM_APPCOMMAND): Define if not already.
23228 (GET_APPCOMMAND_LPARAM): Likewise.
23229
23230 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23231 WM_APPCOMMAND.
23232
23233 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23234 (syms_of_w32fns): Export and initialize it.
23235 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23236
23237 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
23238
23239 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23240 twice.
23241
23242 * xdisp.c (handle_face_prop): Fix last change.
23243
23244 2007-11-09 Richard Stallman <rms@gnu.org>
23245
23246 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23247 not just for after-strings and before-strings.
23248 Call face_for_overlay_string and pass the overlay to it.
23249 (handle_display_prop): Determine whether property came from an overlay.
23250 Pass OVERLAY arg to handle_single_display_spec.
23251 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23252 (load_overlay_strings): Fill in it->string_overlays.
23253 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23254
23255 * xfaces.c (face_for_overlay_string): Function renamed from
23256 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23257
23258 * dispextern.h (struct it): New elt string_overlays.
23259 New elt from_overlay, also in stack.
23260 Rearrange a few elements.
23261 (face_for_overlay_string): Decl renamed from
23262 face_at_buffer_position_no_overlays, and add argument.
23263
23264 2007-11-09 Richard Stallman <rms@gnu.org>
23265
23266 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23267 to get the base face for an overlay string.
23268
23269 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23270
23271 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23272
23273 * xdisp.c (handle_stop): Move some code out of loop.
23274
23275 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23276
23277 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23278 Fix conversion from Lisp object to ATSUFontID.
23279
23280 2007-11-09 Jason Rumney <jasonr@gnu.org>
23281
23282 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23283
23284 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23285
23286 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23287 Don't assume regions are aligned to page boundary.
23288 (print_load_command_name): Add LC_UUID if defined.
23289
23290 2007-11-09 Richard Stallman <rms@gnu.org>
23291
23292 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23293
23294 2007-11-07 Jason Rumney <jasonr@gnu.org>
23295
23296 * s/windows95.h: Remove.
23297
23298 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23299
23300 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23301 abort with a message on unhandled store_type values.
23302
23303 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23304
23305 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23306 Remove HAVE_X11R5 and HAVE_X11R4.
23307
23308 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23309
23310 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23311
23312 2007-11-01 Johan Bockgård <bojohan@gnu.org>
23313
23314 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23315 Don't set s->stippled_p here, since it has already been set by
23316 x_set_glyph_string_gc from x_draw_glyph_string.
23317
23318 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23319
23320 * sunfns.c: Remove file.
23321
23322 * m/sun386.h:
23323 * m/sun2.h:
23324 * m/sparc.h: Remove Sun windows code.
23325
23326 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23327
23328 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23329 (init_keyboard): Set current_kboard's window-system to nil.
23330 (tty_read_avail_input): Typo.
23331 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23332
23333 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23334
23335 * s/usg5-4.h:
23336 * s/usg5-3.h:
23337 * s/ptx.h:
23338 * m/is386.h:
23339 * m/ibmps2-aix.h:
23340 * Makefile.in: Remove all mentions of X10.
23341
23342 * dispnew.c (syms_of_display): Don't mention version 10.
23343
23344 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
23345
23346 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23347 ($(BLD)/abbrev.$(O)): Remove.
23348
23349 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23350
23351 Rewrite abbrev.c in Elisp.
23352 * image.c (Qcount): Don't declare as extern.
23353 (syms_of_image): Initialize and staticpro `Qcount'.
23354 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23355 * emacs.c (main): Don't call syms_of_abbrev.
23356 * Makefile.in (obj): Remove abbrev.o.
23357 (abbrev.o): Remove.
23358 * abbrev.c: Remove.
23359
23360 2007-10-26 Martin Rudalics <rudalics@gmx.at>
23361
23362 * window.c (window_min_size_2): Don't count header-line.
23363
23364 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23365
23366 * frame.h (struct frame): Move all bit fields after the first bit
23367 field to take advantage of the available space. Group all the
23368 chars together to reduce wasted space due to padding.
23369
23370 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
23371
23372 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23373
23374 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23375 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23376 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23377 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23378 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23379 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23380 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23381 (last_marked, mark_object_loop_halt): Make static.
23382
23383 * frame.c (syms_of_frame) <delete-frame-functions>:
23384 Fix typo in docstring.
23385
23386 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
23387
23388 * w32.c (init_environment): Fix tiny memory leak.
23389 (w32_get_resource): Remove unused variable `ok'.
23390
23391 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23392
23393 Make `window-system' into a keyboard-local variable (rather than
23394 frame-local as done originally by multi-tty).
23395
23396 * keyboard.h (struct kboard): Add Vwindow_system.
23397 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23398 (mark_kboards): Mark Vwindow_system.
23399
23400 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23401 (init_display): Don't set the obsolete `window-system' frame-param.
23402
23403 * xterm.c (x_term_init):
23404 * w32term.c (w32_create_terminal):
23405 * term.c (init_tty): Set Vwindow_system.
23406 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23407 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23408
23409 * xfns.c (Fx_create_frame, x_create_tip_frame):
23410 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23411 * macfns.c (Fx_create_frame):
23412 Don't set the obsolete `window-system' frame-param.
23413
23414 * frame.h (Qwindow_system): Remove.
23415 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23416 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23417
23418 2007-10-24 Richard Stallman <rms@gnu.org>
23419
23420 * frame.c (x_figure_window_size): For fullscreen case,
23421 set USPosition | PPosition without clobbering rest of window_prompting.
23422
23423 * keyboard.c (Fcurrent_idle_time): Doc fix.
23424
23425 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23426
23427 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23428
23429 * process.c (unwind_request_sigio): Only define if __ultrix__.
23430
23431 * callproc.c (child_setup): Remove spurious *.
23432
23433 * lisp.h (Fget_text_property): Declare.
23434 (have_menus_p): Declare it here rather than in sys-dep header files.
23435 * macterm.h (have_menus_p):
23436 * msdos.h (have_menus_p):
23437 * xterm.h (have_menus_p): Remove.
23438
23439 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23440 (Fmake_variable_frame_local): Just check the variable's const-ness
23441 rather than checking nil or t.
23442
23443 2007-10-22 Jason Rumney <jasonr@gnu.org>
23444
23445 * w32fns.c: Include math.h.
23446 (w32_abort): Declaration moved to nt/config.nt.
23447
23448 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23449 (abort): Redefinition moved to nt/config.nt.
23450
23451 * m/windowsnt.h: Remove.
23452
23453 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
23454
23455 * emacs.c (Fdump_emacs): Fix typo in message.
23456 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23457 <installation-directory>: Reflow docstring.
23458
23459 2007-10-22 Juri Linkov <juri@jurta.org>
23460
23461 * minibuf.c: Allow minibuffer default to be a list of default values.
23462 With empty input use the first element of this list as returned default.
23463 (string_to_object)
23464 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23465 (read_minibuf): If defalt is cons, set histstring to its car.
23466 (Fread_string): If default_value is cons, set val to its car.
23467 (Fread_buffer): If def is cons, use its car.
23468 (Fcompleting_read): If defalt is cons, set val to its car.
23469
23470 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
23471
23472 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23473
23474 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
23475
23476 * doc.c (Fdocumentation): Check for advice in all cases.
23477
23478 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
23479
23480 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23481
23482 2007-10-19 Richard Stallman <rms@gnu.org>
23483
23484 * doc.c (Fdocumentation): Check for and handle an advised function.
23485
23486 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
23487
23488 * process.c (Fset_process_filter): Doc fix.
23489
23490 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23491
23492 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23493 which caused key-translation-map to applied repeatedly (thus breaking
23494 double-mode).
23495
23496 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23497
23498 * xselect.c (x_own_selection, x_handle_selection_clear)
23499 (x_clear_frame_selections):
23500 * w32menu.c (list_of_panes, list_of_items):
23501 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23502 * textprop.c (validate_plist, interval_has_all_properties)
23503 (interval_has_some_properties, interval_has_some_properties_list)
23504 (add_properties, text_property_list):
23505 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23506 * minibuf.c (Fassoc_string):
23507 * macselect.c (x_own_selection, x_clear_frame_selections)
23508 (Fx_disown_selection_internal):
23509 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23510 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23511
23512 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
23513
23514 * process.c: Link to libs for calling res_init() if available.
23515 (Fmake_network_process): Call res_init() before getaddrinfo or
23516 gethostbyname, if possible.
23517
23518 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23519
23520 * lread.c (read1): Set pvectype for char_tables.
23521
23522 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23523 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23524 Add type checks.
23525 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23526
23527 * alloc.c (free_misc): Use XMISCTYPE.
23528 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23529
23530 2007-10-17 Glenn Morris <rgm@gnu.org>
23531
23532 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23533 (syms_of_minibuf): Add Qcompletion_ignore_case.
23534 * dired.c (Qcompletion_ignore_case): Change to external.
23535 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23536 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23537 (Fread_file_name): Use it rather than intern'ing.
23538
23539 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23540 (Fread_coding_system): Ignore case of user input.
23541
23542 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23543
23544 * xdisp.c (handle_display_prop): Ignore display specs after
23545 replacing one when string text is being replaced.
23546 (handle_single_display_spec): Pretend as if characters with display
23547 property haven't been consumed only when buffer text is being replaced.
23548
23549 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23550
23551 * xfns.c (Fx_create_frame, Fx_display_list):
23552 * window.c (window_fixed_size_p, enlarge_window)
23553 (shrink_window_lowest_first):
23554 * macterm.c (init_font_name_table):
23555 * macfns.c (Fx_create_frame, Fx_display_list):
23556 * lread.c (close_load_descs):
23557 * keyboard.c (read_char_x_menu_prompt):
23558 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23559 * coding.c (code_convert_region_unwind): Test the type of an object
23560 rather than just !NILP before extracting data from it.
23561
23562 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23563
23564 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23565 (XMISCANY): New macro.
23566 (XMISCTYPE): Use it.
23567 (struct Lisp_Misc_Any): New type.
23568 (union Lisp_Misc): Use it.
23569 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23570 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23571 (find_symbol_value, set_internal, default_value, Fset_default)
23572 (Fmake_variable_buffer_local, Fmake_local_variable)
23573 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23574 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23575 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23576 * alloc.c (allocate_buffer): Set the size and tag.
23577 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23578 Use XMISCANY.
23579 (die): Follow the GNU convention for error messages.
23580 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23581 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23582 tag any more.
23583 (set_buffer_internal_1):
23584 * frame.c (store_frame_param):
23585 * eval.c (specbind):
23586 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23587
23588 * doc.c (Fsnarf_documentation): Simplify.
23589
23590 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23591
23592 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23593 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23594
23595 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23596
23597 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23598
23599 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
23600
23601 * eval.c (do_autoload): Don't save autoloads.
23602
23603 * data.c (Ffset): Save autoload of the function being set.
23604
23605 2007-10-07 John Paul Wallington <jpw@pobox.com>
23606
23607 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23608 parameter before setting up faces.
23609
23610 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23611
23612 * ccl.c (Fregister_code_conversion_map):
23613 * keyboard.c (append_tool_bar_item): Reformat last change.
23614
23615 * lisp.h (eabs): Rename from `abs'. All callers changed.
23616
23617 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23618
23619 * buffer.c (add_overlay_mod_hooklist):
23620 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23621 * fontset.c (make_fontset):
23622 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23623 (append_tool_bar_item):
23624 * macmenu.c (grow_menu_items):
23625 * w32menu.c (grow_menu_items):
23626 * xmenu.c (grow_menu_items): Use larger_vector.
23627
23628 2007-10-13 Eli Zaretskii <eliz@gnu.org>
23629
23630 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23631 selected frame'' on MSDOS).
23632
23633 2007-10-12 Martin Rudalics <rudalics@gmx.at>
23634
23635 * frame.c (Qexplicit_name): New variable.
23636 (x_report_frame_params): Report it in parameter alist.
23637 (syms_of_frame): Intern and staticpro it.
23638
23639 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23640
23641 * macfns.c (x_create_tip_frame): Set terminal for frame.
23642
23643 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23644
23645 * frame.c (Qenvironment): Remove.
23646 (syms_of_frame) <Qenvironment>: Don't initialize.
23647 (Fdelete_frame): Don't treat the `environment' param specially.
23648 * frame.h (Qenvironment): Don't declare.
23649 * callproc.c (set_initial_environment): Don't set unused frame param.
23650
23651 * frame.c (Fframe_with_environment): Remove.
23652 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23653
23654 * lisp.h (Fframe_with_environment): Don't declare.
23655
23656 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
23657
23658 * indent.c (indent_tabs_mode, last_known_column)
23659 (last_known_column_modified): Make static.
23660 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23661
23662 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23663
23664 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23665
23666 2007-10-09 Jason Rumney <jasonr@gnu.org>
23667
23668 * w32term.c (x_set_window_size): Disable code that attempts to tell
23669 Lisp code about a size change before it actually happens.
23670
23671 2007-10-09 Richard Stallman <rms@gnu.org>
23672
23673 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23674 return HANDLED_RETURN.
23675
23676 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23677
23678 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23679 when there's an unread command event.
23680
23681 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23682 window autoselection act appropriately when leaving selected frame.
23683 (syms_of_frame): Initialize focus_follows_mouse.
23684 * frame.h (focus_follows_mouse): Extern it.
23685 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23686 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23687 * msdos.c (dos_rawgetc): Likewise.
23688 * w32term.c (w32_read_socket): Likewise.
23689 * xterm.c (handle_one_xevent): Likewise.
23690 * xdisp.c (syms_of_xdisp): In doc-string of
23691 mouse-autoselect-window mention focus-follows-mouse.
23692
23693 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23694
23695 * macterm.c (mac_load_query_font): Fix missing return value.
23696 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23697 Add BLOCK_INPUT.
23698
23699 2007-10-08 Richard Stallman <rms@gnu.org>
23700
23701 * xdisp.c (get_window_cursor_type): Implement documented behavior
23702 for cursor-in-non-selected-windows = t.
23703
23704 2007-10-08 Jason Rumney <jasonr@gnu.org>
23705
23706 * w32.c (w32_get_resource): Always close registry keys.
23707
23708 2007-10-08 Jason Rumney <jasonr@gnu.org>
23709
23710 * makefile.w32-in (LIBS): Add COMCTL32.
23711
23712 * w32fns.c (globals_of_w32fns): Init common controls.
23713
23714 2007-10-08 Richard Stallman <rms@gnu.org>
23715
23716 * image.c (our_memory_buffer): Rename from omfib_buffer.
23717
23718 2007-10-08 Richard Stallman <rms@gnu.org>
23719
23720 * buffer.c (Foverlays_at): Doc fix.
23721
23722 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23723
23724 * fns.c (Fplist_put): Preserve uneven tail data.
23725
23726 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23727
23728 * termhooks.h (enum event_kind): Remove trailing comma.
23729
23730 * frame.h (enum): Remove trailing comma.
23731
23732 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23733
23734 * w32proc.c (delete_child): Don't terminate threads of zombies.
23735
23736 2007-10-08 Martin Rudalics <rudalics@gmx.at>
23737
23738 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23739
23740 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23741 last-repeatable-command.
23742 (init_kboard): Initialize Vlast_repeatable_command.
23743 (command_loop_1): Set it to real_this_command unless that was
23744 bound to an input event.
23745 (mark_kboards): Mark it.
23746
23747 2007-10-08 Richard Stallman <rms@gnu.org>
23748
23749 * eval.c (condition-case): Doc fix.
23750
23751 2007-10-08 Masatake YAMATO <jet@gyve.org>
23752
23753 * xfaces.c (tty_supports_face_attributes_p): Fix code
23754 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23755 was copied and not edited.
23756
23757 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23758
23759 Add new `input-decode-map' keymap and use it for terminal
23760 escape sequences.
23761 * keyboard.h (struct kboard): Add Vinput_decode_map.
23762 Remove Vlocal_key_translation_map.
23763 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23764 (init_kboard): Init input-decode-map.
23765 Replace local-key-translation-map back with key-translation-map.
23766 (syms_of_keyboard): Declare input-decode-map.
23767 Remove local-key-translation-map. Update docstrings.
23768 (mark_kboards): Mark Vinput_decode_map.
23769 Don't mark Vlocal_key_translation_map.
23770 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23771 Replace local-key-translation-map back with key-translation-map.
23772 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23773 Bind in input-decode-map rather than function-key-map.
23774
23775 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23776 This was made redundant by the previous introduction of XSETPVECTYPE.
23777
23778 2007-10-09 Richard Stallman <rms@gnu.org>
23779
23780 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23781
23782 2007-09-29 Richard Stallman <rms@gnu.org>
23783
23784 * eval.c (internal_condition_case_2, internal_condition_case_1)
23785 (internal_condition_case): Reenable abort if x_catching_errors ()
23786 to see if that really happens and why.
23787
23788 2007-10-06 Andreas Schwab <schwab@suse.de>
23789
23790 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23791
23792 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
23793
23794 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23795
23796 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23797
23798 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23799
23800 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23801
23802 * window.h (struct window):
23803 * window.c (struct save_window_data, struct saved_window):
23804 * termhooks.h (struct terminal):
23805 * process.h (struct Lisp_Process):
23806 * frame.h (struct frame):
23807 * buffer.h (struct buffer):
23808 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23809 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23810 The size field of (pseudo)vectors is now unsigned.
23811 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23812
23813 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23814 Turn `count' into an integer.
23815
23816 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23817 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23818 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23819 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23820 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23821
23822 * alloc.c (allocate_pseudovector): New fun.
23823 (ALLOCATE_PSEUDOVECTOR): New macro.
23824 (allocate_window, allocate_terminal, allocate_frame)
23825 (allocate_process): Use it.
23826 (mark_vectorlike): New function.
23827 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23828 (mark_terminals): Use it.
23829 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23830 (Fmake_byte_code): Use XSETPVECTYPE.
23831
23832 * frame.c (Fframe_parameters): Minor simplification.
23833
23834 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23835
23836 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23837
23838 * buffer.c (Fget_buffer_create, init_buffer_once):
23839 * lread.c (defsubr):
23840 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23841
23842 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23843 defined differently in the m/*.h files.
23844 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23845 (XSETPVECTYPE): New macro.
23846 (XSETPSEUDOVECTOR): Use it.
23847
23848 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23849 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23850
23851 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23852 * lread.c (defvar_per_buffer):
23853 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23854
23855 * window.c (candidate_window_p): Only consider as visible frames that
23856 are on the same terminal.
23857
23858 * m/ibms390x.h (MARKBIT): Remove unused macro.
23859
23860 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
23861
23862 * lread.c (Fload): Fix typo in docstring.
23863
23864 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23865
23866 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23867 of a non-zero value can't yield zero.
23868
23869 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23870
23871 * term.c (term_clear_mouse_face, term_mouse_highlight)
23872 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23873
23874 * print.c (safe_debug_print): Use XHASH.
23875
23876 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23877 Lisp elements such as tags.
23878 (XHASH): New macro.
23879 (EQ): Use it.
23880 (SREF, SSET, STRING_COPYIN): Use SDATA.
23881 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23882
23883 * alloc.c (mark_terminal): Remove left-over declaration.
23884 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23885 (allocate_vectorlike): Remove type argument. Adjust callers.
23886 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23887 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23888
23889 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23890 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23891 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23892 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23893 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23894 Use them.
23895
23896 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23897 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23898 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23899
23900 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23901
23902 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23903 loaded by default.
23904
23905 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23906
23907 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23908 on this tty.
23909 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23910
23911 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23912 Update all users.
23913 (handle_one_term_event): Use Gpm_DrawPointer.
23914 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23915 Signal errors instead of returning nil. Always return nil.
23916 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23917 Make it a noop if gpm-mouse was not activated.
23918 (syms_of_term): Update names.
23919
23920 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23921
23922 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23923 (init_sys_modes): Check that gpm_tty is the current tty.
23924
23925 * alloc.c (allocate_terminal): Set the vector size to only count the
23926 lisp fields. Initialize those to nil.
23927 (mark_object): Don't treat terminals specially.
23928 (mark_terminal): Remove.
23929 (mark_terminals): Use mark_object instead.
23930
23931 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23932 the GC to the beginning.
23933
23934 * indent.h:
23935 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23936
23937 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23938
23939 2007-09-25 Jason Rumney <jasonr@gnu.org>
23940
23941 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23942
23943 * w32console.c (create_w32cons_output): Remove.
23944
23945 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23946
23947 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23948 (reset_sys_modes): Use reset_terminal_modes_hook.
23949
23950 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23951
23952 * eval.c (do_autoload): Don't output any message.
23953
23954 2007-09-24 Juri Linkov <juri@jurta.org>
23955
23956 * emacs.c (standard_args): Change priority of "--no-splash"
23957 from 40 to 3. Add "--no-desktop" with the same priority.
23958
23959 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23960
23961 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23962 and optimize the case where they are all 1.
23963
23964 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
23965
23966 * lisp.h (abs): Define if not defined.
23967 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23968 Don't define `abs', since it's defined in lisp.h.
23969
23970 2007-09-22 Eli Zaretskii <eliz@gnu.org>
23971
23972 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23973 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23974 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23975 (init_tty): Use DEV_TTY instead of "/dev/tty".
23976 [WINDOWSNT]: No need to protect from NAME arg being null.
23977
23978 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23979
23980 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23981 up the tty state.
23982
23983 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23984
23985 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23986 (gpm_tty): Change its type.
23987 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23988 (gpm_tty): Change its type and initialize it.
23989 (Fterm_open_connection): Check the frame is indeed a tty.
23990 Use the new gpm_tty.
23991 (Fterm_close_connection): Use the new gpm_tty.
23992 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23993 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23994
23995 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
23996
23997 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23998 underline_color, to draw strike-through.
23999
24000 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24001
24002 * lisp.h (allocate_terminal): Declare.
24003
24004 * window.c (candidate_window_p): Consider frames that are being placed
24005 by the user as somewhere between visible and iconified.
24006 (window_loop): Prefer windows on the current frame.
24007 (Fselect_window): Move the use of select-frame to the beginning so we
24008 can just delegate all the work (it'll call us back anyway).
24009
24010 * frame.c (Qdisplay_environment_variable):
24011 * frame.h (Qdisplay_environment_variable): Delete.
24012
24013 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24014 of the first arg, since that value may be a union.
24015
24016 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24017 parameter rather than Qdisplay_environment_variable. If all else
24018 fails, look for DISPLAY in initial-environment.
24019
24020 2007-09-21 Glenn Morris <rgm@gnu.org>
24021
24022 * Makefile.in (emacstool): Remove target.
24023 (lisp, shortlisp): Remove termdev.elc.
24024
24025 2007-09-21 Markus Triska <markus.triska@gmx.at>
24026
24027 * xterm.c (x_delete_display): Compile session management conditionally.
24028
24029 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24030
24031 * callproc.c (getenv_internal_1): New function.
24032 (getenv_internal): Use it.
24033 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24034
24035 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24036 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24037 (Fset_terminal_parameter): Work with dead terminals as well.
24038 (Fmodify_terminal_parameters): Remove.
24039
24040 * terminal.c (get_terminal): Handle terminals.
24041 Make sure the terminal returned is live.
24042 (create_terminal): Use allocate_terminal.
24043 (mark_terminals): Move to alloc.c.
24044 (delete_terminal): Use terminal->name as liveness status.
24045 NULL out fields after freeing their contents.
24046 Don't deallocate the object.
24047 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24048 rather than an int.
24049 (Fterminal_live_p): Accept non-integer arguments.
24050 (Fterminal_list): Return terminal objects rather than an ints.
24051
24052 * alloc.c (enum mem_type): New member for `terminal' objects.
24053 (allocate_terminal): New function.
24054 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24055 Handle terminals.
24056 (mark_terminal): New fun.
24057 (mark_terminals): Move from terminal.c.
24058
24059 * term.c (get_tty_terminal): Don't treat output_initial specially.
24060 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24061 (delete_tty): Use terminal->name as liveness status.
24062
24063 * termhooks.h (struct terminal): Make it into a pseudovector.
24064 Remove `deleted' replaced by checking `name's nullness.
24065
24066 * print.c (print_object): Handle terminals.
24067
24068 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24069 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24070
24071 * frame.c (make_terminal_frame):
24072 * keyboard.c (tty_read_avail_input):
24073 * w32term.c (x_delete_terminal):
24074 * xfns.c (Fx_create_frame, x_create_tip_frame):
24075 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24076
24077 2007-09-20 Glenn Morris <rgm@gnu.org>
24078
24079 * process.c (Fmake_network_process): Doc fix.
24080
24081 2007-09-19 Jason Rumney <jasonr@gnu.org>
24082
24083 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24084
24085 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24086
24087 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24088 Fix a C warning regarding variable constness.
24089
24090 * xterm.c (handle_one_xevent): Fix a C warning.
24091
24092 2007-09-18 Jason Rumney <jasonr@gnu.org>
24093
24094 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24095
24096 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24097
24098 * gtkutil.c (gdpy_def): New variable.
24099 (xg_initialize): Initialize gdpy_def.
24100 (xg_display_close): If no other display exists, set gdpy_def to a
24101 new connection.
24102
24103 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24104
24105 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24106 when we have no file name for the icon.
24107 (xg_tool_bar_expose_callback): Remove.
24108 (xg_create_tool_bar): Don't connect expose signal to
24109 xg_tool_bar_expose_callback.
24110 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24111
24112 2007-09-16 Andreas Schwab <schwab@suse.de>
24113
24114 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24115 values instead of zapping them.
24116
24117 2007-09-14 Glenn Morris <rgm@gnu.org>
24118
24119 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24120 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24121 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24122 scope and rename to omfib_buffer for clarity.
24123 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24124
24125 2007-09-14 Kenichi Handa <handa@m17n.org>
24126
24127 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24128
24129 2007-09-13 Jason Rumney <jasonr@gnu.org>
24130
24131 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24132
24133 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24134
24135 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24136 (mac_term_init): Call here instead, passing rif.
24137
24138 2007-09-13 Glenn Morris <rgm@gnu.org>
24139
24140 * s/hpux.h: No longer define `static' as nothing.
24141
24142 2007-09-13 Johan Bockgård <bojohan@gnu.org>
24143
24144 * callint.c (Fcall_interactively): Remove unused var `fun'.
24145
24146 2007-09-12 Romain Francoise <romain@orebokech.com>
24147
24148 * window.c (prefer_window_split_horizontally, display_buffer):
24149 Revert 2007-09-08 change.
24150
24151 2007-09-12 Glenn Morris <rgm@gnu.org>
24152
24153 * alloca.c: Remove file.
24154 * Makefile.in (alloca): Do not undef.
24155 (allocaobj, alloca.o): Remove.
24156 (otherobj): Remove allocaobj.
24157 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24158 * regex.c (C_ALLOCA): Remove all references and code that was only
24159 used when this was defined.
24160 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24161 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24162 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24163
24164 * Makefile.in (SOURCES, unlock, relock): Delete.
24165
24166 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24167 (menu_grab_callback): All uses changed.
24168
24169 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24170 (x_reply_selection_request): All uses changed.
24171
24172 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24173
24174 * lread.c (load_warn_old_style_backquotes): Change message to look
24175 better when it appears in the middle of byte-compiler messages.
24176
24177 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24178
24179 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24180
24181 * xterm.c (x_create_terminal): Add comment.
24182
24183 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24184
24185 2007-09-10 Richard Stallman <rms@gnu.org>
24186
24187 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24188
24189 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24190
24191 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24192 (DEFUN): Document `intspec', use it instead of `prompt'.
24193
24194 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24195
24196 * data.c (Finteractive_form): If the interactive specification starts
24197 with a `(', use it as a Lisp form.
24198
24199 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24200 name and file modes.
24201
24202 * callint.c (Fcall_interactively): Comment fixes.
24203
24204 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24205
24206 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24207 and compiled functions.
24208
24209 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24210
24211 * window.c (prefer_window_split_horizontally): New variable.
24212 (display_buffer): Consider splitting window horizontally depending
24213 on prefer_window_split_horizontally.
24214
24215 2007-09-08 Eli Zaretskii <eliz@gnu.org>
24216
24217 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24218
24219 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24220
24221 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24222
24223 * frame.c (x_set_frame_parameters): Check number is positive before
24224 using XFASTINT.
24225
24226 * window.c (freeze_window_start): Don't presume selected_window holds
24227 a window object.
24228 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24229
24230 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24231
24232 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24233
24234 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24235
24236 * window.c (Vsplit_window_preferred_function): New var.
24237 (Fdisplay_buffer): Use it.
24238 (syms_of_window): Export, and initialize it.
24239
24240 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24241
24242 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24243
24244 2007-09-06 Glenn Morris <rgm@gnu.org>
24245
24246 * gtkutil.c (menu_grab_callback) <cnt>:
24247 * xselect.c (x_reply_selection_request) <cnt>: Move static
24248 variable to file scope.
24249
24250 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24251
24252 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24253 consistent values of selected_frame and selected_window.
24254
24255 2007-09-04 Jason Rumney <jasonr@gnu.org>
24256
24257 * w32console.c (initialize_w32_display): Zero unused hooks.
24258
24259 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24260
24261 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24262 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24263
24264 2007-09-04 Jason Rumney <jasonr@gnu.org>
24265
24266 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24267 in w32console.c. Set up input. Remove XXX comments that have been
24268 confirmed as correct.
24269
24270 * s/ms-w32.h (MULTI_KBOARD): Define.
24271
24272 * w32console.c (one_and_only_w32cons): Remove.
24273 (initialize_w32_display): Take terminal argument.
24274
24275 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24276 initialize_w32_display.
24277 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24278
24279 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24280
24281 * keyboard.c (discard_mouse_events): Discard it.
24282 (make_lispy_event): Translate it to a lisp event.
24283 (lispy_wheel_names): Add wheel-left and right events.
24284 (syms_of_keyboard): Enlarge wheel_syms.
24285
24286 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24287 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24288
24289 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24290
24291 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24292 from WM_MOUSEHWHEEL.
24293 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24294
24295 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24296 terminal.
24297
24298 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24299 keyboard for the terminal.
24300
24301 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24302
24303 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24304 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24305 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24306 and resume-tty-function to resume-tty-hook.
24307 (Fsuspend_tty, Fresume_tty): Use new names.
24308
24309 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24310
24311 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24312 if it starts with "n:".
24313
24314 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24315
24316 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24317
24318 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24319
24320 * frame.h:
24321 * frame.c (Qterm_environment_variable): Remove.
24322 (syms_of_frame): Don't init and staticpro it.
24323
24324 * callproc.c (getenv_internal): Remove special case for $TERM.
24325
24326 * callproc.c (Vinitial_environment): New variable.
24327 (set_initial_environment): Initialize it.
24328 (syms_of_callproc): Declare it.
24329 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24330 TERM under which a process runs is never related to the TERM in which
24331 Emacs is running.
24332
24333 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24334
24335 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24336 * s/darwin.h: ... do it here.
24337
24338 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24339
24340 * lisp.h (set_initial_environment): Rename from set_global_environment.
24341
24342 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24343 removed by mistake on the multi-tty branch.
24344
24345 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24346 (Fmodify_frame_parameters): Return a value.
24347
24348 * image.c (png_load): Comment-out var only used in commented-out code.
24349
24350 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24351 before passing it to mark_object.
24352
24353 * xfaces.c (internal_resolve_face_name): Return a value.
24354 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24355
24356 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24357 (x_icon): Comment-out var only used in commented-out code.
24358
24359 2007-08-29 Romain Francoise <romain@orebokech.com>
24360
24361 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24362 QUIT hasn't been provided.
24363
24364 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24365
24366 * callproc.c (child_setup, getenv_internal): Use the
24367 display-environment-variable and term-environment-variable frame params.
24368 (set_initial_environment): Initialise Vprocess_environment.
24369
24370 * config.in: Disable multi-keyboard support on a mac.
24371
24372 * frame.c (Qterm_environment_variable)
24373 (Qdisplay_environment_variable): New variables.
24374 (syms_of_frame): Intern and staticpro them.
24375 (Fmake_terminal_frame): Disable output method test.
24376
24377 * frame.h: Declare them here.
24378
24379 * macfns.c (x_set_mouse_color): Get rif from the frame.
24380 (x_set_tool_bar_lines): Don't use updating_frame.
24381 (mac_window): Add 2 new parameters for consistency with other systems.
24382 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24383 frame parameters following what is done in X11 and w32. Don't use
24384 FRAME_MAC_DISPLAY_INFO.
24385 (Fx_open_connection, start_hourglass): Remove window-system check.
24386 (x_create_tip_frame): Get the keyboard from the terminal.
24387
24388 * macmenu.c: Reorder includes.
24389 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24390
24391 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24392 terminal parameter.
24393 (x_clear_frame): Add a frame parameter.
24394 (note_mouse_movement): Get rif from the frame.
24395 (mac_term_init): Initialize the terminal.
24396 (mac_initialize): Make static and move terminal initialization ...
24397 (mac_create_terminal): ... to this new function.
24398
24399 * macterm.h (struct mac_display_info): Add terminal.
24400 (mac_initialize): Delete declaration.
24401
24402 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24403
24404 * sysdep.c: Comment out text after #endif.
24405
24406 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24407 is defined. Better initialize ttys in windows. Use terminal
24408 specific mouse_position_hook.
24409
24410 * termhooks.h (union display_info): Add mac_display_info.
24411
24412 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24413 Set the default minibuffer frame, window_system and the rest of the
24414 frame parameters following what is done in X11.
24415
24416 * w32term.c (w32_initialize): Make static.
24417
24418 * xselect.c (x_handle_selection_clear): Only access
24419 terminal->kboard when MULTI_KBOARD is defined.
24420
24421 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24422 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24423
24424 2007-08-29 Jason Rumney <jasonr@gnu.org>
24425
24426 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24427 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24428
24429 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24430 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24431
24432 * keyboard.c (restore_kboard_configuration): Only define when
24433 MULTI_KBOARD defined.
24434
24435 * makefile.w32-in: Update dependancies from Makefile.in.
24436 (OBJ1): Add terminal.$(O)
24437
24438 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24439 Don't define function body.
24440 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24441
24442 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24443
24444 * w32.c (request_sigio, unrequest_sigio): Remove.
24445
24446 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24447 (w32con_clear_frame, w32con_clear_end_of_line)
24448 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24449 (w32con_delete_glyphs, w32con_set_terminal_window)
24450 (scroll_line, w32_sys_ring_bell): Add frame arg.
24451 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24452 Add terminal arg.
24453 (PICK_FRAME): Remove.
24454 (w32con_write_glyphs): Use frame specific terminal coding.
24455 (one_and_only_w32cons): New global variable.
24456 (initialize_w32_display): Use it for storing hooks.
24457 (create_w32cons_output): New function.
24458
24459 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24460 arg a frame.
24461
24462 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24463 Set window_system.
24464 (x_set_tool_bar_lines): Don't use updating_frame.
24465 (Fx_create_frame): Set terminal and ref count.
24466 (Fx_open_connection): Remove window-system check.
24467
24468 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24469
24470 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24471 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24472 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24473 Add frame arg.
24474 (x_delete_terminal, w32_create_terminal): New functions.
24475 (w32_term_init): Create a terminal.
24476 (w32_initialize): Move terminal specific initialization to
24477 w32_create_terminal.
24478
24479 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24480 (w32_clear_rect, w32_clear_area): Use background from frame.
24481 (w32_display_info): Add terminal.
24482 (w32_sys_ring_bell, x_delete_display): Declare here.
24483
24484 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24485
24486 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24487
24488 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24489
24490 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24491 Fix get_named_tty calls for the controlling tty.
24492
24493 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24494
24495 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
24496
24497 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24498
24499 * term.c (tty_insert_glyphs): Add missing first parameter.
24500
24501 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24502
24503 * buffer.c (Fbuffer_list, Fbury_buffer):
24504 Take frame->buried_buffer_list into account.
24505
24506 * cm.c (current_tty): New variable, for cmputc().
24507 (cmputc): Use it.
24508 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24509 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24510 (cmgoto): Add tty parameter. Pass it on to calccost().
24511 Use emacs_tputs() instead of tputs().
24512
24513 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24514 tputs().
24515 (current_tty): New variable, for cmputc().
24516 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24517
24518 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24519 (internal_condition_case, internal_condition_case_1)
24520 (internal_condition_case_2): Don't abort when x_catching_errors.
24521
24522 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24523 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24524 prevent crashes caused by bogus longjmps in read_char.
24525
24526 * keymap.h (Fset_keymap_parent): Add EXFUN.
24527
24528 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24529 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24530 Remove redundant definition.
24531
24532 * macfns.c (x_set_mouse_color, x_make_gc):
24533 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24534
24535 * w32term.c (x_free_frame_resources):
24536 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24537 (w32_initialize): Use the accessor macros for terminal characteristics.
24538
24539 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24540 Use the accessor macros for terminal characteristics.
24541 * msdos.c (internal_terminal_init): Use the accessor macros for
24542 terminal characteristics.
24543 (ScreenVisualBell, internal_terminal_init):
24544 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24545
24546 * termopts.h (no_redraw_on_reenter): Declare.
24547
24548 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24549 (mark_terminals, mark_ttys): Declare.
24550 (Fgarbage_collect): Call them.
24551 (mark_object): Mark buried_buffer_list.
24552
24553 * prefix-args.c: Include stdlib.h for exit.
24554
24555 * syssignal.h: Add comment.
24556
24557 * indent.c: Include stdio.h.
24558
24559 * window.h (Vinitial_window_system): Declare.
24560 (Vwindow_system): Delete declaration.
24561
24562 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24563
24564 * image.c (lookup_image): Don't initialize `c' until the xasserts
24565 have been run.
24566
24567 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24568 FRAME_FOREGROUND_PIXEL.
24569
24570 * print.c (print_preprocess): Don't lose print_depth levels while
24571 iterating.
24572
24573 * widget.c (update_from_various_frame_slots):
24574 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24575
24576 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24577 frames.
24578 (window_internal_height): Remove bogus make_number call.
24579 (init_window_once): Call make_terminal_frame with two zero parameters.
24580
24581 * fileio.c (Fread_file_name): Update comment.
24582
24583 * callint.c (Fcall_interactively):
24584 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24585 Make sure it is correctly unwound.
24586
24587 * xsmfns.c (x_session_close): New function.
24588
24589 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24590 Delete declarations.
24591
24592 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24593 (x_output): Remove background_pixel and foreground_pixel fields.
24594 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24595 (x_delete_device, x_session_close): Declare.
24596
24597 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24598 (read_filtered_event): Call `read_char' with a local
24599 `wrong_kboard_jmpbuf'.
24600
24601 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24602 Don't call single_kboard_state. Use FRAME_RIF.
24603
24604 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24605 systems.
24606
24607 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24608 (Fframe_with_environment, Fset_input_meta_mode)
24609 (Fset_quit_char): EXFUN.
24610 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24611 (init_sys_modes, reset_sys_modes): Update prototypes.
24612 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24613
24614 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24615 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24616 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24617 Delete declarations.
24618 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24619 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24620 New declarations.
24621
24622 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24623 already does that during init_display(). Call syms_of_keymap
24624 before syms_of_keyboard. Call `syms_of_terminal'.
24625 Call set_initial_environment, not set_process_environment.
24626 (shut_down_emacs): Call reset_all_sys_modes() instead of
24627 reset_sys_modes().
24628
24629 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24630 (internal_resolve_face_name, resolve_face_name_error): New functions.
24631 (resolve_face_name): Protect against loops and errors thrown by Fget.
24632 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24633 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24634
24635 * scroll.c: Replace CURTTY() with local variables throughout the
24636 file (where applicable).
24637 (calculate_scrolling, calculate_direct_scrolling)
24638 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24639 characteristics.
24640
24641 * keymap.c (Vfunction_key_map): Remove.
24642 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24643 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24644 (Vkey_translation_map): Remove.
24645 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24646 (Fdescribe_buffer_bindings)
24647 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24648 Update for terminal-local key-translation-map.
24649
24650 * Makefile.in (callproc.o): Update dependencies.
24651 (lisp, shortlisp): Add termdev.elc.
24652 (obj): Add terminal.o.
24653 (terminal.o): Add dependencies.
24654 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24655 (data.o, fns.o): Add termhooks.h dependency.
24656 (SOME_MACHINE_LISP): Add dnd.elc.
24657 (minibuf.o): Fix typo.
24658 Update dependencies.
24659
24660 * data.c (do_symval_forwarding, store_symval_forwarding)
24661 (find_symbol_value): Use the selected frame's keyboard, not
24662 current_kboard.
24663
24664 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24665 Vwindow_system.
24666
24667 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24668 Fmenu_bar_open.
24669 (syms_of_xmenu): Update defsubr.
24670 (mouse_position_for_popup, Fx_popup_menu)
24671 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24672 (set_frame_menubar, free_frame_menubar)
24673 (create_and_show_popup_menu, xmenu_show)
24674 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24675 an X frame.
24676
24677 * xselect.c (x_own_selection): Abort if not an X frame.
24678 (some_frame_on_display): Check if it is an X frame.
24679 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24680
24681 * coding.c: Include frame.h and termhooks.h.
24682 (terminal_coding, keyboard_coding): Delete.
24683 (Fset_terminal_coding_system_internal)
24684 (Fset_keyboard_coding_system_internal)
24685 (Fkeyboard_coding_system)
24686 (Fterminal_coding_system): Add a terminal parameter.
24687 Get terminal_coding from the terminal.
24688 (init_coding_once): Don't call setup_coding_system here.
24689
24690 * dispextern.h (set_scroll_region, turn_off_insert)
24691 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24692 (tty_clear_end_of_line, tty_setup_colors)
24693 (delete_tty, updating_frame)
24694 (produce_special_glyphs, produce_glyphs, write_glyphs)
24695 (insert_glyphs): Remove.
24696 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24697 (tty_turn_off_highlight, get_tty_size): Add declaration.
24698 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24699
24700 * frame.h (enum output_method): Add output_initial.
24701 (struct x_output): Delete.
24702 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24703 Access foreground_pixel and background_pixel directly from the frame.
24704 (tty_display): Delete.
24705 (struct frame): Add buried_buffer_list, foreground_pixel,
24706 background_pixel and terminal. Delete kboard.
24707 (union output_data): Add tty.
24708 (FRAME_KBOARD): Get the kboard from the terminal.
24709 (FRAME_INITIAL_P): New macro.
24710 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24711 (Qterm_environment_variable, Qdisplay_environment_variable)
24712 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24713 New declarations.
24714
24715 * termchar.h (tty_output, tty_display_info): New structures.
24716 (tty_list): Declare.
24717 (FRAME_TTY, CURTTY): New macros.
24718 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24719 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24720 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24721 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24722
24723 * callproc.c: Include frame.h and termhooks.h, for terminal
24724 parameters.
24725 (add_env): New function.
24726 (child_setup): Use it.
24727 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24728 (getenv_internal): Fix get_terminal_param call.
24729 (Fgetenv_internal, egetenv): Update doc.
24730 (syms_of_callproc): Initialize Vprocess_environment to nil.
24731 Register and initialize them. Remove obsolete defvars. Update doc
24732 strings.
24733 (child_setup): Handle Vlocal_environment_variables.
24734 (getenv_internal): Add terminal parameter.
24735 Handle Vlocal_environment_variables.
24736 (Fgetenv_internal): Add terminal parameter.
24737 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24738 environment in a frame (not terminal) parameter. Update doc strings.
24739 (set_initial_environment): Rename from set_global_environment.
24740 Store Emacs environment in initial frame parameter.
24741
24742 * xdisp.c (redisplay_internal): Update references to
24743 `previous_terminal_frame'.
24744 (display_mode_line, Fformat_mode_line): Replace calls to
24745 `push_frame_kboard' with `push_kboard'.
24746 (get_glyph_string_clip_rects): Add extra parentheses and
24747 braces to prevent compiler warnings.
24748 (calc_pixel_width_or_height): Add xassert to check that the
24749 frame is alive. Don't call `lookup_image' on a termcap frame.
24750 (message2_nolog, message3_nolog, redisplay_internal)
24751 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24752 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24753 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24754 (Fx_display_pixel_width, Fx_display_pixel_height)
24755 (Fx_display_planes, Fx_display_color_cells)
24756 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24757 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24758 (Fx_display_backing_store, Fx_display_visual_class)
24759 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24760 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24761
24762 * xfns.c (x_set_foreground_color x_set_background_color)
24763 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24764 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24765 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24766 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24767 terminal that is being deleted.
24768 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24769 frame parameter, and make sure it overrides any user-supplied setting.
24770 (Fx_close_connection, Fx_synchronize): Unify argument names with
24771 the rest of the DEFUNs.
24772
24773 * dispnew.c (Fsend_string_to_terminal): Update call to
24774 `get_tty_terminal'.
24775 (Fredraw_frame, Fsend_string_to_terminal)
24776 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24777 FRAME_TERMCAP_P and FRAME_TTY.
24778 (window_change_signal): Don't believe width/height values that are
24779 impossibly small.
24780 (Vinitial_window_system): Rename from Vwindow_system.
24781 (termscript, Wcm, rif): Delete.
24782
24783 * termhooks.h (struct terminal): New struct containing the
24784 previously global text display hooks and new members NAME,
24785 DELETED and PARAM_ALIST.
24786 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24787 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24788 (FRAME_RIF): New macros.
24789 (get_terminal_param, get_device): New declarations.
24790 (termscript): Delete declaration.
24791
24792 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24793 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24794 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24795 FRAME_FOREGROUND_PIXEL.
24796 (x_fully_uncatch_errors): Disable definition.
24797 (x_scroll_bar_expose): Fix reference to foreground pixel.
24798 (XTread_socket): Disable loop on all X displays.
24799 (x_delete_terminal): Don't set terminal->deleted and let
24800 delete_terminal delete the frames on the terminal.
24801 (x_delete_display): Doc update to reflect changes in
24802 delete_terminal.
24803 (x_display_info) <terminal>: Move member earlier in the struct.
24804 (deleting_tty): Remove old variable.
24805 (Fsuspend_tty): Call clear_tty_hooks.
24806 (Fresume_tty, init_tty): Call set_tty_hooks.
24807 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24808 errors on X frames.
24809 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24810 (handle_one_xevent): Initialize `f' to NULL.
24811 (x_delete_terminal, x_create_terminal): New functions.
24812 (XTset_terminal_modes, XTreset_terminal_modes)
24813 (XTread_socket, x_connection_closed, x_term_init)
24814 (x_term_init, x_delete_display): Add terminal parameter.
24815 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24816 X connections.
24817
24818 * frame.c: Include termchar.h.
24819 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24820 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24821 (Qdisplay_environment_variable): New vars.
24822 (Fframep): Deal with output_initial.
24823 (Fframe-live-p): Doc fix.
24824 (Fwindow-system): New function.
24825 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24826 (make_terminal_frame): Don't create frames on a terminal that is
24827 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24828 (store_frame_param): Check for found_for_frame before calling XFRAME.
24829 (Fmake_terminal_frame): Handle NULL tty names correctly.
24830 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24831 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24832 frames to refer to a deleted frame in their 'environment parameter.
24833 (Fframe_with_environment): New function.
24834 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24835 (get_future_frame_param): New function.
24836 (Fmake_terminal_frame): Use it.
24837 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24838
24839 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24840 * sysdep.c (reset_sys_modes): Update for renames.
24841
24842 * keyboard.c (tty_read_avail_input): New function.
24843 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24844 (syms_of_keyboard): Defsubr them.
24845 (Fset_input_meta_mode, Fset_quit_char): New functions.
24846 (Fset_input_mode): Split to above functions.
24847 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24848 parameter. Use it in call to `read_char'.
24849 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24850 Set wrong_kboard_jmpbuf correctly in recursive calls.
24851 Use current_kboard to access Vkeyboard_translate_table.
24852 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24853 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24854 Update longjmp invocations. Remember the original current_kboard,
24855 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24856 changes it. Comment out unnecessary calls to
24857 `record_single_kboard_state' and `any_kboard_state'.
24858 Update recursive calls.
24859 (wrong_kboard_jmpbuf): Remove global variable.
24860 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24861 Handle deleted interrupted_kboards correctly; that is a legal
24862 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24863 and read_char calls. Abort if interrupted_kboard died in read_char.
24864 (any_kboard_state, single_kboard_state)
24865 (push_frame_kboard): Remove function.
24866 (pop_kboard): Switch out of single_kboard mode if the kboard has
24867 been deleted. Remove unused variable. Help debugging by not
24868 changing current_kboard unnecessarily. Set current_kboard to the
24869 kboard of the selected frame when the stored kboard object has
24870 been deleted before pop_kboard.
24871 (temporarily_switch_to_single_kboard): Change first parameter to a
24872 frame pointer. Throw an error when caller wants to change kboards
24873 while in single_kboard mode. Don't push_kboard if we weren't in
24874 single kboard state. Don't pop_kboard if we popped into any
24875 kboard state.
24876 (restore_kboard_configuration): Abort if pop_kboard changed the
24877 kboard in single_kboard mode. Call pop_kboard only after setting
24878 up single_kboard mode.
24879 (Frecursive_edit): Switch to single_kboard mode only in nested
24880 command loops.
24881 (cmd_error, command_loop, command_loop_1, timer_check):
24882 Comment out unnecessary call to `any_kboard_state' and
24883 `record_single_kboard_state'.
24884 (delete_kboard): Exit single_kboard mode if we have just deleted
24885 that kboard. Use FRAME_KBOARD.
24886 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24887 `fatal_error_signal'.
24888 (record_single_kboard_state): Don't push_kboard if we weren't in
24889 single kboard state. Don't pop_kboard if we popped into any
24890 kboard state.
24891 (push_frame_kboard): Rename to push_kboard.
24892 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24893 (read_avail_input): Read input from all terminals.
24894 (mark_kboards): Also mark Vkeyboard_translate_table.
24895 (kbd_buffer_store_event_hold): Simplify condition.
24896 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24897 (Vkeyboard_translate_table): Move to struct kboard.
24898 (init_kboard): Initialize Vkeyboard_translate_table.
24899 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24900 Vkeyboard_translate_table. Update doc strings. Update docs of
24901 local-function-key-map and function-key-map.
24902
24903 * terminal.c: New file.
24904
24905 * term.c: Include errno.h.
24906 (Vring_bell_function, device_list, initial_device)
24907 (next_device_id, ring_bell, update_begin, update_end)
24908 (set_terminal_window, cursor_to, raw_cursor_to)
24909 (clear_to_end, clear_frame, clear_end_of_line)
24910 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24911 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24912 (syms_of_term): Move their initialization to terminal.c.
24913 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24914 (Ftty_display_color_cells)
24915 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24916 (clear_tty_hooks, set_tty_hooks)
24917 (init_tty, maybe_fatal): New functions.
24918 (Ftty_type): Return nil if terminal is not on a tty instead of
24919 throwing an error. Doc update.
24920 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24921 Doc update. Initialize new subrs and variables.
24922 (delete_tty): Use terminal->deleted.
24923 (tty_set_terminal_modes): Rename from set_terminal_modes.
24924 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24925 (set_scroll_region): Rename to `tty_set_scroll_region'.
24926 (turn_on_insert): Rename to `tty_turn_on_insert'.
24927 (turn_off_insert): Rename to `tty_turn_off_insert'.
24928 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24929 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24930 (toggle_highligh): Rename to `tty_toggle_highlight'.
24931 (background_highlight): Rename to `tty_background_highlight'.
24932 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24933 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24934 (tty_set_scroll_region, tty_background_highlight)
24935 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24936 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24937 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24938 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24939 Add static modifier.
24940 (tty_reset_terminal_modes, tty_set_terminal_window)
24941 (tty_set_scroll_region, tty_background_highlight)
24942 (tty_highlight_if_desired, tty_cursor_to)
24943 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24944 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24945 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24946 renames.
24947
24948 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24949
24950 * keyboard.c: Qrtl is new.
24951 (parse_tool_bar_item): Handle :rtl keyword.
24952 (syms_of_keyboard): Intern :rtl keyword.
24953
24954 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24955
24956 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24957 so no Lisp code is executed.
24958 (file_for_image, find_rtl_image): New functions.
24959 (xg_get_image_for_pixmap): Use file_for_image.
24960 (update_frame_tool_bar): If direction is RTL, use RTL image if
24961 defined. Use Gtk stock images if defined.
24962
24963 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24964
24965 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24966 for nonexistent or zero-width glyph in composition glyph.
24967
24968 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24969
24970 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24971
24972 * xdisp.c (Finvisible_p): New function.
24973 (syms_of_xdisp): defsubr it.
24974
24975 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
24976
24977 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24978 Doc fixes.
24979
24980 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24981
24982 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24983
24984 2007-08-24 Martin Rudalics <rudalics@gmx.at>
24985
24986 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24987 whether decoding has modified buffer contents.
24988
24989 2007-08-24 Jason Rumney <jasonr@gnu.org>
24990
24991 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24992 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24993 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24994 (init_svg_functions) [HAVE_NTGUI]: New function.
24995 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24996 (svg_load_image): Use them.
24997 (svg_load_image) [HAVE_NTGUI]: Implement background.
24998
24999 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25000
25001 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25002 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25003 (LIBX): Remove @RSVG_LIBS@.
25004 (LIBES): Add $(RSVG_LIBS).
25005
25006 * image.c (svg_load_image): Blend with specified background if exists.
25007 Use IMAGE_BACKGROUND. Add Mac OS Support.
25008
25009 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25010 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25011 Remove macros.
25012 [MAC_OSX] (socket_callback): Do nothing.
25013 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25014 ReceiveNextEvent.
25015 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25016 socket_callback.
25017 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25018
25019 2007-08-22 Glenn Morris <rgm@gnu.org>
25020
25021 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25022
25023 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25024
25025 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25026
25027 * image.c: Add support for SVG images. Some additional comments
25028 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25029 (svg_image_p): New function to test for SVG image.
25030 (svg_load): New function to load SVG image.
25031 (svg_load_image): New function, helper for svg_load.
25032 (Qsvg): New Lisp_object.
25033 (svg_keyword_index): New enum.
25034 (svg_format): New static `image_keyword' struct.
25035 (svg_type): New static `image_type' struct.
25036 (librsvg/rsvg.h): Include it.
25037
25038 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25039
25040 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25041
25042 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25043
25044 * lread.c (Qold_style_backquotes): New var.
25045 (syms_of_lread): Init and staticpro it.
25046 (load_warn_old_style_backquotes): New fun.
25047 (Fload): Use them to warn about old style backquotes.
25048 (end_of_file_error, Fload): Remove unused vars.
25049
25050 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25051
25052 * lread.c (Vold_style_backquotes): New var.
25053 (syms_of_lread): Init and export it to Elisp.
25054 (read1): Set it when we find an old-style (back)quote.
25055
25056 2007-08-22 Jason Rumney <jasonr@gnu.org>
25057
25058 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25059
25060 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25061
25062 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25063
25064 2007-08-19 Richard Stallman <rms@gnu.org>
25065
25066 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25067
25068 2007-08-19 Andreas Schwab <schwab@suse.de>
25069
25070 * alloc.c (pure): Round PURESIZE up.
25071
25072 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25073
25074 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25075 active frame.
25076
25077 2007-08-16 Richard Stallman <rms@gnu.org>
25078
25079 * eval.c (Fcommandp): Add parens to clarify.
25080
25081 * minibuf.c (Fall_completions): Use enum for type of table.
25082
25083 * emacs.c (USAGE2): Improve text.
25084
25085 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25086
25087 * term.c (tty_default_color_capabilities): Declare static
25088 variables in file scope, to avoid HPUX compiler problem.
25089
25090 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25091
25092 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25093 to gtk_toolbar_insert.
25094
25095 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25096
25097 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25098
25099 * insdel.c (reset_var_on_error): New fun.
25100 (signal_before_change, signal_after_change):
25101 Use it to reset (after|before)-change-functions to nil in case of error.
25102 Bind inhibit-modification-hooks to t.
25103 Don't bind (after|before)-change-functions to nil while they run.
25104
25105 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25106
25107 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25108 filling pixmap with stippled background.
25109
25110 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25111
25112 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25113 Don't use invisible frame as parent window for repositioning.
25114
25115 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25116
25117 * print.c (new_backquote_output): Rename from old_backquote_output.
25118 (print): Inverse its logic (according to its name) so as to match the
25119 behavior of new_backquote_flag in lread.c.
25120
25121 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25122
25123 * gmalloc.c (posix_memalign): New function.
25124
25125 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25126 ActivateControl/DeactivateControl here.
25127 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25128 frame-notice-user-settings is non-nil.
25129 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25130 for kEventParamFMFontStyle.
25131 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25132 mac_pass_command_to_system and mac_pass_control_to_system here.
25133 (XTread_socket): Call ActivateControl/DeactivateControl here.
25134 (XTread_socket) [TARGET_API_MAC_CARBON]:
25135 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25136 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25137 for window repositioning.
25138
25139 2007-08-08 Glenn Morris <rgm@gnu.org>
25140
25141 * Replace `iff' in doc-strings and comments.
25142
25143 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
25144
25145 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25146
25147 2007-08-07 Martin Rudalics <rudalics@gmx.at>
25148
25149 * fileio.c (Finsert_file_contents): Run format-decode and
25150 after_insert_file_functions on entire buffer when REPLACE is
25151 non-nil and inhibit modification_hooks and point_motion_hooks.
25152 For consistency, run after_insert_file_functions iff something
25153 got inserted. Move signal_after_change and update_compositions
25154 after code running after_insert_file_functions. Make sure that
25155 undo_list doesn't record intermediate steps of the decoding process.
25156
25157 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25158
25159 * emacs.c (main)
25160 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25161 Call malloc_enable_thread on interactive startup.
25162
25163 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25164 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25165 [USE_PTHREAD]: Conditionalize with it.
25166 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25167 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25168 New functions.
25169
25170 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
25171
25172 * xdisp.c (redisplay_window): When restoring original buffer
25173 position, make sure it is still valid.
25174
25175 * image.c (png_load): Ignore png-supplied background color.
25176
25177 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25178
25179 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25180 Use kCFAbsoluteTimeIntervalSince1970.
25181
25182 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25183 New variable.
25184 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25185 event loop should be quit.
25186 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25187 Quit dialog event loop if quit_dialog_event_loop is set.
25188
25189 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25190 (Selection): New typedef. Use instead of ScrapRef.
25191 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25192 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25193 (mac_clear_selection): Rename from clear_scrap.
25194 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25195 scrap_has_target_type. All uses changed.
25196 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25197 (mac_selection_has_target_p): New functions.
25198 (mac_put_selection_value): Rename from put_scrap_string.
25199 (mac_get_selection_value): Rename from get_scrap_string.
25200 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25201 (put_scrap_private_timestamp, scrap_has_target_type)
25202 (get_scrap_private_timestamp): Remove functions.
25203 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25204 (x_own_selection, x_get_local_selection):
25205 Use mac_valid_selection_value_p.
25206 (x_own_selection): Don't use put_scrap_private_timestamp.
25207 Record OWNERSHIP-INFO into Vselection_alist instead.
25208 (x_get_local_selection): Don't check type if request is local.
25209 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25210 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25211
25212 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25213
25214 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25215 add comment explaining why.
25216
25217 2007-08-03 Richard Stallman <rms@gnu.org>
25218
25219 * fileio.c (Fvisited_file_modtime): Use make_time.
25220
25221 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25222
25223 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25224 build.
25225
25226 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25227
25228 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25229
25230 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25231
25232 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25233
25234 2007-07-30 Richard Stallman <rms@gnu.org>
25235
25236 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25237
25238 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25239
25240 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25241
25242 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
25243
25244 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25245 remote default-directory.
25246
25247 * buffer.c (mode-line-format): Update doc string.
25248
25249 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25250
25251 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25252 scroll bar gap.
25253 (x_scroll_bar_create): Set bar->fringe_extended_p.
25254 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25255 on frame edge. Check fringe background extension. Don't clear
25256 extended fringe background area.
25257
25258 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25259 (w32_fill_area): Enclose multiple statements with do ... while (0).
25260
25261 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25262 Extend fringe background to scroll bar gap.
25263 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25264 Set bar->fringe_extended_p.
25265 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25266 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25267 background extension. Don't clear extended fringe background area.
25268
25269 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25270 New member fringe_extended_p.
25271
25272 2007-07-25 Glenn Morris <rgm@gnu.org>
25273
25274 * Relicense all FSF files to GPLv3 or later.
25275
25276 * COPYING: Switch to GPLv3.
25277
25278 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25279
25280 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25281
25282 * data.c (Finteractive_form): Check for the presence of an
25283 `interactive-form' symbol property more thoroughly.
25284
25285 * data.c (Finteractive_form): Use an `interactive-form' property if
25286 present, analogous to the function-documentation property.
25287
25288 2007-07-24 Jason Rumney <jasonr@gnu.org>
25289
25290 * w32fns.c (x_real_positions): Get real position from OS instead of
25291 calculating it.
25292
25293 2007-07-23 Jason Rumney <jasonr@gnu.org>
25294
25295 * filelock.c (current_lock_owner): Allow for @ sign in username.
25296
25297 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
25298
25299 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25300 remote default-directory.
25301
25302 * buffer.c (mode-line-format): Describe above case in doc string.
25303
25304 2007-07-20 Eli Zaretskii <eliz@gnu.org>
25305
25306 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25307 Define if not defined.
25308
25309 2007-07-18 Jason Rumney <jasonr@gnu.org>
25310
25311 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25312
25313 2007-07-18 Richard Stallman <rms@gnu.org>
25314
25315 * data.c (Fsetq_default): Doc fix.
25316
25317 * eval.c (Fsetq): Doc fix.
25318
25319 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
25320
25321 * coding.c (Ffind_operation_coding_system):
25322 * eval.c (For, Fand): Doc fixes.
25323 Reported by Johan Bockgård.
25324
25325 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25326
25327 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25328
25329 * xterm.h: Declare x_ewmh_activate_frame.
25330
25331 * xterm.c (x_ewmh_activate_frame): New function.
25332 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25333
25334 2007-07-17 Martin Rudalics <rudalics@gmx.at>
25335
25336 * window.c (Fdisplay_buffer): If largest or LRU window is the
25337 only window, split it even if it is not eligible for splitting.
25338 This restores the original behavior broken by the 2007-07-15
25339 change.
25340
25341 2007-07-17 Glenn Morris <rgm@gnu.org>
25342
25343 * abbrev.c (abbrev_check_chars): New function.
25344 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25345 Call abbrev_check_chars to check abbrev characters are word
25346 constituents. Doc fix.
25347
25348 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25349
25350 * process.c (Fstart_process, Fmake_network_process)
25351 (read_process_output): Fix up last changes.
25352
25353 2007-07-16 Eli Zaretskii <eliz@gnu.org>
25354
25355 * makefile.w32-in (clean): Don't delete *~.
25356
25357 2007-07-16 Andreas Schwab <schwab@suse.de>
25358
25359 * window.c (Fdisplay_buffer): Use NILP.
25360 (Fset_window_scroll_bars): Likewise.
25361
25362 2007-07-15 Martin Rudalics <rudalics@gmx.at>
25363
25364 * window.c (window_min_size_2): New function.
25365 (window_min_size_1, size_window, Fdisplay_buffer)
25366 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25367 windows without mode- or header-lines when window-min-height is
25368 too small.
25369 (size_window): Reset nodelete_p after testing it, following an
25370 earlier note by Kim F. Storm.
25371 (display_buffer): Do not set split_height_threshold to twice the
25372 value of window_min_height to avoid changing the value of a
25373 customizable variable. Rather explicitly check whether the
25374 height of the window that shall be splitted is at least as large
25375 as split_height_threshold.
25376 (Fwindow_full_width_p): New defun.
25377 (syms_of_window): Defsubr it.
25378
25379 * window.h: Add EXFUN for Fwindow_full_width_p.
25380
25381 2007-07-14 Jason Rumney <jasonr@gnu.org>
25382
25383 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25384
25385 2007-07-14 Richard Stallman <rms@gnu.org>
25386
25387 * eval.c (maybe_call_debugger): New function.
25388 (find_handler_clause): Use maybe_call_debugger.
25389 Call it when the handler says `debug'.
25390 Eliminate DEBUGGER_VALUE_PTR.
25391 (Fsignal): Eliminate debugger_value.
25392 (Qdebug): New variable.
25393 (syms_of_eval): Initialize it.
25394
25395 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
25396
25397 * eval.c (Fprogn):
25398 * keyboard.c (Ftrack_mouse):
25399 * print.c (Fwith_output_to_temp_buffer):
25400 * window.c (Fsave_window_excursion): Doc fix.
25401
25402 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25403
25404 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25405
25406 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25407
25408 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25409 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25410 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25411 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25412 Remove unused encoding_carryover.
25413 * process.c: Adjust all functions accordingly.
25414
25415 2007-07-12 Richard Stallman <rms@gnu.org>
25416
25417 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25418
25419 2007-07-11 Jason Rumney <jasonr@gnu.org>
25420
25421 * makefile.w32-in (LIBS): Include OLE32.
25422
25423 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25424 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25425
25426 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25427
25428 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25429 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25430 from a Lisp_Object into a bare pointer.
25431 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25432 Adjust the code correspondingly.
25433
25434 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25435
25436 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25437 (term_show_mouse_face): Remove unused var `j'.
25438 (handle_one_term_event): Remove unused vars `i' and `j'.
25439 Don't cast return value of ttyname since it's not necessary.
25440
25441 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25442
25443 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25444 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25445
25446 * fns.c (map_char_table): Use an array of int for `indices' rather than
25447 an array of Lisp_Objects (which are only ever integers anyway).
25448 (Fmap_char_table): Update caller.
25449 * lisp.h: Update prototype.
25450 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25451 * fontset.c (Ffontset_info):
25452 * casetab.c (set_case_table): Update callers.
25453
25454 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25455
25456 * keymap.c (struct accessible_keymaps_data)
25457 (struct where_is_internal_data): New structures.
25458 (accessible_keymaps_1, where_is_internal_1): Use them to change
25459 interface to adhere to the one used by map_keymap.
25460 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25461 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25462
25463 * keymap.h (map_keymap_function_t): More informative prototype.
25464
25465 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25466
25467 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25468 (looking_at_1): Don't change search_regs and last_thing_searched
25469 if `inhibit-changing-match-data' is non-nil.
25470 (string_match_1, search_buffer, set_search_regs): Likewise.
25471 (syms_of_search): Add Lisp level definition for
25472 `inhibit-changing-match-data' and set it to nil.
25473 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25474 start and end of the match, instead of using values in search_regs.
25475
25476 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25477
25478 * minibuf.c (Fcompleting_read): New value `confirm-only'
25479 for `require-match'.
25480
25481 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25482
25483 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25484 part of the 2007-06-27 change to syms_of_fileio.
25485
25486 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25487
25488 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25489 Check WINDOWP before using XWINDOW. Consolidate return statements.
25490
25491 2007-06-27 Richard Stallman <rms@gnu.org>
25492
25493 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25494
25495 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
25496
25497 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25498
25499 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25500
25501 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25502 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25503 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25504 (_free_internal, memalign): Use them.
25505 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25506 Initialize to PTHREAD_MUTEX_INITIALIZER.
25507 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25508 (morecore_nolock): Rename from morecore. All uses changed.
25509 Use only nolock versions of internal allocation functions.
25510 (_malloc_internal_nolock, _realloc_internal_nolock)
25511 (_free_internal_nolock): New functions created from
25512 _malloc_internal, _realloc_internal, and _free_internal.
25513 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25514 Copy hook value to automatic variable before its use.
25515 (memalign): Copy hook value to automatic variable before its use.
25516
25517 2007-06-26 Kenichi Handa <handa@m17n.org>
25518
25519 * coding.c (Ffind_operation_coding_system): Docstring improved.
25520 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25521
25522 2007-06-25 David Kastrup <dak@gnu.org>
25523
25524 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25525 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25526 cater for additional parameter.
25527
25528 * keymap.h: Adjust number of parameters to `current-active-maps'.
25529
25530 * doc.c (Fsubstitute_command_keys): Adjust call of
25531 `current-active-maps'.
25532
25533 2007-06-25 David Kastrup <dak@gnu.org>
25534
25535 * callint.c (Fcall_interactively): Make the parsing of interactive
25536 specs somewhat more readable.
25537
25538 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25539
25540 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25541 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25542 if extended background has already been filled.
25543
25544 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25545
25546 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25547 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25548
25549 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25550 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25551 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25552 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25553 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25554 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25555 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25556 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25557 Run timers during dialog popup.
25558 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25559
25560 2007-06-21 Jason Rumney <jasonr@gnu.org>
25561
25562 * image.c (convert_mono_to_color_image): Swap fore and background.
25563
25564 2007-06-20 Jason Rumney <jasonr@gnu.org>
25565
25566 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25567 (w32_free_bdf_font): Unmap memory not handle.
25568
25569 2007-06-20 Sam Steingold <sds@gnu.org>
25570
25571 * gmalloc.c (__morecore): Fix the declaration to comply with the
25572 definition.
25573
25574 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
25575
25576 * w32term.c (w32_delete_display): Remove leftover declaration.
25577 (w32_define_cursor, w32_initialize): Make static.
25578
25579 * w32.c (_wsa_errlist): Fix typo in error message.
25580 (init_environment): Ignore any environment variable from the
25581 registry having a null value.
25582
25583 2007-06-20 Glenn Morris <rgm@gnu.org>
25584
25585 * Makefile.in (LIBGIF): Default to -lgif.
25586
25587 2007-06-17 Jason Rumney <jasonr@gnu.org>
25588
25589 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25590 unicode strings.
25591
25592 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
25593
25594 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25595 Fix typo in docstring.
25596
25597 2007-06-16 Eli Zaretskii <eliz@gnu.org>
25598
25599 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25600 and their keybindings.
25601
25602 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
25603
25604 * composite.c (update_compositions): Fix last fix.
25605
25606 2007-06-14 Jason Rumney <jasonr@gnu.org>
25607
25608 * w32.c (get_process_times_fn): New function pointer.
25609 (globals_of_w32): Intialize it if present in kernel32.dll.
25610 (w32_get_internal_run_time): New function.
25611
25612 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25613
25614 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25615
25616 * composite.c (update_compositions): Check the validness of
25617 compositions.
25618
25619 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25620
25621 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25622 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25623
25624 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25625 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25626
25627 * macgui.h (USE_MAC_TOOLBAR): New define.
25628
25629 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25630 Return immediately unless popup is activated.
25631
25632 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25633 background to scroll bar gap.
25634 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25635 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25636 scroll bars on frame edge. Check fringe background extension.
25637 Don't clear extended fringe background area.
25638 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25639 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25640 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25641 [USE_MAC_TOOLBAR]: New macros.
25642 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25643 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25644 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25645 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25646 [USE_MAC_TOOLBAR]: New functions.
25647 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25648 manually if previous repositioning has failed.
25649 (mac_handle_keyboard_event): Use precomputed event kind.
25650 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25651 as tool bar item click. Handle mouse movement over tool bar items.
25652
25653 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25654 toolbar_win_gravity.
25655 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25656 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25657 Add externs.
25658
25659 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25660 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25661
25662 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
25663
25664 * image.c (search_image_cache): Remove unused variable.
25665
25666 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
25667
25668 * xfns.c, xmenu.c: Link to xaw3d if available.
25669
25670 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25671
25672 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25673 frame_foreground and frame_background.
25674
25675 * image.c (lookup_image): Save frame foreground and background colors.
25676 (search_image_cache): Check if saved and current frame colors match.
25677
25678 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25679
25680 * regex.c (regex_compile): Remove the `regnum' counter.
25681 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25682
25683 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25684
25685 * term.c: Include intervals.h to declare Fget_text_property.
25686
25687 2007-06-10 Jason Rumney <jasonr@gnu.org>
25688
25689 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25690
25691 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
25692
25693 * callint.c (Fcall_interactively):
25694 * editfns.c (Fdelete_and_extract_region):
25695 * fileio.c (Fread_file_name):
25696 * fns.c (Fmapconcat):
25697 * keyboard.c (cmd_error_internal):
25698 * keymap.c (Fkey_description):
25699 * lread.c (openp):
25700 * minibuf.c (read_minibuf):
25701 * search.c (wordify):
25702 * sunfns.c (sel_read):
25703 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25704 * xfns.c (x_default_scroll_bar_color_parameter):
25705 * xmenu.c (menu_help_callback):
25706 * xselect.c (Fx_get_atom_name):
25707 * xterm.c (x_term_init): Use empty_unibyte_string.
25708
25709 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25710
25711 * alloc.c (init_strings): Initialize canonical empty strings.
25712 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25713 canonical empty string when the requested size is 0.
25714
25715 * emacs.c (empty_unibyte_string): Rename from empty_string.
25716 (empty_multibyte_string): New canonical empty string.
25717 (syms_of_emacs): Don't initialize empty_string.
25718
25719 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25720 string, if appropriate.
25721 (empty_unibyte_string, empty_multibyte_string): New externs.
25722 (empty_string): Remove extern.
25723
25724 * lread.c (syms_of_lread): Use empty_unibyte_string.
25725
25726 2007-06-07 Jason Rumney <jasonr@gnu.org>
25727
25728 * s/ms-w32.h: Don't define HAVE_TZNAME.
25729
25730 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25731
25732 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25733
25734 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25735
25736 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25737 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25738
25739 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25740 Don't call next handler.
25741 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25742 Remove argument. Install handler to application.
25743 (set_frame_menubar): Don't change deep_p.
25744 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25745 FRAME_OUTER_TO_INNER_DIFF_Y.
25746 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25747 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25748 [HAVE_DIALOGS]: New macros.
25749 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25750 Use them.
25751 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25752
25753 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25754 init_service_handler. All callers changed. Return OSStatus value.
25755
25756 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25757 All callers changed so as not to call SetPortWindowPort.
25758 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25759 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25760 mac_draw_string_common.
25761 (mac_draw_image_string_qd): Likewise.
25762 (mac_draw_string_common): Use them. Add INLINE.
25763 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25764 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25765 GetGlobalMouse.
25766 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25767 and FRAME_OUTER_TO_INNER_DIFF_Y.
25768 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25769 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25770 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25771 repositioning window to mac_handle_window_event.
25772 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25773 saving window location to mac_handle_window_event
25774 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25775 (install_menu_target_item_handler): Remove argument in extern.
25776 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25777 Also accept command events.
25778 (do_keystroke): New function created from XTread_socket.
25779 (init_command_handler): Remove functions.
25780 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25781 and save window location by kEventWindowShowing and kEventWindowHiding
25782 handlers here. Don't call next handler for window state change and
25783 focus events.
25784 (mac_handle_application_event, mac_handle_keyboard_event)
25785 [TARGET_API_MAC_CARBON]: New functions.
25786 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25787 kEventWindowShowing and kEventWindowHiding events. Move installation
25788 of mouse, font, text input and menu target item handlers to
25789 install_application_handler.
25790 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25791 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25792 New function.
25793 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25794 Register it.
25795 (XTread_socket) [TARGET_API_MAC_CARBON]:
25796 Consolidate SendEventToEventTarget calls.
25797 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25798 Move application activation handler to mac_handle_application_event.
25799 Move keyboard handler to mac_handle_keyboard_event.
25800 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25801 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25802 init_command_handler. Call install_application_handler.
25803
25804 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25805 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25806
25807 2007-06-07 Glenn Morris <rgm@gnu.org>
25808
25809 * emacs.c (main): Use `emacs-copyright' in --version output.
25810
25811 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
25812
25813 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25814
25815 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25816
25817 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25818
25819 * macgui.h: Replace WindowPtr with WindowRef.
25820
25821 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25822 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25823 Replace ControlHandle with ControlRef.
25824 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25825
25826 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25827 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25828 Replace ControlHandle with ControlRef.
25829 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25830 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25831
25832 * macterm.h (struct scroll_bar): Rename member control_handle_low
25833 and control_handle_high to control_ref_low and control_ref_high.
25834 All uses changed.
25835 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25836 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25837 respectively. All uses changed.
25838 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25839 (install_window_handler, remove_window_handler): Replace WindowPtr
25840 with WindowRef in externs.
25841
25842 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
25843
25844 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25845
25846 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
25847
25848 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25849
25850 * frame.c (Fmouse_position, Fmouse_pixel_position):
25851 Condition on HAVE_GPM too.
25852
25853 * term.c (term_mouse_highlight): Remove unused variables.
25854 (Fterm_open_connection): Set gpm_zerobased to 1.
25855 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25856 Use zero based co-ordinates.
25857 (handle_one_term_event): Report a drag as mouse movement too.
25858
25859 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25860
25861 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
25862
25863 * image.c (search_image_cache): New function. Require background
25864 color match if background color is unspecified in the image spec.
25865 (uncache_image, lookup_image): Use it.
25866
25867 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
25868
25869 * window.c (Fshrink_window): Reflow docstring.
25870
25871 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
25872
25873 * Version 22.1 released.
25874
25875 2007-06-01 Richard Stallman <rms@gnu.org>
25876
25877 * xfns.c (x_encode_text): Add GCPRO.
25878
25879 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25880
25881 * xfns.c (x_set_name_internal): Save encoded name before
25882 x_encode_text in case string data is relocated.
25883
25884 2007-05-31 Richard Stallman <rms@gnu.org>
25885
25886 * buffer.c (syms_of_buffer): Doc fix.
25887
25888 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
25889
25890 * sysdep.c (init_sys_modes): Add rather than replace with
25891 O_NONBLOCK.
25892
25893 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25894 term_mouse_moveto.
25895
25896 * termhooks.h (term_mouse_moveto): New extern.
25897
25898 * term.c (mouse_face_window): Rename...
25899 (Qmouse_face_window): ...to this.
25900 (term_show_mouse_face, term_clear_mouse_face)
25901 (term_mouse_highlight): Use Qmouse_face_window.
25902 (term_mouse_moveto): New function.
25903 (term_mouse_position): Make it work.
25904 (syms_of_term): Uncomment assignment to mouse_position_hook.
25905 Staticpro Qmouse_face_window.
25906
25907 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25908
25909 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25910 around current_column call.
25911
25912 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25913
25914 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25915 * xdisp.c (next_element_from_buffer):
25916 * window.c (delete_window):
25917 * term.c (term_mouse_highlight):
25918 * msdos.c (getdefdir):
25919 * macterm.c (mac_create_bitmap_from_bitmap_data)
25920 (init_font_name_table):
25921 * fns.c (Fsxhash):
25922 * data.c (Fmake_local_variable):
25923 * ccl.c (ccl_driver): Likewise.
25924
25925 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25926
25927 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25928 Call mac_wakeup_from_rne on window size change.
25929
25930 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
25931
25932 * image.c (uncache_image): Fix typo.
25933
25934 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25935
25936 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25937
25938 2007-05-22 Richard Stallman <rms@gnu.org>
25939
25940 * xterm.c (x_connection_closed): Remove NO_RETURN.
25941
25942 2007-05-22 Martin Rudalics <rudalics@gmx.at>
25943
25944 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25945
25946 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
25947
25948 * image.c (uncache_image): New function.
25949 (Fimage_refresh): New function.
25950
25951 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25952
25953 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25954
25955 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25956
25957 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25958 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25959
25960 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25961
25962 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25963 conditional on [HAVE_GPM_H].
25964
25965 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25966
25967 * syntax.c (skip_chars): Update syntax-table only after we checked that
25968 the new location is valid.
25969
25970 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25971
25972 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25973 mac_get_window_bounds.
25974
25975 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
25976
25977 * Makefile.in (LIBGPM): Allow it to be set from configure.
25978 If set then link Emacs with it.
25979
25980 * config.in: Regenerate.
25981
25982 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25983 New externs.
25984
25985 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25986 Include gpm.h.
25987 (handle_one_term_event, term_gpm): New externs.
25988
25989 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25990 and allow it to be interrupted by SIGIO.
25991
25992 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25993 (wait_reading_process_output): Wait on gpm_fd too.
25994 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25995 (add_gpm_wait_descriptor_called_flag): New variable.
25996 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25997
25998 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25999 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26000 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26001 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26002 (make_lispy_event): Add case GPM_CLICK_EVENT.
26003 (read_avail_input): Handle mouse input.
26004
26005 * term.c (write_glyphs_with_face): New function.
26006 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26007 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26008 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26009 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26010 (last_mouse_x, last_mouse_y): New variables.
26011 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26012 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26013 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26014 (Fterm_close_connection): New functions.
26015 (term_init): Initialise mouse_face_window.
26016
26017 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
26018
26019 * xdisp.c (redisplay_window): If first window line is a
26020 continuation line, recompute the new window start instead of
26021 recentering.
26022
26023 2007-05-18 Glenn Morris <rgm@gnu.org>
26024
26025 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26026 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26027
26028 2007-05-17 Glenn Morris <rgm@gnu.org>
26029
26030 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26031
26032 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26033
26034 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26035 dead key repeat and up events.
26036
26037 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
26038
26039 * image.c (pbm_load): Check image size for monochrome pbm.
26040
26041 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
26042
26043 * xterm.c (XTread_socket): Revert last change.
26044
26045 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
26046
26047 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26048
26049 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26050
26051 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26052
26053 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26054 mixup (YAILOM).
26055
26056 2007-05-07 Andreas Schwab <schwab@suse.de>
26057
26058 * keymap.c (Flookup_key): Fix typo in last change.
26059
26060 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26061
26062 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26063 mapping for unibyte strings.
26064
26065 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26066
26067 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26068 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26069
26070 2007-04-29 Richard Stallman <rms@gnu.org>
26071
26072 * insdel.c (replace_range): For undo, record insertion first.
26073
26074 2007-04-29 Andreas Schwab <schwab@suse.de>
26075
26076 * lisp.h (VECSIZE): Use OFFSETOF.
26077
26078 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26079
26080 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26081 disabled lines.
26082
26083 2007-04-28 Richard Stallman <rms@gnu.org>
26084
26085 * lread.c (read_escape): In a string, \s is always space.
26086
26087 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26088
26089 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26090
26091 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26092 submenu for menu bar items.
26093
26094 See ChangeLog.10 for earlier changes.
26095
26096 ;; Local Variables:
26097 ;; coding: utf-8
26098 ;; add-log-time-zone-rule: t
26099 ;; End:
26100
26101 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
26102
26103 This file is part of GNU Emacs.
26104
26105 GNU Emacs is free software: you can redistribute it and/or modify
26106 it under the terms of the GNU General Public License as published by
26107 the Free Software Foundation, either version 3 of the License, or
26108 (at your option) any later version.
26109
26110 GNU Emacs is distributed in the hope that it will be useful,
26111 but WITHOUT ANY WARRANTY; without even the implied warranty of
26112 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26113 GNU General Public License for more details.
26114
26115 You should have received a copy of the GNU General Public License
26116 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26117
26118 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40