* src/syssignal.h (signal_handler_t): Restore accidentally removed definition.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6254cdda
DN
12010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2
04bab72c
DN
3 Remove extern declarations in .c files, .h files have them.
4 * data.c:
5 * dired.c:
6 * editfns.c:
7 * filelock.c:
8 * fns.c:
9 * font.c:
10 * fontset.c:
11 * frame.c:
12 * fringe.c:
13 * ftfont.c:
14 * gtkutil.c:
15 * indent.c:
16 * keyboard.c:
17 * keymap.c:
18 * lread.c:
19 * menu.c:
20 * print.c:
21 * search.c:
22 * sound.c:
23 * window.c:
24 * xdisp.c:
25 * xfaces.c:
26 * xfns.c:
27 * xfont.c:
28 * xftfont.c:
29 * xmenu.c:
30 * xterm.c: Remove declarations.
31
dff94ed5
DN
32 Cleanup syssignal.h.
33 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
34 (main_thread): Move down to remove #ifdef.
35 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
36 Remove conditional definition following unconditional ones.
37
99f3388e
DN
38 * lisp.h: Remove HAVE_SHM code, unused.
39 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
40 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
41 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
42 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
43 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
44 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
45 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
46 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
47 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
48 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
49 (Qwindow_scroll_functions, Vafter_load_alist)
50 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
51 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
52 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
53 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
54 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
55 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
56 (initial_argv, last_nonmenu_event, load_in_progress)
57 (noninteractive_need_newline, scroll_margin): Add declarations.
58
59 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
60 declarations, menu.h has them.
61 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
62 (Vinput_method_function, Qinput_method_function)
63 (Qevent_symbol_element_mask, last_event_timestamp):
64 * dispextern.h (Voverflow_newline_into_fringe):
65 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
66 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
67 (syms_of_w32font, syms_of_nsfont):
68 * fontset.h (find_font_encoding, Qlatin):
69 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
70 (Vtool_bar_mode, set_frame_menubar):
71 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
72 * xterm.h (Qx_gtk_map_stock):
73 * keymap.h (meta_prefix_char): Add declarations.
74
9f5dd6f2
DN
75 * term.c: Remove dead code.
76
6254cdda
DN
77 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
78 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
79 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
80 which is what was there before BSD_PGRPS was removed.
81
29cf3e20
EZ
822010-08-05 Eli Zaretskii <eliz@gnu.org>
83
84 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
85
86 * unexcoff.c: Renamed from unexec.c.
87
aaa0a19a
SM
882010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
89
90 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
91
8d1d9587
JB
922010-08-03 Johan Bockgård <bojohan@gnu.org>
93
94 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 95 (Bug#6744)
8d1d9587 96
9a747ba6
JD
972010-08-02 Jan Djärv <jan.h.d@swipnet.se>
98
4d464ae4
JD
99 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
100 to TRUE if depth of screen is < 16.
101
ac01763e
JD
102 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
103 USE_GTK_TOOLTIP.
e0d62a9b
JB
104 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
105 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 106 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
107 USE_GTK_TOOLTIP.
108 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
109
110 * xterm.h (USE_GTK_TOOLTIP): New define.
111 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
112
9a747ba6
JD
113 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
114 to Control-D (Bug#6771).
115
7b0815ba
JB
1162010-08-02 Juanma Barranquero <lekktu@gmail.com>
117
118 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
119 Wording by Drew Adams <drew.adams@oracle.com>.
120
aa1859f5
J
1212010-08-01 Jan Djärv <jan.h.d@swipnet.se>
122
123 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
124 ttip_lbl.
125
126 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
127 calling gtk_widget_queue_draw.
128 (x_free_frame_resources): Call xg_free_frame_widgets.
129
130 * xfns.c (x_gtk_use_system_tooltips): New variable.
131 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
132 new gtkutil tooltip functions to show the tooltip.
133 (Fx_hide_tip): Call xg_hide_tooltip.
134 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
135
136 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
137 (xg_show_tooltip, xg_hide_tooltip): Declare.
138
139 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
140 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
141 New functions.
aa1859f5
J
142 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
143 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
144 Remove code that is commented out.
145
76417ef4
SM
1462010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
147
148 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
149
16041401
CY
1502010-07-31 Chong Yidong <cyd@stupidchicken.com>
151
152 * xselect.c (x_own_selection): Use list4.
153
2c09a58f
DN
1542010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
155
156 * buffer.c (Qwindow): Do not define, already defined in data.c.
157 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
158
59df9fdd 1592010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 160
59df9fdd
JB
161 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
162 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
163 * config.in: Undef HAVE_DIRENT_H.
1c97e857 164 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 165 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 166
1b231651
DN
1672010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
168
169 Rename s/usg5-4.h -> s/usg5-4-common.h.
170 * s/usg5-4.h: Rename file to ...
171 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
172 * s/unixware.h:
173 * s/sol2-6.h:
174 * s/irix6-5.h: Update includes accordingly.
175
bfeabdc3
JD
1762010-07-29 Jan Djärv <jan.h.d@swipnet.se>
177
2ebf1083
J
178 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
179
bfeabdc3 180 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
181 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
182 Remove toolbar_height.
183 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
184 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
185 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
186 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
187
188 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
189
190 * xfns.c (x_set_tool_bar_position): New function.
191 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
192 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 193 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
194
195 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
196 and FRAME_TOOLBAR_LEFT_WIDTH.
197
198 * gtkutil.h (xg_change_toolbar_position): Declare.
199
200 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
201 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
202 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
203 (xg_create_frame_widgets): Create a hobox for placing widgets
204 vertically. Use gtk_box_pack_start.
205 (xg_height_or_width_changed): Renamed from xg_height_changed.
206 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
207 (xg_update_frame_menubar, free_frame_menubar): Change to
208 xg_height_or_width_changed.
209 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
210 size correctly. Remove hardcoded 4, instead use handlebox size -
211 toolbar size.
212 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 213 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
214 (xg_pack_tool_bar): POS is a new parameter.
215 Set orientation of tool bar based on pos.
216 Only make handlebox_widget if NULL.
217 Check if tool bar goes to vbox or hbox depending on pos.
218 (xg_update_tool_bar_sizes): New function.
219 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
220 height, call xg_update_tool_bar_sizes instead.
221 (free_frame_tool_bar): Remove from hbox or vbox depending on
222 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
223 (xg_change_toolbar_position): New function.
224
225 * frame.h (struct frame): Add tool_bar_position.
226 (Qbottom): Declare.
227
228 * frame.c (Qtool_bar_position): New variable.
229 (make_frame): Set tool_bar_position to Qtop.
230 (frame_parms): Add tool-bar-position.
231 (x_report_frame_params): Store tool_bar_position.
232 (x_set_fringe_width): Reset wm size hint after fringe changes.
233
26469a38
DN
2342010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
235
236 Make lisp_time_argument declaration work on all systems.
237 * lisp.h (lisp_time_argument): Move declaration ...
238 * systime.h (lisp_time_argument): ... here
239 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
240
8848b728
JD
2412010-07-29 Jan Djärv <jan.h.d@swipnet.se>
242
243 * vm-limit.c (POINTER): Add typedef for it.
244 (start_of_data): Change return type from POINTER to char *.
245
246 * frame.h (Qtty_color_mode): Move declaration out of ifdef
247 HAVE_WINDOW_SYSTEM.
248
76fd1ee9
DN
2492010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
250
0441987e
DN
251 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
252 Remove reference to __osf__, unused.
253
56a000c7
DN
254 * mem-limits.h: Remove duplicated includes.
255 (NULL): Remove definition, unused.
256 (POINTER): Remove definition.
257 (start_of_data): Use char* in prototype, as the function
258 definition does.
259
e6cba650
DN
260 Remove extern declarations from .c files, and them to .h files.
261 * keyboard.h (Qhelp_echo, waiting_for_input)
262 (input_available_clear_time, ignore_mouse_drag_p)
263 (Vdouble_click_time, real_this_command, Vthis_original_command):
264 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
265 (Voverriding_local_map_menu_flag):
266 * lisp.h (Qinteractive_form, use_file_dialog)
267 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
268 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
269 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
270 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
271 (Qfunction, debug_on_next_call, Qfield)
272 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
273 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
274 (Qfile_directory_p, Qinsert_file_contents)
275 (Qcompletion_ignore_case, Qcompletion_ignore_case)
276 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
277 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
278 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
279 (Qminibuffer_prompt)
280 (Vtemporary_file_directory,char_ins_del_vector, Qface):
281 * xterm.h (gray_bitmap_width, gray_bitmap_height)
282 (gray_bitmap_bits, xic_create_fontsetname):
283 * coding.h (Vtranslation_table_for_input): Add extern declarations.
284
285 * xsmfns.c (Vuser_login_name):
286 * xrdb.c (Vdouble_click_time):
287 * xfaces.c (xic_create_fontsetname):
288 * w32select.c (waiting_for_input):
289 * print.c (minibuffer_auto_raise):
290 * msdos.c (Qhelp_echo):
291 * macros.c (real_this_command):
292 * keymap.c (Voverriding_local_map):
293 * xterm.c (poll_for_input_1, gray_bitmap_width)
294 (gray_bitmap_height, gray_bitmap_bits;
295 * xmenu.c ( Voverriding_local_map)
296 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
297 (use_file_dialog, Xt_app_con):
298 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
299 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
300 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
301 (Qtool_bar_lines, ignore_mouse_drag_p):
302 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
303 (Qrear_nonsticky, nconc2):
304 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
305 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
306 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
307 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
308 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
309 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
310 (gc_in_progress):
311 * doc.c (Voverriding_local_map, Qremap):
312 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
313 (Vcompletion_regexp_list):
314 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
315 (Qcompletion_ignore_case):
316 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
317 (Vhistory_length, Vthis_original_command, real_this_command)
318 (Qface, Qminibuffer_prompt, history_delete_duplicates):
319 * image.c (Qrisky_local_variable):
320 * fontset.c (QCname):
321 * fns.c (minibuffer_auto_raise, QCname):
322 * dispnew.c (char_ins_del_cost):
323 * composite.c (font_fill_lglyph_metrics):
324 * cmds.c (Qface, Vtranslation_table_for_input):
325 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
326 * ccl.c (charset_unicode):
327 * callproc.c (Vtemporary_file_directory):
328 * buffer.c (emacs_strerror): Remove extern declarations.
329
330 * data.c (Qwindow): Make non-static, used from other files too.
331 * frame.c (validate_x_resource_name): Remove shadow definition for i.
332
76fd1ee9
DN
333 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
334 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
335 * s/usg5-4.h (COFF):
336 * s/template.h:
337 * s/msdos.h (COFF, NO_REMAP):
338 * s/ms-w32.h (NO_REMAP):
339 * s/hpux10-20.h (NO_REMAP):
340 * m/sparc.h (SEGMENT_MASK):
341 * m/m68k.h (NO_REMAP):
342 * m/intel386.h (SEGMENT_MASK):
343 * m/arm.h (NO_REMAP):
344 * m/alpha.h (COFF):
345 * m/template.h: Remove references to unused defines.
346
8a52f00a
JD
3472010-07-28 Jan Djärv <jan.h.d@swipnet.se>
348
349 * xsettings.c (Ftool_bar_get_system_style): Also check for
350 Qtext_image_horiz.
351
352 * xdisp.c (Qtext_image_horiz): Define.
353 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 354 to documentation of tool-bar-style.
8a52f00a
JD
355
356 * lisp.h (Qtext_image_horiz): Declare.
357
358 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
359 style text_image_horiz.
360
89dc303e
DN
3612010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
362
60799703
DN
363 * emacs.c (Fkill_emacs): Remove return statement.
364
37254dc1
DN
365 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
366 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
367 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
368 local extern declarations.
369
71c7345a
DN
370 * xmenu.c: Do not included lwlib.h, not needed.
371
6ba577cb
DN
372 * m/iris4d.h (XUINT, XSET): Remove, not needed.
373
fdb183d6
DN
374 * process.c: Move definitions earlier to minimize #ifdefs.
375
376 * xterm.h (x_get_customization_string, x_load_resources)
377 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
378 (x_check_errors, x_property_data_to_lisp, defined_color)
379 (xic_set_xfontset, x_defined_color): Use const.
380
381 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
382 (x_text_icon, x_check_errors, x_connection_closed): Use const.
383
384 * xselect.c (selection_data_to_lisp_data)
385 (x_property_data_to_lisp):
386 * xrdb.c (x_get_string_resource, file_p)
387 (x_get_customization_string, magic_file_p, search_magic_path)
388 (get_system_app, get_user_app, x_load_resources, x_get_resource)
389 (x_get_string_resource): Use const.
390
391 * xfns.c: Include xlwmenu.h when USE_LUCID.
392 (x_defined_color, xic_set_xfontset): Use const.
393 (Fx_hide_tip): Remove local extern declaration.
394
395 * xfaces.c (Qmouse_face): Remove declaration.
396 (face_color_gray_p, tty_defined_color, defined_color)
397 (face_color_gray_p, face_color_supported_p). Add const.
398
399 * xdisp.c (do_mouse_tracking): Remove declaration.
400 (add_to_log): Use const.
401
402 * minibuf.c (Qmouse_face): Remove declaration.
403
404 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
405
406 * keyboard.h (do_mouse_tracking): Add declaration.
407
408 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
409 (QCdata, QCtype, Qcenter): Remove declarations.
410
411 * frame.c (x_get_resource_string, x_get_string_resource)
412 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
413 (x_default_parameter): Use const.
414
415 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
416 (QCheight, QCsize, QCname): Remove declarations.
417
418 * emacs.c (main): Remove local extern declaration.
419
420 * editfns.c (region_limit, syms_of_editfns): Remove local extern
421 declarations.
422
423 * dispnew.c: Remove duplicate #include <unistd.h>.
424 (update_window, update_frame_1, init_display): Remove local extern
425 declarations.
426
427 * dispextern.h (add_to_log): Remove declaration.
428 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
429 (x_frame_get_and_record_arg, x_default_parameter): Add const.
430
431 * dired.c (scmp): Add const.
432 (directory_files_internal): Remove local extern declaration.
433
434 * data.c (Finteractive_form): Use const.
435
436 * composite.c (syms_of_composite): Remove local extern declarations.
437
438 * charset.c (add_to_log): Remove declaration.
439
440 * character.c (strwidth, parse_str_to_multibyte): Add const.
441
442 * character.h (strwidth, parse_str_to_multibyte): Likewise.
443
444 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
445
89dc303e 446 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
447 (Lisp_Subr): Make doc and intspec constant.
448 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
449 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
450 (QCheight, QCsize, QCname, QCwidth, QCforeground)
451 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
452 (display_arg): Add declarations.
89dc303e 453
0ed082fe 4542010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
455
456 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
457
0ed082fe
JB
458 * window.c (Fwindow_height): Doc fix (bug#6518).
459
4602010-07-27 Juanma Barranquero <lekktu@gmail.com>
461
462 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
463
ccaf0336
DN
4642010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
465
977105dc
DN
466 * keyboard.c (Ftop_level, Fexit_recursive_edit)
467 (Fabort_recursive_edit): Remove return statements in NO_RETURN
468 functions.
469
f5ada890
DN
470 * frame.h (Qtty_color_mode): Add declaration.
471
ccaf0336
DN
472 * lisp.h (Ftop_level, Fexit_recursive_edit)
473 (Fabort_recursive_edit): Mark as NO_RETURN.
474
dfe3c90f
KH
4752010-07-26 Kenichi Handa <handa@m17n.org>
476
477 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 478 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 479
7d383292
JB
4802010-07-26 Juanma Barranquero <lekktu@gmail.com>
481
482 * lread.c (unreadpure, mapatoms_1): Make static.
483
da31e629
JB
4842010-07-25 Juanma Barranquero <lekktu@gmail.com>
485
486 * terminfo.c (tparam): Fix prototype of tparm.
487
7bfa6d77
AS
4882010-07-25 Andreas Schwab <schwab@linux-m68k.org>
489
dcc19aac
AS
490 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
491 find start of text segment.
492 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
493 is defined.
494
7bfa6d77
AS
495 * callproc.c (set_initial_environment): Avoid unbalanced braces.
496
63f9a672
KB
4972010-07-25 Ken Brown <kbrown@cornell.edu>
498
499 * vm-limit.c (check_memory_limits): Fix previous change;
500 accidentally reverted an earlier change.
501
24933075
KB
5022010-07-25 Ken Brown <kbrown@cornell.edu>
503
504 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
505 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
506
361358ea
JB
5072010-07-25 Juanma Barranquero <lekktu@gmail.com>
508
509 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
510 * dired.c (opendir, readdir): Fix prototypes.
511 * editfns.c (w32_get_internal_run_time): Fix prototypes.
512 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
513 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
514 (telldir): Remove declaration.
515 * ralloc.c (real_morecore, __morecore): Fix prototypes.
516 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
517 * syssignal.h (strsignal): Fix prototype.
518 * term.c (tparam): Fix prototype.
519 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
520 (term_get_fkeys): Set inside "#ifndef DOS_NT".
521 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
522 and __morecore.
523 * w32gui.h (XParseGeometry): Fix prototype.
524 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
525 * w32term.c (my_set_focus): Declare inside #if 0.
526 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
527 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
528 (drain_message_queue, get_next_msg, post_msg, parse_button)
529 (ClipboardSequence_Proc): Fix prototypes.
530 (wait_for_sync): Remove declaration.
531
630b9592
JB
5322010-07-24 Juanma Barranquero <lekktu@gmail.com>
533
534 * w32fns.c (w32_to_x_color): Remove, unused.
535
6a0d6611
AS
5362010-07-24 Andreas Schwab <schwab@linux-m68k.org>
537
538 * lisp.h: Remove leftover P_.
539
4e8608ff
DN
5402010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
541
542 * ecrt0.c, unexalpha.c: Remove files, unused.
543
c8197983
AS
5442010-07-24 Andreas Schwab <schwab@linux-m68k.org>
545
546 * cmds.c (internal_self_insert): Make static.
547 * lisp.h (internal_self_insert): Remove declaration.
548
97b372d7
JB
5492010-07-23 Juanma Barranquero <lekktu@gmail.com>
550
33ac0414
JB
551 * alloc.c (free_float):
552 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
553 * frame.c (delete_frame_handler):
554 * ralloc.c (reorder_bloc):
555 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
556 Remove unused static functions.
557
94da8397
JB
558 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
559 it is called only from NS code.
560
2e6c8532
JB
561 * w32term.c (my_set_focus): #ifdef away; it is called only from
562 "#ifdef 0" code.
563
97b372d7
JB
564 * w32fns.c (x_edge_detection):
565 * xfaces.c (may_use_scalable_font_p):
566 Remove obsolete static declarations.
567
7c3320d8
JB
5682010-07-20 Juanma Barranquero <lekktu@gmail.com>
569
570 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
571 (emacs_blocked_realloc, uninterrupt_malloc):
572 * fringe.c (w32_reset_fringes):
573 * image.c (convert_mono_to_color_image, lookup_rgb_color)
574 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
575 * sound.c (be2hs, do_play_sound):
576 * vm-limit.c (get_lim_data, ret_lim_data):
577 * w32term.c (x_free_frame_resources):
578 * xfaces.c (x_create_gc, x_free_gc):
579 Convert definitions to standard C.
580
d5273788
SM
5812010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
582
583 * eval.c (Feval, Ffuncall): Use the new names.
584
585 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
586 (DEFUN): Add braces around the union initialisation and use ## to
587 specify the right union alternative and avoid a cast.
588
8d16a259
JB
5892010-07-18 Juanma Barranquero <lekktu@gmail.com>
590
591 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
592
3b8eff32
CY
5932010-07-17 Chong Yidong <cyd@stupidchicken.com>
594
595 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
596
499322ce
J
5972010-07-17 Jan Djärv <jan.h.d@swipnet.se>
598
599 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
600 is related to the menu bar (Bug#6499).
a628ad9d 601 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 602
f6003da5 6032010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
604
605 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
606
607 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
608
609 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
610 i.e. don't put back ButtonRelease (Bug#6608).
611
612 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
613 instead of Window. Call xg_event_is_for_menubar when
614 USE_GTK (Bug#6499).
615
616 * gtkutil.h (xg_event_is_for_menubar): Declare.
617
618 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
619
f6003da5 6202010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
621
622 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
623 when it's the same as the old foreground. (Bug#6609)
624
23243f29
J
6252010-07-16 Jan Djärv <jan.h.d@swipnet.se>
626
627 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
628 widget is non-null (Bug#6645).
629
2b23d2a6
AS
6302010-07-15 Andreas Schwab <schwab@linux-m68k.org>
631
01b564ff
AS
632 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
633 Convert old-style definition.
634
2b23d2a6
AS
635 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
636 timestamp argument.
637
c4affd2c
EZ
6382010-07-15 Eli Zaretskii <eliz@gnu.org>
639
640 * fringe.c (update_window_fringes): Restore mistakenly reverted
641 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
642
cf28cebc
J
6432010-07-14 Jan Djärv <jan.h.d@swipnet.se>
644
645 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
646 (SET_SAVED_KEY_EVENT): Remove (not used).
647 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
648 remove size parameter.
649 (handle_one_xevent): Check popup_activated () for menu for Xt also.
650 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
651 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
652 ButtonRelease.
6b2c4bd9
J
653 (x_set_window_size_1): scroll_bar_actual_width is always
654 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
655
656 * xdisp.c (pending_menu_activation): Remove extern declaration.
657 (prepare_menu_bars): Remove setting of pending_menu_activation.
658
659 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
660 (x_activate_menubar): Set popup_activated_flag for Xt also.
661 Remove setting of pending_menu_activation.
cf28cebc
J
662 (set_frame_menubar): Remove check of pending_menu_activation.
663 Declare menubar_size before code. Correct spelling in comment.
664
f6c1c771
KH
6652010-07-14 Kenichi Handa <handa@m17n.org>
666
667 * font.c (font_open_entity): Cancel previous change.
668 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
669
20477505
EZ
6702010-07-13 Eli Zaretskii <eliz@gnu.org>
671
77defa9a
EZ
672 Remove subprocesses #ifdefs.
673 * process.c <inhibit_sentinels>: Move to the common part.
674 (Fwaiting_for_user_input_p): Move to the common part; return nil
675 if async subprocesses aren't supported.
676 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
677 MS-DOS. Remove "#ifdef subprocesses".
678 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
679 (gettimeofday): Remove "#ifdef subprocesses".
680 (wait_without_blocking): Remove function.
681 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
682 Remove "#ifdef subprocesses".
683 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
684 compiled on MS-DOS.
685 * callproc.c (Fcall_process) [!MSDOS]: Don't call
686 wait_for_termination on MS-DOS.
687 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
688 initialization of inhibit_sentinels.
689 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
690 subprocesses" conditional.
691 * callproc.c (Fcall_process) [!subprocesses]: Don't call
692 wait_for_termination, since `buffer' cannot be an integer when
693 async subprocesses are not supported
694 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
695 for ifdefing away the call to Fprocess_status.
696
20477505
EZ
697 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
698 away the entire body of the function.
699
b3ffc17c
DN
7002010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
701
01faa934
DN
702 Remove subprocesses #ifdefs from term.c.
703 * process.c (add_keyboard_wait_descriptor)
704 (delete_keyboard_wait_descriptor): Move to common section, do
705 nothing when subprocesses is not defined.
a628ad9d
JB
706 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
707 Remove subprocesses #ifdefs.
01faa934 708
b3ffc17c
DN
709 Convert maybe_fatal to standard C.
710 * lisp.h (verror): Declare.
711 * eval.c (verror): New function containing the code from ...
712 (error): ... this. Call verror.
713 * term.c (vfatal): New function containing the code from ...
714 (fatal): ... this. Call vfatal.
715 (maybe_fatal): Convert to standard C, use variable number of
716 arguments. Declare as non-return.
717 (init_tty): Fix maybe_fatal call.
718
0521f580
DN
7192010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
720
721 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
722 (_scroll_bar_note_movement): Convert definitions to standard C.
723 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
724 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
725
ebd15611
DN
7262010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
727
728 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
729 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
730 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
731 (xaw_jump_callback, xaw_scroll_callback)
732 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
733 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
734 definitions to standard C.
735 * xmenu.c (menubar_id_to_frame, popup_get_selection)
736 (popup_activate_callback, popup_deactivate_callback)
737 (menu_highlight_callback, menubar_selection_callback)
738 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
739 (free_frame_menubar, popup_selection_callback, as)
740 (create_and_show_popup_menu, dialog_selection_callback)
741 (create_and_show_dialog):
742 * xfns.c (hack_wm_protocols, x_window):
743 * xfaces.c (x_update_menu_appearance):
744 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
745 (char_to_pixel_size, round_size_to_char, get_wm_shell)
746 (set_frame_size, update_wm_hints, setup_frame_gcs)
747 (update_various_frame_slots, update_from_various_frame_slots)
748 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
749 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
750 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
751
de06a2dd
AS
7522010-07-12 Andreas Schwab <schwab@linux-m68k.org>
753
a628ad9d 754 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 755
fc549af9
EZ
7562010-07-12 Eli Zaretskii <eliz@gnu.org>
757
758 * process.c (setup_process_coding_systems): Move to the part
759 shared by non-subprocesses systems, and make its body empty when
760 subprocesses is not defined.
761 (close_process_descs): Move to the part shared by non-subprocesses
762 systems.
1408902e
EZ
763 (wait_reading_process_output) [!subprocesses]: Convert arg list to
764 ANSI C.
fc549af9 765
d5a3eaaf
AS
7662010-07-12 Andreas Schwab <schwab@linux-m68k.org>
767
768 * editfns.c (transpose_markers): Convert old-style definition.
769 * emacs.c (abort, shut_down_emacs, fixup_locale)
770 (synchronize_system_time_locale)
771 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
772 * floatfns.c (extract_float, matherr, init_floatfns)
773 (syms_of_floatfns): Likewise.
774 * fns.c (make_hash_table): Likewise.
775 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
776 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
777 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
778 (ftfont_variation_glyphs): Likewise.
779 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
780 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
781 * lread.c (read_filtered_event): Likewise.
782 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
783 * process.c (wait_reading_process_output): Likewise.
784 * scroll.c (do_line_insertion_deletion_costs): Likewise.
785 * search.c (search_buffer, boyer_moore): Likewise.
786 * syntax.c (scan_sexps_forward): Likewise.
787 * xdisp.c (try_scrolling): Likewise.
788 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
789 (face_at_string_position): Likewise.
790 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
791 * xselect.c (x_get_window_property, receive_incremental_selection)
792 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
793 Likewise.
794 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
795
6f704c76
DN
7962010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
797
ded80a25
DN
798 * callproc.c (child_setup): Remove subprocesses conditional.
799 Remove code dealing with SET_EMACS_PRIORITY, unused.
800
49d937f4 801 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
802 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
803
804 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
805 (__do_global_dtors, __main): Use void in definition.
806 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
807 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
808 the only users from ...
809 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
810 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
811 (HAVE_VOLATILE): Remove, unused.
812
6f704c76
DN
813 Convert more function definitions to standard C.
814 * xdisp.c (window_box_edges, handle_single_display_spec)
815 (display_string): Convert definition to standard C.
816 * scroll.c (do_direct_scrolling, scrolling_1):
817 * dispnew.c (allocate_matrices_for_frame_redisplay)
818 (mirrored_line_dance):
819 * coding.c (code_convert_string):
820 * charset.c (map_charset_chars):
821 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
822 (Fregister_ccl_program, Fregister_code_conversion_map):
823 * keyboard.c (kbd_buffer_nr_stored): Likewise.
824 (head_table): Make static and const.
825
e6cfa7c3
AS
8262010-07-12 Andreas Schwab <schwab@linux-m68k.org>
827
828 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
829 (PROFILING_LDFLAGS): Set from substitution.
830 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
831 CFLAGS last.
832
892dd565
KH
8332010-07-12 Kenichi Handa <handa@m17n.org>
834
6f2cdcd1
KH
835 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
836 (shortlisp): Likewise.
837
892dd565
KH
838 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
839
840 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
841 of FONT_ENTITY_INDEX.
842 (Ffont_get): If KEY is :otf and the font-object doesn't have the
843 property, get the property value dynamically.
844 (Ffont_put): Accept font-entity and font-object too.
845 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
846 return value changed.
847 (syms_of_font): Adjusted for the above change.
848
ae96d47a
AS
8492010-07-11 Andreas Schwab <schwab@linux-m68k.org>
850
c8fc18ee
AS
851 * blockinput.h: Remove obsolete comment.
852
89887d67
AS
853 * lisp.h: Include <stddef.h>.
854 (OFFSETOF): Don't define.
855 (VECSIZE): Use offsetof instead of OFFSETOF.
856 (PSEUDOVECSIZE): Likewise.
857 * process.c (conv_sockaddr_to_lisp): Likewise.
858 * alloc.c: Don't include <stddef.h>.
859 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
860
ae96d47a
AS
861 * process.c: Remove obsolete comment.
862
635c0aa1
CY
8632010-07-11 Chong Yidong <cyd@stupidchicken.com>
864
865 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
866
a64df650
AS
8672010-07-11 Andreas Schwab <schwab@linux-m68k.org>
868
8966b757
AS
869 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
870 index, rindex.
871 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
872 * editfns.c (Fuser_full_name, Fformat): Likewise.
873 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
874 * fileio.c (Ffile_symlink_p): Likewise.
875 * filelock.c (current_lock_owner): Likewise.
876 * font.c (font_parse_name, font_parse_family_registry): Likewise.
877 * fontset.c (fontset_pattern_regexp): Likewise.
878 * lread.c (read1): Likewise.
879 * sysdep.c (init_system_name): Likewise.
880 * xfns.c (select_visual): Likewise.
881 * s/hpux10-20.h (index, rindex): Don't define.
882 * s/ms-w32.h (index): Likewise.
883 * s/usg5-4.h: Likewise.
884
cf237e27
AS
885 * callproc.c (relocate_fd): Use F_DUPFD if defined.
886
a8fe7202
AS
887 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
888 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
889 (egetenv): Likewise.
890 * doprnt.c (doprnt): Likewise.
891 * editfns.c (set_time_zone_rule, format2): Likewise.
892 * emacs.c (decode_env_path): Likewise.
893 * eval.c (signal_error, error): Likewise.
894 * insdel.c (replace_range_2): Likewise.
895 * keyboard.c (cmd_error_internal): Likewise.
896 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
897 * print.c (write_string, write_string_1, print_error_message):
898 Likewise.
899 * vm-limit.c (warn_function, memory_warnings): Likewise.
900 * xdisp.c (message1, message1_nolog, message_with_string)
901 (vmessage, message, message_nolog): Likewise.
902 * emacs.c: Remove duplicate declaration.
903 * keyboard.h: Likewise.
904 * lisp.h: Update prototypes.
905
bb8e180f
AS
906 * eval.c: Fix indentation problem.
907
83380e65
AS
908 * keyboard.c: Include "process.h"
909
a64df650
AS
910 * eval.c: Remove obsolete noinline declaration.
911 * fns.c: Likewise.
912
6a8033e1
KR
9132010-07-11 Ken Raeburn <raeburn@raeburn.org>
914
915 * doprnt.c (doprnt): Take a va_list argument instead of count and
916 pointer.
917 * eval.c (error): Change to a standard-C variadic function.
918 * xdisp.c (vmessage): Renamed from message, made static, and
919 changed to take a va_list argument.
920 (message): New variadic wrapper.
921 (message_nolog): Now a variadic function, calling vmessage.
922 * lisp.h: Include stdarg.h for va_list.
923 (doprnt, error, message, message_nolog): Decls updated.
924
462aa963
EZ
9252010-07-11 Eli Zaretskii <eliz@gnu.org>
926
927 * process.c (syms_of_process) <delete-exited-processes>: Define
928 even if !subprocesses.
929 (delete_exited_processes): Ditto.
930
931 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
932 (delete_exited_processes): Don't define.
933
48104462
CY
9342010-07-10 Chong Yidong <cyd@stupidchicken.com>
935
936 * frame.c (make_frame): Initialize menu_bar_lines and
937 tool_bar_lines members.
938 (make_initial_frame, make_terminal_frame): Initialize
939 menu_bar_lines using value of menu-bar-mode.
940
941 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
942
f388c88a
EZ
9432010-07-10 Eli Zaretskii <eliz@gnu.org>
944
945 * process.c: Reshuffle #include's. Condition some of the global
946 and static variables on `subprocesses'.
947 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
948 Leave only one implementation.
949 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
950 (kill_buffer_processes, Flist_system_processes)
951 (Fprocess_attributes, init_process, syms_of_process): Unify the
952 implementations for with subprocesses and without them.
953
723f5a07
J
9542010-07-09 Jan Djärv <jan.h.d@swipnet.se>
955
956 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
957 correct size for Motif.
958 (free_frame_menubar): Call x_set_window_size to update frame size.
959
960 * xfns.c (x_window): Set borderWidth to 0 for pane and
961 EmacsFrame. Frame size calculation is wrong otherwise.
962
2536a4b7
MA
9632010-07-09 Michael Albinus <michael.albinus@gmx.de>
964
965 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
966 allows to suppress errors when polling in Emacs' main loop.
967 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
968 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
969 (Fdbus_method_error_internal, Fdbus_send_signal)
970 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
971 (Fdbus_register_method): Use it. (Bug#6579)
972
5842a27b
DN
9732010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
974
975 * alloc.c: Convert DEFUNs to standard C.
976 * buffer.c:
977 * bytecode.c:
978 * callint.c:
979 * callproc.c:
980 * casefiddle.c:
981 * casetab.c:
982 * category.c:
983 * character.c:
984 * charset.c:
985 * chartab.c:
986 * cmds.c:
987 * coding.c:
988 * composite.c:
989 * data.c:
990 * dbusbind.c:
991 * dired.c:
992 * dispnew.c:
993 * doc.c:
994 * dosfns.c:
995 * editfns.c:
996 * emacs.c:
997 * eval.c:
998 * fileio.c:
999 * filelock.c:
1000 * floatfns.c:
1001 * fns.c:
1002 * font.c:
1003 * fontset.c:
1004 * frame.c:
1005 * fringe.c:
1006 * image.c:
1007 * indent.c:
1008 * insdel.c:
1009 * keyboard.c:
1010 * keymap.c:
1011 * lread.c:
1012 * macros.c:
1013 * marker.c:
1014 * menu.c:
1015 * minibuf.c:
1016 * msdos.c:
1017 * nsfns.m:
1018 * nsmenu.m:
1019 * nsselect.m:
1020 * print.c:
1021 * process.c:
1022 * search.c:
1023 * sound.c:
1024 * syntax.c:
1025 * term.c:
1026 * terminal.c:
1027 * textprop.c:
1028 * undo.c:
1029 * w16select.c:
1030 * w32console.c:
1031 * w32fns.c:
1032 * w32font.c:
1033 * w32menu.c:
1034 * w32proc.c:
1035 * w32select.c:
1036 * window.c:
1037 * xdisp.c:
1038 * xfaces.c:
1039 * xfns.c:
1040 * xmenu.c:
1041 * xselect.c:
1042 * xsettings.c:
1043 * xsmfns.c: Likewise.
1044
d568829b
EZ
10452010-07-08 Eli Zaretskii <eliz@gnu.org>
1046
1047 * process.c (kbd_is_on_hold, hold_keyboard_input)
1048 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1049
52214050
J
10502010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1051
1052 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1053 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1054 unless USE_LUCID.
1055
313d9eb2
DN
10562010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1057
a628ad9d
JB
1058 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1059 declaration.
d8825aa3 1060
295d0d8f
DN
1061 Clean up include guards.
1062 * tparam.c: Remove include guards for config.h, string.h and code
1063 that assumes #ifndef emacs.
1064 * termcap.c:
1065 * unexalpha.c:
1066 * sysdep.c:
1067 * filemode.c:
1068 * filelock.c:
1069 * bidi.c: Likewise.
1070
49d9e6b0
DN
1071 Remove prefix-args.c
1072 * prefix-args.c: Remove file.
1073 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1074 * Makefile.in (temacs${EXEEXT}): Remove references to
1075 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1076 (mostlyclean): Remove reference to prefix-args.
1077 (prefix-args): Remove.
1078
313d9eb2
DN
1079 Simplify cstart_of_data, start_of_code and related code.
1080 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1081 (start_of_data): Merge into start_of_data function.
1082 * sysdep.c (start_of_text): Remove. Move simplified versions of
1083 it in the only users: unexaix.c and unexec.c.
1084 (read_input_waiting): Remove local declaration of quit_char.
1085 (start, etext): Remove declarations.
1086 (start_of_data): Merge with the version in mem-limits.h and move
1087 to vm-limits.c.
1088 * vm-limit.c (start_of_data): Merged and simplified version of the
1089 code formerly in mem-limits.h and sysdep.c.
1090 * unexec.c (start): New declaration, moved from sysdep.c.
1091 (start_of_text): Simplified version of the code formerly in sysdep.c.
1092 * unexaix.c (start_of_text): Simplified version of the code
1093 formerly in sysdep.c.
1094 * m/alpha.h (HAVE_TEXT_START): Remove.
1095 (TEXT_START): Move ...
1096 * unexalpha.c (TEXT_START): ... here.
1097 * s/hpux10-20.h (TEXT_START): Remove.
1098 * s/darwin.h (TEXT_START):
1099 * m/mips.h (TEXT_START):
1100 * m/macppc.h (HAVE_TEXT_START):
1101 * m/m68k.h (TEXT_START):
1102 * m/iris4d.h (TEXT_START):
1103 * m/intel386.h (TEXT_START):
1104 * m/ibmrs6000.h (TEXT_START):
1105 * m/ia64.h (HAVE_TEXT_START):
1106 * s/msdos.h (TEXT_START): Likewise.
1107
72af86bd
AS
11082010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1109
1110 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1111 (overrun_check_free, xstrdup, allocate_string)
1112 (allocate_string_data, compact_small_strings, Fmake_string)
1113 (make_unibyte_string, make_multibyte_string)
1114 (make_string_from_bytes, make_specified_string, make_float)
1115 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1116 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1117 memcpy, memmove, memset, memcmp.
1118 * atimer.c (start_atimer, set_alarm): Likewise.
1119 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1120 (mmap_realloc, init_buffer_once): Likewise.
1121 * callint.c (Fcall_interactively): Likewise.
1122 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1123 (getenv_internal_1): Likewise.
1124 * casefiddle.c (casify_object): Likewise.
1125 * ccl.c (ccl_driver): Likewise.
1126 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1127 * charset.c (load_charset_map_from_file)
1128 (load_charset_map_from_file, load_charset_map_from_vector)
1129 (Fdefine_charset_internal): Likewise.
1130 * cm.c (Wcm_clear): Likewise.
1131 * coding.c (decode_eol, decode_coding_object)
1132 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1133 * data.c (Faset): Likewise.
1134 * dired.c (directory_files_internal, file_name_completion_stat):
1135 Likewise.
1136 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1137 (clear_glyph_row, copy_row_except_pointers)
1138 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1139 (save_current_matrix, restore_current_matrix)
1140 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1141 (mirror_line_dance, scrolling_window): Likewise.
1142 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1143 Likewise.
1144 * doprnt.c (doprnt): Likewise.
1145 * editfns.c (Fuser_full_name, make_buffer_string_both)
1146 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1147 * emacs.c (sort_args): Likewise.
1148 * eval.c (Fapply, Ffuncall): Likewise.
1149 * fileio.c (Ffile_name_directory, make_temp_name)
1150 (Fexpand_file_name, search_embedded_absfilename)
1151 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1152 (auto_save_error): Likewise.
1153 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1154 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1155 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1156 (Fmake_hash_table): Likewise.
1157 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1158 * ftfont.c (ftfont_text_extents): Likewise.
1159 * getloadavg.c (getloadavg): Likewise.
1160 * image.c (define_image_type, make_image, make_image_cache)
1161 (x_create_x_image_and_pixmap, xbm_image_p)
1162 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1163 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1164 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1165 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1166 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1167 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1168 Likewise.
1169 * indent.c (scan_for_column, compute_motion): Likewise.
1170 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1171 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1172 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1173 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1174 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1175 (store_user_signal_events, menu_bar_items, tool_bar_items)
1176 (process_tool_bar_item, append_tool_bar_item)
1177 (read_char_minibuf_menu_prompt, read_key_sequence)
1178 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1179 Likewise.
1180 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1181 Likewise.
1182 * lisp.h (STRING_COPYIN): Likewise.
1183 * lread.c (Fload, read1, oblookup): Likewise.
1184 * msdos.c (Frecent_doskeys): Likewise.
1185 * nsfns.m (Fx_create_frame): Likewise.
1186 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1187 Likewise.
1188 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1189 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1190 Likewise.
1191 * nsmenu.m (ns_update_menubar): Likewise.
1192 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1193 * print.c (print_unwind, printchar, strout, print_string)
1194 (print_error_message): Likewise.
1195 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1196 (Fmake_network_process, Fnetwork_interface_list)
1197 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1198 (init_process): Likewise.
1199 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1200 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1201 Likewise.
1202 * scroll.c (do_scrolling, do_direct_scrolling)
1203 (scrolling_max_lines_saved): Likewise.
1204 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1205 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1206 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1207 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1208 (emacs_set_tty): Likewise.
1209 * term.c (encode_terminal_code, calculate_costs)
1210 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1211 Likewise.
1212 * termcap.c (tgetst1, gobble_line): Likewise.
1213 * termhooks.h (EVENT_INIT): Likewise.
1214 * tparam.c (tparam1): Likewise.
1215 * unexalpha.c (unexec): Likewise.
1216 * unexec.c (write_segment): Likewise.
1217 * unexmacosx.c (unexec_write_zero): Likewise.
1218 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1219 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1220 * w32font.c (w32font_list_family, w32font_text_extents)
1221 (w32font_list_internal, w32font_match_internal)
1222 (w32font_open_internal, compute_metrics, Fx_select_font):
1223 Likewise.
1224 * w32menu.c (set_frame_menubar, add_menu_item)
1225 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1226 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1227 * w32uniscribe.c (uniscribe_list_family): Likewise.
1228 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1229 * window.c (make_window, replace_window, set_window_buffer)
1230 (Fsplit_window): Likewise.
1231 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1232 (add_to_log, message3, x_consider_frame_title)
1233 (append_space_for_newline, extend_face_to_end_of_line)
1234 (decode_mode_spec_coding, init_glyph_string): Likewise.
1235 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1236 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1237 (face_attr_equal_p, make_realized_face, make_face_cache)
1238 (free_realized_faces, lookup_named_face, smaller_face)
1239 (face_with_height, lookup_derived_face)
1240 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1241 (Finternal_set_font_selection_order, realize_default_face)
1242 (compute_char_face, face_at_buffer_position)
1243 (face_for_overlay_string, face_at_string_position, merge_faces):
1244 Likewise.
1245 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1246 (Fx_window_property, x_create_tip_frame)
1247 (Fx_backspace_delete_keys_p): Likewise.
1248 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1249 (xfont_text_extents): Likewise.
1250 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1251 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1252 * xselect.c (x_queue_event, x_get_window_property)
1253 (receive_incremental_selection): Likewise.
1254 * xsmfns.c (x_session_check_input): Likewise.
1255 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1256 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1257 Likewise.
1258 * character.h (BCOPY_SHORT): Removed.
1259 * config.in: Regenerate.
1260 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1261 * emacs.c (main) [PROFILING]: Don't declare
1262 dump_opcode_frequencies.
1263 * lisp.h (safe_bcopy): Remove declaration.
1264 (memset) [!HAVE_MEMSET]: Declare.
1265 (memcpy) [!HAVE_MEMCPY]: Likewise.
1266 (memmove) [!HAVE_MEMMOVE]: Likewise.
1267 (memcmp) [!HAVE_MEMCMP]: Likewise.
1268 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1269 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1270 Don't define.
1271 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1272 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1273 (BCOPY_DOWNWARD_SAFE): Don't define.
1274 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1275 (memcpy) [!HAVE_MEMCPY]: Define.
1276 (memmove) [!HAVE_MEMMOVE]: Define.
1277 (memcmp) [!HAVE_MEMCMP]: Define.
1278
cb768704
J
12792010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1280
1281 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1282 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1283 New functions.
cb768704
J
1284 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1285 select on empty input mask.
1286 (init_process): Initialize kbd_is_on_hold to 0.
1287
1288 * process.h (hold_keyboard_input, unhold_keyboard_input)
1289 (kbd_on_hold_p): Declare.
1290
1291 * keyboard.c (input_available_signal): Declare.
1292 (kbd_buffer_nr_stored): New function.
1293 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1294 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1295 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1296 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1297 (tty_read_avail_input): If input is on hold, return.
1298 Don't read more that free slots in kbd_buffer (Bug#6571).
1299
3a8ce822
EZ
13002010-07-07 Eli Zaretskii <eliz@gnu.org>
1301
1302 * msdos.h:
1303 * msdos.c:
1304 * dosfns.c:
1305 * w16select.c: Convert function definitions to ANSI C.
1306
a628ad9d
JB
1307 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1308 Remove unused prototypes.
3a8ce822 1309
cf84bb53
JB
13102010-07-07 Juanma Barranquero <lekktu@gmail.com>
1311
1312 * coding.c, sysdep.c: Convert some more functions to standard C.
1313
1a4990fb
JB
13142010-07-07 Juanma Barranquero <lekktu@gmail.com>
1315
1316 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1317 (encode_coding_object): Use SPECPDL_INDEX.
1318 (syms_of_coding): Use DOS_NT.
1319
c0f2f16b
DN
13202010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1321
48fb6855
DN
1322 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1323
c0f2f16b
DN
1324 Make the function member of Lisp_Subr use standard C prototypes.
1325 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1326 (DECL_ALIGN): Add a cast for the function.
1327 * eval.c (Feval, Ffuncall): Use the proper type for each type
1328 function call.
1329
67aecef9
CY
13302010-07-06 Chong Yidong <cyd@stupidchicken.com>
1331
1332 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1333 fringe face id, so face-remapping-alist works (Bug#6091).
1334
b56ceb92
JB
13352010-07-06 Juanma Barranquero <lekktu@gmail.com>
1336
1337 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1338 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1339 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1340
7af07b96
AS
13412010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1342
1343 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1344 * lisp.h: Declare x_get_keysym_name.
1345 * keyboard.c (modify_event_symbol): Don't declare
1346 x_get_keysym_name here.
1347
69e24e34
DN
13482010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1349
1350 * ecrt0.c: Revert conversion to standard C.
1351
d3da34e0 13522010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1353
1354 * vm-limit.c (memory_warnings):
1355 * keyboard.c (modify_event_symbol):
1356 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1357 (round2, emacs_rint):
1358 * process.c (send_process, old_sigpipe): Convert function
1359 definitions and declarations to standard C.
1360
13612010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1362
1363 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1364 * xdisp.c: Convert function definitions to standard C.
1365
1366 * cm.c (cmputc): Arg C is now int, not char.
1367 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1368
00be444c
J
13692010-07-05 James Cloos <cloos@jhcloos.com>
1370
1371 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1372
1373 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1374 _NET_WM_ICON_NAME atoms.
1375
1376 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1377 and _NET_WM_ICON_NAME properties, too, matching what is
1378 done in the Gtk+ case.
1379
e4c8d29a
J
13802010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1381
ff919460
J
1382 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1383
e4c8d29a
J
1384 * xsmfns.c (SSDATA): New macro.
1385 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1386 passed to strlen/strcpy/strcat.
1387 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1388 7:th arg to XChangeProperty to (unsigned char *)
1389
1390 * xsettings.c (something_changedCB, parse_settings)
1391 (apply_xft_settings): Reformat prototype.
1392 (something_changedCB, init_gconf): Remove unused variable i.
1393 (read_settings): Remove unused variable long_len.
1394
1395 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1396 (xg_get_image_for_pixmap, create_dialog)
1397 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1398 (menuitem_highlight_callback, make_menu_item)
1399 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1400 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1401 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1402 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1403 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1404 (xg_tool_bar_item_expose_callback): Reformat prototype.
1405 (xg_update_menubar): GList *group => GSList *group.
1406 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1407 before use.
1408 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1409 to GTK_IMAGE (wimage).
1410
dd4c5104
DN
14112010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1412
898b4c5c
DN
1413 * atimer.c: Use "" instead of <> for local includes for
1414 consistency with the rest of the code.
1415
dd4c5104
DN
1416 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1417 * xrdb.c (get_system_name):
1418 * window.c (shrink_windows):
1419 * syntax.c (forw_comment):
1420 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1421 (ins_del_costs):
1422 * mem-limits.h (start_of_data):
1423 * lread.c (readevalloop):
1424 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1425 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1426 * frame.c (x_get_focus_frame):
1427 * floatfns.c (fmod_float):
1428 * fileio.c (choose_write_coding_system):
1429 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1430 (malloc_initialize_hook, sort_args, synchronize_locale):
1431 * doprnt.c (doprnt):
1432 * dired.c (compile_pattern):
1433 * data.c (fmod_float):
1434 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1435 (map_char_table_for_charset):
1436 * charset.c (define_charset_internal):
1437 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1438 to standard C.
1439
9a39b306 14402010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1441 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1442
1443 * lread.c (read1): Fix up last change to not mess up `c'.
1444
e6cb2cbb
JB
14452010-07-04 Juanma Barranquero <lekktu@gmail.com>
1446
1447 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1448
438105ed
JB
14492010-07-04 Juanma Barranquero <lekktu@gmail.com>
1450
1451 Fix prototypes.
1452
e5447b22 1453 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1454 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1455 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1456 arg, as required by internal_condition_case_1.
dcc7404b 1457 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1458 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1459 (analyse_first): Fix "const const".
e5447b22 1460 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1461 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1462 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1463
971de7fb
DN
14642010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1465
1466 * alloc.c: Convert function definitions to standard C.
1467 * atimer.c:
1468 * bidi.c:
1469 * bytecode.c:
1470 * callint.c:
1471 * callproc.c:
1472 * casefiddle.c:
1473 * casetab.c:
1474 * category.c:
1475 * ccl.c:
1476 * character.c:
1477 * charset.c:
1478 * chartab.c:
1479 * cmds.c:
1480 * coding.c:
1481 * composite.c:
1482 * data.c:
1483 * dbusbind.c:
1484 * dired.c:
1485 * dispnew.c:
1486 * doc.c:
1487 * doprnt.c:
1488 * ecrt0.c:
1489 * editfns.c:
1490 * fileio.c:
1491 * filelock.c:
1492 * filemode.c:
1493 * fns.c:
1494 * font.c:
1495 * fontset.c:
1496 * frame.c:
1497 * fringe.c:
1498 * ftfont.c:
1499 * ftxfont.c:
1500 * gtkutil.c:
1501 * indent.c:
1502 * insdel.c:
1503 * intervals.c:
1504 * keymap.c:
1505 * lread.c:
1506 * macros.c:
1507 * marker.c:
1508 * md5.c:
1509 * menu.c:
1510 * minibuf.c:
1511 * prefix-args.c:
1512 * print.c:
1513 * ralloc.c:
1514 * regex.c:
1515 * region-cache.c:
1516 * scroll.c:
1517 * search.c:
1518 * sound.c:
1519 * strftime.c:
1520 * syntax.c:
1521 * sysdep.c:
1522 * termcap.c:
1523 * terminal.c:
1524 * terminfo.c:
1525 * textprop.c:
1526 * tparam.c:
1527 * undo.c:
1528 * unexelf.c:
1529 * window.c:
1530 * xfaces.c:
1531 * xfns.c:
1532 * xfont.c:
1533 * xftfont.c:
1534 * xgselect.c:
1535 * xmenu.c:
1536 * xrdb.c:
1537 * xselect.c:
1538 * xsettings.c:
1539 * xsmfns.c:
1540 * xterm.c: Likewise.
1541
ae492bec
EZ
15422010-07-03 Eli Zaretskii <eliz@gnu.org>
1543
76ea4cc9
EZ
1544 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1545 frames other than the initial one. Fix reversal of colors when
1546 `reverse' is specified in the frame parameters. Call
1547 update_face_from_frame_parameter instead of
1548 internal-set-lisp-face-attribute. Initialize screen colors from
1549 initial_screen_colors[] when f->default_face_done_p is zero,
1550 instead of depending on being called with default-frame-alist as
1551 the alist argument.
1552
1553 * xfaces.c (update_face_from_frame_parameter): Move out of
1554 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1555 with HAVE_WINDOW_SYSTEM.
1556
1e6255ae
EZ
1557 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1558 to menu-bar-mode, if not set in the frame parameters or in
1559 default-frame-alist.
1560
ae492bec
EZ
1561 * w32console.c (sys_tputs): Adjust argument list to prototype in
1562 term.c.
1563
3a35a84c
JB
15642010-07-03 Juanma Barranquero <lekktu@gmail.com>
1565
1566 * lisp.h (memory_warnings): Fix prototype.
1567
1568 * cm.h (evalcost): Fix prototype.
1569
1570 * cm.c (evalcost): Fix arg type.
1571
c532d349
DN
15722010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1573
1574 * term.c (term_clear_mouse_face, Fidentity):
1575 * syssignal.h (signal_handler_t):
1576 * lisp.h (memory_warnings):
1577 * coding.h (preferred_coding_system):
1578 * cm.h (evalcost):
1579 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1580
c0b36d46
EZ
15812010-07-02 Eli Zaretskii <eliz@gnu.org>
1582
1583 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1584 from prototypes.
1585
1586 * msdos.h (load_pixmap): Don't define away.
1587
383e0970
J
15882010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1589
f57e2426
J
1590 * lisp.h:
1591 * atimer.h: Remove define for P_.
1592
1593 * alloc.c: Remove __P and P_ from .c and .m files.
1594 * atimer.c:
1595 * buffer.c:
1596 * callint.c:
1597 * category.c:
1598 * charset.c:
1599 * chartab.c:
1600 * cm.c:
1601 * coding.c:
1602 * composite.c:
1603 * data.c:
1604 * dired.c:
1605 * dispnew.c:
1606 * doc.c:
1607 * editfns.c:
1608 * emacs.c:
1609 * eval.c:
1610 * fileio.c:
1611 * filelock.c:
1612 * fns.c:
1613 * font.c:
1614 * fontset.c:
1615 * frame.c:
1616 * ftfont.c:
1617 * ftxfont.c:
1618 * gmalloc.c:
1619 * gtkutil.c:
1620 * image.c:
1621 * indent.c:
1622 * intervals.c:
1623 * keyboard.c:
1624 * keymap.c:
1625 * lread.c:
1626 * marker.c:
1627 * menu.c:
1628 * minibuf.c:
1629 * print.c:
1630 * process.c:
1631 * scroll.c:
1632 * search.c:
1633 * sound.c:
1634 * strftime.c:
1635 * syntax.c:
1636 * sysdep.c:
1637 * term.c:
1638 * terminal.c:
1639 * textprop.c:
1640 * unexalpha.c:
1641 * w32console.c:
1642 * w32fns.c:
1643 * w32font.c:
1644 * w32menu.c:
1645 * w32term.c:
1646 * w32uniscribe.c:
1647 * window.c:
1648 * xdisp.c:
1649 * xfaces.c:
1650 * xfns.c:
1651 * xfont.c:
1652 * xftfont.c:
1653 * xmenu.c:
1654 * xselect.c:
1655 * xterm.c: Likewise.
1656
383e0970 1657 Remove P_ and __P macros.
f57e2426
J
1658 * atimer.h: Remove P_ and __P macros.
1659 * buffer.h:
383e0970
J
1660 * category.h:
1661 * ccl.h:
1662 * character.h:
1663 * charset.h:
1664 * cm.h:
1665 * coding.h:
1666 * composite.h:
1667 * dispextern.h:
1668 * disptab.h:
9e892c8d 1669 * dosfns.h:
383e0970
J
1670 * font.h:
1671 * fontset.h:
1672 * frame.h:
1673 * gtkutil.h:
1674 * indent.h:
1675 * intervals.h:
1676 * keyboard.h:
1677 * keymap.h:
1678 * lisp.h:
1679 * macros.h:
1680 * md5.h:
1681 * menu.h:
1682 * msdos.h:
1683 * nsterm.h:
1684 * puresize.h:
1685 * region-cache.h:
1686 * syntax.h:
1687 * syssignal.h:
1688 * systime.h:
1689 * termhooks.h:
9e892c8d 1690 * w32font.h:
383e0970
J
1691 * w32term.h:
1692 * widget.h:
1693 * window.h:
1694 * xgselect.h:
1695 * xsettings.h:
1696 * xterm.h: Likewise.
1697
98601119
DN
16982010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1699
d9170db5
DN
1700 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1701
98601119
DN
1702 Cleanup old code.
1703 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1704 * syssignal.h: Remove code for Lynx, not supported anymore.
1705 * vm-limit.c: Remove unused code the depends on emacs not being
1706 defined and NO_LIM_DATA being defined.
1707 * mem-limits.h: Remove dead code.
1708
1f984e12
J
17092010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1710
c49d071a
J
1711 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1712
9d5405ec
J
1713 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1714 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1715
7a18115b
J
1716 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1717 parameters, they are already absolute.
1718
a628ad9d
JB
1719 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1720 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1721
a628ad9d 1722 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1723
a628ad9d
JB
1724 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1725 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1726
a628ad9d
JB
1727 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1728 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1729
c1ef4455
CY
17302010-06-30 Chong Yidong <cyd@stupidchicken.com>
1731
1732 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1733 check default-frame-alist.
1734
ce8f5a9a
AS
17352010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1736
1737 * process.c (create_process): Avoid using invalid file descriptors.
1738
1739 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1740
bf935339
J
17412010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1742
1743 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1744 Improve documentation. Return font regardless of use_system_font.
1745 (syms_of_xsettings): Improve documentation for font-use-system-font.
1746
7c33a057
CY
17472010-07-10 Chong Yidong <cyd@stupidchicken.com>
1748
2ec1b5ee
CY
1749 * xfaces.c (realize_face): Garbage the frame if a face is removed
1750 (Bug#6593).
1751
17522010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1753
1754 * keyboard.c: Remove duplicate <setjmp.h>.
1755 (read_key_sequence): Remove volatile qualifiers.
1756
17572010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1758
1759 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1760 (struct glyph_row): New members left_fringe_offset and
1761 right_fringe_offset.
1762
1763 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1764 specially.
1765 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1766 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1767
1768 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1769 Take account of bitmap offset.
2ec1b5ee
CY
1770 (draw_window_fringes): Take account of window vscroll.
1771 (update_window_fringes): Likewise. Extend top-aligned top indicator
1772 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1773 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1774 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1775
17762010-07-04 Juanma Barranquero <lekktu@gmail.com>
1777
1778 * w32fns.c (Qtooltip): Declare.
1779 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1780
17812010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1782
1783 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1784 grab on just Press (Bug#6499).
1785
17862010-07-02 Chong Yidong <cyd@stupidchicken.com>
1787
1788 * frame.c (Qtooltip): New var.
1789 (delete_frame): Use it. Fix faulty if statement. Don't update
1790 mode line for tooltip frames. Suggested by Martin Rudalics.
1791
1792 * xfns.c (x_create_tip_frame):
1793 * w32fns.c (x_create_tip_frame): Use it.
1794
17952010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1796
1797 * xftfont.c (xftfont_open): Check font width one by one also when
1798 spacing is dual.
1799
1800 * ftfont.c (ftfont_open): Ditto.
1801
6259c2ec
GM
18022010-06-30 Glenn Morris <rgm@gnu.org>
1803
a46007e9
GM
1804 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1805
6259c2ec
GM
1806 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1807
1808 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1809 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1810 * s/darwin.h (SYSTEM_MALLOC):
1811 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1812
5d1d3d04
J
18132010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1814
1815 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1816 (ns_get_screen): Don't assign integer to f.
1817 (Fx_display_color_cells): Declarations before statements.
1818
e547b051
J
18192010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1820
5fc8e5bc
J
1821 * xfns.c (x_default_font_parameter): Remove got_from_system
1822 (Bug#6526).
1823
e547b051
J
1824 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1825 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1826 defines based on what configure finds.
1827
1828 * xterm.c (XTflash): Use gtk_widget_get_window.
1829 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1830 gtk_adjustment_get_page_size.
1831 (handle_one_xevent): Use gtk_widget_get_mapped.
1832 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1833 messages.
1834
1835 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1836
1837 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1838 HAVE_GTK_FILE_SELECTION_NEW.
1839
1840 * gtkutil.c (xg_display_open, xg_display_close): Remove
1841 HAVE_GTK_MULTIDISPLAY, it is always defined.
1842 (xg_display_open): Return type is void.
1843 (gtk_widget_set_has_window)
1844 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1845 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1846 (gtk_adjustment_set_page_increment)
1847 (gtk_adjustment_get_step_increment): #define these if not found
1848 by configure.
1849 (remove_submenu): New define based on Gtk+ version.
1850 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1851 gtk_widget_get_window.
1852 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1853 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1854 (create_dialog): Use gtk_dialog_get_action_area and
1855 gtk_dialog_get_content_area.
1856 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1857 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1858 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1859 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1860 g_object_ref and g_object_unref.
1861 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1862 gtk_widget_get_sensitive.
1863 (xg_update_submenu): Use remove_submenu.
1864 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1865 properties instead to get old x and y position.
1866 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1867 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1868 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1869 (xg_get_tool_bar_widgets): New function.
1870 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1871 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1872 (toolbar_set_orientation): New #define based on if configure
1873 finds gtk_orientable_set_orientation.
1874 (xg_create_tool_bar): Call toolbar_set_orientation.
1875 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1876 instead of gtk_box_pack_start_defaults.
1877
b9229673
CY
18782010-06-28 Chong Yidong <cyd@stupidchicken.com>
1879
1880 * cmds.c (Fdelete_backward_char): Move into Lisp.
1881
bbc803b0
DN
18822010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1883
1884 * s/freebsd.h (BSD4_2): Remove redundant definition.
1885 bsd-common.h defines it already.
1886
6431f2e6
CY
18872010-06-27 Chong Yidong <cyd@stupidchicken.com>
1888
1889 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1890 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1891 tool-bar-mode, which are now set using these X resources at
1892 startup, to determine the defaults (Bug#2249).
1893
1894 * w32fns.c (Fx_create_frame):
1895 * nsfns.m (Fx_create_frame): Likewise.
1896
1897 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1898
8c079ebb
JB
18992010-06-24 Juanma Barranquero <lekktu@gmail.com>
1900
1901 * gtkutil.c (xg_update_scrollbar_pos):
1902 Avoid C99 mid-block variable declaration.
1903
e9b7ab96
JD
19042010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1905
bc869eca
JD
1906 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1907
2b7e356a 1908 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1909
1910 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1911 if height is less than scroll bar min size.
1912 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1913
e9b7ab96
JD
1914 * xfns.c (x_default_font_parameter): Try to open font from system
1915 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1916
a628ad9d 19172010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1918
1919 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1920
70c4cfbb
EZ
19212010-06-20 Eli Zaretskii <eliz@gnu.org>
1922
1923 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1924 most-positive-fixnum, be extra accurate when scrolling window
1925 start, to avoid missing the cursor line.
1926
ad5a12b5
EZ
19272010-06-19 Eli Zaretskii <eliz@gnu.org>
1928
1929 * xdisp.c (try_scrolling): Compute the limit for searching point
1930 in forward scroll from scroll_max, instead of an arbitrary limit
1931 of 10 screen lines. See
1932 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1933 and
1934 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1935 for details.
1936
2a64315a 19372010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1938
1939 * editfns.c (Fbyte_to_string): Pacify compiler.
1940
288cf4e9
SM
19412010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1942
1943 * lread.c (read1): Phase out old-style backquotes a bit more.
1944
6e6e5760
EZ
19452010-06-12 Eli Zaretskii <eliz@gnu.org>
1946
cbc4fd20
EZ
1947 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1948 bidimirror.h.
1949
1950 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1951
317fbf33
EZ
1952 * bidi.c (bidi_initialize): Remove explicit initialization of
1953 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1954 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1955 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1956
1957 * biditype.h: New file.
1958
cbc4fd20
EZ
1959 * bidimirror.h: New file.
1960
6e6e5760
EZ
1961 * window.c (syms_of_window): Doc fix (bug#6409).
1962
4176cba2
RF
19632010-06-12 Romain Francoise <romain@orebokech.com>
1964
1965 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1966 ediff-hook.
1967
cb4bfcb5
GM
19682010-06-10 Glenn Morris <rgm@gnu.org>
1969
64c60c2f
GM
1970 * editfns.c (Fbyte_to_string): Pacify compiler.
1971
cb4bfcb5
GM
1972 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1973
2ec1b5ee
CY
19742010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1975
1976 * alloc.c (Fmake_byte_code): Don't access undefined argument
1977 (Bug#6517).
1978
19792010-06-25 Chong Yidong <cyd@stupidchicken.com>
1980
1981 * xdisp.c (next_element_from_image): Ensure that after-strings are
1982 read the next time we hit handle_stop (Bug#1336).
1983
19842010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1985
1986 * lread.c (read1): Signal error if #s is not followed by paren.
1987
19882010-06-19 Chong Yidong <cyd@stupidchicken.com>
1989
1990 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1991
1992 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1993
19942010-06-15 Glenn Morris <rgm@gnu.org>
1995
1996 * editfns.c (Fbyte_to_string): Pacify compiler.
1997
e454a4a3
SM
19982010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1999
2000 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2001 Check `object's type before accessing its guts.
2002
c1b1acc2
DN
20032010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2004
2005 * s/usg5-4.h: Fix previous change.
2006 Suggested by Lawrence Mitchell <wence@gmx.li>
2007
657d4c0b
AS
20082010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2009
2010 * minibuf.c (Fall_completions): Add more checks.
2011
9b27fd9f
JB
20122010-06-08 Juanma Barranquero <lekktu@gmail.com>
2013
2014 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2015
a99ebb40
DN
20162010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2017
d7c5d87d
DN
2018 * lread.c (X_OK): Remove, unused.
2019
0263a941
DN
2020 * dispnew.c: Remove obsolete comment.
2021
a99ebb40
DN
2022 Remove INCLUDED_FCNTL.
2023 * xterm.c (INCLUDED_FCNTL):
2024 * callproc.c (INCLUDED_FCNTL):
2025 * alloc.c (INCLUDED_FCNTL):
2026 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2027 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2028
13b5221f
MR
20292010-06-07 Martin Rudalics <rudalics@gmx.at>
2030
2031 * window.c (Fselect_window): Move `record_buffer' up to the
2032 beginning of this function, so the buffer gets recorded
2033 even if the selected window does not change.
2034 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2035
5220357f
JB
20362010-06-07 Juanma Barranquero <lekktu@gmail.com>
2037
2038 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2039 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2040
3085237c
DN
20412010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2042
2043 Remove BSTRING related code, all platforms define it.
2044 * s/usg5-4.h (BSTRING): Remove definition.
2045 * s/template.h (BSTRING):
2046 * s/msdos.h (BSTRING):
2047 * s/ms-w32.h (BSTRING):
2048 * s/hpux10-20.h (BSTRING):
2049 * s/gnu-linux.h (BSTRING):
2050 * s/darwin.h (BSTRING):
2051 * s/cygwin.h (BSTRING):
2052 * s/bsd-common.h (BSTRING):
2053 * s/aix4-2.h (BSTRING): Likewise.
2054 * sysdep.c: Remove code depending on BSTRING not being defined.
2055
409f2919
JB
20562010-06-05 Juanma Barranquero <lekktu@gmail.com>
2057
2058 Remove obsolete macro BASE_LEADING_CODE_P.
2059 * character.h (BASE_LEADING_CODE_P): Remove.
2060 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2061 * buffer.c (Fset_buffer_multibyte):
2062 * indent.c (scan_for_column, compute_motion):
2063 * insdel.c (count_combining_before, count_combining_after):
2064 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2065
087fc47a
JB
20662010-06-04 Juanma Barranquero <lekktu@gmail.com>
2067
2068 Turn `directory-sep-char' into a noop.
2069
2070 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2071 (DIRECTORY_SEP): Define unconditionally.
2072
2073 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2074
2075 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2076 call dostounix_filename directly.
2077
2078 * fileio.c (CORRECT_DIR_SEPS): Remove.
2079 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2080 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2081 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2082 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2083
2084 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2085 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2086
0eb7675e
AS
20872010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2088
a628ad9d
JB
2089 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2090 (Bug#6346)
0eb7675e 2091
78edd3b7
JB
20922010-06-03 Juanma Barranquero <lekktu@gmail.com>
2093
2094 * ccl.c (Fccl_program_p): Fix typo in docstring.
2095
eb697db5
DN
20962010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2097
2098 Move UNEXEC definition to autoconf.
2099 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2100 * s/sol2-10.h (UNEXEC):
2101 * s/irix6-5.h (UNEXEC):
2102 * s/hpux10-20.h (UNEXEC):
2103 * s/gnu-linux.h (UNEXEC):
2104 * s/darwin.h (UNEXEC):
2105 * s/cygwin.h (UNEXEC):
2106 * s/bsd-common.h (UNEXEC):
2107 * s/aix4-2.h (UNEXEC):
2108 * m/alpha.h (UNEXEC): Likewise.
2109 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2110
aa3830c4
JB
21112010-06-03 Juanma Barranquero <lekktu@gmail.com>
2112
2113 Remove obsolete pre-unicode2 macros.
2114 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2115 * composite.c (composition_reseat_it):
2116 * data.c (Faset):
2117 * fns.c (Ffillarray):
2118 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2119 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2120
d234d13e
JL
21212010-06-03 Juri Linkov <juri@jurta.org>
2122
2123 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2124 (Fswitch_to_buffer): Remove unused variable `err'.
2125
0d4bcf4d
GM
21262010-06-03 Glenn Morris <rgm@gnu.org>
2127
e23dc1e2
GM
2128 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2129
05b09564
GM
2130 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2131 now that AH_BOTTOM does it.
2132
824e2978
GM
2133 * m/hp800.h (HAVE_ALLOCA):
2134 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2135
0d4bcf4d
GM
2136 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2137 Remove NOT_C_CODE tests, it is always true now.
2138
c55d2abf
DN
21392010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2140
08a494a3
DN
2141 Fix config.h includes.
2142 * xsettings.c:
2143 * xgselect.c:
2144 * nsterm.m:
2145 * nsselect.m:
2146 * nsimage.m:
2147 * nsfont.m:
2148 * nsfns.m:
2149 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2150 other files do.
2151
75934b1d
DN
2152 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2153
9f32a766
DN
2154 * s/sol2-6.h: Remove obsolete comments.
2155
c55d2abf
DN
2156 Remove unnecessary alloca.h includes.
2157 * keymap.c: Do not include alloca.h, config.h does that.
2158 * sysdep.c: Likewise. Do not define fwrite, not used.
2159
06ac62b4
SM
21602010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2161
2162 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2163 the HAVE_TERMIO where it belongs (bug#6149).
2164
1ab8293c
SM
21652010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2166
2167 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2168 of bug#6305).
2169
6dcfd253
EZ
21702010-05-30 Eli Zaretskii <eliz@gnu.org>
2171
2172 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2173 state is always cached (bug#6306).
2174
6d26bbb2
EZ
21752010-05-29 Eli Zaretskii <eliz@gnu.org>
2176
06fa4a23
EZ
2177 Fix cursor motion in bidi-reordered continued lines.
2178 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2179 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2180 over continuation lines in bidi-reordered buffers. Return
2181 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2182 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2183
f5783df3
MA
21842010-05-28 Michael Albinus <michael.albinus@gmx.de>
2185
2186 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2187
7d56b2dd
KH
21882010-05-28 Kenichi Handa <handa@m17n.org>
2189
2190 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2191 Don't sheck SPEC if it is nil.
2192 (font_list_entities): Call font_delete_unmatched if
b925d231 2193 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2194
e58d4ff7
GM
21952010-05-28 Glenn Morris <rgm@gnu.org>
2196
2197 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2198
f1a5d776
CY
21992010-05-27 Chong Yidong <cyd@stupidchicken.com>
2200
2201 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2202 whether to trash.
2203 (internal_delete_file, Frename_file): Callers changed.
2204 (delete_by_moving_to_trash): Doc fix.
2205 (Fdelete_directory_internal): Don't move to trash.
2206
2207 * callproc.c (delete_temp_file):
2208 * buffer.c (Fkill_buffer): Callers changed.
2209
2210 * lisp.h: Update prototype.
2211
f44a59e6
CY
22122010-05-27 Chong Yidong <cyd@stupidchicken.com>
2213
2214 * xdisp.c (redisplay_window): After redisplay, check if point is
2215 still valid before setting it (Bug#6177).
2216
81ac4f35
GM
22172010-05-27 Glenn Morris <rgm@gnu.org>
2218
2219 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2220 Convert comments to Makefile format.
2221
2222 * Makefile.in (bootstrap-clean): No more Makefile.c.
2223
ccd89fb3
GM
22242010-05-26 Glenn Morris <rgm@gnu.org>
2225
90278cb6
GM
2226 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2227 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2228
ccd89fb3
GM
2229 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2230 Remove.
2231 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2232
b7050583
KH
22332010-05-26 Kenichi Handa <handa@m17n.org>
2234
2235 * composite.c (composition_compute_stop_pos): Fix condition for
2236 backward scanning.
2237
e5458003
GM
22382010-05-25 Glenn Morris <rgm@gnu.org>
2239
c345fe90
GM
2240 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2241 Move before TEMACS_LDFLAGS.
2242 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2243 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2244
2e0689ab
GM
2245 * Makefile.in (NOT_C_CODE): No longer define.
2246 (config.h): No longer include.
2247
8009a5e8
GM
2248 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2249 variables it may reference.
2250
e5458003
GM
2251 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2252 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2253
10f72a37
KH
22542010-05-25 Kenichi Handa <handa@m17n.org>
2255
2256 * dispextern.h (struct composition_it): New members rule_idx and
2257 charpos.
2258
2259 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2260 that the character positions of IT point the last character of the
2261 current grapheme cluster.
2262 (next_element_from_composition): Don't change character positions
2263 of IT.
2264 (append_composite_glyph): Set glyph->charpos to
2265 it->cmp_it.charpos.
2266
2267 * composite.c (autocmp_chars): Change the first argument to RULE,
2268 and try composition with RULE only.
2269 (composition_compute_stop_pos): Record the index number of the
2270 composition rule in CMP_IT->rule_idx.
2271 (composition_reseat_it): Call autocmp_chars repeatedly until the
2272 correct rule of the composition is found.
2273 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2274 is at the last character of the current grapheme cluster when
2275 CMP_IT->reversed_p is nonzero.
2276
171eda53 22772010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2278
171eda53
SM
2279 * editfns.c (Fbyte_to_string): New function.
2280
66a9f7f4
SM
22812010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2282
2283 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2284 Suggested by Masatake YAMATO <yamato@redhat.com>.
2285
d8c315d1
EZ
22862010-05-23 Eli Zaretskii <eliz@gnu.org>
2287
171eda53 2288 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2289
f5b416d2 22902010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2291
2292 * s/netbsd.h: If terminfo is found, use it in preference to
2293 termcap. (Bug#6190) [Backport from trunk]
2294
0416466c
EZ
22952010-05-19 Eli Zaretskii <eliz@gnu.org>
2296
11117830 2297 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2298
2299 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2300 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2301 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2302 and maxpos members instead of start.pos and end.pos, respectively.
2303
2304 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2305 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2306 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2307 (try_window_reusing_current_matrix, try_window_id):
2308 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2309 (init_from_display_pos, init_iterator): Use EMACS_INT for
2310 character and byte positions.
66a9f7f4 2311 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2312 arguments for minimum and maximum buffer positions seen by
2313 display_line for this row. Don't use iterator to find the
2314 position following the maximum one; instead, increment the
11117830
EZ
2315 position found by display_line directly. Fix logic; eol_pos
2316 should be tested before the rest. Handle the case of characters
2317 delivered from display vector (bug#6036). Fix tests related to
2318 it->method. Handle the truncated_on_right_p rows.
2319 (RECORD_MAX_MIN_POS): New macro.
2320 (display_line): Use it to record the minimum and maximum buffer
2321 positions for glyphs in the row being assembled. Record the
2322 position of the newline that terminates the line. If word wrap is
2323 in effect, restore minimum and maximum positions seen up to the
2324 wrap point, when iterator returns to it.
2325 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2326 row and cursor not already at point. Restore original pre-bidi
2327 code for unidirectional buffers.
d36fe237
EZ
2328
2329 * dispnew.c (increment_row_positions, check_matrix_invariants):
2330 Increment and check row->start.pos and row->end.pos, in addition
2331 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2332
11117830
EZ
2333 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2334 Display truncated_on_left_p and truncated_on_right_p flags.
2335 Formatting fixes.
2336 (pmtxrows): Display the ordinal number of each row. Don't display
2337 rows beyond the last one.
2338
2339 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2340 it is not copied by bidi_copy_it.
2341
6e83d800
EZ
23422010-05-22 Eli Zaretskii <eliz@gnu.org>
2343
2344 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2345 (Bug#6237)
2346
110683ad
CY
23472010-05-22 Chong Yidong <cyd@stupidchicken.com>
2348
2349 * image.c (Fimage_flush): Rename from image-refresh.
2350
98fe5161
CY
23512010-05-21 Chong Yidong <cyd@stupidchicken.com>
2352
2353 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2354 just one window.
2355
2356 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2357 (clear_image_cache): If the number of cached images is unusually
2358 large, decrease the cache eviction delay (Bug#6230).
2359
e8752c66
GM
23602010-05-21 Glenn Morris <rgm@gnu.org>
2361
66dbf213
GM
2362 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2363 Move these rules to ns.mk.
2364 * ns.mk: New file.
2365
04384b2d
GM
2366 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2367
e8752c66
GM
2368 * Makefile.in (CANNOT_DUMP): New, set by configure.
2369 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2370
2e2bbddb
JL
23712010-05-20 Juri Linkov <juri@jurta.org>
2372
2373 * fileio.c (Fdelete_file): Change interative spec to use
2374 `read-file-name' like in `find-file-read-args' where the default
2375 value is `default-directory' instead of `buffer-file-name'.
2376 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2377
31c4aaf6
KR
23782010-05-20 Kevin Ryde <user42@zip.com.au>
2379
2380 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2381 (Voverriding_terminal_local_map, Vsystem_key_alist)
2382 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2383
9d5cf9b6
GM
23842010-05-20 Glenn Morris <rgm@gnu.org>
2385
2386 * Makefile.in (DEPDIR): New constant.
2387 (DEPFLAGS): Set with configure, not cpp.
2388 (MKDEPDIR): New, set by configure.
2389 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2390 (clean): Use $DEPDIR.
2391 (deps_frag): Include from configure.
2392 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2393 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2394
ead6f8f5
EZ
2395 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2396 reallocation of the cache. (Bug#6210)
2397
7f34aec3
GM
23982010-05-19 Glenn Morris <rgm@gnu.org>
2399
d494e8f2
GM
2400 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2401
c1d0dcfd
GM
2402 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2403 (GNULIB_VAR): Remove.
2404 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2405
2406 * m/ibms390x.h (LINKER):
2407 * m/macppc.h (LINKER) [GNU_LINUX]:
2408 * s/aix4-2.h (ORDINARY_LINK):
2409 * s/cygwin.h (LINKER):
2410 * s/darwin.h (ORDINARY_LINK):
2411 * s/gnu.h (ORDINARY_LINK):
2412 * s/netbsd.h (LINKER):
2413 * s/usg5-4.h (ORDINARY_LINK):
2414 Move to configure.
2415
7f34aec3
GM
2416 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2417
754790b6
CY
24182010-05-18 Chong Yidong <cyd@stupidchicken.com>
2419
2420 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2421 prevent stack overflow if number of arguments is too large
2422 (Bug#6214).
2423
161e44d1
JB
24242010-05-18 Juanma Barranquero <lekktu@gmail.com>
2425
2426 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2427
be4ff9da
GM
24282010-05-18 Glenn Morris <rgm@gnu.org>
2429
9539dc5d
GM
2430 * s/gnu-linux.h: Combine two conditionals.
2431
2432 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2433 $(POST_ALLOC_OBJ).
2434
40dc6bf4
GM
2435 * Makefile.in (RALLOC_OBJ): New, set by configure.
2436 (rallocobj): Replace with the previous variable.
2437 (otherobj): Use $RALLOC_OBJ.
2438
2439 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2440 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2441
be4ff9da
GM
2442 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2443 (gmallocobj, vmlimitobj): Replace with previous two variables.
2444 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2445
16455a85
GM
24462010-05-17 Glenn Morris <rgm@gnu.org>
2447
2448 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2449 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2450
5fdb7468
GM
24512010-05-16 Glenn Morris <rgm@gnu.org>
2452
7ca1f3f9
GM
2453 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2454
7541dad5
GM
2455 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2456
da53fab9
GM
2457 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2458 trailing "/".
2459
b02a6645
GM
2460 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2461 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2462
8877ca0f
GM
2463 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2464 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2465 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2466 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2467 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2468
5fdb7468
GM
2469 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2470 Remove ${STARTFLAGS}, nothing ever sets it.
2471
95adb4b1
DN
24722010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2473
2474 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2475
676b6304
GM
24762010-05-16 Glenn Morris <rgm@gnu.org>
2477
9beab9ce
GM
2478 * Makefile.in (LIBX_BASE): Always define.
2479
8a95f0e7
GM
2480 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2481
676b6304
GM
2482 * Makefile.in (LIBXT): Always define.
2483
6e546d18
GM
24842010-05-15 Glenn Morris <rgm@gnu.org>
2485
4235ca47 2486 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2487
6e546d18
GM
2488 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2489 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2490
8c5ff6dd
KR
24912010-05-15 Ken Raeburn <raeburn@raeburn.org>
2492
560bb7ae 2493 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2494 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2495
8b4eb796
KR
2496 * emacs.c (main): Initialize initial-environment and
2497 process-environment before generating from env, not after.
2498
8c5ff6dd
KR
2499 Handle --version reasonably in CANNOT_DUMP configuration.
2500 * emacs.c (emacs_version, emacs_copyright): New string variables.
2501 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2502 (syms_of_emacs): Defvar them, and initialize them from the C
2503 string variables.
2504 (main): If initialization hasn't been done, print initial version
2505 info from the C strings, instead of starting an interactive session.
2506
dbd3f723
EZ
25072010-05-15 Eli Zaretskii <eliz@gnu.org>
2508
d20e1419
EZ
2509 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2510 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2511 (bidi_paragraph_init): Remove redundant assertion that we are at
2512 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2513
2514 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2515 (syms_of_xdisp): Defsubr it.
2516
d36fe237
EZ
2517 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2518
dbd3f723
EZ
2519 * Makefile.in: Fix MSDOS-related comments.
2520
02be533b
GM
25212010-05-15 Glenn Morris <rgm@gnu.org>
2522
1a82cca9
GM
2523 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2524 (really-lwlib, really-oldXMenu): Always define.
2525 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2526
3df7b338
GM
2527 * Makefile.in: Simplify cpp conditional.
2528
2b5f541b
GM
2529 * Makefile.in (${ns_appdir}): Simplify using umask.
2530
02be533b
GM
2531 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2532
4e2db1fe
SM
25332010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2534
2535 * eval.c (specbind): Remove left-over duplicate test.
2536 Disallow let-binding frame-local vars. Add comment.
2537
4b292a22
EZ
25382010-05-14 Eli Zaretskii <eliz@gnu.org>
2539
2fe72643 2540 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2541 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2542 (bidi_init_it): Call it.
2543 (bidi_cache_iterator_state): Enlarge the cache if needed.
2544
4e2db1fe 2545 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2546 bidi_get_next_char_visually. All callers changed.
2547
82ebc97b
KH
25482010-05-14 Kenichi Handa <handa@m17n.org>
2549
2550 * dispextern.h (struct composition_it): New member reversed_p.
2551
2552 * composite.c (composition_compute_stop_pos): Search backward if
2553 ENDPOS < CHARPOS.
2554 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2555 Set CMP_IT->reversed_p.
b4b6e17e 2556 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2557
4e2db1fe
SM
2558 * xdisp.c (set_iterator_to_next):
2559 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2560 scanning backward. Call composition_compute_stop_pos if scan
2561 direction is changed.
2562 (next_element_from_buffer): Call composition_compute_stop_pos with
2563 negative ENDPOS if we are scanning backward.
2564 (next_element_from_composition): Pay attention to
2565 IT->cmp_it.reversed_p.
2566
0e5d7800
KH
25672010-05-14 Kenichi Handa <handa@m17n.org>
2568
560bb7ae 2569 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2570
cb027b32
GM
25712010-05-14 Glenn Morris <rgm@gnu.org>
2572
177b0288
GM
2573 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2574
fbc00890
GM
2575 * Makefile.in (mktime, X11, register): Move undefs to configure.
2576
f14d1dfd
GM
2577 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2578 (MSDOS_X_OBJ): New variable.
2579 (MSDOS_SUPPORT_REAL): New constant.
2580 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2581 (obj): Use MSDOS_X_OBJ.
2582 (lisp): Use MSDOS_SUPPORT as a variable.
2583
11842bd8
GM
2584 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2585 (GPM_MOUSE_SUPPORT): Now it's a constant.
2586 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2587 not cpp.
2588
489d31a4 2589 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2590 (ns_appresdir): Remove, unused.
e20f1f07 2591
489d31a4
GM
2592 * Makefile.in (SHELL): Move outside cpp section.
2593
cb027b32
GM
2594 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2595
5a903aa9
GM
25962010-05-13 Glenn Morris <rgm@gnu.org>
2597
3369c79f
GM
2598 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2599 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2600
d5e982a6
GM
2601 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2602 HAVE_WINDOW_SYSTEM must be too.
2603
6192e163
GM
2604 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2605 (lisp): Remove WINNT_SUPPORT.
2606
472c5d6b
GM
2607 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2608 Let configure set these variables (to empty) in this case as well.
2609
0116466b
GM
2610 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2611 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2612
5a903aa9
GM
2613 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2614 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2615 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2616 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2617 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2618 the values output by configure.
5a903aa9
GM
2619 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2620
1a0d7c06
GM
26212010-05-12 Glenn Morris <rgm@gnu.org>
2622
b5457f14
GM
2623 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2624 (LINKER_WAS_SPECIFIED): Remove.
2625
1a0d7c06
GM
2626 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2627 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2628 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2629 * s/cygwin.h (LIB_GCC):
2630 * s/freebsd.h (LIB_GCC):
2631 * s/gnu-linux.h (LIB_GCC):
2632 * s/msdos.h (LIB_GCC):
2633 * s/netbsd.h (LIB_GCC):
2634 Move to configure.
2635
3ffd4615 26362010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2637
2638 * ftfont.c: Fix incorrect parentheses of #if condition for
2639 definining M17N_FLT_USE_NEW_FEATURE.
2640
acddf8ae
GM
26412010-05-11 Glenn Morris <rgm@gnu.org>
2642
2643 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2644 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2645
ae5e04fa
EZ
26462010-05-10 Eli Zaretskii <eliz@gnu.org>
2647
2648 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2649 unibyte buffers. See
2650 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2651
7490175b
GM
26522010-05-10 Glenn Morris <rgm@gnu.org>
2653
97efb629
GM
2654 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2655 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2656 (LIBES): Use LIBS_SYSTEM as a variable.
2657 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2658 * s/aix4-2.h (LIBS_SYSTEM):
2659 * s/freebsd.h (LIBS_SYSTEM):
2660 * s/hpux10-20.h (LIBS_SYSTEM):
2661 * s/sol2-6.h (LIBS_SYSTEM):
2662 * s/unixware.h (LIBS_SYSTEM):
2663 Move to configure.
2664
7490175b
GM
2665 * s/aix4-2.h (MAIL_USE_LOCKF):
2666 * s/bsd-common.h (MAIL_USE_FLOCK):
2667 * s/darwin.h (MAIL_USE_FLOCK):
2668 * s/gnu-linux.h (MAIL_USE_FLOCK):
2669 * s/irix6-5.h (MAIL_USE_FLOCK):
2670 * s/template.h (MAIL_USE_FLOCK):
2671 Move to configure.
2672
0235128c 26732010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2674
2675 * Version 23.2 released.
2676
0235128c 26772010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2678
2679 * composite.c (autocmp_chars): Save point as marker before calling
2680 auto-composition-function (Bug#5984).
2681
2682 * lisp.h (restore_point_unwind): Add prototype.
2683
2684 * fileio.c (restore_point_unwind): Remove static attribute.
2685
0235128c 26862010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2687
2688 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2689 new feature of libotf and m17n-flt.
0235128c
SM
2690 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2691 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2692 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2693 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2694 that OUT is NULL. Use OTF_drive_gsub_with_log and
2695 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2696 OTF_drive_gpos.
2697 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2698 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2699 Setup mflt_enable_new_feature and mflt_try_otf.
2700
4721152c
J
27012010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2702
2703 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2704
2705 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2706 box and toolbar (Bug #6139).
2707 (xg_create_tool_bar): Remove comment (Bug #6139).
2708 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2709 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2710
ee0a16cf
JB
27112010-05-08 Juanma Barranquero <lekktu@gmail.com>
2712
2713 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2714 Update dependencies.
2715
96d79611
EZ
27162010-05-08 Eli Zaretskii <eliz@gnu.org>
2717
2718 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2719 R2L lines.
2720
40c17879
GM
27212010-05-08 Glenn Morris <rgm@gnu.org>
2722
7b42b29f
GM
2723 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2724
40c17879
GM
2725 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2726 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2727 (termcapobj): Replace with TERMCAP_OBJ.
2728 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2729 (LIBES): Use LIBS_TERMCAP as a variable.
2730
2731 * s/freebsd.h (osreldate.h): No longer include, since this file
2732 does not use __FreeBSD_version any more.
2733
2734 * s/aix4-2.h (TERMINFO):
2735 * s/cygwin.h (TERMINFO):
2736 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2737 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2738 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2739 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2740 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2741 * s/irix6-5.h (TERMINFO):
2742 * s/netbsd.h (LIBS_TERMCAP):
2743 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2744 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2745 * s/usg5-4.h (TERMINFO):
2746 Move to configure.
2747
94b612ad
SM
27482010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2749
2750 * eval.c (unbind_to): Don't unbind a local binding into the global
2751 binding when the local binding disappeared. Inversely, don't unbind
2752 a global binding into a newly created local binding.
2753 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2754 can specify the frame to use, when applicable. Adjust callers.
2755
15e12598 27562010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2757 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2758
2759 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2760
f724825e
EZ
27612010-05-07 Eli Zaretskii <eliz@gnu.org>
2762
5cba3209
EZ
2763 * w32fns.c: Include w32.h.
2764 (Fw32_shell_execute): Decode the error message before passing it
2765 to `error'. (Bug#6126)
2766
d16bdfc3
EZ
2767 * msdos.c (dos_set_window_size):
2768 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2769 instead of `XSYMBOL (foo)->value'.
2770
59d93e87
EZ
27712010-05-07 Eli Zaretskii <eliz@gnu.org>
2772
9fdec8bc
EZ
2773 Fix the MS-DOS build, broken by autoconfiscation.
2774
2775 * Makefile.in: Don't use Make-style comments past the "start of
2776 cpp stuff" line.
2777 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2778
2779 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2780 edited directly by msdos/sed1v2.inp).
f724825e 2781
2f86b22b
GM
27822010-05-07 Glenn Morris <rgm@gnu.org>
2783
2784 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2785 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2786 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2787 move out of cpp section.
2788 * s/freebsd.h (LD_SWITCH_SYSTEM):
2789 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2790 * s/netbsd.h (LD_SWITCH_SYSTEM):
2791 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2792
49ebbd65
DN
27932010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2794
2795 Define LIB_STANDARD and START_FILES using autoconf.
2796 * s/usg5-4.h (LIB_STANDARD):
2797 * s/netbsd.h (START_FILES):
2798 * s/irix6-5.h (LIB_STANDARD):
2799 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2800 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2801 * s/freebsd.h (START_FILES):
2802 * s/darwin.h (START_FILES):
2803 * s/cygwin.h (START_FILES):
2804 * s/aix4-2.h (LIB_STANDARD):
2805 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2806 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2807 autoconf, not cpp.
2808
d43c06d6
DN
28092010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2810
28823648
DN
2811 Remove NEED_BSDTTY and NEED_UNISTD_H.
2812 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2813 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2814 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2815 <sys/ptyio.h> and <unistd.h>.
2816
aca00430
DN
2817 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2818
d43c06d6
DN
2819 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2820 * s/gnu.h (START_FILES): Remove empty definition.
2821
3e56b11d
JD
28222010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2823
2824 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2825
e3cf0cde
GM
28262010-05-06 Glenn Morris <rgm@gnu.org>
2827
2828 * Makefile.in (CPP, LN_S): Remove unused variables.
2829
774b9a60
SM
28302010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2831
2832 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2833
4ab92842
LM
28342010-05-05 Lawrence Mitchell <wence@gmx.li>
2835
2836 * m/sparc.h: Fix typo in earlier change.
2837
178f2507
SM
28382010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2839
2840 Misc tweaks.
2841 * eval.c (Fdefvaralias): Remove unintended nested if.
2842 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2843
80f00217 28442010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2845
2846 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2847
ef03a4e6
DN
28482010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2849
58eb6cf0
DN
2850 Remove BSD_PGRPS.
2851 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2852 * s/gnu-linux.h (BSD_PGRPS): Remove.
2853 * term.c (dissociate_if_controlling_tty):
2854 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2855 (init_sys_modes, reset_sys_modes):
2856 * emacs.c (main):
2857 * callproc.c (Fcall_process, child_setup): Remove code depending
2858 on BSD_PGRPS.
2859
ef03a4e6
DN
2860 Remove POSIX_SIGNALS.
2861 * s/usg5-4.h (POSIX_SIGNALS):
2862 * s/netbsd.h (POSIX_SIGNALS):
2863 * s/msdos.h (POSIX_SIGNALS):
2864 * s/ms-w32.h (POSIX_SIGNALS):
2865 * s/hpux11.h (POSIX_SIGNALS):
2866 * s/gnu.h (POSIX_SIGNALS):
2867 * s/gnu-linux.h (POSIX_SIGNALS):
2868 * s/freebsd.h (POSIX_SIGNALS):
2869 * s/darwin.h (POSIX_SIGNALS):
2870 * s/cygwin.h (POSIX_SIGNALS):
2871 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2872 * s/unixware.h:
2873 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2874 * process.c (create_process):
2875 * syssignal.h:
2876 * sysdep.c (wait_for_termination, init_signals):
2877 * process.c (create_process):
2878 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2879 remove all code that assumes the contrary.
2880
49628785
GM
28812010-05-04 Glenn Morris <rgm@gnu.org>
2882
27a2cdfc
GM
2883 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2884 variable.
2885 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2886 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2887 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2888 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2889 LD_SWITCH_SYSTEM_tmp.
2890 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2891 New variables, set by configure.
2892
eb21eab5
GM
2893 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2894 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2895 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2896 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2897 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2898
49628785
GM
2899 * s/aix4-2.h (C_SWITCH_SYSTEM):
2900 * m/alpha.h (C_SWITCH_MACHINE):
2901 Move to configure.in.
2902 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2903 New variables, set by configure.
2904 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2905 $c_switch_machine and $c_switch_system.
2906
7dff330b
DN
29072010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2908
2909 * s/hpux10-20.h (LIB_STANDARD): New definition.
2910 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2911 on it, not used anymore.
2912
53967e09
CY
29132010-05-03 Chong Yidong <cyd@stupidchicken.com>
2914
2915 * eval.c (internal_condition_case_n): Rename from
2916 internal_condition_case_2.
2917 (internal_condition_case_2): New function.
2918
2919 * xdisp.c (safe_call): Use internal_condition_case_n.
2920
2921 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2922 (internal_delete_file, Frename_file): Callers changed.
2923
2924 * buffer.c (Fkill_buffer):
2925 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2926
2927 * lisp.h: Update prototypes.
2928
3dee6fdb
GM
29292010-05-03 Glenn Morris <rgm@gnu.org>
2930
2931 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2932 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2933 (LIBXT): Set with configure, not cpp.
2934 (LIBX): Remove.
2935 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2936
a101e0fb
DN
29372010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2938
2939 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2940 The FreeBSD is not needed, the default works, Solaris version is
2941 not needed, and the remaining case is not supported by configure.
2942
f63d0028
JD
29432010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2944
2945 * xsmfns.c (CHDIR_OPT): New define.
2946 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2947 restarting emacs.
2948
2949 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2950 shut_down_emacs.
2951
2952 * emacs.c (USAGE1): Mention --chdir.
2953 (main): Handle --chdir.
2954 (standard_args): Add --chdir.
2955 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2956 #5552).
2957
e4814a9f
DN
29582010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2959
cd03c74a
DN
2960 Remove LD_SWITCH_MACHINE.
2961 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2962 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2963
c3a398a1
DN
2964 Clean up IRIX code.
2965 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2966 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2967
87e7285c
DN
2968 Clean up AIX code.
2969 * m/ibmrs6000.inp: Remove file, unused.
2970 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2971 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2972 definition ...
2973 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2974
80f00217
JB
2975 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2976 unused.
e4814a9f 2977
59ca28de
EZ
29782010-05-01 Eli Zaretskii <eliz@gnu.org>
2979
197daef4
EZ
2980 Emulate POSIX_SIGNALS on MS-Windows.
2981
2982 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2983 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2984
2985 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2986 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2987 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2988
80f00217
JB
2989 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2990 New stubs.
197daef4 2991
af7c7572
EZ
2992 Miscellaneous fixes of bidi display.
2993
59ca28de
EZ
2994 * xdisp.c (find_row_end): New function, refactored from display_line.
2995 (display_line): Use it.
017ea819
EZ
2996 (extend_face_to_end_of_line): In almost-filled rows, extend only
2997 if the row is R2L and not continued.
166e930d 2998 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2999 Preserve overlay and string info in row->end.
166e930d
EZ
3000 (insert_left_trunc_glyphs): Support addition of left truncation
3001 glyphs to R2L rows.
b47e0dcf 3002 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3003 glyph between adjacent windows. Fix a crash when a display string
3004 is continued to the next line. Don't return zero if cursor was
3005 found by `cursor' property of a display string.
b47e0dcf
EZ
3006 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3007 test for that explicitly.
59ca28de 3008
7acac9f4
GM
30092010-05-01 Glenn Morris <rgm@gnu.org>
3010
3011 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3012 for clarity.
3013 (OTHER_OBJ): Remove.
3014 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3015 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3016
45841e65
KK
30172010-05-01 Karel Klíč <kklic@redhat.com>
3018
3019 * fileio.c (Ffile_selinux_context): Context functions may return null.
3020
afc61943
DN
30212010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3022
80f00217 3023 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3024
5a1bb006
GM
30252010-04-30 Glenn Morris <rgm@gnu.org>
3026
3027 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3028 (OTHER_OBJ): Define as a separate variable, for clarity.
3029
210af043
J
30302010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3031
3032 * xsettings.c: include limits.h and update file comment.
3033
0a7df391
GM
30342010-04-30 Glenn Morris <rgm@gnu.org>
3035
d5096f16
GM
3036 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3037 Set with configure, not cpp.
3038 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3039
7eb1ac33
GM
3040 * Makefile.in (mallocobj): Remove.
3041 (otherobj): Simplify using @OTHER_OBJ@.
3042
517d086b
GM
3043 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3044 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3045 Don't bother making nsgui.h dependency platform-specific.
3046
0a7df391
GM
3047 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3048
d6d23852
SM
30492010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3050
d2630aef
SM
3051 * process.c (read_process_output, exec_sentinel): Don't burp if the
3052 sentinel/filter kills the current buffer (bug#6060).
3053
f9dddf52 3054 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3055 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3056 Remove unused var `args'.
3057 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3058 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3059 * doc.c (store_function_docstring): Use XSETCAR.
3060
f1e3642a
GM
30612010-04-28 Glenn Morris <rgm@gnu.org>
3062
faf535f8
GM
3063 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3064 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3065
c40f9449
GM
3066 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3067
658f86ca
GM
3068 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3069 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3070
bc0b5f61
GM
3071 * Makefile.in (FONT_OBJ): New, set by configure.
3072 (FONT_DRIVERS): Use $FONT_OBJ.
3073
294c50a0
GM
3074 * Makefile.in (LIBXMU): Set with configure, not cpp.
3075 * s/aix4-2.h (LIBXMU):
3076 * s/hpux10-20.h (LIBXMU):
3077 Remove definition, now set in configure.
3078
e6ec4e99
GM
3079 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3080
f1e3642a
GM
3081 * m/amdx86-64.h [i386]: Move this test to configure.in.
3082
c6ea2936
GM
30832010-04-27 Glenn Morris <rgm@gnu.org>
3084
8fdac2c3
GM
3085 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3086 * s/unixware.h (NEED_LIBW): Remove definition.
3087
986fb647
GM
3088 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3089 (TOOLKIT_LIBW): New, set by configure.
3090 (@X_TOOLKIT_TYPE@): No longer define it.
3091
c6ea2936
GM
3092 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3093 (MOTIF_LIBW): Set with configure, not cpp.
3094 * s/aix4-2.h (LIB_MOTIF):
3095 * s/gnu-linux.h (LIB_MOTIF):
3096 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3097
aaa36002
DN
30982010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3099
3100 Reduce CPP usage.
3101 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3102 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3103 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3104 definitions and undefs. Inline definitions in the only user.
3105 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3106
b678dd8b
GM
31072010-04-27 Glenn Morris <rgm@gnu.org>
3108
76cda504
GM
3109 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3110 since the defaults (set by the system file) are fine in most cases.
3111 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3112 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3113 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3114 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3115 Remove definitions, since they are set correctly in s/gnu-linux.h.
3116 * s/freebsd.h (START_FILES, LIB_STANDARD):
3117 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3118 * s/hpux10-20.h (START_FILES):
3119 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3120 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3121
b678dd8b
GM
3122 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3123 (MOTIF_LIBW): Use $LIBXP.
3124 (otherobj): Use $WIDGET_OBJ.
3125
9452ded1
DN
31262010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3127
7e10844c
DN
3128 * Makefile.in (LIBS_MACHINE): Remove, unused.
3129
9452ded1
DN
3130 Use autoconf instead of cpp for LIB_MATH.
3131 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3132 * s/cygwin.h (LIB_MATH): Likewise.
3133 * Makefile.in (LIB_MATH): Do not define with cpp.
3134 (LIBES): Use autoconf for LIB_MATH.
3135
fcebfc6a
KH
31362010-04-26 Kenichi Handa <handa@m17n.org>
3137
3138 * composite.c (Ffind_composition_internal): Fix the return value
3139 for an automatic composition.
3140
39e2ad1b
DN
31412010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3142
3143 Remove all NO_ARG_ARRAY uses.
3144 * fns.c (concat2, concat3, nconc2):
3145 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3146 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3147 * m/xtensa.h (NO_ARG_ARRAY):
3148 * m/template.h (NO_ARG_ARRAY):
3149 * m/sparc.h (NO_ARG_ARRAY):
3150 * m/sh3.h (NO_ARG_ARRAY):
3151 * m/mips.h (NO_ARG_ARRAY):
3152 * m/macppc.h (NO_ARG_ARRAY):
3153 * m/iris4d.h (NO_ARG_ARRAY):
3154 * m/intel386.h (NO_ARG_ARRAY):
3155 * m/ibms390x.h (NO_ARG_ARRAY):
3156 * m/ibms390.h (NO_ARG_ARRAY):
3157 * m/ibmrs6000.h (NO_ARG_ARRAY):
3158 * m/ia64.h (NO_ARG_ARRAY):
3159 * m/hp800.h (NO_ARG_ARRAY):
3160 * m/arm.h (NO_ARG_ARRAY):
3161 * m/amdx86-64.h (NO_ARG_ARRAY):
3162 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3163
adf4f59c
EZ
31642010-04-25 Eli Zaretskii <eliz@gnu.org>
3165
6bdf5d65
EZ
3166 * xdisp.c (display_line): Don't assume 2nd call to
3167 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3168 (iterate_out_of_display_property): New function, body from pop_it.
3169 (pop_it): Use it.
adf4f59c 3170
dfbbda83
GM
31712010-04-24 Glenn Morris <rgm@gnu.org>
3172
3173 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3174 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3175 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3176 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3177
2d4018aa
EZ
31782010-04-24 Eli Zaretskii <eliz@gnu.org>
3179
a49884a6
EZ
3180 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3181 use `get_next_display_element' and `set_iterator_to_next' to
3182 advance to the next character, when looking for the character that
3183 begins the next row.
3184
76db6fcc 3185 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3186 definition of "struct Lisp_Symbol".
3187
70eab5c1
GM
31882010-04-24 Glenn Morris <rgm@gnu.org>
3189
3190 * Makefile.in (CRT_DIR): New variable, set by configure.
3191 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3192 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3193
1ad4cc3d
DN
31942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3195
e769f484
DN
3196 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3197
4196ff33
DN
3198 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3199
879b0ee4
DN
3200 Remove redundant flags.
3201 * s/freebsd.h (C_SWITCH_SYSTEM):
3202 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3203 * s/netbsd.h (C_SWITCH_SYSTEM):
3204 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3205 of these.
3206
03cbbcb8
DN
3207 Simplify m/intel386.h.
3208 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3209 user: ecrt0.c.
3210 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3211 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3212 the only user: s/unixware.h.
3213 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3214 from m/intel386.h.
3215 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3216 moved here from m/intel386.h.
3217
1ad4cc3d
DN
3218 * m/mips.h: Remove #if 0 code.
3219
8785b888
EZ
32202010-04-23 Eli Zaretskii <eliz@gnu.org>
3221
728588cc
EZ
3222 Fix display of composed characters from L2R scripts in bidi buffers.
3223 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3224 After advancing IT past the composition, resync the bidi iterator
3225 with IT's position. (Bug#5977)
3226
a63f80b4
DN
32272010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3228
3229 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3230 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3231
ff5dec5c
SM
32322010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3233
3234 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3235
8785b888
EZ
32362010-04-23 Eli Zaretskii <eliz@gnu.org>
3237
58ccf243 3238 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3239 * xdisp.c (pop_it): When the stack is popped after displaying
3240 from a string, bidi-iterate to exit from the text portion covered
3241 by the `display' property or overlay. (Bug#5988, bug#5920)
3242
feeb1604
DN
32432010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3244
8e324eb6
DN
3245 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3246 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3247
809fcaba
DN
3248 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3249 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3250
ed710380
DN
3251 Simplify STARTFILES definition.
3252 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3253 relying on Makefile.in to define it.
3254 * s/cygwin.h (START_FILES): Likewise.
3255 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3256
feeb1604
DN
3257 Clean up Solaris code.
3258 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3259 (LIB_MOTIF): Remove, configure takes care of this.
3260 (NOT_USING_MOTIF): Remove, unused.
3261 * xrdb.c: Remove #if 0-ed #include.
3262 (SYSV): Remove conditional for old SysV.
3263 * sysdep.c (closedir): Remove conditional code for Solaris,
3264 Solaris has closedir.
3265
a0d0b563
JD
32662010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3267
3268 * xsettings.c (read_and_apply_settings): Check if current_font is
3269 NULL before strcmp (Bug#6001).
3270
56bae7c7
DN
32712010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3272
3273 Clean up HP-UX files.
3274 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3275 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3276 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3277 * s/hpux10-20.h: ... to the only user, here.
3278
372b7a95
EZ
32792010-04-21 Eli Zaretskii <eliz@gnu.org>
3280
3281 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3282 use buffer-local values of paragraph-start and paragraph-separate.
3283 <paragraph_start_re, paragraph_separate_re>: Rename from
3284 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3285 (Bug#5992)
3286
f904c0f9
JD
32872010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3288
3289 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3290 current_tool_bar_style are new.
3291 (store_config_changed_event): Rename from store_font_changed_event.
3292 (XSETTINGS_TOOL_BAR_STYLE): New define.
3293 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3294 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3295 HAVE_XFT.
3296 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3297 store_config_changed_event.
f904c0f9
JD
3298 (parse_settings): Rename from parse_xft_settings. Read
3299 non-xft xsettings outside #ifdef HAVE_XFT.
3300 (read_settings): Renamed from read_xft_settings.
3301 (apply_xft_settings): Take current settings as parameter. Do not
3302 call read_(xft)_settings.
3303 (read_and_apply_settings): New function.
3304 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3305 read_and_apply_settings if there are settings to be read.
3306 (init_xsettings): Renamed from init_xfd_settings.
3307 Call read_and_apply_settings unconditionally.
3308 (xsettings_initialize): Call init_xsettings.
3309 (Ftool_bar_get_system_style): New function.
3310 (syms_of_xsettings): Define Qmonospace_font_name and
3311 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3312 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3313 dynamic-setting.
31a01b90 3314 Move misplaced HAVE_GCONF
f904c0f9
JD
3315
3316 * xsettings.h (Ftool_bar_get_system_style): Declare.
3317
3318 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3319 Qtext, Qboth, Qboth_horiz are new.
3320 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3321 Vtool_bar_style, tool_bar_max_label_size.
3322
3323 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3324
3325 * keyboard.c: QClabel is new.
3326 (parse_tool_bar_item): Take out QClabel from tool bar items.
3327 Try to construct a label if ther is no QClabel.
3328 (syms_of_keyboard): Intern :label as QClabel.
3329
3330 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3331 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3332 New.
3333
3334 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3335 dynamic-setting.el.
3336
3337 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3338 (xg_make_tool_item, xg_show_toolbar_item): New function.
3339 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3340 Call xg_make_tool_item to make a tool bar item.
3341 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3342
3343 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3344 into account for toolbars.
3345
c632dfda
JD
33462010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3347
3348 * data.c (make_blv): Declarations before code (Bug#5993).
3349
10efe302
GM
33502010-04-21 Glenn Morris <rgm@gnu.org>
3351
3352 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3353 Define using autoconf, not cpp.
3354 (LIBXSM): New variable, set by autoconf.
3355 (LIBXT): Use $LIBXSM.
3356
4285ac5a
DN
33572010-04-21 Dan Nicolaescu <local_user@dannlt>
3358
3ec759e7
DN
3359 Remove NOMULTIPLEJOBS, unused.
3360 * s/template.h (NOMULTIPLEJOBS):
3361 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3362
4285ac5a
DN
3363 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3364 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3365 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3366 detects -znocombreloc and passes it to the linker
3367 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3368
2807228d
GM
33692010-04-21 Glenn Morris <rgm@gnu.org>
3370
3371 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3372
574c05e2
KK
33732010-04-21 Karel Klíč <kklic@redhat.com>
3374
3375 * Makefile.in (LIBSELINUX_LIBS): New.
3376 (LIBES): Add $LIBSELINUX_LIBS.
3377 * eval.c, lisp.h (call7): New function.
3378 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3379 (Ffile_selinux_context, Fset_file_selinux_context):
3380 New functions.
3381 (Fcopy_file): New parameter preserve-selinux-context.
3382 (Frename_file): Preserve selinux context when renaming by copy-file.
3383
91eac4bb 33842010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3385 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3386
50426a04
JB
3387 Don't depend on cm.c or termcap.c on Windows, use stubs.
3388 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3389 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3390 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3391 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3392 (sys_tputs, sys_tgetstr): New stubs.
3393 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3394 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3395
938efb77
JB
33962010-04-20 Juanma Barranquero <lekktu@gmail.com>
3397
3398 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3399
b4bf28b7
SM
34002010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3401
8b1e1112
SM
3402 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3403 Just signal a warning rather than an error when inside a let.
3404 (Fmake_variable_frame_local): Add the same test.
3405
933ac235
SM
3406 * font.c (syms_of_font): Make the style table vars read-only.
3407
b4bf28b7
SM
3408 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3409 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3410
3411 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3412
93d68d0c
EZ
34132010-04-20 Eli Zaretskii <eliz@gnu.org>
3414
3415 Fix R2L paragraph display on TTY.
3416
3417 * xdisp.c (unproduce_glyphs): New function.
3418 (display_line): Use it when produced glyphs are discarded from R2L
3419 glyph rows.
3420 (append_composite_glyph): In R2L rows, prepend the glyph rather
3421 than appending it.
3422
3423 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3424 rather than append it. Set up the resolved_level and bidi_type
3425 attributes of the appended glyph.
283ccc18
EZ
3426 (produce_special_glyphs): Mirror the backslash continuation
3427 character in R2L lines.
93d68d0c 3428
283ccc18 3429 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3430
283ccc18
EZ
3431 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3432 append_stretch_glyph.
3433 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3434 off-by-one error in computing x at end of text in the row.
3435 (append_stretch_glyph): In reversed row, prepend the glyph rather
3436 than append it. Set resolved_level and bidi_type of the glyph.
3437 (extend_face_to_end_of_line): If the row is reversed, prepend a
3438 stretch glyph whose width is such that the rightmost glyph will be
3439 drawn at the right margin of the window. Fix off-by-one error on
3440 TTY frames in testing whether a line needs face extension. Fix
3441 face extension at ZV. If this is the last glyph row, use
3442 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3443 region face.
3444 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3445 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3446 row->continuation_lines_width.
283ccc18
EZ
3447 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3448 are at ZV. Fixes a crash when reseated to ZV by
3449 try_window_reusing_current_matrix.
45903529
EZ
3450 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3451 which happens with R2L glyph rows. Fixes a crash when inserting a
3452 character at end of an R2L line.
283ccc18
EZ
3453 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3454 treat them as having zero-width characters. Improve comments.
3455 Don't reverse pos_before and pos_after for reversed glyph rows.
3456 Set cursor.x to negative value when the cursor might be on the
3457 left fringe.
3458 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3459 left fringe, not the right one.
f951a506
EZ
3460 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3461 (erase_phys_cursor): For reversed cursor_row, support cursor on
3462 the left fringe.
3463
283ccc18
EZ
3464 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3465 of continuation indicators on the fringes.
3466 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3467 left fringe.
3468
f951a506
EZ
3469 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3470 draw cursor on the left fringe.
3471
3472 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3473 cursor on the left fringe.
3474
f951a506
EZ
3475 * dispnew.c (update_text_area): Handle reversed desired rows when
3476 the cursor is on the left fringe.
3477 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3478 below, not by 0, for when the cursor is on the left fringe.
3479
3bb49aaf
JD
34802010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3481
3482 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3483 widget is a scrollbar.
3484
c0be27fd
KH
34852010-04-20 Kenichi Handa <handa@m17n.org>
3486
3487 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3488 only when the arg CHARSET_LIST is nil.
3489
ce5b453a
SM
34902010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3491
3492 Make variable forwarding explicit rather the using special values.
3493 Basically, this makes the structure of buffer-local values and object
3494 forwarding explicit in the type of Lisp_Symbols rather than use
3495 special Lisp_Objects for that. This tends to lead to slightly more
3496 verbose code, but is more C-like, simpler, and makes it easier to make
3497 sure we handled all cases, among other things by letting the compiler
3498 help us check it.
3499 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3500 Removing forwarding objects.
3501 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3502 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3503 explicit rather than hiding them inside Lisp_Object "values".
3504 (XFWDTYPE): New macro.
3505 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3506 (XBUFFER_LOCAL_VALUE): Remove.
3507 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3508 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3509 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3510 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3511 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3512 Remove the Lisp_Misc_* header.
3513 (struct Lisp_Buffer_Local_Value): Redefine.
3514 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3515 (struct Lisp_Misc_Any): Add filler to get the right size.
3516 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3517 Lisp_Intfwd.
3518 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3519 (DEFVAR_KBOARD): Allocate a forwarding object.
3520 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3521 (let_shadows_global_binding_p): New function.
3522 (union Lisp_Val_Fwd): New type.
3523 (make_blv): New function.
3524 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3525 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3526 (swap_in_symval_forwarding, find_symbol_value, Fset)
3527 (let_shadows_buffer_binding_p, set_internal, default_value)
3528 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3529 (Fkill_local_variable, Fmake_variable_frame_local)
3530 (Flocal_variable_p, Flocal_variable_if_set_p)
3531 (Fvariable_binding_locus):
3532 * xdisp.c (select_frame_for_redisplay):
3533 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3534 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3535 * frame.c (store_frame_param):
3536 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3537 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3538 value structure.
3539 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3540 (clone_per_buffer_values): Only adjust markers into the current buffer.
3541 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3542 (Fbuffer_local_value, set_buffer_internal_1)
3543 (swap_out_buffer_local_variables):
3544 Adapt to the new symbol value structure.
3545 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3546 (defvar_per_buffer): Take a new arg for the fwd object.
3547 (buffer_lisp_local_variables): Return a proper alist (different fix
3548 for bug#4138).
3549 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3550 (Fgarbage_collect): Don't handle buffer_defaults specially.
3551 (mark_object): Handle new symbol value structure rather than the old
3552 special Lisp_Misc_* objects.
3553 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3554 * term.c (set_tty_color_mode):
3555 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3556 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3557 a buffer_local_flags.
3558 * print.c (print_object): Get rid of impossible forwarding objects.
3559
fd3998ff
EZ
35602010-04-19 Eli Zaretskii <eliz@gnu.org>
3561
3562 * bidi.c (bidi_get_type, bidi_get_category)
3563 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3564 (bidi_type_of_next_char, bidi_level_of_next_char):
3565 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3566
e42cd1a7
JB
35672010-04-19 Juanma Barranquero <lekktu@gmail.com>
3568
3569 * dired.c (Ffile_attributes): Fix typo in docstring.
3570
6e104790 35712010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3572
3573 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3574 NSInteger (Bug#5811).
3575
6e104790 35762010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3577
3578 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3579 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3580
6e104790 35812010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3582
3583 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3584
6e104790
SM
35852010-04-19 Chong Yidong <cyd@stupidchicken.com>
3586
3587 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3588 terminal frames (Bug#5837).
3589
37dcfea0
EZ
35902010-04-19 Eli Zaretskii <eliz@gnu.org>
3591
d1da276f
EZ
3592 * .gdbinit (xsubchartable): New command.
3593
37dcfea0
EZ
35942010-04-19 Eli Zaretskii <eliz@gnu.org>
3595
3596 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3597 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3598 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3599 and
3600 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3601
e9515805
SM
36022010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3603
3604 * alloc.c (Fpurecopy): Hash-cons if requested.
3605 (syms_of_alloc): Update purify-flag docstring.
3606
22aa44a8
JD
36072010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3608
3609 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3610 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3611
ebb5722e
EZ
36122010-04-17 Eli Zaretskii <eliz@gnu.org>
3613
3614 Fix a crash when an NSM character is inserted at BEGV.
3615
3616 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3617 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3618 NEUTRAL_B or UNKNOWN_BT.
3619
0f4442ef
EZ
36202010-04-16 Eli Zaretskii <eliz@gnu.org>
3621
3622 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3623 other rows with cursor unless they are different from this row and
3624 this row is part of a continued line. (Bug#5943)
3625
7d4e45f8
DN
36262010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3627
3628 * s/freebsd.h: Restore osreldate.h include.
3629 Suggested by Naohiro Aota.
3630
5ba5ec85
J
36312010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3632
3633 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3634
20af301d
CY
36352010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3636
3637 * s/cygwin.h: Avoid linking against static libgcc.
3638
a4b000fb
JL
36392010-04-15 Juri Linkov <juri@jurta.org>
3640
3641 * window.c: Add Qscroll_command.
3642 Remove Vscroll_preserve_screen_position_commands.
3643 (window_scroll_pixel_based, window_scroll_line_based): Check the
3644 `scroll-command' property on the last command instead of searching
3645 the last command in Vscroll_preserve_screen_position_commands.
3646 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3647 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3648 (scroll-preserve-screen-position): Doc fix.
3649 (Vscroll_preserve_screen_position_commands): Remove variable.
3650
bc319ba4
DN
36512010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3652
6bb24457
DN
3653 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3654
19d4c244
DN
36552010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3656
3657 Reduce cpp use in Makefile.in.
3658 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3659 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3660 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3661 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3662 (CRT0_COMPILE): Remove, inline it in the only user.
3663
32129746
JL
36642010-04-14 Juri Linkov <juri@jurta.org>
3665
3666 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3667 `scroll-up-command' and `M-v' from `scroll-down' to
3668 `scroll-down-command'.
3669
9013a7f8
JL
36702010-04-14 Juri Linkov <juri@jurta.org>
3671
3672 * window.c (Vscroll_preserve_screen_position_commands): New variable
3673 with the default value as the list of Qscroll_down and Qscroll_up.
3674 (window_scroll_pixel_based, window_scroll_line_based): Search the
3675 last command in the list Vscroll_preserve_screen_position_commands
3676 instead of comparing with Qscroll_up and Qscroll_down.
3677
4bef8d26
JD
36782010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3679
92848133
JD
3680 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3681 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3682 does that.
3683
4bef8d26
JD
3684 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3685 to zero.
3686
58b963f7
SM
36872010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3688
84164a0d
SM
3689 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3690
2b0a91e7
SM
3691 Try to solve the problem of spurious EOF chars in long lines of text
3692 sent to interactive subprocesses.
3693 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3694 (system_process_attributes): Remove unused var `ttotal'.
3695 * process.c (send_process): Don't bother breaking long line with EOF
3696 chars when talking to ttys any more.
3697 (wait_reading_process_output): Output a warning when called in such
3698 a way that it could block without being interruptible.
3699
58b963f7
SM
3700 Try to detect file modification within the same second.
3701 * buffer.h (struct buffer): New field modtime_size.
3702 * buffer.c (reset_buffer): Initialize it.
3703 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3704 (Fverify_visited_file_modtime): Check it.
3705 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3706 (Fset_visited_file_modtime): Set (or clear) it.
3707
01f5787b
SM
37082010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * process.c (status_notify): Remove unused var `ro'.
3711
83725342
JD
37122010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3713
3714 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3715 more than one visual (Bug#5938).
3716
b9465836
DN
37172010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3718
50426a04
JB
3719 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3720 Undefine.
b9465836 3721
8d9c8ece
DN
37222010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3723
b1f52161
DN
3724 Remove C_SWITCH_SYSTEM_TEMACS.
3725 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3726 (malloc, realloc, free): Use emacs, not temacs for conditional
3727 definition.
3728
3729 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3730 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3731
8d9c8ece
DN
3732 Use autoconf, not cpp for some variables.
3733 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3734 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3735 (ALL_CFLAGS): Use them as make variables.
3736 (really-lwlib, really-oldXMenu): Do not pass them.
3737
1ecb2d3f
JD
37382010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3739
3740 * xmenu.c (apply_systemfont_to_dialog): New.
3741 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3742
3a4fa2f2
SM
37432010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3744
97e53006
SM
3745 * process.c (exec_sentinel): Preserve current-buffer.
3746
3a4fa2f2
SM
3747 * process.c (read_process_output): Move the save-current-buffer to
3748 apply to both the filter and the non-filter branches.
3749
88df7221
DN
37502010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3751
3752 * s/msdos.h (UNEXEC): New definition.
3753
5634ff85
YM
37542010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3755
6eff5c3d
YM
3756 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3757 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3758
3759 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3760 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3761 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3762 TRY_WINDOW_CHECK_MARGINS.
3763
3764 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3765 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3766 width only when it is for padding.
5634ff85 3767
b13aef54
J
37682010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3769
3770 * xfns.c (Fx_show_tip): Call try_window in a loop until
3771 fonts_changed_p is zero (Bug#2423).
3772
21d28484
EZ
37732010-04-08 Eli Zaretskii <eliz@gnu.org>
3774
3775 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3776 the end of TEXT_AREA. (Bug#5856)
3777
0269ef77
JD
37782010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3779
3780 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3781 HAVE_GCONF.
3782
5930fe97
EZ
37832010-04-08 Eli Zaretskii <eliz@gnu.org>
3784
3785 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3786 prev.orig_type, for resolving type of NSM. (Bug#5858)
3787
99852628
JD
37882010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3789
3790 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3791 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3792 in current_font.
3793 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3794 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3795 New functions.
3796 (syms_of_xsettings): Initialize current_font.
3797 defsubr Sfont_get_system_normal_font.
99852628
JD
3798
3799 * xsettings.h (Ffont_get_system_normal_font,
3800 xsettings_get_system_normal_font): Declare.
3801
3802 * xfns.c (extern xlwmenu_default_font): Remove.
3803 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3804 to xlwmenu.c.
3805
3806 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3807 menu items in UTF-8.
3808
3809 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3810 (apply_systemfont_to_menu): New function.
3811 (set_frame_menubar, create_and_show_popup_menu): Call
3812 apply_systemfont_to_menu.
3813
7fc874c4
J
38142010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3815
3816 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3817 FRAME_LINE_TO_PIXEL_Y.
3818
3819 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3820 pixelwidth/height.
3821
863bf481
DN
38222010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3823
5e5a3b92
DN
3824 Simplify code for HP machines.
3825 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3826 for GNU_LINUX, not needed.
3827 (UNEXEC, NEED_BSDTTY): Move definitions...
3828 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3829
863bf481
DN
3830 * m/iris4d.h (UNEXEC): Move definition ...
3831 * s/irix6-5.h (UNEXEC): ... here.
3832
3e6bec3b
JD
38332010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3834
3835 * xfns.c (set_machine_and_pid_properties): New function.
3836 (Fx_create_frame): Call set_machine_and_pid_properties.
3837
2912322b
SM
38382010-04-03 Eli Zaretskii <eliz@gnu.org>
3839
1502b819
EZ
3840 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3841 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3842 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3843
2912322b
SM
3844 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3845 in this function. (Bug#5703)
3846
38472010-04-03 Chong Yidong <cyd@stupidchicken.com>
3848
3849 * nsterm.h: Fix last change.
3850
c435b432
DN
38512010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3852
a568f507
DN
3853 * m/intel386.h (NO_REMAP): Move definition ...
3854 * s/msdos.h (NO_REMAP): ... here.
3855
4cd9f6c2
DN
3856 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3857
c435b432
DN
3858 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3859 used on those platforms.
3860
42a2c622
DN
38612010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3862
3863 Remove extern errno declarations.
3864 * xterm.c:
3865 * xrdb.c:
3866 * w32term.c:
3867 * unexec.c:
3868 * unexaix.c:
3869 * sysdep.c:
3870 * process.c:
3871 * lread.c:
3872 * keyboard.c:
3873 * floatfns.c:
3874 * filelock.c:
3875 * fileio.c:
3876 * emacs.c (main):
3877 * ecrt0.c:
3878 * dispnew.c:
3879 * callproc.c:
3880 * buffer.c: Remove errno extern declarations.
3881 * s/netbsd.h (NEED_ERRNO): Remove.
3882
8224f93d
DN
38832010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3884
3885 Remove all uses of LIBX11_SYSTEM.
3886 * Makefile.in (LIBX11_SYSTEM): Remove.
3887 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3888 instead.
3889
814062c7
EZ
38902010-04-01 Eli Zaretskii <eliz@gnu.org>
3891
ed68db4d
EZ
3892 Remove support for DJGPP v1.x (bug#5813).
3893
3894 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3895 * s/msdos.h:
3896 * unexec.c (make_hdr, copy_text_and_data):
3897 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3898 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3899 (IT_set_terminal_modes, __write, _rename, gethostname)
3900 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3901 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3902 the value of __DJGPP__.
ed68db4d
EZ
3903 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3904 compatibility code.
8224f93d
DN
3905 * lread.c:
3906 * gmalloc.c (memalign):
3907 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3908 * emacs.c (main):
3909 * dosfns.c (init_dosfns):
ed68db4d
EZ
3910 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3911
52f4d8d5
EZ
39122010-04-01 Eli Zaretskii <eliz@gnu.org>
3913
814062c7
EZ
3914 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3915 string with `cursor' property comes from an `after-string'
3916 overlay. (Bug#5816)
3917
0dc2e11d
GM
39182010-04-01 Glenn Morris <rgm@gnu.org>
3919
3920 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3921 Define as Makefile variables.
3922 (LIBX): Use above variables rather than directly using autoconf.
3923
1d29df59
DN
39242010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3925
3926 Clean up BSD_SYSTEM use.
3927 * xterm.c:
3928 * process.c:
3929 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3930 for including <sys/ioctl.h>.
3931 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3932 code is only used for MSDOS.
3933
1546c559
JL
39342010-03-31 Juri Linkov <juri@jurta.org>
3935
3936 * image.c: Add `Qextension_data'.
3937 (syms_of_image): Initialize and staticpro `Qextension_data'.
3938 (Fimage_metadata): Rename from `Fimage_extension_data'.
3939 (gif_load): Put GIF extension data to the property
3940 `Qextension_data'.
3941
6521c534
CY
39422010-03-31 Chong Yidong <cyd@stupidchicken.com>
3943
3944 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3945 * nsterm.h: Fix prototype.
3946
52c30783
EZ
39472010-03-31 Eli Zaretskii <eliz@gnu.org>
3948
3949 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3950 trailing whitespace in right-to-left rows.
3951
855a0da7
SM
39522010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3953
3954 Get rid of the direct_output optimizations.
3955 * keyboard.c (nonundocount): Remove extern declaration.
3956 (command_loop_1): Remove brittle optimisation for cheap and
3957 common operations.
3958 * xdisp.c (redisplay_internal): Don't bother checking
3959 redisplay_performed_directly_p any more.
3960 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3961 any more.
3962 * dispnew.c (redisplay_performed_directly_p)
3963 (direct_output_for_insert, direct_output_forward_char):
3964 * dispextern.h (redisplay_performed_directly_p)
3965 (direct_output_for_insert, direct_output_forward_char): Remove.
3966 * cmds.c (nonundocount): Make it static.
3967
85738751 39682010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3969
3970 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3971
85738751 39722010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3973
3974 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3975 invisible (Bug#5766).
3976
85738751 39772010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3978
855a0da7
SM
3979 * xdisp.c (x_consider_frame_title, update_window_cursor):
3980 Remove HAVE_NS conditionals.
194d44e7 3981 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3982
3983 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3984 filename for the title.
3985 (ns_set_doc_edited): Do nothing if the selected window is a
3986 minibuffer window.
3987
3988 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3989 ns_set_doc_edited.
3990
3991 * nsterm.m: Remove unneeded prototype.
3992
85738751 39932010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3994
3995 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3996 in the DOC file. (Bug#5336)
3997
85738751 39982010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3999
4000 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4001
75d1428c
SM
40022010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4003
4004 * window.c (keys_of_window): Remove redundant/overridden bindings.
4005
82043cfb
EZ
40062010-03-30 Eli Zaretskii <eliz@gnu.org>
4007
4008 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4009 Restore original behavior when the iterator is not bidi_p.
4010
b5dd0ae7
DN
40112010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4012
4013 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4014
bd924a5d
EZ
40152010-03-30 Eli Zaretskii <eliz@gnu.org>
4016
4017 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4018 are outside the range of cached character positions.
4019
3580374b
JB
40202010-03-30 Juanma Barranquero <lekktu@gmail.com>
4021
4022 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4023
a7b02820
EZ
40242010-03-30 Eli Zaretskii <eliz@gnu.org>
4025
4026 Initial support for bidirectional editing.
4027
4028 * Makefile.in (obj): Include bidi.o.
4029 (bidi.o): New target.
4030
4031 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4032 ($(BLD)/bidi.$(O)): New target.
4033
4034 * bidi.c: New file.
4035
4036 * buffer.h (struct buffer): New members bidi_display_reordering
4037 and bidi_paragraph_direction.
4038
4039 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4040 and bidi_paragraph_direction.
4041 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4042 and bidi-paragraph-direction.
4043 (Fbuffer_swap_text): Swap the values of
4044 bidi_display_reordering and bidi_paragraph_direction.
4045
4046 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4047 (bidi_type_t, bidi_dir_t): New types.
4048 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4049 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4050 prev_stop, base_level_stop, and eol_pos.
4051 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4052 (IT_STACK_SIZE): Enlarge to 5.
4053 (struct glyph_row): New member reversed_p.
4054 <string_buffer_position>: Update prototype.
4055 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4056 glyph_row if bidi_it.paragraph_dir == R2L.
4057 (struct glyph): New members resolved_level and bidi_type.
4058
4059 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4060 processing or buffer's direction is right-to-left.
4061 (prepare_desired_row): Preserve the reversed_p flag.
4062 (row_equal_p): Compare the reversed_p attributes as well.
4063
4064 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4065 bidi_init_it and set it->paragraph_embedding from the current
4066 buffer's value of bidi_paragraph_direction.
4067 (reseat_1): Initialize bidi_it.first_elt.
4068 (set_iterator_to_next, next_element_from_buffer): Use the value of
4069 paragraph_embedding to determine the paragraph direction.
4070 (set_iterator_to_next): Under bidi reordering, call
4071 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4072 new_paragraph flag is set in the bidi iterator.
4073 (next_element_from_buffer): If bidi_it.first_elt is set,
4074 initialize paragraph direction and find the first character to
4075 display in the visual order. If reseated to a middle of a line,
4076 prime the bidi iterator starting at the line's beginning. Handle
4077 the situation where we overstepped stop_charpos due to
4078 non-linearity of the bidi iteration. Likewise for when we back up
4079 beyond the previous stop_charpos. When moving across stop_charpos,
4080 record it in prev_stop.
4081 (display_line): Set row->end and it->start for the next row to the
4082 next character in logical order. Always extend reversed_p rows to
4083 the end of line, even if they end at ZV. Copy the reversed_p flag
4084 to the next glyph row. Keep calling set_cursor_from_row for
4085 bidi-reordered rows even if we already have a possible candidate
4086 for cursor position. Set row_end after all the row's glyphs have
4087 been produced, by looping over the glyphs. Record the position
4088 after EOL in it->eol_pos, and use it to set end_pos of the last
4089 row produced for a continued line.
4090 <Qright_to_left, Qleft_to_right>: New variables.
4091 (syms_of_xdisp): Initialize and staticpro them.
4092 (string_buffer_position_lim): New function.
4093 (string_buffer_position): Most of code moved to
4094 string_buffer_position_lim. Last argument and return value are
4095 now EMACS_INT; all callers changed.
4096 (set_cursor_from_row): Rewritten to support bidirectional text and
4097 reversed glyph rows.
4098 (text_outside_line_unchanged_p, try_window_id): Disable
4099 optimizations if we are reordering bidirectional text and the
4100 paragraph direction can be affected by the change.
4101 (append_glyph, append_composite_glyph)
4102 (produce_image_glyph, append_stretch_glyph): Set the
4103 resolved_level and bidi_type members of each glyph.
4104 (append_glyph): If the glyph row is reversed, prepend the glyph
4105 rather than appending it.
4106 (handle_stop_backwards): New function.
4107 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4108 (reseat): call handle_stop_backwards to recompute prev_stop and
4109 base_level_stop for the new position.
4110 (handle_invisible_prop): Under bidi iteration, skip invisible text
4111 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4112 paragraph direction. Update IT->prev_stop after skipping
4113 invisible text.
4114 (move_it_in_display_line_to): New variables prev_method
4115 and prev_pos. Compare for strict equality in
4116 BUFFER_POS_REACHED_P.
4117 (try_cursor_movement): Examine all the candidate rows that occlude
4118 point, to return the best match. If rows are bidi-reordered
4119 and point moved backwards, back up to the row that is not a
4120 continuation line, and start looking for a suitable row from
4121 there.
4122
4123 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4124 rather than appending, if the glyph_row's reversed_p flag is set.
4125 Set the resolved_level and bidi_type members of each glyph.
4126
4127 * .gdbinit (pbiditype): New command.
4128 (pgx): Use it to display bidi level and type of the glyph.
4129 (pitx): Display some bidi information about the iterator.
4130 (prowlims, pmtxrows): New commands.
4131
32a8894e
DN
41322010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4133
4134 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4135 * s/usg5-4.h (LIBS_DEBUG):
4136 * s/irix6-5.h (C_DEBUG_SWITCH):
4137 * s/gnu-linux.h (LIBS_DEBUG):
4138 * s/darwin.h (LIBS_DEBUG):
4139 * s/bsd-common.h (LIBS_DEBUG):
4140 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4141 * m/iris4d.h (LIBS_DEBUG):
4142 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4143
4144 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4145 (LIBS_DEBUG): Remove definition.
4146
649dbf36
CY
41472010-03-27 Chong Yidong <cyd@stupidchicken.com>
4148
4149 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4150 Windows.
4151
cad4261f
YM
41522010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4153
4154 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4155 `connect' (Bug#5723).
4156
cd591dbc
HE
41572010-03-25 Helmut Eller <eller.helmut@gmail.com>
4158
4159 * process.c (Fmake_network_process): Call `select' for interrupted
4160 `connect' rather than creating new socket (Bug#5173).
4161
e867cb5d 41622010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4163
4164 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4165
4166 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4167
4168 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4169
e867cb5d 41702010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4171
4172 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4173 XLoadQueryFont.
4174
e867cb5d 41752010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4176
4177 * coding.c (decode_coding_ccl): Fix previous change for the
4178 multibyte case.
fb608df3
KH
4179 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4180 case that the output buffer is fullfilled.
4181 (encode_coding): Setup ccl program here.
fbdc1721 4182
5845f0ed
DN
41832010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4184
814fb708
DN
4185 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4186
5845f0ed
DN
4187 Simplify LIBS_MACHINE definitions.
4188 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4189 * m/iris4d.h (LIBS_MACHINE): Likewise.
4190 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4191 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4192 * s/netbsd.h: Remove commented out code.
5845f0ed 4193
b7064064
DN
41942010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4195
df7734b2
DN
4196 Remove dead code dealing with POSIX_SIGNALS.
4197 * atimer.c (set_alarm): Remove dead code, all USG systems define
4198 POSIX_SIGNALS.
4199 * data.c (arith_error): Likewise.
4200 * keyboard.c (input_available_signal, handle_user_signal)
4201 (interrupt_signal): Likewise.
4202 * process.c (sigchld_handler): Likewise.
4203 (create_process): Remove if 0 code. Remove HPUX conditional when
4204 !defined (POSIX_SIGNALS), it cannot be true.
4205 * syssignal.h: Remove USG5_4 and USG conditionals when
4206 !POSIX_SIGNALS, they cannot be true.
4207
b7064064
DN
4208 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4209 NO_SOCK_SIGIO, not used anymore.
4210
55da5ee3
DN
42112010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4212
0be96e3a
DN
4213 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4214 support vax on BSDs.
4215
55da5ee3
DN
4216 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4217 * s/aix4-2.h (ORDINARY_LINK): ... here.
4218
c0282183
AS
42192010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4220
82c3d67a
AS
4221 * Makefile.in (abs_builddir): Define.
4222 (bootstrap_exe): Use it.
4223 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4224
3613edce
SM
42252010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4226
4227 * Makefile.in (bootstrap_exe): Use an absolute name.
4228
7f110ddc
DN
42292010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4230
22e87574
DN
4231 Remove support for old GNU/Linux using libc version 5.
4232 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4233 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4234
05a670e6
DN
4235 Consolidate redundant definitions in s/bsd-common.h.
4236 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4237 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4238 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4239 doing it in all files that include this one.
4240 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4241 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4242 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4243 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4244 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4245 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4246 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4247 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4248 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4249
2968f561
DN
4250 Consolidate redundant definitions.
4251 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4252 it's undefined in all files that include this one.
4253 (POSIX_SIGNALS): Define here instead of doing it in all files that
4254 include this one.
4255 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4256 (POSIX_SIGNALS): Do not define.
4257 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4258 (POSIX_SIGNALS): Do not define.
4259 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4260 (POSIX_SIGNALS): Do not define.
4261
15d25dc0
DN
4262 Remove support for old UNIX System V systems.
4263 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4264 * s/usg-5-4-2.h: Remove.
4265
07e339e4
DN
4266 Remove support for Solaris on PPC and for old versions.
4267 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4268 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4269 that cancel each other.
4270 * s/sol2-3.h:
4271 * s/sol2-4.h:
4272 * s/sol2-5.h: Remove.
4273 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4274 (NO_REMAP): Remove, unused.
4275 (UNEXEC): Move definition ...
4276 * s/aix4-2.h (UNEXEC): ... here.
4277
7f110ddc
DN
4278 * s/openbsd.h: Remove support for non-ELF and for systems that do
4279 not support shared libraries.
4280 * s/netbsd.h:
4281 * s/freebsd.h: Likewise.
4282
605f35cd
DN
42832010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4284
4285 Remove non-working support for lynxos 3.0.
4286 * s/lynxos.h: Remove file.
4287
4288 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4289 COFF_BSD_SYMBOLS, nothing defines it anymore.
4290
aed71cf4
DN
42912010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4292
4293 Remove obsolete uses of HAVE_SHM.
4294 * emacs.c (standard_args):
4295 (Fdump_emacs):
4296 (syms_of_emacs): Remove code depending on HAVE_SHM.
4297
4298 * alloc.c: Remove HAVE_SHM dependent definition.
4299
4300 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4301
aded53ff
GM
43022010-03-18 Glenn Morris <rgm@gnu.org>
4303
17284745
GM
4304 * emacs.c (USAGE4): Hard-code bug address.
4305 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4306 (bug_reporting_address): Remove.
4307 (main): Don't call bug_reporting_address.
4308
aded53ff
GM
4309 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4310 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4311
303500aa
CY
43122010-03-15 Chong Yidong <cyd@stupidchicken.com>
4313
4314 * xfns.c (Fx_create_frame):
4315 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4316 on left.
4317
cef3058f
CY
43182010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4319
4320 * editfns.c (Fformat): Account for string precision when computing
4321 field width (Bug#5710).
4322
a647d59d
CY
43232010-03-12 Chong Yidong <cyd@stupidchicken.com>
4324
4fa42018
CY
4325 * xfns.c (Fx_create_frame): Set default to Qright.
4326
a647d59d
CY
4327 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4328 all window systems.
4329
6da23aaa
EZ
43302010-03-12 Eli Zaretskii <eliz@gnu.org>
4331
a96f6398 4332 These changes remove termcap.c from the build on Posix platforms.
83d02def 4333 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4334 (MSDOS_OBJ): ...to here.
4335 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4336 now identical to when LIBS_TERMCAP is defined.
4337
4338 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4339
4340 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4341
a96f6398 4342 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4343
288f9fc0
CY
43442010-03-10 Chong Yidong <cyd@stupidchicken.com>
4345
4346 * Branch for 23.2.
4347
d48cd3f4
SM
43482010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4349
4350 Cleanup setup of gl_state in various parts of the code.
4351 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4352 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4353 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4354 (skip_chars):
4355 * regex.c (regex_compile): Use it.
4356 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4357 it's now set in regex_compile when/if we need it.
4358
618db430
SM
43592010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4360
c0335e02
SM
4361 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4362 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4363 (QUIT): Use it to consolidate code and remove redundancy.
4364 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4365
254c06a8
SM
4366 * regex.c (regex_compile): Setup gl_state as well.
4367
618db430
SM
4368 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4369 (in_classes): Use CONSP before XCAR/XCDR.
4370
233f0c9f
CY
43712010-03-03 Chong Yidong <cyd@stupidchicken.com>
4372
4373 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4374 definitions, so that keyboard macros are correctly handled
4375 (Bug#5481).
4376
75f80e63
EZ
43772010-03-02 Eli Zaretskii <eliz@gnu.org>
4378
4379 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4380 text that could be relocated inside the call to emacs_mule_char.
4381 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4382 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4383
dcfb9bc4
KH
43842010-03-02 Kenichi Handa <handa@m17n.org>
4385
fc9a17bc
KH
4386 * character.c (parse_str_as_multibyte): Fix handling of the
4387 multibyte form of raw-bytes.
4388 (str_as_multibyte): Likewise.
4389
dcfb9bc4
KH
4390 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4391 form of raw-bytes.
4392
412c01b6
CY
43932010-02-28 Chong Yidong <cyd@stupidchicken.com>
4394
4395 * charset.c (load_charset_map_from_file)
4396 (load_charset_map_from_vector): Zero out allocated
4397 charset_map_entries before using them.
4398
df7e1ea0
AS
43992010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4400
4401 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4402
fe69a722
CY
44032010-02-27 Chong Yidong <cyd@stupidchicken.com>
4404
4ed28cf4
CY
4405 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4406 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4407
7379cfce
KH
44082010-02-26 Kenichi Handa <handa@m17n.org>
4409
f88cc4d6
KH
4410 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4411
7379cfce
KH
4412 * xdisp.c (reseat_to_string): Fix previous change.
4413
cf2fdcfb
CY
44142010-02-26 David Reitter <david.reitter@gmail.com>
4415
4416 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4417 Lisp_Object (Bug#4736).
4418
cc6c7c75
KH
44192010-02-25 Kenichi Handa <handa@m17n.org>
4420
4421 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4422
32e737d7
JD
44232010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4424
4425 * xterm.c (XTflash): Move declarations before statements.
4426
4427 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4428 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4429 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4430 (xg_create_tool_bar): Remove unused variables.
4431 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4432 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4433
676cae9f
CY
44342010-02-21 Chong Yidong <cyd@stupidchicken.com>
4435
4436 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4437
886cc2b8
SM
44382010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4439
4440 * term.c (fatal): Add a final \n if needed (bug#5596).
4441
ddb2d8e2
CY
44422010-02-18 Chong Yidong <cyd@stupidchicken.com>
4443
4444 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4445
2a4f8d3d
GM
44462010-02-18 Glenn Morris <rgm@gnu.org>
4447
4448 * callint.c (Finteractive): Doc fix.
4449
ebaf11b6
KH
44502010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4451
886cc2b8
SM
4452 * coding.c (record_conversion_result):
4453 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4454 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4455 memory allocation error.
4456
d0396581
KH
44572010-02-17 Kenichi Handa <handa@m17n.org>
4458
886cc2b8
SM
4459 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4460 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4461 (decode_coding): Setup ccl program here. Keep looping when the
4462 decoder stopped because the output buffer is
4463 fullfilled (bug#5534).
4464
4465 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4466
98599f74
JD
44672010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4468
471e4f04 4469 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4470 bug #5571.
886cc2b8 4471 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4472 overdrawn.
98599f74 4473
182659ae
JD
44742010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4475
4476 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4477 doing_interact here.
4478 (ice_connection_closed): New function.
4479 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4480 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4481 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4482 returns I/O error.
4483 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4484 bug #5512.
4485
9be32c4e 44862010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4487
4488 * nsfont.m (nsfont_open): The system's value for the font descent
4489 is negative, so round it down to avoid clipping.
4490
a2f3eb19
CY
44912010-02-06 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * charset.c (load_charset_map_from_file)
4494 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4495 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4496
3088147c
CY
44972010-02-05 Chong Yidong <cyd@stupidchicken.com>
4498
4499 * charset.c (load_charset_map_from_file): Allocate large
4500 charset_map_entries structure on the heap rather than the stack.
4501 (Bug#5526).
4502
b57d9029
KH
45032010-01-31 Kenichi Handa <handa@m17n.org>
4504
4505 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4506 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4507
c67d885b
CY
45082010-01-31 Chong Yidong <cyd@stupidchicken.com>
4509
4510 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4511 <deactivated@gmail.com> (Bug#3605).
4512
8fab2362
CY
45132010-01-31 David De La Harpe Golden <david@harpegolden.net>
4514
4515 * fileio.c (Frename_file): Correctly rename symlinks to
4516 directories (Bug#5496).
4517
cb2a62f2
CY
45182010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4519
4520 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4521
944c7a26
AS
45222010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4523
4524 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4525
c024ac08
CY
45262010-01-29 Chong Yidong <cyd@stupidchicken.com>
4527
4528 * frame.c (DEFAULT_ROWS): Change default to 35.
4529
4530 * xfns.c (x_default_font_parameter): Change default XFT font to
4531 monospace-10 (Bug#3643).
4532
af93af83
EZ
45332010-01-29 Eli Zaretskii <eliz@gnu.org>
4534
4535 * w32inevt.c (key_event): Remove unnecessary comparison of
4536 event->uChar.AsciiChar with 128.
4537
ca0eb708
CY
45382010-01-28 Chong Yidong <cyd@stupidchicken.com>
4539
b242dbfc
CY
4540 * fileio.c (Frename_file): Fix last change (Bug#5487).
4541
ca0eb708
CY
4542 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4543
4544 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4545
45d45af5
JD
45462010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4547
4548 * xfns.c (Fx_create_frame): Remove window size matching code from
4549 2010-01-15.
a73f9c9d 4550 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4551
7e233730
JR
45522010-01-27 Jason Rumney <jasonr@gnu.org>
4553
4554 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4555 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4556
86e893e3
KH
45572010-01-27 Kenichi Handa <handa@m17n.org>
4558
4559 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4560 pattern string (Bug#4209).
86e893e3 4561
8719abec
CY
45622010-01-27 David De La Harpe Golden <david@harpegolden.net>
4563
4564 * fileio.c (Frename_file): Call copy-directory and
4565 delete-directory for directories, in order to handle cross-device
4566 renaming (Bug#3353).
4567
844794c8
JD
45682010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4569
aa3e13b5 4570 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4571 sizes 24 and 10. Bug #3643.
844794c8 4572
bd4b5750
SM
45732010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4574
8dc1adf6 4575 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4576 * keymap.c (shadow_lookup): Add `remap' arg.
4577 (describe_map, describe_vector): Update calls to shadow_lookup.
4578 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4579 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4580 perform remapping during shadow_lookup check of remapped_sequences.
4581
285d07e2
CY
45822010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4583
4584 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4585 png_check_sig, which has been removed in libpng 1.4.
4586
c6d09b8d
CY
45872010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4588
4589 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4590 lacks this header file).
4591
3d782998
YM
45922010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4593
4594 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4595 as in Emacs 22.
4596
2aff7c53
YM
45972010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4598
4599 * lisp.h (make_pure_string): String pointer arg now points to const.
4600
4601 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4602 args now point to const.
4603
74327f7a
EZ
46042010-01-22 Eli Zaretskii <eliz@gnu.org>
4605
4606 * lread.c (Fload): Don't treat files without .elc extension as
4607 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4608 them. (bug#5303)
4609
4d1e6632
KH
46102010-01-20 Kenichi Handa <handa@m17n.org>
4611
4612 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4613 treat the source as actual byte sequence.
4614
1fdede8f
AM
46152010-01-19 Alan Mackenzie <acm@muc.de>
4616
4617 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4618 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4619 `signal_after_change_p' to `coherent_change_p', and make the
4620 invocation of `modify_region' conditional on it.
4621
67477f30
JD
46222010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4623
4624 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4625 for debug purpose.
4626 (syms_of_xsettings): Declare xft-settings.
4627
244b023e
CY
46282010-01-18 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4631
617364fe
CY
46322010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4633
4634 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4635
4fe22cdf
CY
46362010-01-16 Chong Yidong <cyd@stupidchicken.com>
4637
4638 * emacs.c (standard_args): Adjust arg priorities to reflect how
4639 they are processed in startup.el.
4640
e118d2be
AS
46412010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4642
4643 * Makefile.in (lisp, shortlisp): Update.
4644
523ae620
SM
46452010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4646
4647 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4648 code, link the new kboard into all_kboard before running Lisp code,
4649 and protect the new terminal with GCPRO (Bug#5365).
4650 (x_term_init): Remove unused var `atom'.
4651 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4652
f0d13888
JD
46532010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4654
4655 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4656 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4657 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4658 this. Bug #3643.
f0d13888 4659
cc320f07
KH
46602010-01-15 Kenichi Handa <handa@m17n.org>
4661
4662 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4663
7ffdf101
CY
46642010-01-15 Chong Yidong <cyd@stupidchicken.com>
4665
4666 * nsterm.m (Qnone): Define.
4667
4668 * nsfns.m (Qnone): Move definition to nsterm.m.
4669
d12bd917
KH
46702010-01-14 Kenichi Handa <handa@m17n.org>
4671
4672 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4673 systems.
4674
d9a7c140
KH
46752010-01-14 Kenichi Handa <handa@m17n.org>
4676
4677 Make auto-composition work on all buffers even if they are
4678 fundamental mode.
4679
4680 * composite.c (Vauto_composition_mode): New variable.
4681 (composition_compute_stop_pos): Check Vauto_composition_mode
4682 instead of Vauto_composition_function.
4683 (composition_adjust_point, Ffind_composition_internal): Likewise.
4684 (syms_of_composite): Declare Lisp variable
4685 "auto-composition-mode" here.
4686
63286bb2
CY
46872010-01-13 Chong Yidong <cyd@stupidchicken.com>
4688
4689 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4690 during call to vendor-specific-keysyms (Bug#5365).
4691
c2623ee7
YM
46922010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4693
4694 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4695 Call SIGNAL_THREAD_CHECK (Bug#5333).
4696
4697 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4698 Call SIGNAL_THREAD_CHECK.
4699
0b5397c2
SM
47002010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4701
4702 Try to fix bug#5314. This is probably not the final word, tho.
4703 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4704 recent-auto-save-p as a side-effect.
4705 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4706 * buffer.c (Fkill_buffer, reset_buffer):
4707 * editfns.c (Fsubst_char_in_region):
4708 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4709 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4710
dc954cb2
KH
47112010-01-13 Kenichi Handa <handa@m17n.org>
4712
4713 Display buffer name, etc. in mode line by composing correctly.
4714
4715 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4716 STRING is not nil.
0b5397c2 4717 (display_mode_element): Adjust for the change of
dc954cb2
KH
4718 decode_mode_spec and display_line.
4719 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4720 (display_string): Handle the case that STRING is non-null and
4721 LISP_STRING is not nil.
4722
0b5397c2
SM
4723 * xterm.c (x_draw_composite_glyph_string_foreground):
4724 Pay attention to s->face->overstrike.
dc954cb2
KH
4725
4726 * composite.c (composition_reseat_it): Don't check PT if STRING is
4727 non nil.
4728
4a00eaca
YM
47292010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4730
4731 * keyboard.c (read_char): Don't apply previous change when current
4732 buffer is unchanged by command execution.
4733
60abb287
JD
47342010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4735
4736 * keyboard.c (read_char): Return after executing from special map.
4737
893db5bc
GM
47382010-01-12 Glenn Morris <rgm@gnu.org>
4739
4740 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4741 bug-gnu-emacs rather than emacs-pretest-bug.
4742
4d03ece0
CY
47432010-01-11 Chong Yidong <cyd@stupidchicken.com>
4744
4745 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4746 initializing the Lisp variables that depend on them.
4747
1df47e38
YM
47482010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4749
4750 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4751 Clear areas that will not be updated after change of menu bar lines.
4752 Clear the menu bar window's current matrix when the window gets empty.
4753
2f1c6384
CY
47542010-01-09 Chong Yidong <cyd@stupidchicken.com>
4755
e398c61c
CY
4756 * intervals.h, textprop.c (extend_property_ranges): Return value
4757 and args changed. Discard properties that begin at or after the
4758 new end (Bug#5306).
4759
4760 * editfns.c (Fformat): Caller changed.
4761
e5a29a10
CY
4762 * nsterm.m (ns_set_default_prefs): Delete function.
4763 (syms_of_nsterm): Initialize ns_command_modifier,
4764 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4765 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4766
2f1c6384
CY
4767 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4768 position (Bug#4040).
4769
d427a9fa
EZ
47702010-01-09 Eli Zaretskii <eliz@gnu.org>
4771
4772 * editfns.c (Ffloat_time): Doc fix.
4773
21b9df2f
JD
47742010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4775
4776 * xfns.c (Fx_create_frame): Don't create frame larger than display
4777 by default bug#3643.
4778
4b00d3b1
YM
47792010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4780
4781 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4782 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4783 windows above internal border.
4784
4785 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4786 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4787 windows above internal border.
4788
4789 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4790 tool bar windows specially.
4791
4792 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4793
4794 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4795 specially.
4796 (XTflash): Take account of menu bar height.
4797
4798 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4799 specially.
4800
5075d853
JD
48012010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4802
ac146f82 4803 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4804 also be true before we can return early (bug #5339).
4805
474217c8
CY
48062010-01-06 David Reitter <david.reitter@gmail.com>
4807
4808 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4809 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4810 (Bug#3233).
4811
c0e6d47d
JD
48122010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4813
d0cf45b7
JD
4814 * font.c (font_open_entity): Enable chache and call cached_font_ok
4815 for the driver if defined.
4816 (QCuser_spec): New symbol.
4817 (font_spec_from_name): Save name as user-spec.
4818 (font_load_for_lface): Keep user-spec instead of name.
4819 (font_open_by_name): Save name as user-spec.
4820 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4821 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4822
4823 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4824 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4825 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4826
4827 * font.h (struct font_driver): Add cached_font_ok.
4828
c0e6d47d
JD
4829 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4830
7c583cd8
JD
48312010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4832
4833 * xterm.c (x_new_font): Move code for setting rows/cols before
4834 resizing ...
ac146f82 4835 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4836
4837 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4838 (xg_frame_resized, xg_frame_set_char_size):
4839 Call xg_clear_under_internal_border.
7c583cd8 4840 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4841
03f77f0a
CY
48422010-01-05 Chong Yidong <cyd@stupidchicken.com>
4843
4844 * keyboard.c (read_key_sequence): Catch keyboard switch after
4845 making a new tty frame (Bug#5095).
4846
2a1ef5be
KH
48472010-01-05 Kenichi Handa <handa@m17n.org>
4848
4849 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4850
e3eb1dae
SM
48512010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4852
4853 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4854 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4855 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4856
777013f2
MA
48572010-01-03 Michael Albinus <michael.albinus@gmx.de>
4858
4859 * dbusbind.c (xd_add_watch): Improve debug message.
4860 (xd_remove_watch): Improve debug message. If DATA is the session
4861 bus, unset D-Bus session environment.
4862 (Fdbus_init_bus): Pass the bus as argument to
4863 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4864
8932b1c2
CY
48652010-01-01 Chong Yidong <cyd@stupidchicken.com>
4866
87231e2c
CY
4867 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4868
4801c5fa
CY
4869 * lread.c (syms_of_lread): Make it clearer that these are the
4870 names of loaded files (Bug#5068).
4871
8932b1c2
CY
4872 * eval.c (run_hook_with_args): Handle the case where the global
4873 value has the obsolete single-function form (Bug#5026).
4874
11e3c684
CY
48752009-12-27 Chong Yidong <cyd@stupidchicken.com>
4876
4877 * minibuf.c (Fall_completions): Minor optimization.
4878
5b28ce35
EZ
48792009-12-26 Eli Zaretskii <eliz@gnu.org>
4880
5ce6e4f4
JB
4881 * .gdbinit (pgx): Fix display of composite glyphs.
4882 Display cmp.from and cmp.to as well.
4883 (pitx): Fix last change.
5b28ce35 4884
bcffff46
KH
48852009-12-25 Kenichi Handa <handa@m17n.org>
4886
4887 * composite.h (composition_adjust_point): Update prototype.
4888
4889 * composite.c (composition_reseat_it): Don't make a composition
4890 spanning over point.
4891 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4892 composable characters.
4893 (composition_adjust_point): New arg NEW_PT. Callers changed.
4894
4895 * keyboard.c (command_loop_1): Force redisplay if the last point
4896 was within a composition.
4897 (adjust_point_for_property): Don't adjust point for automatic
4898 composition when called after buffer modification.
4899
3f670e9a
EZ
49002009-12-19 Eli Zaretskii <eliz@gnu.org>
4901
5ce6e4f4
JB
4902 * .gdbinit (pitx): Don't use enum names, use their values.
4903 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4904 (pgx): Don't use enum names, use their values.
4905 (pitmethod): New helper command.
4906 (pitx): Use it to display iteration method.
4907 (pgrowit): New command.
4908
ad903955
EZ
4909 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4910
3f670e9a
EZ
4911 Update dependencies in Makefile.in.
4912
4913 * Makefile.in (alloc.o): Depend on termhooks.h.
4914 (atimer.o): Depend on blockinput.h.
4915 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4916 and frame.h.
4917 (callint.o): Depend on systime.h, coding.h, and composite.h.
4918 (callproc.o): Depend on buffer.h.
4919 (casefiddle.o): Don't depend on charset.h.
4920 (casetab.o): Depend on character.h.
4921 (ccl.o): Depend on composite.h.
4922 (chartab.o): Depend on ccl.h.
4923 (cm.o): Depend on dispextern.h.
4924 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4925 (coding.o): Don't depend on $(INTERVALS_H).
4926 (composite.o): Don't depend on dispextern.h explicitly (it's in
4927 $(INTERVALS_H)). Depend on ccl.h.
4928 (data.o): Depend on systime.h, coding.h, composite.h,
4929 dispextern.h, font.h, and ccl.h.
4930 (dired.o): Depend on composite.h.
4931 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4932 composite.h (it's in $(INTERVALS_H)).
4933 (doc.o): Depend on systime.h, coding.h, and composite.h.
4934 (editfns.o): Don't depend explicitly on dispextern.h.
4935 (emacs.o): Depend on frame.h and coding.h.
4936 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4937 (fileio.o): Depend on frame.h and commands.h. Don't depend
4938 explicitly on dispextern.h.
4939 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4940 composite.h.
4941 (fns.o): Don't depend on termhooks.h.
4942 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4943 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4944 coding.h, $(INTERVALS_H), window.h, xterm.h.
4945 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4946 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4947 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4948 fontset.h, ccl.h, and ftfont.h.
4949 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4950 (gtkutil.o): Depend on dispextern.h and composite.h.
4951 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4952 termhooks.h, and ccl.h.
4953 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4954 (intervals.o): Depend on systime.h and coding.h.
4955 (keyboard.o): Depend on composite.h and coding.h.
4956 (keymap.o): Depend on coding.h and frame.h.
4957 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4958 (macros.o): Depend on systime.h, coding.h, and composite.h.
4959 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4960 and atimer.h.
4961 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4962 dispextern.h explicitly.
0b5397c2
SM
4963 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4964 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4965 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4966 (regex.o): Don't depend on charset.h.
4967 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4968 (search.o): Don't depend explicitly on composite.h.
4969 (sound.o): Depend on atimer.h and systime.h.
4970 (syntax.o): Don't depend explicitly on composite.h.
4971 (sysdep.o): Depend on coding.h and composite.h.
4972 (term.o): Depend on xterm.h and buffer.h.
4973 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4974 (textprop.o): Don't depend on dispextern.h explicitly.
4975 (undo.o): Depend on dispextern.h.
4976 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4977 dispextern.h and composite.h explicitly.
4978 (xdisp.o): Depend on ccl.h.
4979 (xfaces.o): Depend on coding.h and ccl.h.
4980 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4981 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4982 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4983 ftfont.h.
4984 (xgselect.o): New dependency.
4985 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4986 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4987 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4988 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4989 (xsmfns.o): Depend on frame.h and dispextern.h.
4990 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4991 sysselect.h.
4992
7a6f7fea
AS
49932009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4994
4995 * font.c (Fclear_font_cache): Pass correct cache argument to
4996 font_clear_cache.
4997
f4c21026
AS
49982009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4999
5000 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5001 twice.
5002
f7ab0997
CY
50032009-12-15 Chong Yidong <cyd@stupidchicken.com>
5004
5005 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5006 calling file-remote-p. Reported by Jim Meyering.
5007
fa8e045a
MA
50082009-12-15 Michael Albinus <michael.albinus@gmx.de>
5009
5010 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5011 avoid compiler warnings. (Bug #5217)
fa8e045a 5012
a63dba42
KH
50132009-12-14 Kenichi Handa <handa@m17n.org>
5014
5015 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5016 in 8-bit encoding.
5017
5ce6e4f4 50182009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5019
5020 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5021 tooltip windows.
5022
223e5fc6
JD
50232009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5024
36acb2a7
JD
5025 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5026 Xatom_net_window_type.
5027
5028 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5029 Xatom_net_window_type.
5030
b8f00677
JD
5031 * xterm.c (my_log_handler): New function.
5032 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5033 so we can filter out buggy messages. (Bug #5120).
b8f00677 5034
e5f0bc9a
JD
5035 * xterm.c (xg_scroll_callback): Parameter list changed,
5036 use parameter GtkScrollType to determine scroll/line/page.
5037 Only allow dragging if a button < 4 is grabbed (bug #5177).
5038 (xg_end_scroll_callback): New function.
5039 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5040 xg_create_scroll_bar.
5041
5042 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5043 (scroll_end_callback): Remove.
5044 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5045 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5046 bug #5177.
e5f0bc9a
JD
5047 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5048 bug #5177.
5049
5050 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5051 (xg_create_scroll_bar): Add GCallback end_callback.
5052
223e5fc6
JD
5053 * xftfont.c (QClcdfilter): New variable.
5054 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5055 (syms_of_xftfont): Initialize QClcdfilter.
5056
3c055b77
JD
50572009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5058
5059 * xsettings.c (struct xsettings): Add member seen.
5060 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5061 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5062 (apply_xft_settings): Only update Xft settings with what member seen
5063 indicates as new.
5064
05fe33ff
EZ
50652009-12-12 Eli Zaretskii <eliz@gnu.org>
5066
c4cc8b9a 5067 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5068 (struct glyph): Use EMACS_INT for charpos.
5069 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5070 region_beg_charpos, region_end_charpos,
5071 redisplay_end_trigger_charpos, and also for
5072 iterator_stack_entry.end_charpos and
5073 iterator_stack_entry.stop_charpos.
5074
e8d7886a
JD
50752009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5076
5ce6e4f4 5077 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5078 (xg_create_scroll_bar): Call scroll_end_callback on button release
5079 event (bug #5177).
5080 (xg_event_is_for_scrollbar): != replaced with ==.
5081
d0db2ec8
KH
50822009-12-12 Kenichi Handa <handa@m17n.org>
5083
5084 * ftfont.c (struct ftfont_info): New member matrix.
5085 (ftfont_open): Setup xftfont_info->matrix.
5086 (MFLTFontFT): New member matrix.
5087 (FLOOR, CEIL, ROUND): New macros.
5088 (ftfont_get_metrics): Handle matrix transformation.
5089 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5090
5091 * xftfont.c (struct xftfont_info): New member matrix.
5092 (xftfont_open): Setup xftfont_info->matrix.
5093
50942009-12-10 Kenichi Handa <handa@m17n.org>
5095
5096 * xdisp.c (append_space_for_newline): Consider face-remapping.
5097
2cc7b62f
AS
50982009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5099
b87dd913
AS
5100 * xsettings.c: Include "keyboard.h".
5101
eba5eb94
AS
5102 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5103
2cc7b62f
AS
5104 Fix implicit function declarations.
5105 * cmds.c: Include "frame.h".
5106 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5107 * frame.h: Move declaration of delete_frame outside of
5108 HAVE_WINDOW_SYSTEM.
5109
a4ef73c8
CY
51102009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5111
5112 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5113
5114 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5115 GTK builds.
5116
944a300c
AS
51172009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5118
5119 * unexelf.c (unexec): Don't search for .data twice.
5120
022eef62
CY
51212009-12-05 Chong Yidong <cyd@stupidchicken.com>
5122
426ac949
CY
5123 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5124 if push failed.
5125 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5126 of push_display_prop (Bug#5000).
5127
022eef62
CY
5128 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5129 value of font_list_entities (Bug#5085).
5130
be95bee9
JB
51312009-12-04 Juanma Barranquero <lekktu@gmail.com>
5132
5133 Fix `string-to-number' to deal consistently with integers and floats.
5134 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5135 trailing characters, not just whitespace.
5136 (read1): Pass new arg 0 to keep old behavior.
5137 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5138 trailing chars, as it is already done for integers. Doc fixes.
5139 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5140
24c2d7ce
EZ
51412009-12-04 Eli Zaretskii <eliz@gnu.org>
5142
0b5397c2
SM
5143 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5144 Delete unused enumeration value.
24c2d7ce 5145
7e694795
EZ
51462009-12-03 Eli Zaretskii <eliz@gnu.org>
5147
5148 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5149
84b31826
SM
51502009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5151
5152 * process.c (Fmake_network_process): Fix up the tests for
5153 "connectionless socket", so they DTRT for seqpacket sockets as well.
5154
f00c449b
SM
51552009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5156
5157 * process.c (Qseqpacket): New symbol.
5158 (HAVE_SEQPACKET): New macro.
5159 (Fmake_network_process): Accept new :type `seqpacket'.
5160 (init_process): Add `seqpacket' feature when applicable.
5161 (syms_of_process): Initialize Qseqpacket.
5162
8096a0ff
YM
51632009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5164
5165 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5166 if entity is Qnil.
5167
3e0de07f
SM
51682009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5169
5170 * print.c (print_preprocess): Preprocess the key_and_value table of
5171 hashtables, even tho they're "hidden" (bug#5082).
5172
abeafb2a
JD
51732009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5174
5175 * frame.c (frame_make_pointer_invisible)
5176 (frame_make_pointer_visible): Declare f before statements.
5177
4bf47195
EZ
51782009-11-28 Eli Zaretskii <eliz@gnu.org>
5179
5180 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5181 omitted dependencies on lisp.h.
5182
c525b3f2
JD
51832009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5184
ece2d4ed
JD
5185 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5186 is NULL.
5187
5188 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5189
5190 * frame.c (frame_make_pointer_invisible)
3e0de07f 5191 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5192 frame.
5193
c525b3f2
JD
5194 * search.c (simple_search): Remove warning by making *p const.
5195
2f00e299
DN
51962009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5197
5198 * xdisp.c (power_letter): Remove duplicate const.
5199
084b049b
JD
52002009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5201
a1fadc6f
JD
5202 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5203
5ce6e4f4 5204 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5205 defaults (bug #5025).
5206
28259cac
SM
52072009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5208
5209 * insdel.c (adjust_markers_for_delete): Move it in the
5210 right direction! (bug#4803)
5211
e8e14166
YM
52122009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5213
5214 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5215
5216 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5217
86677b58
GM
52182009-11-24 Glenn Morris <rgm@gnu.org>
5219
5220 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5221
581e51e8
JD
52222009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5223
cfc86c7a
JD
5224 * Makefile.in: Must create deps for ecrt0.o in its rule.
5225
581e51e8
JD
5226 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5227 because that is what Gtk+ font dialog understands.
5228
5229 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5230 of Fcopy_sequence.
5231 (font_open_by_name): Put name given into QCname for font-object returned.
5232
5233 * frame.c (x_set_font): Save original font name as frame parameter
5234 font-parameter.
5235
5236 * xsettings.c (set_default_xft_settings): New function.
5237 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5238 is found.
5239
8b264ecb
AS
52402009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5241
5242 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5243 searching backwards through multibyte buffer.
5244
872870b2
JD
52452009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5246
5247 * xterm.c: #include xgselect.h.
5248 (x_initialize): Call xgselect_initialize.
5249
5250 * xsettings.c (something_changedCB): C++ comments => C comments.
5251 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5252 does that now.
5253
5254 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5255 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5256 (scroll_bar_button_cb): Remove.
5ce6e4f4 5257 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5258 event.
5259 (xg_create_scroll_bar): Don't bind button-press-event and
5260 button-release-event.
5261
5262 * process.c: Include xgselect.h if defined (USE_GTK) ||
5263 defined (HAVE_GCONF).
5264 (wait_reading_process_output): Call xg_select for the same condition.
5265
5266 * xgselect.c (xg_select): New function to better integrate with
5267 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5268
5269 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5270
5271 * Makefile.in (XOBJ): Add xgselect.o.
5272
62a6e103
AS
52732009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5274
0b5397c2
SM
5275 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5276 Remove ignored second argument. All callers changed.
62a6e103
AS
5277 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5278 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5279 * xdisp.c (string_char_and_length): Likewise.
5280
b0ca0f33
DN
52812009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5282
5283 * xterm.c (x_new_font):
5284 * print.c (print_object):
5285 * cmds.c (Fself_insert_command): Move declarations before statements.
5286
dd5a6279
CY
52872009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5288
5289 * s/cygwin.h: Remove unneeded linker flags.
5290
4a8e097d
JD
52912009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5292
0d1d0d26
JD
5293 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5294
5295 * xsettings.h: Declare xsettings_get_system_font.
5296
5297 * xsettings.c (xsettings_get_system_font): New function.
5298 (init_gconf): No use initiating gconf unless we have Xft also.
5299 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5300 HAVE_GCONF.
5301
4a8e097d
JD
5302 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5303 add a blank entry so it doesn't collapse into nothing.
5304
8ab1650e
SM
53052009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5306
5307 * lread.c (Funintern): Comment out last change.
5308
82c602f0
RS
53092009-11-19 Richard Stallman <rms@gnu.org>
5310
5311 * lread.c (Funintern): Error if symbol is t or nil.
5312
87e32266
SM
53132009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5314
5315 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5316 representation of Lisp integers.
5317 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5318
1b9ac145
AS
53192009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5320
5321 * lisp.h: Remove declaration of Ffont_get_system_font.
5322 * xfns.c: Move include of "xsettings.h".
5323 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5324
dfb3c4c6
JD
53252009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5326
87e32266
SM
5327 * xsettings.c (something_changedCB, Ffont_get_system_font):
5328 Check use_system_font.
dfb3c4c6
JD
5329 (syms_of_xsettings): DEFVAR font-use-system-font.
5330
9370c1d8
AS
53312009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5332
25fe851a
AS
5333 * xfns.c (x_default_font_parameter): Remove dead assignment.
5334
9370c1d8
AS
5335 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5336
637fa988
JD
53372009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5338
87e32266 5339 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5340 not have FC_LCD_*. #define them if not there.
a6eb20d8 5341
87e32266 5342 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5343
637fa988
JD
5344 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5345
5346 * xterm.c (handle_one_xevent): Call xft_settings_event for
5347 ClientMessage, PropertyNotify and DestroyNotify.
5348 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5349 Call xsettings_initialize.
5350
5351 * xftfont.c (xftfont_fix_match): New function.
5352 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5353 Call xftfont_fix_match after XftFontMatch.
5354
5355 * xfont.c (xfont_driver): Initialize all members.
5356
87e32266
SM
5357 * xfns.c (x_default_font_parameter):
5358 Try font from Ffont_get_system_font.
637fa988
JD
5359 Do not get font from x_default_parameter if we got one from
5360 Ffont_get_system_font.
87e32266 5361 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5362
5363 * w32font.c (w32font_driver): Initialize all members.
5364
5365 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5366
5367 * lisp.h: Declare syms_of_xsettings.
5368
87e32266
SM
5369 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5370 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5371
5372 * ftfont.c (ftfont_filter_properties): New function.
5373
5374 * frame.c (x_set_font): Remove unused variable lval.
5375
87e32266 5376 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5377
5378 * font.c (font_put_extra): Don't return if val is nil, it means
5379 boolean option is off.
5380 (font_parse_fcname): Collect all extra properties in extra_props
5381 and call filter_properties for all drivers with extra_props and
5382 font as parameter.
87e32266
SM
5383 (font_open_entity): Do not use cache, it does not pick up new
5384 fontconfig settings like hinting.
637fa988
JD
5385 (font_load_for_lface): If spec had a name in it, store it in entity.
5386
a73f9c9d 5387 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5388
5389 * config.in: HAVE_GCONF is new.
5390
5391 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5392 xsettings.o is new.
5393
5a942932
KH
53942009-11-17 Kenichi Handa <handa@m17n.org>
5395
5396 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5397 back to the default font in case that no suitable font is found.
5398
b7c7a4d1
SM
53992009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5400
5401 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5402 Suggested by Chad Brown <yandros@mit.edu>.
5403 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5404
072f1e39
JD
54052009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5406
5407 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5408
5d1e70a2
AS
54092009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5410
87e32266 5411 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5412
a53cfbe5
JD
54132009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5414
473a99b7
JD
5415 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5416 has a parent.
5417
a53cfbe5 5418 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5419 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5420
5421 * config.in: Generated (AUTO_DEPEND).
5422
f04bb9b2
MA
54232009-11-13 Michael Albinus <michael.albinus@gmx.de>
5424
b7c7a4d1 5425 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5426 Vdbus_registered_functions_table, because it contains also
5427 properties. Fix docstring.
b7c7a4d1 5428 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5429
8f11f7ec
SM
54302009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5431
5432 * alloc.c (mark_object): Don't reprocess marked strings.
5433 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5434 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5435
8a605fe8
KH
54362009-11-13 Kenichi Handa <handa@m17n.org>
5437
8f11f7ec 5438 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5439 semantics of Vword_combining_categories.
5440 (Vword_combining_categories): Describe the slight change of the
5441 semantics.
5442
241c4680
EZ
54432009-11-13 Eli Zaretskii <eliz@gnu.org>
5444
5445 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5446
5447 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5448
5d58e44c
SM
54492009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5450
5451 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5452
5e13f9d3
JB
54532009-11-12 Juanma Barranquero <lekktu@gmail.com>
5454
5455 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5456
cf54c754
DR
54572009-11-11 David Reitter <david.reitter@gmail.com>
5458
5459 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5460 variables to fix 2009-11-09 change.
5461
a4ada374
DN
54622009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5463
91433552
DN
5464 * process.c (ifflag_def): Make flag_sym constant.
5465 (Fnetwork_interface_info): Use a constant pointer.
5466 (ifflag_table):
5467 * xfns.c (cursor_bits):
5468 * xdisp.c (power_letter):
5469 * termcap.c (speeds, esctab):
5470 * sysdep.c (baud_convert):
5471 * keyboard.c (lispy_accent_codes, modifier_names):
5472 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5473 (jpeg_format, tiff_format, gif_format, svg_format)
5474 (interlace_start, interlace_increment, gs_format):
5475 * gtkutil.c (separator_names):
5476 * fringe.c (swap_nibble):
5477 * fns.c (base64_value_to_char, base64_char_to_value):
5478 * fileio.c (make_temp_name_tbl):
5479 * coding.c (suffixes): Make constant.
5480
f4265f6c
DN
5481 * frame.c (make_initial_frame):
5482 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5483 build_string.
5484 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5485
04420943
DN
5486 * s/freebsd.h:
5487 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5488
0a5d24ae
DN
5489 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5490 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5491
a4ada374
DN
5492 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5493 * xterm.c (syms_of_xterm):
5494 * xfaces.c (syms_of_xfaces):
5495 * xdisp.c (syms_of_xdisp):
5496 * lread.c (syms_of_lread):
5497 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5498 build_string.
91433552 5499
a4ada374
DN
5500 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5501
af98fc7f
SM
55022009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5503
8ab1650e 5504 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5505
e90292a9
JD
55062009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5507
5508 * keyboard.h: Declare timer_check.
5509
5510 * keyboard.c (timer_check_2): New function that does what the old
5511 timer_check did.
5512 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5513 returned, i.e. don't return -1 with timers pending.
5514
5515 * process.c: Remove extern declaration of timer_check.
5516
5517 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5518 even if timer_check returned -1.
5519
af98fc7f
SM
5520 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5521 xg_dialog_data.
e90292a9
JD
5522 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5523 the event loop.
5524 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5525 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5526 Destroy the dialog after xg_dialog_run.
5527
045b83c0
SM
55282009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5529
5530 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5531
1fb99a3a
JD
55322009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5533
5534 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5535
04e452cb
JB
55362009-11-09 Juanma Barranquero <lekktu@gmail.com>
5537
5538 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5539
ef7417fd
SM
55402009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5541
5542 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5543 w32menu.c, and nsmenu.m.
5544 Simplify the obsolete case where position is nil.
5545 (cleanup_popup_menu): New function, moved from nsmenu.m.
5546 (struct skp): Remove slot `notreal'.
5547 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5548 adjust callers.
5549 (single_menu_item): Adjust call to parse_menu_item.
5550 (syms_of_menu): Defsubr x-popup-menu.
5551 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5552 (keymap_panes): Don't export any more.
5553 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5554 (xmenu_show): Declare.
5555 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5556 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5557 * keyboard.h (parse_menu_item): Update declaration.
5558 * xmenu.c (Fx_popup_menu): Remove.
5559 (syms_of_xmenu): Don't defsubr x-popup-menu.
5560 * w32menu.c (Fx_popup_menu): Remove.
5561 (syms_of_w32menu): Don't defsubr x-popup-menu.
5562 * nsmenu.m (cleanup_popup_menu): Remove.
5563 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5564 moved to menu.c's Fx_popup_menu.
5565 (Fx_popup_menu): Remove.
5566 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5567 menu_items (it's done in menu.c already).
5568
424d6179
SM
55692009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5570
5571 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5572 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5573
c0df13a6 55742009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5575
5576 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5577 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5578 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5579 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5580
2de9f71c
SM
55812009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5582
5583 Let integers use up 2 tags to give them one extra bit and thus double
5584 their range.
5585 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5586 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5587 New macros.
5588 (enum Lisp_Type): Use them. Give explicit values.
5589 (Lisp_Type_Limit): Remove.
5590 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5591 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5592 Pay attention to USE_2_TAGS_FOR_INTS.
5593 (INTEGERP): Use LISP_INT_TAG_P.
5594 * fns.c (internal_equal): Simplify the default case.
5595 (sxhash): Use case_Lisp_Int.
5596 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5597 any more.
5598 (Ftype_of): Use case_Lisp_Int.
5599 (store_symval_forwarding): Take into account the fact that Ints can
5600 now have more than one tag.
5601 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5602 buffer_slot_type_mismatch):
5603 * xfaces.c (face_attr_equal_p):
5604 * print.c (print_object):
5605 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5606 Use case_Lisp_Int.
5607
323637a2
EZ
56082009-11-06 Eli Zaretskii <eliz@gnu.org>
5609
7ac65b38
EZ
5610 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5611
323637a2
EZ
5612 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5613 warning.
5614
e511451f
JD
56152009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5616
5617 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5618
5619 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5620
5621 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5622 ButtonPressRelease and MotionNotify (bug#4870).
5623
5e2327cf
DN
56242009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5625
5adc433e
DN
5626 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5627
d67b4f80
DN
5628 * xterm.c (syms_of_xterm):
5629 * xselect.c (syms_of_xselect):
5630 * xmenu.c (syms_of_xmenu):
5631 * xfns.c (syms_of_xfns):
5632 * xfaces.c (syms_of_xfaces):
5633 * xdisp.c (syms_of_xdisp):
5634 * window.c (syms_of_window):
5635 * w32fns.c (syms_of_w32fns):
5636 * undo.c (syms_of_undo):
5637 * textprop.c (syms_of_textprop):
5638 * terminal.c (syms_of_terminal):
5639 * syntax.c (syms_of_syntax):
5640 * sound.c (syms_of_sound):
5641 * search.c (syms_of_search):
5642 * print.c (syms_of_print):
5643 * minibuf.c (syms_of_minibuf):
5644 * macros.c (syms_of_macros):
5645 * keymap.c (syms_of_keymap, initial_define_key)
5646 (initial_define_lispy_key):
5647 * keyboard.c (syms_of_keyboard):
5648 * insdel.c (syms_of_insdel):
5649 * image.c (syms_of_image):
5650 * fringe.c (syms_of_fringe):
5651 * frame.c (syms_of_frame):
5652 * fontset.c (syms_of_fontset):
5653 * fns.c (syms_of_fns):
5654 * fns.c (syms_of_fns):
5655 * fileio.c (syms_of_fileio):
5656 * fileio.c (syms_of_fileio):
5657 * eval.c (syms_of_eval):
5658 * doc.c (syms_of_doc):
5659 * dispnew.c (syms_of_display):
5660 * dired.c (syms_of_dired):
5661 * dbusbind.c (syms_of_dbusbind):
5662 * data.c (syms_of_data):
5663 * composite.c (syms_of_composite):
5664 * coding.c (syms_of_coding):
5665 * cmds.c (syms_of_cmds):
5666 * charset.c (define_charset_internal, syms_of_character):
5667 * ccl.c (syms_of_ccl):
5668 * category.c (syms_of_category, init_category_once):
5669 * casetab.c (syms_of_casetab):
5670 * casefiddle.c (syms_of_casefiddle):
5671 * callint.c (syms_of_callint):
5672 * bytecode.c (syms_of_bytecode):
5673 * buffer.c (keys_of_buffer, syms_of_buffer):
5674 * alloc.c (syms_of_alloc):
5675 * process.c (syms_of_process, init_process):
5676 * lread.c (syms_of_lread, init_obarray):
5677 * font.c (build_style_table):
5678 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5679 intern_c_string, calls to make_pure_string with
5680 make_pure_c_string. Use pure_cons instead of Fcons.
5681
5e2327cf
DN
5682 * process.c (socket_options): Make it const.
5683 (set_socket_option, init_process): Use a const pointer.
5684
5685 * lread.c (intern_c_string): New function.
5686 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5687 (defvar_int): Uset it. Make the name const char*.
5688
5689 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5690 (defvar_int): Update prototypes.
5691 (DEFUN, EXFUN): Support for prototypes is now required.
5692 (intern_c_string): New prototype.
5693 (struct Lisp_Subr): Make symbol_name constant.
5694
5695 * font.c (struct table_entry): Remove unused member. Make NAMES
5696 constant.
5697 (weight_table, slant_table, width_table): Make constant.
5698
5699 * emacs.c (struct standard_args): Make name and longname constant.
5700
5701 * character.h (DEFSYM): Use intern_c_string.
5702
a56eaaef
DN
57032009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5704
5705 * alloc.c (make_pure_c_string): New function.
5706
5707 * eval.c (Fautoload): Purecopy all arguments.
5708
f6a07420
KH
57092009-11-05 Kenichi Handa <handa@m17n.org>
5710
5711 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5712 the buffer in case of replace.
5713
5d28d4b1
DN
57142009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5715
5716 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5717
b349d111
SM
57182009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5719
d528b1ce
SM
5720 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5721 when applicable (bug#4851).
5722
b349d111
SM
5723 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5724 (P_): Support for prototypes is now required.
5725
c38eb027
CY
57262009-10-31 Chong Yidong <cyd@stupidchicken.com>
5727
5728 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5729 (Bug#4827).
5730
0405f8d9
EZ
57312009-10-30 Eli Zaretskii <eliz@gnu.org>
5732
d528b1ce 5733 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5734
ca0a881a
DN
57352009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5736
5737 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5738
d528b1ce
SM
5739 * lread.c (Fload): Purecopy the file name when building
5740 Vpreloaded_file_list.
ca0a881a 5741
47e0e0e4
JR
57422009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5743
5744 * w32fns.c (syms_of_w32fns): Change default value of
5745 w32-scroll-lock-modifier to nil. (Bug#2827)
5746
057bce6f
JB
57472009-10-26 Juanma Barranquero <lekktu@gmail.com>
5748
782a943e 5749 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5750
242bc74c
AS
57512009-10-26 Andreas Schwab <schwab@redhat.com>
5752
5753 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5754
522d013a
JB
57552009-10-26 Juanma Barranquero <lekktu@gmail.com>
5756
5757 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5758 For delta < 0, skip check that only makes sense when the mini-window
5759 is going to be enlarged. (Bug#4534)
5760
18060980
CY
57612009-10-25 Chong Yidong <cyd@stupidchicken.com>
5762
5763 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5764 string in menu maps (Bug#4471).
5765
fec8f0fe
CY
57662009-10-24 Chong Yidong <cyd@stupidchicken.com>
5767
5768 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5769 FRAME_NS_VIEW on terminal frames (Bug#4765).
5770
10d66ec0
AS
57712009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5772
1cae01f7
AS
5773 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5774 DBUS_TYPE_UINTnn separately to get proper sign extension.
5775
58a12889
AS
5776 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5777 can properly handle unsigned types.
d528b1ce 5778 (make_uid, make_gid): Remove.
58a12889 5779
987c9327
AS
5780 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5781 types again.
5782
522d013a 5783 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5784 (system_process_attributes): Likewise.
5785
905a9ed3
DN
57862009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5787
5788 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5789
5790 * eval.c (Fautoload): Purecopy the filename. Simplify.
5791
5792 * category.c (Fdefine_category): Purecopy docstring.
5793
a599b3e8
AS
57942009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5795
7b792fc9
AS
5796 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5797
a599b3e8
AS
5798 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5799
b35ac83e
CY
58002009-10-23 Chong Yidong <cyd@stupidchicken.com>
5801
5802 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5803 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5804 (Bug#4775).
5805
e8903e00
SM
58062009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5807
5808 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5809 (init_fileio_once):
5810 * lisp.h (init_fileio_once): Remove.
5811 * emacs.c (main): Don't call init_fileio_once.
5812
8f43cbf3
DN
58132009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5814
5815 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5816
26898943
AS
58172009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5818
5819 * doprnt.c (doprnt): Fix overflow check.
5820
5c646d5a
JD
58212009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5822
3132a7ea
JD
5823 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5824
5c646d5a
JD
5825 * xterm.h (x_wait_for_event): Declare it.
5826
5827 * xterm.c (pending_event_wait): New variable.
5828 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5829 see pending_event_wait.eventtype.
5830 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5831 (x_new_font): Call change_frame_size with new rows/columns before we
5832 try to resize the frame.
5c646d5a 5833 (x_wait_for_event): New function.
d528b1ce
SM
5834 (x_set_window_size_1): Don't change gravity unless change_gravity
5835 is set.
5c646d5a
JD
5836 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5837 don't change frame size, instead wait for the ConfigureNotify.
5838 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5839 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5840 (x_initialize): Initialize pending_event_wait.
5841
5842 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5843 size.
5844
5845 * widget.c (EmacsFrameSetValues): Add comment.
5846 (EmacsFrameSetCharSize): Just call x_set_window_size.
5847
5848 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5849 x_wait_for_event.
d528b1ce 5850 (flush_and_sync): Remove again.
5c646d5a
JD
5851 (xg_get_font_name): Suggest monospace if no previous font is known.
5852
e9c1637d
SM
58532009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5854
5855 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5856 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5857
5a72cccb
YM
58582009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5859
5860 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5861 processing pending events when event is filtered for input method.
ab04798f 5862 (Bug#3681)
5a72cccb 5863
2629aa37
JB
58642009-10-20 Juanma Barranquero <lekktu@gmail.com>
5865
5866 * fns.c: Add #endif accidentally removed in previous change.
5867
c3417a74
DN
58682009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5869
5870 * fns.c: Remove code for unsupported system: MAC_OS.
5871 * image.c: Likewise. Include setjmp.h.
5872
9685cef2
JD
58732009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5874
5875 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5876 pixel -1 (bug #4742).
5877
d7306fe6
DN
58782009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5879
019d2c4c
DN
5880 * process.c (create_pty): Remove conditionals for no longer
5881 supported systems: UNIPLUS and RTU.
5882
ee6bacd4
DN
5883 * xterm.c:
5884 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5885
d7306fe6
DN
5886 * alloc.c: Do not define struct catchtag.
5887 * eval.c: Move struct catchtag definition ...
5888 * lisp.h: ... here.
5889
5890 * image.c: Move png.h #include earlier to avoid warnings.
5891
5892 * xterm.c:
5893 * xsmfns.c:
5894 * xselect.c:
5895 * xrdb.c:
5896 * xmenu.c:
5897 * xftfont.c:
5898 * xfont.c:
5899 * xfns.c:
5900 * xfaces.c:
5901 * xdisp.c:
5902 * window.c:
5903 * widget.c:
5904 * w32xfns.c:
5905 * w32uniscribe.c:
5906 * w32term.c:
5907 * w32select.c:
5908 * w32reg.c:
5909 * w32proc.c:
5910 * w32menu.c:
5911 * w32inevt.c:
5912 * w32heap.c:
5913 * w32font.c:
5914 * w32fns.c:
5915 * w32console.c:
5916 * w32.c:
5917 * w16select.c:
5918 * vm-limit.c:
5919 * unexsol.c:
5920 * unexec.c:
5921 * unexcw.c:
5922 * unexaix.c:
5923 * undo.c:
5924 * tparam.c:
5925 * textprop.c:
5926 * terminfo.c:
5927 * terminal.c:
5928 * termcap.c:
5929 * term.c:
5930 * syntax.c:
5931 * sound.c:
5932 * sheap.c:
5933 * search.c:
5934 * scroll.c:
5935 * region-cache.c:
5936 * regex.c:
5937 * ralloc.c:
5938 * process.c:
5939 * print.c:
b024548b
DN
5940 * nsterm.m:
5941 * nsselect.m:
5942 * nsmenu.m:
5943 * nsimage.m:
5944 * nsfont.m:
5945 * nsfns.m:
d7306fe6
DN
5946 * msdos.c:
5947 * minibuf.c:
5948 * menu.c:
5949 * marker.c:
5950 * macros.c:
5951 * keymap.c:
5952 * keyboard.c:
5953 * intervals.c:
5954 * insdel.c:
5955 * indent.c:
5956 * gtkutil.c:
5957 * ftxfont.c:
5958 * ftfont.c:
5959 * fringe.c:
5960 * frame.c:
5961 * fontset.c:
5962 * font.c:
5963 * fns.c:
5964 * floatfns.c:
5965 * filelock.c:
5966 * fileio.c:
5967 * emacs.c:
5968 * editfns.c:
5969 * dosfns.c:
5970 * doprnt.c:
5971 * doc.c:
5972 * dispnew.c:
5973 * dired.c:
5974 * dbusbind.c:
5975 * data.c:
5976 * composite.c:
5977 * coding.c:
5978 * cmds.c:
5979 * cm.c:
5980 * chartab.c:
5981 * charset.c:
5982 * character.c:
5983 * ccl.c:
5984 * category.c:
5985 * casetab.c:
5986 * casefiddle.c:
5987 * callproc.c:
5988 * callint.c:
5989 * bytecode.c:
5990 * buffer.c:
5991 * atimer.c: Include setjmp.h. (Bug#4643)
5992
fd5f21e6
SM
59932009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5994
4c0354d7
SM
5995 Remove leftover table unibyte_to_multibyte_table.
5996 * character.c (unibyte_to_multibyte_table): Remove.
5997 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5998 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5999 * character.h (UNIBYTE_TO_CHAR): New macro.
6000 (MAKE_CHAR_MULTIBYTE): Use it.
6001 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6002 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6003 (message_dolog, set_message_1):
6004 * search.c (Freplace_match):
6005 * editfns.c (Fcompare_buffer_substrings):
6006 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6007 (concat):
6008 * insdel.c (copy_text, count_size_as_multibyte):
6009 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6010 * term.c (produce_glyphs):
6011 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6012 * regex.c (RE_CHAR_TO_MULTIBYTE):
6013 * cmds.c (internal_self_insert):
6014 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6015
fd5f21e6
SM
6016 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6017
4418646e
DN
60182009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6019
6020 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6021
35f5c1d2
JB
60222009-10-16 Juanma Barranquero <lekktu@gmail.com>
6023
6024 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6025
a0cd8f6b
AR
60262009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6027
6028 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6029 still needed under Tiger.
6030
6031 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6032
6033 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6034 __Apple__.
6035
6036 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6037
01a8d3fa
KH
60382009-10-15 Kenichi Handa <handa@m17n.org>
6039
6040 * print.c (print_object): Escape a symbol like "2E10" too.
6041
bf6c75c9 60422009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6043
6044 Cleanups and changes for 64-bit compile under Snow Leopard.
6045 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6046
6047 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6048
c5959062 6049 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6050 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6051 cast argument.
6052 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6053 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6054
6055 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6056
6057 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6058 where appropriate.
6059
6060 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6061 where appropriate.
6e4780c5
JB
6062 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6063 Use stringWithUTF8String.
bf6c75c9
AR
6064 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6065
6e4780c5
JB
6066 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6067 Add formal protocol mention to inheritance.
bf6c75c9
AR
6068 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6069
6e4780c5
JB
6070 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6071 Fix printf format.
bf6c75c9
AR
6072 (ns_query_color): Use CGFloat where appropriate.
6073 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6074 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6075 argument.
6076
3d87f118
AR
6077 * config.in (NS_HAVE_NSINTEGER): Drop.
6078
a95c8102
AR
6079 * dbusbind.c (dbus-method-return-internal)
6080 (dbus-method-error-internal): Use long format in printf, and cast
6081 argument.
6082
6083 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6084 in printf, and cast argument.
6085
6873acca 6086 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6087 cast argument.
6088
9ec6f100
GM
60892009-10-11 Glenn Morris <rgm@gnu.org>
6090
6091 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6092
5be883cd
JD
60932009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6094
6095 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6096 menu bar with a small width so it doesn't enlarge the frame.
6097
d7a39b51
JB
60982009-10-08 Juanma Barranquero <lekktu@gmail.com>
6099
6100 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6101
0c2b6f8e
GM
61022009-10-06 Glenn Morris <rgm@gnu.org>
6103
6104 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6105 SOME_MACHINE_LISP (this enters indirectly via DOC).
6106
e02131a2
EZ
61072009-10-05 Eli Zaretskii <eliz@gnu.org>
6108
6109 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6110
b4744254
EZ
61112009-10-04 Eli Zaretskii <eliz@gnu.org>
6112
6113 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6114 Doc fix.
6115
dbf64827
JB
61162009-10-03 Martin Rudalics <rudalics@gmx.at>
6117
6118 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6119
e9a0aef8
MA
61202009-10-02 Michael Albinus <michael.albinus@gmx.de>
6121
d528b1ce 6122 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6123 used anymore outside fileio.c.
6124
6125 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6126
64eb2b56
JB
61272009-10-01 Juanma Barranquero <lekktu@gmail.com>
6128
6129 * lisp.h (Qdelete_directory_internal):
6130 Declare, instead of Qdelete_directory.
6131
6132 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6133
9d28c33e
SM
61342009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6135
6136 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6137
9d8f3bd9
MA
61382009-10-01 Michael Albinus <michael.albinus@gmx.de>
6139
9d28c33e 6140 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6141 Fdelete_directory. It is not a command anymore. It has no file
6142 name handler.
6143
9694740b
SM
61442009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6145
6146 * xdisp.c (get_next_display_element): Use an enum in last change.
6147
748e162f
KH
61482009-09-28 Kenichi Handa <handa@m17n.org>
6149
9694740b 6150 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6151 unibyte_display_via_language_environment in handling
6152 Vnobreak_char_display.
6153
17efd58d
AR
61542009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6155
6156 * nsterm.h (ns_app_name): New extern variable.
6157
6158 * nsterm.m (ns_app_name): New variable.
6159 (ns_term_init): Set and use it.
6160 (ns_term_shutdown): Use it.
6161
6162 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6163 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6164
6165 * nsfns.m (ns_set_name_iconic, ns_set_name)
6166 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6167 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6168
9694740b
SM
6169 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6170 Remove double-casting in client_data comparison.
31c2d412 6171
3208cb35
YM
61722009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6173
6174 * keyboard.c (make_lispy_event): Remember last wheel direction.
6175 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6176
b7d552d6
GM
61772009-09-26 Glenn Morris <rgm@gnu.org>
6178
6179 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6180 internal.elc. Add term/pc-win.elc.
6181 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6182 term/x-win.elc.
6183 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6184 term/w32-win.elc.
6185 (NS_SUPPORT): New.
6186 (lisp): Add NS_SUPPORT.
6187 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6188
4ff670a8
DR
61892009-09-25 David Reitter <david.reitter@gmail.com>
6190
6191 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6192 on Mac OS X 10.6+ (bug#4513).
6193
feabfb6c
JB
61942009-09-24 Juanma Barranquero <lekktu@gmail.com>
6195
6196 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6197 some parts of Emacs code (like font selection) don't grok them.
6198 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6199
de59072a
AS
62002009-09-24 Andreas Schwab <schwab@redhat.com>
6201
6202 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6203
a489517b
JB
62042009-09-24 Juanma Barranquero <lekktu@gmail.com>
6205
6206 * dired.c (Fdirectory_files): Fix typo in docstring.
6207
0592970c
AR
62082009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6209
6210 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6211 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6212 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6213 under GNUstep.
6214 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6215
6216 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6217 glyph advancement.
6218
48e8a88b
AR
62192009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6220
6221 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6222 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6223
6224 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6225 deleted (bug #4492).
6226
e14f0a78
AR
6227 * nsfont.m (Vns_reg_to_script): New lisp variable.
6228 (syms_of_nsfont): Declare it.
6229 (ns_registry_to_script): New function.
6230 (ns_get_req_script): Call it.
6231 (ns_findfonts): Don't give up on non-unicode registry.
6232
6233 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6234
5b650faa
SM
62352009-09-20 Tom Tromey <tromey@redhat.com>
6236
6237 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6238 batch mode (bug#4228).
6239
a489517b 62402009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6241
6242 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6243 carefully. (Bug #4339)
0bae4e09 6244
fcfe06f3
CY
62452009-09-18 Chong Yidong <cyd@stupidchicken.com>
6246
d798ba87 6247 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6248
31642728
AR
62492009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6250
6251 * emacs.c (inhibit_x_resources): Update doc string for NS.
6252 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6253 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6254
6255 * nsterm.h (ns_no_defaults): Remove.
6256
6257 * nsterm.m (ns_no_defaults): Remove.
6258 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6259 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6260 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6261 don't update the NSWindow itself.
6262 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6263 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6264
6265 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6266 ns_use_qd_smoothing.
6267
6268 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6269 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6270 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6271 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6272
8686ac71
JB
62732009-09-17 Juanma Barranquero <lekktu@gmail.com>
6274
6275 * emacs.c (inhibit_x_resources): New variable.
6276 (main) [HAVE_NS]: Don't process --quick command line option.
6277 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6278
6279 * lisp.h (inhibit_x_resources): Declare it extern.
6280
6281 * w32reg.c (x_get_string_resource):
6282 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6283
e227ba05
EZ
62842009-09-17 Eli Zaretskii <eliz@gnu.org>
6285
362654a6
JB
6286 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6287 Add lisp/term/internal.elc.
e227ba05 6288
742d40e8
SM
62892009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6290
6291 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6292 (bug#4461).
6293
005bd5a2
DN
62942009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6295
6296 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6297
6298 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6299 (OBJECTS_MACHINE): Remove, unused.
6300
f9af9719
SM
63012009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6302
6303 * frame.c (x_get_resource_string): Remove unused.
6304
0307c7d2
JD
63052009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6306
6307 * xterm.c (x_new_font): Call change_frame_size before calling
6308 x_set_window_size, in case frame size won't change.
6309
6310 * frame.c (x_set_font): Remove dead code.
6311
428b13d6
SM
63122009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6313
6314 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6315
5766c380
SM
63162009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6317
6318 * lread.c (Fload): Don't output a message after loading an obsolete
6319 package any more (done in Lisp now).
6320
2fd0161b
CY
63212009-09-12 Chong Yidong <cyd@stupidchicken.com>
6322
6323 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6324
bc5e75b6
SM
63252009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6326
6327 * keymap.c (Fwhere_is_internal): Use nconc2.
6328
c31c985e
AM
63292009-09-11 Alan Mackenzie <acm@muc.de>
6330
6331 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6332 batch mode.
6333
78012bd2
AS
63342009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6335
6336 * xdisp.c (display_mode_element): Detect cycles.
6337
9d889332
SM
63382009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6339
6340 * keymap.c (where_is_internal): Don't erroneously return nil right after
6341 filling the cache.
6342 (where_is_internal_1): Fix up typo.
6343
7ab5d780
GM
63442009-09-11 Glenn Morris <rgm@gnu.org>
6345
6346 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6347 share a common doc-string.
6348
5238a749
SM
63492009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6350
66d77eda
SM
6351 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6352 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6353
5238a749
SM
6354 * keymap.c (QCadvertised_binding): New constant.
6355 (syms_of_keymap): Initialize it.
6356 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6357 if applicable.
6358
19f48442
SM
63592009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6360
50d4ba39
SM
6361 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6362 (parse_menu_item): Streamline since bindings are recomputed all the
6363 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6364 more and don't support lmenu's menu-alias any more either.
6365
a88a5372
SM
6366 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6367 (where_is_internal): Strip it down to only traverse the keymaps.
6368 Move the cache handling from Fwhere_is_internal to here.
6369 (Fwhere_is_internal): Move the handling of remapping and the choice of
6370 the best binding from where_is_internal to here.
6371 Unify the cached/noncached paths, so remapping is also handled
6372 correctly when the cache is used, and so the cache can be used to
6373 speed up remap-handling when applicable.
6374 Give preference to non-remapped bindings.
6375 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6376 non-remapped bindings.
6377 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6378 command remapping.
6379
19f48442
SM
6380 * xdisp.c (display_mode_element): Move list length limit from 50 to
6381 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6382
599498c3 63832009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6384
6385 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6386
f9b7b5ac
SM
63872009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6388
a53af587
JB
6389 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6390 (Bug#4334)
6391
f9b7b5ac
SM
6392 * keymap.c (where_is_internal): Filter out shadowed remappings.
6393 Assume that where_is_internal returns unshadowed bindings to simplify
6394 the code and get rid of the gotos. Use ASIZE.
6395
04f4b72d
JD
63962009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6397
4da146f2
JD
6398 * xterm.c (x_focus_changed): If we get a focusout and pointer
6399 is invisible, make it visible.
6400
04f4b72d
JD
6401 * xterm.h: Remove condition for declaration of
6402 x_*_window_to_frame.
6403
7cef7ce3
SM
64042009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6405
6406 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6407 initial terminal as well.
6408
a54fa5b7
JD
64092009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6410
6411 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6412 x_menubar_window_to_frame.
a54fa5b7 6413
50426a04 6414 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6415 (XTmouse_position): Do not return valid positions
6416 for clicks in the menubar and the toolbar for Gtk+.
6417
6418 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6419 if the widget for the event has the same top level as a frame,
6420 return the frame.
6421 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6422 internal windows, bug #4122.
6423 (x_non_menubar_window_to_frame): Remove.
6424
5a021dd0
GM
64252009-09-02 Glenn Morris <rgm@gnu.org>
6426
6427 * buffer.c (default-major-mode): Move most of the doc from here...
6428 (major-mode): ... to here.
6429
548fe2f3
NR
64302009-08-30 Nick Roberts <nickrob@snap.net.nz>
6431
6432 * process.c (wait_reading_process_output): Keep the descriptor
6433 when pty is used by a non-child process, e.g., in I/O buffer of
6434 GDB this allows inferior to be restarted.
6435
e0840eef
EZ
64362009-08-29 Eli Zaretskii <eliz@gnu.org>
6437
6438 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6439 both branches into one.
6440
82e98df4
SM
64412009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6442
6443 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6444 (main): Use enable-multibyte-characters rather than
6445 default-enable-multibyte-characters. Output a warning message when
6446 running a unibyte session.
6447
890617cb
YM
64482009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6449
6450 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6451 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6452 (copy_data_segment): Also copy __program_vars section.
6453 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6454 (dump_it) [LC_DYLD_INFO]: Use it.
6455
6456 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6457
e7adeadc
EZ
64582009-08-28 Eli Zaretskii <eliz@gnu.org>
6459
6460 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6461 $(SRC)/buildobj.h.
6462 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6463 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6464 $(SRC)/buildobj.h.
6465 (clean): Add buildobj.h.
6466
3ed8bbdc
TZ
64672009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6468
6469 * print.c (print_object): Set escapeflag to 1 when printing
6470 hashtable keys and values.
6471
155a6764
SM
64722009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6473
6474 * lread.c (read_integer): Use doubles (and potentially return a float
6475 number) as we do in string-to-number.
6476 (read1): Use strtol to read integers, signal errors on strtol's
6477 overflow and use floats if strtol's output is too large for
6478 Elisp integers.
6479
877610de
EZ
64802009-08-27 Eli Zaretskii <eliz@gnu.org>
6481
6482 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6483 (make-buildobj-SH): Fix last change.
6484 (SRC): Move to before where it's first used.
6485
ef73e7be
KH
64862009-08-27 Kenichi Handa <handa@m17n.org>
6487
550c8289
KH
6488 * process.c (send_process): Use encode_coding_object instead of
6489 encode_coding_string to perform eol-conversion even if the string
6490 is unibyte.
6491
60afa08d
KH
6492 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6493 character.
6494
ef73e7be 6495 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6496 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6497
7b3a82d7
DN
64982009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6499
5654bf63
DN
6500 * callproc.c (Fcall_process): Remove always true #if.
6501
7b3a82d7
DN
6502 * lisp.h: Replace #if 0 code for checking with text pointing to
6503 the --enable-checking configure flag.
6504
6505 * emacs.c (main): Mention the --enable-profiling configure flag
6506 instead of using CFLAGS.
6507
878bde49
KR
65082009-08-26 Ken Raeburn <raeburn@raeburn.org>
6509
6510 * Makefile.in (buildobj.h): New target.
6511 (doc.o): Depend on it.
6512 (temacs${EXEEXT}): Don't generate buildobj.lst.
6513 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6514 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6515 ($(BLD)/doc.$(O)): Depend on it.
6516 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6517 provided by Eli Zaretskii.)
6518 ($(TEMACS)): Don't generate buildobj.lst.
6519 * doc.c: Include buildobj.h.
6520 (buildobj): New static variable.
6521 (Fsnarf_documentation): Use it, instead of opening and reading
6522 buildobj.lst.
6523
1574224c
MA
65242009-08-25 Michael Albinus <michael.albinus@gmx.de>
6525
6526 * dbusbind.c (Fdbus_call_method)
6527 (Fdbus_call_method_asynchronously): Use English numeric format for
6528 timeout values in doc string.
6529
d9da2f45
KH
65302009-08-25 Kenichi Handa <handa@m17n.org>
6531
ef73e7be
KH
6532 * alloc.c (mark_char_table): New function.
6533 (mark_object): Use mark_char_table for a char-table.
6534
d9da2f45
KH
6535 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6536 (CHAR_TABLE_REF): Use it.
6537
c8edcc01
KR
65382009-08-23 Ken Raeburn <raeburn@raeburn.org>
6539
6540 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6541 before invoking the newly build emacs to check for load-path
6542 shadowing.
6543
7763401b
GM
65442009-08-22 Glenn Morris <rgm@gnu.org>
6545
6546 * Makefile.in (bootstrap_exe): New variable.
6547 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6548 Use ${bootstrap_exe}.
6549
729eadda
EZ
65502009-08-22 Eli Zaretskii <eliz@gnu.org>
6551
6552 * coding.h (encode_coding_string): Don't encode unibyte strings.
6553 (Bug#4047)
6554
eb4c6ace
MA
65552009-08-22 Michael Albinus <michael.albinus@gmx.de>
6556
6557 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6558
6559 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6560 intended as hotfix only.
6561 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6562
36e34d1b
AR
65632009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6564
6565 * nsterm.m (ns_get_color): Update documentation properly for last
6566 change, and clean up loose ends in the code left by it. Fix
6567 longstanding bug with 16-bit hex parsing, and add support for
6568 yet another X11 format (rgb:r/g/b) for compatibility.
6569 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6570 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6571
f983eb8a
SM
65722009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6573
6574 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6575
3f56d3c6
MA
65762009-08-20 Michael Albinus <michael.albinus@gmx.de>
6577
6578 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6579 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6580 (xd_initialize, xd_pending_messages): Check, whether
6581 $DBUS_SESSION_BUS_ADDRESS is set.
6582
fb641d68
YM
65832009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6584
6585 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6586
6587 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6588
cf59a374
GM
65892009-08-20 Glenn Morris <rgm@gnu.org>
6590
6591 * emacs.c (system-type): Doc fix.
6592
1373f3be
SM
65932009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6594
6595 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6596 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6597
058ed861
MA
65982009-08-18 Michael Albinus <michael.albinus@gmx.de>
6599
1373f3be
SM
6600 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6601 New functions.
058ed861
MA
6602 (xd_initialize): Revert change from 2009-08-16.
6603
563a866e 66042009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6605
6606 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6607 font-group vector, return nil.
5fc05db0 6608
e42bdf01
CY
66092009-08-17 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * process.c (status_notify): Don't perform redisplay.
6612 (Fdelete_process, list_processes_1, process_send_signal):
6613 Expliticly perform redisplay.
6614 (wait_reading_process_output): Always check process status, but
6615 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6616
4230ab74
KR
66172009-08-17 Ken Raeburn <raeburn@raeburn.org>
6618
1373f3be 6619 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6620 (XFLOAT_INIT): New macro for storing a float value.
6621 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6622 * fns.c (sxhash): Copy out the value of a float in order to
6623 examine its bytes.
6624 * dbusbind.c (xd_append_arg): Likewise.
6625
4230ab74
KR
6626 * emacs.c (main): Don't call syms_of_data twice.
6627
a0645cdd
MA
66282009-08-16 Michael Albinus <michael.albinus@gmx.de>
6629
6630 * dbusbind.c (xd_initialize): Add connection file descriptor to
6631 input_wait_mask, in order to let select() detect, whether a new
6632 message has been arrived.
ca4f31ea 6633 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6634
485db0ba
MA
66352009-08-15 Michael Albinus <michael.albinus@gmx.de>
6636
1373f3be
SM
6637 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6638 New functions.
485db0ba
MA
6639
6640 * lisp.h (xd_pending_messages): Declare.
6641
6642 * keyboard.c (readable_events): Call xd_pending_messages.
6643
b5b98ff4
CY
66442009-08-15 Chong Yidong <cyd@stupidchicken.com>
6645
1373f3be 6646 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6647
f8354c6e
CY
6648 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6649
b5b98ff4
CY
6650 * buffer.c (set_buffer_internal_1)
6651 (swap_out_buffer_local_variables): Check for unbound local
6652 variables (Bug#4138).
6653
8b9fc636
EZ
66542009-08-14 Eli Zaretskii <eliz@gnu.org>
6655
6656 * process.c (create_pty): Fix last change.
6657
ce959360
CY
66582009-08-13 Chong Yidong <cyd@stupidchicken.com>
6659
6660 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6661 (xbm_load_image): Caller changed.
64b807c9 6662 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6663
c7baf7e9
NR
66642009-08-13 Nick Roberts <nickrob@snap.net.nz>
6665
6666 * process.c (create_pty): New function.
6667 (Fstart_process): Use it to allow Emacs to just associate a pty
6668 with the buffer. See associated change in gdb-mi.el.
6669 (list_processes_1): Deal with no program name.
6670 (start_process_unwind): Use pid == -2 to mean no process.
6671
1ac9108a
SM
66722009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6673
6674 * cmds.c (nonundocount): New global variable.
6675 (keys_of_cmds): Initialize it.
6676 (Fself_insert_command): Use it to combine upto 20 sequential chars
6677 into a single undo entry, just like the Qself_insert_command code in
6678 keyboard.c does.
6679 Call frame_make_pointer_invisible, also like the Qself_insert_command
6680 code in keyboard.c does.
6681 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6682 than its own local replacement for it.
6683
e267324c
KR
66842009-08-10 Ken Raeburn <raeburn@raeburn.org>
6685
1ac9108a 6686 * fns.c (concat): Don't re-set string length to its current value.
77437343 6687
1ac9108a
SM
6688 * coding.h (decode_coding_string, encode_coding_string):
6689 Use SBYTES macro.
f0bed503 6690
1ac9108a 6691 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6692 (doprnt): Merge with doprnt1, discarding lispstrings code.
6693 * lisp.h (doprnt_lisp): Don't declare.
6694
416e006d
JL
66952009-08-07 Juri Linkov <juri@jurta.org>
6696
6697 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6698
6f7d5780
DN
66992009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6700
6701 * print.c (syms_of_print): Undo previous change.
6702
f19a0f5b
TZ
67032009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6704
6705 * lread.c (read1, syms_of_lread): Read hashtables back from the
6706 readable format.
6707
6708 * print.c (print_preprocess, print_object): Print hashtables fully
6709 and readably.
6710 (syms_of_print): Provide 'hashtable-print-readable.
6711
b9173dc2
AR
67122009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6713
6714 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6715 no family set.
6716 (nsfont_open): Handle case when entity has no family.
6717
1586503c
AR
67182009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6719
6720 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6721 element, not a list, for match case.
6722
087048cd
KH
67232009-07-28 Kenichi Handa <handa@m17n.org>
6724
6725 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6726 rigidly.
6727
6728 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6729 font_parse_xlfd. Check font properties more rigidly.
6730
780c2506
DN
67312009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6732
31fd7c5c
JB
6733 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6734 bsd-common.h.
780c2506 6735
a8c0cc18
KH
67362009-07-27 Kenichi Handa <handa@m17n.org>
6737
6738 * xfaces.c (face_with_height): Call font_clear_prop.
6739
4fbe2306
CY
67402009-07-26 Chong Yidong <cyd@stupidchicken.com>
6741
111d9af3
CY
6742 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6743
6744 * xterm.c (x_term_init): Use Qx.
6745
4fbe2306
CY
6746 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6747
1ac9108a 6748 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6749 (ns_get_color): Revert 2009-07-16 change.
6750
beb0b7f9
EZ
67512009-07-25 Eli Zaretskii <eliz@gnu.org>
6752
6753 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6754 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6755
2baf5e76
KR
67562009-07-25 Ken Raeburn <raeburn@raeburn.org>
6757
1ac9108a
SM
6758 * coding.h (decode_coding_string, encode_coding_string):
6759 Use SCHARS macro.
8890e5f5 6760
2baf5e76 6761 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6762 (load_depth): Delete.
2baf5e76
KR
6763 (Qload_in_progress): New variable.
6764 (load_unwind): Don't reference load_depth or load_in_progress.
6765 (Fload): Likewise; specbind Qload_in_progress instead.
6766 (init_lread): Don't initialize load_depth.
6767 (syms_of_lread): Initialize and protect Qload_in_progress.
6768
1395c6f5
AR
67692009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6770
6771 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6772
4e2f36cf
AR
67732009-07-23 Yavor Doganov <yavor@gnu.org>
6774
6775 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6776
5dd9a6f7
AR
67772009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6778
6779 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6780 Bugs 3792, 3720, 2402.
6781 (ns_lookup_indexed_color): Check for bad index.
6782 (ns_index_color): Init unused slot to 0.
6783 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6784 Bug 3714, possibly 3082.
5dd9a6f7 6785
c902b920
JR
67862009-07-22 Jason Rumney <jasonr@gnu.org>
6787
1ac9108a
SM
6788 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6789 Position IME window at cursor (Bug#2570).
c902b920
JR
6790 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6791 (globals_of_w32fns): Dynamically load functions required above.
6792
6793 * w32term.c (w32_draw_window_cursor): Send message to reposition
6794 any IME window.
6795
090101cf
CY
67962009-07-21 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * fileio.c: Revert 2009-07-16 changes.
6799 (Vauto_save_include_big_deletions): New variable.
6800 (Fdo_auto_save): Disable auto-save only if
6801 auto-save-include-big-deletions is nil.
6802
e6583e3d
CY
68032009-07-21 Chong Yidong <cyd@stupidchicken.com>
6804
6805 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6806 the overflowed pixels into account (Bug#3879).
6807
ece435a5
KR
68082009-07-21 Ken Raeburn <raeburn@raeburn.org>
6809
6810 * lread.c (load_depth): New variable.
6811 (Fload, load_unwind, init_lread): Set it to the load recursion
6812 depth; set load_in_progress as a simple boolean based on the
6813 current load_depth. (Bug#3892)
6814
40b2d973
AR
68152009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6816
6817 * nsfont.m (ns_has_attribute): Remove.
6818 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6819
10be7e0d
JL
68202009-07-18 Juri Linkov <juri@jurta.org>
6821
6822 * process.c (Fset_process_query_on_exit_flag): Mention killing
6823 a buffer in docstring.
6824
fa055055
KH
68252009-07-17 Kenichi Handa <handa@m17n.org>
6826
6827 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6828
042f7b69
YM
68292009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6830
6831 * nsfns.m (Fns_set_alpha): Remove function.
6832 (syms_of_nsfns): Don't defsubr it.
6833
6834 * nsterm.m (ns_get_color): Remove incompatible color formats.
6835 (ns_color_to_lisp): Generate #rrggbb color format string.
6836
4be941e3
RS
68372009-07-16 Richard Stallman <rms@gnu.org>
6838
6839 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6840 (Fset_buffer_auto_saved): Handle save_length = -2.
6841
4e6b227d
CY
68422009-07-16 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * xterm.c (Qx_gtk_map_stock): New var.
6845
6846 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6847 of calling intern each time.
6848
a1856973
YM
68492009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6850
6851 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6852 does tiling.
6853
6854 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6855
497e54d8
KH
68562009-07-14 Kenichi Handa <handa@m17n.org>
6857
72d36834
KH
6858 * font.c (font_vconcat_entity_vectors): New function.
6859 (struct font_sort_data): New member font_driver_preference.
6860 (font_compare): Check font_driver_preference.
6861 (font_sort_entities): The format of the first argument changed.
6862 (font_delete_unmatched): Likewise.
6863 (font_list_entities): The return type changed.
6864 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6865 (font_find_for_lface): Adjuste for the above changes.
6866 Don't suppress the checking of C even if the repertory supports it.
6867 (Flist_fonts): Adjust for the above changes.
72d36834 6868
1ac9108a
SM
6869 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6870 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6871 Reject a font who has adstyle property that is different from a
6872 langname derived from registry property.
1ac9108a 6873 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6874
b6046155
EZ
68752009-07-13 Eli Zaretskii <eliz@gnu.org>
6876
6877 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6878 local copy of dirfilename.
6879
fb6b6049
KH
68802009-07-13 Kenichi Handa <handa@m17n.org>
6881
e2402a5e
KH
6882 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6883 against max_char.
6884
fb6b6049
KH
6885 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6886 calling XSYMBOL (sym).
6887
65156807
EZ
68882009-07-11 Eli Zaretskii <eliz@gnu.org>
6889
1ac9108a
SM
6890 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6891 New function.
6892 (directory_files_internal) [WINDOWSNT]:
6893 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6894 the filesystem of the directory is fast or slow.
6895
6896 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6897 file name.
6898 (is_slow_fs): New function.
6899 (stat): Use it to determine whether to issue more system calls to
6900 get accurate file attributes, when w32-get-true-file-attributes is
6901 `local'.
6902
e0ab5fcf
JD
69032009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6904
6905 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6906 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6907 parameter font-parameter as default to the font dialog.
6908
784ceded
KH
69092009-07-10 Kenichi Handa <handa@m17n.org>
6910
6911 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6912
fb8edc0b
EZ
69132009-07-09 Eli Zaretskii <eliz@gnu.org>
6914
1ac9108a 6915 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6916
fb8edc0b
EZ
6917 * w32.c (stat): Treat UNC file names as residing on remote
6918 drives. (Bug#3542)
6919
635c75b1
KH
69202009-07-09 Kenichi Handa <handa@m17n.org>
6921
6922 * fontset.c (fontset_find_font): Fix previous change.
6923
c1d5ce94
MA
69242009-07-08 Michael Albinus <michael.albinus@gmx.de>
6925
6926 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6927 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6928 error flag.
6929
edb61b39
KH
69302009-07-08 Kenichi Handa <handa@m17n.org>
6931
374bf7e4
KH
6932 * fontset.c (fontset_find_font): Fix the logic of handling
6933 charset_matched.
6934 (font_for_char): Delete unused var.
6935 (generate_ascii_font_name): Delete it.
6936
edb61b39
KH
6937 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6938
6939 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6940 (encode_coding_sjis): Fix the code range check.
6941
0f3f018c
CY
69422009-07-07 Chong Yidong <cyd@stupidchicken.com>
6943
6944 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6945 (Fexpand_file_name): Copy string data properly (Bug#3772).
6946
fcaf6f3a
JD
69472009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6948
6949 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6950 first MapNotify.
6951
6809ca75
KH
69522009-07-07 Kenichi Handa <handa@m17n.org>
6953
6954 * character.h (unibyte_has_multibyte_table): Delete extern.
6955 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6956
6957 * charset.c (Fset_charset_priority): Update charset_unibyte.
6958 (syms_of_charset): Initialize charset_unibyte.
6959
6960 * character.c (unibyte_has_multibyte_table): Delete it.
6961 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6962 charset_unibyte.
6963 (multibyte_char_to_unibyte_safe): Likewise.
6964 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6965
1ac9108a 6966 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6967 (x_produce_glyphs): Likewise.
6968
6969 * .gdbinit (xcharset): Fix the treating $arg0.
6970
ad9e2d54
EZ
69712009-07-04 Eli Zaretskii <eliz@gnu.org>
6972
6973 Emulation of `getloadavg' on MS-Windows.
50426a04 6974 * w32.c: Include float.h.
ad9e2d54
EZ
6975 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6976 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6977 (get_native_system_info, get_system_times): New functions.
6978 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6979 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6980 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6981 g_b_init_get_system_times, and num_of_processors.
6982
0a3472c7
JR
69832009-07-03 Jason Rumney <jasonr@gnu.org>
6984
6985 * w32term.c (w32_initialize): Use standard types.
6986
80904120
EZ
69872009-07-03 Eli Zaretskii <eliz@gnu.org>
6988
6989 * dired.c (Ffile_attributes): Decode user and group names by the
6990 locale's encoding. (Bug#3443)
6991
6978862d
DN
69922009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6993
f8d23104
DN
6994 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6995 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6996
6997 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6998
6999 * term.c (init_tty): Remove spurious #ifdef.
7000
6978862d
DN
7001 * m/mips.h: Mention this file is also used for netbsd.
7002 * m/pmax.h: Remove file.
7003
e044e4fc
JD
70042009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7005
7006 * xterm.h (struct x_display_info): Add invisible_cursor.
7007 (struct x_output): Add current_cursor.
7008
7009 * xterm.c (XTtoggle_invisible_pointer): New function.
7010 (x_define_frame_cursor): Don't define cursor if invisible or the
7011 same as before. Set current_cursor.
7012 (x_create_terminal): Set toggle_invisible_pointer_hook.
7013
7014 * xfns.c (make_invisible_cursor): New function.
7015 (x_set_mouse_color): Call make_invisible_cursor.
7016 Set current_cursor.
7017 (x_window): Set current_cursor.
7018
7019 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7020
7021 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7022 inserting a character.
7023 (read_avail_input): Call frame_make_pointer_visible.
7024
7025 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7026 (frame_make_pointer_invisible, frame_make_pointer_visible):
7027 New functions.
e044e4fc
JD
7028 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7029
7030 * frame.h: Declare frame_make_pointer_invisible and
7031 frame_make_pointer_visible.
7032 (struct frame): Add pointer_invisible.
7033
574c8efa
JD
70342009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7035
7b507248
JD
7036 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7037 frame isn't visible.
7038 (xg_frame_resized): If width/height is -1, get size of window
7039 from X server.
7040
7041 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7042 for MapNotify.
7043
835bdaa7 7044 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7045 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7046 (flush_and_sync): Reintroduce.
574c8efa 7047
3f1c6666 70482009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7049
31fd7c5c 7050 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7051
7052 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7053 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7054
7055 * frame.h: Declare Qsticky.
7056
cad9ef74
JD
7057 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7058
7059 * nsfns.m (ns_frame_parm_handlers): Ditto.
7060
7061 * frame.c: Declare Qsticky.
7062 (frame_parms): Add sticky.
7063
7064 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7065
7066 * xterm.h: Declare x_set_sticky.
7067
7068 * xterm.c (x_set_sticky): New function.
7069
69b16610
JD
7070 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7071 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7072 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7073
7074 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7075
7076 * frame.c: Qmaximized is new.
7077 (x_set_frame_parameters): Do not handle fullscreen specially.
7078 Only set width and height if explicitly set.
7079 (x_set_fullscreen): Handle Qmaximized.
7080 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7081 (syms_of_frame): Initialize Qmaximized.
7082
1ac9108a
SM
7083 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7084 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7085
7086 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7087 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7088 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7089 set gravity to NorthWestGravity when USE_GTK.
7090 (set_wm_state): New function.
31fd7c5c 7091 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7092 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7093 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7094 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7095 to x_real_positions and x_fullscreen_adjust.
7096
7097 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7098 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7099 flush_and_sync.
7100 (xg_height_changed): New function.
7101 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7102 and gtk_window_set_policy. Set frame gravity after parsing the
7103 geometry string.
3f1c6666
JD
7104 (xg_update_frame_menubar, free_frame_menubar)
7105 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7106 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7107 Remove calls to xg_frame_set_char_size.
7108
fd503d99
KH
71092009-07-01 Kenichi Handa <handa@m17n.org>
7110
7111 * keyboard.c (decode_keyboard_code): New function.
7112 (tty_read_avail_input): Decode the input bytes if necessary.
7113
1ac9108a
SM
7114 * coding.c (setup_coding_system):
7115 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7116 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7117 use Qno_conversion.
7118
24ed93fb
YM
71192009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7120
7121 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7122
99061dfc
CY
71232009-06-30 Chong Yidong <cyd@stupidchicken.com>
7124
1ac9108a 7125 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7126
ff90fbde
JR
71272009-06-30 Jason Rumney <jasonr@gnu.org>
7128
7129 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7130 is already loaded.
7131 Set user model ID if supported (bug#1849).
7132
5f445726
JM
71332009-06-29 Jim Meyering <meyering@redhat.com>
7134
7135 Remove useless if-before-xfree test.
7136 * nsfont.m (nsfont_close): Remove useless test.
7137 * term.c (delete_tty): Likewise.
7138 * w32.c (system_process_attributes): Likewise.
7139 * w32font.c (w32font_close): Likewise.
7140 * xfaces.c (x_free_gc): Likewise.
7141 * xselect.c (buffer): Likewise.
7142
b9607587
AS
71432009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7144
7145 * process.c (send_process): Keep decoded string in a local
7146 variable and protect it from GC. (Bug#3521)
7147
89ba96f4
EZ
71482009-06-28 Eli Zaretskii <eliz@gnu.org>
7149
7150 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7151 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7152
098a1589
CY
71532009-06-28 Chong Yidong <cyd@stupidchicken.com>
7154
485422be
CY
7155 * xdisp.c (start_display, handle_face_prop)
7156 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7157 (redisplay_window, try_window_id, produce_image_glyph):
7158 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7159
098a1589
CY
7160 * xterm.c (x_update_window_begin, x_new_focus_frame)
7161 (x_scroll_bar_handle_click, handle_one_xevent)
7162 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7163 (x_make_frame_visible, x_make_frame_invisible)
7164 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7165 code chunks that are now obsolete.
7166
78c38319
MA
71672009-06-28 Michael Albinus <michael.albinus@gmx.de>
7168
7169 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7170 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7171 for hours, when optimzation is enabled.
7172 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7173 (xd_read_message): Make them static.
7174
4189ed40
CY
71752009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7176
7177 * term.c (turn_on_face): Allow simultaneously bold and dim
7178 terminal faces (Bug#3530).
7179
cd9b5e16
CY
71802009-06-27 Chong Yidong <cyd@stupidchicken.com>
7181
4e23bedb
CY
7182 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7183
cd9b5e16
CY
7184 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7185 truncation glyphs (Bug#3686).
7186
07cc3c35
GM
71872009-06-27 Glenn Morris <rgm@gnu.org>
7188
7189 * m/pmax.h: Restore file, with only netbsd portions.
7190
31fd7c5c 71912009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7192
cd9b5e16 7193 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7194
42d4a64f
KH
71952009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7196
7197 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7198 the arg FORCE_SYMBOL.
7199
930fe55b 72002009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7201
7202 * fontset.c (fontset_find_font): When a usable rfont_def is found
7203 in a fallback font-group, make it the first element of the group.
7204
57ebc3fd
CY
72052009-06-24 Chong Yidong <cyd@stupidchicken.com>
7206
7207 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7208
f084f942
KH
72092009-06-24 Kenichi Handa <handa@m17n.org>
7210
7211 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7212 set for C.
7213 (fontset_font): Record the availability of a font for C both in
7214 the realized fontsets of the current one and the default one.
7215
2f686c87
DN
72162009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7217
7218 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7219 conditional, it is always defined on AIX.
7220
666e158e
MB
72212009-06-23 Miles Bader <miles@gnu.org>
7222
7223 * window.c (Vrecenter_redisplay): New variable.
7224 (syms_of_window): Initialize it.
7225 (Qtty): New extern declaration.
7226 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7227
c6da7cd2
JM
72282009-06-23 Jim Meyering <meyering@redhat.com>
7229
1ac9108a
SM
7230 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7231 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7232 pointer dereferences are guaranteed to be valid.
c6da7cd2 7233
678dca3d
KH
72342009-06-23 Kenichi Handa <handa@m17n.org>
7235
74d75424
KH
7236 * emacs.c (main): Call init_font ().
7237
7238 * font.h (Vfont_log): Extern it.
7239 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7240
7241 * font.c (font_sort_entities, font_list_entities)
7242 (font_matching_entity, font_open_entity)
7243 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7244 (Vfont_log): Delete static.
7245 (font_log_env_checked): Delete this variable.
7246 (font_add_log): Don't check font_log_env_checked.
7247 (font_deferred_log): Check Vfont_log.
7248 (init_font): New function.
7249
678dca3d
KH
7250 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7251
7252 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7253
7254 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7255
7256 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7257
7258 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7259 (face_for_char): Don't call font_deferred_log here.
7260 (font_for_char): Likewise.
7261
8a668709
CY
72622009-06-22 Chong Yidong <cyd@stupidchicken.com>
7263
9a01ee33
CY
7264 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7265 rather than its background_width for drawing the overline and
7266 underline (Bug#489).
7267
7268 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7269 rather than its background_width for drawing the overline and
7270 underline (Bug#489).
ec7c9926
CY
7271 (xg_default_icon_file): New variable.
7272 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7273 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7274
8a668709
CY
7275 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7276 (load_overlay_strings): Remove externs.
7277 (fast_find_position): Function deleted.
7278 (mouse_face_from_buffer_pos): New function, based on
7279 fast_find_position. Correctly handle before-strings,
7280 display-strings, and after-strings (Bug#1220).
7281 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7282
4d4c02d8
CY
72832009-06-21 Chong Yidong <cyd@stupidchicken.com>
7284
1ac9108a 7285 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7286 (move_it_in_display_line_to, move_it_in_display_line_to)
7287 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7288
70243478
CY
72892009-06-21 Chong Yidong <cyd@stupidchicken.com>
7290
7291 * Branch for 23.1.
7292
13087e59
JR
72932009-06-21 Jason Rumney <jasonr@gnu.org>
7294
7295 * w32term.c (keyboard_codepage): New static variable.
7296 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7297 (w32_read_socket) [WM_CHAR]: Use it to decode character
7298 input (bug#3237).
7299 (w32_initialize): Initialize it.
7300 (codepage_for_locale): New function.
7301
4735b74e
KR
73022009-06-20 Ken Raeburn <raeburn@raeburn.org>
7303
7304 * process.c (status_message): Pass Faset index argument as a lisp
7305 object, so as to work with USE_LISP_UNION_TYPE.
7306
0e727afa
YM
73072009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7308
7309 * coding.c (Ffind_coding_systems_region_internal):
7310 Cache checked characters.
7311
cf299835
KH
73122009-06-18 Kenichi Handa <handa@m17n.org>
7313
1ac9108a 7314 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7315
90f20d94
AS
73162009-06-18 Andreas Schwab <aschwab@redhat.com>
7317
7318 * xdisp.c (redisplay_internal): Check that the frame is still
7319 live after redisplay of its windows.
7320 (redisplay_windows): Check that the window is still live.
7321
7f1faf1c
KH
73222009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7323
7324 * coding.c (detect_coding_utf_16): Fix previous change.
7325
cc13543e
KH
73262009-06-16 Kenichi Handa <handa@m17n.org>
7327
7328 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7329 UTF-16 by checking the dispersion of Eth and Oth bytes.
7330
977b85f4
AS
73312009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7332
7333 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7334
66bd43d1
KH
73352009-06-15 Kenichi Handa <handa@m17n.org>
7336
7337 * process.c (status_message): Fix previous change. Be sure to
7338 decode a localized string.
7339
cb5ca9c5
YM
73402009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7341
7342 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7343 add comment explaining why.
7344
ec7709ba 73452009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7346
ec7709ba 7347 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7348
4b7f335c
AR
73492009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7350
7351 * nsfont.m (ns_attribute_value): Remove.
7352 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7353 (ns_has_attribute): Shrink the normal range.
7354 (ns_findfonts): Don't worry about requested spec in determining
7355 need for synthItal.
e41820ee 7356 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7357
73b26103
SZ
73582009-06-14 Seiji Zenitani <zenitani@mac.com>
7359
7360 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7361
5753e4da
KH
73622009-06-11 Kenichi Handa <handa@m17n.org>
7363
7364 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7365 overhang for the static composition case.
7366
3561b671
KH
73672009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7368
5753e4da
KH
7369 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7370 overhang for the automatic composition case.
7371
3561b671
KH
7372 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7373 composition case.
7374
852bbd41
CY
73752009-06-10 Chong Yidong <cyd@stupidchicken.com>
7376
7377 * xdisp.c (get_next_display_element): When handling wrap-prefix
7378 and line-prefix, treat \n as a control character (bug#3502).
7379
9903d1e6
KH
73802009-06-10 Kenichi Handa <handa@m17n.org>
7381
7382 * font.c (font_parse_family_registry): Fix for one-char foundry.
7383 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7384
0bcbaaaa
CY
73852009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7386
7387 * process.c (status_message): Fix handling of multibyte signal
7388 string (Bug#3499).
7389
40aa3f13
JM
73902009-06-09 Jim Meyering <meyering@redhat.com>
7391
1f80c7e2
CY
7392 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7393 color name is missing.
40aa3f13 7394
72d51285
KH
73952009-06-09 Kenichi Handa <handa@m17n.org>
7396
7397 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7398 FROM-CODE and TO-CODE are codepoints of CHARSET.
7399
c1d04d84
AR
74002009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7401
7402 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7403
74042009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7405
7406 Changes to support :script/:lang/:otf in NS font driver.
7407 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7408 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7409 indicate not part of font driver interface, and change callers.
7410 (ns_get_family): Remove pointless null check.
7411 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7412 ns_spec_to_descriptor, ns_descriptor_to_entity.
7413 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7414 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7415 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7416 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7417 (ns_get_req_script, ns_accumulate_script_ranges)
7418 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7419 New functions.
7420 (nsfont_list, nsfont_match): Use ns_findfonts.
7421 (nsfont_open): Use font descriptor instead of traits.
7422 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7423 (dump_glyphstring): Rename to ns_dump_glyphstring.
7424
c7eb9816
AR
7425 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7426
c1d04d84
AR
7427 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7428
7429 * fontset.c (fontset_from_font): Remove NS-specific code.
7430
ec7709ba 74312009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7432
7433 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7434 nonactive windows.
7435
31fd7c5c 74362009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7437
1ac9108a 7438 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7439
68852c13 74402009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7441
7442 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7443
6756cd1d
CY
74442009-06-07 Chong Yidong <cyd@stupidchicken.com>
7445
7446 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7447 account for the overflowing of newlines into the last glyph on the
7448 display line (Bug#3482).
7449
28bf482a
DR
74502009-06-05 David Reitter <david.reitter@gmail.com>
7451
ec7709ba
JB
7452 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7453 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7454 Fns_selection_exists_p, Fns_selection_owner_p.
7455
fdb55376
JR
74562009-06-03 Jason Rumney <jasonr@gnu.org>
7457
7458 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7459 available. (Bug#3379)
7460
05129fbe
KH
74612009-05-29 Kenichi Handa <handa@m17n.org>
7462
1ac9108a
SM
7463 * coding.c (get_translation_table):
7464 Check Venable_character_translation.
05129fbe 7465
ec7709ba 74662009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7467
ec7709ba
JB
7468 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7469 (x_make_frame_visible): Move frame to front rather than calling
15891144 7470 ns_raise_frame().
ec7709ba 7471 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7472 isn't key window.
ec7709ba 7473 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7474 drawRect may be called by NSView even if the frame is hidden.
7475
ec7709ba
JB
7476 * nsfns.m (Fx_create_frame): Follow other ports in
7477 determining visibility; default to t. Ensure async_visible is set.
15891144 7478
21f73755
EZ
74792009-05-23 Eli Zaretskii <eliz@gnu.org>
7480
7481 * dired.c (Ffile_attributes): Doc fix.
7482
34001e41
CY
74832009-05-22 Chong Yidong <cyd@stupidchicken.com>
7484
7485 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7486
46306a17
SM
74872009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7488
7489 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7490 and xfont_scratch_props.
7491 (syms_of_xfont): Do it here instead.
7492 (xfont_find_ccl_program): Delete, unused.
7493 (xfont_open): Delete unused var `i'.
7494
ef6e0694
KH
74952009-05-21 Kenichi Handa <handa@m17n.org>
7496
7497 * fontset.c (Qlatin): Don't make it static.
7498
46306a17
SM
7499 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7500 New functions.
ef6e0694
KH
7501 (xfont_scripts_cache, xfont_scratch_props): New variables.
7502 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7503 (xfont_list_pattern): Argument changed. Callers changed.
7504 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7505 (xfont_list): Don't reject a font spec with :script property.
7506 (xfont_has_char): Fix setting of encoding.
7507 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7508 xfont_scratch_props.
7509
75102009-05-19 Kenichi Handa <handa@m17n.org>
7511
46306a17 7512 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7513 Callers changed.
7514
75152009-05-18 Kenichi Handa <handa@m17n.org>
7516
7517 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7518
ac71ced7
SM
75192009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7522 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7523
1c6d1051
YM
75242009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7525
7526 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7527 (x_delete_terminal): Dissociate resource database from display and
7528 then call XrmDestroyDatabase before closing display.
7529
9b9b779c
AR
75302009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7531
7532 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7533 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7534 whether selected frame is viable before raising it (based on patch
7535 by David Reitter), and improve commentary.
7536 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7537
cccd42d5
KH
75382009-05-15 Kenichi Handa <handa@m17n.org>
7539
7540 * font.c (Ffont_spec): Check arguments.
7541
337fbd17
CY
75422009-05-14 Chong Yidong <cyd@stupidchicken.com>
7543
7544 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7545 weight when testing attributes (Bug#3282).
7546
47a6002f
JD
75472009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7548
7549 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7550 what we expect to get in the next ConfigureNotify event.
7551
9cb363db
YM
7552 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7553 before Xft one (Bug#1696).
7554
b9126609
CY
75552009-05-07 David Reitter <david.reitter@gmail.com>
7556
7557 * nsfns.m (Fx_display_planes): Compute bitplanes using
7558 NSBitsPerPixelFromDepth (Bug#3207).
7559
27a69fd9
CY
75602009-05-10 Chong Yidong <cyd@stupidchicken.com>
7561
7562 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7563
00f37552
TTN
75642009-05-10 Ulrich Mueller <ulm@gentoo.org>
7565
7566 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7567
2d82a920
DR
75682009-05-07 David Reitter <david.reitter@gmail.com>
7569
ec7709ba
JB
7570 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7571 Respect mouse face background.
2d82a920 7572
46b0d52d
DR
75732009-05-07 David Reitter <david.reitter@gmail.com>
7574
ec7709ba
JB
7575 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7576 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7577 in ns_update_begin and ns_update_end.
7578
ce1b23bb
SM
75792009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7580
5996e1b7
SM
7581 * nsfns.m (ns_get_screen): Rewrite.
7582 Don't presume selected-frame is of type `ns'.
7583
ba98e3a0
SM
7584 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7585 all drivers.
7586
ce1b23bb
SM
7587 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7588
bcda200f
YM
75892009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7590
7591 * keyboard.h (add_user_signal): Fix typo in extern.
7592
7593 * lisp.h (add_user_signal): Remove extern.
7594
7595 * unexelf.c (unexec): Consider a section to precede the .bss section
7596 if its addresses overlap that of .bss.
7597 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7598 instead of dumping process.
7599
864660a2
SM
76002009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7601
7602 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7603
50da4e56
SM
76042009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7605
7606 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7607
51520a1a
DN
76082009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7609
7610 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7611 any statements.
7612
409ea3a1
AS
76132009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7614
59c4c60f
AS
7615 * process.c (read_process_output): Make sure the current buffer is
7616 always restored.
7617
409ea3a1
AS
7618 * coding.c (record_conversion_result): Don't modify
7619 Vlast_code_conversion_error for successful result.
7620 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7621
56f00ed2
KH
76222009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7623
7624 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7625 (load_charset_map): Remove unnecessary code.
56f00ed2 7626
4491c9d2
DR
76272009-04-30 David Reitter <david.reitter@gmail.com>
7628
35f5b128 7629 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7630 through f24.
7631
6970f632
CY
76322009-04-30 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7635
7636 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7637 face_at_buffer_position.
7638 (face_before_or_after_it_pos, get_next_display_element)
7639 (note_mouse_highlight): Update face_at_buffer_position call.
7640
7641 * term.c (term_mouse_highlight):
7642 * msdos.c (IT_note_mouse_highlight):
7643 * fontset.c (Finternal_char_font):
35f5b128 7644 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7645
7646 * dispextern.h (face_at_buffer_position): Update prototype.
7647
0c616f63
KH
76482009-04-30 Kenichi Handa <handa@m17n.org>
7649
35f5b128 7650 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7651
ad3aaf33
AS
76522009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7653
7654 * callproc.c (Fcall_process): Fix GC protection. Make sure
7655 current buffer is always restored.
7656
c3c963a0
YM
76572009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7658
7659 * atimer.c (init_atimer): Also clear stopped_atimers.
7660
7661 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7662
7e3386cb
YM
7663 * process.c (create_process): Clean up merger residues of
7664 2008-07-17 change.
7665
91f68422
CY
76662009-04-29 Ulrich Mueller <ulm@gentoo.org>
7667
7668 * lread.c (Vread_circle): New variable.
7669 (read1): Disable recursive read if Vread_circle is nil.
7670
24b34550
KH
76712009-04-29 Kenichi Handa <handa@m17n.org>
7672
7673 * fontset.h (set_default_ascii_font): Delete extern.
7674
7675 * fontset.c (set_default_ascii_font): Delete this unused function.
7676
7677 * frame.c (x_set_font): When ARG is a font-object, check if the
7678 font-object matches with the ASCII font-spec of the frame's
9c358bda 7679 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7680
77bf07e1
AS
76812009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7682
7683 * fns.c (Flocale_info): Protect vector from GC during decoding.
7684
7685 * process.c (Fstart_process): Protect argv strings from GC during
7686 encoding.
7687
2c55aacf
AS
76882009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7689
7690 * sysdep.c: Include <ctype.h>.
7691
b892d3c9
DR
76922009-04-27 David Reitter <david.reitter@gmail.com>
7693
35f5b128 7694 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7695 Remove commented-out code.
7696
9d0644c4
JB
76972009-04-26 Johan Bockgård <bojohan@gnu.org>
7698
7699 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7700
b7053016
JR
77012009-04-25 Jason Rumney <jasonr@gnu.org>
7702
7703 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7704
4e8231f3
YM
77052009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7706
7707 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7708 Swap bytes in short integer if fringe bitmap width > 8.
7709
493dcf2c
KH
77102009-04-23 Kenichi Handa <handa@m17n.org>
7711
7712 * xfaces.c (Fx_list_fonts): If a font size is specified in
7713 PATTERN, set it in returned scalable fonts.
7714
401e9e57
CY
77152009-04-22 Chong Yidong <cyd@stupidchicken.com>
7716
708e05dc
CY
7717 * keyboard.c (Fset_input_meta_mode): Doc fix.
7718
7719 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7720
1ac9108a 7721 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7722
7723 * coding.c (Fterminal_coding_system): Doc fix.
7724
7725 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7726 (Fx_display_pixel_height, Fx_display_planes)
7727 (Fx_display_color_cells, Fx_server_max_request_size)
7728 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7729 (Fx_display_mm_height, Fx_display_mm_width)
7730 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7731 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7732 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7733 (check_x_display_info): Handle terminal objects instead of
7734 terminal ids.
7735
401e9e57
CY
7736 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7737 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7738 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7739 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7740
df80c7f0
KH
77412009-04-21 Kenichi Handa <handa@m17n.org>
7742
5a8f12af 7743 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7744 (font_score): Check AVGWIDTH too.
908567ef 7745
df80c7f0
KH
7746 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7747 worst case.
1ac9108a
SM
7748 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7749 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7750
705af33f
JR
77512009-04-19 Jason Rumney <jasonr@gnu.org>
7752
7753 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7754 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7755
7756 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7757 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7758 get_phys_cursor_geometry.
7759
b71ac3dd 7760 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7761 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7762 using get_phys_cursor_geometry.
7763
7764 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7765 correctly calculated.
7766
dc2933eb
JD
77672009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7768
1ac9108a
SM
7769 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7770 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7771 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7772 is deprecated.
7773
973e7849
AS
77742009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7775
7776 * font.c (font_put_frame_data): Use xfree instead of free.
7777
314d66f4
JB
77782009-04-17 Juanma Barranquero <lekktu@gmail.com>
7779
7780 * w32font.c (Qja, Qko): Remove declarations.
7781 (syms_of_w32font): Don't DEFSYM them.
7782
cf702558
CY
77832009-04-17 Chong Yidong <cyd@stupidchicken.com>
7784
7785 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7786
7787 * font.h (Qja, Qko): Extern them.
7788
7789 * ftfont.c (Qja, Qko): Remove declarations.
7790
7791 * xfont.c (Qja, Qko): Remove declarations.
7792
b50504f5
KH
77932009-04-17 Kenichi Handa <handa@m17n.org>
7794
bde25748
KH
7795 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7796 string from a vector to handle Latin-1 characters correctly.
7797
b50504f5
KH
7798 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7799 entity even if the cache hits.
7800
f4646fff
AS
78012009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7802
7803 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7804 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7805
e7deaab0
AS
7806 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7807 * lisp.h: Adjust prototypes.
7808
0a0e7d49
CY
78092009-04-16 Chong Yidong <cyd@stupidchicken.com>
7810
7811 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7812 change (Bug#3003).
7813
3c908a57
KH
78142009-04-16 Kenichi Handa <handa@m17n.org>
7815
1ac9108a 7816 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7817
7818 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7819 adstyle.
7820
7821 * ftfont.c (Qja, Qko): Don't make them static.
7822 (enum ftfont_cache_for): New enum.
7823 (fc_charset_table): Undo the previous change.
7824 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7825 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7826 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7827 non-scarable font, try to get AVERAGE_WIDTH.
7828 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7829 Change ft_face_cache from a list of a hash-table. Don't check
7830 `ja' and `ko' adstyle here.
7831 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7832 FTFONT_CACHE_FOR_CHARET.
7833 (ftfont_get_charset): Undo the previous change.
1ac9108a 7834 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7835 (ftfont_close): Likewise.
7836 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7837
7838 * font.c (font_sort_entites): Change the meaning of the arg
7839 BEST-ONLY. Don't optimize for VEC of lenght 1.
7840 (font_select_entity): Just return the value of font_sort_entites.
7841
7842 * xfaces.c (merge_face_vectors): Reflect font properties in
7843 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7844 font_clear_prop if a face attribute doesn't change.
7845
3c908a57
KH
7846 * charset.h (charset_ksc5601): Extern it.
7847
7848 * charset.c (charset_ksc5601): New variable.
7849 (Fdefine_charset_internal): Set charset_ksc5601.
7850 (init_charset_once): Initialize charset_ksc5601 to -1.
7851
d65859c3
DN
78522009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7853
7854 * fileio.c (history_delete_duplicates): Remove unused declaration.
7855
7856 * callint.c (history_delete_duplicates): New declaration.
7857 (Fcall_interactively): Remove command history duplicates when
7858 history_delete_duplicates is true.
7859
3ba010e5
EZ
78602009-04-14 Eli Zaretskii <eliz@gnu.org>
7861
7862 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7863
06f19b91
KH
78642009-04-14 Kenichi Handa <handa@m17n.org>
7865
7866 * font.c (Ffont_info): Fix docstring. Fix the second element of
7867 the returned value (bug#2949).
7868
2cce8bfc
CY
78692009-04-14 Chong Yidong <cyd@stupidchicken.com>
7870
7871 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7872
d156542d
KH
78732009-04-14 Kenichi Handa <handa@m17n.org>
7874
7875 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7876 encoding charset is ascii_compatible.
7877
7878 * charset.c (Fdefine_charset_internal): Make charset
7879 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7880 code_offset is 0, and covers all ASCII characters.
7881
86fa089e
SM
78822009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7883
7884 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7885 (ns_string_to_pasteboard_internal):
7886 * nsmenu.m (process_dialog):
7887 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7888 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7889 * lisp.h (Fx_load_color_file): Declare.
7890
a8a3728b
KH
78912009-04-13 Kenichi Handa <handa@m17n.org>
7892
1ac9108a 7893 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7894 (font_select_entity): Suppress the code to optimize for the same
7895 kind of fonts.
7896 (font_load_for_lface): Get a font that supports at least ASCII
7897 characters.
7898
7899 * ftfont.c (Qja, Qko): New variables.
7900 (fc_charset_table): Delete uniquifier data for iso8859-1.
7901 (ftfont_get_latin1_charset): New function.
7902 (get_adstyle_property): New function.
7903 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7904 bitmap fonts.
7905 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7906 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7907 `ko' or `ja'.
7908 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7909 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7910 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7911 property.
7912 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7913 (syms_of_ftfont): DEFSYM Qja and Qko.
7914
483670b5
KH
79152009-04-09 Kenichi Handa <handa@m17n.org>
7916
12b55765
KH
7917 * charset.c (map_charset_chars): For a charset of `superset'
7918 method, fix calculation of code range.
7919
483670b5
KH
7920 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7921 from the list of extra properties.
7922 (font_clear_prop): Be sure to delete `:name' font property.
7923
57d3b93b
KH
79242009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7925
b4b2c2ca
YM
7926 * dispnew.c (redraw_overlapping_rows): Fix detection of
7927 overlapping for topmost and bottommost rows.
7928
1ac9108a 7929 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7930
472c3609
JR
79312009-04-06 Jason Rumney <jasonr@gnu.org>
7932
7933 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7934
ab193662
KH
79352009-04-06 Kenichi Handa <handa@m17n.org>
7936
7937 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7938
7939 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7940
0c26f026
KH
79412009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7942
7943 * ftfont.c (ftfont_open): Fix checking of the return value of
7944 FT_Load_Char. Fix setting font->underline_thickness.
7945
e173bbce
CY
79462009-04-04 Chong Yidong <cyd@stupidchicken.com>
7947
7948 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7949 (Fterminal_parameters, Fterminal_parameter)
7950 (Fset_terminal_parameter): In doc string, refer to terminal
7951 objects rather than terminal ids.
7952
693a2698
EZ
79532009-04-04 Eli Zaretskii <eliz@gnu.org>
7954
7955 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7956 ret_lim_data. (Bug#2867)
7957
d5221487
CY
79582009-04-03 Chong Yidong <cyd@stupidchicken.com>
7959
7960 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7961 so they don't get wider than the window, matching 2006-01-23
7962 change to the partner function in xdisp.c (Bug#2800).
7963
223509a3
KH
79642009-04-03 Kenichi Handa <handa@m17n.org>
7965
7966 * print.c (print_object): Make each lowest sub_char_table start a
7967 new line (Bug#2866).
7968
74fcd0b1
KH
79692009-04-02 Kenichi Handa <handa@m17n.org>
7970
7971 * fontset.c (fontset_font): Record no-font when a fontset
7972 explicitly tells not to try another font-specs.
7973
c542407d
SM
79742009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7975
7976 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7977
e3869731
KH
79782009-03-30 Kenichi Handa <handa@m17n.org>
7979
d8d2f142
KH
7980 * fontset.c (fontset_from_font): Specify only registry in a
7981 font-spec for all characters supported by that registry.
7982
e3869731
KH
7983 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7984 even if HAVE_M17N_FLT is not defined.
7985
5da5f805
CY
79862009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7987
7988 * ftfont.c: Conditionalize prototyping and use of
7989 ftfont_variation_glyphs.
7990
ab226c50
SM
79912009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7992
9628fed7
SM
7993 * frame.c (delete_frame): Work around compiler bug.
7994
7995 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7996 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7997 Some more EMACS_INT.
7998 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7999
8000 * xdisp.c (dump_glyph): Fix typo.
8001
ae19ba7c
SM
8002 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8003 (adjust_markers_gap_motion, adjust_markers_for_delete)
8004 (adjust_markers_for_insert, adjust_point)
8005 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8006 (make_gap, copy_text, count_size_as_multibyte, insert)
8007 (insert_and_inherit, insert_before_markers)
8008 (insert_before_markers_and_inherit, insert_1)
8009 (count_combining_before, count_combining_after, insert_1_both)
8010 (insert_from_string, insert_from_string_before_markers)
8011 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8012 (insert_from_buffer_1, adjust_after_replace)
8013 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8014 (replace_range_2, del_range, del_range_1, del_range_byte)
8015 (del_range_both, del_range_2, modify_region)
8016 (prepare_to_modify_buffer, signal_before_change)
8017 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8018 for buffer positions and sizes.
8019 * lisp.h: Adjust prototypes accordingly.
8020
8021 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8022 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8023 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8024
ab226c50
SM
8025 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8026
46dfb8fb
JD
80272009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8028
8029 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8030 lines and columns so we keep the same pixel height and width.
8031
8032 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8033 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8034 (x_handle_net_wm_state): New function to update frame parameter
8035 fullscreen.
8036 (x_term_init): Initialize atoms for _NET_WM_STATE.
8037
8038 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8039
d347e494
SM
80402009-03-27 Kevin Ryde <user42@zip.com.au>
8041
8042 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8043 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8044 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8045 (Fgpm_mouse_stop): Pass that new parameter.
8046 * termhooks.h (close_gpm): Adjust prototype.
8047
84db11d6
SM
80482009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8049
c95a5008
SM
8050 * lisp.h (Fx_focus_frame): Declare.
8051
84db11d6
SM
8052 * callint.c (Fcall_interactively): For '^' just delegate the work to
8053 handle-shift-selection.
8054 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8055
0a1958d6
CY
80562009-03-24 Chong Yidong <cyd@stupidchicken.com>
8057
0bfdff23
CY
8058 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8059
0a1958d6
CY
8060 * data.c (Qinteractive_form): New variable.
8061 (Finteractive_form): Use it.
8062
8063 * eval.c (Fcommandp): Use Qinteractive_form.
8064
58aec0d6
JR
80652009-03-24 Jason Rumney <jasonr@gnu.org>
8066
8067 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8068 Calculate total size precisely. Decode environment variables
8069 before substituting. (Bug#38)
8070
553dd618
KH
80712009-03-24 Kenichi Handa <handa@m17n.org>
8072
8073 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8074 encoding (Bug#2722).
553dd618 8075
c39ea606
JD
80762009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8077
8078 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8079 that gdpy is set.
8080
bc9b2b5e
AM
80812009-03-22 Alan Mackenzie <acm@muc.de>
8082
8083 * callint.c (Finteractive): Clarify the doc string - even
8084 promptless elements need \n separators.
8085
9f995a76
JR
80862009-03-22 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32term.c (syms_of_w32term): Doc fix for
8089 x-use-underline-position-properties.
8090
22749e9a
EZ
80912009-03-21 Eli Zaretskii <eliz@gnu.org>
8092
8093 * w32.c (getpwuid): Change argument type to unsigned.
8094 (struct w32_id): Change type of `rid' member to unsigned.
8095 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8096 argument ID to unsigned. All callers changed.
8097 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8098
e00553bf
EZ
80992009-03-20 Eli Zaretskii <eliz@gnu.org>
8100
8101 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8102 negative, produce a float value.
8103
8104 * dired.c (make_uid, make_gid): New functions.
8105 (Ffile_attributes): Use them to avoid negative UID and GID.
8106
f761d6b6
JB
81072009-03-20 Juanma Barranquero <lekktu@gmail.com>
8108
8109 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8110 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8111 Fix typos in docstrings.
8112
d507f8d7
KH
81132009-03-19 Kenichi Handa <handa@m17n.org>
8114
8115 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8116 changed, use font_load_for_lface to get a new font object.
8117 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8118
8119 * frame.c (x_set_font): Handle the case that ARG is a cons.
8120
c68845e0
GM
81212009-03-19 Glenn Morris <rgm@gnu.org>
8122
8123 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8124
bfa49dd1
CY
81252009-03-19 Chong Yidong <cyd@stupidchicken.com>
8126
8127 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8128
8458d4c1
KH
81292009-03-19 Kenichi Handa <handa@m17n.org>
8130
8131 * charset.c (load_charset_map_from_file): When a mapfile can't be
8132 loaded, signal an error.
8133
78e7d1fe
EZ
81342009-03-18 Eli Zaretskii <eliz@gnu.org>
8135
8136 * dired.c (Ffile_attributes): Make sure UID and GID are always
8137 positive, even if the value is too large for a positive EMACS_INT.
8138 Doc fix.
8139
8140 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8141
5da9fdfa
YM
81422009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8143
8144 * xmenu.c (xdialog_show): Move Fredisplay call ...
8145 (Fx_popup_dialog): ... here.
8146
7519c40d
SM
81472009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8148
8149 * dired.c (file_name_completion): Disable the first optimization just
8150 installed, since it is not implemented correctly.
8151
2cd298e2
SM
81522009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8153
8154 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8155 only if the entry can affect bestmatch.
2cd298e2
SM
8156 Stop the search early, as Ftry_completion already does.
8157
48d37adf
CY
81582009-03-17 Chong Yidong <cyd@stupidchicken.com>
8159
e10c9c93 8160 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8161
9286b16a
CY
81622009-03-15 Chong Yidong <cyd@stupidchicken.com>
8163
8164 * keyboard.c (parse_menu_item): Don't display remappings as menu
8165 equivalent bindings (Bug#788).
8166
f7b146dc
JR
81672009-03-15 Jason Rumney <jasonr@gnu.org>
8168
8169 * w32term.h (WM_EMACS_PAINT): New message.
8170 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8171 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8172 before passing to lisp thread. (Bug#950)
8173
f761d6b6 81742009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8175
d93f9575
CY
8176 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8177 variable as it was never reset.
8178 (ns_term_init): Remove initialization of Lisp-settable defaults
8179 and ns_expand_space.
8180 (-setPanelFromDefaultValues): Remove ns_expand_space.
8181 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8182 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8183 i.e. no additional spacing, similar to Carbon port.
8184
d93f9575
CY
8185 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8186 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8187
305018ec
JD
81882009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8189
8190 * sound.c (alsa_configure): Remove call to deprecated
8191 snd_pcm_sw_params_set_xfer_align.
8192
f761d6b6 81932009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8194
8195 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8196 after clicking in a detached tool bar.
8197 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8198
46e722a9
SM
81992009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8200
348db3dd
SM
8201 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8202 int/Lisp_Object mixup).
46e722a9 8203
a3d16f39
KH
82042009-03-13 Kenichi Handa <handa@m17n.org>
8205
8206 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8207 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8208 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8209 (set_fontset_font): Change ARG to a vector. Handle range_list in
8210 ARG correctly.
8211 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8212 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8213 the above change.
8214 (fontset_from_font): Fix previous change.
fe24f56a 8215 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8216 entry. If FONTSET is the default fontset, don't set the extra
8217 slot of the returning char-table.
8218
b066e6b6
JB
82192009-03-12 Juanma Barranquero <lekktu@gmail.com>
8220
8221 * nsfns.m (Fx_close_connection): Doc fix.
8222 (Fns_do_applescript): Reflow docstring.
8223 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8224 (Fx_display_pixel_width, Fx_display_pixel_height)
8225 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8226 Fix typos in docstrings.
8227 (Fns_set_alpha): Fix typos in error messages.
8228
d472514e 82292009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8230
d472514e 8231 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8232 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8233 were used for such events.
8234
d472514e
JB
8235 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8236 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8237
d472514e 8238 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8239 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8240
fb930676
KH
82412009-03-11 Kenichi Handa <handa@m17n.org>
8242
ff85581a
KH
8243 * font.h (font_open_by_spec): Extern it.
8244
c50b7e98
KH
8245 * font.c (font_open_by_spec): New function.
8246 (font_open_by_name): Use font_open_by_spec.
8247
fb930676
KH
8248 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8249 fontset of the frame.
8250
8251 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8252 modify the default font of frames that use this fontset.
8253 (num_auto_fontsets): New variable.
8254 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8255 name. Be sure to set FONTSET_ASCII to the correct font name.
8256 (update_auto_fontset_alist): New function.
8257
df4e8455
JB
82582009-03-11 Juanma Barranquero <lekktu@gmail.com>
8259
8260 * makefile.w32-in: Update dependencies.
8261
0a375797
AR
82622009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8263
8264 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8265
61313fa3
SM
82662009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8267
8268 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8269
b55103fb
CY
82702009-03-10 Chong Yidong <cyd@stupidchicken.com>
8271
8272 * lread.c (Feval_buffer): Doc fix.
8273
dde2559c
KH
82742009-03-09 Kenichi Handa <handa@m17n.org>
8275
8276 * charset.c (Qfile_name_handler_alist): Extern it.
8277 (load_charset_map_from_file): Temporarily bind
8278 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8279
df4e8455 82802009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8281
47f588bb
GM
8282 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8283 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8284
4ddf94bd
AR
82852009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8286
4c9bdfc2
AR
8287 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8288 (x_set_window_size): Change back to calculated method of setting
8289 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8290 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8291 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8292
fe41ae9e
AR
8293 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8294
4c9bdfc2
AR
8295 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8296 accelerator in parens under GNUstep.
8297
825d0875
KH
82982009-03-06 Kenichi Handa <handa@m17n.org>
8299
8300 These changes are to detect incorrect composition sequence without
f3b3be74 8301 looking ahead the source. (Bug#2370)
825d0875
KH
8302
8303 * coding.h: Include "composite.h".
8304 (enum compisition_state): New enum.
8305 (struct compisition_status): New struct.
8306 (struct iso_2022_spec): New member cmp_status.
8307 (struct emacs_mule_spec): New struct.
8308 (struct coding_system): New members ctext_extended_segment_len and
8309 embedded_utf_8. Change the union member
8310 spec.emacs_mule_full_support to spec.emacs_mule.
8311
8312 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8313 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8314 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8315 (ADD_COMPOSITION_DATA): New arg nbytes.
8316 (emacs_mule_char): New arg cmp_status.
8317 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8318 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8319 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8320 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8321 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8322 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8323 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8324 (EMACS_MULE_COMPOSITION_END): New macro.
8325 (emacs_mule_finish_composition): New function.
8326 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8327 (decode_coding_emacs_mule): Avoid long looking ahead while
8328 handling composition.
8329 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8330 (ENCODE_COMPOSITION_RULE): New macro.
8331 (finish_composition): New function.
8332 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8333 (DECODE_COMPOSITION_START): New implementation.
8334 (DECODE_COMPOSITION_END): Likewise.
8335 (STORE_COMPOSITION_RULE): New macro.
8336 (decode_coding_iso_2022): Avoid long looking ahead while handling
8337 composition, CTEXT extended segment, and embedded UTF-8.
8338 (setup_coding_system): For a coding of type iso-2022, reset
8339 CODING_ISO_EXTSEGMENT_LEN (coding) and
8340 CODING_ISO_EMBEDDED_UTF_8 (coding).
8341 (get_translation): Delete arguments last_block, from_nchars,
8342 to_nchars. Callers changed.
8343 (produce_chars): Don't modify charbuf. Adjusted for the change of
8344 get_translation.
98a326f7 8345 (produce_composition): Adjust for the new annotation sequence.
825d0875 8346 (handle_composition_annotation): Likewise.
98a326f7 8347 (consume_chars): Adjust for the change of get_translation.
825d0875 8348
ccbc4452
AR
83492009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8350
4ddf94bd 8351 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8352
988a7ddb
KH
83532009-03-05 Kenichi Handa <handa@m17n.org>
8354
8355 * font.c (font_select_entity): New function.
8356 (font_find_for_lface): Use font_select_entity to select a font.
8357
8358 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8359 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8360 font with C restriction.
8361
98a326f7 83622009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8363
be1bce46 8364 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8365
10ea2b82
JR
83662009-03-04 Jason Rumney <jasonr@gnu.org>
8367
2c93b248 8368 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8369 characters that have already been read. (Bug#2569)
2c93b248 8370
10ea2b82
JR
8371 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8372 Log an error message if check_image_size failed.
8373 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8374 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8375
71a0c011
EZ
83762009-03-02 Eli Zaretskii <eliz@gnu.org>
8377
8378 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8379 when decoding process output.
8380
2f63bba8
RS
83812009-03-01 Richard M Stallman <rms@gnu.org>
8382
8383 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8384
8385 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8386
0a9564cb
EZ
83872009-02-28 Eli Zaretskii <eliz@gnu.org>
8388
8389 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8390 (decode_coding_emacs_mule, decode_coding_iso_2022)
8391 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8392 (decode_coding_raw_text, decode_coding_charset)
8393 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8394 Honor inhibit-eol-conversion. (Bug #2186)
8395
449148b3
JR
83962009-02-28 Jason Rumney <jasonr@gnu.org>
8397
8398 * coding.c (detect_coding_charset): If not checking latin extra,
8399 fail on characters between 0x80 and 0xA0. (Bug#2354)
8400
a4aee864
EZ
84012009-02-28 Eli Zaretskii <eliz@gnu.org>
8402
8403 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8404 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8405
d88bee5a
GM
84062009-02-27 Glenn Morris <rgm@gnu.org>
8407
8408 * callint.c (Finteractive): Doc fix.
8409
a808f22d
KH
84102009-02-27 Kenichi Handa <handa@m17n.org>
8411
8412 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8413
caf8d60c
CY
84142009-02-27 Chong Yidong <cyd@stupidchicken.com>
8415
8416 * font.c (font_style_to_value): Set value for unknown symbols to
8417 100 instead of 255.
b61137ea
CY
8418 (weight_table, slant_table, width_table): Treat "unspecified" as
8419 the default value.
caf8d60c 8420
1a0de25c
JB
84212009-02-26 Juanma Barranquero <lekktu@gmail.com>
8422
8423 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8424
8fc45744
JB
84252009-02-25 Juanma Barranquero <lekktu@gmail.com>
8426
107bd7d1
JB
8427 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8428 error as soon as a recursive load is detected.
8fc45744 8429
f097e223
AR
84302009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8431
8432 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8433 before caching.
8434
8810a12f
KH
84352009-02-24 Kenichi Handa <handa@m17n.org>
8436
8437 * fontset.c (fontset_find_font): Fix the condition for checking
8438 unavailable font.
8439
2c7d1565
GM
84402009-02-24 Glenn Morris <rgm@gnu.org>
8441
8442 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8443 whitespace that confuses documentation.
8444
a20878b6
MB
84452009-02-23 Miles Bader <miles@gnu.org>
8446
8447 * process.c (Flist_system_processes, Fprocess_attributes)
8448 (syms_of_process): Rename `system-process-attributes' to
8449 `process-attributes'.
8450
b3b58c01
AS
84512009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8452
1b3b981b
AS
8453 * coding.h (struct coding_system): Make safe_charsets a pointer to
8454 unsigned char.
8455 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8456 being 255.
8457 (SAFE_CHARSET_P): Likewise.
8458 (setup_iso_safe_charsets): Properly setup safe_charsets.
8459 (Fdefine_coding_system_internal): Likewise.
8460 (setup_coding_system): Likewise. Remove unneeded casts.
8461 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8462 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8463 unneeded casts.
8464
b3b58c01
AS
8465 * insdel.c (del_range_2): Don't modify gap contents when called
8466 from decode_coding_object. (Bug#1809)
8467
0b6f228c
CY
84682009-02-21 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8471 Qfont_object.
8472 (Ftype_of): Recognize font objects.
8473
8474 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8475
8476 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8477 moved to data.c.
8478
52f8870b
AR
84792009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8480
8481 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8482 async_iconified. Based on a patch by Christian Lynbech
8483 <christian.lynbech@tieto.com>.
8484 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8485
7087d5e9
GM
84862009-02-20 Glenn Morris <rgm@gnu.org>
8487
8488 * syntax.c (Fskip_chars_forward): Fix doc typo.
8489
41d2ceef
CY
84902009-02-20 Chong Yidong <cyd@stupidchicken.com>
8491
8492 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8493
1a3b7ca6
CY
84942009-02-19 Chong Yidong <cyd@stupidchicken.com>
8495
8496 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8497
73cce38d
KH
84982009-02-19 Kenichi Handa <handa@m17n.org>
8499
8500 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8501 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8502
a51092ee
DN
85032009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8504
8505 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8506
c423ecca
KH
85072009-02-18 Kenichi Handa <handa@m17n.org>
8508
8509 * font.c (font_check_otf_features): Fix handling of `nil' element.
8510 (Ffont_spec): Describe :lang and :otf in the docstring.
8511
4c1958f4
AS
85122009-02-16 Andreas Schwab <schwab@suse.de>
8513
8514 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8515 string.
8516
5704f39a
KH
85172009-02-16 Kenichi Handa <handa@m17n.org>
8518
8519 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8520 (Bug#1723)
5704f39a 8521
8f0085aa
CY
85222009-02-14 Chong Yidong <cyd@stupidchicken.com>
8523
a057d86a 8524 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8525
8526 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8527 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8528
aff01dd9
EZ
85292009-02-14 Eli Zaretskii <eliz@gnu.org>
8530
8531 * msdos.c (MAX_SCREEN_BUF): New macro.
8532 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8533 Encode the entire run of glyphs sharing the same face, instead of
8534 doing that one glyph at a time (fixes a bug with displaying
8535 double-size characters).
8536
ba301db3
AR
85372009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8538
8539 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8540
8541 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8542 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8543 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8544
8545 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8546 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8547
51d861de
SM
85482009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8549
ac146f82 8550 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8551 invisible areas.
8552
7fed8996
JR
85532009-02-12 Jason Rumney <jasonr@gnu.org>
8554
631ea4fb
JR
8555 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8556 (add_font_entity_to_list): Call check_face_name even when family
8557 is unspecified.
8558
cb4a3e42
JR
8559 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8560 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8561 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8562
7fed8996 8563 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8564 raster fonts. (Bug#2219)
7fed8996 8565
895416e3
KH
85662009-02-12 Kenichi Handa <handa@m17n.org>
8567
8568 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8569 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8570 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8571 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8572 (find_automatic_composition): While looking forward and backward,
8573 check static composition. Fix where to stop looking forward.
8574 (composition_adjust_point): Fix checking of static composition.
8575 (Fcomposition_get_gstring): Pay attention to
1dacf998 8576 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8577
8578 * lisp.h (fast_looking_at): Extern it.
8579
8580 * search.c (fast_looking_at): New function.
8581
51d861de 8582 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8583 <struct glyph>.u.cmp.to.
8584 (append_composite_glyph): Likewise.
8585
51d861de 8586 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8587 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8588 composition.
51d861de 8589 (append_composite_glyph): Adjust for the change of
895416e3
KH
8590 <strcut glyph>.u.cmp.to.
8591
8510724d
JB
85922009-02-11 Juanma Barranquero <lekktu@gmail.com>
8593
8594 * casetab.c (init_casetab_once):
8595 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8596 * font.c (font_update_lface):
8597 * fontset.c (Fnew_fontset):
8598 * ftfont.c (ftfont_drive_otf):
8599 * xfont.c (xfont_open):
8600 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8601
294fa707
SM
86022009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8603
8604 * fileio.c (Fwrite_region): !NILP -> CONSP.
8605
b5bfebec
AS
86062009-02-10 Andreas Schwab <schwab@suse.de>
8607
8608 * process.c (send_process): Properly relocate pointer into data
adab88bd 8609 when using encoded data. (Bug#2272)
b5bfebec 8610
cb84a2be
KH
86112009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8612
8613 * coding.c (detect_coding_charset): Fix previous change.
8614
89e09428
JR
86152009-02-08 Jason Rumney <jasonr@gnu.org>
8616
8617 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8618 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8619
4470a277
AS
86202009-02-07 Andreas Schwab <schwab@suse.de>
8621
8622 * unexelf.c (unexec): Fix error message.
8623
3175b12a
AR
86242009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8625
8626 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8627 when modal window is active. (Bug #2152)
3175b12a
AR
8628 (applicationShouldTerminate:): Remove now-unneeded while loop
8629 around NSRunAlertPanel.
8630
8631 * nsmenu.m (popupSession): New file-global variable.
8632 (pop_down_menu): End the popupSession before closing dialog.
8633 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8634 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8635 don't query NSApp for events (just sleep instead).
8636
8434d0b8
EZ
86372009-02-07 Eli Zaretskii <eliz@gnu.org>
8638
51d861de
SM
8639 * coding.c (syms_of_coding) <translation-table-for-input>:
8640 Modify doc string to discourage use for character code unification.
8434d0b8 8641
aa82edfd
CY
86422009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8643
8644 * atimer.c (run_timers): Update pending_atimers.
8645
2d283c7c
CY
86462009-02-06 Chong Yidong <cyd@stupidchicken.com>
8647
eb306cab
CY
8648 * image.c (svg_load_image): Fix last change.
8649
2d283c7c
CY
8650 * xfns.c (Fx_create_frame): Signal an error if no font is
8651 found (Bug#2147).
8652
4d8e170e
JB
86532009-02-05 Juanma Barranquero <lekktu@gmail.com>
8654
8655 * character.c (syms_of_character) <script-representative-chars>:
8656 Fix typo in docstring.
8657
c96169a0
AR
86582009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8659
8660 * nsmenu.m (pop_down_menu): New function.
8661 (ns_popup_dialog): Call it on unwind.
8662 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8663 call timer_check() (Bug#2154).
8664 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8665 handling_signal is set.
8666 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8667
31fd7c5c 8668 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8669
8670 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8671
8672 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8673
51d861de
SM
8674 * keyboard.c (poll_for_input_1, handle_async_input):
8675 Set handling_signal under HAVE_NS.
c96169a0 8676
aacd8ba1
GM
86772009-02-04 Glenn Morris <rgm@gnu.org>
8678
8679 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8680
4cb75c4b
KH
86812009-02-04 Kenichi Handa <handa@m17n.org>
8682
8683 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8684
8685 * charset.c (Fchar_charset): New optional arg restriction.
8686
8687 * coding.h (coding_system_charset_list): Extern it.
8688
8689 * coding.c (coding_system_charset_list): New function.
8690
8691 * composite.c: Include coding.h and termhooks.h.
8692 (composition_gstring_p): Fix for the terminal case.
8693 (composition_gstring_width): Likewise.
8694 (fill_gstring_body): Likewise.
8695 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8696 the frame.
8697 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8698 is within a composition.
867d4bb3 8699 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8700
8701 * term.c (encode_terminal_code): Fix handling of composition.
8702 (produce_composite_glyph): For static composition, get pixel_width
8703 from struct composition.
8704
826ba17e
AS
87052009-02-02 Andreas Schwab <schwab@suse.de>
8706
8707 * unexelf.c (unexec): Handle unaligned bss offset.
8708
8ad093db
AR
87092009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8710
8711 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8712 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8713
8ad093db
AR
8714 * keyboard.c (handle_interrupt): Don't call
8715 quit_throw_to_read_char() under NS.
d0a76a6e 8716
8ad093db
AR
8717 * blockinput.h: Remove NS-specific code.
8718
4d18a7a2
DN
87192009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8720
db878925
DN
8721 * dispnew.c (window_change_signal): Don't try to get the size of a
8722 suspended tty frame.
8723 * term.c (Fresume_tty): Resize if the size has changed while the
8724 tty was suspended.
8725
4d18a7a2
DN
8726 * alloc.c (mark_stack): Properly conditionalize previous change.
8727
8984df7c
JB
87282009-01-30 Juanma Barranquero <lekktu@gmail.com>
8729
8730 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8731 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8732 Remove; this code is not used on Windows.
8733
75f4f1ac
EZ
87342009-01-30 Eli Zaretskii <eliz@gnu.org>
8735
8736 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8737 EOLs that also has stray ^M characters.
8738
07a1e794
JB
87392009-01-30 Juanma Barranquero <lekktu@gmail.com>
8740
8741 * atimer.c (run_timers, alarm_signal_handler):
8742 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8743 * w32inevt.c (w32_console_read_socket):
8744 * w32term.c (w32_read_socket):
8745 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8746
a8b11cc9
CY
87472009-01-30 Chong Yidong <cyd@stupidchicken.com>
8748
8749 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8750 Initialize it as a relative filename pattern.
8751 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8752 (Fcall_process_region): Simplify temp file creation using
8753 temporary-file-directory.
8754
c279587b
EZ
87552009-01-29 Eli Zaretskii <eliz@gnu.org>
8756
8757 * msdos.c: Rename pending_signals to msdos_pending_signals.
8758 (sig_suspender, sigprocmask): Adjust.
8759
a8fe3242
CY
87602009-01-29 Chong Yidong <cyd@stupidchicken.com>
8761
8762 * keyboard.c (pending_signals): New var.
8763 (poll_for_input, input_available_signal, init_keyboard): Set it.
8764 (process_pending_signals): New function.
8765
8766 * lisp.h (QUIT): Check pending_signals instead of
8767 interrupt_input_pending. Use process_pending_signals.
8768
51d861de 8769 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8770
51d861de 8771 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8772
8773 * sysdep.c (emacs_write): Use process_pending_signals.
8774
8775 * xterm.c (XTread_socket): Update pending_signals.
8776
8777 * w32term.c (w32_read_socket): Update pending_signals.
8778
8779 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8780
6570a1c4
KH
87812009-01-29 Kenichi Handa <handa@m17n.org>
8782
8783 * xftfont.c (xftfont_has_char): New function.
8784 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8785
d72a4afa
AR
87862009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8787
8788 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8789 under GNUstep.
8790 (ns_query_color): New declaration.
8791
8792 * nsterm.m (ns_confirm_quit): New variable.
8793 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8794 (EmacsApp-applicationShouldTerminate:): Use it.
8795 (EmacsPrefsController): Let user set it.
8796 (ns_query_color): New function.
8797 (ns_defined_color): Use it.
8798 (ns_initialize): Drop.
8799 (ns_term_init): Add two lines from ns_initialize(), and set
8800 input_interrupt_mode to nil.
8801
8802 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8803 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8804
9fe78804
KH
88052009-01-28 Kenichi Handa <handa@m17n.org>
8806
8807 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8808 (fontset_get_font_group): Remember that no font-group is specified
8809 for C.
9fe78804 8810
fa57de36
CY
88112009-01-27 Chong Yidong <cyd@stupidchicken.com>
8812
930600e9
CY
8813 * fns.c (concat): Check for string overflow (bug#1787).
8814
fa57de36
CY
8815 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8816 Quadruple undo limits (bug#1501).
8817
7179ce7b
KH
88182009-01-27 Kenichi Handa <handa@m17n.org>
8819
8820 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8821 directly use GT_Get_Char_index.
8822
8823 * xftfont.c (struct xftfont_info): New member `index'.
8824
8825 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8826 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8827
5be8fcc0
CY
88282009-01-26 Kenichi Handa <handa@m17n.org>
8829
8830 * fontset.c (fontset_find_font): Fix handling of non-cons return
8831 value of fontset_get_font_group.
8832 (fontset_font): Revert last change.
8833
19ae3e61
JR
88342009-01-26 Jason Rumney <jasonr@gnu.org>
8835
8836 * w32font.c (w32font_list_internal): Return quickly if registry is
8837 unknown. Simplify final return.
8838 (add_font_entity_to_list): Break complex logic down into more
8839 manageable chunks. Move unknown registry check to
8840 w32font_list_internal.
8841
8612b71a
AR
88422009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8843
8844 Changes to remove Feval calls from GUI under NS.
8845
d8038940
JB
8846 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8847 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8848 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8849
8850 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8851 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8852 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8853 instead of NON_ASCII_KEYSTROKE_EVENT.
8854 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8855 (EmacsApp-applicationShouldTerminate:): Query user.
8856 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8857 instead of Feval.
8858
8859 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8860
8861 * keyboard.c (kbd_buffer_get_event): Check for it.
8862 (keys_of_keyboard): Define lispy keys for
8863 ns-put/unput-working-text.
8864
8865 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8866 versions.
8867 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8868
6288ae55
CY
88692009-01-25 Chong Yidong <cyd@stupidchicken.com>
8870
8871 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8872 setting current_buffer directly. (Bug#2044)
6288ae55 8873
289e7f8f
CY
88742009-01-24 Chong Yidong <cyd@stupidchicken.com>
8875
5ce87308 8876 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8877 any work. (Bug#1952, bug#1990).
5ce87308 8878
64cc3cf6 8879 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8880
b3243e6f
AR
88812009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8882
8883 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8884 (ns_no_defaults): New declaration.
8885 (main): Use it.
e0d2e69a 8886
d900b2af 8887 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8888
d900b2af 8889 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8890
d900b2af
AR
8891 * nsterm.m (ns_no_defaults): New variable.
8892 (ns_initialize): Don't read defaults when ns_no_defaults.
8893 (EmacsView-readSelectionFromPasteboard:)
8894 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8895 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8896 (ns_dumpglyphs_stretch): New function.
8897 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8898 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8899
e0d2e69a
AR
8900 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8901
3ac71f5d
CY
89022009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8903
8904 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8905 call for Sparc64.
8906
3fe53a83
AR
89072009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8908
8909 * nsfns.m:
8910 * nsgui.h:
8911 * nsmenu.m:
8912 * nsselect.m:
8913 * nsterm.h:
8914 * nsterm.m: Remove '23' comments that indicated code added during
8915 update from emacs-20 -> emacs-23.
8916
10f87c6f 89172009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8918
8919 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8920 ns_alternate_modifier. (Bug#1217)
a3b53a85 8921
c7cef62d
AR
8922 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8923 Display all shortcuts, including those w/o super modifier.
8924
575fb8bd
AR
8925 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8926
918b848b
CY
89272009-01-22 Chong Yidong <cyd@stupidchicken.com>
8928
8929 * fileio.c (Vwrite_region_post_annotation_function)
8930 (Vwrite_region_annotation_buffers): New vars.
8931 (build_annotations_unwind): Just reset
8932 Vwrite_region_annotation_buffers.
8933 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8934 Call write-region-post-annotation-function.
8935 (build_annotations): Add to Vwrite_region_annotation_buffers if
8936 buffer changes.
8937
a39e2539
AR
89382009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8939
8940 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8941 Tiger.
51d861de
SM
8942 * nsfns.m (ns_do_applescript):
8943 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8944
35ed44db
AR
89452009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8946
8947 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8948
cbe0b5bf
AR
89492009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8950
8951 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8952
6049d3a0
AR
8953 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8954
8955 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8956 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8957 handle Ctrl-tab. (Bug#1841)
8958 (ns_get_color): Use unsigned long long for scanned hex string value.
8959 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8960 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8961 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8962 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8963 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8964 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8965 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8966
d3810c21 8967 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8968 DPI. (Bug#1316)
d3810c21
AR
8969 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8970 values in onTiger section.
4c7077c3 8971
e301e634
CY
89722009-01-19 Chong Yidong <cyd@stupidchicken.com>
8973
7f82490b
CY
8974 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8975 Check return value of font_spec_from_name.
64cc3cf6 8976 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8977
8978 * font.c (font_spec_from_name): Return Qnil if font name could not
8979 be parsed.
8980 (font_parse_name): Treat a `?' character as part of an XLFD.
8981
e301e634
CY
8982 * fns.c (Fsubstring): Doc fix.
8983
1c0db158
KH
89842009-01-19 Kenichi Handa <handa@m17n.org>
8985
51d861de 8986 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8987 (ftfont_list): Likewise.
8988
acf20901
JB
89892009-01-18 Juanma Barranquero <lekktu@gmail.com>
8990
fff4e459
JB
8991 * dbusbind.c (Fdbus_register_signal):
8992 * process.c (conv_sockaddr_to_lisp):
8993 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8994
acf20901
JB
8995 * callproc.c (Fgetenv_internal): Doc fix.
8996
e7abcdfb
CY
89972009-01-16 Chong Yidong <cyd@stupidchicken.com>
8998
8999 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9000 it is not even used.
9001
b60861e6
GM
90022009-01-16 Glenn Morris <rgm@gnu.org>
9003
9004 * font.c (Ffont_variation_glyphs): Silence compiler.
9005
8db52afe
JB
90062009-01-15 Juanma Barranquero <lekktu@gmail.com>
9007
9008 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9009 Reported by David Robinow <drobinow@gmail.com>.
9010
4cddb209
KH
90112009-01-15 Kenichi Handa <handa@m17n.org>
9012
51d861de 9013 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9014
f247f67b
JR
90152009-01-14 Jason Rumney <jasonr@gnu.org>
9016
9017 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9018 never a fontset. (Bug#1562)
f247f67b 9019
f56a4450
KH
90202009-01-14 Kenichi Handa <handa@m17n.org>
9021
9022 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9023 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9024
4e99855e
CY
90252009-01-13 Chong Yidong <cyd@stupidchicken.com>
9026
9027 * font.c (font_clear_prop): If clearing the family, clear the font
9028 width index too.
9029
fff4e459 9030 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9031
24f01470
JB
90322009-01-12 Juanma Barranquero <lekktu@gmail.com>
9033
9034 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9035 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9036 functions, use sizeof.
9037
a41240a3
MR
90382009-01-12 Martin Rudalics <rudalics@gmx.at>
9039
9040 * keyboard.c (read_char): Fix case where last_nonmenu_event
9041 returned a bad value with submenus. (Bug#447)
9042
944636b8
CY
90432009-01-12 Chong Yidong <cyd@stupidchicken.com>
9044
9045 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9046 family, clear the font width index too.
9047
0dad7c6f
JR
90482009-01-11 Jason Rumney <jasonr@gnu.org>
9049
9050 * keyboard.c (cmd_error_internal): Exit when errors occur before
9051 frame creation and not in daemon mode. (Bug#1836)
9052
7c2363af
CY
90532009-01-10 Chong Yidong <cyd@stupidchicken.com>
9054
9055 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9056 of a display vector, backtrack.
9057 (try_window_reusing_current_matrix): Check glyph type before
9058 referencing charpos member.
9059
97b1b294
EZ
90602009-01-10 Eli Zaretskii <eliz@gnu.org>
9061
9062 Fix Bug #876:
9063
9064 * coding.c (inhibit_null_byte_detection): New variable.
9065 (detect_coding, detect_coding_system): Don't pay attention to null
9066 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9067 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9068 <inhibit-iso-escape-detection>: Doc fix.
9069
4624b6e3
JR
90702009-01-09 Jason Rumney <jasonr@gnu.org>
9071
9072 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9073 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9074 Only report Unicode Plane 2 fonts as unicode-sip.
9075
323b840c
CY
90762009-01-09 Chong Yidong <cyd@stupidchicken.com>
9077
51d861de
SM
9078 * xfaces.c (Fx_font_family_list): Delete function.
9079 Move compatibility version to faces.el.
323b840c 9080
51d861de 9081 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9082
eba7400d
MR
90832009-01-09 Martin Rudalics <rudalics@gmx.at>
9084
9085 * frame.c (x_set_frame_parameters): Remember requested value for
9086 fullscreen before it's reset by the parameter handler.
9087
4b09796d
GM
90882009-01-09 Glenn Morris <rgm@gnu.org>
9089
9090 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9091 (last_command_event): ... and update all users.
4b09796d
GM
9092 (last_input_char): For clarity, rename to...
9093 (last_input_event): ... and update all users.
9094 (last-command-char, last-input-char): Move to subr.el as aliases.
9095 * cmds.c, commands.h: Update for last_command_char rename.
9096
14ccea62
CY
90972009-01-08 Chong Yidong <cyd@stupidchicken.com>
9098
51d861de 9099 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9100
5f004711
JR
91012009-01-08 Jason Rumney <jasonr@gnu.org>
9102
9103 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9104 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9105 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9106 Don't declare.
fff4e459 9107 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9108 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9109
b71f6f73
KH
91102009-01-07 Kenichi Handa <handa@m17n.org>
9111
50b06221 9112 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9113 remember the coding system used for decoding in
50b06221
KH
9114 coding_system (Bug#1039).
9115
b71f6f73 9116 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9117 breaking the loop. (Bug#870)
b71f6f73
KH
9118 (decode_coding_utf_16, decode_coding_emacs_mule)
9119 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9120 (decode_coding_charset): Likewise.
9121
56f668f7
MR
91222009-01-05 Martin Rudalics <rudalics@gmx.at>
9123
9124 * frame.c (x_set_frame_parameters): Make sure height (width) get
9125 applied when fullwidth (fullheight) is set. (Bug#1522)
9126
5da9424d
JB
91272009-01-04 Juanma Barranquero <lekktu@gmail.com>
9128
9129 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9130 (utc_base): Declare as ULONGLONG, not long double.
9131 (convert_time_raw): Delete.
9132 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9133 (initialize_utc_base): New function.
9134 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9135 (convert_from_time_t): Use initialize_utc_base; compute result with
9136 64-bit arithmetic.
9137 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9138
c4605e09
EZ
91392009-01-03 Eli Zaretskii <eliz@gnu.org>
9140
9acef61c 9141 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9142 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9143 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9144 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9145 [!subprocesses]: Define.
9146 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9147 (Flist_system_processes, Fsystem_process_attributes)
9148 [!subprocesses]: Call list_system_processes and
9149 system_process_attributes instead of returning Qnil.
9150
9acef61c
JB
9151 * dosfns.c (system_process_attributes, list_system_processes):
9152 New functions.
c4605e09
EZ
9153
9154 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9155
9156 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9157 Don't use the default (no-op) implementation.
9158
8b7d0a16
JR
91592009-01-03 Jason Rumney <jasonr@gnu.org>
9160
a6d46bc1
JR
9161 * keyboard.c (parse_modifiers_uncached): Wheel events are
9162 clicks (bug#687).
9163
8b7d0a16
JR
9164 * w32term.c (x_query_colors, x_query_color): New functions.
9165
9166 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9167 (svg_load_image): Cast returned pointers from dynamically loaded
9168 functions. Eliminate W32 specific code.
9169
bfe11752
DN
91702009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9171
89e2438a
DN
9172 * nsfns.m (x_set_foreground_color, x_set_background_color)
9173 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9174 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9175 x_ prefix instead of ns_. Update references.
9176 (syms_of_nsfns): Add a FIXME comment.
9177
9178 * nsterm.m (x_set_cursor_type): New prototype.
9179 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9180
bfe11752
DN
9181 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9182 for Solaris instead of incorrectly providing Qutime and Qcutime.
9183
031da700
EZ
91842009-01-02 Eli Zaretskii <eliz@gnu.org>
9185
9186 * w32.c (process_times): Compute sum of utime and stime.
9187 (system_process_attributes): Add Qtime to the alist.
9188
9189 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9190 and add them to the alist.
9191
9192 * process.c (top level) <Qtime, Qctime>: New variables.
9193 (syms_of_process): staticpro them.
9194 (Fsystem_process_attributes): Add their documentation to the doc
9195 string.
9196
9197 * process.h: Declare Qtime and Qctime.
9198
df23bf08
JR
91992009-01-02 Jason Rumney <jasonr@gnu.org>
9200
9acef61c 9201 * image.c (Qgobject): New symbol.
df23bf08
JR
9202 (syms_of_image): Initialize it.
9203 (init_svg_functions): Load some functions from gobject library.
9204
5bbdf7aa
DN
92052009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9206
9207 * frame.c (make_terminal_frame): Remove redundant code and useless
9208 block.
9209
63136da6
AS
92102009-01-01 Andreas Schwab <schwab@suse.de>
9211
9212 * process.c (conv_sockaddr_to_lisp): Add workaround for
9213 getsockname bug on BSD.
9214
9ef69046
CY
92152009-01-01 Chong Yidong <cyd@stupidchicken.com>
9216
d6fafbe0
CY
9217 * xfns.c (x_create_tip_frame): Set border width of the X window.
9218
51d861de 9219 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9220
f9c34147
JR
92212009-01-01 Jason Rumney <jasonr@gnu.org>
9222
9acef61c 9223 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9224 Don't block input, as per earlier xterm.c changes.
9225
f5497e45
AR
92262008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9227
9228 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9229 (ns_appkit_version_int): New function.
9230 (x-server-version): Use ns_appkit_version_int and follow 21+
9231 convention of returning 3 integers.
9232
c19cab20
KH
92332008-12-30 Kenichi Handa <handa@m17n.org>
9234
9235 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9236 (CHAR_SURROGATE_PAIR_P): New macro.
9237
9238 * font.h (struct font_driver): New member get_variation_glyphs.
9239
9acef61c 9240 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9241 (Ffont_variation_glyphs): New function.
9242 (syms_of_font): Defsubr it.
9243
9244 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9245 ftfont_variation_glyphs.
9246 (setup_otf_gstring): New function.
9247 (ftfont_drive_otf): Use it.
9248 (ftfont_shape_by_flt): Handle variation selector.
9249 (ftfont_variation_glyphs): New function.
9250
28cd591f
MR
92512008-12-30 Martin Rudalics <rudalics@gmx.at>
9252
9253 * frame.c (Vemacs_iconified): Remove.
9254
7f714baf
JR
92552008-12-30 Jason Rumney <jasonr@gnu.org>
9256
9257 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9258 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9259
9d2d22ab
CY
92602008-12-30 Chong Yidong <cyd@stupidchicken.com>
9261
9262 * indent.c (Fvertical_motion): Don't advance iterator if we have
9263 reseated to the desired position.
9264
9265 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9266 checking for pos match.
9267
545312c2
KH
92682008-12-30 Kenichi Handa <handa@m17n.org>
9269
1ede3eb6
KH
9270 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9271 just get the low 8-bit of the code.
9272
545312c2
KH
9273 * font.c (font_intern_prop): Validate str as multibyte.
9274
bd7bbf29
DN
92752008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9276
31e0750e
DN
9277 * dispextern.h (struct face): Move lface and hash from the middle
9278 of bitfields.
9279
bd7bbf29
DN
9280 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9281
b5672e7c
DN
92822008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9283
9284 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9285 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9286 instead of intervals.h.
9287
d704470f
AS
92882008-12-26 Andreas Schwab <schwab@suse.de>
9289
9290 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9291 cons.
9292
54b33868
MR
92932008-12-26 Martin Rudalics <rudalics@gmx.at>
9294
9295 * textprop.c (Qminibuffer_prompt): New variable.
9296 (syms_of_textprop): Initialize it.
9297 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9298 in minibuffer-prompt face. (Bug#1662)
9299
40b615d6
JR
93002008-12-25 Jason Rumney <jasonr@gnu.org>
9301
9302 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9303
baae5c2d
JR
93042008-12-24 Jason Rumney <jasonr@gnu.org>
9305
9306 * ralloc.c (r_alloc_reset_variable): New function.
9307
9308 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9309 record of what points where. (Bug#716)
baae5c2d 9310
a9051c88
DN
93112008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9312
9313 * minibuf.c (read_minibuf): Follow the non-interactive case when
9314 running as a daemon, before detaching.
9315
8b146312
AS
93162008-12-22 Andreas Schwab <schwab@suse.de>
9317
9318 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9319 * gtkutil.c (free_widget_value): Use xfree instead of free.
9320
56f2de10
MR
93212008-12-22 Martin Rudalics <rudalics@gmx.at>
9322
9323 * frame.c (delete_frame): New function derived from
9324 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9325 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9326 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9327 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9328 * frame.h: Extern delete_frame.
9329 * window.c (window_loop):
9330 * terminal.c (delete_terminal):
9331 * xterm.c (x_connection_closed):
9332 * xfns.c (Fx_hide_tip):
9acef61c 9333 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9334
1fc200d6
JR
93352008-12-21 Jason Rumney <jasonr@gnu.org>
9336
9337 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9338 when character maps to .notdef character.
9339
5e252df2
SM
93402008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9341
9342 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9343
99b72cc4
JR
93442008-12-20 Jason Rumney <jasonr@gnu.org>
9345
9346 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9347 a graphical frame on Windows. (Bug#1325)
99b72cc4 9348
acc49a52
JD
93492008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9350
9351 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9352
6ea15123
CY
93532008-12-20 Chong Yidong <cyd@stupidchicken.com>
9354
9355 * minibuf.c (Fread_buffer): Doc fix.
9356
b2dab6c8
JR
93572008-12-20 Jason Rumney <jasonr@gnu.org>
9358
54ea0c87 9359 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9360 server name in UNC paths. (Bug#719)
54ea0c87 9361
b2dab6c8 9362 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9363 charbuf. (Bug#1035)
b2dab6c8 9364
6d1921be
DN
93652008-12-19 Daniel Engeler <engeler@gmail.com>
9366
9367 * sysdep.c (serial_configure): Fix typo.
9368
53934c98
DN
93692008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9370
9371 * sysdep.c: Include alloca.h.
f4f634e8
DN
9372 (system_process_attributes): Add implementation for Solaris.
9373
9374 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9375
06e111a6
DN
93762008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9377
9378 Reorganize implementation of Flist_system_processes and
9379 Fsystem_process_attributes. No functional changes.
9380 * process.c: Don't #include pwd.h, grp.h and limits.h.
9381 (Flist_system_processes): Just call list_system_processes.
9382 (Fsystem_process_attributes): Just call system_process_attributes.
9383 (procfs_list_system_processes, time_from_jiffies)
9384 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9385 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9386
9387 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9388 (list_system_processes): Rename from
9389 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9390 Provide a do nothing implementation.
9391 (system_process_attributes): Rename from
9392 procfs_list_system_processes.
9393 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9394 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9395
9396 * w32.c (list_system_processes): Rename from
9397 w32_list_system_processes.
9398 (system_process_attributes): Rename from
9399 w32_system_process_attributes.
9400
9401 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9402
9403 * process.h (w32_list_system_processes)
9404 (w32_system_process_attributes): Remove.
362654a6
JB
9405 (list_system_processes, system_process_attributes):
9406 New prototypes.
06e111a6 9407
6a705b23
KH
94082008-12-19 Kenichi Handa <handa@m17n.org>
9409
9410 * xfont.c (xfont_decode_coding_xlfd): New function.
9411 (xfont_encode_coding_xlfd): New function.
9412 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9413 (xfont_list): Decode and encode XLFD by iso-8859-1.
9414 (xfont_match): Likewise.
9415 (xfont_list_family): Likewise.
9416 (xfont_open): Likewise.
9417
d66c0241 9418 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9419 names are utf-8.
9420
d66c0241 9421 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9422 names are utf-8.
9423
5a130941
JD
94242008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9425
9426 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9427 changed.
bfd20325
JD
9428 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9429 clicked on a detached tool bar button.
5a130941 9430
fd95644b
DN
94312008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * emacs.c (main): Print and error and exit when no data is read
9434 from the pipe.
9435
e6eee6ae
JR
94362008-12-17 Jason Rumney <jasonr@gnu.org>
9437
9438 * w32font.c (w32font_has_char): Always return -1.
9439
a35dd56b
KH
94402008-12-16 Kenichi Handa <handa@m17n.org>
9441
9442 * font.c (font_open_entity): Fix previous change.
9443
0e3635c2
DN
94442008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9445
9446 * process.c: Include <limits.h>.
9447
d4835507 94482008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9449
9450 * font.c (font_update_drivers): Fix mistake in reconstructing the
9451 driver list.
9452
94532008-12-16 Chong Yidong <cyd@stupidchicken.com>
9454
9455 * font.c (font_clear_cache): Fix format of font cache data.
9456
e2cbc401
CY
94572008-12-15 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * xftfont.c (xftfont_open): Free Xft font pattern if
9460 XftFontOpenPattern fails.
9461
9462 * xterm.c (x_free_frame_resources): Remove extraneous call to
9463 free_frame_faces.
9464
b131d535
CY
94652008-12-13 Chong Yidong <cyd@stupidchicken.com>
9466
9467 * xterm.c (x_delete_display): Move xim_close_dpy call to
9468 x_delete_terminal.
9469 (x_delete_terminal): Call xim_close_dpy.
9470
e6df5336
JR
94712008-12-13 Jason Rumney <jasonr@gnu.org>
9472
9473 * w32font.c (intern_font_name): New function.
9474 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9475 (w32font_open_internal, Fx_select_font): Decode font name.
9476 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9477
9478 * w32font.h (intern_font_name): Declare new function.
9479
9480 * w32uniscribe.c (add_opentype_font_name_to_list):
9481 Use intern_font_name.
9482
20d68145
CY
94832008-12-13 Chong Yidong <cyd@stupidchicken.com>
9484
9f2554de
CY
9485 * frame.c (Fdelete_frame): Call free_font_driver_list.
9486
3d9bec9a
CY
9487 * font.c (free_font_driver_list): Implement missing function.
9488
20d68145
CY
9489 * w32term.c (w32_term_init): Don't initialize the image cache
9490 here; it will be done in init_frame_faces.
9491
9492 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9493 (struct x_display_info): Remove unused member null_pixel. New
9494 member xim_callback_data.
9495
9496 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9497 (xim_initialize): Save pointer to callback function data.
9498 (xim_close_dpy): Free callback function data. Call XCloseIM,
9499 reverting 2008-11-04 change by David Smith.
9500 (x_term_init): Don't initialize the image cache here; it will be
9501 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9502 (x_delete_display): Free x_dnd_atoms member.
9503
96f9306b
KH
95042008-12-13 Kenichi Handa <handa@m17n.org>
9505
6dec9044
JB
9506 * font.c (font_rescale_ratio): Moved from xfaces.c.
9507 Argument type changed. Handle a font-spec too.
96f9306b 9508 (font_score): Check Vface_font_rescale_alist.
6dec9044 9509 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9510
9511 * xfaces.c (font_rescale_ratio): Moved to font.c.
9512
8d5b4964
CY
95132008-12-13 Chong Yidong <cyd@stupidchicken.com>
9514
9515 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9516
e6df5336
JR
95172008-12-12 Jason Rumney <jasonr@gnu.org>
9518
9519 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9520 Vwindow_system_version to the real w32 major version.
9521
97c6058a
DN
95222008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9523
9524 * term.c (init_tty): Move setting the terminal name before the
9525 potential user: maybe_fatal.
9526
ec4e88d7
CY
95272008-12-11 Chong Yidong <cyd@stupidchicken.com>
9528
d4835507
JB
9529 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9530 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9531
b4233ec9
JR
95322008-12-11 Jason Rumney <jasonr@gnu.org>
9533
8ec71e23 9534 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9535 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9536
b4233ec9 9537 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9538 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9539
011a0143
JB
95402008-12-11 Juanma Barranquero <lekktu@gmail.com>
9541
9542 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9543
3c309f34
JB
95442008-12-11 Juanma Barranquero <lekktu@gmail.com>
9545
9546 * process.c (Fsystem_process_attributes, syms_of_process):
9547 Fix typo in name of Ssystem_process_attributes.
9548 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9549
fedc6ab5
JB
95502008-12-11 Juanma Barranquero <lekktu@gmail.com>
9551
9552 * syntax.c (Fmodify_syntax_entry): Doc fix.
9553
ba3de0e8
JB
95542008-12-10 Juanma Barranquero <lekktu@gmail.com>
9555
9556 * font.c (Ffont_spec): Move usage to end of docstring.
9557
174f1c74
JR
95582008-12-10 Jason Rumney <jasonr@gnu.org>
9559
9560 * w32font.c (Qcham): New symbol.
9561 (font_supported_scripts): Add cham, and comments for other new
9562 scripts in bitfield from OpenType spec.
9d32f818
JR
9563 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9564 contain characters beyond the bmp.
174f1c74 9565
7b649478
KH
95662008-12-10 Kenichi Handa <handa@m17n.org>
9567
9568 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9569 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9570 Qunicode_sip.
9571
2133e2d1
JB
95722008-12-10 Juanma Barranquero <lekktu@gmail.com>
9573
9574 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9575 (Fcoding_system_put): Use QCdefault_char.
9576 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9577
9af886ee
CY
95782008-12-09 Chong Yidong <cyd@stupidchicken.com>
9579
74d819eb
CY
9580 * xftfont.c (syms_of_xftfont): Fix typo.
9581
4ccfa1c0 9582 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9583
7c19d3ae
DN
95842008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9585
9586 * emacs.c (main): Close daemon_pipe on exec.
9587
567826bb
CY
95882008-12-08 Chong Yidong <cyd@stupidchicken.com>
9589
9590 * termchar.h (struct tty): New members termcap_term_buffer and
9591 termcap_strings_buffer.
9592
9593 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9594 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9595 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9596 All callers changed.
9597 (init_tty): Store termcap data and string buffers in new struct
9598 tty members termcap_term_buffer and termcap_strings_buffer.
9599 (delete_tty): Free them.
4ccfa1c0 9600 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9601
aa96c42b
SZ
96022008-12-07 Seiji Zenitani <zenitani@mac.com>
9603
9604 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9605 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9606
b7e1d896
CY
96072008-12-06 Chong Yidong <cyd@stupidchicken.com>
9608
9609 * coding.c (make_conversion_work_buffer): Disable buffer
9610 modification hooks in the work buffer.
9611
b5ec91a5
EZ
96122008-12-05 Eli Zaretskii <eliz@gnu.org>
9613
9614 * process.c (procfs_system_process_attributes): If `nread' has a
9615 negative value, assign zero to it.
9616
a5d2a52b
CY
96172008-12-05 Chong Yidong <cyd@stupidchicken.com>
9618
68c5540b 9619 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9620
7bf1bb21
KH
96212008-12-05 Kenichi Handa <handa@m17n.org>
9622
9623 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9624 second character is a combining character.
9625
2fdc7d00
EZ
96262008-12-05 Eli Zaretskii <eliz@gnu.org>
9627
9628 * process.c (procfs_system_process_attributes): Don't use cmd,
9629 cmdsize, and q without initializing them first.
9630
bf6bfba8
JR
96312008-12-04 Jason Rumney <jasonr@gnu.org>
9632
9633 * w32font.c (w32font_draw): Initialize orig_clip before getting
9634 it, and delete it when finished.
9635
a3b1a468
DN
96362008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9637
9638 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9639 case when running as a daemon before detaching.
9640
8b8be8eb
JB
96412008-12-03 Juanma Barranquero <lekktu@gmail.com>
9642
805f2638 9643 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9644
b1bde622
KH
96452008-12-03 Kenichi Handa <handa@m17n.org>
9646
e500c47d
KH
9647 * font.c (font_at): Set `multibyte' at first.
9648
ca516334
KH
9649 * coding.c (decode_coding_charset): Check type of an element of
9650 vector VALIDS.
7bf1bb21 9651 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9652
4ccfa1c0 9653 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9654 (font_for_char): Likewise.
9655
1e5ecd37
CY
96562008-12-03 Chong Yidong <cyd@stupidchicken.com>
9657
d5b01609 9658 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9659 (font_update_lface): Handle fonts with corrupted size specs,
9660 i.e. non-int and non-float.
d5b01609 9661
11e3a6e4 9662 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9663 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9664 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9665
ab06788b
CY
9666 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9667
1e5ecd37 9668 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9669 underline_minimum_offset for underline position.
1e5ecd37 9670
63c125ab
DN
96712008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9672
9673 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9674
9675 * character.c (c_string_width): Specify the type for LEN.
9676
3a8406e1
KH
96772008-12-03 Kenichi Handa <handa@m17n.org>
9678
4ccfa1c0 9679 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9680 (decode_coding_utf_8): Likewise.
4ccfa1c0 9681 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9682 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9683
651df7d9
CY
96842008-12-02 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * keyboard.c (make_lispy_position): Only use PT if the selected
9687 window is current.
9688
1f625c6c
AS
96892008-12-02 Andreas Schwab <schwab@suse.de>
9690
f7741ce9
AS
9691 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9692
1f625c6c
AS
9693 * doprnt.c (doprnt1): Fix size of charbuf.
9694
92bc2678
CY
96952008-12-02 Chong Yidong <cyd@stupidchicken.com>
9696
9697 * keyboard.c (timer_check): Revert last change.
9698
93b9e8cc
JB
96992008-12-02 Juanma Barranquero <lekktu@gmail.com>
9700
9701 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9702
fd7a37d5
JB
97032008-12-01 Juanma Barranquero <lekktu@gmail.com>
9704
9705 * makefile.w32-in: Update dependencies.
9706 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9707
c115043b
AS
97082008-12-01 Andreas Schwab <schwab@suse.de>
9709
9710 * font.c (register_font_driver): Use xmalloc.
9711 (font_put_frame_data): Likewise.
9712
f5668d2a
CY
97132008-12-01 Chong Yidong <cyd@stupidchicken.com>
9714
860d96be
CY
9715 * xfaces.c (realize_x_face): Make abort condition clearer.
9716
f5668d2a
CY
9717 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9718
379c17e7
CY
97192008-11-30 Chong Yidong <cyd@stupidchicken.com>
9720
9721 * keyboard.c (timer_check): After a timer runs, ensure that the
9722 selected window's buffer is current.
9723
35f36d65
JB
97242008-11-30 Juanma Barranquero <lekktu@gmail.com>
9725
f952c61c
JB
9726 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9727 It was accidentally restored by the Unicode merge.
9728
35f36d65
JB
9729 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9730
b23077df
JB
97312008-11-29 Juanma Barranquero <lekktu@gmail.com>
9732
9733 * w32proc.c: Include "coding.h".
9734 (Fw32_short_file_name): Encode filename passed to Windows API.
9735 (Fw32_long_file_name): Encode filename passed to Windows API and
9736 decode back the result. (Bug#1433)
9737
b8ebe9dd
KH
97382008-11-29 Kenichi Handa <handa@m17n.org>
9739
8cc53f96
KH
9740 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9741 not before accessing it.
9742
b8ebe9dd
KH
9743 * charset.c (Fdefine_charset_internal): After calculating
9744 min_char, max_char, and fastmap, copy the charset structure again.
9745 (encode_char): Fix the previous change.
9746
59bc82c0
SZ
97472008-11-28 Seiji Zenitani <zenitani@mac.com>
9748
9749 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9750
9751 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9752
9753 * nsterm.m (x_set_frame_alpha): New function.
9754
32247e3d
EZ
97552008-11-27 Eli Zaretskii <eliz@gnu.org>
9756
9757 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9758
b003e5ff
JB
97592008-11-27 Juanma Barranquero <lekktu@gmail.com>
9760
9761 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9762 pointer to check_face_name.
9763
708550f5
KH
97642008-11-27 Kenichi Handa <handa@m17n.org>
9765
9766 * category.h (SET_CATEGORY_SET): Call set_category_set.
9767 (set_category_set): Extern it.
9768
9769 * category.c (hash_get_category_set): New function.
9770 (Fmodify_category_entry): Adjusted for the change of
9771 char_table_ref_and_range. Call hash_get_category_set to get a
9772 category set to store in the table.
9773
9774 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9775 Funify_charset.
9776
2ae37cf0 9777 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9778 (DECODE_CHAR): Check if the decoder vector is ready.
9779 (ENCODE_CHAR): Check if the encoder char-table is ready.
9780 (maybe_unify_char): Extern it.
9781
9782 * charset.c (Vchar_unified_charset_table): Delete it.
9783 (inhibit_load_charset_map): New variable.
9784 (temp_charset_work): New variable.
9785 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9786 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9787 New macros.
9788 (load_charset_map): Meaning of control_flag changed. If
9789 inhibit_load_charset_map is nonzero, setup a table in
9790 temp_charset_work.
9791 (load_charset): New argument control_flag.
9792 (map_charset_for_dump): New function.
9793 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9794 map_charset_for_dump.
9795 (Fdefine_charset_internal): If the charset method is MAP, load
9796 mapping tables by calling load_charset.
9797 (Funify_charset): Don't load a mapping table but directly set
9798 Vchar_unify_table.
9799 (maybe_unify_char): New function.
9800 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9801 Handle the case of inhibit_load_charset_map being nonzero.
9802 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9803 Handle the case of inhibit_load_charset_map being nonzero.
9804 (Fclear_charset_maps): Just free temp_charset_work.
9805 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9806 variable.
9807
9808 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9809 change of char_table_ref_and_range.
9810 (char_table_ref_and_range): Change the meaning of argument FROM
9811 and TO. Now the caller must provide initial values for *FROM
9812 and *TO.
9813
9814 * fontset.c (fontset_add): Adjusted for the change of
9815 char_table_ref_and_range.
9816 (fontset_get_font_group): Likewise.
9817 (Ffontset_info): Likewise.
9818
9819 * keymap.c (describe_vector): Adjusted for the change of
9820 char_table_ref_and_range. For char-table, put boundary between
9821 non-ASCII and 8-bit characters.
9822
9823 * print.c (print_object): For bool-vector, delete unnecessary
9824 check of ASCII_BYTE_P.
9825
9196133b
JR
98262008-11-26 Jason Rumney <jasonr@gnu.org>
9827
9828 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9829 leading in font height. (Bug#879)
9196133b 9830
9f688acf
GM
98312008-11-26 Glenn Morris <rgm@gnu.org>
9832
9833 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9834 redefinition with ifdef. (Bug#1383)
9835
90d19aff
AR
98362008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9837
9838 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9839
4ccfa1c0 98402008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9841
9842 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9843 New EmacsView methods.
9844 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9845 Fixes bug #1048,1357,1414.
9846
98472008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9848
9849 Fix bug #1362.
9850 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9851 is not an indexed color.
9852 * nsterm.m (free_indexed_color): Add argument checking.
9853 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9854
e7d5ecb3
CY
98552008-11-24 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9858 Document confirm-after-completion value for
9859 minibuffer-completion-confirm.
9860
c285743c
JR
98612008-11-24 Jason Rumney <jasonr@gnu.org>
9862
9863 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9864 warning.
9865
b0857706
JR
98662008-11-23 Jason Rumney <jasonr@gnu.org>
9867
9868 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9869 restored before returning.
9870
9871 * w32font.c (check_face_name): New function.
9872 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9873 fonts. (Bug#642)
b0857706 9874
ee50ff07
MR
98752008-11-22 Martin Rudalics <rudalics@gmx.at>
9876
9877 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9878 confirm-nonexistent-file-or-buffer in doc-string.
9879
b8ff72fa
SM
98802008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9881
9882 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9883 Fix copy/paste typo. Add checks.
9884
cee53ed4
KH
98852008-11-21 Kenichi Handa <handa@m17n.org>
9886
9887 * coding.c (detect_coding_iso_2022): Reject invalid composition
9888 sequence.
9889 (DECODE_COMPOSITION_START): If the current source is the last
9890 block, and the current composition doesn't end, regard this
9891 sequence as invalid.
9892 (decode_coding_iso_2022): Handle invalid composition sequence.
9893
f6ef1e65
MR
98942008-11-20 Martin Rudalics <rudalics@gmx.at>
9895
9896 * window.c (coordinates_in_window): Don't return
9897 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9898 line when the window is not the rightmost one. (Bug#1372)
9899
e08b1705
MR
99002008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9901
9902 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9903
ad98e89f
EZ
99042008-11-15 Eli Zaretskii <eliz@gnu.org>
9905
9906 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9907 and bright_bg if noninteractive is non-zero.
9908
fb098a4b
CY
99092008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9910
9911 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9912 x_draw_glyph_string_background.
9913
9914 * w32term.c (x_draw_glyph_string): Likewise.
9915
ce952b6e
CY
99162008-11-15 Chong Yidong <cyd@stupidchicken.com>
9917
9918 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9919 the next glyph string once past the overhang width.
9920
9921 * nsterm.m (ns_draw_glyph_string): Likewise.
9922
9923 * w32term.c (x_draw_glyph_string): Likewise.
9924
26ea7079
CY
99252008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9926
9927 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9928 double file close.
9929
1c33c906
MR
99302008-11-14 Martin Rudalics <rudalics@gmx.at>
9931
9932 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9933 dedicated status of window before attempting to display another
9934 buffer in it.
9935
8fc29035
JB
99362008-11-14 Juanma Barranquero <lekktu@gmail.com>
9937
9938 * msdos.c (Fmsdos_long_file_names):
9939 (syms_of_msdos) <dos-unsupported-char-glyph>:
9940 * dosfns.c (Fint86): Fix typos in docstrings.
9941
55fb4286
EZ
99422008-11-14 Eli Zaretskii <eliz@gnu.org>
9943
9944 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9945
3fda0315
KY
99462008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9947
9948 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9949
7e849c17
CY
99502008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9951
9952 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9953
9954 * frame.h: Negative alpha means "don't touch".
9955
9956 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9957
9958 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9959
b9fd67bd
DN
99602008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9961
9962 * hftctl.c:
9963 * chpdef.h:
9964 * acldef.h: Remove files used only for systems no longer supported.
9965
9966 * Makefile.in: Fix .o alphabetical ordering.
9967 (hftctl.o): Remove dependency, file removed.
9968 (keymap.o, print.o): Depend on charset.h.
9969
d5998e03
KH
99702008-11-10 Kenichi Handa <handa@m17n.org>
9971
2ae37cf0 9972 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9973
be70e183
CY
99742008-11-08 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * dired.c (file_name_completion): If completion_ignore_case is
9977 enabled, ignore case when checking completion-regexp-list.
9978
7cf94eac
EZ
99792008-11-08 Eli Zaretskii <eliz@gnu.org>
9980
9981 * vm-limit.c (get_lim_data): Fix last change.
9982
ee107a89
KH
99832008-11-08 Kenichi Handa <handa@m17n.org>
9984
9985 * character.c (Fget_byte): New function.
9986 (syms_of_character): Defsubr Fget_byte.
9987
5fd15622
CY
99882008-11-07 Chong Yidong <cyd@stupidchicken.com>
9989
9990 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9991 cursor position is valid after scrolling.
9992
13d62fad
JB
99932008-11-06 Juanma Barranquero <lekktu@gmail.com>
9994
9995 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9996
a1dd2936
GM
99972008-11-06 Glenn Morris <rgm@gnu.org>
9998
9999 * xterm.c (handle_one_xevent): Don't let popup menus cause
10000 mouse-autoselect-window related window switching. (Bug#1261)
10001
860cd236
CY
100022008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10003
10004 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10005
653a3150
AS
100062008-11-04 Andreas Schwab <schwab@suse.de>
10007
10008 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10009
870f5cac
CY
100102008-11-03 Chong Yidong <cyd@stupidchicken.com>
10011
10012 * xfns.c (Fx_wm_set_size_hint): New function.
10013
1e02f3cb
MR
100142008-11-03 Martin Rudalics <rudalics@gmx.at>
10015
10016 * textprop.c (Fprevious_single_char_property_change): Return 0
10017 when there's no change in a string. (Bug#1301)
10018
e630dfc6
MR
100192008-11-02 Martin Rudalics <rudalics@gmx.at>
10020
10021 * frame.c (do_switch_frame): New argument NORECORD passed to
10022 Fselect_window.
10023 (Fselect_frame): New argument NORECORD passed to
10024 do_switch_frame.
10025 (Fset_frame_selected_window): New argument NORECORD passed to
10026 Fselect_frame.
10027 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10028 in call of do_switch_frame.
10029 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10030 Handle NORECORD argument in call of Fselect_frame.
10031 * lisp.h (do_switch_frame, Fselect_frame)
10032 (Fset_frame_selected_window): Adjust declarations.
10033 * window.c (select_frame_norecord): New function.
10034 (run_window_configuration_change_hook): Use it and call
10035 Fselect_frame with NORECORD set.
10036 (Fselect_window): Pass NORECORD to Fselect_frame.
10037 (Fset_window_configuration): Handle NORECORD argument in call of
10038 do_switch_frame.
10039 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10040 Fset_frame_selected_window.
10041 * keyboard.c (command_loop_1): Handle NORECORD in call of
10042 Fselect_frame (currently ifdefd).
10043
9020b223
GM
100442008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10045
10046 * emacs.c (USAGE2): Untabify.
10047
793ffee8
SM
100482008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10049
10050 * composite.c (fill_gstring_header): Fix copy/paste typo.
10051
ab6d1131
MR
100522008-10-31 Martin Rudalics <rudalics@gmx.at>
10053
10054 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10055 (Fother_window): Rename argument and rewrite doc-string.
10056 (select_window_norecord): Fix return value. (Bug#1276)
10057
601a9cf1
JB
100582008-10-30 Juanma Barranquero <lekktu@gmail.com>
10059
10060 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10061 new frames overriding foreground for tooltips. Based on similar patch
10062 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10063
813b0652
CY
100642008-10-29 Chong Yidong <cyd@stupidchicken.com>
10065
10066 * emacs.c (Fdaemon_initialized): Initialize nfd.
10067
4414f58f
MR
100682008-10-29 Martin Rudalics <rudalics@gmx.at>
10069
10070 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10071 (Fwindow_text_height): Clarify doc-strings.
10072 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10073 doc-string of window-scroll-functions.
10074
ecdcaa09
RS
100752008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10076
10077 * category.c (syms_of_category): Fix typo in docstring.
10078
23fe745a
JB
100792008-10-28 Juanma Barranquero <lekktu@gmail.com>
10080
10081 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10082 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10083 Fix typos in docstrings.
10084
ff808935
DN
100852008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10086
10087 * emacs.c (daemon_pipe): Make non-static.
10088 (IS_DAEMON): Move definition ...
10089 * lisp.h (IS_DAEMON): ... here.
10090 (daemon_pipe): Declare.
10091 (is_daemon): Remove.
10092 * dispnew.c (init_display): Use IS_DAEMON.
10093
fc012771
SM
100942008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10095
10096 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10097 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10098
10099 * emacs.c (is_daemon): Remove.
10100 (main): Don't set is_daemon.
10101 (IS_DAEMON): New macro.
10102 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10103 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10104 parent exits.
10105 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10106
d8bdbe6f
CY
101072008-10-27 Chong Yidong <cyd@stupidchicken.com>
10108
d1a072bf
CY
10109 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10110 over-sized glyph, draw it with the default glyph width.
10111
e2e325aa
CY
10112 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10113 glyph, draw it with the default glyph width.
10114
10115 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10116 glyph, draw it with the default glyph width.
10117
d8bdbe6f
CY
10118 * xdisp.c (try_scrolling): When computing the distance from the
10119 scroll margin to PT, try moving some distance past the window
10120 bottom before giving up.
10121
7bfac547
MR
101222008-10-27 Martin Rudalics <rudalics@gmx.at>
10123
10124 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10125 (Fset_window_buffer): Explain in doc-string that a window can be
10126 "strongly" dedicated to its buffer.
10127
4ff029f6
DN
101282008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10129
10130 * emacs.c (daemon_name): New variable.
10131 (main): Deal with --daemon=SERVER_NAME.
10132 (Fdaemonp): Return a name if one was passed to --daemon.
10133
5790ef40
DN
101342008-10-26 Romain Francoise <romain@orebokech.com>
10135
f9bd0df9 10136 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10137 (main): Create a pipe before forking, make the parent exit only after
10138 the child has closed its end of the pipe. Move closing the
10139 descriptors ...
10140 (Fdaemon_initialized): ... here. New function.
10141
f5385255
SM
101422008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10143
4d632321
SM
10144 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10145 the previous unoptimized table.
10146
f5385255
SM
10147 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10148 the distinction between non-nil and non-t value of `dedicated'.
10149
6c56a0f3
CY
101502008-10-25 Chong Yidong <cyd@stupidchicken.com>
10151
10152 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10153 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10154
fec89261
MR
101552008-10-25 Martin Rudalics <rudalics@gmx.at>
10156
10157 * window.c (Fget_buffer_window, Fdelete_windows_on)
10158 (Freplace_buffer_in_windows): Make buffer argument optional and
10159 rename to buffer_or_name.
10160
34fcddd0
CY
101612008-10-24 Chong Yidong <cyd@stupidchicken.com>
10162
f5385255
SM
10163 * xdisp.c (handle_single_display_spec, handle_display_prop):
10164 Undo 2005-05-16 change.
34fcddd0
CY
10165 (handle_stop): Pop iterator if it's loaded with an empty string.
10166 (get_overlay_strings_1): Don't save iterator if it's loaded with
10167 an empty string (bug#1201).
10168
064766f2
KH
101692008-10-24 Kenichi Handa <handa@m17n.org>
10170
10171 * ftfont.c (ftfont_otf_features): Fix previous change.
10172 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10173 calling ftfont_otf_features.
10174
f9bd0df9 101752008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10176
10177 * font.c (font_match_p): Fix for the case that a vector of
10178 characters is in script-representative-chars.
10179
1dae9197
MA
101802008-10-24 Michael Albinus <michael.albinus@gmx.de>
10181
10182 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10183 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10184 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10185 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10186 macro. (Bug#1186)
1dae9197 10187
f9bd0df9 101882008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10189
10190 * s/sol2-10.h: New file.
10191
878a4584
JB
101922008-10-23 Juanma Barranquero <lekktu@gmail.com>
10193
10194 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10195 poor beast has survived 9+ years and the jump from xterm.c!).
10196
cd265ca6
MR
101972008-10-23 Martin Rudalics <rudalics@gmx.at>
10198
10199 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10200 Reword doc-string.
f5385255 10201 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10202
472a4dc9
JB
102032008-10-23 Juanma Barranquero <lekktu@gmail.com>
10204
10205 * character.c (syms_of_character) <script-representative-chars>:
10206 <unicode-category-table>: Doc fixes.
10207
159bd5a2
NF
102082008-10-23 Noah Friedman <friedman@splode.com>
10209
10210 * coding.c (make_conversion_work_buffer): Check that
10211 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10212 Fget_buffer_create.
10213
49f9c344
KH
102142008-10-23 Kenichi Handa <handa@m17n.org>
10215
10216 * font.c (font_add_log): Check the values of extra properties.
10217
12bb3111
MR
102182008-10-22 Martin Rudalics <rudalics@gmx.at>
10219
10220 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10221 Reword doc-string.
10222 (Fset_window_parameter): Use NILP.
10223 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10224 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10225
bbeb4e99
JB
102262008-10-22 Juanma Barranquero <lekktu@gmail.com>
10227
10228 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10229
102302008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10231
10232 * nsfns.m (ns_appkit_version): New function.
10233 (x-server-version): Use it.
10234 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10235 (x-server-vendor): Don't check_ns().
10236
10237 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10238
a9b555d3
JB
102392008-10-22 Juanma Barranquero <lekktu@gmail.com>
10240
10241 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10242 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10243
4626499f
KH
102442008-10-22 Kenichi Handa <handa@m17n.org>
10245
e3681952
KH
10246 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10247 scripts.
10248
4626499f
KH
10249 * category.c (word_boundary_p): Check scripts instead of charset.
10250 Handle nil value in word-separating-categories and
10251 word-combining-categories.
10252 (syms_of_category): Fix docstrings of word-separating-categories
10253 and word-combining-categories.
10254
1560f91a
EZ
102552008-10-21 Eli Zaretskii <eliz@gnu.org>
10256
10257 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10258 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10259
f4668441
MR
102602008-10-21 Martin Rudalics <rudalics@gmx.at>
10261
10262 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10263 Rename arg "buffer" to "buffer_or_name".
10264 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10265 it optional.
10266 (no_switch_window): Remove since the return value is not used.
a9b555d3 10267 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10268 Consider window as dedicated when Fwindow_dedicated_p returns a
10269 non-nil value.
10270 * lisp.h: Remove prototype for no_switch_window.
10271
fd75ddb2
JD
102722008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10273
10274 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10275 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10276
07295713
KH
102772008-10-21 Kenichi Handa <handa@m17n.org>
10278
10279 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10280 check Vlatin_extra_code_table.
10281
712adc82
EZ
102822008-10-20 Eli Zaretskii <eliz@gnu.org>
10283
10284 * fileio.c (Fset_file_modes): Doc fix.
10285
f549eb0b
MA
102862008-10-19 Michael Albinus <michael.albinus@gmx.de>
10287
10288 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10289 in arrays.
10290
aac0c6e3
MR
102912008-10-19 Martin Rudalics <rudalics@gmx.at>
10292
10293 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10294 Mention kill-buffer in doc-string.
10295 (Fset_window_buffer): Reinsert tem check removed in last commit.
10296 (Fenlarge_window, Fshrink_window): Have argument names and
10297 doc-string follow Elisp manual more closely.
10298
102992008-10-18 Eli Zaretskii <eliz@gnu.org>
10300
10301 * fileio.c (Fset_file_modes): Doc fix.
10302
103032008-10-18 Martin Rudalics <rudalics@gmx.at>
10304
10305 * window.c (Fwindow_width, Fset_window_start)
10306 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10307 (Fdelete_windows_on, Freplace_buffer_in_windows):
10308 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10309 (Fwindow_dedicated_p): Make window argument optional.
10310 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10311 (Fset_window_buffer): Respect any non-nil dedicated value for
10312 window. Rename "buffer" argument to "buffer_or_name".
10313
103142008-10-18 Ulrich Mueller <ulm@gentoo.org>
10315
10316 * m/sh3.h: New file, machine description for SuperH.
10317
103182008-10-17 Martin Rudalics <rudalics@gmx.at>
10319
10320 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10321
103222008-10-17 Kenichi Handa <handa@m17n.org>
10323
10324 * ftfont.c (ftfont_otf_features): Fix indexing
10325 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10326
103272008-10-16 Magnus Henoch <mange@freemail.hu>
10328
10329 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10330 (Fdbus_call_method_asynchronously): Ditto.
10331 This change makes C-h f display the argument list.
10332
103332008-10-16 Chong Yidong <cyd@stupidchicken.com>
10334
10335 * fileio.c (Fexpand_file_name): Doc fix.
10336
10337 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10338 of :foreground and :background equivalent to unspecified (20.x
10339 compatibility).
10340
103412008-10-15 Eli Zaretskii <eliz@gnu.org>
10342
10343 * buffer.c (syms_of_buffer): Doc fix.
10344
103452008-10-14 Kenichi Handa <handa@m17n.org>
10346
10347 * font.c (font_clear_prop): When clearing font width, clear the
10348 average width field too.
10349
103502008-10-12 Andreas Schwab <schwab@suse.de>
10351
10352 * ftfont.c (ftfont_shape_by_flt): Make static.
10353 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10354
10355 * font.c: Don't include <m17n-flt.h>.
10356
103572008-10-10 Eli Zaretskii <eliz@gnu.org>
10358
10359 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10360
103612008-10-09 Eli Zaretskii <eliz@gnu.org>
10362
10363 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10364 away code.
10365
103662008-10-09 Chong Yidong <cyd@stupidchicken.com>
10367
10368 * dispnew.c (update_text_area): Avoid looping due to large glyph
10369 overhangs (bug#1070).
10370
103712008-10-09 Kenichi Handa <handa@m17n.org>
10372
10373 * fontset.c (face_for_char): If face->fontset is negative, just
10374 return ascii_face.
10375
f5385255
SM
10376 * font.c (font_delete_unmatched): Fix previous change.
10377 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10378
103792008-10-09 Martin Rudalics <rudalics@gmx.at>
10380
10381 * frame.c (Fraise_frame): On text-only terminals select frame in
10382 order to make it visible. (Bug#1061)
10383
103842008-10-08 Chong Yidong <cyd@stupidchicken.com>
10385
10386 * fontset.c (fontset_find_font): Check frame validity.
10387
103882008-10-07 Chong Yidong <cyd@stupidchicken.com>
10389
a9b555d3 10390 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10391 (xg_display_close): Allow Emacs to close all displays (bug#985).
10392
103932008-10-06 Andreas Schwab <schwab@suse.de>
10394
f5385255 10395 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10396
103972008-10-06 Chong Yidong <cyd@stupidchicken.com>
10398
f5385255 10399 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10400
a9b555d3 10401 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10402
10403 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10404 during initialization.
10405
104062008-10-04 Eli Zaretskii <eliz@gnu.org>
10407
10408 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10409 whole thing on MSDOS frames as well as on a TTY.
10410
10411 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10412 well as for TTY.
10413 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10414 well as on a TTY.
10415
10416 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10417 as well as for TTY.
10418
10419 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10420
10421 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10422 MSDOS frames as well.
10423
104242008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10425
10426 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10427 correct arguments.
b71ac3dd 10428 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10429
104302008-10-03 Glenn Morris <rgm@gnu.org>
10431
10432 * emacs.c (USAGE1): Add --daemon.
10433
104342008-10-02 Eli Zaretskii <eliz@gnu.org>
10435
10436 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10437 100, so it's in percents as advertised.
10438
104392008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10440
10441 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10442 (ns_output.current_cursor, ns_output.desired_cursor)
10443 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10444 (FRAME_NEW_CURSOR_COLOR): Remove.
10445
10446 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10447 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10448 enumeration (HOLLOW_BOX_CURSOR, etc.).
10449
10450 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10451 (draw_window_cursor): Simplify code.
f5385255
SM
10452 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10453 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10454 updates manually.
a9b555d3
JB
10455 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10456 Use core Emacs cursor types.
aac0c6e3 10457
b8ff72fa 10458 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10459
104602008-10-02 Martin Rudalics <rudalics@gmx.at>
10461
10462 * process.c (Faccept_process_output): Fix doc-string.
10463
104642008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10465
10466 * gmalloc.c (__sbrk): Also define for uClibc.
10467
10468 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10469 for uClibc.
10470
104712008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10472
10473 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10474 styles.
10475 (nsfont_open): Reenable the cache.
10476
104772008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10478
10479 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10480 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10481
104822008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10483
10484 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10485 a suspended terminal.
10486
104872008-09-30 Michael Albinus <michael.albinus@gmx.de>
10488
10489 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10490
104912008-09-30 Eli Zaretskii <eliz@gnu.org>
10492
10493 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10494
104952008-09-30 Chong Yidong <cyd@stupidchicken.com>
10496
10497 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10498 in a continued line coincides with a line beginning.
10499
105002008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10501
10502 * nsfont.m (nsfont_trait_distance): Fix bug.
10503 (nsfont_list): Return a list rather than a vector (syncs with Handa
10504 changes of 2008-05-14).
10505 (nsfont_open): Improve logging.
10506
105072008-09-29 Andreas Schwab <schwab@suse.de>
10508
10509 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10510
105112008-09-28 Martin Rudalics <rudalics@gmx.at>
10512
10513 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10514 name as char-resolve-modifiers.
10515 Reported by: Markus Triska <markus.triska@gmx.at>
10516
105172008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10518
10519 * dispnew.c (init_display): Return earlier when running as a daemon.
10520
105212008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10522
10523 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10524
105252008-09-27 Eli Zaretskii <eliz@gnu.org>
10526
10527 * composite.c (Fcomposition_get_gstring)
10528 (Fcompose_region_internal, Fcompose_string_internal)
10529 (Ffind_composition_internal): Doc fix.
10530 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10531 (syms_of_composite) <auto-composition-function>: Doc fix.
10532 (syms_of_composite) <composition-function-table>: Doc fix.
10533
105342008-09-25 Chong Yidong <cyd@stupidchicken.com>
10535
10536 * search.c (wordify): New argument for lax word-ends.
10537 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10538
105392008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10540
10541 * lisp.h (is_daemon): Declare.
10542 * dispnew.c (init_display): Do not try to initialize the terminal
10543 when running as a daemon.
10544
105452008-09-22 Chong Yidong <cyd@stupidchicken.com>
10546
10547 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10548 x_display_pixel_height.
10549
105502008-09-22 Martin Rudalics <rudalics@gmx.at>
10551
10552 * undo.c (record_point): Don't call Fundo_boundary for first
10553 change. (Bug#731)
10554
105552008-09-22 Juanma Barranquero <lekktu@gmail.com>
10556
10557 * emacs.c (Fdaemonp): Doc fix.
10558
105592008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10560
10561 * emacs.c (main): Place #ifdef in the proper place.
10562
105632008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10564
10565 * emacs.c (standard_args): Add --daemon.
10566 (main): Disconnect from the terminal when --daemon is passed.
10567 (is_daemon): New variable.
10568 (Fdaemonp): New function.
10569 (syms_of_emacs): Defsubr it.
10570
105712008-09-20 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * xdisp.c (get_next_display_element): Handle string display
10574 correctly when checking for the end of a box run.
10575
105762008-09-20 Glenn Morris <rgm@gnu.org>
10577
10578 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10579 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10580 (Frename_file): Avoid copying to trash if a rename involves
10581 a delete. (Bug#964).
10582
105832008-09-20 Eli Zaretskii <eliz@gnu.org>
10584
10585 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10586 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10587 frames as well as termcap frames.
10588 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10589 get_named_tty.
10590
105912008-09-19 Eli Zaretskii <eliz@gnu.org>
10592
10593 * process.c (procfs_system_process_attributes): Fix cmdline in
10594 case /proc/PID/cmdline is empty.
10595
10596 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10597 x_display_pixel_height.
10598
105992008-09-19 Juanma Barranquero <lekktu@gmail.com>
10600
10601 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10602
10603 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10604 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10605
106062008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10607
10608 * dispextern.h (struct it): Move line_wrap away from the middle of
10609 bitfields. Move voffset in struct iterator_stack_entry after the
10610 bitfields. Move tab_width near after another short.
10611
106122008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10613
10614 * frame.h (struct frame): Move alpha from the middle of bitfields.
10615
10616 * window.h (struct window): Move frozen_window_start_p after the
10617 rest of the bitfields to reduce padding.
10618
106192008-09-18 Chong Yidong <cyd@stupidchicken.com>
10620
10621 * xterm.h (x_display_info): Remove `height' and `width' members.
10622
10623 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10624
10625 * w32term.h (w32_display_info): Remove `height', `width',
10626 `height_in', and `width_in' members.
10627
b8ff72fa
SM
10628 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10629 New functions.
aac0c6e3
MR
10630 (x_calc_absolute_position): Use them.
10631 (x_term_init): Omit removed `height' and `width' members.
10632
b8ff72fa
SM
10633 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10634 New functions.
aac0c6e3
MR
10635 (w32_read_socket, x_calc_absolute_position): Use them.
10636 (w32_initialize_display_info, w32_term_init): Omit removed members
10637 of w32_display_info.
10638
b8ff72fa
SM
10639 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10640 New functions.
10641 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10642
b8ff72fa
SM
10643 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10644 New functions.
aac0c6e3
MR
10645 (x_calc_absolute_position): Use them.
10646 (x_term_init): Omit removed `height' and `width' members.
10647
10648 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10649 (compute_tip_xy):
10650 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10651 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10652 x_display_pixel_width.
10653
106542008-09-18 Kenichi Handa <handa@m17n.org>
10655
10656 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10657 (composition_compute_stop_pos): Fix handling of static composition.
10658 (Fcomposition_get_gstring): Check FROM and TO at first.
10659
106602008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10661
46e722a9 10662 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10663 mixup (YAILOM).
10664
106652008-09-17 Chong Yidong <cyd@stupidchicken.com>
10666
10667 * indent.c (Fvertical_motion): Use position reported by iterator
10668 instead of PT for determining screen motion (bug#943).
10669
106702008-09-17 Romain Francoise <romain@orebokech.com>
10671
10672 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10673
106742008-09-17 Kenichi Handa <handa@m17n.org>
10675
10676 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10677
10678 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10679 if necessary.
10680
106812008-09-16 Kenichi Handa <handa@m17n.org>
10682
10683 * coding.c (make_conversion_work_buffer): Avoid calling
10684 Fget_buffer_create if it is not necessary.
10685
106862008-09-15 Martin Rudalics <rudalics@gmx.at>
10687
10688 * window.c (Fselect_window): Don't update window_select_count and
10689 use_time when norecord is not nil.
10690
106912008-09-14 Kenichi Handa <handa@m17n.org>
10692
10693 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10694 specpdl_ptr.
10695
106962008-09-12 Kenichi Handa <handa@m17n.org>
10697
10698 * indent.c (scan_for_column): Don't handle automatic composition
10699 if the current buffer is not associated with a window.
10700
10701 * composite.c (composition_reseat_it): If the current buffer is
10702 not associated with a window, ignore the automatic composition.
10703 (find_automatic_composition): Likewise.
10704
107052008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10706
10707 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10708 (Fgpm_mouse_stop): Use it.
10709 * termhooks.h (close_gpm): Declare.
10710 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10711 connection if Gpm_GetEvent fails.
10712
10713 * window.c (set_window_buffer): Always preserve current-buffer.
10714
107152008-09-12 Glenn Morris <rgm@gnu.org>
10716
10717 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10718
107192008-09-11 Glenn Morris <rgm@gnu.org>
10720
10721 * charset.c (charset-map-path): Doc fix.
10722
107232008-09-10 Kenichi Handa <handa@m17n.org>
10724
10725 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10726
10727 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10728 compose a grapheme cluster with the preceding base glyph.
10729
10730 * composite.c (composition_compute_stop_pos): Fix previous change.
10731 Reset cmp_it->id to -1 at first.
10732
107332008-09-10 Glenn Morris <rgm@gnu.org>
10734
10735 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10736
107372008-09-09 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * keyboard.c (read_key_sequence): Reapply translation maps when
10740 switching keyboards.
10741
107422008-09-09 Kenichi Handa <handa@m17n.org>
10743
10744 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10745 characters.
10746
10747 * composite.c (FORWARD_CHAR): Fix calculation
10748 of (POSITION).pos_byte.
10749 (composition_compute_stop_pos): Limit the search of composition to
10750 at most 500 characters ahead. If we reach the limit or find a
10751 newline, set cmp_it->ch to -2 and return 0.
10752 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10753
107542008-09-08 Kenichi Handa <handa@m17n.org>
10755
10756 * indent.c (Fvertical_motion): Be sure to set
10757 it_overshoot_expected if it.cmp_it.id is non-negative.
10758
107592008-09-07 Andreas Schwab <schwab@suse.de>
10760
10761 * callproc.c (Fcall_process): Don't hold references to string data
10762 across garbage collection. Move initialisation of new_argv down
10763 to avoid compiler bug.
10764
107652008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10766
10767 * process.c (Fsystem_process_attributes): Doc fix.
10768
107692008-09-07 Chong Yidong <cyd@stupidchicken.com>
10770
10771 * callproc.c (Fcall_process): Canonicalize current directory name.
10772
10773 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10774 iterator advances to the next line if the current line ends in a
10775 continued tab.
10776
107772008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10778
10779 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10780 member to point to cmp_from.
10781
10782 * xdisp.c: Doc fix for references to gidx data member.
10783
107842008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10785
10786 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10787
107882008-09-07 Kenichi Handa <handa@m17n.org>
10789
10790 * composite.c (FORWARD_CHAR): Check STOP after
10791 incrementing (POSITION).pos.
10792
107932008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10794
10795 * process.c (Fsystem_process_attributes): Doc fix.
10796
107972008-09-06 Chong Yidong <cyd@stupidchicken.com>
10798
10799 * keyboard.c (Ftop_level): Doc fix.
10800
108012008-09-06 Eli Zaretskii <eliz@gnu.org>
10802
10803 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10804 minibuffer, don't let lower part of menu invade the echo area.
10805
10806 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10807 "char *q" to access menu text and advance through it. Revert the
10808 change that displayed ">" instead of ASCII character 0x10.
10809
108102008-09-05 Eli Zaretskii <eliz@gnu.org>
10811
10812 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10813 toggle boxes and radio buttons on MS-DOS as well.
10814
108152008-09-05 Kenichi Handa <handa@m17n.org>
10816
10817 * composite.c (autocmp_chars): Check lookback count.
10818 (composition_compute_stop_pos): Set cmp_it->lookback.
10819 (composition_reseat_it): Check lookback count.
10820 (struct position_record): New struct.
10821 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10822 (find_automatic_composition): New function.
10823 (composition_adjust_point): Use find_automatic_composition.
10824
10825 * dispextern.h (struct composition_it): New member lookback.
10826
108272008-09-02 Chong Yidong <cyd@stupidchicken.com>
10828
10829 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10830 if moving by a single line.
10831
108322008-09-02 Andreas Schwab <schwab@suse.de>
10833
10834 * xterm.c (x_delete_display): Fix merge error.
10835
10836 * fileio.c (Fexpand_file_name): Remove unused variables.
10837
108382008-09-02 Eli Zaretskii <eliz@gnu.org>
10839
10840 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10841 storage on all platforms, not just on DOS_NT.
10842
108432008-09-02 Jason Rumney <jasonr@gnu.org>
10844
b8ff72fa
SM
10845 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10846 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10847
108482008-09-01 Chong Yidong <cyd@stupidchicken.com>
10849
10850 * xfaces.c (Finternal_set_alternative_font_family_alist)
10851 (Finternal_set_alternative_font_registry_alist): Properly copy
10852 entire alist structure.
10853
108542008-09-01 Kenichi Handa <handa@m17n.org>
10855
d66c0241 10856 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10857 representative chars of the script is a vector.
d66c0241
JB
10858 (ftfont_list): Handle the case where the representative chars of
10859 the script is a vector.
aac0c6e3
MR
10860
10861 * character.c (syms_of_character): Docstring of
10862 script-representative-chars fixed.
10863
108642008-08-31 Eli Zaretskii <eliz@gnu.org>
10865
10866 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10867 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10868 the menu. Allocate larger buffer for `text', to account for
10869 possible ^C characters.
10870
108712008-08-31 Martin Rudalics <rudalics@gmx.at>
10872
10873 * xdisp.c (prepare_menu_bars): Don't call
10874 Vwindow_size_change_functions with arg Qt.
10875
108762008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10877
10878 * font.h (font_range):
10879 * fileio.c (report_file_error):
46e722a9
SM
10880 * composite.c (composition_update_it): Yet another int/Lisp_Object
10881 mixup (YAILOM).
aac0c6e3
MR
10882
108832008-08-30 Glenn Morris <rgm@gnu.org>
10884
10885 * data.c (Fmake_variable_frame_local): Doc fix.
10886
10887 * frame.c (Fmodify_frame_parameters): Doc fix.
10888
108892008-08-30 Eli Zaretskii <eliz@gnu.org>
10890
10891 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10892 needed by GetTokenInformation.
10893 (w32_system_process_attributes): Check return values of all system
10894 APIs.
10895
10896 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10897 only when the state changes.
10898 (IT_update_begin, IT_update_end): Add termscript trace.
10899
10900 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10901 clipboard is unavailable. Set dst to NULL if it doesn't point to
10902 malloc'ed data.
10903 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10904 passing random values to xfree.
10905
10906 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10907 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10908
109092008-08-29 Jason Rumney <jasonr@gnu.org>
10910
10911 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10912
109132008-08-29 Eli Zaretskii <eliz@gnu.org>
10914
10915 * composite.c (fill_gstring_body): Avoid compiler warnings.
10916
10917 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10918 LGLYPH_SET_CODE to avoid compiler warnings.
10919
2ae37cf0 10920 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10921
10922 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10923
10924 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10925 LGLYPH_SET_CODE.
10926
109272008-08-29 Kenichi Handa <handa@m17n.org>
10928
10929 * fileio.c (report_file_error): Don't downcase the first character
10930 of errstring if it is still unibyte.
10931
109322008-08-29 Kenichi Handa <handa@m17n.org>
10933
10934 These changes are to re-implement the automatic composition so
10935 that it doesn't use text properties.
10936
10937 * Makefile.in (ftfont.o): Depend on composite.h.
10938 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10939
10940 * character.h (Vunicode_category_table): Extern it.
10941
10942 * character.c (Vunicode_category_table): New variable.
10943 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10944
10945 * chartab.c (optimize_sub_char_table): Perform more greedy
10946 optimization.
10947
b8ff72fa
SM
10948 * composite.h (enum composition_method):
10949 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10950 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10951 (Vcomposition_function_table): Extern it.
10952 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10953 (composition_gstring_put_cache, composition_gstring_from_id)
10954 (composition_gstring_p, composition_gstring_width)
10955 (composition_compute_stop_pos, composition_reseat_it)
10956 (composition_update_it, composition_adjust_point): Extern them.
10957 (Fcomposition_get_gstring): EXFUN it.
10958
d66c0241 10959 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10960 (Vcomposition_function_table)
10961 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10962 (gstring_hash_table, gstring_work, gstring_work_headers):
10963 New variables.
aac0c6e3
MR
10964 (gstring_lookup_cache, composition_gstring_put_cache)
10965 (composition_gstring_from_id, composition_gstring_p)
10966 (composition_gstring_width, fill_gstring_header)
10967 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10968 (composition_reseat_it, composition_update_it)
b8ff72fa 10969 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10970 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10971 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10972 Defsubr composition_get_gstring.
aac0c6e3
MR
10973
10974 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10975 cmp_id.
10976 (struct glyph_string): Delete the member gidx. New members
10977 cmp_id, cmp_from, and cmp_to.
10978 (enum it_method): Delete GET_FROM_COMPOSITION.
10979 (struct composition_it): New struct.
10980 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10981 Delete c, len, cmp_id, cmp_len in u.comp.
10982
10983 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10984 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10985 (enum lglyph_indices): Likewise.
b8ff72fa 10986 (font_range): Adjust extern.
aac0c6e3
MR
10987 (font_fill_lglyph_metrics): Extern it.
10988
10989 * font.c (QCf): New variable.
10990 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10991 (font_prepare_composition): Delete this function.
10992 (font_range): Type and arguments changed.
10993 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10994 (font_fill_lglyph_metrics): New function.
b8ff72fa 10995 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10996 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10997 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10998 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10999
11000 * fontset.h (font_for_char): Extern it.
11001
11002 * fontset.c (font_for_char): New function.
11003
11004 * ftfont.c: Include composite.h.
11005 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11006 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11007
11008 * indent.c: Include composite.h and dispextern.h.
11009 (check_composition): Delete this function.
11010 (scan_for_column): Handle composition by
11011 composition_compute_stop_pos, composition_reseat_it, and
11012 composition_update_it.
11013 (compute_motion): Likewise.
11014 (Fvertical_motion): Fix checking of composition.
11015
11016 * keyboard.c (adjust_point_for_property): Check composition by
11017 composition_adjust_point.
11018
b8ff72fa 11019 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11020 struct glyph_string.
11021
b8ff72fa
SM
11022 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11023 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11024 struct glyph.
11025 (produce_composite_glyph): Likewise.
11026
b8ff72fa
SM
11027 * w32term.c (x_draw_composite_glyph_string_foreground):
11028 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11029 (x_draw_glyph_string): Likewise.
11030
11031 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11032 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11033
11034 * xdisp.c: Include font.h.
11035 (it_props): Delete the entry for Qauto_composed.
11036 (init_iterator): Initialize it->cmp_it.id to -1.
11037 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11038 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11039 (handle_auto_composed_prop): Delete it.
11040 (handle_composition_prop): Handle only static composition.
11041 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11042 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11043 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11044 (pop_it): Likewise.
11045 (get_next_element): Delete next_element_from_composition.
11046 (CHAR_COMPOSED_P): New macro.
11047 (get_next_display_element): For automatic composition, get a face
11048 from the font in the glyph-string.
11049 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11050 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11051 (next_element_from_string): Check if the character at the current
11052 position is composed by CHAR_COMPOSED_P.
11053 (next_element_from_buffer): Likewise.
d66c0241
JB
11054 (next_element_from_composition): Adjust for the change of struct it.
11055 Update it->cmp_it.
b8ff72fa
SM
11056 (dump_glyph): Adjust for the change of struct glyph.
11057 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11058 it and struct glyph. Don't handle automatic composition here.
11059 (fill_gstring_glyph_string): New function.
11060 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11061 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11062 (BUILD_GSTRING_GLYPH_STRING): New macro.
11063 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11064 automatic composition.
b8ff72fa 11065 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11066 struct glyph.
b8ff72fa 11067 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11068
b8ff72fa 11069 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11070 the change of struct glyph_string.
11071 (x_draw_glyph_string): Likewise.
11072
110732008-08-29 Glenn Morris <rgm@gnu.org>
11074
11075 * buffer.c (word-wrap): Doc fix.
11076 * xdisp.c (truncate-partial-width-windows): Doc fix.
11077 Increase default to 50.
11078
110792008-08-29 Chong Yidong <cyd@stupidchicken.com>
11080
11081 * xdisp.c (update_tool_bar_unwind): New function.
11082 (update_tool_bar): Temporarily set selected frame before building
11083 tool-bar items.
11084
110852008-08-28 Michael Albinus <michael.albinus@gmx.de>
11086
11087 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11088 snprintf, respectively.
11089 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11090
110912008-08-28 Chong Yidong <cyd@stupidchicken.com>
11092
11093 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11094 LDFLAGS to GNUstep CC invocation.
11095
110962008-08-27 Chong Yidong <cyd@stupidchicken.com>
11097
11098 * indent.c (Fvertical_motion): Revert last change. Handle the
11099 general case where we are moving forward, and PT spans multiple
11100 screen lines.
11101
11102 * eval.c (find_handler_clause): Temporarily increase
11103 max-lisp-eval-depth while printing the backtrace buffer, to
11104 guarantee that help-mode code can run.
11105
111062008-08-27 Eli Zaretskii <eliz@gnu.org>
11107
11108 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11109 colors under -rv.
11110 (IT_set_frame_parameters): Don't swap foreground and background
11111 colors if `(reverse . t)' is present in the frame properties.
11112 (internal_terminal_init): Call init_frame_faces only for the
11113 initial frame.
11114
111152008-08-27 Andreas Schwab <schwab@suse.de>
11116
11117 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11118
111192008-08-27 Andreas Schwab <schwab@suse.de>
11120
11121 * search.c (search_buffer): Set char_base to zero only at the end.
11122
111232008-08-27 Kenichi Handa <handa@m17n.org>
11124
b8ff72fa 11125 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11126
111272008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11128
11129 * xterm.c (x_term_init): Temporarily hide the partially
11130 initialized terminal while calling vendor-specific-keysyms.
11131
111322008-08-26 Eli Zaretskii <eliz@gnu.org>
11133
11134 * msdos.c (internal_terminal_init): Most initializations done only
11135 once, especially initial_screen_colors[] and termscript open.
11136
111372008-08-26 Chong Yidong <cyd@stupidchicken.com>
11138
11139 * eval.c (Fcondition_case): Doc fix.
11140
11141 * widgetprv.h (EmacsFramePart): Change font member to the new font
11142 struct.
11143
11144 * widget.c: Include character.h and font.h for XSETFONT.
11145 (setup_frame_gcs): Compute X font id from font struct, just once.
11146
111472008-08-26 Eli Zaretskii <eliz@gnu.org>
11148
11149 * term.c (get_named_tty): Fix last change.
11150
111512008-08-26 Chong Yidong <cyd@stupidchicken.com>
11152
11153 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11154 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11155
111562008-08-25 Eli Zaretskii <eliz@gnu.org>
11157
11158 * frame.c (do_switch_frame): Mark previously displayed frame as
11159 obscured for FRAME_MSDOS_P frames as well.
11160
111612008-08-24 Eli Zaretskii <eliz@gnu.org>
11162
11163 * frame.c (make_terminal_frame): Initialize f->terminal,
11164 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11165 Set the top frame to newly created frame.
11166 (Fmake_terminal_frame): Reuse the_only_display_info.
11167
11168 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11169 estimating available memory.
11170
b97439ce 111712008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11172
11173 * nsterm.m (ns_draw_window_cursor): Don't call
11174 NSDisableScreenUpdates and NSEnableScreenUpdates on
11175 non-NS_IMPL_COCOA systems.
11176
111772008-08-23 Andreas Schwab <schwab@suse.de>
11178
11179 * process.c (procfs_system_process_attributes): Fix use of
11180 uninitialized variables.
11181
111822008-08-23 Eli Zaretskii <eliz@gnu.org>
11183
11184 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11185
11186 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11187 calling tty-set-up-initial-frame-faces.
11188
b8ff72fa
SM
11189 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11190 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11191
11192 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11193 addition to output_termcap.
11194
11195 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11196
11197 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11198 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11199 highlight.
11200
11201 * process.c [!subprocesses]: Define QCname.
11202 (syms_of_process): Intern and staticpro it.
11203
11204 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11205 Adjust for changes in encoding/decoding routines.
11206 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11207 encode_coding and decode_coding.
11208
b8ff72fa 11209 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11210
11211 * dosfns.c: Include frame.h before termhooks.h.
11212 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11213 variable termscript.
11214
11215 * s/msdos.h (USER_FULL_NAME): Define.
11216 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11217
11218 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11219 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11220 pw->pw_gecos.
11221
11222 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11223 SELECTED_FRAME as additional (1st) argument.
11224 (tty_read_avail_input): Handle output_msdos_raw in
11225 addition to output_termcap.
11226
11227 * msdos.c: Include frame.h before termhooks.h.
11228 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11229 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11230 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11231 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11232 (IT_set_terminal_modes, IT_reset_terminal_modes)
11233 (IT_set_frame_parameters): Use tty->termscript instead of a global
11234 variable termscript.
11235 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11236 global variable terminal_coding. Don't refer to
11237 Vnonascii_translation_table.
11238 (internal_terminal_init): Set Vwindow_system in current_kboard.
11239 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11240 Announce date and time of session start, if termscript is open.
11241 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11242 term.c:init_tty). Open termscript only of not already open.
11243 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11244 here instead of dos_ttraw. Don't initialize display if this is an
11245 initial tty. Don't set FRAME_FONT.
11246 (Vwindow_system_version): Bump to 23.
11247 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11248 is available, set up mouse_position_hook.
11249 (dos_ttraw, IT_set_terminal_modes): If called with initial
11250 terminal, do nothing.
11251 (IT_set_frame_parameters): Handle the Qtty_type frame
11252 parameter by calling internal_terminal_init.
11253 (dos_set_window_size, show_mouse_face)
11254 (clear_mouse_face, IT_note_mode_line_highlight)
11255 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11256 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11257 (initialize_msdos_display): New function.
11258 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11259 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11260 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11261 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11262 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11263 (request_sigio, unrequest_sigio): Don't define, now defined on
11264 sysdep.c.
11265 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11266
11267 * term.c [MSDOS]: Include msdos.h.
11268 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11269 conditional to DOS_NT. Allow only one call to this function in a
11270 session. Don't allocate a new struct tty_display_info; instead,
11271 reuse the_only_display_info. Call get_tty_size to get screen
11272 dimensions. Call init_baud_rate to set bad_rate.
11273 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11274 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11275 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11276 (get_tty_terminal, get_named_tty, Ftty_type)
11277 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11278 output_termcap.
b8ff72fa
SM
11279 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11280 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11281 only when subprocesses are supported.
aac0c6e3
MR
11282
11283 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11284 f->output_data.x.
11285 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11286 terminal devices.
11287
5582fbc7 11288 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11289 x_output.
11290 (FRAME_FONT): Use output_data.tty.
11291 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11292 (struct x_display_info): Rename from display_info. Update all users in
11293 msdos.c.
aac0c6e3 11294 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11295 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11296 (dos_ttraw): Update prototype.
11297
11298 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11299 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11300
113012008-08-23 Jason Rumney <jasonr@gnu.org>
11302
11303 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11304 (fn_TIFFSetDirectory): New library function used.
11305 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11306 (tiff_load): Use :index to select among multiple images. Set count
11307 property when multiple images exist.
11308 (gif_format): Use :index, not :image.
11309
113102008-08-23 Chong Yidong <cyd@stupidchicken.com>
11311
11312 * xdisp.c (try_scrolling): Check INT_MAX instead of
11313 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11314 to obtain INT_MAX.
11315
113162008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11317
11318 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11319
113202008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11321
11322 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11323 GNUstep library location.
11324
113252008-08-21 Chong Yidong <cyd@stupidchicken.com>
11326
11327 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11328 before using it.
11329
11330 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11331
113322008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11333
11334 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11335 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11336 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11337 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11338 (EmacsApp-cursor_blink_handler): Remove declaration.
11339 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11340 match 01 Feb 2008 changes in xterm.c.
11341 (ns_read_socket): Add cast to avoid warning.
11342 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11343 GNUstep.
11344
113452008-08-20 Chong Yidong <cyd@stupidchicken.com>
11346
11347 * xselect.c (x_get_foreign_selection): Return nil if desired
11348 selection could not be obtained, instead of signalling an error.
11349
113502008-08-20 David Reitter <david.reitter@gmail.com>
11351
11352 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11353 * nsterm.m: Remove ns-specific code for cursor blinking.
11354 (ns_draw_window_cursor): Clear cursor properly rather than
11355 redrawing the area. Respect width of bar cursors.
11356 These changes enable the use of generic blink-cursor-mode and
11357 generic cursor types in NS and support smooth cursor movements (do
11358 not blink off after command).
11359 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11360 Nextstep, too.
11361
113622008-08-19 Kenichi Handa <handa@m17n.org>
11363
11364 * font.c (Vfont_log_deferred): New variable.
11365 (font_add_log): Check Vfont_log_deferred.
11366 (font_deferred_log): New function.
11367
11368 * font.h (font_deferred_log): Extern it.
11369
11370 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11371 for sorting.
11372 (face_for_char): Use deferred log.
11373
113742008-08-18 Kenichi Handa <handa@m17n.org>
11375
11376 * fontset.c (face_for_char): Add font log.
11377
11378 * font.c (font_add_log): Add the font properties :script, :lang,
11379 and :otf in the log.
11380
113812008-08-17 Chong Yidong <cyd@stupidchicken.com>
11382
11383 * xdisp.c: Remove dead code.
11384 (handle_invisible_prop, next_overlay_string): Defer call to
11385 setup_for_ellipsis.
11386 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11387
113882008-08-15 Chong Yidong <cyd@stupidchicken.com>
11389
11390 * xfaces.c (lookup_derived_face): Properly handle possible zero
11391 return value of get_lface_attributes.
11392 (merge_faces): Don't tell lookup_derived_face to signal an error
11393 if face is not found.
11394
11395 * dired.c (Fdirectory_files): Doc fix.
11396
11397 * process.c (make_process): Initialize kill_without_query struct
11398 member.
11399
114002008-08-15 Eli Zaretskii <eliz@gnu.org>
11401
11402 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11403 Alternative calculation of totphys for Visual Studio 6.
11404
11405 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11406
11407 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11408 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11409 All users changed.
11410 (stat): Only root directory passed to GetDriveType. Allow RAM
11411 disk as well as local fixed disk when w32-get-true-file-attributes
11412 is set to `local'.
11413 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11414 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11415 (w32_cached_id, w32_add_to_cache): New functions.
11416 (get_name_and_id): Look account names in the cache before calling
11417 lookup_account_sid.
11418 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11419 New initialization flags.
11420 (globals_of_w32): Initialize them to zero.
11421 (w32_system_process_attributes): Use w32_cached_id and
11422 w32_add_to_cache.
11423
114242008-08-14 Lawrence Mitchell <wence@gmx.li>
11425
11426 * lread.c (Fread_char, Fread_char_exclusive): If no character
11427 event is read before timeout is reached, return nil, rather than
11428 converting to a number.
11429
114302008-08-14 Chong Yidong <cyd@stupidchicken.com>
11431
11432 * fns.c (use_dialog_box): Doc fix.
11433
11434 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11435 on OS X.
11436
114372008-08-13 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * frame.c (Qns_parse_geometry): New var.
11440 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11441
114422008-08-11 Chong Yidong <cyd@stupidchicken.com>
11443
11444 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11445 space character in calculating tabs.
11446
114472008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11448
11449 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11450
114512008-08-10 Glenn Morris <rgm@gnu.org>
11452
11453 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11454 silence gcc "limited range of data type" warnings in some
11455 make_fixnum_or_float calls.
11456
114572008-08-09 Eli Zaretskii <eliz@gnu.org>
11458
11459 * w32.c (w32_system_process_attributes): If the process does not
11460 exist, return nil.
11461
11462 * w32.c: Include thelp32.h, psapi.h and coding.h.
11463 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11464 declarations.
11465 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11466 (Process32Next_Proc): New typedefs.
11467 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11468 (g_b_init_process32_next, g_b_init_open_thread_token)
11469 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11470 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11471 (g_b_init_get_process_working_set_size)
11472 (g_b_init_global_memory_status_ex): New static variables.
11473 (globals_of_w32): Initialize them.
11474 (create_toolhelp32_snapshot, process32_first, process32_next)
11475 (open_thread_token, impersonate_self, revert_to_self)
11476 (get_process_memory_info, get_process_working_set_size)
11477 (global_memory_status, global_memory_status_ex): New wrapper
11478 functions.
11479 (w32_list_system_processes, w32_system_process_attributes)
11480 (enable_privilege, restore_privilege, ltime, process_times):
11481 New functions.
11482 (convert_time_raw): New function.
11483 (convert_time): Remove conversion of FILETIME into time in 100
11484 nsec units, call convert_time_raw instead.
11485
11486 * process.h (w32_list_system_processes, w32_system_process_attributes):
11487 Add prototypes.
11488 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11489 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11490 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11491 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11492
11493 * process.c (Fsystem_process_attributes): Doc fix.
11494
114952008-08-08 Chong Yidong <cyd@stupidchicken.com>
11496
11497 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11498 a continued multi-char glyph; if so, advance to the actual glyph.
11499
115002008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11501
11502 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11503
11504 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11505 (.m.o): Use it.
11506 * config.in: Regenerate.
11507
115082008-08-07 Chong Yidong <cyd@stupidchicken.com>
11509
11510 * xdisp.c (redisplay_window): Revert last change.
11511 (try_window): Check bottom scroll margin too.
11512
115132008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11514
11515 * config.in: Regenerate.
11516
11517 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11518 -list-load-path-shadows'.
11519 (nsgui.h): Reduce number of things depending on it.
11520
115212008-08-06 Chong Yidong <cyd@stupidchicken.com>
11522
11523 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11524 instead of window-end which does the wrong thing at eob.
11525 (try_cursor_movement): Minor optimization.
11526 (redisplay_window): If scroll margin is defined, don't assume
11527 window doesn't need scrolling.
11528
115292008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11530
11531 * config.in: Regenerate.
11532
11533 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11534 (mostlyclean): Don't delete *.d under NS.
11535
11536 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11537
115382008-08-06 Kenichi Handa <handa@m17n.org>
11539
11540 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11541
115422008-08-06 Andreas Schwab <schwab@suse.de>
11543
11544 * config.in: Regenerate.
11545
115462008-08-05 Chong Yidong <cyd@stupidchicken.com>
11547
11548 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11549 forcing a window start.
11550
11551 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11552 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11553
115542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11555
11556 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11557 argument.
11558
115592008-08-05 Juanma Barranquero <lekktu@gmail.com>
11560
11561 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11562 <scroll-down-aggressively, before-change-functions>:
11563 <after-change-functions>: Reflow docstrings.
11564
115652008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11566 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11567
11568 Dock menu customization, based on a patch by Ken Raeburn, plus some
11569 other fixes.
11570 * nsmenu.m (dockMenu): New variable.
11571 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11572
11573 * nsterm.h (dockMenu): Declare.
11574
11575 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11576 (ns_term_init): Initialize dockMenu.
11577 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11578 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11579 left.
11580
11581 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11582
115832008-08-04 Chong Yidong <cyd@stupidchicken.com>
11584
11585 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11586
11587 * config.in: Regenerate.
11588
115892008-08-04 Seiji Zenitani <zenitani@mac.com>
11590
11591 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11592
115932008-08-04 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11596
115972008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11598
11599 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11600
11601 * keyboard.h: Comment an #endif.
11602
11603 * lisp.h (have_menus_p): Adjust comment.
11604
11605 * menu.c (find_and_return_menu_selection): Fix comparison with
11606 client_data.
11607
11608 * nsmenu.m (popup_activated_flag): New variable.
11609 (popup_activated): New function.
11610 (menu-or-popup-active-p): New exported lisp definition.
11611 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11612 when popup done.
11613 (ns_popup_dialog): Set popup_activated_flag.
11614
11615 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11616 version for GNUstep (handled by conditional typedef in nsterm.m).
11617 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11618 in rgb.txt).
11619
11620 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11621
11622 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11623
11624 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11625
11626 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11627 shortcircuit if popup_activated like GTK and X toolkit.
11628
11629 * m/inter386.h: Change DARWIN to DARWIN_OS.
11630
11631 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11632 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11633 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11634 comment on NO_SOCK_SIGIO.
11635
116362008-08-03 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * nsterm.m (windowDidResize): Remove stopModal call.
11639
116402008-08-03 Andreas Schwab <schwab@suse.de>
11641
11642 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11643 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11644
116452008-08-02 Chong Yidong <cyd@stupidchicken.com>
11646
11647 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11648 Don't use uninitialized pointer variable when using getrlimit.
11649
116502008-08-02 Jason Rumney <jasonr@gnu.org>
11651
11652 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11653
116542008-08-02 Eli Zaretskii <eliz@gnu.org>
11655
11656 * alloc.c (NSTATICS): Bump to 0x640.
11657
11658 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11659
11660 * lisp.h: Add prototype for directory_files_internal.
11661
11662 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11663 New functions.
11664 (syms_of_process): Defsubr them. Add initializations for various
11665 Q* symbols used in procfs_system_process_attributes.
11666 (procfs_list_system_processes, procfs_system_process_attributes)
11667 [HAVE_PROCFS]: New functions.
11668 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11669 (procfs_get_total_memory): New functions.
11670
116712008-08-01 Juanma Barranquero <lekktu@gmail.com>
11672
11673 * xfaces.c (Fx_load_color_file): Fix previous change;
11674 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11675
116762008-08-01 Michael Albinus <michael.albinus@gmx.de>
11677
11678 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11679
116802008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11681
11682 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11683
116842008-08-01 Chong Yidong <cyd@stupidchicken.com>
11685
11686 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11687
11688 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11689 define NSApplicationDelegateReplySuccess.
11690 (EmacsView -converstationIdentifier): Use long instead of
11691 NSInteger for GNUstep, since it doesn't have NSInteger.
11692
11693 * xmenu.c: Revert last change.
11694
11695 * keyboard.h: Fix last change.
11696
116972008-08-01 Juanma Barranquero <lekktu@gmail.com>
11698
11699 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11700 on Windows.
11701
117022008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11703
11704 Warning clearing and clean-up in NS port.
11705 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11706 Add prototypes.
11707 * nsgui.h (FACE_DEFAULT): Remove, unused.
11708 (XGCValues): Change colors to unsigned long.
11709 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11710 nsterm.m.
11711 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11712 (ns_list_fonts): Remove, unused.
11713 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11714 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11715 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11716 (nsfont_draw): Compare face colors to 0, not nil.
11717 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11718 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11719 (-addSubmenuWithTitle:): Use NSMenuItem class.
11720 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11721 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11722 (ns_clip_to_row): Make gc arg a BOOL.
11723 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11724 ns_clip_to_row() call.
11725 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11726 used). Cast FRAME_FONT assignments.
11727 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11728 (ns_string_to_lispmod): Change arg to const char.
11729 (ns_term_init): Use NSMenuItem class.
11730 (EmacsApp -openFile:): Move to different section of file.
11731 (EmacsApp -application:openFiles:): Don't return a value, call
11732 -replyToOpenOrPrint:.
11733 (EmacsView -keyDown:): Fix up cast.
11734 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11735 (EmacsView -menuDown:): Cast tag in call to
11736 find_and_call_menu_selection().
11737 (ns_list_fonts): Remove, unused.
11738 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11739 (ns_fontname_to_xlfd): Make static.
11740 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11741 Remove prototypes (now in keyboard.h).
11742 (next_menubar_widget_id): Remove, unused.
11743 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11744 Remove prototypes (now in keyboard.h).
11745 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11746
117472008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11748
11749 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11750 (floatfns.o): Depend on syssignal.h.
11751 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11752
11753 * systty.h: Fix previous change that removed BSD_TERMIOS.
11754 Add comments to #ifdefs.
11755
117562008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11757
11758 * w32fns.c (w32-load-color-file): Remove.
11759 (x-open-connection): Use renamed Fx_load_color_file.
11760 * xfaces.c (x-load-color-file): Add.
11761 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11762 Emacs.clr.
11763 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11764
117652008-07-31 Michael Albinus <michael.albinus@gmx.de>
11766
11767 * dbusbind.c (Fdbus_call_method_asynchronously)
11768 (Fdbus_method_error_internal): New defuns.
11769 (xd_read_message): Handle also reply messages.
11770 (Vdbus_registered_functions_table): Extend docstring.
11771
117722008-07-31 Juanma Barranquero <lekktu@gmail.com>
11773
11774 * keyboard.c (gobble_input): Fix previous change.
11775
117762008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11777
11778 * bitmaps/README:
11779 * xfns.c:
11780 * termcap.c:
11781 * term.c:
11782 * syswait.h:
11783 * systty.h:
11784 * systime.h:
11785 * syssignal.h:
11786 * sysdep.c:
11787 * process.h:
11788 * process.c:
11789 * print.c:
11790 * ndir.h:
11791 * lread.c:
11792 * keyboard.c:
11793 * getpagesize.h:
11794 * floatfns.c:
11795 * fileio.c:
11796 * emacs.c:
11797 * doc.c:
11798 * dispnew.c:
11799 * dired.c:
11800 * data.c:
11801 * callproc.c:
11802 * buffer.c:
11803 * README:
11804 * Makefile.in:
11805 * s/template.h:
11806 * s/msdos.h:
11807 * m/vax.h: Remove VMS support.
11808 * s/vms.h:
11809 * vlimit.h:
11810 * uaf.h:
11811 * temacs.opt:
11812 * param.h:
11813 * ioctl.h: Remove file.
11814
118152008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11816
11817 * s/ms-w32.h (MULTI_KBOARD): Remove.
11818 * xterm.c:
11819 * xselect.c:
11820 * xfns.c:
11821 * window.c:
11822 * w32term.c:
11823 * w32fns.c:
11824 * terminal.c:
11825 * termhooks.h:
11826 * term.c:
11827 * sysdep.c:
11828 * keyboard.h:
11829 * keyboard.c:
11830 * frame.h:
11831 * frame.c:
11832 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11833 * config.in: Regenerate.
11834
118352008-07-30 Jason Rumney <jasonr@gnu.org>
11836
11837 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11838
11839 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11840 (w32font_open_internal): Get unicode version of textmetrics.
11841 Don't enable or disable glyph indices here.
11842 (w32font_open): Disable use of glyph indices.
11843
11844 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11845
118462008-07-30 Chong Yidong <cyd@stupidchicken.com>
11847
11848 * minibuf.c (Vread_buffer_function): Doc fix.
11849
118502008-07-30 John Paul Wallington <jpw@pobox.com>
11851
11852 * minibuf.c (read_buffer_completion_ignore_case): New var.
11853 (Fread_buffer): Use it.
11854
118552008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11856
11857 * systty.h (sensemode): Remove empty #if. Remove reference to
11858 BSD_TERMIOS, unused.
11859
11860 * sysdep.c: Remove reference to DGUX.
11861 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11862
11863 * config.in: Regenerate.
11864
118652008-07-30 Jason Rumney <jasonr@gnu.org>
11866
11867 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11868
118692008-07-29 Jason Rumney <jasonr@gnu.org>
11870
11871 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11872 is populated.
11873 (uniscribe_encode_char): Always use uniscribe.
11874 Avoid using context if cache is populated.
11875
118762008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11877
11878 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11879 open menu.
11880
11881 * gtkutil.c (menu_nav_ended): Remove.
11882 (create_menus): Remove signal connect for menu_nav_ended.
11883
118842008-07-28 Chong Yidong <cyd@stupidchicken.com>
11885
11886 * xdisp.c (redisplay_window): Check return value of
11887 compute_window_start_on_continuation_line before forcing a window
11888 start.
11889
118902008-07-28 Jason Rumney <jasonr@gnu.org>
11891
11892 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11893
11894 * w32term.c (w32_enable_unicode_output, cleartype_active):
11895 Remove obsolete display options.
11896 (x_draw_glyph_string_background): Don't use old cleartype_active
11897 workaround.
11898 (w32_initialize): Remove cleartype_active initialization.
11899 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11900
119012008-07-28 Andreas Schwab <schwab@suse.de>
11902
11903 * lisp.h (init_weak_hash_tables, syms_of_font)
11904 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11905 (remove_hash_entry): Don't declare.
11906 * eval.c (maybe_call_debugger): Make static and move before use.
11907 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11908 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11909 * xterm.h (x_set_frame_alpha): Declare.
11910
119112008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11912
11913 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11914 (create_menus): Connect selection-done to menu_nav_ended.
11915
119162008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11917
11918 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11919 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11920 parameter with read of 'alpha' one.
11921 (Qns_frame_parameter): Remove.
5582fbc7 11922 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11923 (next-selection-coding-system, Vselection_coding_system)
11924 (Vnext_selection_coding_system): Drop.
11925
119262008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11927
11928 * nsfns.m (do-applescript, do_applescript): Rename to
11929 ns-do-applescript, ns_do_applescript, and move within file.
11930
119312008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11932
11933 Remove support for Mac Carbon.
11934 * mactoolbox.c:
11935 * macterm.h:
11936 * macterm.c:
11937 * macselect.c:
11938 * macmenu.c:
11939 * macgui.h:
11940 * macfns.c:
11941 * mac.c: Remove file.
11942 * s/darwin.h:
11943 * m/intel386.h:
11944 * xfaces.c:
11945 * xdisp.c:
11946 * window.c:
11947 * tparam.c:
11948 * termhooks.h:
11949 * termcap.c:
11950 * term.c:
11951 * syssignal.h:
11952 * sysselect.h:
11953 * sysdep.c:
11954 * process.c:
11955 * lread.c:
11956 * lisp.h:
11957 * keyboard.c:
11958 * image.c:
11959 * fringe.c:
11960 * frame.h:
11961 * frame.c:
11962 * fontset.c:
11963 * font.h:
11964 * font.c:
11965 * fns.c:
11966 * fileio.c:
11967 * emacs.c:
11968 * dispnew.c:
11969 * dispextern.h:
11970 * config.in:
11971 * atimer.c:
2ae37cf0 11972 * Makefile.in: Remove code for Carbon.
aac0c6e3 11973
f0131492 119742008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11975
11976 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11977
119782008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11979
11980 * macterm.h (kCGBitmapByteOrder32Host): New define for
11981 non-universal SDKs.
11982
11983 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11984 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11985
11986 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11987 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11988
119892008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11990
11991 * w32inevt.c: Include dispextern.h.
11992
119932008-07-26 Andreas Schwab <schwab@suse.de>
11994
11995 * print.c (print_object): Fix off-by-one in last change.
11996
119972008-07-25 Juanma Barranquero <lekktu@gmail.com>
11998
11999 * term.c (syms_of_term): Don't initialize default_orig_pair,
12000 default_set_foreground and default_set_background on Windows.
12001
120022008-07-25 Jason Rumney <jasonr@gnu.org>
12003
12004 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12005 ScriptItemize. Clean up return value checking. Remove unused
12006 variables.
12007 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12008 shaping engine.
12009
12010 * w32font.c (w32font_has_char): Handle the case where we can't
12011 determine the script for a character.
12012
120132008-07-25 Chong Yidong <cyd@stupidchicken.com>
12014
12015 * term.c (syms_of_term): Initialize default_orig_pair,
12016 default_set_foreground, and default_set_background.
12017
12018 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12019 clash (bug#86).
12020 (getloadavg): Callers changed.
12021
12022 * image.c (svg_load_image): Fix last change.
12023 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12024 image size is valid. Use g_object_unref instead of deprecated
12025 rsvg_handle_free to free rsvg handle.
12026 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12027
120282008-07-25 Jason Rumney <jasonr@gnu.org>
12029
12030 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12031 surrogates before looking up glyph index.
12032 (w32font_text_extents): Encode as surrogates if falling back to
12033 functions that need UTF-16 wide chars.
12034
12035 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12036 BMP as surrogates before looking up glyph index.
12037
120382008-07-25 Chong Yidong <cyd@stupidchicken.com>
12039
12040 * image.c (svg_load_image): Check for failure in return value of
12041 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12042
120432008-07-25 Jason Rumney <jasonr@gnu.org>
12044
12045 * w32font.c (Fx_select_font): Reverse sense of second arg.
12046
120472008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12048
12049 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12050 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12051
12052 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12053 (PURESIZE): Use it.
12054
120552008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12056
12057 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12058 * m/alpha.h (TEXT_END):
12059 * m/ibmrs6000.h (TEXT_END):
12060 * m/macppc.h (TEXT_END):
12061 * s/darwin.h (TEXT_END):
12062 * s/msdos.h (TEXT_END): Remove, unused.
12063 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12064 * s/cygwin.h: Remove comment.
12065
12066 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12067 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12068 * m/intel386.h (DOT_GLOBAL_START):
12069 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12070 (USG): Remove, file not used on USG platforms.
12071
12072 * Makefile.in (HAVE_X11): Remove empty #else.
12073
120742008-07-24 Andreas Schwab <schwab@suse.de>
12075
12076 * fileio.c (Finsert_file_contents): Properly adjust undo list
12077 after format conversion.
12078
120792008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12080
12081 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12082 (menu_nav_ended): Remove.
12083 (create_menus): Remove signal connect for menu_nav_ended.
12084 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12085 create_menus.
12086 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12087
120882008-07-23 Jason Rumney <jasonr@gnu.org>
12089
12090 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12091 with opened font.
12092 (w32font_open): Set font type to gdi.
12093
12094 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12095
120962008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12097
12098 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12099 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12100 defines it.
12101 * unexec.c (ADDR_CORRECT): Define unconditionally.
12102
12103 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12104
12105 * unexec.c: Remove code depending on !COFF and USG, the file is
12106 not used for such systems.
12107
12108 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12109 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12110 (LD_SWITCH_SYSTEM_1): Remove, update users.
12111
12112 * s/darwin.h (DATA_END):
12113 * m/intel386.h (DATA_END):
12114 * m/ibmrs6000.h (DATA_END):
12115 * m/alpha.h (DATA_END): Remove, unused.
12116
12117 * config.in: Regenerate.
12118 * s/ms-w32.h (subprocesses): Define unconditionally.
12119 * s/template.h (subprocesses): Update comment.
12120 * s/vms.h (subprocesses):
12121 * s/usg5-4.h (subprocesses):
12122 * s/hpux10-20.h (subprocesses):
12123 * s/gnu-linux.h (subprocesses):
12124 * s/cygwin.h (subprocesses):
12125 * s/bsd-common.h (subprocesses):
12126 * s/aix4-2.h (subprocesses):
12127 * s/darwin.h (subprocesses): Do not define, defined by default now.
12128
12129 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12130 Remove all references.
12131 (temacs): Add GNUstep specific ld flags.
12132
12133 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12134 similarly to what X does.
12135
121362008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12137
12138 * nsfns.m (x-list-fonts): Remove.
12139 (syms_of_nsfns): Drop the x-list-fonts declaration.
12140 * nsterm.m: Get rid of remaining "//" comments.
12141
121422008-07-22 Chong Yidong <cyd@stupidchicken.com>
12143
12144 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12145
12146 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12147 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12148 (Fns_own_selection_internal, Fx_disown_selection_internal)
12149 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12150
12151 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12152 ... */' style of docstrings. Doc fixes.
12153
121542008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12155
12156 * terminfo.c (UP, BC, PC): Undo previous change.
12157
12158 * nsfns.m: Rename ns prefixed functions/variables to the
12159 corresponding x versions. Update references.
12160
121612008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12162
12163 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12164
121652008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12166
12167 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12168 Remove forwarding functions.
12169 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12170 non-static.
12171 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12172 non-static.
12173 (ns_frame_parm_handlers): Use the new names.
12174 (syms_of_nsfns): Move to the end of file.
12175
12176 * nsterm.m (syms_of_nsterm): Move to the end of file.
12177
12178 * dispnew.c (init_display): Remove code for X10.
12179
121802008-07-22 Jason Rumney <jasonr@gnu.org>
12181
12182 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12183 bare drive.
12184
121852008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12186
12187 * nsterm.m (syms_of_nsterm): Remove debugging println.
12188
121892008-07-22 David Reitter <david.reitter@gmail.com>
12190
12191 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12192 Carbon implementation of the same functionality: execute arbitrary
12193 AppleScript code.
12194
121952008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12196
12197 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12198 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12199 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12200 (Fx_display_mm_height, Fx_display_mm_width)
12201 (Fx_display_backing_store, Fx_display_visual_class)
12202 (Fx_display_save_under, Fx_open_connection)
12203 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12204 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12205 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12206 (Fx_display_pixel_width, Fx_display_pixel_height)
12207 (Fx_display_usable_bounds, Fx_display_planes)
12208 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12209 ... */' style of docstrings.
12210
122112008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12212
12213 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12214 on this platform.
12215 (mips):
12216 * m/iris4d.h (mips): Do not define.
12217 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12218
12219 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12220
12221 * image.c:
12222 * nsfns.m:
12223 * nsselect.m:
12224 * nsterm.h:
12225 * nsterm.m: Rename ns prefixed functions/variables to the
12226 corresponding x versions. Update references.
12227
12228 * m/ibms390x.h (NO_REMAP): Do not undefine.
12229
12230 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12231
122322008-07-21 Chong Yidong <cyd@stupidchicken.com>
12233
12234 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12235 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12236 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12237 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12238 (Fns_display_mm_height, Fns_display_mm_width)
12239 (Fns_display_backing_store, Fns_display_visual_class)
12240 (Fns_display_save_under, Fns_open_connection)
12241 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12242 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12243 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12244 (Fns_display_pixel_width, Fns_display_pixel_height)
12245 (Fns_display_usable_bounds, Fx_display_planes)
12246 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12247
122482008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12249
12250 * print.c (print_object): Check print_depth before searching for
12251 circularities.
12252
122532008-07-21 Michael Albinus <michael.albinus@gmx.de>
12254
12255 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12256 only sprintf.
12257
122582008-07-21 Kenichi Handa <handa@m17n.org>
12259
12260 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12261
122622008-07-20 Andreas Schwab <schwab@suse.de>
12263
12264 * syntax.c (find_start_pos, find_start_value)
12265 (find_start_value_byte, find_start_begv, find_defun_start)
12266 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12267
122682008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12269
12270 * s/sol2-3.h: Insert contents of s/sol2.h.
12271 (LD_SWITCH_SYSTEM): Remove redundant definition.
12272 * s/sol2.h: Remove, unused.
12273
122742008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12275
12276 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12277
122782008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12279
12280 * Makefile.in (ns_appdir): Fix typo in find command.
12281
122822008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12283
12284 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12285
12286 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12287 added not supported anymore.
12288
12289 * s/usg5-4-2.h (LIBS_SYSTEM):
12290 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12291
12292 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12293 * s/lynxos.h (GETPGRP_NO_ARG):
12294 * s/hpux10-20.h (NO_SIOCTL_H):
12295 * s/gnu.h (GETPGRP_NO_ARG):
12296 * s/gnu-linux.h (NO_SIOCTL_H):
12297 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12298 * s/cygwin.h (GETPGRP_NO_ARG):
12299 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12300 (C_DEBUG_SWITCH): Remove duplicate definition.
12301
12302 * m/ibms390.h: Remove boilerplate comments.
12303
12304 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12305
12306 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12307 (wait_reading_process_output): Remove code for SunOS, platform not
12308 supported anymore. Use SOLARIS2 instead of sun.
12309
123102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12311
12312 * font.c (font_open_by_name): Under NS, default lface height to zero.
12313 (font_open_for_lface): Under NS, set size based on frame fontsize.
12314 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12315 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12316
123172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12318
12319 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12320 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12321 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12322 YES/NO.
12323 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12324 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12325 * Makefile.in (clean): Clear out build destination dir.
12326
123272008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12328
12329 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12330 xterm, xselect.
12331 * lisp.h: Remove declaration of hash_remove.
12332 * nsgui.h: Remove redefinitions of hash_remove.
12333 * fns.c (hash_remove): Rename to hash_remove_from_table.
12334
123352008-07-19 Seiji Zenitani <zenitani@mac.com>
12336
12337 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12338 strdup() the family UTF8String before modifying it.
12339
123402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12341
12342 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12343 NS_FACE_BACKGROUND with 0 instead of nil.
12344 * nsfont.m (nsfont_draw): Same.
12345
123462008-07-19 Chong Yidong <cyd@stupidchicken.com>
12347
12348 * nsfns.m (ns_set_background_color): Fix crash.
12349
123502008-07-18 Chong Yidong <cyd@stupidchicken.com>
12351
12352 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12353
123542008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12355
12356 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12357
123582008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12359
12360 * gtkutil.c: Include <config.h> instead of "config.h".
12361
12362 * lisp.h (Foverlay_buffer): Add EXFUN.
12363
12364 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12365 child process to complete child_setup. Undo 2005-09-21 change.
12366
12367 * s/darwin.h: Mention setsid after vfork.
12368
123692008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12370
12371 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12372 Depend on macgui.h.
12373
12374 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12375 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12376
12377 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12378 and f19.
12379 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12380
12381 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12382 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12383 Remove enumerators.
12384
12385 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12386 Check if FACE_FROM_ID returns NULL.
12387
123882008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12389
12390 * w32inevt.c (change_frame_size): Remove extern declaration.
12391 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12392 change_frame_size.
12393
123942008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12395
12396 * getloadavg.c: Revert last change (2008-07-15).
12397
123982008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12399
12400 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12401 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12402 from configure.
12403
124042008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12405
12406 * s/sol2.h:
12407 * s/sol2-4.h: Reorganize conditionals.
12408
12409 * ecrt0.c: Remove code depending on m68000, not used anymore.
12410
12411 * fns.c (hash_remove): Make static.
12412 * lisp.h (hash_remove): Don't prototype.
12413
12414 * m/ibmrs6000.h:
12415 * m/ibms390x.h:
12416 * m/macppc.h: Remove boilerplate comments.
12417
12418 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12419 Solaris, which does not need them.
12420
12421 * m/vax.h: Remove comments about unsupported systems.
12422
12423 * s/darwin.h: Reorganize ifdefs.
12424
124252008-07-17 Andreas Schwab <schwab@suse.de>
12426
12427 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12428
124292008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12430
12431 Use SDATA. Follow coding convention of placing operators at
12432 beginning of next line rather than end of previous line, and placing
12433 spaces around infix operators.
12434
12435 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12436 in case it was defined already.
12437 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12438 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12439 ns_default.
12440 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12441 Lisp_Objects.
12442 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12443 (ns_defined_color, ns_color_to_lisp): Declare.
12444 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12445 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12446 it's accepted even with USE_LISP_UNION_TYPE.
12447 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12448 (update_frame_tool_bar): Remove apparently obsolete tests for
12449 non-integerness of f->tool_bar_lines.
12450 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12451 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12452 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12453 (nsfont_open): Don't confuse NULL for Qnil.
12454 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12455 * menu.h (find_and_call_menu_selection):
12456 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12457 (find_and_return_menu_selection): Always return something.
12458 * frame.h: Include dispextern.h for Display_Info.
12459 (display_x_get_resource): Declare.
12460
124612008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12462
12463 * syntax.c: Remove stdio.h include accidentally introduced in
12464 Emacs.app commit.
12465 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12466 NS_IMPL_COCOA.
12467 * keyboard.c (handle_async_input, input_available_signal): Remove
12468 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12469
124702008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12471
12472 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12473 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12474 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12475 Use SDATA.
12476
12477 * keymap.c: Remove all NS-specific code.
12478 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12479 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12480 where_is_preferred_modifier, return a different value depending on how
12481 preferred is the binding.
12482 (where_is_internal): Adjust accordingly.
12483 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12484 Adjust to new preferred_sequence_p.
12485 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12486 * keyboard.c (parse_solitary_modifier): Not static any more.
12487 * keyboard.h (parse_solitary_modifier): Declare.
12488
124892008-07-16 Andreas Schwab <schwab@suse.de>
12490
12491 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12492 of easymenu.
12493
124942008-07-16 Chong Yidong <cyd@stupidchicken.com>
12495
12496 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12497 that we don't move off the line.
12498
124992008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12500
12501 * keyboard.c (Qsuper): Remove.
12502 (parse_menu_item): Don't call where_is_internal specially for NS.
12503
125042008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12505
12506 * s/gnu-linux.h: Remove boilerplate comments.
12507
12508 * m/alpha.h (__ELF__): Consolidate conditions.
12509
12510 * m/m68k.h (linux): Use GNU_LINUX instead.
12511 Remove boilerplate comments.
12512
12513 * m/intel386.h: Undo refactoring from previous change.
12514 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12515 too, remove dead code.
12516 (linux): Use GNU_LINUX instead.
12517
125182008-07-16 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32gui.h: Repeat 26 June changes lost by last change.
12521
125222008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12523
12524 * systty.h: Remove code for Aix on 386, unsupported platform.
12525
12526 * s/ms-w32.h: Remove boilerplate comments.
12527 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12528
12529 * s/gnu-linux.h (TERM): Remove support.
12530 (HAVE_SYSVIPC): Remove, unused.
12531 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12532 for this system.
12533
12534 * process.c: Remove support for IRIS, unused.
12535 Remove support for TERM, not relevant anymore.
12536
12537 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12538 used with the definition.
12539
12540 * s/aix4-2.h (static): Do not undef.
12541
12542 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12543 only used on Aix.
12544 (HAVE_SYSVIPC): Remove, unused.
12545
12546 * m/hp800.h (CANNOT_DUMP): Do not undef.
12547
12548 * m/alpha.h: Fix comment.
12549
12550 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12551 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12552 used by this configuration.
12553 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12554 * unexec.c: Remove code depending on HPUX and
12555 USG_SHARED_LIBRARIES, not used with this file. Remove code
12556 depending on IRIS, unused. Remove if 0-ed code.
12557
12558 * s/template.h: Remove comments about static.
12559
12560 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12561 Remove if 0-ed code.
12562 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12563 were the same as the default.
12564 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12565 Remove boilerplate comments.
12566 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12567 (HAVE_SYSVIPC): Remove, unused.
12568 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12569
12570 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12571 Remove boilerplate comments.
12572 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12573 Remove boilerplate comments.
12574 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12575 Remove boilerplate comments.
12576 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12577
12578 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12579 USG systems which do not use DATA_SEG_BITS.
12580 Refactor code. Remove boilerplate comments.
12581
12582 * m/ibms390.h:
12583 * m/m68k.h:
12584 * s/bsd-common.h:
12585 * s/cygwin.h:
12586 * s/darwin.h:
12587 * s/freebsd.h:
12588 * s/gnu.h:
12589 * s/msdos.h: Remove boilerplate comments.
12590
12591 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12592 do not use this file.
aac0c6e3
MR
12593 (IRIS_4D): Remove, unused.
12594
12595 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12596 do not use this file.
aac0c6e3
MR
12597 (SIGN_EXTEND_CHAR):
12598 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12599 * unexmips.c: Remove file, unused.
12600
12601 * editfns.c (Fuser_full_name): Replace the only use of
12602 USER_FULL_NAME with its value.
12603 * config.in: Regenerate.
12604
126052008-07-16 David Reitter <david.reitter@gmail.com>
12606
12607 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12608 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12609
126102008-07-16 Glenn Morris <rgm@gnu.org>
12611
12612 * emacs.c (system-type): Doc fix.
12613
126142008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12615
12616 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12617 If the cache doesn't work, let's fix it, rather than work around it.
12618
126192008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12620
12621 * Makefile.in: Correct additions for nsfont.o in last commit.
12622 * nsfont.m: New file (forgot last commit).
12623
126242008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12625
12626 * callproc.c (set_initial_environment): Initialize
12627 Vprocess_environment under CANNOT_DUMP (fixes crash when
12628 batch-compiling for bootstrap).
12629
126302008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12631 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12632
c4cc8b9a
JB
12633 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12634 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12635
126362008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12637
12638 Changes and additions for NeXTstep windowing system (Cocoa and
12639 GNUstep) support.
12640
12641 * Makefile.in:
12642 * config.in: Support defines and build commands for NS port.
12643 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12644 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12645 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12646 windowing.
12647 (struct face): Add synth_ital field.
12648 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12649 (init_display): Initialize Vinitial_window_system to "ns" when so
12650 compiled.
12651 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12652 (display_arg): Use under NS.
12653 (main): Under NS, allocate autorelease pool and handle command line
12654 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12655 (standard_args): Add NS-specific args.
12656 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12657 * font.c (DEFAULT_ENCODING): New variable.
12658 (font_find_for_lface): Use it.
12659 (syms_of_font): Load syms_of_nsfont under NS.
12660 * font.h: Declare nsfont_driver when compiled under NS.
12661 * fontset.c: When compiling under NS, include nsterm.h.
12662 (fontset_from_font): Autoconstruct fontset under NS.
12663 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12664 symbol, document and use it.
12665 (do_switch_frame): When for_deletion under Cocoa, add
12666 Fraise_frame(Qnil).
12667 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12668 (x_get_arg): Allow "yes" and "no" as boolean values.
12669 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12670 Qright under Cocoa.
12671 (focus-follows-mouse): Default to 0 under NS.
12672 * frame.h (enum output_method): Add output_ns.
12673 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12674 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12675 (FRAME_WINDOW_P): NS-specific definition.
12676 * fringe.c (max_used_fringe_bitmap): Make public.
12677 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12678 (getloadavg): Use NeXT code under descendant OS's.
12679 * image.c (includes and header section, x_create_bitmap_from_data)
12680 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12681 (image_background_transparent, x_clear_image_1)
12682 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12683 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12684 (x_to_xcolors, x_from_xcolors, x_disable_image)
12685 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12686 other GUIs, including XPM support using code originally written for
12687 Carbon GUI.
12688 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12689 using NS API.
12690 (image_ascent): Use font metrics macros instead of direct struct field
12691 access.
12692 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12693 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12694 Also, handle NS as GTK for menu bar purposes.
12695 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12696 toolkit where they differ.
12697 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12698 use cachelist, still needed under NS.
12699 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12700 (struct widget_value): Define it here for menu.c.
12701 * keymap.c (includes): Include modifier internals.
12702 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12703 NS.
12704 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12705 support for preferring sequences using certain modifiers, specified by
12706 the FIRSTONLY argument.
12707 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12708 under NS GNUstep implementation.
12709 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12710 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12711 * menu.c: Include nsterm.h under NS.
12712 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12713 (free_menubar_widget_tree_value, update_submenu_strings)
12714 (find_and_call_menu_selection): Treat NS as X and NT.
12715 (find_and_return_menu_selection): New function, used for popup menus.
12716 * nsgui.h:
12717 * nsterm.h:
12718 * nsfns.m:
12719 * nsimage.m:
12720 * nsmenu.m:
12721 * nsselect.m:
12722 * nsterm.m: New files.
12723 * process.c (wait_reading_process_output): Under NS, call ns_select()
12724 instead of plain select().
12725 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12726 beginning of buffer.
12727 * sysselect.h (init_process): Rename when compiling under Cocoa to
12728 avoid name conflict.
12729 * termhooks.h (display_info): Add ns_display_info to union.
12730 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12731 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12732 COCOA environment.
12733 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12734 unexec() signature. (Note, this will dump, but the resulting file
12735 crashes; unexosx is used instead; keeping around for reference and
12736 possible aid in getting dump working under GNUstep.)
12737 * w32gui.h (button_type, widget_value): Remove definitions (now in
12738 keyboard.h).
12739 * window.c: Include nsterm.h when compiling under NS.
12740 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12741 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12742 other GUI windowing systems.
12743 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12744 GTK.
12745 (x_consider_frame_title): Under NS, set icon type and frame
12746 modified-state indicator; use ns_set_name_as_filename() when using
12747 formatted title.
12748 (update_window_cursor): Make public when compiling under NS.
12749 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12750 (hourglass_atimer, Vhourglass_delay
12751 * xfaces.c (header section, init_frame_faces, clear_font_table)
12752 (defined_color, unload_color, x_face_list_fonts)
12753 (prepare_face_for_display): Add NS support parallel to other GUIs.
12754 Emulate GCs like other non-X GUIs.
12755 (split_font_name): Don't lowercase font name under NS.
12756 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12757 under NS.
12758 * s/darwin.h: Add support for compilation under NS.
12759
127602008-07-15 Jason Rumney <jasonr@gnu.org>
12761
12762 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12763 (w32_show_hourglass): Rename from show_hourglass.
12764 (w32_hide_hourglass): Rename from hide_hourglass.
12765 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12766 (Vhourglass_delay): Declare extern.
12767 (hourglass_started): Remove.
12768
12769 * xdisp.c (Vhourglass_delay): Remove static.
12770 (hourglass_started, start_hourglass, cancel_hourglass):
12771 Don't include these versions on WINDOWSNT.
12772
127732008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12774
12775 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12776 variables (formerly in xfns.c).
12777 (show_hourglass, hide_hourglass): New prototypes (same).
12778 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12779 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12780 in xfns.c).
12781 (syms_of_xdisp): Declare/initialize display-hourglass,
12782 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12783 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12784 formerly in xfns.c.
12785 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12786 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12787 (start_hourglass, cancel_hourglass): Remove.
12788 (show_hourglass, hide_hourglass): Remove prototypes and static
12789 modifiers.
12790 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12791 hourglass_atimer, hourglass_shown_p declaration/initialization.
12792 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12793 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12794 (start_hourglass, cancel_hourglass): Remove.
12795 (show_hourglass, hide_hourglass): Remove prototypes and static
12796 modifiers.
12797 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12798 hourglass_atimer, hourglass_shown_p declaration/initialization.
12799 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12800 (DEFAULT_HOURGLASS_DELAY): Remove.
12801 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12802 hourglass_shown_p declaration/initialization.
12803
128042008-07-14 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32fns.c (w32_get_arg): Remove wrapper function.
12807 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12808 directly.
12809 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12810
128112008-07-14 Kenichi Handa <handa@m17n.org>
12812
12813 * xfont.c (xfont_open): Add workaround for X's bug.
12814
128152008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12816
12817 * fontset.c: Include <stdio.h> unconditionally.
12818
128192008-07-13 Michael Albinus <michael.albinus@gmx.de>
12820
12821 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12822 for filtering.
12823
128242008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12825
12826 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12827
12828 * m/macppc.h:
12829 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12830
c4cc8b9a 12831 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12832 (SPECIAL_EMACS_INT):
12833 * m/ia64.h (SPECIAL_EMACS_INT):
12834 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12835 * s/gnu.h (NLIST_STRUCT):
12836 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12837 * s/gnu-linux.h (LINUX):
12838 * s/msdos.h (HAVE_FACES):
12839 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12840
12841 * systty.h:
12842 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12843 anymore.
12844
128452008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12846
12847 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12848 always defined as int.
12849
12850 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12851 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12852 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12853 * s/freebsd.h (HAVE_WAIT_HEADER):
12854 * s/bsd-common.h (HAVE_UNION_WAIT):
12855 * s/aix4-2.h (HAVE_WAIT_HEADER):
12856 * m/mips.h (HAVE_UNION_WAIT):
12857 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12858 (COFF, static): Do not define, they are undefined later in the file.
12859
12860 * process.c (update_status): Don't use a union.
12861 (status_convert):
12862 (sigchld_handler): Use int instead of WAITTYPE.
12863
128642008-07-12 Chong Yidong <cyd@stupidchicken.com>
12865
12866 * indent.c (Fvertical_motion): Restore hscroll before moving to
12867 goal column.
12868
128692008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12870
12871 * lisp.h: Remove left over code.
12872
128732008-07-11 Andreas Schwab <schwab@suse.de>
12874
12875 * lisp.h: Fix logic in last change.
12876
12877 * menu.h: New file.
12878 * menu.c: Include it.
12879 * xmenu.c: Likewise.
12880 * Makefile.in: Update dependencies.
12881
128822008-07-11 Kenichi Handa <handa@m17n.org>
12883
12884 * fontset.c (fontset_from_font): Cancel the previous change.
12885
128862008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12887
12888 * lisp.h:
12889 * w32heap.c:
12890 * emacs.c:
12891 * alloc.c: Replace all references of NO_UNION_TYPE with
12892 USE_LISP_UNION_TYPE.
12893
12894 * m/xtensa.h (NO_UNION_TYPE):
12895 * m/vax.h (NO_UNION_TYPE):
12896 * m/template.h (NO_UNION_TYPE):
12897 * m/sparc.h (NO_UNION_TYPE):
12898 * m/mips.h (NO_UNION_TYPE):
12899 * m/macppc.h (NO_UNION_TYPE):
12900 * m/m68k.h (NO_UNION_TYPE):
12901 * m/iris4d.h (NO_UNION_TYPE):
12902 * m/intel386.h (NO_UNION_TYPE):
12903 * m/ibms390x.h (NO_UNION_TYPE):
12904 * m/ibms390.h (NO_UNION_TYPE):
12905 * m/ibmrs6000.h (NO_UNION_TYPE):
12906 * m/ia64.h (NO_UNION_TYPE):
12907 * m/hp800.h (NO_UNION_TYPE):
12908 * m/arm.h (NO_UNION_TYPE):
12909 * m/amdx86-64.h (NO_UNION_TYPE):
12910 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12911 defining it the same.
12912
129132008-07-10 Chong Yidong <cyd@stupidchicken.com>
12914
12915 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12916
129172008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12918
12919 * fileio.c:
50426a04 12920 * sysdep.c:
aac0c6e3
MR
12921 * systty.h:
12922 * m/ibmrs6000.h:
12923 * m/iris4d.h:
12924 * s/aix4-2.h:
12925 * s/freebsd.h:
12926 * s/gnu-linux.h:
12927 * s/hpux10-20.h:
12928 * s/hpux11.h:
12929 * s/netbsd.h:
12930 * s/sol2-3.h:
12931 * s/sol2-4.h:
12932 * s/sol2.h:
12933 * s/usg5-4.h:
12934 * s/vms.h: Remove references to unused variables.
12935
129362008-07-10 Andreas Schwab <schwab@suse.de>
12937
12938 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12939 pattern before matching the generic family.
12940
129412008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12942
12943 * unexec.c:
12944 * s/vms.h:
12945 * s/usg5-4-2.h:
12946 * s/sol2-5.h:
12947 * s/freebsd.h:
12948 * s/darwin.h: Remove dead code.
12949
12950 * m/template.h:
12951 * m/sparc.h:
12952 * m/mips.h:
12953 * m/m68k.h:
12954 * m/iris4d.h:
12955 * m/intel386.h:
12956 * m/ibms390x.h:
12957 * m/ibms390.h:
12958 * m/ia64.h:
12959 * m/hp800.h:
12960 * m/arm.h:
12961 * m/amdx86-64.h: Remove dead code and references to unused
12962 and compiler defined symbols.
12963
12964 * unexmips.c:
12965 * unexelf.c: Remove references to desupported systems.
12966
12967 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12968
12969 * m/powermac.h: Remove boilerplate comments.
12970 (NO_REMAP): Remove unused definition.
12971
12972 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12973 define them.
12974
129752008-07-10 Kenichi Handa <handa@m17n.org>
12976
12977 * xfont.c (xfont_open): Log the reason of failure.
12978
129792008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12980
12981 * fontset.c (fontset_get_font_group):
12982 * font.c (font_check_otf): Specify argument types.
12983
129842008-07-09 Kenichi Handa <handa@m17n.org>
12985
12986 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12987 non-ASCII char is found.
12988
12989 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12990 (reorder_font_vector): Change the arg preferred_family to font.
12991 Prefer the spec matching with font.
12992 (fontset_get_font_group): New function.
12993 (fontset_find_font): Change the format of an element of a realized
12994 fontset. Use fontset_get_font_group.
12995 (fontset_font): Try the current fontset, the default fontset, the
12996 fallbacks of the current fontset, and the fallbacks of the default
12997 fontset in this order.
12998 (face_for_char): Delete the shortcut to use the current font.
12999 (fontset_from_font): Don't set fonts for Latin in the fontset.
13000
13001 * font.h (font_make_object, font_match_p): Adjust prototypes.
13002
13003 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13004
13005 * font.c (font_make_object): New arg entity and pixelsize.
13006 (font_check_otf_features, font_check_otf): New functions.
13007 (font_match_p): Check :lang, :script, and :otf properties.
13008
13009 * xfont.c (xfont_open): Adjust it for the change of
13010 font_make_object.
13011 (xfont_text_extents): Fix initial setting of metrics.
13012
13013 * ftfont.c (struct ftfont_info): New member index, delete member
13014 fc_charset_idx. Make the member order compatible with struct
13015 xftfont_info.
13016 (fc_charset_table): Change charset names to registry names.
13017 (ftfont_pattern_entity): Delete the args registry and
13018 fc_charset_idx. Change the value of :font-entity property
13019 to (FONTNAME . INDEX). Always set :registry property to
13020 `iso10646-1'.
13021 (struct ftfont_cache_data): New struct.
13022 (ftfont_lookup_cache): New arg for_face.
13023 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13024 (ftfont_driver): Set the member otf_capability.
13025 (ftfont_get_charset): Adjust it for the change of
13026 fc_charset_table.
13027 (OTF_TAG_SYM): New macro.
13028 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13029 for the change of fc_charset_table.
13030 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13031 ftfont_pattern_entity. Add FC_INDEX to objset.
13032 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13033 and ftfont_pattern_entity.
13034 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13035 font_make_object, struct ftfont_info.
13036 (ftfont_has_char): Use ftfont_get_fc_charset.
13037 (ftfont_otf_features, ftfont_otf_capability): New functions.
13038 (ftfont_shape): Use ftfont_get_otf.
13039 (ftfont_text_extents): Fix initial setting of metrics.
13040
13041 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13042 member order compatible with struct ftfont_info.
13043 (xftfont_open): Add FC_CHARSET to the pattern. Set
13044 xftfont_info->ft_size. Don't unlock the face. Check BDF
13045 properties if appropriate.
13046 (xftfont_close): Unlock the face.
13047 (xftfont_anchor_point, xftfont_shape): Deleted.
13048 (syms_of_xftfont): Don't set members anchor_point and shape of
13049 xftfont_driver.
13050
13051 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13052 font_make_object.
13053
13054 * w32font.c (w32font_open): Adjust it for the change of
13055 font_make_object.
13056 (w32font_open_internal): Don't set properties of font_object here.
13057
130582008-07-08 Chong Yidong <cyd@stupidchicken.com>
13059
13060 * macfns.c (x_create_tip_frame):
13061 * w32fns.c (x_create_tip_frame):
13062 * xfns.c (x_create_tip_frame): Pass parameter argument to
13063 face-set-after-frame-default.
13064
13065 * xfaces.c (Finternal_merge_in_global_face): Save merged
13066 attributes for the default face back into the face vector.
13067
130682008-07-08 Andreas Schwab <schwab@suse.de>
13069
13070 * fontset.h: Declare fontset_from_font. Don't declare
13071 new_fontset_from_font and fontset_from_font_name.
13072 * xterm.c: Include "fontset.h".
13073 * Makefile.in (xterm.o): Update dependencies.
13074
130752008-07-08 Glenn Morris <rgm@gnu.org>
13076
13077 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13078 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13079
130802008-07-07 Chong Yidong <cyd@stupidchicken.com>
13081
13082 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13083 (x_set_frame_parameters): Don't bind it.
13084
130852008-07-07 Juanma Barranquero <lekktu@gmail.com>
13086
13087 * w32fns.c (map_w32_filename): Declare extern.
13088
130892008-07-07 Jason Rumney <jasonr@gnu.org>
13090
13091 * w32term.c (WS_EX_LAYERED): Define if not already.
13092
130932008-07-06 Chong Yidong <cyd@stupidchicken.com>
13094
13095 * xfaces.c (set_font_frame_param): Don't try to set the font
13096 parameter if it is still unspecified in the lface.
13097
130982008-07-05 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13101 face if it didn't already exist.
13102
13103 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13104
131052008-07-05 Andreas Schwab <schwab@suse.de>
13106
13107 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13108
131092008-07-05 Chong Yidong <cyd@stupidchicken.com>
13110
13111 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13112 word-wrapping.
13113 (IT_DISPLAYING_WHITESPACE): New macro.
13114 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13115 when word-wrapping. Simplify word-wrapping logic. Use correct
13116 pixel positions when saving copies of the iterator.
13117 (display_line): Use proper wrap point if the last character on a
13118 line was preceded by whitespace.
13119
131202008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13121
13122 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13123
131242008-07-04 Kenichi Handa <handa@m17n.org>
13125
13126 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13127
13128 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13129
131302008-07-02 Jason Rumney <jasonr@gnu.org>
13131
13132 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13133 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13134
13135 * xdisp.c (next_element_from_display_vector): Move assignment out
13136 of if statement.
13137
131382008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13139
13140 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13141
13142 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13143 (syms_of_fileio): Initialize and export them.
13144 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13145
13146 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13147 (Fsystem_move_file_to_trash): New function.
13148 (syms_of_w32fns): Export it to lisp.
13149
131502008-07-01 Jason Rumney <jasonr@gnu.org>
13151
13152 * w32font.c (w32font_text_extents): Don't count overhang as part
13153 of width.
13154
131552008-06-30 Miles Bader <miles@gnu.org>
13156
13157 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13158 Add `avoid_cursor_p' field.
13159
13160 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13161 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13162 (append_glyph, append_composite_glyph, produce_image_glyph)
13163 (append_stretch_glyph): Initialize avoid_cursor_p.
13164 (get_it_property): Rename from `get_line_height_property'.
13165 (x_produce_glyphs): Use get_it_property.
13166 (handle_line_prefix, push_display_prop): New functions.
13167 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13168 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13169 New variables.
13170 (syms_of_xdisp): Initialize them.
13171
131722008-06-30 Kenichi Handa <handa@m17n.org>
13173
13174 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13175 XftDefaultSubstitute (they are called in XftFontMatch).
13176 (xftfont_open): Fix args to ftfont_font_format.
13177
13178 * ftfont.c (fc_charset_table): New member lang.
13179 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13180 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13181 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13182 (ftfont_open): Fix args to ftfont_font_format.
13183 (ftfont_font_format): New arg filename.
13184
131852008-06-30 Chong Yidong <cyd@stupidchicken.com>
13186
13187 * xfaces.c (Finternal_merge_in_global_face): If default face was
13188 modified, realize it again. Update the font face attribute.
13189
131902008-06-29 Jason Rumney <jasonr@gnu.org>
13191
13192 * w32term.c (x_set_frame_alpha): Fix logic.
13193
131942008-06-29 Kenichi Handa <handa@m17n.org>
13195
13196 * fontset.c (Finternal_char_font): Return font-object instead of
13197 font-name.
13198
13199 * composite.c (get_composition_id): Fix the width calculation for TAB.
13200
132012008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13202
13203 * indent.c (Fvertical_motion): Properly handle float column arg.
13204
132052008-06-28 Jason Rumney <jasonr@gnu.org>
13206
13207 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13208 (pfnSetLayeredWindowAttributes): New function pointer.
13209 (w32_initialize): Initialize it when supported.
13210 (x_set_frame_alpha): New function.
13211
13212 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13213 (w32_frame_parm_handlers): Set alpha handler.
13214
13215 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13216
132172008-06-27 Jason Rumney <jasonr@gnu.org>
13218
13219 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13220 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13221 (w32_to_x_charset, x_to_w32_charset)
13222 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13223 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13224 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13225 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13226 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13227 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13228 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13229 (Qw32_charset_unicode): Remove.
13230 (syms_of_w32fns): Update for above changes.
13231
13232 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13233 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13234 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13235 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13236 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13237 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13238 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13239 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13240 (syms_of_w32font): Update for above changes.
13241
132422008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13243
13244 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13245 removed #if.
13246 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13247
132482008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13249 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13250
13251 * makefile.w32-in (LOCAL_FLAGS):
13252 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13253
13254 * sysdep.c (_spawnlp, _getpid):
13255 Declare with explicit _cdecl instead of _CRTAPI1.
13256
13257 * editfns.c (Fget_internal_run_time):
13258 Check for WINDOWSNT with #ifdef, not #if.
13259
132602008-06-26 Jason Rumney <jasonr@gnu.org>
13261
13262 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13263
13264 * w32term.c (x_draw_glyph_string_foreground)
13265 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13266 Use FONT_HANDLE macro.
13267 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13268
13269 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13270 (uniscribe_encode_char): Use FONT_HANDLE macro.
13271
13272 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13273 (w32font_text_extents): Use precast w32_font.
13274 (w32font_close): Free cached metrics.
13275 (w32font_open_internal): Allocate space for name on stack.
13276
132772008-06-26 Chong Yidong <cyd@stupidchicken.com>
13278
13279 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13280
132812008-06-26 Jason Rumney <jasonr@gnu.org>
13282
13283 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13284 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13285
132862008-06-26 Juanma Barranquero <lekktu@gmail.com>
13287
13288 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13289
132902008-06-26 Jason Rumney <jasonr@gnu.org>
13291
13292 * w32bdf.c, w32bdf.h: Remove obsolete files.
13293
13294 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13295
13296 * w32gui.h: Don't include w32bdf.h.
13297 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13298 Remove obsolete font support.
13299
13300 * w32font.h (struct w32font_info): Remove compat_w32_font.
13301 Add hfont member.
13302 (FONT_COMPAT): Remove obsolete macro.
13303
13304 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13305 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13306 (w32font_open_internal): Remove compat code. Set new hfont member.
13307 (Fx_select_font): Use new hfont member.
13308
13309 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13310 (uniscribe_encode_char): Use new hfont member.
13311
13312 * w32term.c (x_draw_glyph_string_foreground)
13313 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13314 (x_draw_glyph_string): Use metrics in w32font_info.
13315
133162008-06-26 Kenichi Handa <handa@m17n.org>
13317
13318 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13319
133202008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13321
13322 * unexnext.c:
13323 * m/ews4800.h:
13324 * m/hp9000s300.h:
13325 * m/ibm370aix.h:
13326 * m/mips-siemens.h:
13327 * m/ncr386.h:
13328 * m/next.h:
13329 * m/pmax.h:
13330 * m/powerpcle.h:
13331 * m/tandem-s2.h:
13332 * s/386bsd.h:
13333 * s/bsd386.h:
13334 * s/bsd4-1.h:
13335 * s/bsd4-2.h:
13336 * s/bsdos2-1.h:
13337 * s/bsdos2.h:
13338 * s/bsdos3.h:
13339 * s/bsdos4.h:
13340 * s/nextstep.h:
13341 * s/ultrix4-3.h:
13342 * s/usg5-0.h:
13343 * s/usg5-2-2.h:
13344 * s/usg5-2.h:
13345 * s/usg5-4-3.h:
13346 * s/ux4800.h:
13347 * s/uxpds.h:
13348 * s/uxpv.h: Remove support for obsolete systems.
13349 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13350 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13351 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13352 Remove, insert contents in s/aix4-2.h.
13353 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13354 * s/bsd4-3.h: Rename to ...
13355 * s/bsd-common.h: ... this.
13356 * data.c:
13357 * doc.c:
13358 * ecrt0.c:
13359 * emacs.c:
13360 * fileio.c:
13361 * floatfns.c:
13362 * keyboard.c:
13363 * mem-limits.h:
13364 * print.c:
13365 * process.c:
13366 * sysdep.c:
13367 * syssignal.h:
13368 * systty.h:
13369 * syswait.h:
13370 * term.c:
13371 * unexec.c:
13372 * unexelf.c:
13373 * unexhp9k800.c:
13374 * m/hp800.h:
13375 * m/ibmrs6000.h:
13376 * m/mips.h:
13377 * m/vax.h:
13378 * s/darwin.h:
13379 * s/freebsd.h:
13380 * s/gnu.h:
13381 * s/ms-w32.h:
13382 * s/msdos.h:
13383 * s/netbsd.h:
13384 * s/template.h: Remove references to obsolete variables.
13385
13386 * Makefile.in: Add dependencies for all unexec files.
13387 (admindir): Remove unused variable.
13388 (UNEXEC_SRC): Remove references.
13389
133902008-06-25 Chong Yidong <cyd@stupidchicken.com>
13391
13392 * xfns.c (x_default_font_parameter): If Xft is available, first
13393 try Monospace-12 for the default font.
13394
133952008-06-25 Jason Rumney <jasonr@gnu.org>
13396
13397 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13398
133992008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13400
13401 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13402
13403 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13404
134052008-06-25 Juanma Barranquero <lekktu@gmail.com>
13406
13407 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13408 <scroll-conservatively>: Fix typo in docstring.
13409
13410 * xselect.c (Fx_send_client_event): Doc fix.
13411
134122008-06-25 Kenichi Handa <handa@m17n.org>
13413
13414 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13415
13416 * font.c (font_parse_fcname): Remove unused variables.
13417 (font_sort_entites): Delete the arg SPEC. Caller changed.
13418 Fix for the case of ! best_only.
13419 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13420
13421 * lisp.h (Fstring_to_unibyte): EXFUN it.
13422
13423 * character.h (str_to_unibyte): Extern it.
13424
13425 * character.c (str_to_unibyte): New function.
13426
13427 * fns.c (Fstring_to_unibyte): New function.
13428 (syms_of_fns): Defsubr it.
13429
134302008-06-24 Kenichi Handa <handa@m17n.org>
13431
13432 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13433 DPI too.
13434 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13435
134362008-06-24 Andreas Schwab <schwab@suse.de>
13437
13438 * Makefile.in (${lispsource}loaddefs.el): Rename from
13439 ../lisp/loaddefs.el.
13440 (bootstrap-clean): Do what distclean does but don't remove
13441 Makefile.
13442 (distclean): Depend on bootstrap-clean and remove Makefile.
13443
134442008-06-24 Chong Yidong <cyd@stupidchicken.com>
13445
13446 * buffer.h (struct buffer): New member word_wrap.
13447
13448 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13449 word-wrap.
13450 (init_buffer_once): Initialize them.
13451
13452 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13453 line_wrap enum possessing three possible values.
13454
13455 * termopts.h: Replace truncate_partial_width_windows with
13456 Vtruncate_partial_width_windows.
13457
13458 * dispnew.c (direct_output_for_insert): Avoid direct output when
13459 inserting a space with word wrap on.
13460
13461 * indent.c (compute_motion): Obey integer values of
13462 truncate-partial-width-windows.
13463
13464 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13465 replacing truncate_partial_width_windows.
13466 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13467 truncate only if the window width is below that integer.
13468 (start_display, resize_mini_window, produce_stretch_glyph)
13469 (display_string, move_it_in_display_line_to): Use line_wrap.
13470 (back_to_previous_visible_line_start, reseat_1): Reset
13471 string_from_display_prop_p.
13472 (display_line): Extend default face to end of line when wrapping.
13473
134742008-06-24 Kim F. Storm <storm@cua.dk>
13475
13476 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13477 to wrap continued lines at word boundaries.
13478
134792008-06-24 Jason Rumney <jasonr@gnu.org>
13480
13481 * font.c (Ffont_face_attributes): Multiply pixel size before point
13482 conversion to avoid multiplying rounding error.
13483
134842008-06-23 Jason Rumney <jasonr@gnu.org>
13485
13486 * w32term.c (x_draw_glyph_string_background)
13487 (x_draw_glyph_string): Remove old bdf font code.
13488
13489 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13490
134912008-06-22 Kenichi Handa <handa@m17n.org>
13492
13493 * font.c (font_find_for_lface): Try the adstyle specified in
13494 the property of LFACE_FONT of LFACE (if any).
13495
134962008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13497 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13498
13499 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13500
135012008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13502
13503 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13504 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13505 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13506 (witness-emacs): Remove.
13507 (lisp, shortlisp): Move loaddefs.el earlier.
13508 (mostlyclean): Forget about witness-emacs.
13509
135102008-06-22 Glenn Morris <rgm@gnu.org>
13511
13512 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13513 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13514
135152008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13516
13517 * Makefile.in (PRECOMP): Remove.
13518 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13519 (witness-emacs): Run `compile-first'.
13520 (.el.elc): Use the new compile-onefile target.
13521
135222008-06-21 Kenichi Handa <handa@m17n.org>
13523
13524 * xftfont.c (xftfont_open): Handle QCembolden only when
13525 FC_EMBOLDEN is defined.
13526
135272008-06-21 Andreas Schwab <schwab@suse.de>
13528
13529 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13530 (.el.elc): Likewise.
13531
135322008-06-21 Miles Bader <miles@gnu.org>
13533
13534 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13535 build dir, not the lisp source dir.
13536
135372008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13538
13539 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13540 (bootstrapclean): Remove.
13541 (.el.elc): New rule.
13542 (PRECOMP): New var.
13543 (../lisp/subdirs.el): Remove.
13544 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13545 (witness-emacs): New target.
13546 (mostlyclean): Remove witness-emacs as well.
13547 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13548 Add witness-emacs dependency.
13549
135502008-06-20 Chong Yidong <cyd@stupidchicken.com>
13551
13552 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13553 defined by the font.
13554
135552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13556
13557 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13558 (bootstrap-clean): New target that keeps TAGS around.
13559 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13560 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13561
135622008-06-20 Jason Rumney <jasonr@gnu.org>
13563
13564 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13565 Remove obsolete font code.
13566
13567 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13568 to determine language support.
13569
135702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13571
13572 * sysdep.c (cfsetspeed): New fun extracted from the code.
13573 (cfmakeraw): Move before first use.
13574
135752008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13576
13577 * sysdep.c (cfmakeraw): Provide fallback implementation.
13578 (serial_configure): Provide fallback implementation of cfsetspeed.
13579
135802008-06-20 Kenichi Handa <handa@m17n.org>
13581
13582 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13583 the pattern.
13584
13585 * fontset.c (fontset_from_font): Copy font_spec before changing
13586 the elements.
13587
13588 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13589
135902008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13591
13592 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13593 for explicit `font' parameters.
13594
13595 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13596
135972008-06-19 Kenichi Handa <handa@m17n.org>
13598
13599 * frame.c: Include <ctype.h>.
13600 (x_set_font_backend): Allow spacing characters in the X resource
13601 for FontBackend.
13602
136032008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13604
13605 * w32fns.c, xfns.c (Qfont_param): New var.
13606 (syms_of_w32fns): Initialize it.
13607 (x_default_font_parameter): Record explicit `font' into
13608 `font-parameter'.
13609
136102008-06-18 Kenichi Handa <handa@m17n.org>
13611
13612 * font.c (font_parse_xlfd): Fix previous change.
13613 (font_parse_fcname): Don't use :fc-unknown-spec.
13614 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13615 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13616 (font_add_log): Prepend the driver name to the resulting fonts.
13617
13618 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13619 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13620 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13621
13622 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13623 (QCembolden): New variables.
13624 (syms_of_xftfont): DEFSYM them.
13625 (xftfont_open): Call XftFontMatch. Don't trust the result of
13626 XftTextExtents8 if the pixel_size is less than 5.
13627
136282008-06-18 Andreas Schwab <schwab@suse.de>
13629
13630 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13631 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13632
136332008-06-18 Jason Rumney <jasonr@gnu.org>
13634
13635 * w32font.c (w32font_list, w32font_match): Add logging.
13636
13637 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13638
136392008-06-17 Chong Yidong <cyd@stupidchicken.com>
13640
13641 * font.c (font_parse_fcname): Store divider characters for
13642 unknown-spec list. For known key symbols, intern using correct
13643 symbol name.
13644
136452008-06-17 Kenichi Handa <handa@m17n.org>
13646
13647 * xfaces.c (realize_default_face): If the frame is not on window
13648 system, set the fontset of face to nil.
13649
136502008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13651
13652 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13653
136542008-06-16 Juanma Barranquero <lekktu@gmail.com>
13655
13656 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13657 (build_font_name_from_vector): Delete externs.
13658
13659 * xfaces.c (struct font_name): Don't declare.
13660
136612008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13662
13663 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13664
136652008-06-16 Chong Yidong <cyd@stupidchicken.com>
13666
13667 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13668
136692008-06-16 Juanma Barranquero <lekktu@gmail.com>
13670
13671 * font.c (Ffont_spec): Fix usage in docstring.
13672 (Ffont_face_attributes): Doc fix.
13673
136742008-06-16 Andreas Schwab <schwab@suse.de>
13675
13676 * font.c (Ffont_face_attributes): Fix definition.
13677
136782008-06-16 Jason Rumney <jasonr@gnu.org>
13679
13680 * font.h (font_style_symbolic_from_value): Remove.
13681
13682 * font.c (font_style_symbolic_from_value): Remove.
13683 (font_style_symbolic): Revert to pre 2008-06-13 version.
13684
13685 * w32font.c (w32_to_fc_weight): New function.
13686 (w32font_full_name, logfont_to_fcname): Use it.
13687
136882008-06-16 Kenichi Handa <handa@m17n.org>
13689
13690 * font.c (font_check_object): Delete it.
13691 (font_clear_cache): Check if a font-object is alive.
13692 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13693 font-object to nil.
13694 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13695 (font_at): Don't call font_check_object.
13696 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13697
136982008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13699
13700 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13701
137022008-06-16 Chong Yidong <cyd@stupidchicken.com>
13703
13704 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13705
137062008-06-15 Chong Yidong <cyd@stupidchicken.com>
13707
13708 * font.c (font_parse_fcname): Only one decimal point.
13709 (font_unparse_fcname): Handle data in family and foundry indices
13710 as symbols, not strings.
13711 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13712
13713 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13714
13715 * font.h (font_unparse_gtkname): Add prototype.
13716
137172008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13718
13719 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13720
137212008-06-15 Andreas Schwab <schwab@suse.de>
13722
13723 * font.c (font_update_drivers): Fix crash when no drivers match.
13724
137252008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13726
13727 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13728 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13729
137302008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13731
13732 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13733
137342008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13735
13736 * process.c (Fserial_process_configure, Fprocess_send_eof):
13737 Use EQ to compare Lisp_Objects.
13738
137392008-06-13 Jason Rumney <jasonr@gnu.org>
13740
13741 * w32fns.c (Fw32_select_font): Remove old font API function.
13742
13743 * w32font.c (logfont_to_fcname): New function.
13744 (Fx_select_font): New font dialog function compatible with
13745 GTK/fontconfig version.
13746
13747 * font.c (font_style_symbolic_from_value): New function.
13748 (font_style_symbolic): Use it.
13749
13750 * font.h (font_style_symbolic_from_value): Declare new function.
13751
137522008-06-13 Juanma Barranquero <lekktu@gmail.com>
13753
13754 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13755 <font-width-table>: Fix typos in docstrings.
13756
137572008-06-13 Daniel Engeler <engeler@gmail.com>
13758
13759 These changes add serial port access.
13760 * process.c: Add HAVE_SERIAL.
13761 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13762 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13763 (list_processes_1, select_wrapper, Fstop_process)
13764 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13765 (status_notify): Modify to handle serial processes.
13766 [HAVE_SERIAL] (Fserial_process_configure)
13767 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13768 New functions.
13769 * process.h (struct Lisp_Process): Add `type'.
13770 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13771 New functions.
13772 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13773 serial ports.
b71ac3dd 13774 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13775 * w32.h: Add FILE_SERIAL.
13776 (struct _child_process): Add ovl_read, ovl_write.
13777
137782008-06-13 Kenichi Handa <handa@m17n.org>
13779
13780 * dispextern.h (enum lface_attribute_index): New member
13781 LFACE_FOUNDRY_INDEX.
13782
13783 * font.c (font_score): Delete arg alternate_families. Check only
13784 weight, slant, width, and size. Ignore the difference of alias
13785 style symbols.
13786 (font_sort_entites): Adjust for the above change. Reflect the
13787 order of font-driver to scores.
13788 (font_list_entities): Don't check alternate_familes here.
13789 (font_clear_prop): Handle foundry.
13790 (font_update_lface): Don't parse "foundry-family" form here.
13791 Handle FONT_FOUNDRY_INDEX.
13792 (font_find_for_lface): Likewise. Handle alternate families here.
13793 If registry is nil, try iso8859-1 and ascii-0.
13794 (font_open_for_lface): Pay attention to size in ENTITY.
13795 (font_open_by_name): Simplify by calling font_load_for_lface.
13796 (free_font_driver_list): Delete it.
13797 (font_update_drivers): Preserve the order of backends.
13798 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13799 of font_score and font_sort_entites.
13800 (font_update_sort_order): Likewise.
13801
13802 * xfaces.c (LFACE_FOUNDRY): New macro.
13803 (check_lface_attrs): Check foundry.
13804 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13805 (merge_face_vectors): Check foundry.
13806 (merge_face_ref): Likewise.
13807 (Finternal_set_lisp_face_attribute): Likewise.
13808 (x_update_menu_appearance): Likewise.
13809 (Finternal_get_lisp_face_attribute): Likewise.
13810 (lface_hash): Likewise.
13811 (lface_same_font_attributes_p): Likewise.
13812 (x_supports_face_attributes_p): Likewise.
13813 (tty_supports_face_attributes_p): Likewise.
13814 (Finternal_set_alternative_font_family_alist): Intern strings.
13815 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13816 (realize_default_face): Set LFACE_FOUNDRY (lface).
13817
13818 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13819 font-driver at first.
13820
13821 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13822
138232008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13824
13825 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13826
138272008-06-12 Jim Meyering <meyering@redhat.com>
13828
13829 Make unexec_free handle NULL the same way free does.
13830 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13831
138322008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13835 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13836 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13837 (WEAK_ALIAS): Simplify.
13838 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13839 when searching a unibyte buffer.
13840
138412008-06-12 Chong Yidong <cyd@stupidchicken.com>
13842
13843 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13844
138452008-06-12 Juanma Barranquero <lekktu@gmail.com>
13846
13847 * w32font.c: Include ctype.h.
13848
138492008-06-11 Jason Rumney <jasonr@gnu.org>
13850
13851 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13852 misreported as space.
13853 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13854 as aliases for registry iso10646-1.
13855
138562008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13857
13858 * buffer.c (clone_per_buffer_values): Skip `name'.
13859
138602008-06-11 Chong Yidong <cyd@stupidchicken.com>
13861
13862 * font.c (font_parse_fcname): Fix last change; accept decimal
13863 points in font size.
13864
138652008-06-10 Jason Rumney <jasonr@gnu.org>
13866
13867 * w32uniscribe.c (add_opentype_font_name_to_list):
13868 Skip non unicode fonts.
13869
138702008-06-10 Chong Yidong <cyd@stupidchicken.com>
13871
13872 * xfns.c (Fx_font_dialog): New function.
13873
13874 * gtkutil.c (xg_dialog_response_cb): Rename from
13875 xg_file_response_callback.
13876 (pop_down_dialog): Rename from pop_down_file_dialog.
13877 (xg_get_file_name): Callers changed.
13878 (xg_get_font_name): New function.
13879
13880 * gtkutil.h (xg_get_font_name): Insert prototype.
13881
138822008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13883
13884 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13885 x_underline_minimum_display_offset.
13886 (syms_of_xdisp): Declare it here rather than in xterm.c.
13887 * dispextern.h (underline_minimum_offset): Declare it.
13888 * w32term.c (x_draw_glyph_string): Use it.
13889 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13890 (syms_of_xterm): Don't declare it any more.
13891 (x_draw_glyph_string): Adjust to the new name.
13892
8719abec 138932008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13894
13895 * xterm.c (x_underline_minimum_display_offset): New var.
13896 (x_draw_glyph_string): Use it.
13897 (syms_of_xterm): Declare it.
13898
138992008-06-10 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * font.c (font_parse_fcname): Accept GTK-style font names too.
13902
139032008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13904
13905 * dired.c (file_name_completion): Don't return t if the match is exact
13906 but with different capitalization.
13907 * minibuf.c (Ftry_completion): Simplify.
13908
13909 * window.c (Vwindow_point_insertion_type): New var.
13910 (set_window_buffer): Use it.
13911 (syms_of_window): Init and export it to Lisp.
13912
139132008-06-10 Kenichi Handa <handa@m17n.org>
13914
13915 * font.h (font_intern_prop): Prototype adjusted.
13916
13917 * font.c (font_intern_prop): New arg force_symbol.
13918 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13919 Adjust for the change of font_intern_prop.
13920
13921 * ftfont.c (ftfont_pattern_entity):
13922 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13923 (w32_registry):
13924 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13925 the change of font_intern_prop.
13926
139272008-06-09 Juanma Barranquero <lekktu@gmail.com>
13928
13929 * w32menu.c (digest_single_submenu): Declare extern.
13930
139312008-06-09 Jason Rumney <jasonr@gnu.org>
13932
13933 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13934
13935 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13936 (parse_single_submenu): Remove.
13937 (digest_single_submenu): Remove.
13938 (syms_of_w32menu): Don't initialise variables that have moved
13939 to menu.c.
13940 (set_frame_menubar): Sync with version in xmenu.c.
13941 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13942
13943 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13944 Make static again.
13945
139462008-06-09 Jason Rumney <jasonr@gnu.org>
13947
13948 Changes to w32 files related to the move of common menu code
13949 to menu.c on 2008-06-08 by Chong Yidong.
13950
13951 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13952 defs to w32gui.h.
13953 (single_keymap_panes, push_menu_item, push_menu_pane):
13954 Make globally visible.
13955
13956 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13957 (local_free, malloc_widget_value, free_widget_value)
13958 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13959 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13960 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13961 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13962 (menu_items, menu_items_allocated, menu_items_used)
13963 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13964 (init_menu_items, finish_menu_items, discard_menu_items)
13965 (grow_menu_items, push_submenu_start, push_submenu_end)
13966 (push_left_right_boundary, push_menu_pane, push_menu_item)
13967 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13968 (free_menubar_widget_tree_value, parse_single_submenu)
13969 (update_submenu_strings): Remove functions.
13970 (xmalloc_widget_value): Remove and declare extern.
13971
13972 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13973 (OBJ1): Build it.
13974
13975 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13976 (local_heap, local_alloc, local_free, malloc_widget_value)
13977 (free_widget_value): Define here.
13978
139792008-06-09 Kenichi Handa <handa@m17n.org>
13980
13981 * font.h (Qascii_0): Extern it.
13982
13983 * font.c (Qascii_0): New variable.
13984 (syms_of_font): DEFSYM it.
13985 (font_open_by_name): If the registry "iso8859-1" fails, try also
13986 "ascii-0".
13987
13988 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13989
139902008-06-08 Kenichi Handa <handa@m17n.org>
13991
13992 * .gdbinit (xfont): New command.
13993
139942008-06-08 Andreas Schwab <schwab@suse.de>
13995
13996 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13997 * Makefile.in (menu.o): Update dependencies.
13998
13999 * Makefile.in (obj): Always add menu.o.
14000 * emacs.c (main): Always call syms_of_menu.
14001 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14002
140032008-06-08 Chong Yidong <cyd@stupidchicken.com>
14004
14005 * Makefile.in: Compile menu.c.
14006
14007 * lisp.h: Declare syms_of_menu.
14008
14009 * emacs.c (main): Call syms_of_menu.
14010
14011 * keyboard.h: Relocate platform-independent menu definitions from
14012 xmenu.c.
14013
14014 * menu.c: New file. Relocate platform-independent menu
14015 definitions from xmenu.c. Suggested by Adrian Robert.
14016
14017 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14018 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14019 (menu_items_used, menu_items_n_panes)
14020 (menu_items_submenu_depth): Move to keyboard.h.
14021 (init_menu_items, finish_menu_items, unuse_menu_items)
14022 (discard_menu_items, restore_menu_items, save_menu_items)
14023 (grow_menu_items, push_submenu_start, push_submenu_end)
14024 (push_left_right_boundary, push_menu_pane, push_menu_item)
14025 (keymap_panes, single_keymap_panes, single_menu_item)
14026 (list_of_panes, list_of_items, find_and_call_menu_selection)
14027 (xmalloc_widget_value, free_menubar_widget_value_tree)
14028 (parse_single_submenu, digest_single_submenu)
14029 (update_submenu_strings): Move to menu.c.
14030
140312008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14032
14033 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14034
140352008-06-06 Miles Bader <miles@gnu.org>
14036
14037 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14038 face, not frame default.
14039
140402008-06-05 Martin Rudalics <rudalics@gmx.at>
14041
14042 * window.c (pop_up_windows, pop_up_frames)
14043 (display_buffer_reuse_frames, Vpop_up_frame_function)
14044 (Vdisplay_buffer_function, Veven_window_heights)
14045 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14046 (Vspecial_display_function, Vsame_window_buffer_names)
14047 (Vsame_window_regexps, split_height_threshold)
14048 (Vsplit_window_preferred_function): Move those vars to window.el.
14049 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14050 (Fdisplay_buffer): Move those functions to window.el.
14051 (syms_of_window): Remove corresponding declarations.
14052 (display_buffer): New function.
14053 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14054 * dispnew.c (Flast_nonminibuf_frame): New function.
14055 * buffer.c (Fpop_to_buffer): Move to window.el.
14056
140572008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14058
14059 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14060
140612008-06-05 Kenichi Handa <handa@m17n.org>
14062
14063 * coding.c (detect_coding): Fix previous change.
14064 (detect_coding_system): Likewise.
14065
140662008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14067
14068 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14069
14070 * keymap.c (Vminibuffer_local_filename_must_match_map):
14071 Rename from Vminibuffer_local_must_match_filename_map.
14072 (syms_of_keymap):
14073 * minibuf.c (Fcompleting_read): Adjust accordingly.
14074 * commands.h: Rename declaration as well.
14075
140762008-06-05 Kenichi Handa <handa@m17n.org>
14077
14078 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14079 family name.
14080 (Ffont_put): Likewise.
14081
14082 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14083 current font-spec.
14084
14085 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14086 is unspecified.
14087
14088 * xfaces.c (realize_x_face): If the font-related face attributes
14089 are the same as those of default face, realize a new fontset from
14090 default->fontset.
14091 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14092
140932008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14094
14095 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14096 (move_it_in_display_line): New wrapper.
14097
14098 * window.c (window_scroll_pixel_based_preserve_x)
14099 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14100 (window_scroll_pixel_based, window_scroll_line_based):
14101 Use them to preserve column positions.
14102 (syms_of_window): Initialize them.
14103
14104 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14105 (HPOS . VPOS) pair.
14106
14107 * dispextern.h (move_it_in_display_line): Declare.
14108
141092008-06-05 Juanma Barranquero <lekktu@gmail.com>
14110
14111 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14112 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14113 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14114
141152008-06-04 Juanma Barranquero <lekktu@gmail.com>
14116
14117 * window.c (Fset_window_parameter): Doc fix.
14118 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14119
141202008-06-04 Joakim Verona <joakim@verona.se>
14121
14122 * window.h (struct window): Add new member window_parameters.
14123
14124 * window.c (Fwindow_parameters, Fwindow_parameter)
14125 (Fset_window_parameter): New defuns.
14126 (syms_of_window): Defsubr the new defuns.
14127 (make_window): Initialize window_parameters to nil.
14128
141292008-06-04 John Paul Wallington <jpw@pobox.com>
14130
14131 * eval.c (Fdefmacro): Doc fix.
14132
141332008-06-04 Kenichi Handa <handa@m17n.org>
14134
14135 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14136 Be sure to call setup_coding_system when we find a proper coding system.
14137 (detect_coding_system): Fix handling of coding->head_ascii.
14138
141392008-06-03 Andreas Schwab <schwab@suse.de>
14140
14141 * font.c (font_prop_validate_spacing): Fix last change.
14142
141432008-06-03 Kenichi Handa <handa@m17n.org>
14144
14145 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14146 (font_parse_fcname): Fix handling of unknown key.
14147
14148 * xfont.c (xfont_list): Try an alias.
14149
14150 * charset.c (char_charset): Return NULL if the arg charset_list is
14151 specified and C doesn't belong to any of them.
14152
141532008-06-02 Chip Coldwell <coldwell@redhat.com>
14154
14155 * font.c (font_pixel_size): Don't take cdr of an integer.
14156
141572008-06-02 Jim Meyering <meyering@redhat.com>
14158
14159 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14160 * alloc.c (xfree): Return right away for a NULL arg.
14161 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14162 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14163 * mac.c (create_apple_event_from_event_ref): Likewise.
14164 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14165 Likewise.
14166 * doprnt.c (doprnt1): Likewise.
14167 * frame.c (frame): Likewise.
14168 * keyboard.c (wipe_kboard): Likewise.
14169 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14170 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14171 * term.c (tty_default_color_capabilities, maybe_fatal)
14172 (delete_tty): Likewise.
14173 * w16select.c (string): Likewise.
14174 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14175 * w32bdf.c (w32_free_bdf_font): Likewise.
14176 * w32fns.c (w32_unload_font): Likewise.
14177 * w32font.c (w32font_close): Likewise.
14178 * window.c (size_window): Likewise.
14179 * xselect.c (receive_incremental_selection): Likewise.
14180 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14181 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14182 * w32.c (stat): Likewise.
14183
14184 Remove useless if-before-free tests.
14185 * editfns.c (Fset_time_zone_rule): Likewise.
14186 * lread.c (nosuffix): Likewise.
14187 * ralloc.c (get_bloc): Likewise.
14188 * regex.c (reg_free): Likewise.
14189 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14190 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14191 * xsmfns.c (smc_save_yourself_CB): Likewise.
14192
141932008-06-02 Kenichi Handa <handa@m17n.org>
14194
14195 * font.c (font_find_for_lface): Handle float font size.
14196 (font_open_for_lface): Likewise.
14197
14198 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14199 comparing the properties.
14200
142012008-06-01 Jason Rumney <jasonr@gnu.org>
14202
14203 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14204 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14205 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14206 Don't add empty script list.
14207 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14208
142092008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14210
14211 * Makefile.in (dot, dotdot): Remove, update users.
14212 ".." has been used elsewhere in the file for a long time.
14213 (LIBXT_STATIC): Remove conditional based on unused variable.
14214
142152008-06-01 Miles Bader <miles@gnu.org>
14216
14217 * xfaces.c (Vface_remapping_alist): New variable.
14218 (syms_of_xfaces): Initialize it.
14219 (enum named_merge_point_kind): New type.
14220 (struct named_merge_point): Add `named_merge_point_kind' field.
14221 (push_named_merge_point): Make cycle detection respect different
14222 named-merge-point kinds.
14223 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14224 Remove face-name alias resolution.
14225 (lface_from_face_name): New definition using
14226 `lface_from_face_name_no_resolve'.
14227 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14228 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14229 (get_lface_attributes): New definition that layers face-remapping on
14230 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14231 (lookup_basic_face): New function.
14232 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14233 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14234 `get_lface_attributes'.
14235 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14236 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14237 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14238
14239 * xdisp.c (init_iterator): Pass base_face_id through
14240 `lookup_basic_face' when we actually use it as a face-id.
14241 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14242 DEFAULT_FACE_ID.
14243
14244 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14245 lookup the initial face-id.
14246
14247 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14248
142492008-06-01 Juanma Barranquero <lekktu@gmail.com>
14250
14251 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14252 (Fremove_text_properties): Fix typos in docstrings.
14253
142542008-05-31 Kenichi Handa <handa@m17n.org>
14255
14256 * font.c (font_list_entities): Fix the car part of data to be
14257 stored in the cache.
14258
14259 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14260
142612008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14262
14263 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14264 Add a `test' argument so another predicate than `equal' can be used.
14265 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14266 (map_char_table): Remove unused vars `c' and `i'.
14267 * lisp.h (Foptimize_char_table): Adjust declaration.
14268 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14269
142702008-05-30 Kenichi Handa <handa@m17n.org>
14271
14272 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14273 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14274 defined.
14275
142762008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14277
14278 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14279 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14280 frame-local settings for the same variable.
14281
142822008-05-30 Kenichi Handa <handa@m17n.org>
14283
14284 * fontset.c (Ffont_info): Move to font.c.
14285 (syms_of_fontset): Delete defsubr of Sfont_info.
14286
14287 * font.c (font_style_to_value, font_score): Delete casting of the
14288 args to xstcasecmp.
14289 (register_font_driver): Increment num_font_drivers only when
14290 registering the driver globally.
14291 (Ffont_info): Move from fontset.c. Handle a font object too.
14292 (syms_of_font): Defsubr Sfont_info.
14293
142942008-05-29 Kenichi Handa <handa@m17n.org>
14295
14296 * coding.h (enum define_coding_utf8_arg_index): New enum.
14297 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14298 coding_attr_utf_bom.
14299 (enum utf_bom_type): Rename from utf_16_bom_type.
14300 (struct utf_16_spec): Adjust for the above change.
14301 (struct coding_system): Add utf_8_bom in `spec' union.
14302
14303 * coding.c (CODING_UTF_8_BOM): New macro.
14304 (enum coding_category): Delete coding_category_utf_8, add
14305 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14306 coding_category_utf_8_sig.
14307 (CATEGORY_MASK_UTF_8): Delete it.
14308 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14309 (CATEGORY_MASK_UTF_8_SIG): New macros.
14310 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14311 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14312 CATEGORY_MASK_UTF_8_SIG.
14313 (CATEGORY_MASK_UTF_8): New macro.
14314 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14315 (detect_coding_utf_8): Check BOM.
14316 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14317 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14318 (encode_coding_utf_16): Likewise.
14319 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14320 (detect_coding, detect_coding_system): Handle utf-8-auto.
14321 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14322 (syms_of_coding): Fix setting up of Vcoding_category_table.
14323
143242008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14325
14326 * process.c (Faccept_process_output): If `millisec' is non-nil,
14327 `seconds' default to 0.
14328 (wait_reading_process_output): Also return non-nil if we read output
14329 from a non-running process.
14330
143312008-05-29 Jason Rumney <jasonr@gnu.org>
14332
14333 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14334 `raster' specified.
14335 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14336 in the uniscribe backend, but disallow any font that has no
14337 unicode subrange support.
14338
143392008-05-29 Juanma Barranquero <lekktu@gmail.com>
14340
14341 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14342 Fix typos in docstrings.
14343
143442008-05-29 Kenichi Handa <handa@m17n.org>
14345
14346 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14347 (Fx_family_fonts): Set frame correctly.
14348
143492008-05-28 Jason Rumney <jasonr@gnu.org>
14350
14351 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14352
143532008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14354
14355 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14356 calling build_annotations.
14357
143582008-05-28 Juanma Barranquero <lekktu@gmail.com>
14359
14360 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14361 (Fencode_coding_string):
14362 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14363 <latin-extra-code-table>: Fix typos in docstrings.
14364 (syms_of_coding) <coding-system-alist>: Doc fix.
14365 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14366
143672008-05-28 Kenichi Handa <handa@m17n.org>
14368
14369 * fontset.c (Ffont_info): Don't call font_close_object.
14370
14371 * font.c (font_parse_family_registry): Use Ffont_put to validate
14372 foundry and family.
14373 (font_delete_unmatched): Don't check spacing.
14374 (font_list_entities): Add spacing to the spec to list fonts.
14375
14376 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14377 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14378
14379 * coding.c (encode_coding_raw_text): Fix previous change.
14380 (encode_coding_object): When the dst_object is a buffer and is
14381 different from src_object, move gap to PT.
14382
143832008-05-27 Chong Yidong <cyd@stupidchicken.com>
14384
14385 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14386
143872008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14388
14389 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14390 all branches. Compute it differently.
14391
14392 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14393
143942008-05-27 Juanma Barranquero <lekktu@gmail.com>
14395
14396 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14397 into "else if () ... else ...".
14398
143992008-05-27 Jason Rumney <jasonr@gnu.org>
14400
14401 * w32font.c (w32font_open_internal): Determine if glyph indices
14402 are likely to work here.
14403
144042008-05-27 Chong Yidong <cyd@stupidchicken.com>
14405
14406 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14407 draw overlap glyphs with appropriate highlighting.
14408
144092008-05-27 Kenichi Handa <handa@m17n.org>
14410
14411 * xfont.c (xfont_open): Fix calculation of font->average_width.
14412
144132008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14414
14415 * casefiddle.c (casify_object): Try to guess better whether the
14416 argument is a byte or a char.
14417
144182008-05-26 Andreas Schwab <schwab@suse.de>
14419
14420 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14421 Always send multiples of format size.
14422
14423 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14424
144252008-05-26 Jason Rumney <jasonr@gnu.org>
14426
14427 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14428 (compute_metrics): Don't set failure if we just cleared the cache.
14429 (w32_weight_table): Remove unused variable.
14430 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14431 backwards compatibility.
14432
144332008-05-25 Kenichi Handa <handa@m17n.org>
14434
14435 * w32term.c (x_draw_glyph_string):
14436 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14437
14438 * xfaces.c: Delete unused function prototypes.
14439 (xstrlwr, font_frame): Delete them.
14440 (clear_face_cache): Delete unused variable.
14441
14442 * xftfont.c (xftfont_open): Delete unused variable.
14443 If underline_thickness is not 1, adjust underline_position.
14444
14445 * ftxfont.c (ftxfont_open): Delete unused variable.
14446
14447 * fontset.c (face_for_char): Optimize for the case of no charset
14448 property.
14449
14450 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14451 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14452 (otf_open, font_otf_capability, generate_otf_features)
14453 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14454 Comment out by surrounding "#if 0" and "#endif" for the moment.
14455 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14456 (syms_of_font): Codes for accessing above commented out.
14457
144582008-05-24 Eli Zaretskii <eliz@gnu.org>
14459
14460 * w32proc.c: Include dispextern.h.
14461
14462 * w32.c: Include dispextern.h.
14463
144642008-05-23 Juanma Barranquero <lekktu@gmail.com>
14465
14466 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14467 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14468 Fix typos in docstrings.
14469
144702008-05-23 Jason Rumney <jasonr@gnu.org>
14471
14472 * xsmfns.c: Remove includes that are already included by config.h.
14473
144742008-05-23 Kenichi Handa <handa@m17n.org>
14475
14476 * charset.c (Qemacs, charset_emacs): New variables.
14477 (char_charset): Fix for non-Unicode characters.
14478 (syms_of_charset): Define charset_emacs.
14479
14480 * w32term.c (x_draw_glyph_string): Be sure to update
14481 s->underline_thickness and s->underline_position. Be sure to draw
14482 underline within the current line area.
14483
14484 * xterm.c (x_draw_glyph_string): Be sure to update
14485 s->underline_thickness and s->underline_position. Be sure to draw
14486 underline within the current line area.
14487
14488 * fontset.c: Delete unused variables and add casting for char *
14489 throughout the file.
14490 (fontset_font): Try the fallback fonts of the current fontset
14491 before consulting the default fontset.
14492
14493 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14494
14495 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14496
144972008-05-22 Jason Rumney <jasonr@gnu.org>
14498
14499 * font.c: Don't include strings.h.
14500
14501 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14502
14503 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14504 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14505 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14506 to call xstrcasecmp.
14507
14508 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14509
14510 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14511
14512 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14513
14514 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14515
145162008-05-22 Kenichi Handa <handa@m17n.org>
14517
14518 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14519
14520 * font.c (font_prop_validate_style): Adjust for the format
14521 change of font_style_table.
14522
14523 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14524 two args.
14525
14526 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14527 two args.
14528
145292008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14530
14531 * minibuf.c (keys_of_minibuf): Delete.
14532 * lisp.h (keys_of_minibuf): Delete.
14533 * emacs.c (main): Don't call keys_of_minibuf.
14534
145352008-05-22 Kenichi Handa <handa@m17n.org>
14536
14537 * ftfont.c (ftfont_resolve_generic_family): Rename from
14538 ftfont_list_generic_family. Return a single family for each
14539 generic family.
14540 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14541 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14542 Call font_add_log.
14543 (ftfont_match): Call font_add_log.
14544
14545 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14546 (FONT_DEBUG): Define it.
14547 (font_add_log): Extern it.
14548 (font_assert): Rename from xassert.
14549
14550 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14551 (xfont_list_family): Call font_add_log.
14552 (xfont_match): Likewise.
14553 (memq_no_quit): Delete.
14554
14555 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14556 call of Ffont_xlfd_name.
14557
14558 * xfaces.c (struct table_entry, slant_table, weight_table)
14559 (swidth_table): Move to font.c.
14560
14561 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14562 xassert are changed to font_assert. Delete many unused variables.
14563 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14564 New variables.
14565 (struct table_entry): Move from xfaces.c and modified.
14566 (weight_table, slant_table, width_table): Move from xfaces.c and
14567 contents adjusted for the change of struct table_entry.
14568 (font_style_to_value, font_style_symbolic): Adjust for the
14569 format change of font_style_table.
14570 (font_parse_family_registry): Don't overwrite existing foundry and
14571 family of font_spec.
14572 (font_score): Fix calculation of diff for sizes.
14573 (font_sort_entites): Call font_add_log.
14574 (font_delete_unmatched): Return a newly created list.
14575 (font_list_entities): Fix previous change. Call font_add_log.
14576 (font_matching_entity, font_open_entity, font_close_entity):
14577 Call font_add_log.
14578 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14579 (Finternal_set_font_style_table): Delete.
14580 (BUILD_STYLE_TABLE): New macro.
14581 (build_style_table): New function.
14582 (Vfont_log, font_log_env_checked): New variables.
14583 (font_add_log): New function.
14584 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14585 Declare Lisp variables "font-weight-table", "font-slant-table",
14586 "font-width-table", and "font-log". Initialize font_style_table.
14587
145882008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14589
14590 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14591
145922008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14593 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14594
14595 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14596 (Vframe_alpha_lower_limit): New variable.
14597 (x_set_alpha): New function.
14598
14599 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14600
14601 * xfns.c (x-create-frame, Qalpha):
14602 Initialize the frame parameter `alpha'.
14603 * xterm.c (OPAQUE, OPACITY): New.
14604 (x_set_frame_alpha): New function.
14605 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14606
14607 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14608 * w32fns.c (w32_frame_parm_handlers): Likewise.
14609
146102008-05-20 Jason Rumney <jasonr@gnu.org>
14611
14612 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14613 truetype fonts to opentype list.
14614
146152008-05-20 Juanma Barranquero <lekktu@gmail.com>
14616
14617 * fontset.c (Ffontset_info): Doc fix.
14618 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14619 <ignore-relative-composition>: Fix typos in docstrings.
14620
14621 * font.c (syms-of-font) <font-encoding-alist>:
14622 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14623 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14624 (Ffont_otf_alternates): Doc fixes.
14625
146262008-05-20 Kenichi Handa <handa@m17n.org>
14627
14628 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14629 font.h through out the file.
14630 (FONT_DRIVERS): Rename from FONTOBJ.
14631 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14632 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14633
14634 * emacs.c (main): Call syms_of_font unconditionally.
14635
14636 * font.h (find_font_encoding): Extern it.
14637
14638 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14639 fontset.c.
194d44e7 14640 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14641 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14642 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14643 only when HAVE_WINDOW_SYSTEM is defined.
14644 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14645 when HAVE_WINDOW_SYSTEM is defined.
14646
14647 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14648 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14649
14650 * xfaces.c: Include font.h unconditionally.
14651 (merge_face_ref, merge_face_vectors)
14652 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14653
146542008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14655
14656 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14657 indirect_variable.
14658 * eval.c (lisp_indirect_variable): New fun.
14659 (Fuser_variable_p): Use it.
14660
146612008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14662
14663 * lisp.h (indirect_variable):
14664 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14665 Use Lisp_Symbol pointers rather than Lisp_Object.
14666 Adjust callers.
14667 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14668 To this end, change calling-convention.
14669
14670 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14671 if some non-hidden buffers are selected by string&pred.
14672
146732008-05-19 Chong Yidong <cyd@stupidchicken.com>
14674
14675 * process.c (wait_reading_process_output): Always check status
14676 when in batch mode.
14677
146782008-05-19 Kenichi Handa <handa@m17n.org>
14679
14680 * font.c (font_list_entities): Fix handling of cache.
14681 (font_matching_entity): Likewise.
14682
14683 * ftfont.c (cs_iso8859_1): Delete.
14684 (ft_face_cache): New variable.
14685 (struct ftfont_info): New member fc_charset_idx.
14686 (ftfont_build_basic_charsets): Delete.
14687 (fc_charset_table): New variable.
14688 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14689 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14690 Callers changed.
14691 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14692 (ftfont_spec_pattern): New argument fc_charset_idx.
14693 Check registry more rigidly. Change callers.
14694 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14695 change of :font-entity property of the font.
14696
14697 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14698 property of the font.
14699
147002008-05-18 Juanma Barranquero <lekktu@gmail.com>
14701
14702 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14703 (Funencodable_char_position, Fcheck_coding_systems_region)
14704 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14705 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14706 (Ffind_operation_coding_system, Fset_coding_system_priority)
14707 (Fcoding_system_eol_type): Doc fixes.
14708
147092008-05-17 Glenn Morris <rgm@gnu.org>
14710
14711 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14712
147132008-05-16 Eli Zaretskii <eliz@gnu.org>
14714
14715 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14716 and st_gid.
14717
14718 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14719 HAVE_WINDOW_SYSTEM is not defined.
14720
14721 * xfaces.c (merge_face_ref, merge_face_vectors)
14722 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14723 HAVE_WINDOW_SYSTEM is defined.
14724 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14725
147262008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14727
14728 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14729
147302008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14731
14732 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14733
147342008-05-15 Kenichi Handa <handa@m17n.org>
14735
14736 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14737 preference.
14738
147392008-05-15 Glenn Morris <rgm@gnu.org>
14740
14741 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14742
147432008-05-15 Chong Yidong <cyd@stupidchicken.com>
14744
14745 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14746 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14747
14748 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14749
147502008-05-15 Kenichi Handa <handa@m17n.org>
14751
14752 * ftfont.c (ftfont_list): Downcase family name to check generic
14753 families.
14754
14755 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14756 font-spec for QCfont value.
14757
14758 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14759 buffer. Check the return value of it.
14760
147612008-05-14 Jason Rumney <jasonr@gnu.org>
14762
14763 * w32term.c (w32_get_glyph_overhangs): Remove.
14764 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14765
147662008-05-14 Kenichi Handa <handa@m17n.org>
14767
14768 * font.c (font_prop_validate): Make nil a valid value.
14769 (font_clear_cache): Check if the cached vector of entities is nil
14770 or not.
14771
147722008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14773
14774 * emacs.c (main_thread): Conditionalize on
14775 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14776 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14777
14778 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14779 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14780 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14781
147822008-05-14 Kenichi Handa <handa@m17n.org>
14783
14784 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14785 has no corresponding coding system.
14786
147872008-05-14 Jason Rumney <jasonr@gnu.org>
14788
14789 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14790
14791 * w32font.h (w32font_open_internal): Update declaration.
14792
14793 * w32font.c (w32font_open_internal): Change last argument from
14794 w32font_info struct to font object. Fill in font object from
14795 font_entity. Get Outline metrics if possible. Use them to
14796 calculate underline position and thickness. Use xlfd name as name
14797 property. Don't set codepage.
14798 (w32font_open): Pass font_object to w32font_open_internal. Don't
14799 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14800 (w32font_draw): Use s->font.
14801 (clear_cached_metrics): Don't clear non-existent blocks.
14802
14803 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14804 font was not found.
14805 (x_draw_glyph_string): Use underline position and thickness from font.
14806
14807 * w32uniscribe.c (uniscribe_open): Pass font_object to
14808 w32font_open_internal.
14809
148102008-05-14 Kenichi Handa <handa@m17n.org>
14811
14812 These changes are to delete all legacy font-handling codes, and
14813 make Emacs use only font-backends.
14814
14815 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14816 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14817
14818 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14819
14820 * charset.h (Vcharset_non_preferred_head)
14821 (Vcurrent_iso639_language): Extern them.
14822
14823 * charset.c (Vcharset_non_preferred_head): New variable.
14824 (Vcurrent_iso639_language): New variable.
14825 (syms_of_charset): Declare it as a Lisp variable.
14826 (char_charset): Don't check non preferred charsets. As a last
14827 resort, return charset_unicode.
14828 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14829
14830 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14831 conditionals. Don't check enable_font_backend. Delete all codes
14832 used only when USE_FONT_BACKEND is not defined.
14833
14834 * dispextern.h (struct glyph_string): Change type of `font' to
14835 `struct font *'.
14836 (struct glyph_string): New member underline_position and
14837 underline_thickness.
14838 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14839 (struct face): Change type of `font' to `struct font *'. Remove
14840 members `font_name', `font_info_id'.
14841 (per_char_metric, encode_char): Delete externs.
14842 (calc_pixel_width_or_height): Adjust the prototype.
14843
14844 * emacs.c (enable_font_backend): Delete extern.
14845 (main): Don't set enable_font_backend. Don't check the command
14846 line argument "-disable-font-backend".
14847
14848 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14849 (enum font_property_index): New members FONT_DPI_INDEX,
14850 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14851 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14852 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14853 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14854 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14855 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14856 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14857 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14858 (struct font_spec, struct font_entity): New structs.
14859 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14860 (struct font): Many members from old "struct font_info" moved to
14861 here. Members font and entity deleted.
14862 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14863 the new font-related objects.
14864 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14865 (CHECK_FONT_GET_OBJECT): Likewise.
14866 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14867 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14868 (struct font_driver): New members case_sensitive anc check. Type
14869 of the member list and open changed.
14870 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14871 (font_symbolic_width, font_find_object, font_get_spec)
14872 (font_set_lface_from_name): Delete extern.
14873 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14874
14875 * font.c: Include <strings.h>.
14876 (enable_font_backend): Delete it.
14877 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14878 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14879 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14880 (null_string): Delete it.
14881 (null_vector): Make it static.
14882 (font_family_alist): Delete it.
14883 (Qnormal): Extern it.
14884 (QCextra, QClanguage): Delete it.
14885 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14886 (font_make_spec, font_make_entity, font_make_object)
14887 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14888 the string. Callers changed.
14889 (font_pixel_size): Adjusted for the format change of font-related
14890 objects.
14891 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14892 (font_style_to_value, font_style_symbolic): New function.
14893 (build_font_family_alist): Delete it.
14894 (font_registry_charsets): Use Fassoc_string instead of
14895 assq_no_quit.
14896 (font_prop_validate_symbol): Don't return null_string.
14897 (font_prop_validate_style): Adjusted for the change of
14898 style-related values in a font vector.
14899 (font_property_table): Delete entries for QClanguage and
14900 QCantialias, add entries for QCavgwidth.
14901 (get_font_prop_index): Delete the 2nd argument FROM.
14902 (font_prop_validate): Arguments changed.
14903 (font_put_extra): Adjusted for the change of font-related objects.
14904 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14905 (font_parse_fcname, font_unparse_fcname)
14906 (font_prepare_composition): Likewise.
14907 (font_parse_family_registry): Renamed from font_merge_old_spec.
14908 (otf_open): Delete the 1st arg entity.
14909 (font_otf_capability): Adjusted for the above change.
14910 (font_score): New arg alternate_families. Adjusted for the change
14911 of font-related objects.
14912 (font_sort_entites): New arg best_only.
14913 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14914 Delete them.
14915 (font_match_p): Check alternate families.
14916 (font_find_object): Delete it.
14917 (font_check_object): New function.
14918 (font_clear_cache): Adjusted for the change of font-related objects.
14919 (font_delete_unmatched): New arg.
14920 (font_list_entities): Call font_driver->list with a spec that
14921 doesn't specify style-related properties.
14922 (font_matching_entity): Arguments changed. Caller changed.
14923 (font_open_entity): Adjusted for the change of font-related objects.
14924 (font_close_object, font_has_char, font_encode_char)
14925 (font_get_name, font_get_spec): Likewise.
14926 (font_spec_from_name, font_clear_prop, font_update_lface):
14927 New functions.
14928 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14929 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14930 (font_at): Adjusted for the change of font-related objects.
14931 (font_range): New function.
14932 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14933 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14934 (Fcopy_font_spec, Fmerge_font_spec): New function.
14935 (Ffont_family_list): Renamed from list-families.
14936 (Finternal_set_font_style_table): Arguments changed.
14937 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14938 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14939 change of font-related objects.
14940 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14941
14942 * fontset.h (struct font_info): Delete it. Most members go to
14943 struct font.
14944 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14945 (enum FONT_SPEC_INDEX): Delete it.
14946 (font_info, list_fonts_func, load_font_func, query_font_func)
14947 (set_frame_fontset_func, find_ccl_program_func)
14948 (get_font_repertory_func, new_fontset_from_font_name): Delete
14949 externs.
14950 (fontset_from_font_name): Extern it.
14951 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14952 (FONT_INFO_FROM_FACE): Deleted.
14953 (face_for_font): Adjust prototype.
14954
14955 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14956 conditionals. Don't check enable_font_backend. Delete all codes
14957 used only when USE_FONT_BACKEND is not defined.
14958 (get_font_info_func, list_font_func, load_font_func)
14959 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14960 (get_font_repertory_func): Delete them.
14961 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14962 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14963 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14964 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14965 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14966 (fontset_compare_rfontdef): New function.
14967 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14968 rfont-defs by qsort. Adjusted for the change of font-group vector.
14969 (load_font_get_repertory): Deleted.
14970 (fontset_find_font): Use new macros to ref/set elements of
14971 font-def and rfont-def.
14972 (fontset_font): Fix the timing of remembering that no font for C.
14973 (free_face_fontset): Do nothing if the face has no fontset.
14974 (face_suitable_for_char_p): Use new macros to ref/set elements of
14975 rfont-def.
14976 (face_for_char): Likewise. Call face_for_char with font_object.
14977 (fs_load_font): Delete. Delete #pragma surrounding it.
14978 (fs_query_fontset): Use strcasecmp instead of strcmp.
14979 (generate_ascii_font_name): Adjusted for the format change of
14980 font-spec.
14981 (Fset_fontset_font): Likewise. Use new macros to set elements of
14982 font-def.
14983 (Fnew_fontset): Use font_unparse_xlfd to generate
14984 FONTSET_ASCII (fontset).
14985 (new_fontset_from_font_name): Deleted.
14986 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14987 a fontset is already created for the font. FIx updating of
14988 Vfontset_alias_alist.
14989 (fontset_ascii_font): Deleted.
14990 (Ffont_info): Adjusted for the format change of font-spec.
14991 (Finternal_char_font): Likewise.
14992 (Ffontset_info): Likewise.
14993 (syms_of_fontset): Don't check load_font_func.
14994
14995 * fns.c (internal_equal): Handle PREV_FONT.
14996
14997 * frame.h: Delete USE_FONT_BACKEND conditional.
14998
14999 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15000 conditionals. Don't check enable_font_backend. Delete all codes
15001 used only when USE_FONT_BACKEND is not defined.
15002 (x_set_font): Call x_new_font, not x_new_fontset2.
15003 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15004 already set for the frame.
15005
15006 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15007 a font-entity by font_make_entity. Use font_intern_prop instead
15008 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15009 font property. If a font is scalable, set avgwidth property to 0.
15010 Set font-entity property by font_put_extra.
15011 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15012 (ffont_driver): Adjusted for the change of struct font_driver.
15013 (ftfont_spec_pattern): New function.
15014 (ftfont_list): Return a list, not vector.
15015 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15016 (ftfont_list_family): Don't downcase names.
15017 (ftfont_free_entity): Deleted.
15018 (ftfont_open): Return a font-object. Adjusted for the change of
15019 struct font. Get underline_thickness and underline_position from
15020 font property. Don't update dpyinfo->smallest_font_height and
15021 dpyinfo->smallest_char_width.
15022 (ftfont_close): Don't free `struct font'.
15023 (ftfont_has_char): Adjusted for the format change of font-entity.
15024 (ftfont_encode_char, ftfont_text_extents): Likewise.
15025
15026 * ftxfont.c (ftxfont_list): Return a list, not vector.
15027 (ftxfont_open): Return a font-object. Adjusted for the change of
15028 struct font. Get underline_thickness and underline_position from
15029 font property. Don't update dpyinfo->smallest_font_height and
15030 dpyinfo->smallest_char_width.
15031 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15032 (ftxfont_draw): Adjusted for the change of struct font.
15033
15034 * image.c (image_ascent): Don't include "charset.h". Include
15035 "character.h" and "font.h".
15036
15037 * lisp.h (enum pvec_type): New member PREV_FONT.
15038 (Fassoc_string): EXFUN it.
15039
15040 * print.c: Include font.h.
15041 (print_object): Handle font-related objects.
15042
15043 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15044 conditionals. Don't check enable_font_backend. Delete all codes
15045 used only when USE_FONT_BACKEND is not defined.
15046 (handle_auto_composed_prop): Do nothing if it->f is not on a
15047 window system. Check how many following characters can be
15048 displayed by the same font.
15049 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15050 'struct font *'.
15051 (get_char_face_and_encoding): Assign the whole encoding task to
15052 the `encode-char' method of a font driver.
15053 (fill_composite_glyph_string): Adjusted for the change of `struct
15054 face' and `struct glyph_string'.
15055 (fill_glyph_string): Likewise.
15056 (get_per_char_metric): Arguments changed.
15057 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15058 and `struct glyph_string'.
15059 (produce_stretch_glyph, calc_line_height_property)
15060 (x_produce_glyphs): Likewise.
15061
15062 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15063 conditionals. Don't check enable_font_backend. Delete all codes
15064 used only when USE_FONT_BACKEND is not defined. Use
15065 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15066 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15067 (Qp): Extern them.
15068 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15069 Deleted.
15070 (struct font_name): Deleted.
15071 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15072 (compare_fonts_by_sort_order): New function.
15073 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15074 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15075 Deleted.
15076 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15077 compare_fonts_by_sort_order.
15078 (Fx_font_family_list): Call Ffont_family_list.
15079 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15080 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15081 (face_symbolic_slant, face_symbolic_swidth)
15082 (split_font_name_into_vector, build_font_name_from_vector)
15083 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15084 (font_rescale_ratio, split_font_name, build_font_name)
15085 (free_font_names, sort_fonts, x_face_list_fonts)
15086 (face_font_available_p, sorted_font_list, cmp_font_names)
15087 (font_list_1, concat_font_list, font_list, remove_duplicates):
15088 Deleted.
15089 (Fx_list_fonts): Use Ffont_list.
15090 (LFACE_AVGWIDTH): Deleted.
15091 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15092 by FONTP.
15093 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15094 (set_lface_from_font_name): Delete it.
15095 (set_lface_from_font): Renamed from
15096 set_lface_from_font_and_fontset. Caller changed. Don't set
15097 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15098 for face.
15099 (merge_face_vectors): Copy font-spec if necessary.
15100 Clear properties of the font-spec if necessary.
15101 (merge_face_ref): Clear properties of the font-spec if necessary.
15102 (Finternal_set_lisp_face_attribute): Likewise.
15103 (set_font_frame_param): Use font_load_for_lface to load a
15104 font-object, and call Fmodify_frame_parameters with it.
15105 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15106 font name by Ffont_xlfd_name.
15107 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15108 QCslant, and QCwidth.
15109 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15110 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15111 Compare fonts by EQ.
15112 (lookup_non_ascii_face): Deleted.
15113 (face_for_font): The 2nd argument changed.
15114 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15115 Check atomic font properties by case insensitive.
15116 (realize_non_ascii_face): Set face->overstrike correctly.
15117 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15118 (dump_realized_face): Get font name from
15119 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15120
15121 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15122 conditionals. Don't check enable_font_backend. Delete all codes
15123 used only when USE_FONT_BACKEND is not defined.
15124 (xic_create_xfontset): Original code deleted and renamed from
15125 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15126 (x_make_gc): Don't set GCFont in GCs.
15127 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15128 opened by "fixed".
15129 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15130 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15131 get_font_repertory_func.
15132
15133 * xfont.c: Include <stdlib.h> and "ccl.h".
15134 (struct xfont_info): New structure.
15135 (xfont_query_font): Deleted.
15136 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15137 moved from xterm.c.
15138 (xfont_driver): Adjusted for the change of struct font_driver.
15139 (compare_font_names): New function.
15140 (xfont_list_pattern): Sort font names case insensitively. Make
15141 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15142 (xfont_list): Return a list, not vector.
15143 (xfont_match): If the font doesn't have QCname property, generate
15144 a name from the other font properties.
15145 (xfont_open): Return a font-object. Adjusted for the change of
15146 struct font. Get underline_thickness and underline_position from
15147 font property. Don't update dpyinfo->smallest_font_height and
15148 dpyinfo->smallest_char_width.
15149 (xfont_close): Don't free struct font.
15150 (xfont_prepare_face): Adjusted for the change of struct font.
15151 (xfont_done_face): Deleted.
15152 (xfont_has_char): Adjusted for the change of struct font.
15153 (xfont_encode_char, xfont_draw): Likewise.
15154 (xfont_check): New function.
15155
15156 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15157 callback function.
15158 (xftfont_match): Adjusted for the format change of font-entity.
15159 (xftfont_open): Adjusted for the format change of font-entity and
15160 font-object. Adjusted for the change of struct font. Return a
15161 font-object. Don't update dpyinfo->smallest_font_height and
15162 dpyinfo->smallest_char_width.
15163 (xftfont_close): Block input while calling XftFontClose.
15164 (xftfont_prepare_face): Don't block input while calling
15165 xftfont_get_colors. Adjusted for the change of struct font.
15166 (xftfont_shape): Return value of error case fixed.
15167
15168 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15169
15170 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15171 conditionals.
15172 (FONT_WIDTH): Return (f)->max_width.
15173 (struct x_display_info): Delete member `font'.
15174 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15175 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15176 (struct x_output): Change type of `font' to `struct font *'.
15177
15178 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15179 conditionals. Don't check enable_font_backend. Delete all codes
15180 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15181 (x_per_char_metric, x_encode_char): Deleted.
15182 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15183 (x_compute_glyph_string_overhangs): Adjusted for the change of
15184 `struct face'.
15185 (x_draw_glyph_string_foreground)
15186 (x_draw_composite_glyph_string_foreground): Likewise.
15187 (x_draw_glyph_string): Likewise. Use font->underline_position and
15188 font->underline_thickness.
15189 (x_new_font): Renamed from x_new_fontset2.
15190 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15191 (x_check_font): Call `check' method of a font driver.
15192 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15193 (x_query_font, x_get_font_repertory): Deleted.
15194 (x_find_ccl_program): Renamed and moved to xfont.c.
15195 (x_redisplay_interface): Adjusted for the change of `struct
15196 redisplay_interface'.
15197
15198 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15199 conditionals. Don't check enable_font_backend. Delete all codes
15200 used only when USE_FONT_BACKEND is not defined. Surround non-used
15201 code by "#ifdef OLD_FONT" and "endif".
15202 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15203
15204 * w32font.h (struct w32font_info): New member.
15205 (FONT_COMPAT): New macro.
15206 (w32font_open_internal): Prototype adjusted.
15207
15208 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15209 OLD_FONT" and "endif".
15210
15211 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15212 conditionals. Don't check enable_font_backend. Delete all codes
15213 used only when USE_FONT_BACKEND is not defined.
15214 (w32font_open): Return a font-object. Make a font-object by
15215 font_make_object. Adjusted for the change of struct w32font_info.
15216 (w32font_close): Don't free struct font. Adjusted for the change
15217 of struct w32font_info.
15218 (w32font_encode_char, w32font_text_extents, w32font_draw):
15219 Adjusted for the change of struct w32font_info.
15220 (w32font_draw): Likewise.
15221 (w32font_list_internal): Return a list, not vector.
15222 (w32font_open_internal): Change the 4th arg to font-object.
15223 Adjusted for the change of struct w32font_info and font-object format.
15224 (add_font_name_to_list): Don't downcase names.
15225 (w32_enumfont_pattern_entity): Make a font-entity by
15226 font_make_entity. Adjusted for the format change of font-entity.
15227 Use FONT_SET_STYLE to set a style-related font property. If a
15228 font is scalable, set avgwidth property to 0. Set font-entity
15229 property by font_put_extra.
15230 (font_matches_spec): Adjusted for the format change of font-entity.
15231 (w32_weight_table, w32_decode_weight): New variables.
15232 (w32_encode_weight): New function.
15233 (fill_in_logfont): Adjusted for the format change of font-spec.
15234 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15235 weight value.
15236 (w32font_driver): Adjusted for the change of struct font_driver.
15237
15238 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15239 conditionals. Don't check enable_font_backend. Surround non-used
15240 code by "#ifdef OLD_FONT" and "endif".
15241 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15242 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15243
15244 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15245 conditionals. Don't check enable_font_backend. Delete all codes
15246 used only when USE_FONT_BACKEND is not defined. Surround non-used
15247 code by "#ifdef OLD_FONT" and "endif".
15248
15249 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15250 (uniscribe_open): Return value changed to font-object.
15251 Adjusted for the format change of font-object.
15252 (uniscribe_otf_capability): Adjusted for the change of struct font.
15253 (add_opentype_font_name_to_list): Don't downcase names.
15254 (uniscribe_font_driver): Adjusted for the change of struct
15255 font_driver.
15256
152572008-05-13 Chong Yidong <cyd@stupidchicken.com>
15258
15259 * dispnew.c (update_frame_1): Check if tty output is still valid
15260 before flushing it.
15261
152622008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15263
15264 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15265 to Gtk+ menus.
15266
152672008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15268
15269 * dired.c (file_name_completion): Tweak the code so as to always do it
15270 in a single pass. Tighten the scope of some variables.
15271
15272 * dired.c (Qdefault_directory): New var.
15273 (file_name_completion): Use it instead of Fexpand_file_name.
15274 (syms_of_dired): Initialize it.
15275
152762008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15277
15278 * fileio.c (double_dollars): Remove dead code.
15279
152802008-05-10 Eli Zaretskii <eliz@gnu.org>
15281
15282 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15283 Mention w32-get-true-file-attributes in doc string.
15284
15285 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15286
152872008-05-09 Glenn Morris <rgm@gnu.org>
15288
15289 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15290 2008-04-23.
15291
152922008-05-09 Eli Zaretskii <eliz@gnu.org>
15293
15294 Support for reporting owner and group of each file on MS-Windows:
15295 * dired.c (stat_uname, stat_gname): New functions, with special
15296 implementation for w32.
15297 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15298
15299 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15300 (dflt_group_name): New static variable.
15301 (dflt_group): Rename from the_group.
15302 (init_user_info): Init dflt_group fields. Get user's group name
15303 from LookupAccountSid.
15304 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15305 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15306 New initialization states.
15307 (globals_of_w32): Initialize them to zero. Initialize the default
15308 group name to "None".
15309 (GetFileSecurity_Name): New global var, the name of the function
15310 to call for GetFileSecurity.
15311 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15312 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15313 (get_file_security, get_security_descriptor_owner)
15314 (get_security_descriptor_group, is_valid_sid)
15315 (get_file_security_desc, get_rid, get_name_and_id)
15316 (get_file_owner_and_group): New functions.
15317 (stat): Use get_file_security_desc and get_file_owner_and_group to
15318 report the owner and primary group of each file. Don't ignore the
15319 high 32 bits of file's size, now that st_size is 64-bit wide.
15320 Fix test when to get true file attributes.
15321 (init_user_info): Use get_rid instead of equivalent inline code.
15322 (fstat): Don't ignore the high 32 bits of file's size.
15323
153242008-05-09 Chong Yidong <cyd@stupidchicken.com>
15325
15326 * image.c (png_load): Use correct bit-depth for setting background
15327 color.
15328
153292008-05-08 Eli Zaretskii <eliz@gnu.org>
15330
15331 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15332 epa-hook.elc.
15333
153342008-05-08 Juanma Barranquero <lekktu@gmail.com>
15335
15336 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15337
153382008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15339
15340 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15341 because the original parameters are in pure storage now.
15342 (mac_window): Remove unused params. Update callers.
15343
153442008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15345
15346 * lread.c (substitute_object_recurse): Use lower-level primitives.
15347 Don't signal errors when traversing sub-char-tables.
15348 Don't loop over all the possible characters when traversing char-tables.
15349
15350 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15351 just like we do in print.c.
15352
153532008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15354
15355 * minibuf.c (Ftry_completion): Remove code left over from when we used
15356 scmp instead of Fcompare_strings.
15357
153582008-05-04 Juanma Barranquero <lekktu@gmail.com>
15359
15360 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15361
153622008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15363
15364 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15365 Create bitmap context in native byte order.
15366
15367 * macterm.c (XDrawLine)
15368 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15369 context in native byte order.
15370
153712008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15372
15373 * config.in: Regenerate.
15374
15375 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15376 New definitions for Image I/O support.
15377 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15378 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15379 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15380 (mac_data_provider_release_data, image_load_image_io)
15381 [USE_MAC_IMAGE_IO]: New functions.
15382 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15383 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15384 (init_image_func_pointer) [MAC_OSX]: Remove function.
15385 (image_load_quartz2d) [MAC_OSX]: Check availability of
15386 CGImageCreateWithPNGDataProvider at compile time.
15387 Use lowercase `false' for boolean constant.
15388 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15389 Use image_load_image_io.
15390 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15391 Don't check MyCGImageCreateWithPNGDataProvider.
15392 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15393 Don't call init_image_func_pointer.
15394
15395 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15396
15397 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15398 Make variable non-static.
15399 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15400 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15401
15402 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15403 (RED_FROM_ULONG): Mask off higher bits.
15404 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15405
15406 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15407 Include AvailabilityMacros.h.
15408 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15409 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15410
154112008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15412
15413 * chartab.c (Fset_char_table_range): If range is t, really set all
15414 chars to that value.
15415
154162008-05-03 Eli Zaretskii <eliz@gnu.org>
15417
15418 * dired.c (Ffile_attributes): Don't allow the device number become
15419 negative.
15420
154212008-05-02 Daiki Ueno <ueno@unixuser.org>
15422
15423 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15424
154252008-05-02 Juri Linkov <juri@jurta.org>
15426
15427 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15428 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15429 DEFAULT argument as a list of default values in docstrings.
15430
154312008-05-01 Chong Yidong <cyd@stupidchicken.com>
15432
15433 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15434
154352008-05-01 Martin Rudalics <rudalics@gmx.at>
15436
15437 * dispnew.c (change_frame_size_1): Preserve small windows when
15438 shrinking frames by calling set_window_height|width with third
15439 arg 2.
15440
15441 * window.h (struct window): Replace field too_small_ok by field
15442 resize_proportionally.
15443
15444 * window.c (make_window): Initialize resize_proportionally.
15445 (enlarge_window): Temporarily set resize_proportionally to make
15446 sure that shrink_windows does scale the window proportionally.
15447 (shrink_windows): When window has resize_proportionally set try
15448 to shrink it proportionally by stealing from other windows.
15449 (struct saved_window, Fset_window_configuration)
15450 (compare_window_configurations): Handle resize_proportionally.
15451 (WINDOW_TOTAL_SIZE): New macro.
15452 (window_min_size, shrink_windows, size_window): Use it.
15453 (check_min_window_sizes): Remove. Invalid values of
15454 window-min-height|width are handled by window_min_size_2 now.
15455 (size_window, Fsplit_window, enlarge_window)
15456 (adjust_window_trailing_edge, grow_mini_window): Don't call
15457 check_min_window_sizes.
15458 (window_min_size_2, window_min_size_1, window_min_size):
15459 New argument safe_p for retrieving "safe" minimum sizes.
15460 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15461 (adjust_window_trailing_edge, grow_mini_window):
15462 Adjust arguments of window_min_size... functions.
15463 (shrink_windows): Argument min_size removed. New argument
15464 safe_p allows shrinking windows to their safe minimum sizes.
15465 Calculate minimum size and decide whether a window shall be
15466 deleted for each window individually.
15467 (size_window): When nodelete_p equals 2, tell shrink_windows to
15468 delete windows only if their new minimum size is no more safe.
15469 (shrink_window_lowest_first): Call window_min_size_1 to make
15470 sure to preserve modeline of bottom-most window when resizing
15471 the minibuffer.
15472 (Fset_window_configuration, Fcurrent_window_configuration)
15473 (compare_window_configurations): Do not handle
15474 window-min-height|width any more.
15475 (syms_of_window): Clarify window-min-height|width doc-strings.
15476
154772008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15478
15479 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15480 some more. Copy some of the code from Ftry_completions.
15481 Remove special case code that dates back to initial revision when the
15482 slash was only added when necessary and that can't trigger nowadays.
15483
154842008-04-27 Kenichi Handa <handa@m17n.org>
15485
15486 * font.c (font_prop_validate): Signal `error' instead of `font'.
15487
154882008-04-29 Jason Rumney <jasonr@gnu.org>
15489
15490 * w32fns.c (Fw32_battery_status): New defun.
15491 (syms_of_w32fns): Defsubr it.
15492
154932008-04-28 Andreas Schwab <schwab@suse.de>
15494
15495 * dired.c (file_name_completion): Fix another mixing of encoded
15496 and decoded names.
15497
154982008-04-28 Juanma Barranquero <lekktu@gmail.com>
15499
15500 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15501
155022008-04-27 Juanma Barranquero <lekktu@gmail.com>
15503
15504 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15505
155062008-04-27 Andreas Schwab <schwab@suse.de>
15507
15508 * dired.c (file_name_completion): Fix inappropriate mixing of
15509 encoded and decoded names.
15510
15511 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15512
15513 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15514
155152008-04-26 Eli Zaretskii <eliz@gnu.org>
15516
15517 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15518 2008-03-31, it's not needed anymore with `struct stat' definition
15519 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15520 for the same reasons.
15521
155222008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15523
15524 * m/sparc.h: Additional redefinitions for GNU/Linux.
15525
155262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15527
15528 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15529 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15530 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15531 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15532 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15533 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15534 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15535 Likewise.
15536
15537 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15538 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15539 (mac_ax_number_of_characters): Add externs.
15540 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15541 [USE_MAC_TSM]: Likewise.
15542 (mac_handle_text_input_event) [MAC_OSX]:
15543 Handle kEventTextInputOffsetToPos for no active input area case.
15544 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15545 (mac_handle_document_access_event)
15546 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15547 (install_application_handler) [MAC_OSX]: Register handlers for
15548 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15549 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15550 Register mac_handle_document_access_event.
15551
15552 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15553 Make functions non-static.
15554
155552008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15556
15557 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15558 (read_file_name_completion_ignore_case, insert_default_directory)
15559 (Qdefault_directory): Move to minibuffer.el.
15560 (Fread_file_name): Call the new `read-file-name' instead.
15561
155622008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15563
15564 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15565 Make function non-static.
15566 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15567 Remove function.
15568 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15569 Move to mactoolbox.c.
15570 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15571
15572 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15573 (mac_rect_make): New macro.
15574
15575 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15576 instead of float.
15577 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15578 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15579 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15580 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15581 CGRectMake.
15582 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15583 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15584 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15585 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15586 instead of WindowRef in argument type.
15587 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15588 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15589 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15590 instead of DISPLAY. All uses changed.
15591 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15592 (x_calc_absolute_position): Simplify so as not to use
15593 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15594
15595 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15596 instead of WindowRef in argument type.
15597 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15598 [TARGET_API_MAC_CARBON]: Remove externs.
15599 (create_apple_event, mac_event_parameters_to_lisp)
15600 [TARGET_API_MAC_CARBON]: Add externs.
15601
15602 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15603 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15604 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15605 is clicked.
15606 (x_activate_menubar): Remove extern for saved_menu_event_location.
15607 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15608 Move from mac.c.
15609
156102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15611
15612 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15613 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15614
156152008-04-23 Jason Rumney <jasonr@gnu.org>
15616
15617 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15618 attributes only for local files.
15619
15620 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15621 default to Qlocal.
15622
156232008-04-22 Juri Linkov <juri@jurta.org>
15624
15625 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15626 read-buffer-to-switch instead of using the letter "B".
15627
156282008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15629
15630 * fileio.c (Qdefault_directory): New variable.
15631 (Fread_file_name): Use it to pass `dir' to the completion functions.
15632
156332008-04-20 Chong Yidong <cyd@stupidchicken.com>
15634
15635 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15636
156372008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15638
15639 * keyboard.c (Vpre_help_message): Remove.
15640 (show_help_echo): Remove default C code.
15641
15642 * dired.c (directory_files_internal, file_name_completion):
15643 Only call ENCODE_FILE if the string is indeed decoded.
15644
156452008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15646
15647 * Makefile.in (TOOLKIT_DEFINES): Remove.
15648 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15649
156502008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15651
15652 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15653 (mactoolbox.o): New target.
15654
15655 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15656 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15657
15658 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15659 Use mac_set_frame_window_background instead of XSetWindowBackground.
15660 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15661 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15662 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15663 instead of SetWindowTitleWithCFString.
15664 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15665 Move function to mactoolbox.c.
15666 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15667 Use mac_set_window_modified instead of SetWindowModified.
15668 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15669 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15670 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15671 FrontNonFloatingWindow. Use mac_activate_window instead of
15672 ActivateWindow. Use mac_active_non_floating_window instead of
15673 ActiveNonFloatingWindow.
15674 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15675 Use mac_show_hourglass and mac_hide_hourglass.
15676 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15677 instead of GetGlobalMouse.
15678 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15679 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15680 Use mac_bring_window_to_front instead of BringToFront.
15681 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15682 mactoolbox.c.
15683 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15684 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15685 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15686 mactoolbox.c.
15687
15688 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15689 (XtPointer): Move typedef from macmenu.c.
15690 (enum button_type): Move enum from macmenu.c.
15691 (widget_value): Move typedef from macmenu.c.
15692 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15693 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15694 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15695 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15696 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15697 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15698 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15699 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15700 (Selection): Move typedef from macselect.c.
15701 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15702 macterm.c.
15703 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15704 (mac_is_window_collapsed, mac_bring_window_to_front)
15705 (mac_send_window_behind, mac_hide_window, mac_show_window)
15706 (mac_collapse_window, mac_front_non_floating_window)
15707 (mac_active_non_floating_window, mac_activate_window)
15708 (mac_move_window_structure, mac_move_window, mac_size_window)
15709 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15710
15711 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15712 (enum mac_menu_kind): Move enum to mactoolbox.c.
15713 (min_menu_id): Move variable to mactoolbox.c.
15714 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15715 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15716 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15717 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15718 [TARGET_API_MAC_CARBON]: Likewise.
15719 (XtPointer): Move typedef to macgui.h.
15720 (enum button_type): Move enum to macgui.h.
15721 (widget_value): Move typedef to macgui.h.
15722 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15723 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15724 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15725 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15726 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15727 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15728 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15729 (popup_activated_flag): Make variable non-static.
15730 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15731 (add_menu_item, fill_menu, dispose_menus):
15732 Move functions to mactoolbox.c.
15733 (restore_show_help_function, menu_target_item_handler)
15734 (install_menu_target_item_handler, mac_handle_dialog_event)
15735 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15736 [TARGET_API_MAC_CARBON]: Likewise.
15737 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15738 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15739 (find_and_call_menu_selection, name_is_separator): Make function
15740 non-static.
15741 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15742 to mactoolbox.c.
15743 (set_frame_menubar): Don't call install_menu_quit_handler.
15744 (menu_item_selection): New variable.
15745 (mac_menu_show): Use create_and_show_popup_menu.
15746 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15747 selection but set variable menu_item_selection. All uses changed.
15748 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15749 Call install_menu_quit_handler. Move to mactoolbox.c.
15750
15751 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15752 (Selection): Move typedef to macgui.h.
15753 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15754 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15755 Make variables non-static.
15756 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15757 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15758 Make functions non-static.
15759 (Vmac_service_selection) [MAC_OSX]: Likewise.
15760 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15761 (mac_valid_selection_target_p, mac_clear_selection)
15762 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15763 (mac_put_selection_value, mac_selection_has_target_p)
15764 (mac_get_selection_value, mac_get_selection_target_list)
15765 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15766 Move functions to mactoolbox.c.
15767 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15768 Likewise.
15769 (copy_scrap_flavor_data, mac_handle_service_event)
15770 (install_service_handler) [MAC_OSX]: Likewise.
15771 (syms_of_macselect) <Vmac_dnd_known_types>:
15772 Use mac_dnd_default_known_types.
15773
15774 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15775 Move to mactoolbox.c.
15776 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15777 (Fx_selection_owner_p): Add EXFUN.
15778 (install_window_handler, remove_window_handler, XSetWindowBackground):
15779 Remove externs.
15780 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15781 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15782 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15783 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15784 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15785 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15786 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15787 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15788 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15789 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15790 (mac_valid_selection_target_p, mac_clear_selection)
15791 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15792 (mac_put_selection_value, mac_selection_has_target_p)
15793 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15794 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15795 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15796 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15797 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15798 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15799 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15800 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15801 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15802
15803 * mactoolbox.c: New file.
15804
158052008-04-18 Jason Rumney <jasonr@gnu.org>
15806
15807 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15808
158092008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15810
15811 * character.c (Fmultibyte_char_to_unibyte):
15812 Return latin1 chars unchanged.
15813
15814 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15815 relocated if it points to `name'.
15816
158172008-04-17 Kenichi Handa <handa@m17n.org>
15818
15819 * data.c (Faset): Allow setting a multibyte character in an
15820 ASCII-only unibyte string.
15821
15822 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15823
158242008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15825
15826 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15827 done in config.h.
15828
158292008-04-16 Juanma Barranquero <lekktu@gmail.com>
15830
15831 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15832 (Fchar_direction): Add usage in the docstring.
15833
158342008-04-15 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * keyboard.c (read_key_sequence): Remove always-true checks.
15837
158382008-04-14 Jason Rumney <jasonr@gnu.org>
15839
15840 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15841 compatibility struct, for better underline positioning.
15842
158432008-04-13 David Hansen <david.hansen@gmx.net>
15844
15845 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15846 string.
15847
158482008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15849
15850 * m/hp800.h (XUINT, XSET): Remove.
15851
158522008-04-12 Juanma Barranquero <lekktu@gmail.com>
15853
15854 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15855 previous change.
15856
158572008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15858
15859 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15860 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15861
158622008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15863
15864 * keymap.h (map_keymap_canonical): Declare.
15865 * xmenu.c (single_keymap_panes): Use it.
15866
158672008-04-11 Glenn Morris <rgm@gnu.org>
15868
15869 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15870 set the target's value to that of the alias.
15871
158722008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15873
15874 * term.c (set_tty_color_mode): Left over typo.
15875
158762008-04-10 Michael Albinus <michael.albinus@gmx.de>
15877
15878 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15879 only after check for file name handler functions. Signal, when
15880 native functionality is not supported.
15881 (syms_of_fileio): Declare it unconditionally.
15882
158832008-04-10 Jason Rumney <jasonr@gnu.org>
15884
15885 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15886 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15887
15888 * w32.c (logon_network_drive): Also logon to remote drives that
15889 are mapped to drive letters.
15890
158912008-04-10 Glenn Morris <rgm@gnu.org>
15892
15893 * xdisp.c (truncate-partial-width-windows): Doc fix.
15894
158952008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15898 Move functions to minibuffer.el.
15899 (syms_of_fileio): Don't declare them.
15900
159012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15902
15903 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15904 (syms_of_minibuf): Remove its initialization.
15905
15906 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15907
159082008-04-09 Juanma Barranquero <lekktu@gmail.com>
15909
15910 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15911
159122008-04-09 Jason Rumney <jasonr@gnu.org>
15913
15914 * makefile.w32-in (distclean): Delete makefile too.
15915 (maintainer-clean): New target.
15916
15917 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15918
15919 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15920 for new font backend and composite cases.
15921
159222008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15923
15924 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15925 Most of the code moved to run_timers.
15926 (do_pending_atimers): Call run_timers.
15927 (run_timers): New function.
15928
15929 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15930 run atimers.
15931
15932 * process.c (wait_reading_process_output): The same as above.
15933
159342008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15935
15936 * minibuf.c (last_exact_completion): Remove variable.
15937 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15938 (complete_and_exit_1, complete_and_exit_2)
15939 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15940 (Fdisplay_completion_list, display_completion_list_1)
15941 (Fminibuffer_completion_help, Fself_insert_and_exit)
15942 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15943 minibuffer.el.
15944 (syms_of_minibuf): Remove corresponding initializations.
15945
15946 * keyboard.c (Qdeactivate_mark): New var.
15947 (command_loop_1): Use it to call `deactivate-mark'.
15948 (syms_of_keyboard): Initialize it.
15949
15950 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15951 to another frame.
15952 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15953 Don't call set_tty_color_mode.
15954 (store_frame_param): Reset previous_frame rather than call
15955 set_tty_color_mode.
15956 * term.c (set_tty_color_mode): Rewrite.
15957 * dispextern.h (set_tty_color_mode): New type.
15958 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15959
159602008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15961
15962 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15963 for generic chars, which do not exist any more in emacs-unicode.
15964
159652008-04-08 Michael Albinus <michael.albinus@gmx.de>
15966
15967 * coding.c (detect_coding_emacs_mule)
15968 (Ffind_operation_coding_system): Fix typo.
15969
159702008-04-08 Jason Rumney <jasonr@gnu.org>
15971
15972 * w32uniscribe.c (SNAME): Extract only symbol name.
15973
15974 * w32font.h (struct w32_metric_cache): New struct.
15975 (w32font_info): Use it.
15976 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15977 (CACHE_BLOCKSIZE): New constants.
15978
15979 * w32font.c (Qja, Qko, Qzh): New symbols.
15980 (syms_of_w32font): Initialise them.
15981 (font_matches_spec): Use them to filter by language.
15982 (recompute_cached_metrics): Remove function.
15983 (compute_metrics, clear_cached_metrics): New functions.
15984 (w32font_encode_char): Use them to manage metric cache.
15985 (w32font_text_extents): Cache metrics for all glyphs on demand.
15986 Delay converting glyph indices to WORD until needed.
15987 (w32font_open_internal): Initialize metric cache to empty.
15988 (registry_to_w32_charset): Charset should always be a symbol.
15989 (fill_in_logfont, list_all_matching_fonts): Family should
15990 always be a symbol.
15991
159922008-04-06 Jason Rumney <jasonr@gnu.org>
15993
15994 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15995 Give up if glyph indices not supported. Use uniscribe obtained
15996 ABC widths for individual metrics. Map glyph clusters back to
15997 characters using fClusterStart flag. Return number of glyphs
15998 produced, not chars processed.
15999 (uniscribe_shape): Map char at FROM to current glyph.
16000
160012008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16002
16003 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16004 Use SetMenuItemHierarchicalMenu.
16005
160062008-04-05 Jason Rumney <jasonr@gnu.org>
16007
16008 * image.c (pbm_load): Allow color values up to 65535.
16009 Throw an error if max_color_idx is outside the supported range.
16010 Report an error when image size is invalid.
16011 Read two bytes at a time when raw images have max_color_idx above 255.
16012
aac0c6e3
MR
160132008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16014
16015 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16016 append "CCL: Quitted" when the CCL program is quitted.
16017 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16018
16019 * ccl.h (struct ccl_program): New member quit_silently.
16020
160212008-04-05 Chong Yidong <cyd@stupidchicken.com>
16022
16023 * search.c (compile_pattern_1): Treat non-nil and non-string of
16024 search-spaces-regexp as nil.
16025
16026 * minibuf.c (Fassoc_string): Tweak docstring.
16027
160282008-04-05 Eli Zaretskii <eliz@gnu.org>
16029
16030 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16031 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16032 2008-03-14 to force inode be positive.
16033
16034 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16035 _S_* ones, since we now use our own sys/stat.h.
16036 (stat, fstat): Don't mangle the inode number.
16037 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16038
160392008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16040
16041 * frame.h (struct frame): Give one more bit to `visible' since we use
16042 values larger than 1 to indicate obscured frames on ttys.
16043
16044 * keymap.c (Qkeymap_canonicalize): New var.
16045 (Fmap_keymap_internal): New fun.
16046 (describe_map): Use keymap-canonicalize.
16047
16048 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16049 (Fundo_boundary): Set them.
16050 (syms_of_undo): Initialize them.
16051 (record_point): Use them instead of last_point_position*.
16052 (last_undo_buffer): Change type.
16053
160542008-04-04 Jason Rumney <jasonr@gnu.org>
16055
16056 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16057 (recompute_cached_metrics): Don't set ascent and descent per char.
16058
16059 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16060 (uniscribe_check_otf): Add GC protection before consing.
16061 Rearrange loop for counting features.
16062
160632008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16064
16065 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16066 buffer with byte-size of source buffer.
16067
160682008-04-03 Chong Yidong <cyd@stupidchicken.com>
16069
16070 * callint.c (Fcall_interactively): Handle temporary region even
16071 when shift-select-mode is off.
16072
160732008-04-03 Jason Rumney <jasonr@gnu.org>
16074
16075 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16076
160772008-04-03 Kenichi Handa <handa@m17n.org>
16078
16079 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16080 (CATEGORY_MASK_UTF_16): Likewise.
16081 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16082 binary file.
16083 (detect_coding): Add null-byte detection for a binary file.
16084 (detect_coding_system): Likewise.
16085
160862008-04-03 Jason Rumney <jasonr@gnu.org>
16087
16088 * w32uniscribe.c: New file.
16089
16090 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16091
16092 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16093
16094 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16095 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16096 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16097 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16098 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16099 (Qphonetic): New symbols.
16100 (syms_of_w32font): Initialize them.
16101 (font_supported_scripts): Use them.
16102 (w32font_list_family): List all charsets.
16103 (w32font_text_extents, recompute_cached_metrics): Fix metric
16104 calculations.
16105 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16106 Give opentype fonts their own format.
16107 (font_matches_spec): New arguments backend and logfont.
16108 Handle :otf spec for uniscribe backend.
16109 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16110 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16111
16112 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16113 font backend.
16114 (globals_of_w32fns): Initialize uniscribe font backend.
16115
16116 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16117 dependencies.
16118 (w32uniscribe.$(O)): New file to build.
16119 (FONT_OBJ): Include w32uniscribe.$(O).
16120 (LIBS): Add uniscribe libraries.
16121
16122 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16123
161242008-04-02 Chong Yidong <cyd@stupidchicken.com>
16125
16126 * callint.c (Vshift_select_mode): New var.
16127 (Finteractive): Document new ^ spec.
16128 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16129 is present.
16130
16131 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16132 (command_loop_1): Avoid running the direct display versions of
16133 forward-char and backward-char if shift-selection may occur.
16134 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16135 shift-translation takes place.
16136
16137 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16138 avoid clobbering by define-minor-mode.
16139
16140 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16141 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16142
16143 * syntax.c (Fforward_word): Add ^ interactive spec.
16144
16145 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16146 (Fscroll_right): Add ^ interactive spec.
16147
161482008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16149
16150 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16151
16152 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16153
16154 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16155
161562008-03-31 Juri Linkov <juri@jurta.org>
16157
16158 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16159
161602008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16161
16162 * gtkutil.c (xg_set_geometry): Fix indentation.
16163 (xg_resize_outer_widget): Remove.
16164 (x_wm_size_hint_off): Fix indentation.
16165 (xg_frame_set_char_size): Call flush_and_sync after
16166 gtk_window_resize.
16167 (x_wm_set_size_hint): Pass NULL as geometry window to
16168 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16169 Add menu bar and tool bar height to base height.
16170 (xg_update_frame_menubar, free_frame_menubar)
16171 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16172 (update_frame_tool_bar, free_frame_tool_bar):
16173 Change xg_resize_outer_widget to xg_frame_set_char_size.
16174
161752008-03-30 Michael Albinus <michael.albinus@gmx.de>
16176
16177 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16178 (Fdbus_call_method): New parameter TIMEOUT.
16179 (dbus-send-signal): Optimize UNGCPRO call.
16180
161812008-03-29 Juri Linkov <juri@jurta.org>
16182
16183 * window.c (Fdisplay_buffer): Move call to
16184 Vsplit_window_preferred_function out of conditions that check
16185 if window is eligible for vertical splitting.
16186 When Vsplit_window_preferred_function is non-nil, call it and use
16187 its non-nil return value as window. Otherwise, continue doing
16188 vertical splitting using Fsplit_window with arg horflag=nil.
16189 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16190 default value from `split-window' to nil.
16191
161922008-03-29 Juri Linkov <juri@jurta.org>
16193
16194 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16195 for interactive code letters 'b' and 'B'.
16196
161972008-03-29 Eli Zaretskii <eliz@gnu.org>
16198
16199 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16200 multibyte string.
16201
162022008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16203
16204 * keyboard.c (pending_funcalls): New var.
16205 (timer_check): Run it.
16206 (syms_of_keyboard): Initialize it.
16207 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16208 (Vdelete_terminal_functions): New vars.
16209 (syms_of_terminal): Initialize them.
16210 (Fdelete_terminal): Run delete-terminal-functions.
16211 * xdisp.c (safe_eval): Rewrite.
16212 (safe_call2): New fun.
16213 * frame.c (Qdelete_frame_functions): New var.
16214 (syms_of_frame): Initialize it.
16215 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16216 * lisp.h (safe_call2, pending_funcalls): Declare.
16217
162182008-03-28 Andreas Schwab <schwab@suse.de>
16219
16220 * indent.c (Fmove_to_column): Move declaration before statements.
16221
162222008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16223
16224 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16225 (struct frame): Use bit fields for boolean vars.
16226
16227 * process.c (server_accept_connection): Simplify naming.
16228 (emacs_get_tty_pgrp): Use SDATA.
16229
16230 * coding.c (decode_coding_object): Fix last change.
16231
162322008-03-27 Jason Rumney <jasonr@gnu.org>
16233
16234 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16235
162362008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16237
16238 * charset.c (Fdefine_charset_internal): Change the way of
16239 registering charsets in Vcharset_order_list.
16240 (syms_of_charset): Make the charset `eight-bit' supplementary.
16241
162422008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16243
16244 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16245 operations, to avoid having the difference between pointers
16246 overflow.
16247
162482008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16249
16250 * indent.c (check_display_width): New fun.
16251 (scan_for_column): Use it.
16252
16253 * data.c (syms_of_data): Mark most-positive-fixnum and
16254 most-negative-fixnum as constants.
16255
16256 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16257
16258 * indent.c (scan_for_column): Extract from current_column_1.
16259 Merge with the same code from Fmove_to_column.
16260 (current_column_1, Fmove_to_column): Use it.
16261
162622008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16263
16264 * keymap.c (map_keymap_internal): New fun.
16265 (map_keymap): Use it.
16266 (Fmap_keymap_internal): New fun.
16267 (Fmap_keymap): Remove left-out test from before make_save_value.
16268
16269 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16270
16271 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16272 Use XCAR/XCDR.
16273
16274 * process.h (struct Lisp_Process): Remove filter_multibyte.
16275 * process.c (QCfilter_multibyte): Remove.
16276 (setup_process_coding_systems): Don't use filter_multibyte.
16277 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16278 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16279 (Fset_process_filter_multibyte): Change the coding-system to
16280 approximate the previous behavior.
16281 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16282 coding-system.
16283
16284 * coding.c (decode_coding_object): When not decoding into a buffer,
16285 obey the coding system's preference of (uni|multi)byte.
16286
162872008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16288
16289 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16290 every char is changed and has a different byte-length.
16291 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16292 Fix int -> EMACS_INT.
16293
162942008-03-23 David Hansen <david.hansen@gmx.net>
16295
16296 * dbusbind.c (xd_read_message): Remove extra copying of message
16297 strings. Check for NULL `interface' or `member'.
16298
162992008-03-22 Eli Zaretskii <eliz@gnu.org>
16300
16301 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16302 cFileName a file name that includes `?' characters, use the 8+3
16303 alias in cAlternateFileName instead.
16304
163052008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16306
16307 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16308
163092008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16310
16311 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16312 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16313 work on current_buffer only instead (that was already the case
16314 for some of the code anyway).
16315 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16316 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16317 (SET_PT, SET_PT_BOTH): Adjust.
16318 * intervals.h (set_point, temp_set_point, set_point_both)
16319 (temp_set_point_both): Remove redundant declarations.
16320
163212008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16322
16323 * fileio.c (Finsert_file_contents):
16324 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16325 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16326 when buffer != current_buffer anyway.
16327
163282008-03-20 Andreas Schwab <schwab@suse.de>
16329
16330 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16331 as default.
16332
163332008-03-19 Jason Rumney <jasonr@gnu.org>
16334
16335 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16336 (syms_of_w32fns): Initialize them.
16337 (HOURGLASS_ID): New constant.
16338 (x_window_to_frame): Don't check hourglass_window.
16339 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16340 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16341 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16342 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16343 Only change the cursor if hourglass is not active.
16344 (Fx_create_frame): Initialize frame's current_cursor.
16345 (hourglass_atimer): Remove.
16346 (hourglass_started): New function.
16347 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16348 (show_hourglass): Adapt to w32, changing argument to frame.
16349
16350 * w32term.h (struct w32_output): Remove hourglass_window.
16351 Add current_cursor.
16352
16353 * eval.c (call_debugger, Fsignal):
16354 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16355 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16356 (Fexecute_extended_command, cancel_hourglass_unwind):
16357 * minibuf.c (read_minibuf):
16358 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16359
163602008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16361
16362 * window.c (run_funs): New fun.
16363 (run_window_configuration_change_hook): Use it to run the buffer-local
16364 and the global part of the hook.
16365
16366 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16367 (unwind_format_mode_line): Restore selected window.
16368 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16369
163702008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16371
16372 * editfns.c (Fchar_equal): Check they are valid characters.
16373
16374 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16375
163762008-03-17 Andreas Schwab <schwab@suse.de>
16377
16378 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16379 against a charset.
16380
16381 * lisp.h (Fbuffer_list): Declare.
16382
163832008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16384
aac0c6e3
MR
16385 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16386 handlebox_widget is != 0.
16387
163882008-03-16 Juri Linkov <juri@jurta.org>
16389
16390 * callint.c (Fcall_interactively): For interactive code letters
16391 'b' and 'B' put the buffer list into the list of default "future"
16392 values of the minibuffer.
16393
163942008-03-16 Andreas Schwab <schwab@suse.de>
16395
16396 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16397 modifiers.
16398
16399 * regex.c (re_match_2_internal): Correct matching of a charset
16400 against latin-1 characters.
16401
164022008-03-16 Kenichi Handa <handa@m17n.org>
16403
16404 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16405 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16406 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16407 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16408 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16409 CHAR_STRING_ADVANCE.
16410 (produce_chars): Fix for the case that the source and the
16411 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16412 instead of CHAR_STRING_ADVANCE.
16413 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16414 STRING_CHAR_ADVANCE.
16415
164162008-03-15 Andreas Schwab <schwab@suse.de>
16417
16418 * regex.c (re_match_2_internal): Correct matching of eight bit
16419 characters in unibyte strings.
16420
164212008-03-15 Martin Rudalics <rudalics@gmx.at>
16422
16423 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16424 at end of range when it coincides with the end of the buffer.
16425
164262008-03-14 Eli Zaretskii <eliz@gnu.org>
16427
16428 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16429
16430 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16431
164322008-03-14 Jason Rumney <jasonr@gnu.org>
16433
16434 * editfns.c (initial_tz): New variable.
16435 (syms_of_editfns): Initialize it.
16436 (Fset_time_zone_rule): Set it when first called.
16437 Use it when TZSTRING is nil.
16438
16439 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16440 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16441 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16442 (globals_of_w32fns): Initialize them.
16443 (compute_tip_xy): Use them to position tooltips.
16444
164452008-03-14 Glenn Morris <rgm@gnu.org>
16446
16447 * emacs.c (main): Revert previous change.
16448 (standard_args): Revert -internal-script back to -scriptload,
16449 and remove the long-option form.
16450
164512008-03-13 Glenn Morris <rgm@gnu.org>
16452
16453 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16454 Remove option -enable-font-backend.
16455
164562008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16457
16458 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16459
164602008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16461
16462 * xterm.c (x_connection_closed): For GTK: If this is the last
16463 terminal just exit without closing the display.
16464
164652008-03-11 Jason Rumney <jasonr@gnu.org>
16466
16467 * w32font.c (w32font_full_name): Use floor to round.
16468
f0131492 164692008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16470
16471 * sound.c (alsa_configure): Declare vol at beginning of block.
16472
16473 * fontset.c (Ffontset_info): Remove extra semicolon.
16474
164752008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16476
16477 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16478 size of resulting string.
16479
164802008-03-10 Jason Rumney <jasonr@gnu.org>
16481
16482 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16483
164842008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16485
16486 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16487 Don't pretend as if characters with display property haven't been
16488 consumed for string-replacing-string case.
16489
164902008-03-08 Kim F. Storm <storm@cua.dk>
16491
16492 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16493 (get_next_display_element, next_element_from_string)
16494 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16495
164962008-03-08 Andreas Schwab <schwab@suse.de>
16497
16498 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16499
165002008-03-06 Jason Rumney <jasonr@gnu.org>
16501
16502 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16503 when charset not specified. Only translate ANSI to unicode when
16504 font_type is truetype.
16505 (w32font_coverage_ok): New function.
16506 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16507
165082008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16509
16510 * lread.c (Fread_char): Resolve modifiers.
16511 (Fread_char_exclusive): Likewise.
16512
16513 * character.c (char_resolve_modifier_mask): New function.
16514 (char_string): Use char_resolve_modifier_mask.
16515 (Fchar_resolve_modifiers): New function.
16516 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16517 function.
16518
165192008-03-04 Jason Rumney <jasonr@gnu.org>
16520
16521 * makefile.w32-in: Always include w32font.c in the build.
16522 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16523
165242008-03-04 Andreas Schwab <schwab@suse.de>
16525
16526 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16527 (versionclean): Likewise.
16528
165292008-03-04 Juanma Barranquero <lekktu@gmail.com>
16530
16531 * .cvsignore: Add oo.
16532
165332008-03-03 Andreas Schwab <schwab@suse.de>
16534
16535 * coding.c (decode_coding_object): Inhibit gap shrinking while
16536 decoding in place.
16537
165382008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16539
16540 * w32term.c: Remove unused include "gnu.h".
16541 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16542
16543 * gnu.h: Rename to ...
16544 * emacs-icon.h: ... this.
16545 * xterm.c: Use emacs-icon.h instead of gnu.h.
16546 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16547
165482008-03-03 Juanma Barranquero <lekktu@gmail.com>
16549
16550 * w32font.c: Include math.h.
16551
165522008-03-03 Jason Rumney <jasonr@gnu.org>
16553
16554 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16555 Compute options separately.
16556 (w32font_open_internal): Set glyph_idx before caching metrics.
16557
16558 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16559 Define if system headers don't.
16560 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16561 (w32font_encode_char): Don't declare here.
16562
16563 * w32font.c (Quniscribe, QCformat): New symbols.
16564 (syms_of_w32font): Define them.
16565 (w32font_has_char): Indicate uncertainty.
16566 (w32font_encode_char): Encode as glyph point. Make static.
16567 (recompute_cached_metrics): New function.
16568 (w32font_open_internal): Use it. Set font to use glyph points
16569 initially. Set format based on type of font.
16570 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16571 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16572 on it. Set format based on information available here.
16573 (add_font_entity_to_list): Identify backend based on opentype_only.
16574
165752008-03-02 Andreas Schwab <schwab@suse.de>
16576
16577 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16578
16579 * coding.c (decode_coding_big5, produce_chars):
16580 Fix typos in last change.
16581
165822008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16583
16584 * gnu.h: New icon.
16585
165862008-03-02 Kenichi Handa <handa@m17n.org>
16587
16588 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16589 `dos', don't decode '\r' if that is the last in the source.
16590 (decode_coding_utf_16, decode_coding_emacs_mule)
16591 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16592 (decode_coding_raw_text, decode_coding_charset): Likewise.
16593 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16594
165952008-03-01 Jason Rumney <jasonr@gnu.org>
16596
16597 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16598
165992008-03-01 Kim F. Storm <storm@cua.dk>
16600
16601 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16602
166032008-03-01 Jason Rumney <jasonr@gnu.org>
16604
16605 * w32font.c (w32font_full_name): New function.
16606 (w32font_open_internal): Use it.
16607
166082008-03-01 Kim F. Storm <storm@cua.dk>
16609
16610 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16611
166122008-03-01 Jason Rumney <jasonr@gnu.org>
16613
16614 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16615
166162008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16617
16618 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16619 xg_frame_resized when the event is for the edit widget.
16620
16621 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16622
16623 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16624 set_char_size.
16625 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16626 operations on widgets here. Just set frame size if needed.
16627 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16628 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16629 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16630 the whole frame.
16631 (xg_create_tool_bar): Move attachment of the tool bar to
16632 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16633 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16634
166352008-03-01 Jason Rumney <jasonr@gnu.org>
16636
16637 * w32fns.c (w32_msg_pump): Disable debug code.
16638
166392008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16640
16641 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16642
166432008-02-29 Chong Yidong <cyd@stupidchicken.com>
16644
16645 * xdisp.c (next_overlay_string): Don't set
16646 overlay_strings_at_end_processed_p if we're currently reading from
16647 a display string.
16648
166492008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16650
16651 * xdisp.c (get_overlay_strings_1): Fix typo.
16652
166532008-02-29 Chong Yidong <cyd@stupidchicken.com>
16654
16655 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16656
166572008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16658
16659 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16660
16661 * xdisp.c (display_mode_element): Cancel the previous change.
16662 (decode_mode_spec): Likewise.
16663 (handle_auto_composed_prop): Don't make composition if it->string
16664 is a string.
16665
166662008-02-27 Kim F. Storm <storm@cua.dk>
16667
16668 * lisp.h (GLYPH): Change type from int to struct with separate char
16669 and face_id members.
16670 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16671 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16672 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16673 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16674 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16675 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16676 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16677 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16678 handle new Lisp glyph code encoding, either an integer or a cons.
16679
16680 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16681 (GLYPH_ALIAS): Delete.
16682 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16683 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16684 (GLYPH_FROM_CHAR): Replace macro by ...
16685 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16686
16687 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16688 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16689 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16690 (GLYPH_INVALID_P): New macro.
16691 (spec_glyph_lookup_face): Update prototype.
16692
16693 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16694 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16695 new glyph code encoding.
16696 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16697 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16698
16699 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16700 Adapt to new glyph type and new glyph code encoding.
16701
16702 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16703
16704 * indent.c (current_column, current_column_1, Fmove_to_column)
16705 (compute_motion): Adapt to new glyph code encoding.
16706
16707 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16708
167092008-02-27 Chong Yidong <cyd@stupidchicken.com>
16710
16711 * process.c (wait_reading_process_output): Check for window
16712 changes caused by timers.
16713 Suggested by Johan Bockgård.
16714
167152008-02-27 Glenn Morris <rgm@gnu.org>
16716
16717 * emacs.c (USAGE1): Add `--disable-font-backend'.
16718
167192008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16720
16721 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16722 is made to the buffer.
16723
167242008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16725
16726 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16727 (face_at_string_position):
16728 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16729 (face_at_string_position):
16730 * xdisp.c (display_string, next_overlay_change):
16731 * buffer.h (overlays_at):
16732 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16733 Update callers.
16734
167352008-02-26 Chong Yidong <cyd@stupidchicken.com>
16736
16737 * editfns.c (Fformat): Doc fix.
16738
167392008-02-26 Juanma Barranquero <lekktu@gmail.com>
16740
16741 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16742 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16743 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16744
167452008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16746
16747 * buffer.c (Fbuffer_swap_text): New function.
16748 (syms_of_buffer): Defsubr it.
16749
167502008-02-25 Chong Yidong <cyd@stupidchicken.com>
16751
16752 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16753
167542008-02-25 Jason Rumney <jasonr@gnu.org>
16755
16756 * w32font.c (w32font_draw): Draw one character at a time when padding.
16757
167582008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16759
16760 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16761 Handle a nil arg. Use run_window_configuration_change_hook.
16762 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16763 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16764 Use run_window_configuration_change_hook.
16765
167662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16767
16768 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16769 1-pixel width.
16770
167712008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16772
16773 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16774 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16775 if the glyph in the font is zero pixel with.
16776
16777 * dispextern.h (struct glyph_string): New member padding_p.
16778
16779 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16780
16781 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16782
16783 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16784
16785 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16786
16787 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16788
167892008-02-25 Jason Rumney <jasonr@gnu.org>
16790
16791 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16792
167932008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16794
16795 Allow fine-grained image-cache flushing.
16796 * dispextern.h (struct image): Add `dependencies' field.
16797 (clear_image_caches): Change arg to Lisp_Object.
16798 * image.c (make_image): Initialize `dependencies' field.
16799 (clear_image_cache): Change arg to allow fine-grained flushing.
16800 Perform the flush even if image-cache-eviction-delay is nil.
16801 (clear_image_caches): Change arg to Lisp_Object.
16802 (Fclear_image_cache): Expand meaning of the argument.
16803 (mark_image): Mark `dependencies' field.
16804 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16805 (lface_hash): Use XHASH rather than XFASTINT.
16806 (face_at_buffer_position): Fix int -> EMACS_INT position.
16807 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16808 (select_frame_for_redisplay): Remove code duplication.
16809 (redisplay_internal): Adapt arg to call to clear_image_caches.
16810
168112008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16812
16813 * s/vms4-0.h:
16814 * s/vms4-2.h:
16815 * s/vms4-4.h:
16816 * s/vms5-5.h: Remove, unused.
16817
16818 * s/irix5-2.h:
16819 * s/irix6-0.h:
16820 * s/riscos5.h:
16821 * s/mach-bsd4-3.h:
16822 * m/mips4.h: Remove files for obsolete systems.
16823
16824 * Makefile.in:
16825 * filelock.c:
16826 * unexmips.c:
16827 * m/hp9000s300.h:
16828 * m/iris4d.h:
16829 * s/aix3-1.h:
16830 * s/hpux.h:
16831 * s/msdos.h:
16832 * s/usg5-0.h:
16833 * s/usg5-2-2.h:
16834 * s/usg5-2.h:
16835 * s/usg5-3.h: Remove references to obsolete variables.
16836
16837 * s/irix5-0.h: Remove, move all the contents ...
16838 * s/irix6-5.h: ... here. Simplify.
16839 * config.in: Regenerate.
16840
168412008-02-24 Jason Rumney <jasonr@gnu.org>
16842
16843 * w32term.c (x_draw_glyph_string_background): Clear the background
16844 manually when cleartype is in use.
16845 (x_draw_glyph_string_foreground): Draw text transparently when
16846 cleartype is in use.
16847
16848 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16849 a font into it unless we have to.
16850
168512008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16852
16853 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16854 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16855
aac0c6e3
MR
168562008-02-18 Jason Rumney <jasonr@gnu.org>
16857
16858 * w32fns.c (Fw32_shell_execute): Encode parameters.
16859
168602008-02-09 Eli Zaretskii <eliz@gnu.org>
16861
16862 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16863
168642008-02-05 Juanma Barranquero <lekktu@gmail.com>
16865
16866 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16867
168682008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16869
16870 * xterm.c (x_set_offset): Don't change the gravity if
16871 CHANGE_GRAVITY is -1.
16872
168732008-02-23 Chong Yidong <cyd@stupidchicken.com>
16874
16875 * fileio.c (auto_save_error_occurred): New var.
16876 (auto_save_error): Set it.
16877 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16878 error occurred.
16879
168802008-02-23 Eli Zaretskii <eliz@gnu.org>
16881
16882 * w32.c (globals_of_w32): Add initializations for
16883 g_b_init_get_sid_sub_authority and
16884 g_b_init_get_sid_sub_authority_count.
16885
168862008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16887
16888 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16889 (font_parse_xlfd): Use them for sanity check.
16890 (Finternal_set_font_style_table): Make sure the table is bijective.
16891
16892 Consolidate the image_cache to the terminal struct.
16893 * termhooks.h (P_): Remove redundant def.
16894 (struct terminal): New field `image_cache'.
16895 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16896 of FRAME_X_IMAGE_CACHE.
16897 * xterm.h (struct x_display_info): Remove image_cache field.
16898 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16899 * w32term.h (struct w32_display_info): Remove image_cache field.
16900 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16901 * macterm.h (struct mac_display_info): Remove image_cache field.
16902 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16903 * xterm.c (x_term_init):
16904 * w32term.c (w32_term_init):
16905 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16906 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16907 Remove declarations.
16908 (clear_image_caches, mark_image_cache): New declarations.
16909 * xfaces.c (clear_face_cache):
16910 * xdisp.c (redisplay_internal): Use clear_image_caches.
16911 * image.c (clear_image_cache): Don't check that a frame is on
16912 a window-system before checking if it shares the same cache.
16913 (clear_image_caches): New function.
16914 (Fclear_image_cache): Use it.
16915 (mark_image): Move from allo.c.
16916 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16917 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16918 (mark_object): Don't call mark_image_cache for frames.
16919 (mark_terminals): Call mark_image_cache.
16920
16921 * lisp.h (Fdelete_terminal): Declare.
16922
16923 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16924 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16925 wrong_type_argument.
16926
169272008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16928
16929 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16930 malayalam.el, and tamil.el. Add sinhala.el.
16931
169322008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16933
16934 * xterm.c (x_connection_closed): Consolidate identical tests.
16935 (x_delete_terminal): Don't crash if called via x_connection_closed.
16936
169372008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16938
16939 * xdisp.c (decode_mode_spec): New arg string.
16940 (display_mode_element): Adjust for the above change.
16941
169422008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16943
16944 * callint.c (Fcall_interactively): Use AREF.
16945
169462008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16947
16948 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16949
169502008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16951
16952 * xfns.c (Fx_show_tip): Set string to " " if empty.
16953
169542008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16955
16956 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16957 with Qt.
16958
169592008-02-17 Kenichi Handa <handa@m17n.org>
16960
16961 * ftfont.c (ftfont_shape): Return Lispy number.
16962
16963 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16964 for GCs.
16965 (Finternal_set_font_selection_order): Call font_update_sort_order
16966 only when enable_font_backend is set.
16967 (realize_x_face): Set face->font_info to that of default face only
16968 when enable_font_backend is set.
16969
16970 * xdisp.c (handle_composition_prop): Set it->c to the fist
16971 character of the composed region.
16972 (fill_composite_glyph_string): Set base_face->font_info to
16973 s->font_info. Get a face for ascii from base_face->ascii_face.
16974 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16975 with a face already decided.
16976 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16977 non-negative.
16978 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16979 call font_prepare_composition unconditionally.
16980
16981 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16982
16983 * xterm.h (struct x_display_info): New member font.
16984
16985 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16986 (x_set_mouse_face_gc, x_new_font): Likewise.
16987 (x_term_init): Setup display_info->font.
16988 (x_delete_terminal): Free display_info->font.
16989
16990 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16991
16992 * ftxfont.c (ftxfont_default_fid): Delete it.
16993 (ftxfont_open): Set xfont->fid to 0.
16994 (ftxfont_end_for_frame): Clear data specific to the frame and the
16995 font-driver.
16996
16997 * xftfont.c (xftfont_default_fid): Delete it.
16998 (xftfont_open): Set xfont->fid to 0.
16999
17000 * fontset.c (FONTSET_OBJLIST): New macro.
17001 (fontset_find_font): Update font-object list of the fontset.
17002 (free_realized_fontset): New function.
17003 (free_face_fontset): Call free_realized_fontset.
17004 (Ffont_info): Call font_close_object only when enable_font_backend
17005 is set.
17006
17007 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17008 [HAVE_NTGUI]: Include w32term.h.
17009 [MAC_OS]: Include macterm.ch.
17010 (font_otf_ValueRecord): Use make_number.
17011 (font_finish_cache): Fix handling of reference count.
17012 (font_clear_cache): Update num_fonts.
17013 (font_open_entity): Update smallest_char_width and
17014 smallest_font_height of the frame.
17015 (font_close_object): Update num_fonts.
17016 (Fclear_font_cache): Fix finding the target cache data.
17017
170182008-02-16 Glenn Morris <rgm@gnu.org>
17019
17020 * fontset.c (Finternal_char_font): Fix compilation warning.
17021
170222008-02-16 Eli Zaretskii <eliz@gnu.org>
17023
17024 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17025 instead of char arrays. Enlarge the size of array passed to
17026 get_token_information.
17027
17028 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17029 warnings.
17030
170312008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17032
17033 * .gdbinit: Don't set `args', it breaks gdb --args.
17034
170352008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17036
17037 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17038 within a narrowed buffer.
17039
170402008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17041
17042 * coding.c (decode_coding_object, encode_coding_object):
17043 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17044
170452008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17046
17047 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17048 hardcoding 1.
17049 (detect_coding_system):
17050 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17051 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17052 * insdel.c (insert_from_gap):
17053 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17054 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17055 (string_to_multibyte):
17056 * character.c (chars_in_text, multibyte_chars_in_text):
17057 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17058
17059 * character.h (FETCH_STRING_CHAR_ADVANCE)
17060 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17061 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17062 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17063
17064 * casefiddle.c (casify_region): Only call after-change and composition
17065 functions on the part of the region that was changed.
17066
17067 * keyboard.c (read_avail_input):
17068 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17069
170702008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17071
17072 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17073 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17074
170752008-02-11 Juanma Barranquero <lekktu@gmail.com>
17076
17077 * w32menu.c (push_submenu_start, push_submenu_end)
17078 (push_left_right_boundary, push_menu_pane, push_menu_item):
17079 * keyboard.c (read_key_sequence): Don't pass args with side effects
17080 to AREF, it fails when compiling with -DENABLE_CHECKING.
17081
170822008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17083
17084 * Makefile.in (${lispsource}international/charprop.el):
17085 Delete this target.
17086
17087 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17088 emacs-unicode-2.
17089
170902008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17091
17092 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17093
170942008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17095
17096 * frame.c (Qnoelisp): New symbol.
17097 (syms_of_frame): Initialize it.
17098 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17099 harmless Elisp code, from a strong `force' from x_connection_closed.
17100 * frame.h (Qnoelisp): Declare.
17101 * xterm.c (x_connection_closed): Pass `noelisp'.
17102
17103 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17104 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17105 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17106 rather than `int' for the type of `type'.
17107
171082008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17109
17110 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17111
17112 * Makefile.in (GNUC): Remove support for gcc-1.x.
17113
171142008-02-10 Richard Stallman <rms@gnu.org>
17115
17116 * lisp.h (ASET): Use AREF, not ASLOT.
17117
171182008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17119
17120 * lisp.h (ASET): Check bounds.
17121
171222008-02-10 Glenn Morris <rgm@gnu.org>
17123
17124 * buffer.c (mode-name): Doc fix.
17125
171262008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17127
17128 * Makefile.in:
17129 * emacs.c:
17130 * gmalloc.c:
17131 * keyboard.c:
17132 * lisp.h:
17133 * m/ibm370aix.h:
17134 * process.c:
17135 * regex.c:
17136 * s/hpux.h:
17137 * sysdep.c:
17138 * sysselect.h:
17139 * systty.h:
17140 * unexec.c:
17141 * w32term.c:
17142 * xsmfns.c:
17143 * xterm.c: Remove code that deals with obsolete variables.
17144
17145 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17146
17147 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17148 nothing else needs it anymore.
17149
171502008-02-09 Eli Zaretskii <eliz@gnu.org>
17151
17152 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17153 instead of unibyte_char_to_multibyte.
17154
171552008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17156
17157 * s/gnu-linux.h: Remove commented out code.
17158
17159 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17160
17161 * Makefile.in: Update what RMS says about using autoconf.
17162 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17163 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17164 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17165 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17166
171672008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17168
17169 * keymap.c (Fkey_description): Move side effect outside of macro call.
17170
17171 * xfaces.c (Finternal_make_lisp_face):
17172 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17173
17174 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17175 (syms_of_fontset): Use ASET.
17176
17177 * fns.c (concat): Move side effect outside of macro call.
17178 (hash_clear): Use ASET.
17179
171802008-02-08 Richard Stallman <rms@gnu.org>
17181
17182 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17183 If FORCE, and frame has a surrogate minibuffer for another frame,
17184 delete the other frame first.
17185
171862008-02-07 Timo Savola <timo.savola@iki.fi>
17187
17188 * xterm.c (x_detect_focus_change): Handle embed client message.
17189 (handle_one_xevent): Ditto.
17190 (handle_one_xevent): If embedded and we get a button press/release,
17191 request focus.
17192 (xembed_set_info, xembed_send_message): New functions.
17193 (x_make_frame_visible): Call xembed_set_info if embedded.
17194 (x_make_frame_invisible): Call xembed_set_info if embedded.
17195 (x_term_init): Initialize Xatom_XEMBED.
17196 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17197 (x_iconify_frame): Ditto.
17198
17199 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17200 (enum xembed_info, enum xembed_message, enum xembed_focus)
17201 (enum xembed_modifier, enum xembed_accelerator): New.
17202 (xembed_set_info, xembed_send_message): Declare.
17203 (FRAME_X_EMBEDDED_P): New.
17204
17205 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17206 gtk_plug_new.
17207
17208 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17209 window ID of a frame.
17210 (x_window): Reparent frame if embedded.
17211 (Fx_create_frame): Don't set border width if embedded.
17212
17213 * emacs.c (USAGE3): Add --parent-id.
17214 (standard_args): Ditto.
17215
172162008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17217
17218 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17219
172202008-02-07 Jim Meyering <meyering@redhat.com>
17221
17222 Use "do...while (0)", not "if (1)...else" in macro definitions.
17223 The latter provokes a warning from gcc about the empty else, when
17224 followed by ";". Also, without that trailing semicolon, it would
17225 silently swallow up any following statement.
17226 * syntax.h (SETUP_SYNTAX_TABLE)
17227 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17228 * buffer.h (DECODE_POSITION): Likewise.
17229 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17230 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17231 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17232 (FETCH_CHAR_ADVANCE): Likewise.
17233 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17234
172352008-02-07 Jim Meyering <meyering@redhat.com>
17236
17237 * lread.c [lint]: Don't include <sys/inode.h>.
17238
172392008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17240
17241 * xselect.c (x_handle_dnd_message):
17242 * xmenu.c (digest_single_submenu, xmenu_show):
17243 * xdisp.c (with_echo_area_buffer_unwind_data)
17244 (format_mode_line_unwind_data, unwind_format_mode_line)
17245 (display_menu_bar):
17246 * eval.c (Ffetch_bytecode):
17247 * doc.c (store_function_docstring):
17248 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17249 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17250 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17251
172522008-02-07 Kenichi Handa <handa@m17n.org>
17253
17254 * ftxfont.c (ftxfont_open): Don't set
17255 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17256
17257 * ftfont.c (ftfont_open): Fix previous change.
17258
172592008-02-06 Jason Rumney <jasonr@gnu.org>
17260
17261 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17262 Use cached metrics for ASCII characters.
17263 (w32font_open_internal): Don't set font's owning_frame.
17264 Cache metrics for ASCII characters.
17265
17266 * w32font.h (struct w32font_info): Add ascii_metrics.
17267 Remove owning_frame.
17268
172692008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17270
17271 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17272 to negative value.
17273
17274 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17275
17276 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17277
17278 * charset.c (syms_of_charset): Set QCtest and Qeq.
17279
172802008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17281
17282 * process.c (Fstart_process):
17283 * callproc.c (Fcall_process): Handle the case where
17284 Funhandled_file_name_directory returns nil.
17285
17286 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17287 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17288 * font.c (check_gstring): Use them and AREF to access the vector before
17289 we know it's really a gstring.
17290 (Ffont_shape_text): Fix typo.
46e722a9 17291 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17292
17293 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17294 Declare.
17295
17296 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17297
172982008-02-05 Jason Rumney <jasonr@gnu.org>
17299
17300 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17301 Set smallest_font_height and smallest_char_width in display info.
17302
173032008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17304
17305 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17306
173072008-02-05 Miles Bader <miles@gnu.org>
17308
17309 * xfaces.c (get_lface_attributes, merge_named_face)
17310 (lookup_named_face, lookup_derived_face, realize_named_face):
17311 Revert 2008-02-01 change by cyd@stupidchicken.com.
17312
173132008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17314
17315 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17316 fallback fonts.
17317 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17318
173192008-02-04 Jason Rumney <jasonr@gnu.org>
17320
17321 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17322 set full_name.
17323 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17324
173252008-02-03 Jason Rumney <jasonr@gnu.org>
17326
17327 * makefile.w32-in (OBJ1): Include font.o here.
17328 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17329
173302008-02-02 Jason Rumney <jasonr@gnu.org>
17331
17332 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17333
173342008-02-01 Jason Rumney <jasonr@gnu.org>
17335
17336 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17337
17338 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17339
173402008-02-01 Andreas Schwab <schwab@suse.de>
17341
17342 * Makefile.in (shortlisp, lisp): Update for rename of
17343 ../lisp/language/myanmar.el.
17344
173452008-02-01 Chong Yidong <cyd@stupidchicken.com>
17346
17347 * xfaces.c (get_lface_attributes): Delete function.
17348 (merge_named_face, lookup_named_face, lookup_derived_face)
17349 (realize_named_face): Call lface_from_face_name directly, and use
17350 the fact that merge_face_vectors does not alter its FROM argument.
17351
173522008-02-01 Jason Rumney <jasonr@gnu.org>
17353
17354 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17355 input in the default locale. Handle non-Unicode multibyte input.
17356
173572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17358
17359 * fontset.c (reorder_font_vector): Exclude nil elements from the
17360 font group. Don't try multiple fonts.
17361 (fontset_font): Adjust for the above change.
17362 (Finternal_char_font): Return nil if the found font doesn't
17363 contain the character ch.
17364
17365 * Makefile.in (lisp, shortlisp): Add cham.el.
17366
173672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17368
17369 * font.h (FONTP): Make it return 1 also for a font-object.
17370
17371 * .gdbinit (xfontset): New function.
17372
17373 * font.c (font_find_for_lface): Check if the character C is
17374 supported or not only for the first font.
17375
17376 * fontset.c (reorder_font_vector): Fix typo.
17377 (fontset_find_font): Don't add a font-spec specifying a script.
17378 Use 0 (not Qt) for the indication of empty font-group. Change the
17379 format of RFONT-DEF. Return Qt if no font in the font-group
17380 support the character.
17381 (fontset_font): Adjust for the above change. If no font was
17382 found the character, remember that.
17383 (face_for_char): Adjust for the change of RFONT-DEF.
17384 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17385 no font for the target.
17386 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17387
173882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17389
17390 * font.c (font_load_for_face): Handle the case that the font in
17391 face->lface is a string.
17392
173932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17394
17395 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17396
173972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17398
17399 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17400 Fix previous change. If the frame is not on a window system,
17401 signal an error.
17402
174032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17404
17405 * coding.c (decode_coding_object, encode_coding_object): Adjust
17406 marker positions after conversion.
17407
17408 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17409
174102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17411
17412 * font.c (font_find_for_lface): Fix the handling of the return
17413 value of font_has_char.
17414 (Ffont_shape_text): Fix previous change.
17415
17416 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17417 (fontset_ref_and_range): Delete it.
17418 (fontset_find_font): Call char_table_ref_and_range instead of
17419 FONTSET_REF_AND_RANGE.
17420 (make_fontset): Don't setup font groups of Latin here.
17421 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17422 (new_fontset_from_font): Make the specified font the default for
17423 all Latin characters.
17424
174252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17426
17427 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17428 is on a window system before accessing the fontset of the frame.
17429
174302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17431
17432 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17433
17434 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17435 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17436
17437 * font.c (Ffont_shape_text): If the font driver doesn't have a
17438 shaper function, make zero-width glyphs to have at least one-pixel
17439 width. Fix setting of `to' field of glyphs.
17440
174412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17442
17443 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17444 glyphs.
17445
17446 * font.h (struct font_driver): Improve docstring of member `shape'.
17447
174482008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * composite.c (syms_of_composite): Fix docstring of
17451 auto-composition-function.
17452
17453 * font.h (LGLYPH_SIZE): New macro.
17454
17455 * font.c (Ffont_fill_gstring): Stop filling when a character not
17456 supported by the font is found.
17457 (Ffont_shape_text): When a shape callback function returns nil,
17458 try at most two more times with larger gstring.
17459 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17460
17461 * xdisp.c (handle_auto_composed_prop): Change the argument to
17462 auto-composition-function.
17463
17464 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17465 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17466 Lispy glyph and store it in the lgstring.
17467
17468 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17469
17470 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17471
174722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17473
17474 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17475
17476 * fontset.c (Vfont_encoding_charset_alist): New variable.
17477 (syms_of_fontset): DEFVAR it.
17478 (reorder_font_vector, fontset_find_font): Optimize for the case of
17479 no need of reordering.
17480 (face_for_char): Map the charset property by
17481 Vfont_encoding_charset_alist.
17482
174832008-02-01 Jason Rumney <jasonr@gnu.org>
17484
17485 * w32font.c (logfonts_match): Don't check adstyle here.
17486 (font_matches_spec): Check here against physical font instead.
17487 (add_font_entity_to_list): Avoid some substitutions.
17488
17489 * font.c (font_parse_fcname): Default weight and slant to normal.
17490 (font_score): Prefer normal fonts if weight or slant unspecified.
17491 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17492 match freetype scores.
17493
174942008-02-01 Jason Rumney <jasonr@gnu.org>
17495
17496 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17497 font, as it may have been deleted.
17498 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17499 most common hyphenless variation.
17500 (logfonts_match): Check generic family.
17501 (font_matches_spec): Don't check generic family here.
17502 (fill_in_logfont): Set generic family based on adstyle.
17503
17504 * w32font.h (w32font_get_cache): Update declaration.
17505
175062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17507
17508 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17509
17510 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17511 If none of the new drivers are available, call font_update_drivers
17512 with the old drivers.
17513
17514 * w32font.c (w32font_get_cache): Adjust the argument type.
17515
17516 * xfont.c (xfont_get_cache): Adjust the argument type.
17517
17518 * font.h (struct font_driver): Change argument type of get_cache.
17519
17520 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17521
17522 * font.c (Ffont_get): Fix arguments to Fassoc.
17523 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17524 (font_clear_cache): New function.
17525 (font_list_entities, font_matching_entity): Use font_get_cache.
17526 (font_update_drivers): Call font_clear_cache when finishing a driver.
17527
17528 * fontset.c (fontset_find_font): Fix previous change.
17529
175302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17531
17532 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17533 dpyinfo->font_table.
17534 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17535 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17536
17537 * font.c (font_at): Handle the case that the arg C is negative.
17538 Handle the unibyte case.
17539 (Ffont_at): Call font_at with the arg C -1.
17540
17541 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17542 the position here, and call font_at with the arg C -1.
17543 Don't check the range of the existing composition at the point.
17544
175452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17546
17547 * fontset.c (fontset_add): New args charset_id and family.
17548 Change caller.
17549 (load_font_get_repertory, fontset_find_font): Assume that
17550 font_spec is always a font-spec object.
17551 (Fset_fontset_font): Always store a font-spec object in a fontset.
17552
17553 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17554 instead of get_property_and_range.
17555
175562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17557
17558 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17559 (xftfont_open): Don't keep locking face.
17560 (xftfont_close): Don't unlock face.
17561 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17562
17563 * fontset.c (fontset_find_font): Don't prefer a font of
17564 supplementary charset.
17565
175662008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17569 script, langsys_tag to langsys, new member script.
17570 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17571 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17572 listing to the script specified in that property. Fix arg to
17573 OTF_check_features.
17574
175752008-02-01 Jason Rumney <jasonr@gnu.org>
17576
17577 * w32font.h: New file.
17578
17579 * w32font.c: Include it.
17580 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17581 (w32font_open): Set owning_frame.
17582 (w32font_text_extents): Use owning_frame.
17583 (struct font_callback_data): Add opentype_only field.
17584 (add_font_entity_to_list): Use it to filter fonts.
17585 Don't check against full name.
17586 (w32font_list_internal): New function.
17587 (w32font_list): Use it.
17588 (w32font_match_internal): New function.
17589 (w32font_match): Use it.
17590 (w32font_open_internal): New function.
17591 (w32font_open): Use it.
17592 (w32font_get_cache, w32font_close, w32font_has_char)
17593 (w32font_encode_char, w32font_text_extents, w32font_draw):
17594 Make non-static.
17595
17596 * makefile.w32-in (w32font.o): Depend on w32font.h.
17597
175982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17599
17600 * charset.c (Fdefine_charset_internal): Record a supplementary
17601 charset at the tail of Vcharset_order_list.
17602
17603 * font.c (Ffont_shape_text): Fix the return value.
17604
17605 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17606
17607 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17608
176092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17610
17611 * ftfont.c (struct OpenTypeSpec): New struct.
17612 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17613 (ftfont_get_open_type_spec): New function.
17614 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17615
17616 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17617
176182008-02-01 Jason Rumney <jasonr@gnu.org>
17619
17620 * w32font.c (add_font_entity_to_list): Compare only the beginning
17621 of full name.
17622
176232008-02-01 Kenichi Handa <handa@m17n.org>
17624
17625 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17626 Never return HANDLED_RECOMPUTE_PROPS.
17627
176282008-02-01 Kenichi Handa <handa@m17n.org>
17629
17630 * font.c (font_gstring_produce): Delete it.
17631
17632 * composite.h (COMPOSITION_METHOD):
17633 Handle COMPOSITION_WITH_GLYPH_STRING.
17634
176352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17636
17637 * xfont.c (Qx): Delete.
17638 (syms_of_xfont): Don't initialize Qx.
17639
17640 * composite.h (enum composition_method):
17641 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17642
176432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17644
17645 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17646 (choose_face_font): Accept new form of font-spec.
17647
17648 * frame.h (font_driver_list): Declare it unconditionally.
17649 (struct frame): Define members font_driver_list and font_data_list
17650 unconditionally.
17651
17652 * fontset.c: Include "font.h" unconditionally.
17653 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17654 (Fset_fontset_font): Accept a font-spec object.
17655
17656 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17657 PIXEL_SIZE part a wild card.
17658
17659 * dispextern.h (struct glyph_string): Define members clip and
17660 num_clips unconditionally.
17661 (struct face): Define members font_info and extra unconditionally.
17662
17663 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17664 ftfont_info only when HAVE_LIBOTF is defined.
17665
176662008-02-01 Andreas Schwab <schwab@suse.de>
17667
17668 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17669 and end.
17670
176712008-02-01 Jason Rumney <jasonr@gnu.org>
17672
17673 * w32font.c (w32font_driver): Add new fields.
17674
176752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17676
17677 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17678 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17679 (LIBES): Add @M17N_FLT_CFLAGS@.
17680
17681 * composite.c (compose_text): Don't treat the new style
17682 composition specially.
17683
17684 * emacs.c (main): Call syms_of_font unconditionally.
17685
17686 * font.h (FONT_ENTITY_NOT_LOADABLE)
17687 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17688 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17689 (struct font_driver): New member shape.
17690 (font_registry_charsets): Extern it.
17691 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17692 (font_otf_capability, font_drive_otf): Delete their externs.
17693
17694 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17695 (font_charset_alist, font_registry_charsets): Move from xfont.c
17696 and rename.
17697 (font_prop_validate_otf): New function.
17698 (font_property_table): Register it for QCotf.
17699 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17700 (font_drive_otf): Delete.
17701 (font_prepare_composition): New arg F. Adjust for the change of
17702 lispy gstring.
17703 (font_find_for_lface): New arg C.
17704 (font_load_for_face): Adjust for the change of font_find_for_lface.
17705 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17706 lispy gstring.
17707 (Ffont_shape_text): New function.
17708 (Fopen_font): If the font size is not given, use 12-pixel.
17709 (Ffont_at): New arg STRING.
17710 (syms_of_font): Initalize font_charset_alist.
17711 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17712 conditionally.
17713
17714 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17715 fonts of the same font-spec. Change the format of RFONT-DEF.
17716 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17717 Adjust for the change of RFONT-DEF.
17718 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17719
17720 * ftfont.h: New file.
17721
17722 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17723 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17724 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17725 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17726 font_otf_capability and font_drive_otf, set ftfont_shape.
17727 (ftfont_list): Adjust for the change of :otf property value.
17728 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17729 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17730 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17731 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17732 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17733 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17734
17735 * w32term.c (x_draw_composite_glyph_string_foreground):
17736 Adjust for the change of lispy gstring.
17737
17738 * xdisp.c (handle_composition_prop): Adjust for the change of
17739 lispy gstring. Call a function for auto-composition with the
17740 third arg it->window.
17741 (fill_composite_glyph_string): Adjust for the change of lispy string.
17742 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17743
17744 * xfaces.c (set_font_frame_param): Adjust for the change of
17745 font_find_for_lface.
17746
17747 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17748 (xfont_registry_charsets): Likewise. Change caller.
17749 (syms_of_xfont): Don't handle x_font_charset_alist.
17750
17751 * xftfont.c: Include "ftfont.h".
17752 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17753 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17754 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17755 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17756 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17757 Set xftfont_driver.shape to xftfont_shape.
17758
17759 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17760 the change of lispy gstring.
17761
177622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17763
17764 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17765
177662008-02-01 Jason Rumney <jasonr@gnu.org>
17767
17768 * w32font.c (w32font_draw): Fill background manually.
17769
177702008-02-01 Jason Rumney <jasonr@gnu.org>
17771
17772 * font.c (Qfontp): Remove unused symbol.
17773 (QCantialias): New symbol.
17774 (syms_of_font): Define it.
17775 (font_property_table): Set a validator for QCantialias.
17776
17777 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17778 Define if not already.
17779 (QCfamily): Share with xfaces.c.
17780 (Qstandard, Qsubpixel, Qnatural): New symbols.
17781 (syms_of_w32font): Define them. Don't define QCfamily here.
17782 (w32_antialias_type, lispy_antialias_type): New functions.
17783 (w32_enumfont_pattern_entity): New arg requested_font.
17784 Set antialias parameter if non-default was requested.
17785 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17786
177872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17788
17789 * lread.c (read1): Undo the previous change.
17790
177912008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17792
17793 * frame.c (Fdelete_frame): Call font_update_drivers only when
17794 USE_FONT_BACKEND is defined.
17795
177962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17797
17798 * font.h (struct font_bitmap): New member bits_per_pixel.
17799 (struct font_driver): New members start_for_frame and end_for_frame.
17800 (struct font_data_list): New struct.
17801 (font_put_frame_data, font_get_frame_data): Extern them.
17802
17803 * frame.h (struct frame): New member font_data_list.
17804
17805 * font.c (font_update_drivers): Call driver->start_for_frame and
17806 driver->end_for_frame at proper timings.
17807 (font_put_frame_data, font_get_frame_data): New functions.
17808 (Ffont_spec): Add usage in the docstring.
17809
17810 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17811 (Fdelete_frame): Call font_update_drivers.
17812
17813 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17814 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17815 (xftfont_get_xft_draw): New function.
17816 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17817 (xftfont_end_for_frame): New function.
17818 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17819
17820 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17821 Change argument. Cache GCs in the per-frame data.
17822 (struct ftxfont_frame_data): New struct.
17823 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17824 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17825 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17826 (ftxfont_end_for_frame): New function.
17827 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17828
17829 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * xselect.c (Vselection_coding_system)
17834 (Vnext_selection_coding_system): Delete them.
17835 (syms_of_xselect): Don't declare selection-coding-system and
17836 next-selection-coding-system. They are declared in select.el.
17837
178382008-02-01 Jason Rumney <jasonr@gnu.org>
17839
17840 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17841
17842 * w32fns.c: Include imm.h.
17843 (get_composition_string_fn, get_ime_context_fn): New optional
17844 system functions.
17845 (globals_of_w32fns): Load them from imm32.dll.
17846 (ignore_ime_char): New flag.
17847 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17848 WM_IME_ENDCOMPOSITION messages.
17849
17850 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17851 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17852
178532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17854
17855 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17856 (READCHAR_REPORT_MULTIBYTE): New macro.
17857 (readchar): New 2nd arg MULTIBYTE.
17858 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17859 Make symbol's name multibyte according to the multibyteness of the
17860 source.
17861
178622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17863
17864 * xfaces.c (face_for_overlay_string): Call lookup_face with
17865 correct arguments (fix of synching with the trunk).
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17870 (font_prop_validate_non_neg, font_prop_validate_spacing):
17871 Delete argument prop_index.
17872 (font_property_table): Change arguments to validater. Change Callers.
17873 (font_lispy_object): Delete.
17874 (font_at): Use font_find_object instead fo font_lispy_object.
17875
178762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17877
17878 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17879 and file names.
17880
178812008-02-01 Jason Rumney <jasonr@gnu.org>
17882
17883 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17884 (font_matches_spec): Remove debug output.
17885 (add_font_entity_to_list): Avoid using substituted fonts.
17886
178872008-02-01 Jason Rumney <jasonr@gnu.org>
17888
17889 * doc.c (Fsnarf_documentation):
17890 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17891
178922008-02-01 Miles Bader <miles@gnu.org>
17893
17894 * dispextern.h (struct glyph_row): Only define "clip" field if
17895 HAVE_WINDOW_SYSTEM is defined.
17896
178972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17898
17899 Fix up multi-tty merge.
17900
17901 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17902 and indentation.
17903
17904 * xfaces.c (free_realized_face, clear_face_gcs):
17905 Include font_done_for_face in the input_blocked section, just in case.
17906
17907 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17908 (get_char_face_and_encoding): Undo last change and remove the *other*
17909 duplicate definition (i.e. keep the one that's better scoped and that
17910 includes code for the font-backend).
17911
17912 * terminal.c (create_terminal): Default keyboard_coding to
17913 `no-conversion' and terminal_coding to `undecided'.
17914
17915 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17916
17917 * fontset.c (free_realized_fontsets): Check that the table entry does
17918 contain a fontset before trying to compare it to `base'.
17919
17920 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17921 syms_of_charset, and syms_of_coding earlier because init_window_once
17922 now needs Vcoding_system_hash_table to be setup.
17923
17924 * coding.h (default_buffer_file_coding): Remove.
17925
17926 * coding.c (default_buffer_file_coding): Remove.
17927 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17928 than ->symbol, and use the terminal-local coding system.
17929 (syms_of_coding): Don't setup the coding-systems that are not
17930 terminal-local.
17931 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17932
17933 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17934 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17935
17936 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17937 in chartab.c and were re-added here by mistake.
17938 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17939
17940 * doc.c (Fsnarf_documentation):
17941 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17942 src to etc.
17943
17944 * ChangeLog.10: Add mistakenly removed entry.
17945
179462008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17947
17948 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17949
179502008-02-01 Miles Bader <miles@gnu.org>
17951
17952 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17953 Add extra args to FACE_FOR_CHAR.
17954
179552008-02-01 Kenichi Handa <handa@m17n.org>
17956
17957 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17958 in sequence.
17959
17960 * chartab.c (map_sub_char_table, map_char_table): If the range
17961 contains just one character, call the function with that character
17962 even if the depth is not 3.
17963
179642008-02-01 Jason Rumney <jasonr@gnu.org>
17965
17966 * w32font.c (w32font_text_extents): Calculate metrics for the
17967 whole string.
17968
179692008-02-01 Jason Rumney <jasonr@gnu.org>
17970
17971 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17972
179732008-02-01 Jason Rumney <jasonr@gnu.org>
17974
17975 * w32term.c (x_set_glyph_string_clipping): Use
17976 get_glyph_string_clip_rects.
17977 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17978 Adjust for the change of struct glyph_string.
17979
17980 * w32font.c (w32font_draw): Do clipping here.
17981
179822008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * xftfont.c (xftfont_draw): Adjust for the change of struct
17985 glyph_string.
17986
17987 * xterm.c (x_set_glyph_string_clipping): Use
17988 get_glyph_string_clip_rects.
17989 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17990 Adjust for the change of struct glyph_string.
17991
17992 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17993 the resulting clip(s}.
17994 (expose_overlaps): Add arg r. Change callers. Set it to
17995 row->clip temporarily.
17996 (expose_window): Redraw rows overlapping the exposed area.
17997
17998 * dispextern.h (struct glyph_row): New member clip.
17999 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18000 clip_height, new member clip, and num_clips.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * data.c (Fchar_or_string_p): Fix docstring.
18005
180062008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18009 create a temporary XftDraw object.
18010
180112008-02-01 Kenichi Handa <handa@m17n.org>
18012
18013 * font.c (Ffontp): Fix docstring.
18014
18015 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18016 strong evidence of ISO-2022.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18021 SYNTAX_ENTRY_FOLLOW_PARENT.
18022
180232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18024
18025 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18026 its type.
18027 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18028 Update to the new type of weak_hash_tables and next_weak.
18029
18030 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18031 a plain C pointer to Lisp_Hash_Table.
18032
18033 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18034 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18035 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18036 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18037 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18038 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18039 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18040 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18041 (GC_EQ): Remove since they've been identical to their non-GC_
18042 alter-egos ever since the markbit was eradicated.
18043
18044 * alloc.c:
18045 * buffer.c:
18046 * buffer.h:
18047 * data.c:
18048 * fileio.c:
18049 * filelock.c:
18050 * fns.c:
18051 * frame.h:
18052 * lisp.h:
18053 * macterm.c:
18054 * print.c:
18055 * process.c:
18056 * w32fns.c:
18057 * w32menu.c:
18058 * w32term.c:
18059 * xfns.c:
18060 * xmenu.c:
18061 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18062
180632008-02-01 Kenichi Handa <handa@m17n.org>
18064
18065 * chartab.c (map_sub_char_table): Make it work for the top-level
18066 char-table. Fix handling of parent char-table.
18067 (map_char_table): Adjust for the above change.
18068
180692008-02-01 Jason Rumney <jasonr@gnu.org>
18070
18071 * w32font.c (Qgdi): Rename from Qw32.
18072
180732008-02-01 Jason Rumney <jasonr@gnu.org>
18074
18075 * w32bdf.c (get_quoted_string): Make function static.
18076
180772008-02-01 Kenichi Handa <handa@m17n.org>
18078
18079 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18080 bigger ascent and descent than those of the font, use them as
18081 font's ascent and descent.
18082
180832008-02-01 Kenichi Handa <handa@m17n.org>
18084
18085 * Makefile.in (${lispsource}international/charprop.el): Move this
18086 target within "#ifdef HAVE_UNIDATA" and "#endif".
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18091 (shortlisp): Add ../lisp/language/tai-viet.el.
18092
180932008-02-01 Ulrich Mueller <ulm@gentoo.org>
18094
18095 * Makefile.in (${lispsource}international/charprop.el): Depend on
18096 temacs${EXEEXT}.
18097
180982008-02-01 Jason Rumney <jasonr@gnu.org>
18099
18100 * w32font.c (w32font_close): Delete the GDI font object.
18101
18102 * w32menu.c: Include character.h.
18103
18104 * w32proc.c: Likewise.
18105
18106 * w32select.c: Likewise.
18107
18108 * makefile.w32-in (w32proc.o): Depend on character.h.
18109
181102008-02-01 Jason Rumney <jasonr@gnu.org>
18111
18112 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18113
18114 * w32menu.c (syms_of_w32menu): Likewise.
18115
18116 * w32proc.c (syms_of_ntproc): Likewise.
18117
18118 * w32select.c (syms_of_w32select): Likewise.
18119
18120 * w32term.c (syms_of_w32term): Likewise.
18121
181222008-02-01 Jason Rumney <jasonr@gnu.org>
18123
18124 * w32font.c (w32font_draw): Delete brush after using it.
18125
181262008-02-01 Jason Rumney <jasonr@gnu.org>
18127
18128 * w32font.c (w32font_open): Don't set font_idx.
18129 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18130 to font settings.
18131 (w32font_draw): Fill background explicitly.
18132
181332008-02-01 Jason Rumney <jasonr@gnu.org>
18134
18135 * w32term.c (w32_initialize): Don't call w32font_initialize.
18136
18137 * w32font.c (w32font_info): Remove subranges.
18138 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18139 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18140 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18141 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18142 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18143 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18144 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18145 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18146 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18147 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18148 New symbols.
18149 (font_callback_data): New struct.
18150 (w32font_list, w32font_match): Use it.
18151 (w32font_open): Don't populate subranges.
18152 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18153 (w32font_encode_char): Always return unicode code-point as-is.
18154 (w32font_text_extents): Supply a transformation matrix to
18155 GetGlyphOutline. Never look up by glyph index. Avoid looping
18156 twice. Use unicode version of GetTexExtentPoint32 instead of
18157 glyph index version.
18158 (set_fonts_frame): Remove.
18159 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18160 set frame parameter. Use backward compatible fake foundries.
18161 Save generic family in extra slot under QCfamily. Make width slot
18162 constant. Save QCspacing value. Save list of scripts instead of
18163 binary subranges.
18164 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18165 (add_font_entity_to_list): Use font_callback_data struct. Filter
18166 unwanted fonts.
18167 (add_one_font_entity_to_list): Use font_callback_data struct.
18168 (w32_registry): Default to iso10646_1.
18169 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18170 string font registries. Don't fill in font name if it is a generic
18171 family name, fill family instead. Use spacing, family and script
18172 extra info to fill pitch, family and charset fields.
18173 (list_all_matching_fonts): Use font_callback_data struct.
18174 (unicode_range_for_char): Remove.
18175 (font_supported_scripts): New function.
18176 (w32font_initialize): Remove.
18177 (syms_of_w32font): Update which symbols are defined.
18178
181792008-02-01 Jason Rumney <jasonr@gnu.org>
18180
18181 * font.c (font_pixel_size): Reverse assq_no_quit args.
18182
18183 * w32term.h (FONT_WIDTH): Report max width, not average.
18184 (FONT_MAX_WIDTH): Remove.
18185 (FONT_AVG_WIDTH): New macro.
18186
18187 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18188 redefinition of FONT_WIDTH.
18189
18190 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18191 (w32_cache_char_metrics): Use FONT_WIDTH.
18192
18193 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18194
181952008-02-01 Jason Rumney <jasonr@gnu.org>
18196
18197 * w32font.c (w32font_open): Make lfHeight negative.
18198
18199 * w32fns.c (x_default_font_parameter): Use new style font name.
18200 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18201
182022008-02-01 Jason Rumney <jasonr@gnu.org>
18203
18204 * w32font.c (QCsubranges): New symbol.
18205 (w32font_open, w32font_has_char): Get subranges from subproperty
18206 of extra.
18207 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18208 (syms_of_w32font): Define :subranges symbol.
18209
18210 * font.c (font_put_extra): Expose externally.
18211
18212 * font.h (font_put_extra): Move declaration from font.c.
18213
18214 * font.c (Ffont_get): Use font driver to determine otf capability.
18215 (adjust_anchor): Check if driver defines anchor_point before using.
18216
18217 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18218 (w32font_draw): Use options.
18219 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18220 Fix detection of truetype fonts.
18221 (registry_to_w32_charset): Handle charsets other than iso8859-1
18222 expressed as lisp symbols.
18223 (w32_registry): Express charset as lisp symbol.
18224 (fill_in_logfont): Reverse pixel and point height logic.
18225 Don't set width here. Set quality to default.
18226
18227 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18228 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18229
18230 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18231 Remove redundant loop and allocation.
18232
18233 * makefile.w32-in (font.o, w32font.o): New objects.
18234 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18235 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18236
18237 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18238 STORE_XCHARB a valid l-value.
18239
18240 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18241 calculations for non-Truetype fonts.
18242 (x_draw_glyph_string): Sync with xterm.c.
18243 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18244 Remove redundant code.
18245 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18246
18247 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18248 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18249
18250 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18251 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18252
18253 * w32font.c: New file for w32 font backend.
18254
182552008-02-01 Kenichi Handa <handa@m17n.org>
18256
18257 * term.c: Don't include "buffer.h" twice.
18258
182592008-02-01 Kenichi Handa <handa@m17n.org>
18260
18261 * character.c (Funibyte_string): New function.
18262 (syms_of_character): Defsubr it.
18263
182642008-02-01 Jason Rumney <jasonr@gnu.org>
18265
18266 * w32term.c [USE_FONT_BACKEND]:
18267 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18268 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18269 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18270 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18271 (x_free_frame_resources): Sync with xterm.c.
18272
182732008-02-01 Andreas Schwab <schwab@suse.de>
18274
18275 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18276 char-table size.
18277
182782008-02-01 Kenichi Handa <handa@m17n.org>
18279
18280 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18285 font_otf_gpos, add font_drive_otf.
18286
18287 * fontset.c (fontset_find_font): Pay attention to font size
18288 specified for a font.
18289 (reorder_font_vector): Check contents of font_def.
18290
18291 * font.c (struct otf_list): Delete it.
18292 (otf_list): Make it a lisp variable.
18293 (otf_open): Use lispy otf_list.
18294 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18295 (check_otf_features): New function.
18296 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18297 New functions.
18298 (font_drive_otf): New function merging font_otf_gsub and
18299 font_otf_gpos.
18300 (font_open_for_lface): New arg spec. Change argument order.
18301 (font_load_for_face): Adjust for the change of font_open_for_lface.
18302 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18303 Ffont_otf_gpos.
18304 (syms_of_font): Staticpro otf_list. Delete defsubr of
18305 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18306
18307 * xfaces.c (set_font_frame_param): Adjust for the change of
18308 font_open_for_lface.
18309
18310 * font.h (font_open_for_lface): Adjust prototype.
18311 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18312 member otf_drive.
18313 (font_otf_gsub, font_otf_gpos): Delete externs.
18314 (font_drive_otf): Extern it.
18315
183162008-02-01 Kenichi Handa <handa@m17n.org>
18317
18318 * font.c (font_at): If the window W is not on a window system,
18319 return Qnil.
18320
18321 * coding.c (produce_chars, encode_coding): Don't call
18322 insert_from_gap if no characters to produce.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18327 Fclear_face_cache.
18328
18329 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18330
183312008-02-01 Miles Bader <miles@gnu.org>
18332
18333 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18334 Parse "--disable-font-backend" option.
18335 (standard_args): Add "--disable-font-backend" option.
18336
183372008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * fontset.c (fontset_find_font): New function.
18340 (fontset_font): Use fontset_find_font.
18341 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18342 Register the specified font for all Latin characters.
18343 (new_fontset_from_font): Register the specified font for all Latin
18344 characters.
18345 (dump_fontset): For a realized fontset, include the base fontset
18346 name in the returned vector.
18347
183482008-02-01 Kenichi Handa <handa@m17n.org>
18349
18350 * character.h (CHAR_STRING): Cast C to unsigned on calling
18351 char_string.
18352
18353 * character.c (char_string): Type of arg C changed to unsigned.
18354 Signal an error if C is an invalid character code.
18355
18356 * editfns.c (general_insert_function, Fchar_to_string):
18357 Use CHARACTERP, not INTEGERP.
18358
183592008-02-01 Kenichi Handa <handa@m17n.org>
18360
18361 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18362 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18363
18364 * regex.c (analyse_first): Fix for multibyte characters in "case
18365 charset:" and "case categoryspec:".
18366
183672008-02-01 Andreas Schwab <schwab@suse.de>
18368
18369 * Makefile.in (LIBES): Move standard libraries to the end.
18370
183712008-02-01 Kenichi Handa <handa@m17n.org>
18372
18373 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18374 nonzero, don't shrink the buffer nextb.
18375
18376 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18377
18378 * coding.c (coding_alloc_by_making_gap): New arg offset.
18379 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18380 offset.
18381 (decode_coding_iso_2022): Update coding->safe_charsets.
18382 (decode_coding_gap): Temporarily set
18383 current_buffer->text->inhibit_shrinking to 1.
18384
183852008-02-01 Kenichi Handa <handa@m17n.org>
18386
18387 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18388 indexing into elements of s->cmp and s->char2b.
18389
183902008-02-01 Juanma Barranquero <lekktu@gmail.com>
18391
18392 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18397 target_multibyte instead of multibyte.
18398 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18399 (bcmp_translate): Change the argument name from multibyte to
18400 target_multibyte.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 These changes are to compile a regexp into a pattern that can be
18405 used both for multibyte and unibyte targets.
18406
18407 * Makefile.in (search.o): Depend on charset.h.
18408
18409 * character.c (multibyte_char_to_unibyte_safe): New function.
18410
18411 * search.c: Include "charset.h".
18412 (compile_pattern_1): Delete argument multibyte. Don't set
18413 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18414 (compile_pattern): Don't compare cp->buf.target_multibyte.
18415 Compare cp->buf.charset_unibyte.
18416 (compile_pattern): Set cp->buf.target_multibyte.
18417
18418 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18419
18420 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18421
18422 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18423 multibyte. Change callers.
18424 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18425 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18426 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18427 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18428 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18429 (regex_compile): Make the compiled pattern usable both for
18430 multibyte and unibyte targets.
18431 (analyse_first): Make the fastmap usable both for multibyte and
18432 unibyte targets.
18433 (TRANSLATE_VIA_MULTIBYTE): Delete.
18434 (re_match_2_internal): Pay attention to the case that the
18435 multibyteness of bufp and target may be different.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18440 empty box occupy at least one column width.
18441
184422008-02-01 Miles Bader <miles@gnu.org>
18443
18444 * Makefile.in: Remove redundant HAVE_XFT clause.
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18449
184502008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18453 being nil.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18458
184592008-02-01 Kenichi Handa <handa@m17n.org>
18460
18461 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * search.c (simple_search): Fix previous change.
18466
184672008-02-01 Kenichi Handa <handa@m17n.org>
18468
18469 * xftfont.c (ftfont_font_format): Extern declaration.
18470
18471 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18472
18473 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18474 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18475
18476 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18477 (ftfont_font_format): Fix previous change.
18478
18479 * font.h (Ffont_xlfd_name): EXFUN it.
18480
18481 * font.c (font_parse_xlfd): Fix the array size of `f'.
18482 (register_font_driver): Use EQ to compare driver->type.
18483
18484 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18485 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18486 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18487
184882008-02-01 Kenichi Handa <handa@m17n.org>
18489
18490 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18491 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18492
184932008-02-01 Kenichi Handa <handa@m17n.org>
18494
18495 * xfont.c (xfont_open): Set font->format.
18496
18497 * xftfont.c (xftfont_open): Set font->format.
18498
18499 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18500 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18501 (ftfont_open): Set font->format.
18502 (ftfont_font_format): New function.
18503
18504 * font.h (struct font): New member format.
18505
18506 * font.c (Qopentype): New variable.
18507 (syms_of_font): Defsym it.
18508 (Fquery_font): Change the format of the last element of the return
18509 value.
18510
185112008-02-01 Kenichi Handa <handa@m17n.org>
18512
18513 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18514 last resort.
18515
185162008-02-01 Kenichi Handa <handa@m17n.org>
18517
18518 * coding.c (detect_coding_charset): Fix detection of multi-byte
18519 charset.
18520
185212008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18522
18523 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18524
185252008-02-01 Kenichi Handa <handa@m17n.org>
18526
18527 * xdisp.c (get_next_display_element): Set it->face_id for the
18528 first component of a composition.
18529 (x_produce_glyphs): Check if the font is changed or not for composition.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * fontset.c (Qlatin): New variable.
18534 (syms_of_fontset): Define it as a lisp symbol.
18535 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18536
185372008-02-01 Kenichi Handa <handa@m17n.org>
18538
18539 * font.c (font_unparse_fcname): Pay attention to the case that
18540 some of font property is a null string.
18541
185422008-02-01 Kenichi Handa <handa@m17n.org>
18543
18544 * term.c: Include "composite.h".
18545 (encode_terminal_code): Output all components of composition.
18546 Check the size of encode_terminal_src.
18547 (produce_glyphs): For composition, call produce_composite_glyph.
18548 (append_composite_glyph, produce_composite_glyph): New functions.
18549
18550 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18551 is not found, get font_info from the current ascii face.
18552
185532008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18556 buffer-file-name to Qnil before calling insert_from_buffer.
18557
18558 * font.c (font_unparse_fcname): Pay attention to the case that
18559 foundry is a null string.
18560
185612008-02-01 Kenichi Handa <handa@m17n.org>
18562
18563 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18564
18565 * font.c (Qunicode_sip): New variable.
18566 (syms_of_font): Declare it as a Lisp symbol.
18567
18568 * font.h (Qunicode_sip): Extern it.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * composite.c (get_composition_id): Pay attention to TAB component.
18573
18574 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18575 TAB. Adjust for the change of s->char2b which always points to
18576 the first element of allocated memory.
18577
18578 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18579
18580 * xdisp.c (handle_composition_prop): Set it->c to the first
18581 non-TAB component.
18582 (fill_composite_glyph_string): Change argument.
18583 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18584 (x_produce_glyphs): Fix handling of left/right padding.
18585
185862008-02-01 Kenichi Handa <handa@m17n.org>
18587
18588 * coding.c (detect_coding_system): Fix for handling off
18589 inhibit_iso_escape_detection. Fix for the case that no coding
18590 system is defined for a specific coding category.
18591
185922008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * font.c (font_matching_entity): Delete unused local var.
18595
18596 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18597 opening a font.
18598
18599 * fileio.c (Finsert_file_contents): On recovering a file, assume
18600 Unix-like eol.
18601 (choose_write_coding_system): On auto-saving a file, force
18602 Unix-like eol.
18603
18604 * coding.c (setup_coding_system): Fix setting of
18605 coding->common_flags based on eol_type.
18606 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18607 inherit from it.
18608
186092008-02-01 Kenichi Handa <handa@m17n.org>
18610
18611 * alloc.c (NSTATICS): Increas to 0x600.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18616 (ftfont_list): Don't check :name property.
18617 (ftfont_match): New function.
18618 (ftfont_pattern_entity): If the pattern doesn't contain
18619 FC_SPACING, don't assume FC_MONO.
18620
18621 * font.h (struct font_driver): New member `match'.
18622 (font_update_drivers): Adjust prototype.
18623
18624 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18625 property of FONT.
18626 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18627 them unconditionally.
18628 (font_matching_entity): New function.
18629 (font_open_by_name): Try font_matching_entity if exact match is
18630 not found.
18631 (font_update_drivers): Delete the arg FONT. Return a list of
18632 actually used backends. Don't free faces, font caches here.
18633 Don't store data in frame parameters. Don't call x_set_font.
18634 (Ffont_spec): Store :name property as is.
18635 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18636 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18637 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18638 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18639 Call font->driver->otf_gsub instead of font_otf_gsub.
18640
18641 * frame.c (x_set_font_backend): Do more works that were done in
18642 font_update_drivers before.
18643
18644 * xfont.c (xfont_match): New function.
18645 (xfont_driver): Set xfont_driver.match to xfont_match.
18646 (xfont_draw): Set font in GC if necessary.
18647
18648 * ftxfont.c (ftxfont_match): New function.
18649 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18650
18651 * xftfont.c (xftfont_match): New function.
18652 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18653
186542008-02-01 Kenichi Handa <handa@m17n.org>
18655
18656 * font.h (struct font): New member scalable.
18657 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18658 (font_otf_gsub): Adjust prototype.
18659
18660 * font.c (font_otf_capability): Fix handling of the default langsys.
18661 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18662 Check the contents of SPEC.
18663 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18664 (check_gstring): New function.
18665 (REPLACEMENT_CHARACTER): New macro.
18666 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18667 glyph codes of GSTRING.
18668 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18669 (font_prepare_composition): Set cmp->glyph_len.
18670 (font_open_entity): Set font->scalable.
18671 (Ffont_get): Handle :otf property.
18672 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18673 functions.
18674 (Fquery_font): Use font->font.full_name.
18675 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18676 Sfont_otf_alternates.
18677
18678 * ftfont.c (ftfont_open): Set font->font.full_name and
18679 font->font.name properly. Fix calculation of font->font.height
18680 and font->min_width.
18681
18682 * ftxfont.c (ftxfont_create_gcs): New function.
18683 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18684 (ftxfont_draw_backgrond): Fix filling region.
18685 (ftxfont_default_fid): New function.
18686 (ftxfont_open): Set xfont->fid to the return value of
18687 ftxfont_default_fid.
18688 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18689 (ftxfont_done_face): Free only GCs that are created by
18690 ftxfont_create_gcs.
18691 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18692
18693 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18694 Clip to src->width, etc (not src->clip_XXX).
18695
18696 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18697 FontBackend frame parameter.
18698
186992008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * font.h (struct font_driver_list): New member `on'.
18702 (Fclear_font_cache): EXFUN it.
18703 (font_update_drivers): Extern it.
18704
18705 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18706 (font_list_entities): Check driver_list->on.
18707 (register_font_driver): Initalize `on' member to 0.
18708 (font_update_drivers): New function.
18709 (Fclear_font_cache): Check driver_list->on.
18710
18711 * frame.h (Qfont_backend): Extern it.
18712 (x_set_font_backend): Extern it.
18713
18714 * frame.c (Qfont_backend): New variable.
18715 (frame_parms): New element for font-backend.
18716 (x_set_font_backend): New function.
18717
18718 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18719 FontBackend frame parameter.
18720 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18721 x_set_font_backend.
18722
18723 * xfont.c (xfont_list): Don't try listing by :name property if the
18724 name is not for XLFD.
18725
187262008-02-01 Kenichi Handa <handa@m17n.org>
18727
18728 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18729 (LGLYPH_SET_TO): New macros.
18730 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18731 element of G is vector or not.
18732 (font_at): Extern it.
18733
18734 * font.c: Include window.h.
18735 (font_lispy_object): New function.
18736 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18737 end of valid glyph.
18738 (font_close_object): Fix getting (struct font *).
18739 (font_at): New function.
18740 (Ffont_get): If FONT is a font-object, get entity from it.
18741 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18742 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18743 range check.
18744 (Ffont_at): New function.
18745 (syms_of_font): Defsubr Sfont_at.
18746
18747 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18748 before the entry for Qcomposition.
18749 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18750 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18751 the font in gstring.
18752 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18753 LGLYPH_FORM (g) to detect the end of valid glyph.
18754 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18755 we are composing with gstring.
18756
18757 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18758 Check if adjustment is vector or not.
18759
18760 * Makefile.in (font.o): Make it depends on window.h.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18765 adjustment is vector or not.
18766
187672008-02-01 Miles Bader <miles@gnu.org>
18768
18769 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18770
187712008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18774 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18775 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18776
18777 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18778 (DEVICE_DELTA): Fix typo.
18779 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18780 LGLYPH format.
18781
18782 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18783 the change of LGLYPH format.
18784
187852008-02-01 Kenichi Handa <handa@m17n.org>
18786
18787 * ftfont.c (ftfont_list): Fix typo.
18788 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18789
187902008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18791
18792 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18793
18794 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18795 xftface_info is non-NULL.
18796
187972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18798
18799 * ftfont.c (ftfont_list): Move misplaced #endif.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * ftfont.c (ftfont_list): Pay attention to the case that
18804 FC_CAPABILITY is not defined.
18805
188062008-02-01 Kenichi Handa <handa@m17n.org>
18807
18808 * xftfont.c (xftfont_open): Set charset related members to -1.
18809
18810 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18811 QCname.
18812 (ftfont_open): Set charset related members to -1.
18813
18814 * fontset.c (Votf_script_alist): New variable.
18815 (syms_of_fontset): Initialize it.
18816 (fontset_font): Delete unused variable.
18817
18818 * fontset.h (Votf_script_alist): Extern it.
18819
18820 * font.c (font_find_for_lface): Optimize code.
18821
18822 * font.h (font_close_object, font_merge_old_spec): Extern them.
18823
188242008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18827 (syms_of_font): Initialize them.
18828 (font_pixel_size): Allow float value in dpi.
18829 (font_prop_validate_type): Delete.
18830 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18831 Change caller.
18832 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18833 (font_prop_validate_extra): Delete.
18834 (font_prop_validate_spacing): New function.
18835 (font_property_table): Add elements for all known properties.
18836 (get_font_prop_index): Rename from check_font_prop_name. New
18837 argument FROM. Change caller.
18838 (font_prop_validate): Validate all known properties.
18839 (font_put_extra): Delete argument force. Change caller.
18840 (font_expand_wildcards): Make it static. Fix the way of shrinking
18841 the possible range.
18842 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18843 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18844 Change caller.
18845 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18846 (font_parse_fcname): Delete argument merge. Fix parsing of point
18847 size. Don't validate properties values here. Change caller.
18848 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18849 (font_open_by_name): Delete unused variable.
18850 (Ffont_spec): Likewise. Validate property values.
18851 (Ffont_match_p): New function.
18852
18853 * font.h (QCscalable): Extern it.
18854 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18855
18856 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18857
18858 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18859 (xfont_list_pattern): New function.
18860 (xfont_list): Use xfont_list_pattern.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * font.h (Flist_fonts): EXFUN it.
18865
188662008-02-01 Jason Rumney <jasonr@gnu.org>
18867
18868 * w32term.c (w32_initialize): Add back smoothing_type and
18869 smoothing_enabled definitions.
18870
188712008-02-01 Kenichi Handa <handa@m17n.org>
18872
18873 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18874 s->face->font on determining underline position.
18875
188762008-02-01 Kenichi Handa <handa@m17n.org>
18877
18878 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18879 (font_has_char): Accept font-object too.
18880 (font_find_for_lface): Try at first with a size specified in face.
18881
188822008-02-01 Kenichi Handa <handa@m17n.org>
18883
18884 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18885 font_open_by_name.
18886
188872008-02-01 Kenichi Handa <handa@m17n.org>
18888
18889 * font.h (QCspacing, QCdpi): Extern them.
18890 (enum font_spacing): New enum.
18891 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18892
18893 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18894 (QCspacing, QCdpi): New variables.
18895 (syms_of_font): Initialize them.
18896 (font_pixel_size): New function.
18897 (font_put_extra): New function.
18898 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18899 in FONT_EXTRA.
18900 (font_parse_fcname): Handle enumerated values (e.g. bold).
18901 Fix handling font size. Add QCname property that contains only
18902 unknown properties.
18903 (font_score): Change argument. Change caller. Pay attention to
18904 FONT_PIXEL_SIZE_QUANTUM.
18905 (font_sort_entites, font_list_entities, font_find_for_lface)
18906 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18907 (Ffont_spec): Add QCname property that contains only unknown properties.
18908
18909 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18910 include weight in listing pattern, instead check weight of each
18911 listed font. Don't include scalable in pattern. Pay attention to
18912 FONT_PIXEL_SIZE_QUANTUM.
18913
189142008-02-01 Kenichi Handa <handa@m17n.org>
18915
18916 * font.c (font_parse_fcname): Fix parsing of point-size.
18917 (font_unparse_fcname): Produce symbolic names for style properties.
18918 (font_list_entities): Handle float size correctly.
18919 (font_open_by_name): Prefer `normal' property values if the name
18920 doesn't specify them.
18921
18922 * fontset.c (Finternal_char_font): Use font_get_name, not
18923 Ffont_xlfd_name.
18924
18925 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18926 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18927 pattern. Don't force scalable.
18928
18929 * xftfont.c (xftfont_open): For generating a name, start from
18930 96-byte buffer.
18931
189322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18933
18934 * frame.h (x_new_fontset2): Fix prototype.
18935
189362008-02-01 Kenichi Handa <handa@m17n.org>
18937
18938 * font.h (struct font_driver): Delete member parse_name.
18939 (font_match_p, font_get_spec, font_parse_fcname)
18940 (font_unparse_fcname): Extern them.
18941 (font_get_name): Adjust prototype.
18942
18943 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18944 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18945 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18946 unnecessary checks for weight, slant, and swidth.
18947 (font_parse_fcname): New function.
18948 (font_unparse_fcname): New function.
18949 (font_parse_name): New function.
18950 (font_match_p): New function.
18951 (font_get_name): Change return value to Lisp string.
18952 (font_get_spec): New function.
18953 (Qunspecified, Qignore_defface): Don't extern them.
18954 (font_find_for_lface): Assume that LFACE is fully specified.
18955 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18956 object, use it for FACE.
18957 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18958 driver->parse_name.
18959 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18960
18961 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18962 prototype.
18963
18964 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18965 argument F. Don't call Fnew_fontset. Instead, directly call
18966 make_fontset.
18967
18968 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18969
18970 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18971 of x_new_fontset2.
18972
18973 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18974 (Qsans__serif): New variables.
18975 (ftfont_generic_family_list): New variable.
18976 (syms_of_ftfont): Initialize the above variables.
18977 (ftfont_pattern_entity): Delete argument NAME.
18978 (ftfont_list_generic_family): New function.
18979 (ftfont_parse_name): Delete this function.
18980 (ftfont_list): Try generic family only when FcFontList found no font.
18981 (ftfont_list_family): Fix args to FcObjectSetBuild.
18982
18983 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18984 object in attrs[LFACE_FONT_INDEX].
18985 (set_lface_from_font_name): Cancel all changes for font-backend.
18986 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18987 function.
18988 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18989 font object in QCfont attribute.
18990 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18991 (realize_default_face) [USE_FONT_BACKEND]: Call
18992 set_lface_from_font_and_fontset.
18993
18994 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18995 "fixed", and signal error here if no suitable font was found.
18996
18997 * xfont.c (xfont_parse_name): Delete this function.
18998
18999 * xftfont.c (xftfont_open): Change coding style of error
19000 handling. Generate fontconfig's fontname pattern.
19001
19002 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19003 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19004
19005 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19006 Both args FONTSET and FONT_OBJECT must be existing ones.
19007
190082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19009
19010 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19015
19016 * font.h (struct font): Fix typo.
19017
19018 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19019 XLFD_XXX_INDEX.
19020 (enum xlfd_field_mask): New enum.
19021 (intern_font_field): Changed argument. Change caller. If digits
19022 are followed by non-digits, return a symbol.
19023 (font_expand_wildcards): New function.
19024 (font_parse_xlfd): Fix wildcard handling.
19025 (Ffont_spec): If :name is specified, reflect the info in the other
19026 properties.
19027
19028 * ftfont.c (ftfont_pattern_entity): Fix typo.
19029 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19030 locale.
19031
190322008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19035
19036 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19037 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19038 registry doesn't specify encoding part.
19039 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19040 (font_open_by_name): At first try parsing the name.
19041 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19042 as Lisp symbols.
19043
19044 * fontset.c (reorder_font_vector): Pay attention to the case that
19045 the 3rd element of font_def is nil.
19046 (fontset_font): For the default fontset, append one more fontset
19047 elements for a script-based font specification. Don't add script
19048 attribute on finding a font.
19049 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19050 font name.
19051 (fontset_ascii_font): If a font can't be opened, return nil.
19052
19053 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19054 (ftfont_pattern_entity): New function.
19055 (ftfont_get_cache): Assume that freetype_font_cache is already
19056 initialized.
19057 (ftfont_list): Handle the case that a file is specified in font
19058 name. Use ftfont_pattern_entity to generate entities.
19059 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19060 (syms_of_ftfont): Initialize freetype_font_cache.
19061
19062 * xftfont.c (xftfont_open): Make the font name fontconfig's
19063 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19064 (xftfont_close): Free font->font.name if not NULL.
19065
19066 * xfont.c (xfont_list): If script is specified for a font, return
19067 null_vector.
19068 (xfont_list_family): Declare argument type.
19069
19070 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19071 name, set LFACE_FONT (lface) to nil.
19072
19073 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19074 return Qnil.
19075
190762008-02-01 Kenichi Handa <handa@m17n.org>
19077
19078 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19079 (standard_args): Add "-enable-font-backend".
19080
190812008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19084 (struct xftdraw_list, xftdraw_list): Delete them.
19085 (register_xftdraw, check_xftdraw): Delete them.
19086 (xftfont_prepare_face): Don't call register_xftdraw.
19087 (xftfont_done_face): Don't call check_xftdraw.
19088 (xftfont_draw): Get background color only when with_background is
19089 nonzero.
19090
19091 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19092
190932008-02-01 Kenichi Handa <handa@m17n.org>
19094
19095 These changes are for the new font handling codes.
19096
19097 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19098 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19099 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19100 (FONTSRC, FONTOBJ): New variables.
19101 (obj): Add $(FONTOBJ).
19102 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19103 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19104 @LIBOTF_LIBS@.
19105 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19106 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19107
19108 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19109
19110 * character.h (Vscript_representative_chars): Extern it.
19111
19112 * character.c (Vscript_representative_chars): New variable.
19113 (syms_of_character): Declare it as a Lisp variable.
19114
19115 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19116 enable_font_backend is nonzero, accept the composition method
19117 COMPOSITION_WITH_GLYPH_STRING.
19118
19119 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19120 enumeration COMPOSITION_WITH_GLYPH_STRING.
19121
19122 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19123 members clip_x, clip_y, clip_width, and clip_height.
19124 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19125
19126 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19127 --enable-font-backend. Call syms_of_font.
19128
19129 * fns.c (assoc_no_quit): New function.
19130
19131 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19132 (face_for_font, new_fontset_from_font)
19133 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19134
19135 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19136 (fontset_font, fontset_ascii, face_for_char)
19137 (make_fontset_for_ascii_face, Ffont_info)
19138 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19139 is nonzero, use font-backend mechanism.
19140 (find_font_encoding): Make it non-static.
19141 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19142 New functions.
19143
19144 * frame.h (struct frame): New members resx and resy.
19145 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19146 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19147
19148 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19149 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19150
19151 * lisp.h (assoc_no_quit): Extern it.
19152
19153 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19154 Through out the file, use FONT_INFO_FROM_FACE instead of
19155 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19156 rif->per_char_metric.
19157 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19158 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19159 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19160 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19161 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19162 nonzero, use font-backend mechanism.
19163 (get_per_char_metric): New function.
19164
19165 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19166 (set_lface_from_font_name)
19167 (set_font_frame_param, free_realized_face)
19168 (prepare_face_for_display, clear_face_gcs)
19169 (Finternal_set_font_selection_order, realize_x_face)
19170 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19171 font-backend mechanism.
19172 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19173 (load_face_font) [USE_FONT_BACKEND]: Abort.
19174 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19175 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19176
19177 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19178 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19179 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19180 nonzero, register all available font drivers. Call
19181 x_default_font_parameter for deciding a font.
19182 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19183
19184 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19185 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19186 (x_set_glyph_string_clipping_exactly)
19187 (x_compute_glyph_string_overhangs)
19188 (x_draw_glyph_string_foreground)
19189 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19190 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19191 enable_font_backend is nonzero, use font-backend mechanism.
19192 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19193
191942008-02-01 Kenichi Handa <handa@m17n.org>
19195
19196 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19197 system_eol_type.
19198 (syms_of_coding): Initialize system_eol_type.
19199
19200 * process.c (Fset_process_coding_system): Inherit system's eol
19201 format if necessary.
19202
192032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19204
19205 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19206
192072008-02-01 Kenichi Handa <handa@m17n.org>
19208
19209 * coding.c (decode_eol): Pay attention to buffer relocation in
19210 del_range_2.
19211 (decode_coding): Call decode_eol before restoring undo_list.
19212
192132008-02-01 Kenichi Handa <handa@m17n.org>
19214
19215 * charset.c (Fdefine_charset_internal): Fix setting of
19216 emacs_mule_bytes.
19217
192182008-02-01 Kenichi Handa <handa@m17n.org>
19219
19220 * keyboard.c (read_char): Check if C is a character or not before
19221 looking up Vkeyboard_translate_table.
19222
192232008-02-01 Kenichi Handa <handa@m17n.org>
19224
19225 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19226 condition to terminate the loop.
19227
192282008-02-01 Kenichi Handa <handa@m17n.org>
19229
19230 * coding.c (produce_composition): Compare charbuf[i] instead of
19231 args[i] against 0.
19232 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19233
192342008-02-01 Kenichi Handa <handa@m17n.org>
19235
19236 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19237 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19238 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19239 detect_coding.
19240 (emacs_mule_char): Handle old style (Emacs 20) component character
19241 of a composition.
19242 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19243 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19244 composition rule.
19245 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19246
192472008-02-01 Kenichi Handa <handa@m17n.org>
19248
19249 * coding.c (encode_coding_ccl): Allocate destination dynamically
19250 when necessary.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19255 the loop. When quitted, show a proper error message.
19256
192572008-02-01 Kenichi Handa <handa@m17n.org>
19258
19259 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19260 src->clip_head and src->clip_tail temporarily instead of src->hl.
19261
19262 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19263 character sequence.
19264 (Fccl_execute_on_string): Use ASET, not XSET.
19265
192662008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19269
192702008-02-01 Kenichi Handa <handa@m17n.org>
19271
19272 * coding.c (decode_coding): Fix the condition of terminating the
19273 decoding loop.
19274
192752008-02-01 Kenichi Handa <handa@m17n.org>
19276
19277 * data.c (Faset): On setting a character bigger than 255 in a
19278 unibyte string, signal an error instead of make the string multibyte.
19279
192802008-02-01 Kenichi Handa <handa@m17n.org>
19281
19282 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19283 made by a mapping table.
19284
192852008-02-01 Kenichi Handa <handa@m17n.org>
19286
19287 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19288 not.
19289 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19290 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19291
19292 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19293 s->face is NULL or not.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19298 (x_draw_glyph_string): Fix drawing of right_overhang and
19299 left_overhang around/on cursor.
19300
19301 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19306
193072008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 * coding.c (Fdefine_coding_system_internal)
19310 (Fdefine_coding_system_alias): Avoid a duplicated element in
19311 Vcoding_system_alist.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19316
19317 * coding.c (Qcoding_system_define_form): New variable.
19318 (syms_of_coding): Intern and staticpro it.
19319 (Fcoding_system_p): Check Qcoding_system_define_form.
19320 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19321
19322 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19323 Fcoding_system_p.
19324 (CHECK_CODING_SYSTEM): If ID is not available, call
19325 Fcheck_coding_system.
19326 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19327 Try also Fcheck_coding_system.
19328
193292008-02-01 Kenichi Handa <handa@m17n.org>
19330
19331 * coding.c (code_conversion_restore): GCPRO arg.
19332
193332008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * character.c (lisp_string_width): Check multibyteness of STRING.
19336
193372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19338
19339 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19340 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19341 (decode_mac_font_name): Use decode_coding_c_string instead of
19342 decode_coding.
19343 (x_load_font): Initialize fontp->fontset to -1. Set
19344 fontp->encoding_type.
19345
193462008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * search.c (search_buffer): Give up BM search on case-fold-search
19349 if one of a target character has a case-equivalence of different
19350 byte length even if that target charcter is an ASCII.
19351 (simple_search): Fix calculation of byte length of matched text.
19352 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19353
193542008-02-01 Kenichi Handa <handa@m17n.org>
19355
19356 * coding.c (decode_coding): Fix handling of invalid bytes.
19357
193582008-02-01 Kenichi Handa <handa@m17n.org>
19359
19360 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19361 Unicode characters.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * coding.c (encode_coding_object): If a pre-write-conversion
19366 function makes a new buffer, kill it.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * coding.c (QCascii_compatible_p): New variable.
19371 (syms_of_coding): Initialize it.
19372 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19373 calling string_char.
19374 (record_conversion_result): Add `default:' case.
19375 (coding_charset_list): Delete unused variable `coding_type'.
19376 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19377 property in the plist of the coding system.
19378 (Fcoding_system_put): Check QCascii_compatible_p.
19379
193802008-02-01 Miles Bader <miles@gnu.org>
19381
19382 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19383 removed calculation of frame `f', as it's now used.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19388 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19389 (UNIDATA): New variable.
19390 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19391 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19392 $(RUN_TEMACS) unconditionally.
19393
193942008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19397 (admindir): New variable.
19398 ($(lispsource)international/charprop.el): New target.
19399
194002008-02-01 Miles Bader <miles@gnu.org>
19401
19402 * character.c (chars-in-region): Remove obsolete function.
19403 (syms_of_character): Remove its initialization.
19404
194052008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19406
19407 * w32select.c (validate_coding_system)
19408 (setup_windows_coding_system): New functions.
19409 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19410 setup_windows_coding_system.
19411 (setup_config, Fw32_get_clipboard_data): Use
19412 validate_coding_system.
19413 (Fx_selection_exists): Move call to setup_config to a place
19414 where signals are allowed.
19415
19416 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19417 (Fcheck_coding_system): Add declarations.
19418
194192008-02-01 Kenichi Handa <handa@m17n.org>
19420
19421 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19422
194232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19424
19425 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19426 string as the second argument for x_new_fontset.
19427
194282008-02-01 Kenichi Handa <handa@m17n.org>
19429
19430 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19431 (encode_coding_object): Use safe_call instead of call2.
19432
194332008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19436
19437 * Makefile.in (lisp): Include charprop.el.
19438
194392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19440
19441 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19442 Not sure if it's unnecessary.
19443
194442008-02-01 Steven Tamm <steventamm@mac.com>
19445
19446 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19447 some possibly unnecessary fontset checking code that crashed
19448 when creating a new frame.
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19453 lookup_face.
19454
19455 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19456
19457 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19462 (coding_charset_list): New function.
19463
19464 * coding.h (coding_charset_list): Extern it.
19465
194662008-02-01 Kenichi Handa <handa@m17n.org>
19467
19468 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19469 concatenation of family and registry.
19470
194712008-02-01 Kenichi Handa <handa@m17n.org>
19472
19473 * character.h (BYTE8_STRING): Fix typo.
19474
19475 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19476 string to multibyte (sync to HEAD).
19477
19478 * casefiddle.c (casify_region): Handle changes in byte-length
19479 using replace_range_2 (sync to HEAD).
19480
194812008-02-01 Andreas Schwab <schwab@suse.de>
19482
19483 * chartab.c (map_char_table): GCPRO table and arg.
19484
194852008-02-01 Kenichi Handa <handa@m17n.org>
19486
19487 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19488 already at limit.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19493 instead of fast_c_string_match_ignore_case.
19494 (find_font_encoding): Change argument to Lisp_Object. Use
19495 fast_string_match_ignore_case instead of
19496 fast_c_string_match_ignore_case. Change caller.
19497
194982008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 * xdisp.c (get_next_display_element): In unibyte case, decide to
19501 display in octal form by checking a character by
19502 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19503
19504 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19505
19506 * character.c (unibyte_has_multibyte_table): New variable.
19507
19508 * character.h (unibyte_has_multibyte_table): Extern it.
19509 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * coding.c (encode_coding_iso_2022): Fix handling of charset
19514 annotation.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * coding.c (setup_coding_system): If coding_system is nil, use
19519 Qundecided.
19520 (Fterminal_coding_system): Return nil if terminal coding system is
19521 `undecided'.
19522 (syms_of_coding): Define coding-system `undecided' here. Setup
19523 terminal_coding as `undecided'.
19524
195252008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * xdisp.c (message_dolog, set_message_1): Call
19528 unibyte_char_to_multibyte with arg type int.
19529
19530 * lread.c (read1): Fix reading of a char-table.
19531
19532 * print.c (print_object): Include sub char-table in circularities
19533 detection.
19534
195352008-02-01 Kenichi Handa <handa@m17n.org>
19536
19537 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19538 Append the found sequences in car of ARGS instead of prepending.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * fileio.c (report_file_error): Make a unibyte string from
19543 strerror (errorno).
19544 (Fsubstitute_in_file_name): Fix the arg to
19545 unibyte_char_to_multibyte. It is evaluated twice.
19546
195472008-02-01 Kenichi Handa <handa@m17n.org>
19548
19549 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19550
195512008-02-01 Kenichi Handa <handa@m17n.org>
19552
19553 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19554 BOM is not found.
19555 (detect_coding, detect_coding_system): Optimization for ISO-2022
19556 when no 8-bit data is found.
19557
195582008-02-01 Jason Rumney <jasonr@gnu.org>
19559
19560 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19561
195622008-02-01 Kenichi Handa <handa@m17n.org>
19563
19564 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19565 CHARS.
19566
195672008-02-01 Steven Tamm <steventamm@mac.com>
19568
19569 * macterm.c (mac_encode_char): Add charset argument and update
19570 to use encoding_type.
19571 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19572 switch to pure fontset.
19573 (decode_mac_font_name): Temporarily remove decoding.
19574 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19575 (x_load_font): Temporarily remove encoding.
19576
195772008-02-01 Kenichi Handa <handa@m17n.org>
19578
19579 * xfaces.c (Fface_font): If frame is not on a window system,
19580 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19581 refer to face->font.
19582 (split_font_name_into_vector, build_font_name_from_vector)
19583 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19584 when HAVE_WINDOW_SYSTEM is defined.
19585
195862008-02-01 Kenichi Handa <handa@m17n.org>
19587
19588 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19589 (x_produce_glyphs): Fix setting of members of cmp in case
19590 cmp->glyph_len is zero.
19591
19592 * fontset.c (Fset_fontset_font): Fix docstring.
19593 (Ffontset_info): Make it backward compatible. New arg ALL.
19594
195952008-02-01 Kim F. Storm <storm@cua.dk>
19596
19597 * process.c (read_process_output): Grow decoding_buf when needed;
19598 this could cause a crash in allocate_string and compact_small_strings.
19599
196002008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19603
196042008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * coding.c (setup_coding_system): Set coding->common_flags
19607 correctly for raw-text.
19608 (consume_chars): On encoding unibyte text by raw-text, don't check
19609 multibyte form.
19610 (encode_coding): On encoding by raw-text, never use translation tables.
19611
19612 * fileio.c (e_write): Short cut for the case of no encoding.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * coding.c (detect_coding, detect_coding_system): Delete unused
19617 variables.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19622 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * coding.c (Ffind_coding_systems_region_internal): Include
19627 raw-text and no-conversion in the result.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19632 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19633 FONT_DEF.
19634 (font_def_arg, add_arg, from_arg, to_arg): New args.
19635 (set_fontset_font): Change argument.
19636 (Fset_fontset_font): Fix for the case that TARGET is a script
19637 name and charset name.
19638 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19639
196402008-02-01 Kenichi Handa <handa@m17n.org>
19641
19642 * fontset.c (fontset_font): Rename from fontset_face. Change return
19643 value.
19644 (face_suitable_for_char_p, face_for_char): Adjust for the change
19645 of fontset_font.
19646 (make_fontset_for_ascii_face): Fix setting of the fontset element
19647 for ASCII.
19648 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19649 to get a font name.
19650 (Ffontset_info): Adjust for the change of fontset_font.
19651
19652 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19653
19654 * character.h (LEADING_CODE_LATIN_1_MIN)
19655 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * editfns.c (check_translation): New function.
19660 (Ftranslate_region_internal): Handle M:N mapping.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19669 goto invalid_code.
19670 (decode_coding_iso_2022): Fix handling of invalid designation.
19671
19672 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19673 after calling code_conversion_save.
19674
196752008-02-01 Kenichi Handa <handa@m17n.org>
19676
19677 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19678
19679 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19680
19681 * fontset.c: Include "intervals.h".
19682 (fontset_face): Fix comparing of Lisp_Objects.
19683 (free_face_fontset, new_fontset_from_font_name): Fix
19684 Lisp_Object/int mixup.
19685
19686 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19687
19688 * coding.c: Add many prototypes for static functions.
19689 (get_translation_table): Allow max_lookup to be NULL.
19690 (decode_coding, Ffind_coding_systems_region_internal)
19691 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19692 get_translation_table with max_lookup NULL.
19693
196942008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 * coding.c (get_translation_table): Declare it as Lisp_Object.
19697 (LOOKUP_TRANSLATION_TABLE): New macro.
19698 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19699 instead of CHAR_TABLE_REF.
19700
197012008-02-01 Kenichi Handa <handa@m17n.org>
19702
19703 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19704 annotation data format.
19705 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19706 Change arguments FROM and TO to single argument NCHARS. Change caller.
19707 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19708 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19709 (decode_coding_ccl, decode_coding_charset): Pay attention to
19710 coding->charbuf_used.
19711 (get_translation): New function.
19712 (produce_chars): New arguments translation_table and last_block.
19713 Translate characters here. Return number of carryover chars.
19714 Change caller.
19715 (produce_composition): New argument pos. Change caller.
19716 Adjust for the change of annotation data format.
19717 (produce_charset, produce_annotation): Likewise.
19718 (decode_coding, encode_coding): Don't call translate_chars.
19719 (consume_chars): New arg translation_table. Change caller.
19720 (translate_chars): Delete.
19721 (syms_of_coding): Make translation-table's number of extra slots 2.
19722
197232008-02-01 Kenichi Handa <handa@m17n.org>
19724
19725 * search.c (simple_search): Fix setting this_pos_byte in backward
19726 search.
19727
19728 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19729 byte sequence.
19730 (detect_coding_ccl): Fix setting of the variable valids.
19731
197322008-02-01 Kenichi Handa <handa@m17n.org>
19733
19734 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19735
19736 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19737
19738 * editfns.c (Ftranslate_region_internal): Rename from
19739 Ftranslate_region. Accept a char-table in TABLE.
19740 (syms_of_editfns): Defsubr Stranslate_region_internal.
19741
19742 * xfaces.c (set_lface_from_font_name): If a font is specified for
19743 a frame, generate a fontset from the font.
19744 (build_scalable_font_name): If the scalable font is requested for
19745 a specific size, don't change that size.
19746 (try_font_list): Try a scalable font also in the case that a
19747 pattern string is specified.
19748
197492008-02-01 Kenichi Handa <handa@m17n.org>
19750
19751 * xfaces.c (Fface_font): New optional arg CHARACTER.
19752
197532008-02-01 Kenichi Handa <handa@m17n.org>
19754
19755 * charset.h (CHARSET_OFFSET): New macro.
19756
197572008-02-01 Kenichi Handa <handa@m17n.org>
19758
19759 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19760
19761 * fontset.c (fontset_face): Handle the case that repertory is a
19762 char-table.
19763 (find_font_encoding): Return nil for unknown encoding.
19764 (Fset_fontset_font): Ignore a font of unknown encoding.
19765
197662008-02-01 Kenichi Handa <handa@m17n.org>
19767
19768 * keymap.c (describe_vector): Handle default value of a char table.
19769
19770 * fontset.c (fontset_face): Handle fallback fonts correctly.
19771 (Ffontset_info): Return infomation about fallback fonts.
19772
197732008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * fontset.c (FONTSET_DEFAULT): New macro.
19776 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19777 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19778 the case that it is nil.
19779 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19780 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19781
19782 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19783 subset or superset.
19784
197852008-02-01 Kenichi Handa <handa@m17n.org>
19786
19787 * emacs.c (main): Call init_charset after syms_of_XXX.
19788
19789 * charset.c (Vcharset_map_directory): Delete.
19790 (Vcharset_map_path): New variable.
19791 (load_charset_map_from_file): Use Vcharset_map_path instead.
19792 (init_charset): Initialize Vcharset_map_path.
19793 (syms_of_charset): Delete declaration of "charset-map-directory",
19794 add declaration of "charset-map-path".
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19799 ASCII only string.
19800
19801 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19802
19803 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19804 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19805
198062008-02-01 Kenichi Handa <handa@m17n.org>
19807
19808 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19809
19810 * coding.c (QCmnemonic, QCdefalut_char)
19811 (QCdecode_translation_table, QCencode_translation_table)
19812 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19813 (get_translation_table): Return a list of translation tables if
19814 necessary.
19815 (decode_coding): Call get_translation_table with ENCODEP 0.
19816 (char_encodable_p): If translation_table is non-nil, always call
19817 translate_char.
19818 (Fdefine_coding_system_internal): Accept list of translation
19819 tables as :encode-translation-table and :decode-translation-table.
19820 (Fcoding_system_put): New function.
19821 (syms_of_coding): Declare new symbols. Defsubr
19822 Scoding_system_put.
19823 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19824 typically JISX0212.
19825
19826 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19827 when the charset is superset type.
19828
19829 * character.c (translate_char): Accept list of translation tables.
19830
198312008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19834 (CODING_ATTR_TRANS_TBL): New macro.
19835
19836 * coding.c (get_translation_table): New function.
19837 (translate_chars): Fix the bug of skipping annotation data.
19838 (decode_coding, encode_coding): Utilize get_translation_table.
19839 (char_encodable_p, Funencodable_char_position): Translate char if
19840 necessary.
19841 (Ffind_coding_systems_region_internal)
19842 (Fcheck_coding_systems_region): Setup translation table for encode
19843 in a coding system attribute vector in advance.
19844 (Fdefine_coding_system_internal): Allow a symbol as translation
19845 table. For shift-jis type coding system, allow 4th charset.
19846
198472008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19850
19851 * xdisp.c (get_next_display_element): Pass -1 as POS to
19852 FACE_FOR_CHAR if displaying a C-string.
19853
198542008-02-01 Kenichi Handa <handa@m17n.org>
19855
19856 * composite.c (get_composition_id): Handle xoff and yoff in a
19857 composition rule.
19858
19859 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19860 (struct composition): New member lbearing and rbearing.
19861
19862 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19863 (x_get_glyph_overhangs): Handle a composition glyph.
19864 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19865
19866 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19867 composition glyph.
19868
198692008-02-01 Kenichi Handa <handa@m17n.org>
19870
19871 * print.c: Include charset.h.
19872 (Vprint_charset_text_property): New variable.
19873 (Qdefault): Extern it.
19874 (PRINT_STRING_NON_CHARSET_FOUND)
19875 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19876 (print_check_string_result): New variable.
19877 (print_check_string_charset_prop): New function.
19878 (print_prune_charset_plist): New variable.
19879 (print_prune_string_charset): New function.
19880 (print_object): Call print_prune_string_charset if
19881 Vprint_charset_text_property is not t.
19882 (print_interval): Print nothing if interval->plist is nil.
19883 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19884 variable. Init and staticpro print_prune_charset_plist.
19885
198862008-02-01 Kenichi Handa <handa@m17n.org>
19887
19888 * fontset.c (new_fontset_from_font_name): Use the specified font
19889 for all characters in the new fontset.
19890
19891 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19892 OBJECT args.
19893
19894 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19895 OBJECT args for composition too.
19896
19897 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19898 OBJECT args.
19899
199002008-02-01 Kenichi Handa <handa@m17n.org>
19901
19902 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19903
19904 * fontset.c (reorder_font_vector): Adjust for the change of
19905 FONT_DEF format.
19906 (fontset_face): New arg id. Change caller.
19907 (face_for_char): New args pos and object.
19908 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19909 (fs_query_fontset): Check NAME by Fassoc too.
19910 (Fset_fontset_font): Allow non-XLFD font name.
19911 (Ffontset_info): Adjust for the change of FONT_DEF format.
19912
19913 * fontset.h (face_for_char): Adjust prototype.
19914
19915 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19916 (append_space, extend_face_to_end_of_line)
19917 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19918 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19919
19920 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19921 POS and OBJECT args.
19922
19923 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19924 POS and OBJECT args.
19925
199262008-02-01 Jason Rumney <jasonr@gnu.org>
19927
19928 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19929 of GlobalAlloc'ed memory.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19934
19935 * charset.h (charset_table_used): Delete extern.
19936
19937 * charset.c (charset_table_used): Make it static.
19938 (map_charset_chars): Fix args to c_function with.
19939
19940 * chartab.c (map_sub_char_table_for_charset): Fix args to
19941 c_function with.
19942
19943 * coding.h (enum coding_result_code): Delete
19944 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19945
19946 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19947 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19948 (Vlast_code_conversion_error): New variables.
19949 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19950 (ONE_MORE_BYTE): Record error if any instead of signaling an
19951 error. If non-ASCII multibyte char is found, return the negative
19952 value of the code. All callers changed to check it.
19953 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19954 (record_conversion_result): New function. Change all codes setting
19955 coding->result to call this function.
19956 (detect_coding_utf_8, decode_coding_utf_8)
19957 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19958 Don't use the local variable incomplete.
19959 (emacs_mule_char): Change the second arg to `const'.
19960 (decode_coding): Fix of flushing out unprocessed data.
19961 (make_conversion_work_buffer): Fix making of a work buffer.
19962 (decode_coding_object): Return coding->dst_object.
19963
19964 * fontset.c (set_fontset_font): Fix args.
19965
19966 * lisp.h (CHARACTERBITS): Define as 22.
19967
19968 * process.c (send_process): Be sure to set coding->src_multibyte.
19969
19970 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19971
199722008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * xdisp.c (handle_auto_composed_prop): Give limit to
19975 Fnext_single_char_property_change.
19976
199772008-02-01 Kenichi Handa <handa@m17n.org>
19978
19979 * composite.c (syms_of_composite): Don't make the composition hash
19980 table weak.
19981
19982 * fontset.c (Fset_fontset_font): Fix docstring.
19983
19984 * lisp.h (detect_coding_system): Adjust prototype.
19985
19986 * fileio.c (kill_workbuf_unwind): Delete this function.
19987 (Finsert_file_contents): Adjust the call of detect_coding_system.
19988 Get conversion_buffer by code_conversion_save. Use the macro
19989 CODING_MAY_REQUIRE_DECODING. After decoding, update
19990 coding_system.
19991
19992 * coding.h (make_conversion_work_buffer): Delete extern.
19993 (code_conversion_save): Extern it.
19994
19995 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19996 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19997 (decode_coding_utf_8): Don't do eol converion.
19998 (detect_coding_utf_16): Check coding->src_chars, not
19999 coding->src_bytes. Add heuristics for those that have no signature.
20000 (decode_coding_emacs_mule, decode_coding_iso_2022)
20001 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20002 Don't do eol converion.
20003 (adjust_coding_eol_type): Return a new coding system.
20004 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20005 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20006 each change.
20007 (decode_coding): Pay attention to undo_list. Do eol conversion for
20008 all types of coding-systems (if necessary).
20009 (Vcode_conversion_work_buf_list): Delete it.
20010 (Vcode_conversion_reused_workbuf): Rename from
20011 Vcode_conversion_reused_work_buf.
20012 (Vcode_conversion_workbuf_name): New variable.
20013 (reused_workbuf_in_use): New variable.
20014 (make_conversion_work_buffer): Delete the arg DEPTH.
20015 (code_conversion_restore): Change argument to cons.
20016 (code_conversion_save): Delete the argument BUFFER. Change callers.
20017 (detect_coding_system): New argument src_chars. Change callers.
20018 Fix for utf-16 detection.
20019 (init_coding_once): Don't use ISO_carriage_return.
20020 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20021 reused_workbuf_in_use.
20022
200232008-02-01 Kenichi Handa <handa@m17n.org>
20024
20025 * keymap.c (store_in_keymap): Pay attention to the case that idx
20026 is a cons specifying a character range.
20027
200282008-02-01 Kenichi Handa <handa@m17n.org>
20029
20030 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20031 HANDLED_RECOMPUTE_PROPS.
20032
20033 * coding.c (Fdefine_coding_system_internal): Fix checking of
20034 ascii compatibility.
20035
200362008-02-01 Kenichi Handa <handa@m17n.org>
20037
20038 * charset.c (find_charsets_in_text): Delete unused locale variable.
20039 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20040
20041 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20042 Resync charset_list to Vemacs_mule_charset_list.
20043
20044 * keymap.c (store_in_keymap): Pay attention to the case that idx
20045 is a cons specifying a character range.
20046
200472008-02-01 Kenichi Handa <handa@m17n.org>
20048
20049 * composite.c (update_compositions): Bind inhibit-read-only, etc
20050 to t before calling remove-list-of-text-properties.
20051
20052 * print.c (print_object): Always print ASCII chars as is.
20053
200542008-02-01 Kenichi Handa <handa@m17n.org>
20055
20056 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20057
20058 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20059 is a char table.
20060
200612008-02-01 Kenichi Handa <handa@m17n.org>
20062
20063 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20064
200652008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * xfaces.c (set_lface_from_font_name): Fix for the case that
20068 FONTNAME is not fontset name.
20069
200702008-02-01 Kenichi Handa <handa@m17n.org>
20071
20072 * fns.c (base64_encode_1): Fix previous change.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 * fontset.c (set_fontset_font): New function.
20077 (Fset_fontset_font): If a font is specified for a charset, use
20078 map_charset_chars to store the font spec in a fontset.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * fontset.c (fontset_face): Create a fallback fontset on demand.
20083 (make_fontset): Don't create a fallback fontset here.
20084 (free_face_fontset): Free a fallback fontset (if any) too.
20085 (n_auto_fontsets): Delete this variable.
20086 (auto_fontset_alist): New variable.
20087 (new_fontset_from_font_name): Check auto_fontset_alist.
20088 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20089 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20090 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20091 Defsubr Sfontset_list_all.
20092
200932008-02-01 Kenichi Handa <handa@m17n.org>
20094
20095 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * editfns.c (Fgoto_char): Fix docstring.
20104
201052008-02-01 Kenichi Handa <handa@m17n.org>
20106
20107 * insdel.c (insert_from_gap): Adjust intervals correctly.
20108
201092008-02-01 Jason Rumney <jasonr@gnu.org>
20110
20111 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20112 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20113 (w32_initialize): Try to load it.
20114 (x_get_font_repertory): Use it if available.
20115 (w32_encode_char): Add shortcut for unicode output.
20116
20117 * w32fns.c (w32_load_system_font): Default charset to -1.
20118 (x_to_w32_charset): Match all fonts for unicode.
20119 (w32_to_x_charset): New parameter matching. Don't return partial
20120 or wildcard charsets.
20121 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20122 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20123 (w32_to_x_font): Match charset to real charset.
20124 (enum_font_cb2): Always list unicode versions.
20125
20126 * makefile.w32-in (temacs): Increase EMHEAP.
20127
201282008-02-01 Jason Rumney <jasonr@gnu.org>
20129
20130 * w32term.c (w32_encode_char): New charset parameter.
20131 font_info.encoding becomes encoding_type.
20132 (x_get_font_repertory): New function. Warning: stub only!
20133 (x_new_font): Return quickly if font already set.
20134 (x_new_fontset): fontsetname parameter is Lisp_Object.
20135 Use new fs_query_fontset. Try new_fontset_from_font_name.
20136 Use fontset_name for return value.
20137
20138 * w32term.h: Declare x_get_font_repertory.
20139
20140 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20141 place of find_charset_in_text. Use encode_coding_object in place
20142 of encode_coding.
20143 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20144 decode_coding.
20145
20146 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20147 of x_new_fontset.
20148 (w32_load_system_font): Initialize charset as unicode.
20149 font_info.encoding becomes encoding_type.
20150 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20151 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20152 (syms_of_w32fns): Set get_font_repertory_func.
20153
20154 * w32console.c: Include character.h. Use terminal_encode_buffer
20155 from term.c.
20156 (write_glyphs): Use new version of encode_terminal_code. Use
20157 encode_coding_object in place of encode_coding.
20158
20159 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20160 encoding becomes encoding_type.
20161
20162 * term.c (terminal_encode_buffer): Make externally visible.
20163
20164 * makefile.w32-in: Add character.h dependancies.
20165 (character.o, chartab.o): New targets.
20166
201672008-02-01 Kenichi Handa <handa@m17n.org>
20168
20169 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20170 CODING_ID_EOL_TYPE.
20171
201722008-02-01 Andreas Schwab <schwab@suse.de>
20173
20174 * coding.c (produce_chars): Revert last change.
20175
201762008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * charset.h (charset_unicode): Extern it.
20179
20180 * charset.c (string_xstring_p): Check by (C >= 0x100).
20181 (find_charsets_in_text): Change format of the arc CHARSETS. New
20182 arg MULTIBYTE.
20183 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20184 change of find_charsets_in_text.
20185 (Fsplit_char): Fix doc. Never return unknown.
20186
20187 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20188
20189 * coding.c (Fdefine_coding_system_alias): Update
20190 Vcoding_system_list.
20191
20192 * fontset.c (load_font_get_repertory): Pay attention to the case
20193 that ENCODING of a font is specified by a char-table.
20194
20195 * xterm.c (x_get_font_repertory): Handle the case that the
20196 encoding of font is other than Unicode.
20197
201982008-02-01 Kenichi Handa <handa@m17n.org>
20199
20200 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20201 if a character is encodable by the terminal coding system. If
20202 not, produces proper number of `?'s. Update
20203 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20204 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20205
202062008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20209 variables.
20210 (encode_terminal_code): Change argument. Encode multiple
20211 characters at once. Store the result of encoding in
20212 terminal_encode_buffer.
20213 (write_glyphs, insert_glyphs): Adjust for the change of
20214 encode_terminal_code.
20215 (term_init): Initialize terminal_encode_buffer and
20216 terminal_encode_buf_size.
20217
20218 * coding.c (consume_chars): If coding->src_object is nil, don't
20219 check annotation.
20220
202212008-02-01 Kenichi Handa <handa@m17n.org>
20222
20223 * character.c (char_string): Use ASCII_CHAR_P instead of
20224 SINGLE_BYTE_CHAR_P.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * xdisp.c (handle_auto_composed_prop): Check if the last
20229 characters of auto-composed region is newly composed with the
20230 following characters.
20231 (handle_composition_prop): Fix checking of point being inside
20232 composition.
20233
202342008-02-01 Kenichi Handa <handa@m17n.org>
20235
20236 * fns.c (concat): Don't change multibyteness of the result by
20237 concatenating an 8-bit character.
20238
20239 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20240 multibyteness of the result when newelt is an 8-bit character.
20241
202422008-02-01 Dave Love <fx@gnu.org>
20243
20244 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20245 EMACS_INT.
20246
20247 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20248
20249 * xfaces.c (face_numeric_value): Declare dim size_t.
20250 (Finternal_lisp_face_equal_p): Remove unused f.
20251
20252 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20253 (MATRIX_ROW): Remove unused vars.
20254 (draw_glyphs, x_insert_glyphs, fast_find_position)
20255 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20256 byte/char counts.
20257
20258 * regex.c (regex_compile): Remove unused var.
20259
20260 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20261
20262 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20263 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20264
20265 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20266
20267 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20268
20269 * fileio.c (Fwrite_region): Remove unused var.
20270
20271 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20272 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20273
20274 * composite.c (Fremove_list_of_text_properties): Declare.
20275
20276 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20277 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20278 (coding_inherit_eol_type): Remove unused attrs.
20279 (detect_coding): Cast arg of detect_eol.
20280
20281 * charset.c (syms_of_charset): Remove unused var p.
20282 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20283 byte/char counts.
20284
20285 * casetab.c (set_case_table): Remove unused var.
20286
20287 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20288 unused vars.
20289
202902008-02-01 Dave Love <fx@gnu.org>
20291
20292 * xterm.c (x_bitmap_mask): Declare.
20293
202942008-02-01 Dave Love <fx@gnu.org>
20295
20296 * xterm.c (x_term_init): Fix type error.
20297
20298 * lisp.h: Add Funibyte_char_to_multibyte.
20299
20300 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20301 (Fset_coding_system_priority): Doc fix.
20302
20303 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20304
20305 * indent.c (check_composition): Make start and end EMACS_INT.
20306
20307 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20308
20309 * xdisp.c (handle_composition_prop, check_point_in_composition):
20310 Make buffer positions EMACS_INT.
20311
20312 * composite.c (find_composition, run_composition_function)
20313 (update_compositions, Ffind_composition_internal): Make buffer
20314 positions EMACS_INT.
20315
20316 * composite.h (find_composition, update_compositions): Make
20317 position args EMACS_INT.
20318
20319 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20320
20321 * intervals.c (get_property_and_range):
20322 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20323
20324 * unexalpha.c: Don't include varargs.h.
20325
203262008-02-01 Dave Love <fx@gnu.org>
20327
20328 * coding.h (ENCODE_UTF_8): New.
20329
20330 * Makefile.in (gtkutil.o): Depend on coding.h.
20331
20332 * coding.c (Fset_coding_system_priority): Doc fix.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20337 the case of auto saving.
20338
203392008-02-01 Andreas Schwab <schwab@suse.de>
20340
20341 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20342 `range' from GC.
20343
203442008-02-01 Kenichi Handa <handa@m17n.org>
20345
20346 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20347
203482008-02-01 Kenichi Handa <handa@m17n.org>
20349
20350 * fileio.c (choose_write_coding_system): Return a decided coding system.
20351 (Fwrite_region): Set Vlast_coding_system_used to the return value
20352 of choose_write_coding_system.
20353
203542008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * charset.c (Fset_charset_priority): Pay attention to duplicated
20357 arguments.
20358
20359 * coding.c (QCcategory): New variable.
20360 (syms_of_coding): Defsym it. Set all elements of
20361 Vcoding_category_table and their symbol values.
20362 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20363 coding-category-XXX, and coding-category-list.
20364 (Fdefine_coding_system_internal): Add category in the plist.
20365
203662008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * callproc.c (Fcall_process): Handle carryover correctly.
20369
20370 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20371 (raw_text_coding_system): Check NILP (coding_system).
20372 (coding_inherit_eol_type): Check NILP (coding_system) and
20373 NILP (parent).
20374 (consume_chars): Fix for the case of raw-text.
20375
20376 * process.c (read_process_output): Handle carryover correctly.
20377
203782008-02-01 Dave Love <fx@gnu.org>
20379
20380 * regex.c (re_search_2): Fix last change.
20381
203822008-02-01 Kenichi Handa <handa@m17n.org>
20383
20384 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20385 target_multibyte. Even in a unibyte case, return a converted
20386 multibyte char.
20387 (GET_CHAR_AFTER): New macro.
20388 (PATFETCH): Translate via multibyte char.
20389 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20390 (SETUP_MULTIBYTE_RANGE): New macro.
20391 (regex_compile): Setup compiled code so that its multibyteness
20392 matches that of a target. Fix the handling of "[X-YZ]" using
20393 SETUP_MULTIBYTE_RANGE.
20394 (analyse_first) <charset>: For filling fastmap for all multibyte
20395 characters, don't check by BASE_LEADING_CODE_P.
20396 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20397 the same as RE_MULTIBYTE_P (bufp) now.
20398 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20399 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20400 (TRANSLATE_VIA_MULTIBYTE): New macro.
20401 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20402 It is the same as RE_MULTIBYTE_P (bufp) now.
20403 <exactn>: Translate via multibyte.
20404 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20405 translate it.
20406 <charset, charset_not>: Fetch a character by
20407 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20408 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20409 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20410 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20411 by GET_CHAR_AFTER.
20412 (bcmp_translate): Likewise.
20413
20414 * search.c (compile_pattern): Check the member target_multibyte,
20415 not the member multibyte of buf.
20416
20417 * lread.c (read1): While reading a string, set force_singlebyte
20418 and force_multibyte correctly.
20419
20420 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20421 up of unibyte_to_multibyte_table.
20422
204232008-02-01 Kenichi Handa <handa@m17n.org>
20424
20425 * coding.c (setup_coding_system): If coding has
20426 post-read-conversion or pre-write-conversion, set
20427 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20428 respectively.
20429 (decode_coding_gap): Run post-read-conversion if any.
20430
20431 * fileio.c (Finsert_file_contents): Even if we read into a
20432 unibyte buffer, check if we must decode the result or not.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * coding.c (make_conversion_work_buffer): Change the work buffer
20437 name to the same one as that of Emacs 21.
20438
204392008-02-01 Kenichi Handa <handa@m17n.org>
20440
20441 * coding.h (make_conversion_work_buffer): Adjust prototype.
20442 (code_conversion_restore): Don't extern it.
20443
20444 * coding.c (detected_mask): Delete unused variable.
20445 (decode_coding_iso_2022): Pay attention to the byte sequence of
20446 CTEXT extended segment, and retain those bytes as is.
20447 (decode_coding_ccl): Delete unused variable `valids'.
20448 (setup_coding_system): Delete unused variable `category'.
20449 (consume_chars): Delete unused variable `category'. Make it work
20450 for non-multibyte case.
20451 (make_conversion_work_buffer): Change argument.
20452 (saved_coding): Delete unused variable.
20453 (code_conversion_restore): Don't check saved_coding->destination.
20454 (code_conversion_save): New function.
20455 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20456 instead of record_unwind_protect.
20457 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20458 (detect_coding_system): Delete unused variable `mask'.
20459 (Fdefine_coding_system_internal): Delete unused variable id.
20460
20461 * fileio.c (kill_workbuf_unwind): New function.
20462 (Finsert_file_contents): On replacing, call
20463 make_conversion_work_buffer with correct args, and call
20464 record_unwind_protect with the first arg kill_workbuf_unwind.
20465
20466 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20467
204682008-02-01 Kenichi Handa <handa@m17n.org>
20469
20470 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20471 (fontset_add): Fix for the case that TO is less than TO1.
20472 (Ffontset_info): Don't use fallback fontset on checking the
20473 default fontset.
20474 (dump_fontset): New function for debugging.
20475
20476 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20477 coding_type is Qcharset.
20478
204792008-02-01 Kenichi Handa <handa@m17n.org>
20480
20481 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20482 (map_char_table): Don't inherit the value from the parent on
20483 initializing VAL. Adjust for the above change.
20484
204852008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * coding.c (Qsignature, Qendian): Delete these variables.
20488 (syms_of_coding): Don't initialize them.
20489 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20490 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20491 detect_info->found.
20492 (decode_coding_utf_16): Don't detect BOM here.
20493 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20494 is NOT utf_16_without_bom.
20495 (setup_coding_system): For a coding system of type utf-16, check
20496 if the attribute :endian is Qbig or not (not nil or not), and set
20497 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20498 (detect_coding): If coding type is utf-16 and BOM detection is
20499 required, detect it.
20500 (Fdefine_coding_system_internal): For a coding system of type
20501 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20502
205032008-02-01 Kenichi Handa <handa@m17n.org>
20504
20505 * coding.c (coding_set_source): Fix for the case that the current
20506 buffer is different from coding->src_object.
20507 (decode_coding_object): Don't use the conversion work buffer if
20508 DST_OBJECT is a buffer.
20509
205102008-02-01 Dave Love <fx@gnu.org>
20511
20512 * lread.c (read_emacs_mule_char) [len==2]: Index
20513 emacs_mule_charset correctly.
20514
205152008-02-01 Dave Love <fx@gnu.org>
20516
20517 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20518 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20519 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20520 treated specially.)
20521 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20522 (detected_mask): Remove Big5 bits.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 The following changes are to make the font rescaling facility
20527 compatible with Emacs 21.
20528
20529 * xfaces.c (Vface_font_rescale_alist): Rename from
20530 Vface_resizing_fonts.
20531 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20532 (font_rescale_ratio): Rename from font_resizing_ratio.
20533 (split_font_name): Set font->rescale_ratio.
20534 (better_font_p): Pay attention to font->rescale_ratio.
20535 (build_scalable_font_name): Likewise. Change RESX, and RESY
20536 fields.
20537 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20538
205392008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20542 (Qutf_16_le): Remove these variables.
20543 (syms_of_coding): Don't DEFSYM them.
20544 (decode_coding_utf_16): Fix handling of BOM.
20545 (encode_coding_utf_16): Fix handling of BOM.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * fileio.c (Finsert_file_contents): On replacing, before decoding
20550 the file into the work buffer, set point of the work buffer to the end.
20551
205522008-02-01 Dave Love <fx@gnu.org>
20553
20554 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20555
205562008-02-01 Dave Love <fx@gnu.org>
20557
20558 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20559 and fix C types.
20560
205612008-02-01 Kenichi Handa <handa@m17n.org>
20562
20563 * xdisp.c (SKIP_GLYPHS): New macro.
20564 (set_cursor_from_row): Pay attention to string display properties.
20565
20566 * category.c (copy_category_entry): Fix for the case that RANGE
20567 is an integer.
20568
20569 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20570
20571 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20572
205732008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * charset.c (Fcharset_id_internal): New function.
20576 (syms_of_charset): Defsubr it.
20577
20578 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20579 with the last arg charset_list acquired from coding.
20580 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20581 the attribute coding_attr_ccl_valids.
20582
20583 * coding.h (enum define_coding_ccl_arg_index): Set the first
20584 member coding_arg_ccl_decoder to coding_arg_max.
20585
20586 * ccl.h (ccl_driver): Adjust prototype.
20587
20588 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20589 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20590 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20591 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20592 last arg Qnil.
20593
205942008-02-01 Kenichi Handa <handa@m17n.org>
20595
20596 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20597 call encode_char.
20598
20599 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20600
206012008-02-01 Dave Love <fx@gnu.org>
20602
20603 * composite.c (syms_of_composite): Make composition_hash_table weak.
20604
206052008-02-01 Kenichi Handa <handa@m17n.org>
20606
20607 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20608 (font_name_registry): Don't extern them.
20609 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20610
20611 * fontset.h (Qfontset): Don't extern it.
20612 (new_fontset_from_font_name): Extern it.
20613
20614 * fontset.c: Give 8 extra slots to fontset objects.
20615 (Qfontset_info): New variable.
20616 (syms_of_fontset): Defsym it.
20617 (FONTSET_FALLBACK): New macro.
20618 (fontset_face): Try also the default fontset.
20619 (make_fontset): Realize a fallback fontset from the default fontset.
20620 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20621 using split_font_name_into_vector and build_font_name_from_vector.
20622 (Fset_fontset_font): Access the elements of font_spec by enum
20623 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20624 name by using split_font_name_into_vector.
20625 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20626 generate a proper font name from the fontset name. Update
20627 Vfontset_alias_alist.
20628 (n_auto_fontsets): New variable.
20629 (new_fontset_from_font_name): New function.
20630 (Ffont_info): Store the information about fonts generated from the
20631 default fontset in the first extra slot of the returned char-table.
20632
20633 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20634 (font_name_registry): Delete function.
20635 (split_font_name_into_vector): New function.
20636 (build_font_name_from_vector): New function.
20637 (font_list): The argument REGISTRY is now a list of registry names.
20638 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20639 specifies an explicit font name, return the name as is. Make a
20640 list of registy names.
20641
20642 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20643 of x_new_fontset.
20644 (Fx_create_frame): Don't call x_new_fontset here. Just use
20645 x_list_fonts to check the existence of fonts.
20646
20647 * xterm.h (x_new_fontset): Adjust prototype.
20648
20649 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20650 string. Use new_fontset_from_font_name to create a fontset from a
20651 font name.
20652
206532008-02-01 Kenichi Handa <handa@m17n.org>
20654
20655 * syntax.c (Vfind_word_boundary_function_table): New name for
20656 Vnext_word_boundary_function_table.
20657 (find-word-boundary-function-table): New name for
20658 next-word-boundary-function-table.
20659
206602008-02-01 Dave Love <fx@gnu.org>
20661
20662 * Makefile.in: Fix some dependencies.
20663
20664 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20665 set it to nil before returning.
20666
20667 * composite.c (update_compositions): Fix type error.
20668
20669 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20670
206712008-02-01 Kenichi Handa <handa@m17n.org>
20672
20673 * xterm.c (x_new_font): Optimize for the case that the font is
20674 already set for the frame.
20675
206762008-02-01 Kenichi Handa <handa@m17n.org>
20677
20678 * chartab.c (char_table_ascii): Check if the char table contents
20679 is sub-char-table or not.
20680 (char_table_set, char_table_set_range): Fix argument to
20681 char_table_ascii.
20682
20683 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20684 (detect_coding_utf_8, detect_coding_utf_16)
20685 (detect_coding_emacs_mule, detect_coding_iso_2022)
20686 (detect_coding_sjis, detect_coding_big5)
20687 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20688 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20689 sequence is valid in this coding system. Change callers.
20690 (MAX_ANNOTATION_LENGTH): New macro.
20691 (ADD_ANNOTATION_DATA): New macro.
20692 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20693 ADD_ANNOTATION_DATA. Change the format of annotation data.
20694 (ADD_CHARSET_DATA): New macro.
20695 (emacs_mule_char): New argument ID. Change callers.
20696 (decode_coding_emacs_mule, decode_coding_iso_2022)
20697 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20698 Produce charset annotation data in coding->charbuf.
20699 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20700 to charset annotation data in coding->charbuf.
20701 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20702 coding->common_flags if the coding system is iso-2022 based and
20703 uses designation.
20704 (produce_composition): Adjust for the new annotation data format.
20705 (produce_charset): New function.
20706 (produce_annotation): Handle charset annotation.
20707 (handle_composition_annotation, handle_charset_annotation): New
20708 functions.
20709 (consume_chars): Handle charset annotation. Utilize the above two
20710 functions.
20711 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20712 buffer, get the deleted text as a string and set
20713 coding->src_object to that string.
20714 (detect_coding, detect_coding_system): Use the new struct
20715 coding_detection_info.
20716
20717 * coding.h (struct coding_detection_info): New structure.
20718 (struct coding_system): Adjust prototype of the member `detector'.
20719 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20720
207212008-02-01 Kenichi Handa <handa@m17n.org>
20722
20723 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20724
207252008-02-01 Dave Love <fx@gnu.org>
20726
20727 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20728 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20729 to new local and nullify apropos_accumulate before returning.
20730 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20731
207322008-02-01 Kenichi Handa <handa@m17n.org>
20733
20734 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20735 correctly.
e3eea1fc 20736
aac0c6e3
MR
207372008-02-01 Dave Love <fx@gnu.org>
20738
20739 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 The following changes are to make character composition happen
20744 automatically on displaying.
20745
20746 * Makefile.in (lisp, shortlisp): Add composite.elc.
20747
20748 * composite.h (Qauto_composed, Vauto_composition_function)
20749 (Qauto_composition_function): Extern them.
20750
20751 * composite.c (Vcomposition_function_table)
20752 (Qcomposition_function_table): Delete variables.
20753 (Qauto_composed, Vauto_composition_function)
20754 (Qauto_composition_function): New variables.
20755 (run_composition_function): Don't call
20756 compose-chars-after-function.
20757 (update_compositions): Clear `auto-composed' text property.
20758 (compose_chars_in_text): Delete this function.
20759 (syms_of_composite): Staticpro Qauto_composed and
20760 Qauto_composition_function. Declare Vauto_composition_function as
20761 a Lisp variable.
20762
20763 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20764
20765 * xdisp.c (it_props): Add an entry for Qauto_composed.
20766 (handle_auto_composed_prop): New function.
20767
20768 * xselect.c (selection_data_to_lisp_data): Don't call
20769 compose_chars_in_text.
20770
207712008-02-01 Dave Love <fx@gnu.org>
20772
20773 * keyboard.c (read_char): Modify checking around use of
20774 Vkeyboard_translate_table.
20775
20776 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20777 and fix C types.
20778
207792008-02-01 Kenichi Handa <handa@m17n.org>
20780
20781 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20782 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20783 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20784 the case that the last byte is '\r' correctly.
20785 (decode_coding): Flush out the unprocessed data correctly.
20786 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20787
207882008-02-01 Dave Love <fx@gnu.org>
20789
20790 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20791 Add XK_ISO... case.
20792 (xaw_scroll_callback): Revert last change.
20793
207942008-02-01 Kenichi Handa <handa@m17n.org>
20795
20796 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20797
207982008-02-01 Kenichi Handa <handa@m17n.org>
20799
20800 * xfaces.c (Vface_resizing_fonts): New variable.
20801 (struct font_name): New member `resizing_ratio'.
20802 (font_resizing_ratio): New function.
20803 (split_font_name): Set font->resizing_ratio.
20804 (better_font_p): Pay attention to font->resizing_ratio.
20805 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20806 RESX, and RESY fields.
20807 (try_alternative_families): Try scalable fonts if
20808 Vscalable_fonts_allowed is not Qt.
20809 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20810
208112008-02-01 Dave Love <fx@gnu.org>
20812
20813 * xterm.c (xaw_scroll_callback): Cast correctly.
20814
208152008-02-01 Dave Love <fx@gnu.org>
20816
20817 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20818 (lispy_kana_keys): Comment out.
20819 (make_lispy_event) [XK_kana_A]: Comment out.
20820
20821 * xterm.c (xaw_scroll_callback): Cast call_data.
20822 (XTread_socket): Deal with ASCII keysyms.
20823 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20824
208252008-02-01 Dave Love <fx@gnu.org>
20826
20827 * xterm.c (Vx_keysym_table): New.
20828 (syms_of_xterm): Initialize it.
20829 (XTread_socket): Use it.
20830 From head: Eliminate incorrect optimization that tried to avoid
20831 decoding the output of X*LookupString.
20832 (x_get_font_repertory): Delete charset declaration.
20833
208342008-02-01 Kenichi Handa <handa@m17n.org>
20835
20836 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20837 return 0.
20838 (Fdefine_coding_system_internal): Setup
20839 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20840
208412008-02-01 Dave Love <fx@gnu.org>
20842
20843 * coding.c (Fcheck_coding_system): Doc fix.
20844
20845 * editfns.c (Finsert_byte): Return a proper value.
20846
208472008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * coding.c (decode_coding): Fix args to translate_chars. Pay
20850 attention to Vstandard_translation_table_for_decode.
20851 (encode_coding): Fix args to translate_chars. Pay attention to
20852 Vstandard_translation_table_for_encode.
20853
20854 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20855 SINGLE_BYTE_CHAR_P.
20856
20857 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20858 not by SINGLE_BYTE_CHAR_P.
20859
20860 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20861 SINGLE_BYTE_CHAR_P.
20862
20863 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20864 SINGLE_BYTE_CHAR_P.
20865
20866 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20867 by SINGLE_BYTE_CHAR_P.
20868
20869 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20870 SINGLE_BYTE_CHAR_P.
20871
208722008-02-01 Dave Love <fx@gnu.org>
20873
20874 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20875
208762008-02-01 Dave Love <fx@gnu.org>
20877
20878 * fns.c (Flanginfo): Fix typo.
20879
20880 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20885 (detect_coding_emacs_mule, detect_coding_iso_2022)
20886 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20887 incomplete byte sequence. Don't update *mask when correctly detected.
20888 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20889 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20890 (detect_coding, detect_coding_system): Adjust for the changes above.
20891
208922008-02-01 Kenichi Handa <handa@m17n.org>
20893
20894 * character.c (char_string): Rename from
20895 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20896 (string_char): Rename from string_char.
20897
20898 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20899 if C is greater than MAX_3_BYTE_CHAR.
20900 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20901 string_char instead of string_char_with_unification.
20902
209032008-02-01 Dave Love <fx@gnu.org>
20904
20905 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20906
209072008-02-01 Kenichi Handa <handa@m17n.org>
20908
20909 * keymap.c (push_key_description): Pay attention to force_multibyte.
20910
20911 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20912
209132008-02-01 Dave Love <fx@gnu.org>
20914
20915 * charset.c (define_charset_internal): Rename `supprementary'.
20916
20917 * Makefile.in (lisp, shortlisp): Remove latin-N.
20918
209192008-02-01 Dave Love <fx@gnu.org>
20920
20921 * xfns.c (x_window, x_window): Use use_xim.
20922
20923 * xterm.c (use_xim): Initialize.
20924 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20925 (x_term_init): Maybe set use_xim.
20926
20927 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20928
209292008-02-01 Kenichi Handa <handa@m17n.org>
20930
20931 * search.c (search_buffer): Fix case-fold-search of multibyte
20932 characters.
20933 (boyer_moore): Rename the last argument to char_high_bits.
20934
209352008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * xdisp.c (display_string): Fix for the case of zero width glyph.
20938
20939 * xfns.c (x_set_font): Change the error message of the case that
20940 x_new_fontset returns Qt.
20941
20942 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20943 (Finternal_set_lisp_face_attribute): Use signal_error for the
20944 error of invalid fontset.
20945
20946 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20947 fontset, return Qt.
20948
209492008-02-01 Dave Love <fx@gnu.org>
20950
20951 * unexelf.c (unexec): Make .got handling not SGI-specific.
20952
20953 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20954
20955 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20956
20957 * keyboard.c (read_key_sequence): Fix type error.
20958
20959 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20960 type error.
20961
20962 * fontset.c (fontset_add): Return Lisp_Object.
20963
209642008-02-01 Dave Love <fx@gnu.org>
20965
20966 * charset.h (charset_ordered_list_tick): Declare extern.
20967
209682008-02-01 Kenichi Handa <handa@m17n.org>
20969
20970 The following changes (and some of 2008-02-01 changes of mine) are
20971 for handling syntax, category, and case conversion for unibyte
20972 characters by converting them to multibyte on the fly. With these
20973 changes, we don't have to setup syntax and case tables for unibyte
20974 characters in each language environment.
20975
20976 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20977 multibyte if necessary.
20978
20979 * bytecode.c (Fbyte_code): Likewise.
20980
20981 * character.h (LEADING_CODE_LATIN_1_MIN)
20982 (LEADING_CODE_LATIN_1_MAX): New macros.
20983 (unibyte_to_multibyte_table): Extern it.
20984 (unibyte_char_to_multibyte): New macro.
20985 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20986 (CHAR_LEADING_CODE): New macro.
20987 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20988
20989 * character.c (unibyte_to_multibyte_table): New variable.
20990 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20991 (multibyte_char_to_unibyte): If C is an eight-bit character,
20992 convert it to the corresponding byte value.
20993
20994 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20995 not 1, signals an error. Update the elements of
20996 unibyte_to_multibyte_table.
20997 (init_charset_once): Initialize unibyte_to_multibyte_table.
20998 (syms_of_charset): Define the charset `iso-8859-1'.
20999
21000 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21001 as is without converting it to unibyte. In a unibyte buffer,
21002 convert C to multibyte before checking the syntax.
21003
21004 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21005
21006 * minibuf.c (Fminibuffer_complete_word): Use the macro
21007 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21008
21009 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21010
21011 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21012 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21013 that is zero, convert an eight-bit char to multibyte.
21014 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21015 non-emacs case.
21016 (PATFETCH): Convert an eight-bit char to multibyte.
21017 (HANDLE_UNIBYTE_RANGE): New macro.
21018 (regex_compile): Setup the compiled pattern for multibyte chars
21019 even if the given regex string is unibyte. Use PATFETCH_RAW
21020 instead of PATFETCH in many places. To handle `charset'
21021 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21022 only for ASCII chars.
21023 (analyse_first) <exactn>: Simplify because the compiled pattern
21024 is multibyte.
21025 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21026 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21027 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21028 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21029 multibyte always 1.
21030 (re_search_2): In emacs, set the locale variable multibyte to 1,
21031 otherwise to 0. New local variable target_multibyte. Check it
21032 to decide the multibyteness of STR1 and STR2. If
21033 target_multibyte is zero, convert unibyte chars to multibyte
21034 before translating and checking fastmap.
21035 (TARGET_CHAR_AND_LENGTH): New macro.
21036 (re_match_2_internal): In emacs, set the locale variable multibyte
21037 to 1, otherwise to 0. New local variable target_multibyte. Check
21038 it to decide the multibyteness of STR1 and STR2. Use
21039 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21040 <charset, charset_not>: If multibyte is nonzero, check fastmap
21041 only for ASCII chars. Call bcmp_translate with
21042 target_multibyte, not with multibyte.
21043 <begline>: Declare the local variable C as `unsigned'.
21044 (bcmp_translate): Change the last arg name to target_multibyte.
21045
21046 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21047 the regexp pattern and the matching target. Set cp->buf.multibyte
21048 to the multibyteness of the regexp pattern. Set
21049 cp->but.target_multibyte to the multibyteness of the matching target.
21050 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21051 FETCH_STRING_CHAR_ADVANCE.
21052 (Freplace_match): Convert unibyte chars to multibyte.
21053
21054 * syntax.c (char_quoted, back_comment, scan_words)
21055 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21056 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21057 unibyte chars to multibyte.
21058 (skip_chars): Delete the arg syntaxp, and move the code for
21059 handling syntaxes to skip_syntaxes. Change callers.
21060 Fix the case that the multibyteness of STRING and the current
21061 buffer doesn't match.
21062 (skip_syntaxes): New function.
21063 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21064 SINGLE_BYTE_CHAR_P.
21065
210662008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * xfaces.c (QCfontset): New variable.
21069 (LFACE_FONTSET): New macro.
21070 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21071 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21072 (Finternal_set_lisp_face_attribute)
21073 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21074 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21075 check also LFACE_FONTSET_INDEX.
21076 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21077 attrs[LFACE_FONT_INDEX].
21078 (syms_of_xfaces): Intern and staticpro QCfontset.
21079
21080 * dispextern.h (enum lface_attribute_index): New member
21081 LFACE_FONTSET_INDEX.
21082
21083 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21084
210852008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * coding.c (coding_set_destination): Fix coding->destination for
21088 the case converting a region.
21089 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21090 (encode_coding_object): Fix coding->dst_pos and
21091 coding->dst_pos_byte for the case converting a region.
21092
21093 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21094
21095 * character.h (BYTE8_STRING): New macro.
21096
21097 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21098
210992008-02-01 Kenichi Handa <handa@m17n.org>
21100
21101 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21102 characters by octal form.
21103
21104 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21105
21106 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21107 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21108 _fetch_multibyte_char_len.
21109 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21110
21111 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21112
21113 * casefiddle.c (casify_object): Simplify. Handle the case that
21114 the case conversion change the byte length.
21115 (casify_region): Likewise.
21116
21117 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21118
21119 * character.c (_fetch_multibyte_char_len): Delete this variable.
21120 (syms_of_character): Setup Vprintable_chars.
21121
21122 * editfns.c (Fchar_equal): Fix for the unibyte case.
21123 (Finsert_byte): New function.
21124 (syms_of_editfns): Defsubr it.
21125
21126 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21127 of direct code 0x3ffff.
21128
21129 * search.c (Freplace_match): Fix for the unibyte case.
21130
211312008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * lread.c (safe_to_load_p): Fix the logic.
21134
21135 * syntax.c (scan_words): Don't treat characters belonging to
21136 different scripts as constituting a word.
21137
21138 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21139
21140 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21141
21142 * emacs.c (main): In the case of --unibyte, instead of aborting on
21143 finding non-empty buffer, make it unibyte.
21144
211452008-02-01 Kenichi Handa <handa@m17n.org>
21146
21147 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21148 to create a fontset.
21149
211502008-02-01 Dave Love <fx@gnu.org>
21151
21152 * character.c (Funibyte_char_to_multibyte): Doc fix.
21153
21154 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21155
211562008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * fontset.c (fontset_add): Make the type `int'.
21159 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21160
21161 * character.c (unibyte_char_to_multibyte)
21162 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21163 charset_unibyte, not charset_primary.
21164
21165 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21166
21167 * charset.c (charset_unibyte): Rename from charset_primary.
21168 (Funibyte_charset): Rename from Fprimary_charset.
21169 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21170 (syms_of_charset): Adjust for the above changes.
21171
21172 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21173 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21174 it->multibyte_p is zero.
21175
21176 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21177 Delete extern.
21178
211792008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * coding.c (Fdefine_coding_system_internal): Fix category setting
21182 for a coding system of type iso-2022.
21183
211842008-02-01 Kenichi Handa <handa@m17n.org>
21185
21186 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21187
211882008-02-01 Kenichi Handa <handa@m17n.org>
21189
21190 * syntax.c (Vnext_word_boundary_function_table): New variable.
21191 (next-word-boundary-function-table): Declare it as a Lisp variable
21192 in syms_of_syntax.
21193 (scan_words): Call functions in Vnext_word_boundary_function_table
21194 if any.
21195
21196 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21197
21198 * fontset.c (fs_load_font): If fontp->charset is not negative,
21199 return fontp without setting its members.
21200
212012008-02-01 Dave Love <fx@gnu.org>
21202
21203 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21204
21205 * m/sparc.h (HAVE_ALLOCA): Delete.
21206
21207 * s/irix6-5.h: Don't include strings.h.
21208 (bcopy, bzero, bcmp): Don't undef.
21209
21210 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21211
21212 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21213 (TIOCSIGSEND): Don't test IRIX6.
21214 (bcopy, bzero, bcmp): Define conditionally.
21215
212162008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 * buffer.c (Qas, Qmake, Qto): New variables.
21219 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21220 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21221
21222 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21223 we are inserting a process output into a multibyte buffer.
21224
21225 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21226 multibyte_char_to_unibyte.
21227
21228 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21229 by the primary charset, make it eight-bit char.
21230 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21231
21232 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21233 (charset_8_bit__control, charset_8_bit_graphic)
21234 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21235 (define_charset_internal): New function.
21236 (syms_of_charset): Call define_charset_internal for pre-defined
21237 charsets.
21238
21239 * charset.h (charset_8_bit): Extern it.
21240
21241 * coding.c (make_conversion_work_buffer): Adjust for the change
21242 of Fset_buffer_multibyte.
21243 (encode_coding_raw_text): Increment p0 in the loop.
21244
21245 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21246
21247 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21248 for the change of Fset_buffer_multibyte.
21249
21250 * fns.c (Fstring_to_multibyte): New function.
21251 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21252
212532008-02-01 Dave Love <fx@gnu.org>
21254
21255 * xfns.c (x_put_x_image): Declare args.
21256
21257 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21258 (try_font_list): Declare an arg.
21259
21260 * xdisp.c (message2_nolog, set_message): Declare an arg.
21261
21262 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21263
21264 * syntax.c (scan_sexps_forward): Declare an arg.
21265
21266 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21267 Declare an arg.
21268
21269 * lisp.h (Fnew_fontset): Declare.
21270
21271 * keymap.c (push_key_description): Call CHARACTERP correctly.
21272
21273 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21274 (face_for_char): Delete unused vars.
21275 (Fset_fontset_font): Doc fix. Delete unused vars.
21276
21277 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21278
21279 * composite.c (update_compositions): Declare arg.
21280
21281 * cm.c (calccost, cmgoto): Declare args.
21282
21283 * charset.c: Remove `emacs' conditional. Doc fixes.
21284 (map_char_table_for_charset): Declare.
21285
21286 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21287
21288 * ccl.c: Remove `emacs' conditional.
21289
212902008-02-01 Kenichi Handa <handa@m17n.org>
21291
21292 The following changes are to allow specifying multiple font
21293 patterns for a character range (specified by script or charset).
21294
21295 * Makefile.in (abbrev.o): Depend on syntax.h.
21296 (xfaces.o): Depend on charset.h.
21297
21298 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21299 SINGLE_BYTE_CHAR_P.
21300
21301 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21302
21303 * character.h (Vchar_script_table): Extern it.
21304
21305 * character.c (Vscript_alist): Delete.
21306 (Vchar_script_table, Qchar_script_table): New variable.
21307 (syms_of_character): Declare Vchar_script_table as a lisp variable
21308 and initialize it.
21309
21310 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21311 have property char-table-extra-slots, make no extra slot.
21312
21313 * dispextern.h (struct face): Delete member `charset'.
21314 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21315 SINGLE_BYTE_CHAR_P.
21316 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21317 Add prototypes.
21318 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21319 (generate_ascii_font_name): Rename from generate_ascii_font.
21320
21321 * fontset.h (get_font_repertory_func): New prototype.
21322 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21323 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21324
21325 * fontset.c (Qprepend, Qappend): New variables.
21326 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21327 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21328 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21329 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21330 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21331 (load_font_get_repertory): New functions.
21332 (fontset_set): Delete.
21333 (fontset_face): New arg FACE. Return face ID, not face.
21334 Complete re-write to handle new fontset structure. Change caller.
21335 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21336 (face_for_char): Don't call lookup_face.
21337 (make_fontset_for_ascii_face): New arg FACE.
21338 (fs_load_font): New arg CHARSET_ID. Don't check
21339 Vfont_encoding_alist here.
21340 (find_font_encoding): New function.
21341 (list_fontsets): Use STRINGP, not ! NILP.
21342 (accumulate_script_ranges): New function.
21343 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21344 re-written to handle new fontset structure.
21345 (Ffontset_font): Return a copy of element.
21346 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21347 docstring of font-encoding-alist.
21348
21349 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21350 (Fset_fotset_font): Fix arguments to 5.
21351
21352 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21353
21354 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21355 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21356 (highlight_trailing_whitespace): Adjust for the change of
21357 lookup_named_face.
21358
21359 * xfaces.c: Include charset.h.
21360 (load_face_font): Delete argument C. Change caller.
21361 (generate_ascii_font_name): Rename from generate_ascii_font.
21362 (font_name_registry): New function.
21363 (cache_face): Store ascii faces before non-ascii faces in buckets.
21364 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21365 Lookup only ascii faces.
21366 (lookup_non_ascii_face): New function.
21367 (lookup_named_face): Delete argument C. Change caller.
21368 (lookup_derived_face): Delete argument C. Change caller.
21369 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21370 a string, just call font_list with it.
21371 (choose_face_font): Delete arguments FACE and C. New arg
21372 FONT_SPEC. Change caller.
21373 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21374 Change caller.
21375 (realize_non_ascii_face): New function.
21376 (realize_x_face): Call load_face_font here.
21377 (realize_tty_face): Delete argument C. Change caller.
21378 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21379 get a face ID.
21380 (dump_realized_face): Don't print charset of FACE.
21381
21382 * xfns.c (x_set_font): Always call x_new_fontset and
21383 store_frame_parameter.
21384 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21385 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21386
21387 * xterm.h (x_get_font_repertory): Extern it.
21388
21389 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21390 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21391 it->multibyte_p is zero.
21392 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21393 (x_new_fontset): If FONTSETNAME doesn't match any existing
21394 fontsets, create a new one.
21395 (x_get_font_repertory): New function.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * coding.c (Ffind_coding_systems_region_internal): Detect an
21400 ASCII only string correctly.
21401
21402 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21403 version is 0.
21404
214052008-02-01 Kenichi Handa <handa@m17n.org>
21406
21407 * lread.c: Include "coding.h".
21408 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21409 (load_each_byte, unread_char): New variables.
21410 (readchar_backlog): Delete.
21411 (readchar): Return a character unless load_each_byte is nonzero.
21412 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21413 cons. If unread_char is not -1, simply return it.
21414 (unreadchar): Handle the case that readcharfun is
21415 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21416 (read_multibyte): Delete.
21417 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21418 (read_emacs_mule_char): New functions.
21419 (Fload): Even if the file doesn't have the extension ".elc", if
21420 safe_to_load_p returns a positive version number, assume that the
21421 file contains bytecompiled code. If the version is less than 22,
21422 load the file while decoding multibyte sequences by emacs-mule.
21423 (readevalloop): Don't use readchar_backlog.
21424 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21425 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21426 (read_escape): Delete the arg BYTEREP.
21427 (read1): Set load_each_byte to 1 temporarily while handling
21428 #@NUMBER. Don't call read_multibyte.
21429 (read_vector): Call Fread with a cons. If readcharfun is
21430 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21431 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21432 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21433 and Qload_force_doc_strings.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * xdisp.c (face_before_or_after_it_pos): Call
21438 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21439
214402008-02-01 Kenichi Handa <handa@m17n.org>
21441
21442 * character.h (TRAILING_CODE_P): New macro.
21443 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21444 (string_char_with_unification): Fix prototype.
21445 (Vscript_alist): Extern it.
21446
21447 * character.c (Vscript_alist): New variable.
21448 (string_char_with_unification, str_as_unibyte)
21449 (string_escape_byte8): Add `const' to local variables.
21450 (syms_of_character): Declare script-alist as a Lisp variable.
21451
21452 * charset.h (Vcharset_ordered_list): Extern it.
21453 (charset_ordered_list_tick): Extern it.
21454 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21455 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21456 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21457 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21458 (Funify_charset): Adjust for the change of Funify_charset.
21459
21460 * charset.c (charset_ordered_list_tick): New variable.
21461 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21462 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21463 deunify instead of unify a charset.
aac0c6e3
MR
21464 (string_xstring_p): Add `const' to local variables.
21465 (find_charsets_in_text): Add `const' to arguments and local variables.
21466 (encode_char): Adjust for the change of Funify_charset. Fix
21467 detecting of invalid code.
21468 (Fset_charset_priority): Increment charset_ordered_list_tick.
21469 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21470 and TO_CODE.
21471
21472 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21473 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21474 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21475 (decode_coding_ccl, consume_chars)
21476 (Ffind_coding_systems_region_internal)
21477 (Fcheck_coding_systems_region): Add `const' to local variables.
21478
21479 * print.c (print_object): Use octal form for printing the
21480 contents of a bool vector.
21481
214822008-02-01 Dave Love <fx@gnu.org>
21483
21484 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21485 <version == 20>: Refuse to load.
21486
214872008-02-01 Dave Love <fx@gnu.org>
21488
21489 * fns.c: Move coding.h.
21490 (Qcodeset, Qdays, Qmonths): New.
21491 (concat): Use CHARACTERP instead of INTEGERP.
21492 (Flocale_codeset): Delete.
21493 (Flanginfo): New function.
21494 (syms_of_fns): Change accordingly.
21495
21496 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21497
214982008-02-01 Dave Love <fx@gnu.org>
21499
21500 * casetab.c (init_casetab_once, init_casetab_once): Fix
21501 CHAR_TABLE_SET call.
21502
21503 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21504
21505 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21506
21507 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21508 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21509 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21510
21511 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21512
21513 * coding.c (ENCODE_DESIGNATION, decode_eol)
21514 (make_conversion_work_buffer, code_conversion_restore)
21515 (Fdefine_coding_system_internal): Convert Lisp types.
21516 (code_conversion_restore): Use EQ, not ==.
21517 (Fencode_coding_string): Fix code_convert_string call.
21518
21519 * coding.h (code_convert_region): Fix prototype.
21520
21521 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21522
21523 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21524 (Ffontset_info): Convert Lisp types.
21525
21526 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21527
21528 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21529
21530 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21531
21532 * chartab.c: Include "...h", not <...h> in some cases.
21533
21534 * callproc.c (Fcall_process): Remove unused variables.
21535
215362008-02-01 Dave Love <fx@gnu.org>
21537
21538 * coding.c (Fset_coding_system_priority): Allow null arg list.
21539
215402008-02-01 Dave Love <fx@gnu.org>
21541
21542 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21543 (Fself_insert_and_exit): Use CHARACTERP.
21544
21545 * callproc.c (Fcall_process): Remove unused vars.
21546
21547 * xterm.c (XTread_socket): Add extra dead keysyms.
21548
21549 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21550
21551 * dispextern.h: Remove prototypes for redraw_frame,
21552 redraw_garbaged_frames.
21553
21554 * cmds.c (Fself_insert_command): Use CHARACTERP.
21555
21556 * chartab.c (make_sub_char_table): Remove unused var.
21557 (Fset_char_table_default, Fmap_char_table): Doc fix.
21558
21559 * keymap.c (access_keymap): Remove generic char code.
21560 (push_key_description): Use CHARACTERP.
21561
215622008-02-01 Dave Love <fx@gnu.org>
21563
21564 * charset.c: Doc fixes.
21565 (Funify_charset): Extra checking.
21566
215672008-02-01 Dave Love <fx@gnu.org>
21568
21569 * lread.c: Remove some unused variables.
21570 (safe_to_load_p): If safe, return the magic number version byte.
21571 (Fload): Maybe use load-with-code-conversion.
21572
215732008-02-01 Kenichi Handa <handa@m17n.org>
21574
21575 * category.c (Fmodify_category_entry): Don't modify the contents
21576 of category_set for characters out of the range. Avoid
21577 unnecessary modification.
21578
21579 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21580 Vchar_unify_table. The default value of the table is now nil.
21581
21582 * character.c (syms_of_character): Setup Vchar_width_table for
21583 eight-bit-control and raw-byte chars.
21584
21585 * charset.h (enum define_charset_arg_index): Delete
21586 charset_arg_parents and add charset_arg_subset and
21587 charset_arg_superset.
21588 (enum charset_attr_index): Delete charset_parents and add
21589 charset_subset and charset_superset.
21590 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21591 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21592 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21593 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21594 (CHARSET_SUPERSET): New macros.
21595 (charset_work): Extern it.
21596 (ENCODE_CHAR): Use charset_work.
21597 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21598 (map_charset_chars): Extern it.
21599
21600 * charset.c (load_charset_map): Set the default value of encoder
21601 and deunifier char-tables to nil.
21602 (map_charset_chars): Change argument. Change callers. Use
21603 map_char_table_for_charset instead of map_char_table.
21604 (Fmap_charset_chars): New optional args from_code and to_code.
21605 (Fdefine_charset_internal): Adjust for the change of
21606 `define-charset' (:parents -> :subset or :superset).
21607 (charset_work): New variable.
21608 (encode_char, syms_of_charset): Adjust for the change of
21609 Fdefine_charset_internal.
21610 (Ffind_charset_string): Setup the vector `charsets' correctly.
21611
21612 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21613 the previous change.
21614 (char_table_ref_and_range): Adjust for the above change.
21615 (map_sub_char_table_for_charset): New function.
21616 (map_char_table_for_charset): New function.
21617
21618 * keymap.c (describe_vector): Handle a char-table directly here.
21619 (describe_char_table): Delete.
21620
21621 * lisp.h (map_charset_chars): Delete.
21622
216232008-02-01 Dave Love <fx@gnu.org>
21624
21625 * fns.c (count_combining): Comment out (unused).
21626 (Flocale_codeset): New.
21627 (syms_of_fns): Defsubr it.
21628
21629 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21630 (size_t): Remove.
21631
216322008-02-01 Dave Love <fx@gnu.org>
21633
21634 * Makefile.in (chartab.o): Depend on charset.h.
21635
216362008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * character.c (syms_of_character): Set the default value of
21639 Vprintable_chars to Qnil.
21640
216412008-02-01 Dave Love <fx@gnu.org>
21642
21643 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21644
216452008-02-01 Kenichi Handa <handa@m17n.org>
21646
21647 * charset.c (load_charset_map): Handle the case that from < to
21648 correctly.
21649
21650 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21651 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21652 Pay attention to raw-8-bit chars.
21653
216542008-02-01 Kenichi Handa <handa@m17n.org>
21655
21656 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21657 It is not bytecompiled now.
21658
21659 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21660 (charset_jisx0208): New variables.
21661 (Fdefine_charset_internal): Setup them if appropriate.
21662 (init_charset_once): Initialize them to -1.
21663
21664 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21665 (charset_jisx0208): Extern them.
21666
21667 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21668 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21669 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21670 (setup_iso_safe_charsets): Fix arguments to Fassq.
21671 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21672 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21673 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21674 (encode_coding_iso_2022): Change the 1st arg to
21675 ENCODE_ISO_CHARACTER to a variable.
21676
216772008-02-01 Kenichi Handa <handa@m17n.org>
21678
21679 * charset.h (enum define_charset_arg_index): New enums
21680 charset_arg_min_code and charset_arg_max_code.
21681 (struct charset): New member char_index_offset.
21682
21683 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21684 Take charset->char_index_offset into account.
21685 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21686 args[charset_arg_max_code]. Setup charset.char_index_offset.
21687 (syms_of_charset): Fix args to Fdefine_charset_internal.
21688
216892008-02-01 Dave Love <fx@gnu.org>
21690
21691 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21692
216932008-02-01 Dave Love <fx@gnu.org>
21694
21695 * coding.c: Doc fixes.
21696 (Fcoding_system_aliases): Fix return value.
21697 (Qmac): Remove (duplicated) definition.
21698
216992008-02-01 Dave Love <fx@gnu.org>
21700
362654a6
JB
21701 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21702 New functions.
aac0c6e3
MR
21703
21704 * character.c (Fstring): Doc fix.
21705
21706 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21707
362654a6 21708 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21709 (font-encoding-alist): Doc fix.
21710
217112008-02-01 Dave Love <fx@gnu.org>
21712
21713 * term.c (costs_set): Declare static, non-initialized for pcc.
21714 (encode_terminal_code): Remove unused var.
21715
21716 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21717 for K&R.
21718
21719 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21720
21721 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21722 (suffixes): Move out of make_subsidiaries for K&R.
21723
21724 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21725
21726 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21727
217282008-02-01 Dave Love <fx@gnu.org>
21729
21730 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21731
21732 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21733
217342008-02-01 Yong Lu <lyongu@asia-infonet.com>
21735
21736 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21737
21738 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21739
217402008-02-01 Kenichi Handa <handa@m17n.org>
21741
21742 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21743 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21744
217452008-02-01 Kenichi Handa <handa@m17n.org>
21746
21747 * coding.c (decode_coding_charset): Adjust for the change of
21748 Fdefine_coding_system_internal.
21749 (Fdefine_coding_system_internal): For a coding system of
21750 `charset' type, store a list of charset IDs in
21751 `charset_attr_charset_valids' element of coding attributes.
21752
217532008-02-01 Kenichi Handa <handa@m17n.org>
21754
21755 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21756 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21757 caller. Handle 2-byte and 3-byte charsets correctly.
21758 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21759 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21760 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21761 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21762 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21763 sequence.
21764 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21765 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21766 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21767 and alt&rule composition.
21768 (decode_coding_iso_2022): Handle composition correctly.
21769 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21770
21771 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21772 re-defining a charset. If the charset has :emacs-mule-id, setup
21773 emacs_mule_bytes.
21774 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21775
217762008-02-01 Kenichi Handa <handa@m17n.org>
21777
21778 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21779 (encode_coding_big5, encode_coding_charset): If coding requires safe
21780 encoding, produce a character specified by
21781 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21782
217832008-02-01 Dave Love <fx@gnu.org>
21784
21785 * xterm.c (XSetIMValues): Declare.
21786
21787 * process.c: Conditionally include sys/wait.h, pty.h.
21788
21789 * print.c (print_object): Fix print format for 64-bit systems.
21790
21791 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21792
21793 * buffer.c (emacs_strerror): Declare.
21794
21795 * fontset.c (Fclear_face_cache): Declare.
21796 (accumulate_font_info): Comment-out (unused).
21797 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21798 variables.
21799
21800 * character.h (string_escape_byte8): Declare.
21801
21802 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21803 unused vars.
21804 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21805 (Fmap_charset_chars): Doc fix.
21806
21807 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21808 (Fset_coding_system_priority, Fset_coding_system_priority)
21809 (Fdefine_coding_system_internal): Doc fix.
21810
218112008-02-01 Dave Love <fx@gnu.org>
21812
21813 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21814
218152008-02-01 Kenichi Handa <handa@m17n.org>
21816
21817 * character.c (string_escape_byte8): Make multibyte string with
21818 correct size.
21819
21820 * charset.c (Fmake_char): Delete unnecessary code.
21821
218222008-02-01 Kenichi Handa <handa@m17n.org>
21823
21824 * xfns.c (x_encode_text): Allocate coding.destination here, and
21825 call encode_coding_object with dst_object Qnil.
21826
21827 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21828 multibyte form correctly.
21829
21830 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21831 against Vfont_encoding_alist.
21832
21833 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21834 handling of charset list.
21835 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21836 (decode_coding_object): Move point to coding->dst_pos before
21837 calling post-read-conversion function.
21838 (encode_coding_object): Give correct arguments to
21839 pre-write-conversion. Ignore the return value of
21840 pre-write-conversion function. Pay attention to the case that
21841 pre-write-conversion changes the current buffer. If dst_object is
21842 Qt, even if coding->src_bytes is zero, allocate at least one byte
21843 to coding->destination.
21844
21845 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21846
21847 * charset.c (Fmake_char): Make it more backward compatible.
21848 (Fmap_charset_chars): Fix docstring.
21849
218502008-02-01 Dave Love <fx@gnu.org>
21851
21852 * coding.c: Doc fixes.
21853 (Fdefine_coding_system_alias): Use names, not symbols, in
21854 coding-system-alist.
21855
218562008-02-01 Kenichi Handa <handa@m17n.org>
21857
21858 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21859 of calling free_realized_face.
21860
218612008-02-01 Yong Lu <lyongu@asia-infonet.com>
21862
21863 * charset.c (read_hex): Don't treat SPC as a comment starter.
21864 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21865 (Fdecode_char): Fix typo.
21866
218672008-02-01 Kenichi Handa <handa@m17n.org>
21868
21869 * charset.h (struct charset): New member `code_space_mask'.
21870
21871 * coding.c (coding_set_source): Delete the local variable beg_byte.
21872 (encode_coding_charset, Fdefine_coding_system_internal):
21873 Delete the local variable charset.
21874 (Fdefine_coding_system_internal): Setup
21875 attrs[coding_attr_charset_valids] correctly.
21876
21877 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21878 member to check if CODE is valid or not.
21879 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21880 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21881 is within the range of charset->min_code and carset->max_code.
21882
218832008-02-01 Dave Love <fx@gnu.org>
21884
21885 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21886
21887 * dispextern.h (generate_ascii_font): Fix return type.
21888
21889 * xfaces.c (generate_ascii_font): Fix arg declaration.
21890
21891 * coding.c (coding_inherit_eol_type)
21892 (Fset_terminal_coding_system_internal)
21893 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21894
218952008-02-01 Kenichi Handa <handa@m17n.org>
21896
21897 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21898 multiple charsets correctly.
21899
219002008-02-01 Kenichi Handa <handa@m17n.org>
21901
21902 * search.c (boyer_moore): Fix handling of multibyte character
21903 translation.
21904
21905 * xdisp.c (display_mode_element): When the variable `elt' is
21906 changed, update `this' and `lisp_string'.
21907
219082008-02-01 Kenichi Handa <handa@m17n.org>
21909
21910 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21911
21912 * callproc.c (Fcall_process): Be sure to give the current buffer
21913 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21914
21915 * charset.c (struct charset_map_entries): New struct.
21916 (load_charset_map): Rename from parse_charset_map. New args
21917 entries and n_entries. Change caller.
21918 (load_charset_map_from_file): Rename from load_charset_map.
21919 Change caller. New arg control_flag. Call load_charset_map at
21920 the tail.
21921 (load_charset_map_from_vector): New function.
21922 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21923 (encode_char): If the charset is compact, change a character index
21924 to a code point.
21925
21926 * coding.c (coding_alloc_by_making_gap): Check the case that the
21927 source and destination are the same correctly.
21928 (decode_coding_raw_text): Set coding->consumed_char and
21929 coding->consumed to 0.
21930 (produce_chars): If coding->chars_at_source is nonzero, update
21931 coding->consumed_char and coding->consumed before calling
21932 alloc_destination.
21933 (Fdefine_coding_system_alias): Register ALIAS in
21934 Vcoding_system_alist.
21935 (syms_of_coding): Define `no-conversion' coding system at the tail.
21936
21937 * fileio.c (Finsert_file_contents): Set coding_system instead of
21938 val. If the current buffer is multibyte, always call
21939 decode_coding_gap.
21940
21941 * xfaces.c (try_font_list): Give higher priority to fontset's
21942 family than face's family.
21943
219442008-02-01 Kenichi Handa <handa@m17n.org>
21945
21946 * callproc.c (Fcall_process): Be sure to give the current buffer
21947 to decode_coding_c_string.
21948
21949 * xfaces.c (try_font_list): Give a family specified in a fontset
21950 higher priority than a family specified in a face.
21951
219522008-02-01 Kenichi Handa <handa@m17n.org>
21953
21954 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21955 Fix arguments to insert_from_buffer.
21956
21957 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21958
219592008-02-01 Kenichi Handa <handa@m17n.org>
21960
21961 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21962 (decode_coding_gap): Set coding->dst_multibyte correctly.
21963
219642008-02-01 Kenichi Handa <handa@m17n.org>
21965
21966 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21967 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21968 (encode_coding_utf_16): Substitute coding->default_char for
21969 non-Unicode characters.
21970 (decode_coding): Don't call record_insert here.
21971 (setup_coding_system): Initialize `surrogate' of
21972 coding->spec.utf_16 to 0.
21973 (EMIT_ONE_BYTE): Fix for multibyte case.
21974
21975 * insdel.c (insert_from_gap): Call record_insert.
21976
219772008-02-01 Kenichi Handa <handa@m17n.org>
21978
21979 * casefiddle.c (casify_region): Fix multibyte case.
21980
21981 * character.c (c_string_width): Add return type `int'.
21982 (char_string_with_unification): Delete arg ADVANCED.
21983
21984 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21985 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21986 (CHAR_STRING_ADVANCE): Make it do-while statement.
21987
21988 * chartab.c (sub_char_table_set_range): Optimize for the case
21989 DEPTH == 3. Add workaround code for a GCC optimization bug.
21990
21991 * charset.c (parse_charset_map): Remove an unused variable.
21992
21993 * coding.c: Delete unused variables.
21994
21995 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21996 earlier. If inserted is zero and the coding system doesn't
21997 require flushing, don't call decode_coding_gap.
21998
21999 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 The following changes are for using Unicode as an internal
22004 character model, and use UTF-8 format for buffer/string
22005 representation.
22006
22007 * .gdbinit (xchartable): Adjust for the change of char table structure.
22008 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22009
22010 * Makefile.in (obj): Add character.o and chartab.o.
22011 (lisp, shortlisp): Remove utf-8.elc.
22012 (*.o): For many files, change dependency on charset.h to
22013 character.h, and add dependency on character.h.
22014 (character.o, chartab.o): New targets.
22015
22016 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22017 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22018 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22019 of "charset.h".
22020
22021 * dired.c, filelock.c: Include "character.h".
22022
22023 * alloc.c: Include "character.h" instead of "charset.h".
22024 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22025 (syms_of_alloc): Remove defsubr for Smake_char_table.
22026
22027 * buffer.c: Include "character.h" instead of "charset.h", don't
22028 include "coding.h".
22029 (Fset_buffer_multibyte): Adjust for UTF-8.
22030
22031 * buffer.h: EXFUN Fbuffer_live_p.
22032
22033 * callproc.c: Include "character.h" instead of "charset.h".
22034 (Fcall_process): Big change for the new code-conversion APIs.
22035
22036 * casetab.c: Include "character.h" instead of "charset.h".
22037 (set_canon, set_identity, shuffle): Adjust for the new
22038 map_char_table spec.
22039 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22040 accessing the char table structure.
22041
22042 * chartab.c: New file that implements char table.
22043
22044 * category.c: Include "character.h".
22045 (copy_category_entry): New function.
22046 (copy_category_table): Call map_char_table and copy_category_entry.
22047 (Fmake_category_table): Initialize all top-level slots.
22048 (char_category_set): New function.
22049 (modify_lower_category_set): Delete.
22050 (Fmodify_category_entry): Call char_table_ref_and_range.
22051
22052 * category.h (CATEGORY_SET): Just call char_category_set.
22053
22054 * ccl.c: Include "character.h".
22055 (Qccl, Qcclp): New variables.
22056 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22057 it's less than 256.
22058 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22059 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22060 and DST type.
22061 (ccl_driver): Change types of argument, adjust code accordingly.
22062 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22063 ccl_driver.
22064 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22065
22066 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22067 New members src_multibyte, dst_multibyte, consumed, and produced.
22068 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22069 (CODING_SPEC_CCL_PROGRAM): New macro.
22070 (ccl_driver): Update prototype.
22071 (Qccl, Qcclp, Fccl_program_p): Extern them.
22072 (CHECK_CCL_PROGRAM): New macro.
22073
22074 * character.c, character.h, chartab.c: New files.
22075
22076 * charset.c: Mostly re-written. Move character and multibyte sequence
22077 handling codes to character.c.
22078
22079 * charset.h: Mostly re-written. Move character and multibyte sequence
22080 handling codes to character.h.
22081
22082 * coding.c, coding.h: Mostly re-written.
22083
22084 * composite.c: Include "character.h" instead of "charset.h".
22085 (CHAR_WIDTH): Move to character.h.
22086 (HASH_KEY, HASH_VALUE): Delete.
22087
22088 * composite.h (enum composition_method): Change order of enumeration
22089 symbols.
22090
22091 * data.c: Include "character.h" instead of "charset.h".
22092 (Faref): Call CHAR_TABLE_REF for a char table.
22093 (Faset): Call CHAR_TABLE_SET for a char table.
22094
22095 * dispextern.h (free_realized_face, check_face_attribytes)
22096 (generate_ascii_font): Extern them.
22097 (free_realized_multibyte_face): Delete extern.
22098
22099 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22100 table structure.
22101
22102 * editfns.c: Include "character.h" instead of "charset.h".
22103 (Fchar_to_string): Always call CHAR_STRING.
22104
22105 * emacs.c (main): Call init_charset_once, init_charset,
22106 syms_of_chartab, and syms_of_character.
22107
22108 * fileio.c: Include "character.h" instead of "charset.h".
22109 (Finsert_file_contents): Big change for the new code-conversion API.
22110 (choose_write_coding_system, Fwrite_region): Likewise.
22111 (build_annotations_2): Delete.
22112 (e_write): Big change for the new code-conversion API.
22113
22114 * fns.c: Include "character.h" instead of "charset.h".
22115 (copy_sub_char_table): Move to chartab.c.
22116 (Fcopy_sequence): Call copy_char_table for a char table.
22117 (concat): Delete codes calling count_multibyte.
22118 (string_char_to_byte, string_byte_to_char): Adjust for the new
22119 multibyte form.
22120 (internal_equal): Adjust for the change of char table structure.
22121 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22122 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22123 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22124 (char_table_translate, optimize_sub_char_table)
22125 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22126 chartab.c.
22127 (char_table_ref_and_index): Delete.
22128 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22129 (Fmd5): Call preferred_coding_system instead of accessing
22130 Vcoding_category_list. Adjust for the new code-conversion API.
22131 (syms_of_fns): Move defsubr for char table related functions to
22132 chartab.c.
22133
22134 * fontset.c: Mostly re-written.
22135
22136 * fontset.h (struct font_info): Change type of the member encoding_type.
22137 (enum FONT_SPEC_INDEX): New enum.
22138 (fontset_font_pattern, fs_load_font): Update prototype.
22139 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22140
22141 * indent.c: Include "character.h" instead of "charset.h".
22142 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22143
22144 * insdel.c: Include "character.h" instead of "charset.h".
22145 (copy_text): Don't refer to Vnonascii_translation_table.
22146 (insert_from_gap): New function.
22147
22148 * keyboard.c: Include "character.h" instead of "charset.h".
22149 (command_loop_1): Never call direct_output_forward_char before
22150 a non-ASCII character.
22151 (read_char): If Vkeyboard_translate_table is a char table, always
22152 translate a character.
22153
22154 * keymap.c: Include "character.h".
22155 (store_in_keymap): Handle the case that IDX is a cons.
22156 (Fdefine_key): Handle the case that KEY is a cons and the car part
22157 is also a cons (range).
22158 (push_key_description): Adjust for the new character code.
22159 (describe_vector): Call describe_char_table for a char table.
22160 (describe_char_table): New function.
22161
22162 * keymap.h (describe_char_table): Extern it.
22163
22164 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22165 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22166 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22167 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22168 Delete.
22169 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22170 structure.
22171 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22172 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22173 (CHARTAB_SIZE_BITS_3): New macros.
22174 (chartab_size): Extern it.
22175 (struct Lisp_Char_Table): Re-design.
22176 (struct Lisp_Sub_Char_Table): New structure.
22177 (HASH_KEY, HASH_VALUE): Move from fns.c.
22178 (CHARACTERBITS): Define as 22.
22179 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22180 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22181 (GC_SUB_CHAR_TABLE_P): New macro.
22182 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22183 (code_convert_string_norecord): Deleted extern.
22184 (init_character_once, syms_of_character, init_charset)
22185 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22186
22187 * lread.c: Include "character.h".
22188 (read_multibyte): New arg NBYTES.
22189 (read_escape): Change the meaning of returned *BYTEREP.
22190 (to_multibyte): Delete.
22191 (read1): Adjust the handling of char table and string.
22192
22193 * print.c: Include "character.h" instead of "charset.h".
22194 (print_string): Convert 8-bit raw bytes to octal form by
22195 string_escape_byte8.
22196 (print_object): Adjust for the new multibyte form. Print 8-bit
22197 raw bytes always in octal form. Handle sub char table correctly.
22198
22199 * process.c: Include "character.h" instead of "charset.h".
22200 (read_process_output, send_process): Adjust for the new
22201 code-conversion API.
22202
22203 * puresize.h (BASE_PURESIZE): Increase.
22204
22205 * regex.c: Include "character.h" instead of "charset.h".
22206 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22207 (regex_compile): Accept a range whose starting and ending
22208 character have different leading bytes.
22209 (analyse_first): Adjust for the above change.
22210
22211 * search.c: Include "character.h" instead of "charset.h".
22212 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22213 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22214
22215 * syntax.c: Include "character.h" instead of "charset.h".
22216 (syntax_parent_lookup): Delete.
22217 (Fmodify_syntax_entry): Accept a cons as CHAR.
22218 (skip_chars): Adjust for the new multibyte form.
22219 (init_syntax_once): Call char_table_set_range instead of directly
22220 accessing the structure of a char table.
22221
22222 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22223 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22224 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22225 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22226
22227 * term.c: Include "buffer.h" and "character.h".
22228 (encode_terminal_code, write_glyphs): Adjust for the new
22229 code-conversion API.
22230 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22231
22232 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22233
22234 * xdisp.c: Include "character.h".
22235 (get_next_display_element): Adjust for the new multibyte form.
22236 (disp_char_vector): Adjust for the new char table structure.
22237 (decode_mode_spec_coding): Adjust for the new structure of
22238 coding system.
22239 (decode_mode_spec): Adjust for the new code-conversion API.
22240
22241 * xfaces.c: Include "character.h" instead of "charset.h".
22242 (load_face_font): Adjust for the change of choose_face_font and
22243 FS_LOAD_FONT.
22244 (generate_ascii_font): New function.
22245 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22246 (set_font_frame_param): Adjust for the change of choose_face_font.
22247 (free_realized_face): Make it public.
22248 (free_realized_faces_for_fontset): Rename from
22249 free_realized_multibyte_face. Free also faces realized for ASCII.
22250 (choose_face_font): Change arguments. Adjust for the change of
22251 fontset_font_pattern and FS_LOAD_FONT.
22252
22253 * xfns.c: Include "character.h".
22254 (x_encode_text): Adjust for the new code-conversion API.
22255
22256 * xselect.c: Don't include "charset.h".
22257 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22258
22259 * xterm.c: Include "character.h".
22260 (x_encode_char): New argument CHARSET. Change caller.
22261 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22262 Call ENCODE_CHAR instead of SPLIT_CHAR.
22263 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22264 CHAR_WIDTH instead of CHARSET_WIDTH.
22265 (XTread_socket): Adjust for the new code-conversion API.
22266 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22267 (x_load_font): Adjust for the change of struct font.
22268
222692008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22270
22271 * xfaces.c (face_at_buffer_position): Remove unused vars.
22272
222732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22274
22275 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22276 Fix overflow checking.
22277
222782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22279
22280 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22281 Cancel previous change.
22282
222832008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22284
22285 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22286 ccl->eight_bit_control. Fix check for buffer overflow.
22287 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22288 (ccl_driver): Initialize extra_bytes to 0.
22289
222902008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22291
22292 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22293 return it ORed with ctrl_modifier.
22294
222952008-01-29 Miles Bader <miles@gnu.org>
22296
22297 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22298
222992008-01-28 Jason Rumney <jasonr@gnu.org>
22300
22301 * w32.c (stat): Don't double check for networked drive.
22302
223032008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22304
22305 * window.c (run_window_configuration_change_hook): New function.
22306 Code extracted from set_window_buffer. Set the selected frame.
22307 (set_window_buffer): Use it.
22308 * window.h (run_window_configuration_change_hook): Declare.
22309 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22310
22311 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22312
223132008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22314
22315 * Makefile.in: Remove references to unused macros.
22316
223172008-01-26 Eli Zaretskii <eliz@gnu.org>
22318
22319 * w32.c (g_b_init_get_sid_sub_authority)
22320 (g_b_init_get_sid_sub_authority_count): New static variables.
22321 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22322 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22323 (init_user_info): Use them to retrieve uid and gid.
22324 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22325 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22326 st_uid and st_gid of the file.
22327
223282008-01-26 Jason Rumney <jasonr@gnu.org>
22329
22330 * w32.c (logon_network_drive): New function.
22331 (stat): Use it.
22332
223332008-01-26 Chong Yidong <cyd@stupidchicken.com>
22334
22335 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22336 invisible text covered with an ellipsis.
22337
223382008-01-25 Richard Stallman <rms@gnu.org>
22339
22340 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22341 jump back to beginning. Move some other initializations after that.
22342 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22343 New variables.
22344 (syms_of_xdisp): Init them.
22345
22346 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22347
22348 * buffer.c (reset_buffer_local_variables):
22349 Implement `permanent-local-hook'.
22350 (Qpermanent_local_hook): New variable.
22351 (syms_of_buffer): Init and staticpro it.
22352
223532008-01-25 Michael Albinus <michael.albinus@gmx.de>
22354
22355 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22356
223572008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22358
22359 * fns.c (Fclrhash): Return TABLE.
22360
223612008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22362
22363 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22364 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22365 is set even without positional changes.
22366 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22367
22368 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22369
223702008-01-23 Jason Rumney <jasonr@gnu.org>
22371
22372 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22373
22374 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22375 the unicode range available in MULE by locale-coding-system.
22376 Improve dbcs lead byte detection. Set event timestamp and modifiers
22377 earlier.
22378
223792008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22380
22381 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22382 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22383 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22384 when used on child processes.
22385
223862008-01-21 Michael Albinus <michael.albinus@gmx.de>
22387
22388 * dbusbind.c (Fdbus_method_return_internal): Rename from
22389 Fdbus_method_return.
22390 (Fdbus_unregister_object): Move to dbus.el.
22391 (Fdbus_call_method, Fdbus_method_return_internal)
22392 (Fdbus_send_signal): Improve debug messages.
22393
223942008-01-20 Martin Rudalics <rudalics@gmx.at>
22395
22396 * undo.c (undo_inhibit_record_point): New variable.
22397 (syms_of_undo): Initialize it.
22398 (record_point): Don't record point when undo_inhibit_record_point
22399 is set.
22400
224012008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22402
22403 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22404
22405 * xdisp.c (Qauto_hscroll_mode): New var.
22406 (syms_of_xdisp): Initialize it.
22407 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22408 window's buffer.
22409 (hscroll_windows): Don't check automatic_hscrolling_p here.
22410
22411 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22412 vscroll if we're setting window-buffer to the value it already has.
22413
224142008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22415
22416 * m/intel386.h: Remove references to XENIX.
22417
224182008-01-17 Andreas Schwab <schwab@suse.de>
22419
22420 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22421 instead of HAVE_X86_64_LIB64_DIR.
22422 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22423
224242008-01-17 Glenn Morris <rgm@gnu.org>
22425
22426 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22427 to HAVE_X86_64_LIB64_DIR.
22428
224292008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22430
22431 * s/irix3-3.h:
22432 * s/irix4-0.h:
22433 * s/386-ix.h:
22434 * s/domain.h:
22435 * s/hpux9-x11r4.h:
22436 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22437
22438 * sysdep.c: Remove code containing references to symbols defined
22439 by unsupported systems.
22440
224412008-01-16 Glenn Morris <rgm@gnu.org>
22442
22443 * coding.c (select-safe-coding-system-function): Doc fix.
22444
224452008-01-15 Glenn Morris <rgm@gnu.org>
22446
22447 * config.in: Revert 2008-01-13 change: this is a generated file.
22448
224492008-01-13 Tom Tromey <tromey@redhat.com>
22450
22451 * lisp.h: Fix typo.
22452
224532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22454
22455 * m/sequent-ptx.h:
22456 * m/sequent.h:
22457 * s/ptx.h:
22458 * s/ptx4-2.h:
22459 * s/ptx4.h: Remove files for systems no longer supported.
22460
22461 * callproc.c (Fcall_process): Fix previous change.
22462
224632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22464
22465 * unexsunos4.c: Remove file, system not supported anymore.
22466
22467 * m/mips.h:
22468 * m/intel386.h:
22469 * callproc.c:
22470 * config.in:
22471 * ecrt0.c:
22472 * emacs.c:
22473 * fileio.c:
22474 * frame.c:
22475 * getpagesize.h:
22476 * keyboard.c:
22477 * lread.c:
22478 * process.c:
22479 * puresize.h:
22480 * sysdep.c:
22481 * systty.h:
22482 * syswait.h:
22483 * unexec.c:
22484 * xdisp.c:
22485 * alloc.c: Remove code containing references to symbols defined by
22486 unsupported systems.
22487
224882008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22489
22490 * coding.c (detect_coding_mask): Fix previous change.
22491
224922008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22493
22494 * coding.c (detect_coding_iso2022): New arg
22495 latin_extra_code_state. Allow Latin extra codes only
22496 when *latin_extra_code_state is nonzero.
22497 (detect_coding_mask): If there is a NULL byte, detect the encoding
22498 as UTF-16 or binary. If Latin extra codes exist, detect the
22499 encoding as ISO-2022 only when there's no other proper encoding is
22500 found.
22501
225022008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22503
22504 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22505 #ifdef MAC_OS.
22506
225072008-01-08 Richard Stallman <rms@gnu.org>
22508
22509 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22510
225112008-01-06 Nick Roberts <nickrob@snap.net.nz>
22512
22513 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22514 menu bar in parentheses.
22515
225162008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22517
22518 * m/7300.h:
22519 * m/acorn.h:
22520 * m/alliant-2800.h:
22521 * m/alliant.h:
22522 * m/alliant1.h:
22523 * m/alliant4.h:
22524 * m/altos.h:
22525 * m/amdahl.h:
22526 * m/apollo.h:
22527 * m/att3b.h:
22528 * m/aviion-intel.h:
22529 * m/aviion.h:
22530 * m/celerity.h:
22531 * m/clipper.h:
22532 * m/cnvrgnt.h:
22533 * m/convex.h:
22534 * m/cydra5.h:
22535 * m/delta88k.h:
22536 * m/dpx2.h:
22537 * m/dual.h:
22538 * m/elxsi.h:
22539 * m/f301.h:
22540 * m/gould-np1.h:
22541 * m/gould.h:
22542 * m/i860.h:
22543 * m/ibmps2-aix.h:
22544 * m/ibmrt-aix.h:
22545 * m/ibmrt.h:
22546 * m/irist.h:
22547 * m/is386.h:
22548 * m/isi-ov.h:
22549 * m/mega68.h:
22550 * m/mg1.h:
22551 * m/news-r6.h:
22552 * m/news-risc.h:
22553 * m/news.h:
22554 * m/nh3000.h:
22555 * m/nh4000.h:
22556 * m/ns16000.h:
22557 * m/ns32000.h:
22558 * m/nu.h:
22559 * m/orion.h:
22560 * m/orion105.h:
22561 * m/paragon.h:
22562 * m/pfa50.h:
22563 * m/plexus.h:
22564 * m/pyramid.h:
22565 * m/pyrmips.h:
22566 * m/sh3el.h:
22567 * m/sps7.h:
22568 * m/sr2k.h:
22569 * m/stride.h:
22570 * m/sun1.h:
22571 * m/sun2.h:
22572 * m/sun3-68881.h:
22573 * m/sun3-fpa.h:
22574 * m/sun3-soft.h:
22575 * m/sun3.h:
22576 * m/sun386.h:
22577 * m/symmetry.h:
22578 * m/tad68k.h:
22579 * m/tahoe.h:
22580 * m/targon31.h:
22581 * m/tek4300.h:
22582 * m/tekxd88.h:
22583 * m/tower32.h:
22584 * m/tower32v3.h:
22585 * m/ustation.h:
22586 * m/wicat.h:
22587 * m/xps100.h:
22588 * s/cxux.h:
22589 * s/cxux7.h:
22590 * s/dgux.h:
22591 * s/dgux4.h:
22592 * s/dgux5-4-3.h:
22593 * s/dgux5-4r2.h:
22594 * s/esix.h:
22595 * s/esix5r4.h:
22596 * s/hiuxmpp.h:
22597 * s/hiuxwe2.h:
22598 * s/iris3-5.h:
22599 * s/iris3-6.h:
22600 * s/isc2-2.h:
22601 * s/isc3-0.h:
22602 * s/isc4-0.h:
22603 * s/isc4-1.h:
22604 * s/newsos5.h:
22605 * s/newsos6.h:
22606 * s/osf1.h:
22607 * s/osf5-0.h:
22608 * s/riscix1-1.h:
22609 * s/riscix12.h:
22610 * s/sco4.h:
22611 * s/sco5.h:
22612 * s/sunos4-0.h:
22613 * s/sunos4-1.h:
22614 * s/sunos413.h:
22615 * s/sunos4shr.h:
22616 * s/umax.h:
22617 * s/unipl5-2.h:
22618 * s/xenix.h:
22619 * cxux-crt0.s:
22620 * unexapollo.c:
22621 * unexconvex.c:
22622 * unexenix.c:
22623 * unexsni.c: Remove files for systems no longer supported.
22624
22625 * m/intel386.h: Remove references to unsupported systems.
22626
22627 * w32.c (get_emacs_configuration): Remove reference to i860.
22628
22629 * sysdep.c: Remove dead code.
22630
226312008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22632
22633 * s/rtu.h:
22634 * m/masscomp.h: Remove files. Platform is obsolete.
22635
226362008-01-04 Michael Albinus <michael.albinus@gmx.de>
22637
22638 * dbusbind.c (Fdbus_method_return): New function.
22639 (xd_read_message): Add the serial number to the event.
22640 (Fdbus_register_method): Activate the function.
22641
226422008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22643
22644 * keyboard.c (read_key_sequence): Fix typo.
22645
226462008-01-03 Michael Albinus <michael.albinus@gmx.de>
22647
22648 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22649 (xd_signature, xd_append_arg): Handle element type detection for
22650 empty arrays.
22651 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22652 SDATA () calls; this must be solved more general.
22653 (Fdbus_register_signal): Use SBYTES instead of strlen.
22654
226552008-01-03 Magnus Henoch <magnus@zemdatav>
22656
22657 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22658 unsigned int for byte values (necessary for big-endian platform).
22659 (Fdbus_call_method): Handle the case of no returned arguments.
22660
226612007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22662
22663 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22664
226652007-12-31 Magnus Henoch <mange@freemail.hu>
22666
22667 * dbusbind.c (xd_signature): Signature of variant is just "v".
22668
226692007-12-30 Michael Albinus <michael.albinus@gmx.de>
22670
22671 * dbusbind.c: Fix several errors and compiler warnings.
22672 Reported by Tom Tromey <tromey@redhat.com>.
22673 (XD_ERROR, XD_DEBUG_MESSAGE)
22674 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22675 (xd_append_arg): Part for basic D-Bus types rewritten.
22676 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22677 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22678 appropriate.
22679 (xd_read_message): Return Qnil. Don't signal an error; it is not
22680 useful during event reading.
22681 (Fdbus_register_signal): Signal an error if the check for
22682 FUNCTIONP fails.
22683 (Fdbus_register_method): New function. The implementation is not
22684 complete, the call of the function signals an error therefore.
22685 (Fdbus_unregister_object): New function, renamed from
22686 Fdbus_unregister_signal. The initial check signals an error, if
22687 the object is not well formed.
22688
226892007-12-30 Richard Stallman <rms@gnu.org>
22690
22691 * textprop.c (get_char_property_and_overlay):
22692 Signal error if POSITION is out of range in a buffer.
22693
226942007-12-29 Martin Rudalics <rudalics@gmx.at>
22695
22696 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22697 because the original parameters are in pure storage now.
22698
226992007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22700
22701 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22702
227032007-12-22 Eli Zaretskii <eliz@gnu.org>
22704
22705 * callint.c (syms_of_callint) <command-history>: Add reference to
22706 history-length in the doc string.
22707
227082007-12-17 Jason Rumney <jasonr@gnu.org>
22709
22710 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22711 before passing as wParam.
22712
227132007-12-22 Michael Albinus <michael.albinus@gmx.de>
22714
22715 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22716 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22717 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22718 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22719 as number.
22720 (Fdbus_call_method): Fix docstring.
22721
227222007-12-21 Michael Albinus <michael.albinus@gmx.de>
22723
22724 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22725 New macros.
22726 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22727 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22728 Simplify.
22729 (xd_signature): New function.
22730 (xd_append_arg): Compute also signatures. Major rewrite.
22731 (xd_retrieve_arg): Make debug messages friendly.
22732 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22733 Check for signatures of arguments.
22734
227352007-12-19 Michael Albinus <michael.albinus@gmx.de>
22736
22737 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22738 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22739 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22740 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22741 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22742 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22743 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22744 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22745 (xd_retrieve_value): Remove. Functionality included in ...
22746 (xd_append_arg): New function.
22747 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22748
227492007-12-16 Michael Albinus <michael.albinus@gmx.de>
22750
22751 * dbusbind.c (top): Include <stdio.h>.
22752 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22753 dbus_message_new_method_call and dbus_message_new_signal.
22754 (Fdbus_register_signal): Rename unique_name to uname.
22755 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22756 non-existing unique name. Fix typos in matching rule. Return an
22757 object which is useful in Fdbus_unregister_signal.
22758 (Fdbus_unregister_signal): Reimplementation, in order to remove
22759 only the corresponding entry.
22760 (Vdbus_registered_functions_table): Change the order of entries.
22761 Apply these changes in xd_read_message and Fdbus_register_signal.
22762
227632007-12-16 Andreas Schwab <schwab@suse.de>
22764
22765 * fileio.c (Finsert_file_contents): Fix overflow check to not
22766 depend on undefined integer overflow.
22767
227682007-12-14 Jason Rumney <jasonr@gnu.org>
22769
22770 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22771 for characters above 127.
22772
227732007-12-13 Jason Rumney <jasonr@gnu.org>
22774
22775 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22776 before dereferencing array.
22777 (lookup_vk_code): Remove zero comparison.
22778
227792007-12-14 Michael Albinus <michael.albinus@gmx.de>
22780
22781 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22782 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22783 Use `unsigned int' instead of `uint'.
22784 (xd_read_message, Fdbus_register_signal): Split expressions into
22785 multiple lines before operators "&&" and "||", according to the
22786 GNU Coding Standards.
22787
227882007-12-14 Eli Zaretskii <eliz@gnu.org>
22789
22790 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22791
227922007-12-12 Juri Linkov <juri@jurta.org>
22793
22794 * buffer.c (Frename_buffer): In interactive spec replace
22795 `read-buffer' with `read-string' that uses `buffer-name-history'
22796 as history, and the current buffer's name as default.
22797
227982007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22799
22800 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22801 manipulating the backtrace manually.
22802 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22803 (struct backtrace, backtrace_list): Remove.
22804 (command_loop_1): Remove dead var `no_direct'.
22805
22806 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22807 preserve non-built-in buffer-local variables.
22808 (Fkill_all_local_variables): Don't re-create&re-set permanent
22809 buffer-local variables.
22810
228112007-12-09 Juri Linkov <juri@jurta.org>
22812
22813 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22814 Lisp code that uses `read-buffer' with current buffer as default.
22815
228162007-12-08 Michael Albinus <michael.albinus@gmx.de>
22817
22818 * dbusbind.c (xd_read_message): Generate an event for every
22819 registered handler. There might be several handlers registered
22820 for the same signal.
22821 (Fdbus_register_signal): Don't overwrite a registration for the
22822 same signal. Add a new registration if handlers are different.
22823 (Vdbus_registered_functions_table): Rework doc string.
22824
228252007-12-07 Michael Albinus <michael.albinus@gmx.de>
22826
22827 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22828 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22829 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22830 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22831 Unify argument lists.
22832 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22833 arguments and hash table keys. Use unique name for service.
22834 (Fdbus_unregister_signal): Remove checks.
22835 (Vdbus_registered_functions_table): Fix doc string.
22836
228372007-12-05 Magnus Henoch <mange@freemail.hu>
22838
22839 * process.c (make_process): Initialize pty_flag to 0.
22840
228412007-12-05 Jason Rumney <jasonr@gnu.org>
22842
22843 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22844 specified XBMs.
22845
228462007-12-05 Richard Stallman <rms@gnu.org>
22847
22848 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22849
228502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22851
22852 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22853 New variable.
22854 (mac_try_close_socket) [MAC_OSX]: New function.
22855 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22856 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22857
22858 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22859 Use mac_try_close_socket.
22860
228612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22862
22863 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22864 reloc_base.
22865 (copy_dysymtab): Compute relocation base here.
22866 (rebase_reloc_address) [__ppc64__]: New function.
22867 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22868 changed.
22869
228702007-12-05 Jason Rumney <jasonr@gnu.org>
22871
22872 * w32proc.c (sys_spawnve): Quote args with wildcards.
22873
228742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22875
22876 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22877 __objc_* sections.
22878 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22879
228802007-12-05 Michael Albinus <michael.albinus@gmx.de>
22881
22882 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22883 Move check for Vdbus_registered_functions_table to
22884 xd_read_queued_messages.
22885 (xd_read_queued_messages): Protect xd_read_message calls by
22886 internal_condition_case_1.
22887
228882007-12-04 Michael Albinus <michael.albinus@gmx.de>
22889
22890 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22891 Qdbus_system_bus and Qdbus_session_bus, respectively.
22892 (Vdbus_intern_symbols): Remove.
22893 (Vdbus_registered_functions_table): New hash table.
22894 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22895 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22896 Rewrite in order to manage registered functions by hash table
22897 Vdbus_registered_functions_table.
22898
228992007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22900
22901 * xterm.c: Update URL to Window Manager Specification in comment.
22902
229032007-12-02 Michael Albinus <michael.albinus@gmx.de>
22904
22905 * config.in (HAVE_DBUS): Add.
22906
22907 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22908 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22909 (obj): Add $(DBUS_OBJ).
22910 (LIBES): Add $(DBUS_LIBS).
22911 (dbusbind.o): New target.
22912
22913 * dbusbind.c: New file.
22914
22915 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22916
22917 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22918 (Qdbus_event): New Lisp symbol.
22919 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22920 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22921 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22922
22923 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22924
229252007-12-01 Richard Stallman <rms@gnu.org>
22926
22927 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22928
229292007-11-30 Jason Rumney <jasonr@gnu.org>
22930
22931 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22932 (w32con_reset_terminal_modes): Clear screen buffer.
22933 (w32_face_attributes): Don't use color indexes that are out of range.
22934 Only reverse the default colors.
22935
22936 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22937 WINDOWSNT.
22938
22939 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22940
229412007-11-29 Jason Rumney <jasonr@gnu.org>
22942
22943 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22944 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22945 if the terminal colors are initialized.
22946 (unspecified_fg, unspecified_bg): Remove unused declarations.
22947
229482007-11-29 Andreas Schwab <schwab@suse.de>
22949
22950 * keyboard.c (apply_modifiers): Fix typo.
22951
229522007-11-29 Richard Stallman <rms@gnu.org>
22953
22954 * keymap.c (Fcurrent_local_map): Doc fix.
22955
229562007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22957
22958 * s/gnu-kfreebsd.h: New file.
22959
229602007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22961
22962 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22963 Don't cast redundantly.
22964
22965 * keyboard.c (KEY_TO_CHAR): New macro.
22966 (parse_modifiers, apply_modifiers): Accept integer arguments.
22967 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22968 for chars and symbol keys.
22969 After doing such remapping, apply function-key-map again.
22970
229712007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22972
22973 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22974 compiled anymore.
22975
229762007-11-26 Andreas Schwab <schwab@suse.de>
22977
22978 * process.c (list_processes_1): Fix indentation level of the
22979 command column.
22980
229812007-11-23 Andreas Schwab <schwab@suse.de>
22982
22983 * editfns.c (Fformat): Handle %c specially since it requires the
22984 argument to be of type int.
22985
229862007-11-23 Markus Triska <markus.triska@gmx.at>
22987
22988 * emacs.c (main): Call init_editfns before init_process, since
22989 init_process sets Vprocess_connection_type depending on OS release.
22990
229912007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22992
22993 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22994 (find_symbol_value): Use do_symval_forwarding.
22995
22996 * data.c (set_internal): Set the value in the `cons-cell' (for
22997 Buffer_Local_values) not only for frame-local variables.
22998
229992007-11-22 Andreas Schwab <schwab@suse.de>
23000
23001 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23002 values to sprintf.
23003 * keymap.c (Fsingle_key_description): Likewise.
23004 * print.c (print_object): Likewise.
23005
230062007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23007
23008 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23009 file for image is nil.
23010
230112007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23012
23013 * term.c: Include stdarg.h.
23014 (fatal): Implement using varargs.
23015 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23016
230172007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23018
23019 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23020 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23021 Update call to buffer_slot_type_mismatch.
23022 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23023 (buffer_slot_type_mismatch): Update.
23024 * buffer.c (buffer_local_types): Remove.
23025 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23026 (defvar_per_buffer): Set the type in the buffer_objfwd.
23027
230282007-11-21 Jason Rumney <jasonr@gnu.org>
23029
23030 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23031 CreateFileMapping returns NULL on failure.
23032
230332007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23034
23035 * search.c (Fset_match_data): Remove the `evaporate' feature.
23036 (unwind_set_match_data): Don't use the `evaporate' feature.
23037
230382007-11-21 Jason Rumney <jasonr@gnu.org>
23039
23040 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23041
23042 * w32console.c (w32con_write_glyphs): Remove unused variables.
23043
230442007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23045
23046 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23047
23048 * s/darwin.h (MULTI_KBOARD): Remove.
23049
23050 * macfns.c (x_create_tip_frame, Fx_create_frame)
23051 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23052
230532007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23054
23055 * buffer.c (Fbuffer_local_value): Remove redundant test.
23056 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23057 than in `current-buffer' to match the comment.
23058 Do the swap using swap_in_global_binding.
23059
23060 * data.c (store_symval_forwarding, set_internal):
23061 * eval.c (specbind): Remove dead code.
23062
23063 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23064 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23065 Since we do not want to see internal Lisp_*fwd objects here.
23066
230672007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23068
23069 * sysdep.c (init_system_name): Use getaddrinfo if available.
23070
23071 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23072 (x_scroll_bar_note_movement): start, end, with, height in struct
23073 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23074
230752007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23076
23077 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23078
230792007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23080
23081 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23082 This undoes Richard's change of 14-Oct-2002.
23083
23084 * alloc.c (allocate_other_vector):
23085 * lisp.h (allocate_other_vector): Remove.
23086
23087 * window.c (struct save_window_data): Move non-lisp data to the end
23088 and make it `int' rather than Lisp_Object.
23089 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23090 Done wrap/unwrap integer values.
23091 (Fset_window_configuration, compare_window_configurations):
23092 Update use of fields to their new types.
23093
23094 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23095 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23096 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23097 (SET_SCROLL_BAR_X_WINDOW): Remove.
23098 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23099 Access the new x_window field directly.
23100 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23101 Don't wrap/unwrap integers into Lisp_Objects.
23102 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23103 (x_scroll_bar_report_motion):
23104 Don't wrap/unwrap integers into Lisp_Objects.
23105 (x_term_init): Use SDATA.
23106 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23107 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23108 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23109 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23110 * xfns.c (x_set_background_color):
23111 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23112 Access the new x_window field directly.
23113
23114 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23115 (allocate_pseudovector): Make non-static.
23116
23117 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23118 (allocate_pseudovector): Declare.
23119 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23120
231212007-11-15 Andreas Schwab <schwab@suse.de>
23122
23123 * editfns.c (Fformat): Correctly format EMACS_INT values.
23124 Also take precision into account when formatting an integer.
23125
23126 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23127
231282007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23129
23130 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23131 (syms_of_keyboard): Defsubr it.
23132
23133 * data.c (swap_in_global_binding): Fix longstanding bug where
23134 store_symval_forwarding was not called with the right second argument,
23135 thus causing objfwd-ing from being dropped.
23136
231372007-11-14 Juanma Barranquero <lekktu@gmail.com>
23138
23139 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23140 (Fx_display_pixel_height, Fx_display_planes)
23141 (Fx_display_color_cells, Fx_server_max_request_size)
23142 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23143 (Fx_display_visual_class, Fx_display_save_under):
23144 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23145 (Fx_display_pixel_height, Fx_display_planes)
23146 (Fx_display_color_cells, Fx_server_max_request_size)
23147 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23148 (Fx_display_mm_height, Fx_display_mm_width)
23149 (Fx_display_backing_store, Fx_display_visual_class)
23150 (Fw32_select_font, Fx_display_save_under):
23151 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23152 (Fx_display_pixel_height, Fx_display_planes)
23153 (Fx_display_color_cells, Fx_server_max_request_size)
23154 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23155 (Fx_display_save_under): Fix typos in docstrings.
23156
231572007-11-14 Juanma Barranquero <lekktu@gmail.com>
23158
23159 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23160 corresponding to deleted entries; they are an implementation detail.
23161 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23162 Remove variables.
23163 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23164 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23165 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23166 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23167 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23168 (Fw32_define_rgb_color, Fw32_load_color_file)
23169 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23170 Fix typos in docstrings.
23171 (Fx_server_version): Reflow docstring.
23172 (Fw32_shell_execute): Doc fixes.
23173
231742007-11-13 Juanma Barranquero <lekktu@gmail.com>
23175
23176 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23177 if w32_parse_hot_key returned nil.
23178
231792007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23180
23181 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23182
231832007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23184
aac0c6e3
MR
23185 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23186
23187 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23188
23189 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23190 Remove W32_SCROLL_BAR_CLICK_EVENT.
23191
23192 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23193 Add MULTIMEDIA_KEY_EVENT.
23194
23195 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23196 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23197 (make_lispy_event) [WINDOWSNT]: Use it to translate
23198 MULTIMEDIA_KEY_EVENT.
23199
23200 * w32term.h (WM_APPCOMMAND): Define if not already.
23201 (GET_APPCOMMAND_LPARAM): Likewise.
23202
23203 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23204 WM_APPCOMMAND.
23205
23206 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23207 (syms_of_w32fns): Export and initialize it.
23208 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23209
232102007-11-09 Chong Yidong <cyd@stupidchicken.com>
23211
23212 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23213 twice.
23214
23215 * xdisp.c (handle_face_prop): Fix last change.
23216
232172007-11-09 Richard Stallman <rms@gnu.org>
23218
23219 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23220 not just for after-strings and before-strings.
23221 Call face_for_overlay_string and pass the overlay to it.
23222 (handle_display_prop): Determine whether property came from an overlay.
23223 Pass OVERLAY arg to handle_single_display_spec.
23224 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23225 (load_overlay_strings): Fill in it->string_overlays.
23226 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23227
23228 * xfaces.c (face_for_overlay_string): Function renamed from
23229 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23230
23231 * dispextern.h (struct it): New elt string_overlays.
23232 New elt from_overlay, also in stack.
23233 Rearrange a few elements.
23234 (face_for_overlay_string): Decl renamed from
23235 face_at_buffer_position_no_overlays, and add argument.
23236
232372007-11-09 Richard Stallman <rms@gnu.org>
23238
23239 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23240 to get the base face for an overlay string.
23241
23242 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23243
23244 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23245
23246 * xdisp.c (handle_stop): Move some code out of loop.
23247
232482007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23249
23250 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23251 Fix conversion from Lisp object to ATSUFontID.
23252
232532007-11-09 Jason Rumney <jasonr@gnu.org>
23254
23255 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23256
232572007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23258
23259 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23260 Don't assume regions are aligned to page boundary.
23261 (print_load_command_name): Add LC_UUID if defined.
23262
232632007-11-09 Richard Stallman <rms@gnu.org>
23264
23265 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23266
232672007-11-07 Jason Rumney <jasonr@gnu.org>
23268
23269 * s/windows95.h: Remove.
23270
232712007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23272
23273 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23274 abort with a message on unhandled store_type values.
23275
232762007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23277
23278 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23279 Remove HAVE_X11R5 and HAVE_X11R4.
23280
232812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23282
23283 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23284
232852007-11-01 Johan Bockgård <bojohan@gnu.org>
23286
23287 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23288 Don't set s->stippled_p here, since it has already been set by
23289 x_set_glyph_string_gc from x_draw_glyph_string.
23290
232912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23292
23293 * sunfns.c: Remove file.
23294
23295 * m/sun386.h:
23296 * m/sun2.h:
23297 * m/sparc.h: Remove Sun windows code.
23298
232992007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23300
23301 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23302 (init_keyboard): Set current_kboard's window-system to nil.
23303 (tty_read_avail_input): Typo.
23304 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23305
233062007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23307
23308 * s/usg5-4.h:
23309 * s/usg5-3.h:
23310 * s/ptx.h:
23311 * m/is386.h:
23312 * m/ibmps2-aix.h:
23313 * Makefile.in: Remove all mentions of X10.
23314
23315 * dispnew.c (syms_of_display): Don't mention version 10.
23316
233172007-10-28 Juanma Barranquero <lekktu@gmail.com>
23318
23319 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23320 ($(BLD)/abbrev.$(O)): Remove.
23321
233222007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23323
23324 Rewrite abbrev.c in Elisp.
23325 * image.c (Qcount): Don't declare as extern.
23326 (syms_of_image): Initialize and staticpro `Qcount'.
23327 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23328 * emacs.c (main): Don't call syms_of_abbrev.
23329 * Makefile.in (obj): Remove abbrev.o.
23330 (abbrev.o): Remove.
23331 * abbrev.c: Remove.
23332
233332007-10-26 Martin Rudalics <rudalics@gmx.at>
23334
23335 * window.c (window_min_size_2): Don't count header-line.
23336
233372007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23338
23339 * frame.h (struct frame): Move all bit fields after the first bit
23340 field to take advantage of the available space. Group all the
23341 chars together to reduce wasted space due to padding.
23342
233432007-10-26 Juanma Barranquero <lekktu@gmail.com>
23344
23345 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23346
23347 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23348 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23349 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23350 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23351 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23352 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23353 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23354 (last_marked, mark_object_loop_halt): Make static.
23355
23356 * frame.c (syms_of_frame) <delete-frame-functions>:
23357 Fix typo in docstring.
23358
233592007-10-25 Juanma Barranquero <lekktu@gmail.com>
23360
23361 * w32.c (init_environment): Fix tiny memory leak.
23362 (w32_get_resource): Remove unused variable `ok'.
23363
233642007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23365
23366 Make `window-system' into a keyboard-local variable (rather than
23367 frame-local as done originally by multi-tty).
23368
23369 * keyboard.h (struct kboard): Add Vwindow_system.
23370 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23371 (mark_kboards): Mark Vwindow_system.
23372
23373 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23374 (init_display): Don't set the obsolete `window-system' frame-param.
23375
23376 * xterm.c (x_term_init):
23377 * w32term.c (w32_create_terminal):
23378 * term.c (init_tty): Set Vwindow_system.
23379 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23380 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23381
23382 * xfns.c (Fx_create_frame, x_create_tip_frame):
23383 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23384 * macfns.c (Fx_create_frame):
23385 Don't set the obsolete `window-system' frame-param.
23386
23387 * frame.h (Qwindow_system): Remove.
23388 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23389 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23390
233912007-10-24 Richard Stallman <rms@gnu.org>
23392
23393 * frame.c (x_figure_window_size): For fullscreen case,
23394 set USPosition | PPosition without clobbering rest of window_prompting.
23395
23396 * keyboard.c (Fcurrent_idle_time): Doc fix.
23397
23398 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23399
234002007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23401
23402 * process.c (unwind_request_sigio): Only define if __ultrix__.
23403
23404 * callproc.c (child_setup): Remove spurious *.
23405
23406 * lisp.h (Fget_text_property): Declare.
23407 (have_menus_p): Declare it here rather than in sys-dep header files.
23408 * macterm.h (have_menus_p):
23409 * msdos.h (have_menus_p):
23410 * xterm.h (have_menus_p): Remove.
23411
23412 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23413 (Fmake_variable_frame_local): Just check the variable's const-ness
23414 rather than checking nil or t.
23415
234162007-10-22 Jason Rumney <jasonr@gnu.org>
23417
23418 * w32fns.c: Include math.h.
23419 (w32_abort): Declaration moved to nt/config.nt.
23420
23421 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23422 (abort): Redefinition moved to nt/config.nt.
23423
23424 * m/windowsnt.h: Remove.
23425
234262007-10-22 Juanma Barranquero <lekktu@gmail.com>
23427
23428 * emacs.c (Fdump_emacs): Fix typo in message.
23429 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23430 <installation-directory>: Reflow docstring.
23431
234322007-10-22 Juri Linkov <juri@jurta.org>
23433
23434 * minibuf.c: Allow minibuffer default to be a list of default values.
23435 With empty input use the first element of this list as returned default.
23436 (string_to_object)
23437 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23438 (read_minibuf): If defalt is cons, set histstring to its car.
23439 (Fread_string): If default_value is cons, set val to its car.
23440 (Fread_buffer): If def is cons, use its car.
23441 (Fcompleting_read): If defalt is cons, set val to its car.
23442
234432007-10-21 Michael Albinus <michael.albinus@gmx.de>
23444
23445 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23446
234472007-10-20 Juanma Barranquero <lekktu@gmail.com>
23448
23449 * doc.c (Fdocumentation): Check for advice in all cases.
23450
234512007-10-19 Chong Yidong <cyd@stupidchicken.com>
23452
23453 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23454
234552007-10-19 Richard Stallman <rms@gnu.org>
23456
23457 * doc.c (Fdocumentation): Check for and handle an advised function.
23458
234592007-10-19 Juanma Barranquero <lekktu@gmail.com>
23460
23461 * process.c (Fset_process_filter): Doc fix.
23462
234632007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23464
23465 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23466 which caused key-translation-map to applied repeatedly (thus breaking
23467 double-mode).
23468
234692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23470
23471 * xselect.c (x_own_selection, x_handle_selection_clear)
23472 (x_clear_frame_selections):
23473 * w32menu.c (list_of_panes, list_of_items):
23474 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23475 * textprop.c (validate_plist, interval_has_all_properties)
23476 (interval_has_some_properties, interval_has_some_properties_list)
23477 (add_properties, text_property_list):
23478 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23479 * minibuf.c (Fassoc_string):
23480 * macselect.c (x_own_selection, x_clear_frame_selections)
23481 (Fx_disown_selection_internal):
23482 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23483 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23484
234852007-10-17 Chong Yidong <cyd@stupidchicken.com>
23486
23487 * process.c: Link to libs for calling res_init() if available.
23488 (Fmake_network_process): Call res_init() before getaddrinfo or
23489 gethostbyname, if possible.
23490
234912007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23492
23493 * lread.c (read1): Set pvectype for char_tables.
23494
23495 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23496 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23497 Add type checks.
23498 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23499
23500 * alloc.c (free_misc): Use XMISCTYPE.
23501 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23502
235032007-10-17 Glenn Morris <rgm@gnu.org>
23504
23505 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23506 (syms_of_minibuf): Add Qcompletion_ignore_case.
23507 * dired.c (Qcompletion_ignore_case): Change to external.
23508 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23509 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23510 (Fread_file_name): Use it rather than intern'ing.
23511
23512 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23513 (Fread_coding_system): Ignore case of user input.
23514
235152007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23516
23517 * xdisp.c (handle_display_prop): Ignore display specs after
23518 replacing one when string text is being replaced.
23519 (handle_single_display_spec): Pretend as if characters with display
23520 property haven't been consumed only when buffer text is being replaced.
23521
235222007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23523
23524 * xfns.c (Fx_create_frame, Fx_display_list):
23525 * window.c (window_fixed_size_p, enlarge_window)
23526 (shrink_window_lowest_first):
23527 * macterm.c (init_font_name_table):
23528 * macfns.c (Fx_create_frame, Fx_display_list):
23529 * lread.c (close_load_descs):
23530 * keyboard.c (read_char_x_menu_prompt):
23531 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23532 * coding.c (code_convert_region_unwind): Test the type of an object
23533 rather than just !NILP before extracting data from it.
23534
23535 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23536
23537 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23538 (XMISCANY): New macro.
23539 (XMISCTYPE): Use it.
23540 (struct Lisp_Misc_Any): New type.
23541 (union Lisp_Misc): Use it.
23542 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23543 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23544 (find_symbol_value, set_internal, default_value, Fset_default)
23545 (Fmake_variable_buffer_local, Fmake_local_variable)
23546 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23547 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23548 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23549 * alloc.c (allocate_buffer): Set the size and tag.
23550 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23551 Use XMISCANY.
23552 (die): Follow the GNU convention for error messages.
23553 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23554 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23555 tag any more.
23556 (set_buffer_internal_1):
23557 * frame.c (store_frame_param):
23558 * eval.c (specbind):
23559 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23560
23561 * doc.c (Fsnarf_documentation): Simplify.
23562
235632007-10-14 Juanma Barranquero <lekktu@gmail.com>
23564
23565 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23566 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23567
235682007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23569
23570 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23571
235722007-10-14 Juanma Barranquero <lekktu@gmail.com>
23573
23574 * eval.c (do_autoload): Don't save autoloads.
23575
23576 * data.c (Ffset): Save autoload of the function being set.
23577
235782007-10-07 John Paul Wallington <jpw@pobox.com>
23579
23580 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23581 parameter before setting up faces.
23582
235832007-10-13 Eli Zaretskii <eliz@gnu.org>
23584
23585 * ccl.c (Fregister_code_conversion_map):
23586 * keyboard.c (append_tool_bar_item): Reformat last change.
23587
23588 * lisp.h (eabs): Rename from `abs'. All callers changed.
23589
235902007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23591
23592 * buffer.c (add_overlay_mod_hooklist):
23593 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23594 * fontset.c (make_fontset):
23595 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23596 (append_tool_bar_item):
23597 * macmenu.c (grow_menu_items):
23598 * w32menu.c (grow_menu_items):
23599 * xmenu.c (grow_menu_items): Use larger_vector.
23600
236012007-10-13 Eli Zaretskii <eliz@gnu.org>
23602
23603 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23604 selected frame'' on MSDOS).
23605
236062007-10-12 Martin Rudalics <rudalics@gmx.at>
23607
23608 * frame.c (Qexplicit_name): New variable.
23609 (x_report_frame_params): Report it in parameter alist.
23610 (syms_of_frame): Intern and staticpro it.
23611
236122007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23613
23614 * macfns.c (x_create_tip_frame): Set terminal for frame.
23615
236162007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23617
23618 * frame.c (Qenvironment): Remove.
23619 (syms_of_frame) <Qenvironment>: Don't initialize.
23620 (Fdelete_frame): Don't treat the `environment' param specially.
23621 * frame.h (Qenvironment): Don't declare.
23622 * callproc.c (set_initial_environment): Don't set unused frame param.
23623
23624 * frame.c (Fframe_with_environment): Remove.
23625 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23626
23627 * lisp.h (Fframe_with_environment): Don't declare.
23628
236292007-10-10 Juanma Barranquero <lekktu@gmail.com>
23630
23631 * indent.c (indent_tabs_mode, last_known_column)
23632 (last_known_column_modified): Make static.
23633 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23634
236352007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23636
23637 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23638
236392007-10-09 Jason Rumney <jasonr@gnu.org>
23640
23641 * w32term.c (x_set_window_size): Disable code that attempts to tell
23642 Lisp code about a size change before it actually happens.
23643
236442007-10-09 Richard Stallman <rms@gnu.org>
23645
23646 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23647 return HANDLED_RETURN.
23648
236492007-10-08 Martin Rudalics <rudalics@gmx.at>
23650
23651 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23652 when there's an unread command event.
23653
23654 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23655 window autoselection act appropriately when leaving selected frame.
23656 (syms_of_frame): Initialize focus_follows_mouse.
23657 * frame.h (focus_follows_mouse): Extern it.
23658 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23659 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23660 * msdos.c (dos_rawgetc): Likewise.
23661 * w32term.c (w32_read_socket): Likewise.
23662 * xterm.c (handle_one_xevent): Likewise.
23663 * xdisp.c (syms_of_xdisp): In doc-string of
23664 mouse-autoselect-window mention focus-follows-mouse.
23665
236662007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23667
23668 * macterm.c (mac_load_query_font): Fix missing return value.
23669 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23670 Add BLOCK_INPUT.
23671
236722007-10-08 Richard Stallman <rms@gnu.org>
23673
23674 * xdisp.c (get_window_cursor_type): Implement documented behavior
23675 for cursor-in-non-selected-windows = t.
23676
236772007-10-08 Jason Rumney <jasonr@gnu.org>
23678
23679 * w32.c (w32_get_resource): Always close registry keys.
23680
236812007-10-08 Jason Rumney <jasonr@gnu.org>
23682
23683 * makefile.w32-in (LIBS): Add COMCTL32.
23684
23685 * w32fns.c (globals_of_w32fns): Init common controls.
23686
236872007-10-08 Richard Stallman <rms@gnu.org>
23688
23689 * image.c (our_memory_buffer): Rename from omfib_buffer.
23690
236912007-10-08 Richard Stallman <rms@gnu.org>
23692
23693 * buffer.c (Foverlays_at): Doc fix.
23694
236952007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23696
23697 * fns.c (Fplist_put): Preserve uneven tail data.
23698
236992007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23700
23701 * termhooks.h (enum event_kind): Remove trailing comma.
23702
23703 * frame.h (enum): Remove trailing comma.
23704
237052007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23706
23707 * w32proc.c (delete_child): Don't terminate threads of zombies.
23708
237092007-10-08 Martin Rudalics <rudalics@gmx.at>
23710
23711 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23712
23713 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23714 last-repeatable-command.
23715 (init_kboard): Initialize Vlast_repeatable_command.
23716 (command_loop_1): Set it to real_this_command unless that was
23717 bound to an input event.
23718 (mark_kboards): Mark it.
23719
237202007-10-08 Richard Stallman <rms@gnu.org>
23721
23722 * eval.c (condition-case): Doc fix.
23723
237242007-10-08 Masatake YAMATO <jet@gyve.org>
23725
23726 * xfaces.c (tty_supports_face_attributes_p): Fix code
23727 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23728 was copied and not edited.
23729
237302007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23731
23732 Add new `input-decode-map' keymap and use it for terminal
23733 escape sequences.
23734 * keyboard.h (struct kboard): Add Vinput_decode_map.
23735 Remove Vlocal_key_translation_map.
23736 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23737 (init_kboard): Init input-decode-map.
23738 Replace local-key-translation-map back with key-translation-map.
23739 (syms_of_keyboard): Declare input-decode-map.
23740 Remove local-key-translation-map. Update docstrings.
23741 (mark_kboards): Mark Vinput_decode_map.
23742 Don't mark Vlocal_key_translation_map.
23743 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23744 Replace local-key-translation-map back with key-translation-map.
23745 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23746 Bind in input-decode-map rather than function-key-map.
23747
23748 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23749 This was made redundant by the previous introduction of XSETPVECTYPE.
23750
237512007-10-09 Richard Stallman <rms@gnu.org>
23752
23753 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23754
237552007-09-29 Richard Stallman <rms@gnu.org>
23756
23757 * eval.c (internal_condition_case_2, internal_condition_case_1)
23758 (internal_condition_case): Reenable abort if x_catching_errors ()
23759 to see if that really happens and why.
23760
237612007-10-06 Andreas Schwab <schwab@suse.de>
23762
23763 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23764
237652007-10-04 Juanma Barranquero <lekktu@gmail.com>
23766
23767 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23768
237692007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23770
23771 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23772
237732007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23774
23775 * window.h (struct window):
23776 * window.c (struct save_window_data, struct saved_window):
23777 * termhooks.h (struct terminal):
23778 * process.h (struct Lisp_Process):
23779 * frame.h (struct frame):
23780 * buffer.h (struct buffer):
23781 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23782 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23783 The size field of (pseudo)vectors is now unsigned.
23784 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23785
23786 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23787 Turn `count' into an integer.
23788
23789 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23790 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23791 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23792 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23793 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23794
23795 * alloc.c (allocate_pseudovector): New fun.
23796 (ALLOCATE_PSEUDOVECTOR): New macro.
23797 (allocate_window, allocate_terminal, allocate_frame)
23798 (allocate_process): Use it.
23799 (mark_vectorlike): New function.
23800 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23801 (mark_terminals): Use it.
23802 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23803 (Fmake_byte_code): Use XSETPVECTYPE.
23804
23805 * frame.c (Fframe_parameters): Minor simplification.
23806
23807 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23808
23809 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23810
23811 * buffer.c (Fget_buffer_create, init_buffer_once):
23812 * lread.c (defsubr):
23813 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23814
23815 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23816 defined differently in the m/*.h files.
23817 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23818 (XSETPVECTYPE): New macro.
23819 (XSETPSEUDOVECTOR): Use it.
23820
23821 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23822 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23823
23824 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23825 * lread.c (defvar_per_buffer):
23826 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23827
23828 * window.c (candidate_window_p): Only consider as visible frames that
23829 are on the same terminal.
23830
23831 * m/ibms390x.h (MARKBIT): Remove unused macro.
23832
238332007-10-01 Juanma Barranquero <lekktu@gmail.com>
23834
23835 * lread.c (Fload): Fix typo in docstring.
23836
238372007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23838
23839 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23840 of a non-zero value can't yield zero.
23841
238422007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23843
23844 * term.c (term_clear_mouse_face, term_mouse_highlight)
23845 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23846
23847 * print.c (safe_debug_print): Use XHASH.
23848
23849 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23850 Lisp elements such as tags.
23851 (XHASH): New macro.
23852 (EQ): Use it.
23853 (SREF, SSET, STRING_COPYIN): Use SDATA.
23854 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23855
23856 * alloc.c (mark_terminal): Remove left-over declaration.
23857 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23858 (allocate_vectorlike): Remove type argument. Adjust callers.
23859 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23860 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23861
23862 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23863 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23864 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23865 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23866 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23867 Use them.
23868
23869 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23870 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23871 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23872
238732007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23874
23875 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23876 loaded by default.
23877
238782007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23879
23880 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23881 on this tty.
23882 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23883
23884 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23885 Update all users.
23886 (handle_one_term_event): Use Gpm_DrawPointer.
23887 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23888 Signal errors instead of returning nil. Always return nil.
23889 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23890 Make it a noop if gpm-mouse was not activated.
23891 (syms_of_term): Update names.
23892
238932007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23894
23895 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23896 (init_sys_modes): Check that gpm_tty is the current tty.
23897
23898 * alloc.c (allocate_terminal): Set the vector size to only count the
23899 lisp fields. Initialize those to nil.
23900 (mark_object): Don't treat terminals specially.
23901 (mark_terminal): Remove.
23902 (mark_terminals): Use mark_object instead.
23903
23904 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23905 the GC to the beginning.
23906
23907 * indent.h:
23908 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23909
23910 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23911
239122007-09-25 Jason Rumney <jasonr@gnu.org>
23913
23914 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23915
23916 * w32console.c (create_w32cons_output): Remove.
23917
23918 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23919
23920 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23921 (reset_sys_modes): Use reset_terminal_modes_hook.
23922
239232007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23924
23925 * eval.c (do_autoload): Don't output any message.
23926
239272007-09-24 Juri Linkov <juri@jurta.org>
23928
23929 * emacs.c (standard_args): Change priority of "--no-splash"
23930 from 40 to 3. Add "--no-desktop" with the same priority.
23931
239322007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23933
23934 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23935 and optimize the case where they are all 1.
23936
239372007-09-23 Johannes Weiner <hannes@saeurebad.de>
23938
23939 * lisp.h (abs): Define if not defined.
23940 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23941 Don't define `abs', since it's defined in lisp.h.
23942
239432007-09-22 Eli Zaretskii <eliz@gnu.org>
23944
23945 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23946 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23947 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23948 (init_tty): Use DEV_TTY instead of "/dev/tty".
23949 [WINDOWSNT]: No need to protect from NAME arg being null.
23950
239512007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23952
23953 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23954 up the tty state.
23955
239562007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23957
23958 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23959 (gpm_tty): Change its type.
23960 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23961 (gpm_tty): Change its type and initialize it.
23962 (Fterm_open_connection): Check the frame is indeed a tty.
23963 Use the new gpm_tty.
23964 (Fterm_close_connection): Use the new gpm_tty.
23965 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23966 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23967
239682007-09-21 Juanma Barranquero <lekktu@gmail.com>
23969
23970 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23971 underline_color, to draw strike-through.
23972
239732007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23974
23975 * lisp.h (allocate_terminal): Declare.
23976
23977 * window.c (candidate_window_p): Consider frames that are being placed
23978 by the user as somewhere between visible and iconified.
23979 (window_loop): Prefer windows on the current frame.
23980 (Fselect_window): Move the use of select-frame to the beginning so we
23981 can just delegate all the work (it'll call us back anyway).
23982
23983 * frame.c (Qdisplay_environment_variable):
23984 * frame.h (Qdisplay_environment_variable): Delete.
23985
23986 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23987 of the first arg, since that value may be a union.
23988
23989 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23990 parameter rather than Qdisplay_environment_variable. If all else
23991 fails, look for DISPLAY in initial-environment.
23992
239932007-09-21 Glenn Morris <rgm@gnu.org>
23994
23995 * Makefile.in (emacstool): Remove target.
23996 (lisp, shortlisp): Remove termdev.elc.
23997
239982007-09-21 Markus Triska <markus.triska@gmx.at>
23999
24000 * xterm.c (x_delete_display): Compile session management conditionally.
24001
240022007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24003
24004 * callproc.c (getenv_internal_1): New function.
24005 (getenv_internal): Use it.
24006 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24007
24008 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24009 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24010 (Fset_terminal_parameter): Work with dead terminals as well.
24011 (Fmodify_terminal_parameters): Remove.
24012
24013 * terminal.c (get_terminal): Handle terminals.
24014 Make sure the terminal returned is live.
24015 (create_terminal): Use allocate_terminal.
24016 (mark_terminals): Move to alloc.c.
24017 (delete_terminal): Use terminal->name as liveness status.
24018 NULL out fields after freeing their contents.
24019 Don't deallocate the object.
24020 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24021 rather than an int.
24022 (Fterminal_live_p): Accept non-integer arguments.
24023 (Fterminal_list): Return terminal objects rather than an ints.
24024
24025 * alloc.c (enum mem_type): New member for `terminal' objects.
24026 (allocate_terminal): New function.
24027 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24028 Handle terminals.
24029 (mark_terminal): New fun.
24030 (mark_terminals): Move from terminal.c.
24031
24032 * term.c (get_tty_terminal): Don't treat output_initial specially.
24033 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24034 (delete_tty): Use terminal->name as liveness status.
24035
24036 * termhooks.h (struct terminal): Make it into a pseudovector.
24037 Remove `deleted' replaced by checking `name's nullness.
24038
24039 * print.c (print_object): Handle terminals.
24040
24041 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24042 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24043
24044 * frame.c (make_terminal_frame):
24045 * keyboard.c (tty_read_avail_input):
24046 * w32term.c (x_delete_terminal):
24047 * xfns.c (Fx_create_frame, x_create_tip_frame):
24048 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24049
240502007-09-20 Glenn Morris <rgm@gnu.org>
24051
24052 * process.c (Fmake_network_process): Doc fix.
24053
240542007-09-19 Jason Rumney <jasonr@gnu.org>
24055
24056 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24057
240582007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24059
24060 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24061 Fix a C warning regarding variable constness.
24062
24063 * xterm.c (handle_one_xevent): Fix a C warning.
24064
240652007-09-18 Jason Rumney <jasonr@gnu.org>
24066
24067 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24068
240692007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24070
24071 * gtkutil.c (gdpy_def): New variable.
24072 (xg_initialize): Initialize gdpy_def.
24073 (xg_display_close): If no other display exists, set gdpy_def to a
24074 new connection.
24075
240762007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24077
24078 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24079 when we have no file name for the icon.
24080 (xg_tool_bar_expose_callback): Remove.
24081 (xg_create_tool_bar): Don't connect expose signal to
24082 xg_tool_bar_expose_callback.
24083 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24084
240852007-09-16 Andreas Schwab <schwab@suse.de>
24086
24087 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24088 values instead of zapping them.
24089
240902007-09-14 Glenn Morris <rgm@gnu.org>
24091
24092 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24093 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24094 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24095 scope and rename to omfib_buffer for clarity.
24096 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24097
240982007-09-14 Kenichi Handa <handa@m17n.org>
24099
24100 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24101
241022007-09-13 Jason Rumney <jasonr@gnu.org>
24103
24104 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24105
24106 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24107
24108 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24109 (mac_term_init): Call here instead, passing rif.
24110
241112007-09-13 Glenn Morris <rgm@gnu.org>
24112
24113 * s/hpux.h: No longer define `static' as nothing.
24114
241152007-09-13 Johan Bockgård <bojohan@gnu.org>
24116
24117 * callint.c (Fcall_interactively): Remove unused var `fun'.
24118
241192007-09-12 Romain Francoise <romain@orebokech.com>
24120
24121 * window.c (prefer_window_split_horizontally, display_buffer):
24122 Revert 2007-09-08 change.
24123
241242007-09-12 Glenn Morris <rgm@gnu.org>
24125
24126 * alloca.c: Remove file.
24127 * Makefile.in (alloca): Do not undef.
24128 (allocaobj, alloca.o): Remove.
24129 (otherobj): Remove allocaobj.
24130 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24131 * regex.c (C_ALLOCA): Remove all references and code that was only
24132 used when this was defined.
24133 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24134 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24135 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24136
24137 * Makefile.in (SOURCES, unlock, relock): Delete.
24138
24139 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24140 (menu_grab_callback): All uses changed.
24141
24142 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24143 (x_reply_selection_request): All uses changed.
24144
241452007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24146
24147 * lread.c (load_warn_old_style_backquotes): Change message to look
24148 better when it appears in the middle of byte-compiler messages.
24149
241502007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24151
24152 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24153
24154 * xterm.c (x_create_terminal): Add comment.
24155
24156 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24157
241582007-09-10 Richard Stallman <rms@gnu.org>
24159
24160 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24161
241622007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24163
24164 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24165 (DEFUN): Document `intspec', use it instead of `prompt'.
24166
24167 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24168
24169 * data.c (Finteractive_form): If the interactive specification starts
24170 with a `(', use it as a Lisp form.
24171
24172 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24173 name and file modes.
24174
24175 * callint.c (Fcall_interactively): Comment fixes.
24176
241772007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24178
24179 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24180 and compiled functions.
24181
241822007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24183
24184 * window.c (prefer_window_split_horizontally): New variable.
24185 (display_buffer): Consider splitting window horizontally depending
24186 on prefer_window_split_horizontally.
24187
241882007-09-08 Eli Zaretskii <eliz@gnu.org>
24189
24190 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24191
241922007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24193
24194 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24195
24196 * frame.c (x_set_frame_parameters): Check number is positive before
24197 using XFASTINT.
24198
24199 * window.c (freeze_window_start): Don't presume selected_window holds
24200 a window object.
24201 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24202
242032007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24204
24205 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24206
242072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24208
24209 * window.c (Vsplit_window_preferred_function): New var.
24210 (Fdisplay_buffer): Use it.
24211 (syms_of_window): Export, and initialize it.
24212
242132007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24214
24215 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24216
242172007-09-06 Glenn Morris <rgm@gnu.org>
24218
24219 * gtkutil.c (menu_grab_callback) <cnt>:
24220 * xselect.c (x_reply_selection_request) <cnt>: Move static
24221 variable to file scope.
24222
242232007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24224
24225 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24226 consistent values of selected_frame and selected_window.
24227
242282007-09-04 Jason Rumney <jasonr@gnu.org>
24229
24230 * w32console.c (initialize_w32_display): Zero unused hooks.
24231
242322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24233
24234 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24235 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24236
242372007-09-04 Jason Rumney <jasonr@gnu.org>
24238
24239 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24240 in w32console.c. Set up input. Remove XXX comments that have been
24241 confirmed as correct.
24242
24243 * s/ms-w32.h (MULTI_KBOARD): Define.
24244
24245 * w32console.c (one_and_only_w32cons): Remove.
24246 (initialize_w32_display): Take terminal argument.
24247
24248 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24249 initialize_w32_display.
24250 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24251
24252 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24253
24254 * keyboard.c (discard_mouse_events): Discard it.
24255 (make_lispy_event): Translate it to a lisp event.
24256 (lispy_wheel_names): Add wheel-left and right events.
24257 (syms_of_keyboard): Enlarge wheel_syms.
24258
24259 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24260 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24261
24262 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24263
24264 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24265 from WM_MOUSEHWHEEL.
24266 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24267
24268 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24269 terminal.
24270
24271 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24272 keyboard for the terminal.
24273
242742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24275
24276 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24277 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24278 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24279 and resume-tty-function to resume-tty-hook.
24280 (Fsuspend_tty, Fresume_tty): Use new names.
24281
242822007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24283
24284 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24285 if it starts with "n:".
24286
242872007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24288
24289 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24290
242912007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24292
24293 * frame.h:
24294 * frame.c (Qterm_environment_variable): Remove.
24295 (syms_of_frame): Don't init and staticpro it.
24296
24297 * callproc.c (getenv_internal): Remove special case for $TERM.
24298
24299 * callproc.c (Vinitial_environment): New variable.
24300 (set_initial_environment): Initialize it.
24301 (syms_of_callproc): Declare it.
24302 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24303 TERM under which a process runs is never related to the TERM in which
24304 Emacs is running.
24305
243062007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24307
24308 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24309 * s/darwin.h: ... do it here.
24310
243112007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24312
24313 * lisp.h (set_initial_environment): Rename from set_global_environment.
24314
24315 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24316 removed by mistake on the multi-tty branch.
24317
24318 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24319 (Fmodify_frame_parameters): Return a value.
24320
24321 * image.c (png_load): Comment-out var only used in commented-out code.
24322
24323 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24324 before passing it to mark_object.
24325
24326 * xfaces.c (internal_resolve_face_name): Return a value.
24327 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24328
24329 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24330 (x_icon): Comment-out var only used in commented-out code.
24331
243322007-08-29 Romain Francoise <romain@orebokech.com>
24333
24334 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24335 QUIT hasn't been provided.
24336
243372007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24338
24339 * callproc.c (child_setup, getenv_internal): Use the
24340 display-environment-variable and term-environment-variable frame params.
24341 (set_initial_environment): Initialise Vprocess_environment.
24342
24343 * config.in: Disable multi-keyboard support on a mac.
24344
24345 * frame.c (Qterm_environment_variable)
24346 (Qdisplay_environment_variable): New variables.
24347 (syms_of_frame): Intern and staticpro them.
24348 (Fmake_terminal_frame): Disable output method test.
24349
24350 * frame.h: Declare them here.
24351
24352 * macfns.c (x_set_mouse_color): Get rif from the frame.
24353 (x_set_tool_bar_lines): Don't use updating_frame.
24354 (mac_window): Add 2 new parameters for consistency with other systems.
24355 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24356 frame parameters following what is done in X11 and w32. Don't use
24357 FRAME_MAC_DISPLAY_INFO.
24358 (Fx_open_connection, start_hourglass): Remove window-system check.
24359 (x_create_tip_frame): Get the keyboard from the terminal.
24360
24361 * macmenu.c: Reorder includes.
24362 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24363
24364 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24365 terminal parameter.
24366 (x_clear_frame): Add a frame parameter.
24367 (note_mouse_movement): Get rif from the frame.
24368 (mac_term_init): Initialize the terminal.
24369 (mac_initialize): Make static and move terminal initialization ...
24370 (mac_create_terminal): ... to this new function.
24371
24372 * macterm.h (struct mac_display_info): Add terminal.
24373 (mac_initialize): Delete declaration.
24374
24375 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24376
24377 * sysdep.c: Comment out text after #endif.
24378
24379 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24380 is defined. Better initialize ttys in windows. Use terminal
24381 specific mouse_position_hook.
24382
24383 * termhooks.h (union display_info): Add mac_display_info.
24384
24385 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24386 Set the default minibuffer frame, window_system and the rest of the
24387 frame parameters following what is done in X11.
24388
24389 * w32term.c (w32_initialize): Make static.
24390
24391 * xselect.c (x_handle_selection_clear): Only access
24392 terminal->kboard when MULTI_KBOARD is defined.
24393
24394 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24395 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24396
243972007-08-29 Jason Rumney <jasonr@gnu.org>
24398
24399 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24400 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24401
24402 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24403 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24404
24405 * keyboard.c (restore_kboard_configuration): Only define when
24406 MULTI_KBOARD defined.
24407
24408 * makefile.w32-in: Update dependancies from Makefile.in.
24409 (OBJ1): Add terminal.$(O)
24410
24411 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24412 Don't define function body.
24413 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24414
24415 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24416
24417 * w32.c (request_sigio, unrequest_sigio): Remove.
24418
24419 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24420 (w32con_clear_frame, w32con_clear_end_of_line)
24421 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24422 (w32con_delete_glyphs, w32con_set_terminal_window)
24423 (scroll_line, w32_sys_ring_bell): Add frame arg.
24424 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24425 Add terminal arg.
24426 (PICK_FRAME): Remove.
24427 (w32con_write_glyphs): Use frame specific terminal coding.
24428 (one_and_only_w32cons): New global variable.
24429 (initialize_w32_display): Use it for storing hooks.
24430 (create_w32cons_output): New function.
24431
24432 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24433 arg a frame.
24434
24435 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24436 Set window_system.
24437 (x_set_tool_bar_lines): Don't use updating_frame.
24438 (Fx_create_frame): Set terminal and ref count.
24439 (Fx_open_connection): Remove window-system check.
24440
24441 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24442
24443 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24444 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24445 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24446 Add frame arg.
24447 (x_delete_terminal, w32_create_terminal): New functions.
24448 (w32_term_init): Create a terminal.
24449 (w32_initialize): Move terminal specific initialization to
24450 w32_create_terminal.
24451
24452 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24453 (w32_clear_rect, w32_clear_area): Use background from frame.
24454 (w32_display_info): Add terminal.
24455 (w32_sys_ring_bell, x_delete_display): Declare here.
24456
24457 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24458
24459 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24460
244612007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24462
24463 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24464 Fix get_named_tty calls for the controlling tty.
24465
244662007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24467
194d44e7 24468 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24469
244702007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24471
24472 * term.c (tty_insert_glyphs): Add missing first parameter.
24473
244742007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24475
24476 * buffer.c (Fbuffer_list, Fbury_buffer):
24477 Take frame->buried_buffer_list into account.
24478
24479 * cm.c (current_tty): New variable, for cmputc().
24480 (cmputc): Use it.
24481 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24482 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24483 (cmgoto): Add tty parameter. Pass it on to calccost().
24484 Use emacs_tputs() instead of tputs().
24485
24486 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24487 tputs().
24488 (current_tty): New variable, for cmputc().
24489 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24490
24491 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24492 (internal_condition_case, internal_condition_case_1)
24493 (internal_condition_case_2): Don't abort when x_catching_errors.
24494
24495 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24496 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24497 prevent crashes caused by bogus longjmps in read_char.
24498
24499 * keymap.h (Fset_keymap_parent): Add EXFUN.
24500
24501 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24502 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24503 Remove redundant definition.
24504
24505 * macfns.c (x_set_mouse_color, x_make_gc):
24506 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24507
24508 * w32term.c (x_free_frame_resources):
24509 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24510 (w32_initialize): Use the accessor macros for terminal characteristics.
24511
24512 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24513 Use the accessor macros for terminal characteristics.
24514 * msdos.c (internal_terminal_init): Use the accessor macros for
24515 terminal characteristics.
24516 (ScreenVisualBell, internal_terminal_init):
24517 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24518
24519 * termopts.h (no_redraw_on_reenter): Declare.
24520
24521 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24522 (mark_terminals, mark_ttys): Declare.
24523 (Fgarbage_collect): Call them.
24524 (mark_object): Mark buried_buffer_list.
24525
24526 * prefix-args.c: Include stdlib.h for exit.
24527
24528 * syssignal.h: Add comment.
24529
24530 * indent.c: Include stdio.h.
24531
24532 * window.h (Vinitial_window_system): Declare.
24533 (Vwindow_system): Delete declaration.
24534
24535 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24536
24537 * image.c (lookup_image): Don't initialize `c' until the xasserts
24538 have been run.
24539
24540 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24541 FRAME_FOREGROUND_PIXEL.
24542
24543 * print.c (print_preprocess): Don't lose print_depth levels while
24544 iterating.
24545
24546 * widget.c (update_from_various_frame_slots):
24547 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24548
24549 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24550 frames.
24551 (window_internal_height): Remove bogus make_number call.
24552 (init_window_once): Call make_terminal_frame with two zero parameters.
24553
24554 * fileio.c (Fread_file_name): Update comment.
24555
24556 * callint.c (Fcall_interactively):
24557 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24558 Make sure it is correctly unwound.
24559
24560 * xsmfns.c (x_session_close): New function.
24561
24562 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24563 Delete declarations.
24564
24565 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24566 (x_output): Remove background_pixel and foreground_pixel fields.
24567 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24568 (x_delete_device, x_session_close): Declare.
24569
24570 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24571 (read_filtered_event): Call `read_char' with a local
24572 `wrong_kboard_jmpbuf'.
24573
24574 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24575 Don't call single_kboard_state. Use FRAME_RIF.
24576
24577 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24578 systems.
24579
24580 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24581 (Fframe_with_environment, Fset_input_meta_mode)
24582 (Fset_quit_char): EXFUN.
24583 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24584 (init_sys_modes, reset_sys_modes): Update prototypes.
24585 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24586
24587 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24588 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24589 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24590 Delete declarations.
24591 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24592 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24593 New declarations.
24594
24595 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24596 already does that during init_display(). Call syms_of_keymap
24597 before syms_of_keyboard. Call `syms_of_terminal'.
24598 Call set_initial_environment, not set_process_environment.
24599 (shut_down_emacs): Call reset_all_sys_modes() instead of
24600 reset_sys_modes().
24601
24602 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24603 (internal_resolve_face_name, resolve_face_name_error): New functions.
24604 (resolve_face_name): Protect against loops and errors thrown by Fget.
24605 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24606 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24607
24608 * scroll.c: Replace CURTTY() with local variables throughout the
24609 file (where applicable).
24610 (calculate_scrolling, calculate_direct_scrolling)
24611 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24612 characteristics.
24613
24614 * keymap.c (Vfunction_key_map): Remove.
24615 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24616 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24617 (Vkey_translation_map): Remove.
24618 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24619 (Fdescribe_buffer_bindings)
24620 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24621 Update for terminal-local key-translation-map.
24622
24623 * Makefile.in (callproc.o): Update dependencies.
24624 (lisp, shortlisp): Add termdev.elc.
24625 (obj): Add terminal.o.
24626 (terminal.o): Add dependencies.
24627 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24628 (data.o, fns.o): Add termhooks.h dependency.
24629 (SOME_MACHINE_LISP): Add dnd.elc.
24630 (minibuf.o): Fix typo.
24631 Update dependencies.
24632
24633 * data.c (do_symval_forwarding, store_symval_forwarding)
24634 (find_symbol_value): Use the selected frame's keyboard, not
24635 current_kboard.
24636
24637 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24638 Vwindow_system.
24639
24640 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24641 Fmenu_bar_open.
24642 (syms_of_xmenu): Update defsubr.
24643 (mouse_position_for_popup, Fx_popup_menu)
24644 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24645 (set_frame_menubar, free_frame_menubar)
b97439ce 24646 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24647 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24648 an X frame.
24649
24650 * xselect.c (x_own_selection): Abort if not an X frame.
24651 (some_frame_on_display): Check if it is an X frame.
24652 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24653
24654 * coding.c: Include frame.h and termhooks.h.
24655 (terminal_coding, keyboard_coding): Delete.
24656 (Fset_terminal_coding_system_internal)
24657 (Fset_keyboard_coding_system_internal)
24658 (Fkeyboard_coding_system)
24659 (Fterminal_coding_system): Add a terminal parameter.
24660 Get terminal_coding from the terminal.
24661 (init_coding_once): Don't call setup_coding_system here.
24662
24663 * dispextern.h (set_scroll_region, turn_off_insert)
24664 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24665 (tty_clear_end_of_line, tty_setup_colors)
24666 (delete_tty, updating_frame)
24667 (produce_special_glyphs, produce_glyphs, write_glyphs)
24668 (insert_glyphs): Remove.
24669 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24670 (tty_turn_off_highlight, get_tty_size): Add declaration.
24671 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24672
24673 * frame.h (enum output_method): Add output_initial.
24674 (struct x_output): Delete.
24675 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24676 Access foreground_pixel and background_pixel directly from the frame.
24677 (tty_display): Delete.
24678 (struct frame): Add buried_buffer_list, foreground_pixel,
24679 background_pixel and terminal. Delete kboard.
24680 (union output_data): Add tty.
24681 (FRAME_KBOARD): Get the kboard from the terminal.
24682 (FRAME_INITIAL_P): New macro.
24683 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24684 (Qterm_environment_variable, Qdisplay_environment_variable)
24685 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24686 New declarations.
24687
24688 * termchar.h (tty_output, tty_display_info): New structures.
24689 (tty_list): Declare.
24690 (FRAME_TTY, CURTTY): New macros.
24691 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24692 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24693 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24694 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24695
24696 * callproc.c: Include frame.h and termhooks.h, for terminal
24697 parameters.
24698 (add_env): New function.
24699 (child_setup): Use it.
24700 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24701 (getenv_internal): Fix get_terminal_param call.
24702 (Fgetenv_internal, egetenv): Update doc.
24703 (syms_of_callproc): Initialize Vprocess_environment to nil.
24704 Register and initialize them. Remove obsolete defvars. Update doc
24705 strings.
24706 (child_setup): Handle Vlocal_environment_variables.
24707 (getenv_internal): Add terminal parameter.
24708 Handle Vlocal_environment_variables.
24709 (Fgetenv_internal): Add terminal parameter.
24710 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24711 environment in a frame (not terminal) parameter. Update doc strings.
24712 (set_initial_environment): Rename from set_global_environment.
24713 Store Emacs environment in initial frame parameter.
24714
24715 * xdisp.c (redisplay_internal): Update references to
24716 `previous_terminal_frame'.
24717 (display_mode_line, Fformat_mode_line): Replace calls to
24718 `push_frame_kboard' with `push_kboard'.
24719 (get_glyph_string_clip_rects): Add extra parentheses and
24720 braces to prevent compiler warnings.
24721 (calc_pixel_width_or_height): Add xassert to check that the
24722 frame is alive. Don't call `lookup_image' on a termcap frame.
24723 (message2_nolog, message3_nolog, redisplay_internal)
24724 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24725 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24726 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24727 (Fx_display_pixel_width, Fx_display_pixel_height)
24728 (Fx_display_planes, Fx_display_color_cells)
24729 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24730 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24731 (Fx_display_backing_store, Fx_display_visual_class)
24732 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24733 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24734
24735 * xfns.c (x_set_foreground_color x_set_background_color)
24736 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24737 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24738 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24739 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24740 terminal that is being deleted.
24741 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24742 frame parameter, and make sure it overrides any user-supplied setting.
24743 (Fx_close_connection, Fx_synchronize): Unify argument names with
24744 the rest of the DEFUNs.
24745
24746 * dispnew.c (Fsend_string_to_terminal): Update call to
24747 `get_tty_terminal'.
24748 (Fredraw_frame, Fsend_string_to_terminal)
24749 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24750 FRAME_TERMCAP_P and FRAME_TTY.
24751 (window_change_signal): Don't believe width/height values that are
24752 impossibly small.
24753 (Vinitial_window_system): Rename from Vwindow_system.
24754 (termscript, Wcm, rif): Delete.
24755
24756 * termhooks.h (struct terminal): New struct containing the
24757 previously global text display hooks and new members NAME,
24758 DELETED and PARAM_ALIST.
24759 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24760 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24761 (FRAME_RIF): New macros.
24762 (get_terminal_param, get_device): New declarations.
24763 (termscript): Delete declaration.
24764
24765 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24766 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24767 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24768 FRAME_FOREGROUND_PIXEL.
24769 (x_fully_uncatch_errors): Disable definition.
24770 (x_scroll_bar_expose): Fix reference to foreground pixel.
24771 (XTread_socket): Disable loop on all X displays.
24772 (x_delete_terminal): Don't set terminal->deleted and let
24773 delete_terminal delete the frames on the terminal.
24774 (x_delete_display): Doc update to reflect changes in
24775 delete_terminal.
24776 (x_display_info) <terminal>: Move member earlier in the struct.
24777 (deleting_tty): Remove old variable.
24778 (Fsuspend_tty): Call clear_tty_hooks.
24779 (Fresume_tty, init_tty): Call set_tty_hooks.
24780 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24781 errors on X frames.
24782 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24783 (handle_one_xevent): Initialize `f' to NULL.
24784 (x_delete_terminal, x_create_terminal): New functions.
24785 (XTset_terminal_modes, XTreset_terminal_modes)
24786 (XTread_socket, x_connection_closed, x_term_init)
24787 (x_term_init, x_delete_display): Add terminal parameter.
24788 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24789 X connections.
24790
24791 * frame.c: Include termchar.h.
24792 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24793 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24794 (Qdisplay_environment_variable): New vars.
24795 (Fframep): Deal with output_initial.
24796 (Fframe-live-p): Doc fix.
24797 (Fwindow-system): New function.
24798 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24799 (make_terminal_frame): Don't create frames on a terminal that is
24800 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24801 (store_frame_param): Check for found_for_frame before calling XFRAME.
24802 (Fmake_terminal_frame): Handle NULL tty names correctly.
24803 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24804 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24805 frames to refer to a deleted frame in their 'environment parameter.
24806 (Fframe_with_environment): New function.
24807 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24808 (get_future_frame_param): New function.
24809 (Fmake_terminal_frame): Use it.
24810 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24811
24812 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24813 * sysdep.c (reset_sys_modes): Update for renames.
24814
24815 * keyboard.c (tty_read_avail_input): New function.
24816 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24817 (syms_of_keyboard): Defsubr them.
24818 (Fset_input_meta_mode, Fset_quit_char): New functions.
24819 (Fset_input_mode): Split to above functions.
24820 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24821 parameter. Use it in call to `read_char'.
24822 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24823 Set wrong_kboard_jmpbuf correctly in recursive calls.
24824 Use current_kboard to access Vkeyboard_translate_table.
24825 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24826 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24827 Update longjmp invocations. Remember the original current_kboard,
24828 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24829 changes it. Comment out unnecessary calls to
24830 `record_single_kboard_state' and `any_kboard_state'.
24831 Update recursive calls.
24832 (wrong_kboard_jmpbuf): Remove global variable.
24833 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24834 Handle deleted interrupted_kboards correctly; that is a legal
24835 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24836 and read_char calls. Abort if interrupted_kboard died in read_char.
24837 (any_kboard_state, single_kboard_state)
24838 (push_frame_kboard): Remove function.
24839 (pop_kboard): Switch out of single_kboard mode if the kboard has
24840 been deleted. Remove unused variable. Help debugging by not
24841 changing current_kboard unnecessarily. Set current_kboard to the
24842 kboard of the selected frame when the stored kboard object has
24843 been deleted before pop_kboard.
24844 (temporarily_switch_to_single_kboard): Change first parameter to a
24845 frame pointer. Throw an error when caller wants to change kboards
24846 while in single_kboard mode. Don't push_kboard if we weren't in
24847 single kboard state. Don't pop_kboard if we popped into any
24848 kboard state.
24849 (restore_kboard_configuration): Abort if pop_kboard changed the
24850 kboard in single_kboard mode. Call pop_kboard only after setting
24851 up single_kboard mode.
24852 (Frecursive_edit): Switch to single_kboard mode only in nested
24853 command loops.
24854 (cmd_error, command_loop, command_loop_1, timer_check):
24855 Comment out unnecessary call to `any_kboard_state' and
24856 `record_single_kboard_state'.
24857 (delete_kboard): Exit single_kboard mode if we have just deleted
24858 that kboard. Use FRAME_KBOARD.
24859 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24860 `fatal_error_signal'.
24861 (record_single_kboard_state): Don't push_kboard if we weren't in
24862 single kboard state. Don't pop_kboard if we popped into any
24863 kboard state.
24864 (push_frame_kboard): Rename to push_kboard.
24865 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24866 (read_avail_input): Read input from all terminals.
24867 (mark_kboards): Also mark Vkeyboard_translate_table.
24868 (kbd_buffer_store_event_hold): Simplify condition.
24869 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24870 (Vkeyboard_translate_table): Move to struct kboard.
24871 (init_kboard): Initialize Vkeyboard_translate_table.
24872 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24873 Vkeyboard_translate_table. Update doc strings. Update docs of
24874 local-function-key-map and function-key-map.
24875
24876 * terminal.c: New file.
24877
24878 * term.c: Include errno.h.
24879 (Vring_bell_function, device_list, initial_device)
24880 (next_device_id, ring_bell, update_begin, update_end)
24881 (set_terminal_window, cursor_to, raw_cursor_to)
24882 (clear_to_end, clear_frame, clear_end_of_line)
24883 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24884 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24885 (syms_of_term): Move their initialization to terminal.c.
24886 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24887 (Ftty_display_color_cells)
24888 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24889 (clear_tty_hooks, set_tty_hooks)
24890 (init_tty, maybe_fatal): New functions.
24891 (Ftty_type): Return nil if terminal is not on a tty instead of
24892 throwing an error. Doc update.
24893 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24894 Doc update. Initialize new subrs and variables.
24895 (delete_tty): Use terminal->deleted.
24896 (tty_set_terminal_modes): Rename from set_terminal_modes.
24897 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24898 (set_scroll_region): Rename to `tty_set_scroll_region'.
24899 (turn_on_insert): Rename to `tty_turn_on_insert'.
24900 (turn_off_insert): Rename to `tty_turn_off_insert'.
24901 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24902 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24903 (toggle_highligh): Rename to `tty_toggle_highlight'.
24904 (background_highlight): Rename to `tty_background_highlight'.
24905 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24906 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24907 (tty_set_scroll_region, tty_background_highlight)
24908 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24909 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24910 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24911 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24912 Add static modifier.
24913 (tty_reset_terminal_modes, tty_set_terminal_window)
24914 (tty_set_scroll_region, tty_background_highlight)
24915 (tty_highlight_if_desired, tty_cursor_to)
24916 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24917 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24918 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24919 renames.
24920
249212007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24922
24923 * keyboard.c: Qrtl is new.
24924 (parse_tool_bar_item): Handle :rtl keyword.
24925 (syms_of_keyboard): Intern :rtl keyword.
24926
24927 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24928
24929 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24930 so no Lisp code is executed.
24931 (file_for_image, find_rtl_image): New functions.
24932 (xg_get_image_for_pixmap): Use file_for_image.
24933 (update_frame_tool_bar): If direction is RTL, use RTL image if
24934 defined. Use Gtk stock images if defined.
24935
249362007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24937
24938 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24939 for nonexistent or zero-width glyph in composition glyph.
24940
249412007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24942
24943 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24944
24945 * xdisp.c (Finvisible_p): New function.
24946 (syms_of_xdisp): defsubr it.
24947
249482007-08-24 Juanma Barranquero <lekktu@gmail.com>
24949
24950 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24951 Doc fixes.
24952
249532007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24954
24955 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24956
249572007-08-24 Martin Rudalics <rudalics@gmx.at>
24958
24959 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24960 whether decoding has modified buffer contents.
24961
249622007-08-24 Jason Rumney <jasonr@gnu.org>
24963
24964 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24965 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24966 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24967 (init_svg_functions) [HAVE_NTGUI]: New function.
24968 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24969 (svg_load_image): Use them.
24970 (svg_load_image) [HAVE_NTGUI]: Implement background.
24971
249722007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24973
24974 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24975 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24976 (LIBX): Remove @RSVG_LIBS@.
24977 (LIBES): Add $(RSVG_LIBS).
24978
24979 * image.c (svg_load_image): Blend with specified background if exists.
24980 Use IMAGE_BACKGROUND. Add Mac OS Support.
24981
24982 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24983 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24984 Remove macros.
24985 [MAC_OSX] (socket_callback): Do nothing.
24986 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24987 ReceiveNextEvent.
24988 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24989 socket_callback.
24990 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24991
249922007-08-22 Glenn Morris <rgm@gnu.org>
24993
24994 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24995
249962007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24997
24998 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24999
25000 * image.c: Add support for SVG images. Some additional comments
25001 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25002 (svg_image_p): New function to test for SVG image.
25003 (svg_load): New function to load SVG image.
25004 (svg_load_image): New function, helper for svg_load.
25005 (Qsvg): New Lisp_object.
25006 (svg_keyword_index): New enum.
25007 (svg_format): New static `image_keyword' struct.
25008 (svg_type): New static `image_type' struct.
25009 (librsvg/rsvg.h): Include it.
25010
250112007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25012
25013 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25014
250152007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25016
25017 * lread.c (Qold_style_backquotes): New var.
25018 (syms_of_lread): Init and staticpro it.
25019 (load_warn_old_style_backquotes): New fun.
25020 (Fload): Use them to warn about old style backquotes.
25021 (end_of_file_error, Fload): Remove unused vars.
25022
25023 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25024
25025 * lread.c (Vold_style_backquotes): New var.
25026 (syms_of_lread): Init and export it to Elisp.
25027 (read1): Set it when we find an old-style (back)quote.
25028
250292007-08-22 Jason Rumney <jasonr@gnu.org>
25030
25031 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25032
250332007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25034
25035 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25036
250372007-08-19 Richard Stallman <rms@gnu.org>
25038
25039 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25040
250412007-08-19 Andreas Schwab <schwab@suse.de>
25042
25043 * alloc.c (pure): Round PURESIZE up.
25044
250452007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25046
25047 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25048 active frame.
25049
250502007-08-16 Richard Stallman <rms@gnu.org>
25051
25052 * eval.c (Fcommandp): Add parens to clarify.
25053
25054 * minibuf.c (Fall_completions): Use enum for type of table.
25055
25056 * emacs.c (USAGE2): Improve text.
25057
250582007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25059
25060 * term.c (tty_default_color_capabilities): Declare static
25061 variables in file scope, to avoid HPUX compiler problem.
25062
250632007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25064
25065 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25066 to gtk_toolbar_insert.
25067
250682007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25069
25070 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25071
25072 * insdel.c (reset_var_on_error): New fun.
25073 (signal_before_change, signal_after_change):
25074 Use it to reset (after|before)-change-functions to nil in case of error.
25075 Bind inhibit-modification-hooks to t.
25076 Don't bind (after|before)-change-functions to nil while they run.
25077
250782007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25079
25080 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25081 filling pixmap with stippled background.
25082
250832007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25084
25085 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25086 Don't use invisible frame as parent window for repositioning.
25087
250882007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25089
25090 * print.c (new_backquote_output): Rename from old_backquote_output.
25091 (print): Inverse its logic (according to its name) so as to match the
25092 behavior of new_backquote_flag in lread.c.
25093
250942007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25095
25096 * gmalloc.c (posix_memalign): New function.
25097
25098 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25099 ActivateControl/DeactivateControl here.
25100 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25101 frame-notice-user-settings is non-nil.
25102 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25103 for kEventParamFMFontStyle.
25104 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25105 mac_pass_command_to_system and mac_pass_control_to_system here.
25106 (XTread_socket): Call ActivateControl/DeactivateControl here.
25107 (XTread_socket) [TARGET_API_MAC_CARBON]:
25108 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25109 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25110 for window repositioning.
25111
251122007-08-08 Glenn Morris <rgm@gnu.org>
25113
25114 * Replace `iff' in doc-strings and comments.
25115
251162007-08-07 Chong Yidong <cyd@stupidchicken.com>
25117
25118 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25119
251202007-08-07 Martin Rudalics <rudalics@gmx.at>
25121
25122 * fileio.c (Finsert_file_contents): Run format-decode and
25123 after_insert_file_functions on entire buffer when REPLACE is
25124 non-nil and inhibit modification_hooks and point_motion_hooks.
25125 For consistency, run after_insert_file_functions iff something
25126 got inserted. Move signal_after_change and update_compositions
25127 after code running after_insert_file_functions. Make sure that
25128 undo_list doesn't record intermediate steps of the decoding process.
25129
251302007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25131
25132 * emacs.c (main)
25133 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25134 Call malloc_enable_thread on interactive startup.
25135
25136 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25137 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25138 [USE_PTHREAD]: Conditionalize with it.
25139 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25140 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25141 New functions.
25142
251432007-08-06 Chong Yidong <cyd@stupidchicken.com>
25144
25145 * xdisp.c (redisplay_window): When restoring original buffer
25146 position, make sure it is still valid.
25147
25148 * image.c (png_load): Ignore png-supplied background color.
25149
251502007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25151
25152 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25153 Use kCFAbsoluteTimeIntervalSince1970.
25154
25155 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25156 New variable.
25157 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25158 event loop should be quit.
25159 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25160 Quit dialog event loop if quit_dialog_event_loop is set.
25161
25162 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25163 (Selection): New typedef. Use instead of ScrapRef.
25164 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25165 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25166 (mac_clear_selection): Rename from clear_scrap.
25167 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25168 scrap_has_target_type. All uses changed.
25169 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25170 (mac_selection_has_target_p): New functions.
25171 (mac_put_selection_value): Rename from put_scrap_string.
25172 (mac_get_selection_value): Rename from get_scrap_string.
25173 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25174 (put_scrap_private_timestamp, scrap_has_target_type)
25175 (get_scrap_private_timestamp): Remove functions.
25176 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25177 (x_own_selection, x_get_local_selection):
25178 Use mac_valid_selection_value_p.
25179 (x_own_selection): Don't use put_scrap_private_timestamp.
25180 Record OWNERSHIP-INFO into Vselection_alist instead.
25181 (x_get_local_selection): Don't check type if request is local.
25182 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25183 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25184
251852007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25186
25187 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25188 add comment explaining why.
25189
251902007-08-03 Richard Stallman <rms@gnu.org>
25191
25192 * fileio.c (Fvisited_file_modtime): Use make_time.
25193
251942007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25195
25196 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25197 build.
25198
251992007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25200
25201 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25202
252032007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25204
25205 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25206
252072007-07-30 Richard Stallman <rms@gnu.org>
25208
25209 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25210
252112007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25212
25213 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25214
252152007-07-28 Nick Roberts <nickrob@snap.net.nz>
25216
25217 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25218 remote default-directory.
25219
25220 * buffer.c (mode-line-format): Update doc string.
25221
252222007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25223
25224 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25225 scroll bar gap.
25226 (x_scroll_bar_create): Set bar->fringe_extended_p.
25227 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25228 on frame edge. Check fringe background extension. Don't clear
25229 extended fringe background area.
25230
25231 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25232 (w32_fill_area): Enclose multiple statements with do ... while (0).
25233
25234 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25235 Extend fringe background to scroll bar gap.
25236 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25237 Set bar->fringe_extended_p.
25238 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25239 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25240 background extension. Don't clear extended fringe background area.
25241
25242 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25243 New member fringe_extended_p.
25244
252452007-07-25 Glenn Morris <rgm@gnu.org>
25246
25247 * Relicense all FSF files to GPLv3 or later.
25248
25249 * COPYING: Switch to GPLv3.
25250
252512007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25252
25253 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25254
25255 * data.c (Finteractive_form): Check for the presence of an
25256 `interactive-form' symbol property more thoroughly.
25257
25258 * data.c (Finteractive_form): Use an `interactive-form' property if
25259 present, analogous to the function-documentation property.
25260
252612007-07-24 Jason Rumney <jasonr@gnu.org>
25262
25263 * w32fns.c (x_real_positions): Get real position from OS instead of
25264 calculating it.
25265
252662007-07-23 Jason Rumney <jasonr@gnu.org>
25267
25268 * filelock.c (current_lock_owner): Allow for @ sign in username.
25269
252702007-07-22 Nick Roberts <nickrob@snap.net.nz>
25271
25272 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25273 remote default-directory.
25274
25275 * buffer.c (mode-line-format): Describe above case in doc string.
25276
252772007-07-20 Eli Zaretskii <eliz@gnu.org>
25278
25279 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25280 Define if not defined.
25281
252822007-07-18 Jason Rumney <jasonr@gnu.org>
25283
25284 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25285
252862007-07-18 Richard Stallman <rms@gnu.org>
25287
25288 * data.c (Fsetq_default): Doc fix.
25289
25290 * eval.c (Fsetq): Doc fix.
25291
252922007-07-18 Juanma Barranquero <lekktu@gmail.com>
25293
25294 * coding.c (Ffind_operation_coding_system):
25295 * eval.c (For, Fand): Doc fixes.
25296 Reported by Johan Bockgård.
25297
252982007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25299
25300 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25301
25302 * xterm.h: Declare x_ewmh_activate_frame.
25303
25304 * xterm.c (x_ewmh_activate_frame): New function.
25305 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25306
253072007-07-17 Martin Rudalics <rudalics@gmx.at>
25308
25309 * window.c (Fdisplay_buffer): If largest or LRU window is the
25310 only window, split it even if it is not eligible for splitting.
25311 This restores the original behavior broken by the 2007-07-15
25312 change.
25313
253142007-07-17 Glenn Morris <rgm@gnu.org>
25315
25316 * abbrev.c (abbrev_check_chars): New function.
25317 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25318 Call abbrev_check_chars to check abbrev characters are word
25319 constituents. Doc fix.
25320
253212007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25322
25323 * process.c (Fstart_process, Fmake_network_process)
25324 (read_process_output): Fix up last changes.
25325
253262007-07-16 Eli Zaretskii <eliz@gnu.org>
25327
25328 * makefile.w32-in (clean): Don't delete *~.
25329
253302007-07-16 Andreas Schwab <schwab@suse.de>
25331
25332 * window.c (Fdisplay_buffer): Use NILP.
25333 (Fset_window_scroll_bars): Likewise.
25334
253352007-07-15 Martin Rudalics <rudalics@gmx.at>
25336
25337 * window.c (window_min_size_2): New function.
25338 (window_min_size_1, size_window, Fdisplay_buffer)
25339 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25340 windows without mode- or header-lines when window-min-height is
25341 too small.
25342 (size_window): Reset nodelete_p after testing it, following an
25343 earlier note by Kim F. Storm.
25344 (display_buffer): Do not set split_height_threshold to twice the
25345 value of window_min_height to avoid changing the value of a
25346 customizable variable. Rather explicitly check whether the
25347 height of the window that shall be splitted is at least as large
25348 as split_height_threshold.
25349 (Fwindow_full_width_p): New defun.
25350 (syms_of_window): Defsubr it.
25351
25352 * window.h: Add EXFUN for Fwindow_full_width_p.
25353
253542007-07-14 Jason Rumney <jasonr@gnu.org>
25355
25356 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25357
253582007-07-14 Richard Stallman <rms@gnu.org>
25359
25360 * eval.c (maybe_call_debugger): New function.
25361 (find_handler_clause): Use maybe_call_debugger.
25362 Call it when the handler says `debug'.
25363 Eliminate DEBUGGER_VALUE_PTR.
25364 (Fsignal): Eliminate debugger_value.
25365 (Qdebug): New variable.
25366 (syms_of_eval): Initialize it.
25367
253682007-07-14 Juanma Barranquero <lekktu@gmail.com>
25369
25370 * eval.c (Fprogn):
25371 * keyboard.c (Ftrack_mouse):
25372 * print.c (Fwith_output_to_temp_buffer):
25373 * window.c (Fsave_window_excursion): Doc fix.
25374
253752007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25376
25377 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25378
253792007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25380
25381 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25382 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25383 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25384 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25385 Remove unused encoding_carryover.
25386 * process.c: Adjust all functions accordingly.
25387
253882007-07-12 Richard Stallman <rms@gnu.org>
25389
25390 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25391
253922007-07-11 Jason Rumney <jasonr@gnu.org>
25393
25394 * makefile.w32-in (LIBS): Include OLE32.
25395
25396 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25397 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25398
253992007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25400
25401 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25402 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25403 from a Lisp_Object into a bare pointer.
25404 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25405 Adjust the code correspondingly.
25406
25407 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25408
25409 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25410 (term_show_mouse_face): Remove unused var `j'.
25411 (handle_one_term_event): Remove unused vars `i' and `j'.
25412 Don't cast return value of ttyname since it's not necessary.
25413
254142007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25415
25416 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25417 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25418
25419 * fns.c (map_char_table): Use an array of int for `indices' rather than
25420 an array of Lisp_Objects (which are only ever integers anyway).
25421 (Fmap_char_table): Update caller.
25422 * lisp.h: Update prototype.
25423 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25424 * fontset.c (Ffontset_info):
25425 * casetab.c (set_case_table): Update callers.
25426
25427 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25428
25429 * keymap.c (struct accessible_keymaps_data)
25430 (struct where_is_internal_data): New structures.
25431 (accessible_keymaps_1, where_is_internal_1): Use them to change
25432 interface to adhere to the one used by map_keymap.
25433 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25434 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25435
25436 * keymap.h (map_keymap_function_t): More informative prototype.
25437
254382007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25439
25440 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25441 (looking_at_1): Don't change search_regs and last_thing_searched
25442 if `inhibit-changing-match-data' is non-nil.
25443 (string_match_1, search_buffer, set_search_regs): Likewise.
25444 (syms_of_search): Add Lisp level definition for
25445 `inhibit-changing-match-data' and set it to nil.
25446 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25447 start and end of the match, instead of using values in search_regs.
25448
254492007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25450
25451 * minibuf.c (Fcompleting_read): New value `confirm-only'
25452 for `require-match'.
25453
254542007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25455
25456 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25457 part of the 2007-06-27 change to syms_of_fileio.
25458
254592007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25460
25461 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25462 Check WINDOWP before using XWINDOW. Consolidate return statements.
25463
254642007-06-27 Richard Stallman <rms@gnu.org>
25465
25466 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25467
254682007-06-27 Juanma Barranquero <lekktu@gmail.com>
25469
25470 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25471
254722007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25473
25474 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25475 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25476 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25477 (_free_internal, memalign): Use them.
25478 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25479 Initialize to PTHREAD_MUTEX_INITIALIZER.
25480 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25481 (morecore_nolock): Rename from morecore. All uses changed.
25482 Use only nolock versions of internal allocation functions.
25483 (_malloc_internal_nolock, _realloc_internal_nolock)
25484 (_free_internal_nolock): New functions created from
25485 _malloc_internal, _realloc_internal, and _free_internal.
25486 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25487 Copy hook value to automatic variable before its use.
25488 (memalign): Copy hook value to automatic variable before its use.
25489
254902007-06-26 Kenichi Handa <handa@m17n.org>
25491
25492 * coding.c (Ffind_operation_coding_system): Docstring improved.
25493 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25494
254952007-06-25 David Kastrup <dak@gnu.org>
25496
25497 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25498 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25499 cater for additional parameter.
25500
25501 * keymap.h: Adjust number of parameters to `current-active-maps'.
25502
25503 * doc.c (Fsubstitute_command_keys): Adjust call of
25504 `current-active-maps'.
25505
255062007-06-25 David Kastrup <dak@gnu.org>
25507
25508 * callint.c (Fcall_interactively): Make the parsing of interactive
25509 specs somewhat more readable.
25510
255112007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25512
25513 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25514 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25515 if extended background has already been filled.
25516
255172007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25518
25519 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25520 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25521
25522 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25523 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25524 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25525 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25526 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25527 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25528 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25529 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25530 Run timers during dialog popup.
25531 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25532
255332007-06-21 Jason Rumney <jasonr@gnu.org>
25534
25535 * image.c (convert_mono_to_color_image): Swap fore and background.
25536
255372007-06-20 Jason Rumney <jasonr@gnu.org>
25538
25539 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25540 (w32_free_bdf_font): Unmap memory not handle.
25541
255422007-06-20 Sam Steingold <sds@gnu.org>
25543
25544 * gmalloc.c (__morecore): Fix the declaration to comply with the
25545 definition.
25546
255472007-06-20 Juanma Barranquero <lekktu@gmail.com>
25548
25549 * w32term.c (w32_delete_display): Remove leftover declaration.
25550 (w32_define_cursor, w32_initialize): Make static.
25551
25552 * w32.c (_wsa_errlist): Fix typo in error message.
25553 (init_environment): Ignore any environment variable from the
25554 registry having a null value.
25555
255562007-06-20 Glenn Morris <rgm@gnu.org>
25557
25558 * Makefile.in (LIBGIF): Default to -lgif.
25559
255602007-06-17 Jason Rumney <jasonr@gnu.org>
25561
25562 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25563 unicode strings.
25564
255652007-06-16 Juanma Barranquero <lekktu@gmail.com>
25566
25567 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25568 Fix typo in docstring.
25569
255702007-06-16 Eli Zaretskii <eliz@gnu.org>
25571
25572 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25573 and their keybindings.
25574
255752007-06-15 Chong Yidong <cyd@stupidchicken.com>
25576
25577 * composite.c (update_compositions): Fix last fix.
25578
255792007-06-14 Jason Rumney <jasonr@gnu.org>
25580
25581 * w32.c (get_process_times_fn): New function pointer.
25582 (globals_of_w32): Intialize it if present in kernel32.dll.
25583 (w32_get_internal_run_time): New function.
25584
25585 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25586
255872007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25588
25589 * composite.c (update_compositions): Check the validness of
25590 compositions.
25591
255922007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25593
25594 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25595 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25596
25597 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25598 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25599
25600 * macgui.h (USE_MAC_TOOLBAR): New define.
25601
25602 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25603 Return immediately unless popup is activated.
25604
25605 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25606 background to scroll bar gap.
25607 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25608 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25609 scroll bars on frame edge. Check fringe background extension.
25610 Don't clear extended fringe background area.
25611 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25612 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25613 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25614 [USE_MAC_TOOLBAR]: New macros.
25615 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25616 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25617 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25618 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25619 [USE_MAC_TOOLBAR]: New functions.
25620 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25621 manually if previous repositioning has failed.
25622 (mac_handle_keyboard_event): Use precomputed event kind.
25623 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25624 as tool bar item click. Handle mouse movement over tool bar items.
25625
25626 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25627 toolbar_win_gravity.
25628 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25629 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25630 Add externs.
25631
25632 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25633 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25634
256352007-06-14 Chong Yidong <cyd@stupidchicken.com>
25636
25637 * image.c (search_image_cache): Remove unused variable.
25638
256392007-06-13 Chong Yidong <cyd@stupidchicken.com>
25640
25641 * xfns.c, xmenu.c: Link to xaw3d if available.
25642
256432007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25644
25645 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25646 frame_foreground and frame_background.
25647
25648 * image.c (lookup_image): Save frame foreground and background colors.
25649 (search_image_cache): Check if saved and current frame colors match.
25650
256512007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25652
25653 * regex.c (regex_compile): Remove the `regnum' counter.
25654 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25655
256562007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25657
25658 * term.c: Include intervals.h to declare Fget_text_property.
25659
256602007-06-10 Jason Rumney <jasonr@gnu.org>
25661
25662 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25663
256642007-06-08 Juanma Barranquero <lekktu@gmail.com>
25665
25666 * callint.c (Fcall_interactively):
25667 * editfns.c (Fdelete_and_extract_region):
25668 * fileio.c (Fread_file_name):
25669 * fns.c (Fmapconcat):
25670 * keyboard.c (cmd_error_internal):
25671 * keymap.c (Fkey_description):
25672 * lread.c (openp):
25673 * minibuf.c (read_minibuf):
25674 * search.c (wordify):
25675 * sunfns.c (sel_read):
25676 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25677 * xfns.c (x_default_scroll_bar_color_parameter):
25678 * xmenu.c (menu_help_callback):
25679 * xselect.c (Fx_get_atom_name):
25680 * xterm.c (x_term_init): Use empty_unibyte_string.
25681
256822007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25683
25684 * alloc.c (init_strings): Initialize canonical empty strings.
25685 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25686 canonical empty string when the requested size is 0.
25687
25688 * emacs.c (empty_unibyte_string): Rename from empty_string.
25689 (empty_multibyte_string): New canonical empty string.
25690 (syms_of_emacs): Don't initialize empty_string.
25691
25692 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25693 string, if appropriate.
25694 (empty_unibyte_string, empty_multibyte_string): New externs.
25695 (empty_string): Remove extern.
25696
25697 * lread.c (syms_of_lread): Use empty_unibyte_string.
25698
256992007-06-07 Jason Rumney <jasonr@gnu.org>
25700
25701 * s/ms-w32.h: Don't define HAVE_TZNAME.
25702
25703 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25704
257052007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25706
25707 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25708
25709 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25710 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25711
25712 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25713 Don't call next handler.
25714 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25715 Remove argument. Install handler to application.
25716 (set_frame_menubar): Don't change deep_p.
25717 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25718 FRAME_OUTER_TO_INNER_DIFF_Y.
25719 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25720 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25721 [HAVE_DIALOGS]: New macros.
25722 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25723 Use them.
25724 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25725
25726 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25727 init_service_handler. All callers changed. Return OSStatus value.
25728
25729 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25730 All callers changed so as not to call SetPortWindowPort.
25731 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25732 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25733 mac_draw_string_common.
25734 (mac_draw_image_string_qd): Likewise.
25735 (mac_draw_string_common): Use them. Add INLINE.
25736 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25737 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25738 GetGlobalMouse.
25739 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25740 and FRAME_OUTER_TO_INNER_DIFF_Y.
25741 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25742 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25743 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25744 repositioning window to mac_handle_window_event.
25745 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25746 saving window location to mac_handle_window_event
25747 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25748 (install_menu_target_item_handler): Remove argument in extern.
25749 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25750 Also accept command events.
25751 (do_keystroke): New function created from XTread_socket.
25752 (init_command_handler): Remove functions.
25753 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25754 and save window location by kEventWindowShowing and kEventWindowHiding
25755 handlers here. Don't call next handler for window state change and
25756 focus events.
25757 (mac_handle_application_event, mac_handle_keyboard_event)
25758 [TARGET_API_MAC_CARBON]: New functions.
25759 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25760 kEventWindowShowing and kEventWindowHiding events. Move installation
25761 of mouse, font, text input and menu target item handlers to
25762 install_application_handler.
25763 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25764 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25765 New function.
25766 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25767 Register it.
25768 (XTread_socket) [TARGET_API_MAC_CARBON]:
25769 Consolidate SendEventToEventTarget calls.
25770 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25771 Move application activation handler to mac_handle_application_event.
25772 Move keyboard handler to mac_handle_keyboard_event.
25773 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25774 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25775 init_command_handler. Call install_application_handler.
25776
25777 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25778 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25779
257802007-06-07 Glenn Morris <rgm@gnu.org>
25781
25782 * emacs.c (main): Use `emacs-copyright' in --version output.
25783
257842007-06-06 Chong Yidong <cyd@stupidchicken.com>
25785
25786 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25787
257882007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25789
25790 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25791
25792 * macgui.h: Replace WindowPtr with WindowRef.
25793
25794 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25795 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25796 Replace ControlHandle with ControlRef.
25797 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25798
25799 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25800 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25801 Replace ControlHandle with ControlRef.
25802 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25803 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25804
25805 * macterm.h (struct scroll_bar): Rename member control_handle_low
25806 and control_handle_high to control_ref_low and control_ref_high.
25807 All uses changed.
25808 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25809 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25810 respectively. All uses changed.
25811 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25812 (install_window_handler, remove_window_handler): Replace WindowPtr
25813 with WindowRef in externs.
25814
258152007-06-05 Juanma Barranquero <lekktu@gmail.com>
25816
25817 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25818
258192007-06-03 Nick Roberts <nickrob@snap.net.nz>
25820
25821 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25822
25823 * frame.c (Fmouse_position, Fmouse_pixel_position):
25824 Condition on HAVE_GPM too.
25825
25826 * term.c (term_mouse_highlight): Remove unused variables.
25827 (Fterm_open_connection): Set gpm_zerobased to 1.
25828 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25829 Use zero based co-ordinates.
25830 (handle_one_term_event): Report a drag as mouse movement too.
25831
25832 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25833
258342007-06-03 Chong Yidong <cyd@stupidchicken.com>
25835
25836 * image.c (search_image_cache): New function. Require background
25837 color match if background color is unspecified in the image spec.
25838 (uncache_image, lookup_image): Use it.
25839
258402007-06-01 Juanma Barranquero <lekktu@gmail.com>
25841
25842 * window.c (Fshrink_window): Reflow docstring.
25843
258442007-06-02 Chong Yidong <cyd@stupidchicken.com>
25845
25846 * Version 22.1 released.
25847
258482007-06-01 Richard Stallman <rms@gnu.org>
25849
25850 * xfns.c (x_encode_text): Add GCPRO.
25851
258522007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25853
25854 * xfns.c (x_set_name_internal): Save encoded name before
25855 x_encode_text in case string data is relocated.
25856
258572007-05-31 Richard Stallman <rms@gnu.org>
25858
25859 * buffer.c (syms_of_buffer): Doc fix.
25860
258612007-05-30 Nick Roberts <nickrob@snap.net.nz>
25862
25863 * sysdep.c (init_sys_modes): Add rather than replace with
25864 O_NONBLOCK.
25865
25866 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25867 term_mouse_moveto.
25868
25869 * termhooks.h (term_mouse_moveto): New extern.
25870
25871 * term.c (mouse_face_window): Rename...
25872 (Qmouse_face_window): ...to this.
25873 (term_show_mouse_face, term_clear_mouse_face)
25874 (term_mouse_highlight): Use Qmouse_face_window.
25875 (term_mouse_moveto): New function.
25876 (term_mouse_position): Make it work.
25877 (syms_of_term): Uncomment assignment to mouse_position_hook.
25878 Staticpro Qmouse_face_window.
25879
258802007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25881
25882 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25883 around current_column call.
25884
258852007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25886
25887 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25888 * xdisp.c (next_element_from_buffer):
25889 * window.c (delete_window):
25890 * term.c (term_mouse_highlight):
25891 * msdos.c (getdefdir):
25892 * macterm.c (mac_create_bitmap_from_bitmap_data)
25893 (init_font_name_table):
25894 * fns.c (Fsxhash):
25895 * data.c (Fmake_local_variable):
25896 * ccl.c (ccl_driver): Likewise.
25897
258982007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25899
25900 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25901 Call mac_wakeup_from_rne on window size change.
25902
259032007-05-25 Chong Yidong <cyd@stupidchicken.com>
25904
25905 * image.c (uncache_image): Fix typo.
25906
259072007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25908
25909 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25910
259112007-05-22 Richard Stallman <rms@gnu.org>
25912
25913 * xterm.c (x_connection_closed): Remove NO_RETURN.
25914
259152007-05-22 Martin Rudalics <rudalics@gmx.at>
25916
25917 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25918
259192007-05-21 Chong Yidong <cyd@stupidchicken.com>
25920
25921 * image.c (uncache_image): New function.
25922 (Fimage_refresh): New function.
25923
259242007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25925
25926 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25927
259282007-05-20 Nick Roberts <nickrob@snap.net.nz>
25929
25930 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25931 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25932
259332007-05-20 Nick Roberts <nickrob@snap.net.nz>
25934
25935 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25936 conditional on [HAVE_GPM_H].
25937
259382007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25939
25940 * syntax.c (skip_chars): Update syntax-table only after we checked that
25941 the new location is valid.
25942
259432007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25944
25945 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25946 mac_get_window_bounds.
25947
259482007-05-20 Nick Roberts <nickrob@snap.net.nz>
25949
25950 * Makefile.in (LIBGPM): Allow it to be set from configure.
25951 If set then link Emacs with it.
25952
25953 * config.in: Regenerate.
25954
25955 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25956 New externs.
25957
25958 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25959 Include gpm.h.
25960 (handle_one_term_event, term_gpm): New externs.
25961
25962 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25963 and allow it to be interrupted by SIGIO.
25964
25965 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25966 (wait_reading_process_output): Wait on gpm_fd too.
25967 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25968 (add_gpm_wait_descriptor_called_flag): New variable.
25969 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25970
25971 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25972 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25973 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25974 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25975 (make_lispy_event): Add case GPM_CLICK_EVENT.
25976 (read_avail_input): Handle mouse input.
25977
25978 * term.c (write_glyphs_with_face): New function.
25979 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25980 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25981 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25982 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25983 (last_mouse_x, last_mouse_y): New variables.
25984 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25985 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25986 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25987 (Fterm_close_connection): New functions.
25988 (term_init): Initialise mouse_face_window.
25989
259902007-05-19 Chong Yidong <cyd@stupidchicken.com>
25991
25992 * xdisp.c (redisplay_window): If first window line is a
25993 continuation line, recompute the new window start instead of
25994 recentering.
25995
259962007-05-18 Glenn Morris <rgm@gnu.org>
25997
25998 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25999 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26000
260012007-05-17 Glenn Morris <rgm@gnu.org>
26002
26003 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26004
260052007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26006
26007 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26008 dead key repeat and up events.
26009
260102007-05-14 Chong Yidong <cyd@stupidchicken.com>
26011
26012 * image.c (pbm_load): Check image size for monochrome pbm.
26013
260142007-05-13 Chong Yidong <cyd@stupidchicken.com>
26015
26016 * xterm.c (XTread_socket): Revert last change.
26017
260182007-05-12 Chong Yidong <cyd@stupidchicken.com>
26019
26020 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26021
26022 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26023
260242007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26025
26026 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26027 mixup (YAILOM).
26028
260292007-05-07 Andreas Schwab <schwab@suse.de>
26030
26031 * keymap.c (Flookup_key): Fix typo in last change.
26032
260332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26034
26035 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26036 mapping for unibyte strings.
26037
260382007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26039
26040 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26041 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26042
260432007-04-29 Richard Stallman <rms@gnu.org>
26044
26045 * insdel.c (replace_range): For undo, record insertion first.
26046
260472007-04-29 Andreas Schwab <schwab@suse.de>
26048
26049 * lisp.h (VECSIZE): Use OFFSETOF.
26050
260512007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26052
26053 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26054 disabled lines.
26055
260562007-04-28 Richard Stallman <rms@gnu.org>
26057
26058 * lread.c (read_escape): In a string, \s is always space.
26059
260602007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26061
26062 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26063
26064 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26065 submenu for menu bar items.
26066
26067See ChangeLog.10 for earlier changes.
26068
26069;; Local Variables:
26070;; coding: utf-8
26071;; add-log-time-zone-rule: t
aac0c6e3
MR
26072;; End:
26073
e3eb1dae 26074 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26075
26076 This file is part of GNU Emacs.
26077
26078 GNU Emacs is free software: you can redistribute it and/or modify
26079 it under the terms of the GNU General Public License as published by
26080 the Free Software Foundation, either version 3 of the License, or
26081 (at your option) any later version.
26082
26083 GNU Emacs is distributed in the hope that it will be useful,
26084 but WITHOUT ANY WARRANTY; without even the implied warranty of
26085 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26086 GNU General Public License for more details.
26087
26088 You should have received a copy of the GNU General Public License
26089 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26090
26091;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40